:root {
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --paper: #ffffff;
  --soft: #f6f8fb;
  --soft-2: #eef2f7;
  --brand: #183a5a;
  --brand-2: #0b1f35;
  --accent: #b89455;
  --accent-2: #d4af6a;
  --danger: #a61c1c;
  --success: #166534;
  --shadow: 0 24px 70px rgba(15, 23, 42, .12);
  --shadow-soft: 0 14px 42px rgba(15, 23, 42, .08);
  --radius: 22px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", "Segoe UI", "Noto Sans TC", "Microsoft JhengHei", Arial, sans-serif;
  color: var(--ink);
  background: #f7f9fc;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
.container { width: min(1180px, calc(100% - 36px)); margin: 0 auto; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-weight: 800;
  letter-spacing: .16em;
  font-size: 12px;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 32px; height: 2px; background: var(--accent); display: inline-block; }
.section-title { font-size: clamp(30px, 4vw, 46px); line-height: 1.12; margin: 12px 0 14px; letter-spacing: -.04em; }
.section-lead { color: var(--muted); font-size: 17px; max-width: 740px; margin: 0; }
.topbar {
  background: #081629;
  color: rgba(255,255,255,.78);
  font-size: 13px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.topbar-inner {
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.topbar span { display: inline-flex; align-items: center; gap: 8px; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(226,232,240,.9);
}
.navbar {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand-link { display: inline-flex; align-items: center; gap: 14px; min-width: 190px; }
.logo-mark {
  width: 48px; height: 48px; border-radius: 14px; object-fit: cover;
  box-shadow: 0 8px 26px rgba(15, 23, 42, .16);
  background: #fff;
}
.brand-name { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name strong { font-size: 18px; letter-spacing: -.02em; }
.brand-name small { color: var(--muted); font-weight: 600; margin-top: 3px; }
.nav-menu { display: flex; align-items: center; gap: 4px; }
.nav-menu a {
  padding: 10px 12px;
  color: var(--ink-2);
  font-weight: 700;
  border-radius: 999px;
}
.nav-menu a:hover, .nav-menu a.active { color: var(--brand); background: #eef6ff; }
.nav-actions { display: flex; align-items: center; gap: 9px; }
.btn {
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 16px;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { color: white; background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: 0 14px 28px rgba(24,58,90,.22); }
.btn-primary:hover { box-shadow: 0 18px 34px rgba(24,58,90,.30); }
.btn-gold { color: #101827; background: linear-gradient(135deg, var(--accent-2), var(--accent)); box-shadow: 0 14px 28px rgba(184,148,85,.23); }
.btn-light { color: var(--brand); background: #eef6ff; }
.btn-outline { background: white; color: var(--ink-2); border: 1px solid var(--line); }
.btn-outline:hover { background: var(--soft); }
.btn-small { padding: 8px 12px; font-size: 13px; }
.btn-cart { position: relative; }
.cart-count {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--danger);
  color: white;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.menu-toggle { display: none; width: 42px; height: 42px; border-radius: 13px; border: 1px solid var(--line); background: white; cursor: pointer; }
.menu-toggle span { display: block; width: 19px; height: 2px; background: var(--ink); margin: 4px auto; border-radius: 2px; }
.hero {
  position: relative;
  color: white;
  overflow: hidden;
  background-image: url('../images/hero-bg.svg');
  background-size: cover;
  background-position: center;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 75% 25%, rgba(212,175,106,.22), transparent 38%), linear-gradient(90deg, rgba(6,13,26,.92) 0%, rgba(6,13,26,.70) 47%, rgba(6,13,26,.24) 100%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(350px, .72fr);
  gap: 56px;
  align-items: center;
  padding: 82px 0 76px;
}
.hero h1 { font-size: clamp(42px, 6.4vw, 78px); line-height: .98; letter-spacing: -.065em; margin: 18px 0 20px; }
.hero p { color: rgba(255,255,255,.80); font-size: 18px; max-width: 710px; margin: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 34px; }
.hero-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  max-width: 720px;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(12px);
}
.hero-note b { color: #fff; }
.hero-note span { color: rgba(255,255,255,.74); font-size: 14px; }
.hero-card {
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 34px;
  padding: 22px;
  box-shadow: 0 38px 90px rgba(0,0,0,.25);
  backdrop-filter: blur(16px);
}
.hero-logo-wrap { background: rgba(255,255,255,.96); border-radius: 26px; padding: 16px; }
.hero-logo-wrap img { border-radius: 20px; }
.hero-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 13px; }
.metric { background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.14); border-radius: 18px; padding: 13px; }
.metric strong { display: block; font-size: 20px; color: white; }
.metric span { display: block; color: rgba(255,255,255,.66); font-size: 12px; margin-top: 3px; }
.section { padding: 76px 0; }
.section-header { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.category-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.category-card {
  min-height: 178px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}
.category-card::before { content: ""; position: absolute; inset: auto -40px -65px auto; width: 150px; height: 150px; border-radius: 50%; background: linear-gradient(135deg, rgba(24,58,90,.10), rgba(184,148,85,.14)); }
.category-card h3 { margin: 0 0 10px; font-size: 20px; letter-spacing: -.02em; }
.category-card p { margin: 0; color: var(--muted); font-size: 14px; }
.category-card .icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: #eef6ff; color: var(--brand); font-weight: 900; margin-bottom: 18px; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.product-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
}
.product-image { position: relative; aspect-ratio: 1.58 / 1; background: #fff; overflow: hidden; }
.product-image img { width: 100%; height: 100%; object-fit: contain; padding: 12px; transition: transform .3s ease; }
.product-card:hover .product-image img { transform: scale(1.035); }
.product-badge { position: absolute; top: 14px; left: 14px; display: inline-flex; border-radius: 999px; padding: 6px 10px; font-size: 12px; font-weight: 900; color: #fff; background: rgba(8,22,41,.88); }
.product-body { padding: 19px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.product-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; font-weight: 800; }
.product-body h3 { margin: 0; font-size: 21px; line-height: 1.18; letter-spacing: -.03em; }
.product-body p { margin: 0; color: var(--muted); font-size: 14px; }
.model-list { display: flex; gap: 7px; flex-wrap: wrap; }
.model-chip { border: 1px solid var(--line); background: var(--soft); border-radius: 999px; padding: 5px 8px; color: var(--ink-2); font-weight: 800; font-size: 12px; }
.product-actions { display: grid; grid-template-columns: 1fr auto; gap: 9px; margin-top: auto; }
.split-band {
  background: linear-gradient(135deg, #0b1f35, #173a5d);
  color: white;
  border-radius: 34px;
  padding: 40px;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(320px, .75fr);
  gap: 34px;
  align-items: center;
  box-shadow: var(--shadow);
}
.split-band p { color: rgba(255,255,255,.76); margin: 0; }
.check-list { display: grid; gap: 12px; margin: 24px 0 0; padding: 0; list-style: none; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; color: rgba(255,255,255,.82); }
.check-list li::before { content: "✓"; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; color: #102033; background: var(--accent-2); font-weight: 900; flex: 0 0 auto; }
.quote-box { background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.14); border-radius: 24px; padding: 22px; }
.quote-row { display: flex; justify-content: space-between; gap: 18px; padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.82); }
.quote-row:last-child { border-bottom: 0; }
.quote-row b { color: white; }
.page-hero { padding: 62px 0; color: white; background: linear-gradient(135deg, #071326, #183a5a); position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -120px; top: -140px; width: 420px; height: 420px; border-radius: 50%; background: rgba(212,175,106,.18); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { margin: 12px 0 12px; font-size: clamp(34px, 5vw, 58px); line-height: 1.05; letter-spacing: -.05em; }
.page-hero p { color: rgba(255,255,255,.76); max-width: 760px; font-size: 18px; margin: 0; }
.catalog-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 28px; align-items: start; }
.filters {
  position: sticky;
  top: 100px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 18px;
  box-shadow: var(--shadow-soft);
}
.filter-title { font-weight: 900; margin: 0 0 14px; }
.search-box { width: 100%; border: 1px solid var(--line); border-radius: 14px; padding: 12px 13px; outline: none; }
.search-box:focus { border-color: #9cb7d2; box-shadow: 0 0 0 4px rgba(24,58,90,.10); }
.filter-list { display: grid; gap: 8px; margin-top: 16px; }
.filter-btn { border: 0; background: var(--soft); color: var(--ink-2); border-radius: 14px; padding: 11px 12px; text-align: left; cursor: pointer; font-weight: 800; display: flex; justify-content: space-between; gap: 10px; }
.filter-btn.active, .filter-btn:hover { background: #e9f3ff; color: var(--brand); }
.catalog-top { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 18px; }
.catalog-top p { color: var(--muted); margin: 0; }
.detail-layout { display: grid; grid-template-columns: minmax(0, .92fr) minmax(370px, .70fr); gap: 34px; align-items: start; }
.detail-media { background: white; border: 1px solid var(--line); border-radius: 30px; padding: 22px; box-shadow: var(--shadow-soft); }
.detail-media img { width: 100%; border-radius: 22px; background: white; }
.detail-panel { background: white; border: 1px solid var(--line); border-radius: 30px; padding: 28px; box-shadow: var(--shadow-soft); }
.detail-panel .code { display: inline-flex; color: var(--brand); background: #eef6ff; padding: 7px 10px; border-radius: 999px; font-size: 13px; font-weight: 900; }
.detail-panel h1 { margin: 16px 0 8px; font-size: clamp(32px, 4vw, 48px); line-height: 1.05; letter-spacing: -.05em; }
.detail-panel p { color: var(--muted); }
.option-label { display: block; margin: 18px 0 8px; font-weight: 900; color: var(--ink-2); }
.select, .qty-input { width: 100%; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; background: white; outline: none; }
.qty-row { display: grid; grid-template-columns: 1fr 130px; gap: 12px; }
.spec-table { width: 100%; border-collapse: collapse; overflow: hidden; border-radius: 18px; background: white; border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.spec-table th, .spec-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { width: 32%; background: #f8fafc; color: var(--ink-2); }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.notice { border-radius: 20px; padding: 16px 18px; background: #fff7e6; color: #6c4b13; border: 1px solid #f3dfad; }
.notice strong { color: #3f2b09; }
.cart-list { display: grid; gap: 14px; }
.cart-item { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: 22px; background: white; box-shadow: var(--shadow-soft); }
.cart-item img { width: 96px; height: 72px; object-fit: contain; border-radius: 14px; background: #f8fafc; }
.cart-item h3 { margin: 0 0 4px; font-size: 18px; }
.cart-item p { margin: 0; color: var(--muted); font-size: 13px; }
.cart-controls { display: flex; gap: 8px; align-items: center; }
.icon-btn { border: 1px solid var(--line); background: white; width: 38px; height: 38px; border-radius: 13px; cursor: pointer; font-weight: 900; }
.cart-summary { background: white; border: 1px solid var(--line); border-radius: 28px; padding: 24px; box-shadow: var(--shadow-soft); }
.summary-line { display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 13px 0; }
.summary-line:last-child { border-bottom: 0; }
.empty-state { text-align: center; padding: 48px 28px; border: 1px dashed #cbd5e1; border-radius: 24px; background: #fff; }
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.contact-card { background: white; border: 1px solid var(--line); border-radius: 24px; padding: 22px; box-shadow: var(--shadow-soft); }
.contact-card h3 { margin: 0 0 8px; }
.contact-card p { margin: 0; color: var(--muted); }
.footer { background: #071326; color: rgba(255,255,255,.74); padding: 48px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.1fr .7fr .7fr .9fr; gap: 30px; }
.footer h3, .footer h4 { color: white; margin: 0 0 12px; }
.footer p, .footer a { color: rgba(255,255,255,.70); }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.10); margin-top: 30px; padding-top: 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; }
.modal-backdrop { position: fixed; inset: 0; background: rgba(4,10,20,.58); z-index: 70; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-backdrop.show { display: flex; }
.modal { width: min(520px, 100%); background: white; border-radius: 28px; box-shadow: 0 30px 100px rgba(0,0,0,.28); overflow: hidden; }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.modal-header h3 { margin: 0; }
.modal-body { padding: 24px; }
.modal-close { border: 0; background: var(--soft); width: 38px; height: 38px; border-radius: 13px; cursor: pointer; font-size: 18px; }
.login-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.login-card { border: 1px solid var(--line); border-radius: 20px; padding: 18px; background: white; cursor: pointer; text-align: left; }
.login-card:hover, .login-card.active { border-color: #9cb7d2; background: #f2f8ff; }
.login-card strong { display: block; margin-bottom: 6px; }
.login-card span { color: var(--muted); font-size: 13px; }
.form-grid { display: grid; gap: 12px; margin-top: 16px; }
.form-grid input, .form-grid textarea { width: 100%; border: 1px solid var(--line); border-radius: 14px; padding: 12px 13px; }
.floating-wa { position: fixed; right: 22px; bottom: 22px; z-index: 55; }
.wa-btn { display: inline-flex; align-items: center; gap: 9px; color: white; background: #128c7e; padding: 14px 18px; border-radius: 999px; box-shadow: 0 18px 44px rgba(18,140,126,.28); font-weight: 900; }
.wa-btn::before { content: "☏"; font-size: 19px; }
.hidden { display: none !important; }
.mt-2 { margin-top: 14px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 34px; }
.two-col { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 28px; align-items: start; }
@media (max-width: 1040px) {
  .nav-menu { display: none; }
  .menu-toggle { display: inline-block; }
  .nav-menu.open { position: fixed; left: 18px; right: 18px; top: 116px; display: grid; gap: 6px; padding: 16px; border-radius: 22px; background: white; border: 1px solid var(--line); box-shadow: var(--shadow); }
  .hero-inner, .split-band, .catalog-layout, .detail-layout, .two-col { grid-template-columns: 1fr; }
  .category-grid, .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters { position: static; }
  .footer-grid, .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .topbar { display: none; }
  .navbar { min-height: 66px; }
  .brand-name small { display: none; }
  .logo-mark { width: 42px; height: 42px; }
  .nav-actions .login-btn { display: none; }
  .hero-inner { padding: 58px 0; gap: 32px; }
  .hero-card-grid, .category-grid, .product-grid, .footer-grid, .contact-grid, .login-options { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .section-header, .catalog-top { align-items: start; flex-direction: column; }
  .split-band { padding: 26px; border-radius: 28px; }
  .cart-item { grid-template-columns: 74px 1fr; }
  .cart-item img { width: 74px; height: 58px; }
  .cart-controls { grid-column: 1 / -1; justify-content: flex-end; }
  .floating-wa { right: 14px; bottom: 14px; }
  .wa-btn { padding: 12px 14px; font-size: 14px; }
}
