/* Infinite Print - Light Professional Theme */
:root {
  /* 方案 A｜品牌聚焦 */
  --brand: #910782;
  --brand-dark: #6b0560;
  --brand-darker: #5a044f;
  --brand-light: #f5e6f3;
  --primary: #1e293b;
  --primary-blue: #910782;
  --accent: #910782;
  --accent-hover: #6b0560;
  --dark: #1e293b;
  --light-bg: #f8fafc;
  --white: #ffffff;
  --gray: #64748b;
  --border: #e2e8f0;
  --whatsapp: #25d366;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans TC', system-ui, sans-serif;
  color: var(--dark);
  line-height: 1.6;
  background: var(--white);
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* Header */
header {
  position: sticky; top: 0;
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  z-index: 1000;
}
.nav-container {
  max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.7rem 1.5rem; gap: 1rem;
}
.logo-area {
  display: flex; align-items: flex-end; gap: 0.55rem;
}
.logo-area img { height: 40px; width: auto; object-fit: contain; }
.logo-sub {
  font-size: 0.68rem; font-weight: 500; color: #64748b;
  letter-spacing: 0.05em; padding-bottom: 2px;
}
.nav-links {
  display: flex; list-style: none; gap: 1.5rem; align-items: center;
}
.nav-links a {
  font-weight: 500; font-size: 0.92rem; transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.header-actions {
  display: flex; align-items: center; gap: 0.75rem;
}
.btn-wa {
  background: var(--whatsapp); color: #fff;
  padding: 0.45rem 1rem; border-radius: 50px;
  font-weight: 600; font-size: 0.88rem;
  display: flex; align-items: center; gap: 0.35rem;
  transition: background 0.2s; white-space: nowrap;
}
.btn-wa:hover { background: #1ebc57; }
.cart-link {
  position: relative; padding: 0.35rem;
  color: var(--dark); font-size: 1.25rem;
}
.cart-link:hover { color: var(--accent); }
.cart-badge {
  position: absolute; top: -4px; right: -6px;
  background: var(--accent); color: #fff;
  font-size: 0.7rem; font-weight: 700;
  min-width: 18px; height: 18px; border-radius: 50%;
  display: none; align-items: center; justify-content: center;
  padding: 0 4px;
}
.menu-toggle {
  display: none; background: none; border: none;
  font-size: 1.4rem; cursor: pointer; color: var(--dark);
}
.mobile-nav {
  display: none; background: var(--white);
  border-top: 1px solid var(--border); padding: 0.5rem 1.5rem 1rem;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block; padding: 0.7rem 0;
  border-bottom: 1px solid var(--border); font-weight: 500;
}
.mobile-nav a:last-child { border-bottom: none; }

/* Hero */
.hero {
  background: linear-gradient(135deg, rgba(15,23,42,0.88), rgba(30,58,95,0.85)),
              url('../images/gallery1.jpg') center/cover no-repeat;
  color: #fff; padding: 5rem 1.5rem; text-align: center;
}
.hero-content { max-width: 800px; margin: 0 auto; }
.hero h1 { font-size: 2.5rem; margin-bottom: 0.9rem; font-weight: 700; }
.hero p { font-size: 1.1rem; margin-bottom: 1.75rem; color: #e2e8f0; }
.hero-btns { display: flex; justify-content: center; gap: 0.9rem; flex-wrap: wrap; }

.btn-primary {
  background: var(--accent); color: #fff;
  padding: 0.75rem 1.6rem; border-radius: 6px; font-weight: 700;
  transition: background 0.2s; display: inline-block; border: none; cursor: pointer;
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary {
  background: transparent; color: #fff; border: 2px solid #fff;
  padding: 0.7rem 1.6rem; border-radius: 6px; font-weight: 700;
  transition: all 0.2s; display: inline-block;
}
.btn-secondary:hover { background: #fff; color: var(--dark); }
.btn-outline {
  background: transparent; color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
  padding: 0.65rem 1.4rem; border-radius: 6px; font-weight: 600;
  transition: all 0.2s; display: inline-block;
}
.btn-outline:hover { background: var(--primary-blue); color: #fff; }

/* Page header */
.page-header {
  background: var(--light-bg); border-bottom: 1px solid var(--border);
  padding: 2.5rem 1.5rem; text-align: center;
}
.page-header h1 { font-size: 2rem; margin-bottom: 0.4rem; }
.page-header p { color: var(--gray); }

/* Sections */
.section { padding: 4rem 1.5rem; max-width: 1200px; margin: 0 auto; }
.section-title { text-align: center; margin-bottom: 2.25rem; }
.section-title h2 {
  font-size: 1.9rem; position: relative; display: inline-block;
  padding-bottom: 0.45rem;
}
.section-title h2::after {
  content: ''; position: absolute; width: 50px; height: 3px;
  background: var(--accent); bottom: 0; left: 50%; transform: translateX(-50%);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
}
.service-card {
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  padding: 1.6rem 1.4rem; text-align: center;
  transition: transform 0.25s, box-shadow 0.25s;
}
.service-card:hover {
  transform: translateY(-4px); box-shadow: 0 12px 24px rgba(0,0,0,0.07);
}
.service-card i { font-size: 2.2rem; color: var(--primary-blue); margin-bottom: 1rem; }
.service-card h3 { font-size: 1.2rem; margin-bottom: 0.6rem; }
.service-card p { color: var(--gray); font-size: 0.92rem; text-align: left; }

.promo-banner {
  background: var(--light-bg); border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.promo-container {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 2.25rem 1.5rem; flex-wrap: wrap; gap: 1.4rem;
}
.promo-text { flex: 1; min-width: 240px; }
.promo-text .tag {
  background: var(--accent); color: #fff; padding: 0.15rem 0.65rem;
  border-radius: 4px; font-size: 0.78rem; font-weight: 700;
  display: inline-block; margin-bottom: 0.4rem;
}
.promo-text h3 { font-size: 1.4rem; margin-bottom: 0.35rem; }
.promo-price { font-size: 1.9rem; color: var(--primary-blue); font-weight: 700; }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.2rem;
}
.portfolio-item {
  position: relative; border-radius: 10px; overflow: hidden; height: 200px;
}
.portfolio-item img {
  width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s;
}
.portfolio-item:hover img { transform: scale(1.06); }
.portfolio-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(transparent 40%, rgba(0,0,0,0.75));
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.1rem; color: #fff;
}

.contact-box {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem;
  background: var(--light-bg); padding: 2.25rem; border-radius: 12px;
}
.info-item {
  display: flex; align-items: flex-start; gap: 0.75rem;
  margin-bottom: 0.9rem; font-size: 0.98rem;
}
.info-item i { color: var(--primary-blue); width: 20px; margin-top: 3px; }
.form-group { margin-bottom: 0.8rem; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 0.7rem 0.85rem;
  border: 1px solid var(--border); border-radius: 6px;
  font-size: 0.95rem; font-family: inherit;
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-group label {
  display: block; font-size: 0.88rem; font-weight: 500;
  margin-bottom: 0.3rem; color: #334155;
}

/* Calculator */
.calc-card {
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  padding: 1.75rem; max-width: 560px; margin: 0 auto;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}
.calc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; margin-bottom: 0.9rem; }
.calc-result {
  background: var(--light-bg); border-radius: 8px; padding: 1.1rem;
  margin-top: 1rem; text-align: center;
}
.calc-result .price { font-size: 1.8rem; font-weight: 700; color: var(--accent); }

/* Cart */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th, .cart-table td {
  padding: 0.85rem; text-align: left; border-bottom: 1px solid var(--border);
}
.cart-table th { background: var(--light-bg); font-size: 0.88rem; }
.cart-empty { text-align: center; padding: 3rem 1rem; color: var(--gray); }
.cart-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.5rem; justify-content: flex-end; }

/* Footer */
footer {
  background: var(--primary); color: #94a3b8;
  padding: 2.25rem 1.5rem 1rem; margin-top: 2rem;
}
.footer-container {
  max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: space-between; flex-wrap: wrap;
  gap: 1.75rem; padding-bottom: 1.5rem; border-bottom: 1px solid #334155;
}
.footer-about { max-width: 360px; }
.footer-about h4, .footer-links h4 { color: #fff; margin-bottom: 0.75rem; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 0.35rem; }
.footer-links a:hover { color: #fff; }
.copyright {
  text-align: center; padding-top: 1.1rem; font-size: 0.85rem;
}

/* WhatsApp float */
.whatsapp-float {
  position: fixed; bottom: 22px; right: 22px;
  width: 54px; height: 54px; background: var(--whatsapp);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(37,211,102,0.4); z-index: 999;
  transition: transform 0.2s;
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float i { color: #fff; font-size: 1.6rem; }

/* Content helpers */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.about-content p { margin-bottom: 1rem; color: #475569; }
.materials-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}
.material-card {
  border: 1px solid var(--border); border-radius: 8px; padding: 1.1rem;
}
.material-card h4 { margin-bottom: 0.35rem; font-size: 1rem; }
.material-card p { font-size: 0.88rem; color: var(--gray); }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .menu-toggle { display: block; }
  .btn-wa span { display: none; }
  .hero h1 { font-size: 1.75rem; }
  .hero { padding: 3.5rem 1.25rem; }
  .contact-box { grid-template-columns: 1fr; padding: 1.4rem; }
  .grid-2 { grid-template-columns: 1fr; }
  .calc-row { grid-template-columns: 1fr; }
  .logo-area img { height: 34px; }
}


/* WhatsApp / Email action buttons */
.btn-whatsapp {
  background: #25d366 !important;
  color: #fff !important;
  border: 2px solid #25d366 !important;
  padding: 0.75rem 1.4rem;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: background 0.2s, border-color 0.2s;
  text-decoration: none;
}
.btn-whatsapp:hover {
  background: #1ebc57 !important;
  border-color: #1ebc57 !important;
  color: #fff !important;
}
.btn-email {
  background: #910782 !important;
  color: #fff !important;
  border: 2px solid #910782 !important;
  padding: 0.75rem 1.4rem;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: background 0.2s, border-color 0.2s;
  text-decoration: none;
}
.btn-email:hover {
  background: #6b0560 !important;
  border-color: #6b0560 !important;
  color: #fff !important;
}


/* Image performance */
img {
  max-width: 100%;
  height: auto;
}
.portfolio-item img,
.pcard-img img,
.banner-slide img {
  background: #e2e8f0;
}
.pcard-img {
  aspect-ratio: 4 / 3;
  height: auto;
  min-height: 140px;
}
.portfolio-item {
  content-visibility: auto;
  contain-intrinsic-size: 250px 200px;
}
