:root {
  color-scheme: light only;
  --brand: #4A6A80;
  --brand-deep: #354E60;
  --brand-soft: #EEF3F6;
  --white: #FFFFFF;
  --silver: #F3F3F0;
  --bar: #EAEAE6;
  --line: #DCDCD6;
  --line-soft: #EFEFEB;
  --ink: #2B2E30;
  --body: #535353;
  --muted: #8A8D90;
  --max-w: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Noto Sans TC", "Microsoft JhengHei", -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  color: var(--body);
  background: var(--white);
  line-height: 1.75;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--white);
  box-shadow: 0 1px 0 var(--line);
}

.nav-primary-bar {
  background: var(--bar);
  border-bottom: 1px solid var(--line);
}

.nav-primary-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  min-height: 54px;
  gap: 8px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  padding-right: 16px;
  flex-shrink: 0;
}

.brand-logo svg {
  width: 96px;
  height: auto;
  display: block;
}

.primary-menu {
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  scrollbar-width: none;
}

.primary-menu::-webkit-scrollbar { display: none; }

.primary-menu a {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  font-size: 13.5px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--body);
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease;
}

.primary-menu a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 1px;
  background: #CCCCCC;
}

.primary-menu a:hover { color: var(--brand); }

.primary-menu a.active {
  background: var(--white);
  color: var(--brand);
  font-weight: 500;
}

.primary-menu a.active::before,
.primary-menu a.active + a::before { display: none; }

.header-utility {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-left: 8px;
  flex-shrink: 0;
}

.shop-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 14px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--white);
  background: var(--brand);
  border: 1px solid var(--brand);
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.shop-btn:hover {
  background: var(--brand-deep);
  border-color: var(--brand-deep);
}

.shop-btn.outline {
  background: var(--white);
  color: var(--brand);
}

.shop-btn.outline:hover {
  background: var(--brand-soft);
  color: var(--brand-deep);
}

/* ===== Home Cover (Ultra-Minimalist Museum-Grade Cover) ===== */
.home-cover {
  background: var(--white);
  min-height: calc(100vh - 170px);
  display: flex;
  align-items: center;
}

.home-cover-inner {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 40px 32px;
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  align-items: center;
  gap: 32px;
}

.cover-copy {
  padding-left: 16px;
}

.cover-rule {
  width: 36px;
  height: 1.5px;
  background: var(--brand);
  margin-bottom: 28px;
}

.cover-copy h1 {
  margin: 0;
  font-size: clamp(26px, 2.8vw, 38px);
  font-weight: 300;
  letter-spacing: 0.2em;
  line-height: 1.7;
  color: var(--ink);
}

.cover-copy h1 span {
  display: block;
  margin-top: 6px;
  font-weight: 400;
  color: var(--brand);
}

.cover-visual {
  background: var(--white);
  overflow: hidden;
}

.cover-visual img {
  width: 100%;
  height: auto;
  display: block;
}

/* ===== Sub-Category Filter Strip (e.g. Faucets: Shower / Basin / Kitchen) ===== */
.sub-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 26px;
  margin-bottom: 32px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.sub-filter-btn {
  background: transparent;
  border: none;
  padding: 4px 0 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--muted);
  cursor: pointer;
  position: relative;
  transition: color 0.15s ease;
}

.sub-filter-btn:hover {
  color: var(--ink);
}

.sub-filter-btn.active {
  color: var(--brand);
  font-weight: 500;
}

.sub-filter-btn.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -15px;
  height: 2px;
  background: var(--brand);
}

.prod-card.hidden {
  display: none;
}

/* ===== Category Design Banner (Pure Visual, Minimal Title Only) ===== */
.cat-banner {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--silver);
  display: flex;
  align-items: center;
}

.cat-banner-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
}

.cat-banner-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.cat-banner h1 {
  margin: 0 0 8px;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 400;
  letter-spacing: 0.14em;
  color: var(--ink);
}

.cat-banner p {
  margin: 0;
  max-width: 620px;
  font-size: 14px;
  font-weight: 300;
  color: var(--body);
  line-height: 1.75;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== Sections ===== */
.sec-block {
  padding: 52px 0;
  background: var(--white);
}

.sec-block.alt {
  background: var(--silver);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.sec-title {
  margin: 0 0 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--ink);
}

/* ===== Home 6-Category Wall ===== */
.wall-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 24px;
}

.wall-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 26px 18px 22px;
  background: var(--white);
  border: 1px solid var(--line-soft);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.wall-item:hover {
  border-color: #C5D2DC;
  transform: translateY(-2px);
}

.wall-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 220px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.wall-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.wall-item h2 {
  margin: 0 0 4px;
  font-size: 16.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--ink);
}

.wall-price {
  font-family: "Outfit", "Noto Sans TC", sans-serif;
  font-size: 13px;
  color: var(--brand);
  letter-spacing: 0.05em;
}

/* ===== Minimalist Product Gallery (NO per-card buttons, Code + Price on 1 row) ===== */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 24px;
}

.prod-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line-soft);
}

.prod-thumb {
  background: var(--white);
  aspect-ratio: 1 / 1;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #F3F3EF;
}

.prod-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.prod-body {
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.prod-head-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.prod-code-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.prod-code {
  font-family: "Outfit", sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--brand);
}

.swatches {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.swatch-dot {
  width: 14px;
  height: 14px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(43, 46, 48, 0.25);
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
  flex-shrink: 0;
}

.swatch-dot:hover {
  transform: scale(1.16);
}

.swatch-dot.active {
  box-shadow: 0 0 0 2px var(--white), 0 0 0 3.5px var(--brand);
}

.prod-price {
  font-family: "Outfit", "Noto Sans TC", sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}

.prod-body h2 {
  margin: 0 0 8px;
  font-size: 15.5px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.4;
}

.prod-desc {
  margin: 0;
  font-size: 13px;
  font-weight: 300;
  color: var(--body);
  line-height: 1.7;
}

/* ===== VIS V3 Visual 3-Step Decision & Conclusion Cards (Human + GEO) ===== */
.step-flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  margin-bottom: 20px;
}

.step-node {
  display: flex;
  align-items: center;
  gap: 14px;
}

.step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand-soft);
  border: 1.5px solid var(--brand);
  color: var(--brand);
  font-family: "Outfit", sans-serif;
  font-size: 15px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-node strong {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}

.step-node span {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
}

.decision-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 20px;
}

.decision-grid.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

.decision-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.decision-kicker {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}

.decision-metric {
  font-family: "Outfit", "Noto Sans TC", sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--brand);
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}

.decision-card h3 {
  margin: 0 0 6px;
  font-size: 15.5px;
  font-weight: 500;
  color: var(--ink);
}

.decision-card p {
  margin: 0;
  font-size: 13px;
  font-weight: 300;
  color: var(--body);
  line-height: 1.7;
}

.conclusion-box {
  background: var(--white);
  border: 1.5px solid var(--brand);
  padding: 20px 24px;
}

.conclusion-box h3 {
  margin: 0 0 10px;
  font-size: 15.5px;
  font-weight: 500;
  color: var(--brand);
}

.conclusion-box ul {
  margin: 0;
  padding-left: 18px;
  font-size: 13.5px;
  color: var(--body);
  line-height: 1.9;
}

/* ===== GEO Spec Table & FAQ ===== */
.spec-table-wrap { overflow-x: auto; }

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  background: var(--white);
  border-top: 1.5px solid var(--brand);
}

.spec-table th,
.spec-table td {
  padding: 13px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.spec-table th {
  font-weight: 500;
  color: var(--ink);
  background: #F8F8F6;
  white-space: nowrap;
}

.spec-table td {
  color: var(--body);
  font-weight: 300;
}

.spec-table .t-code {
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  color: var(--brand);
  white-space: nowrap;
}

.tip-box {
  margin-top: 20px;
  padding: 16px 20px;
  background: var(--white);
  border-left: 3px solid var(--brand);
  font-size: 13.5px;
  color: var(--body);
}

.tip-box strong {
  color: var(--ink);
  font-weight: 500;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--line);
  background: var(--white);
}

.faq-item summary {
  padding: 16px 20px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "＋";
  font-size: 16px;
  color: var(--brand);
  flex-shrink: 0;
}

.faq-item[open] summary::after { content: "－"; }

.faq-answer {
  padding: 14px 20px 18px;
  font-size: 13.5px;
  font-weight: 300;
  color: var(--body);
  line-height: 1.8;
  border-top: 1px solid var(--line-soft);
}

/* ===== Footer ===== */
.site-footer {
  background: var(--bar);
  border-top: 1px solid var(--line);
  padding: 28px 0 34px;
  font-size: 12.5px;
  color: var(--body);
  letter-spacing: 0.05em;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-brand-mini {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 500;
  margin-bottom: 6px;
}

.footer-brand-mini svg { width: 22px; height: 22px; }

.footer-meta {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links a:hover { color: var(--brand); }

/* ===== Mobile Sticky Bar ===== */
.mobile-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  padding: 9px 14px;
  gap: 10px;
}

.mobile-bar a {
  flex: 1;
  text-align: center;
  padding: 9px 10px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.mobile-bar .m-fill { background: var(--brand); color: var(--white); }
.mobile-bar .m-outline { border: 1px solid var(--brand); color: var(--brand); background: var(--white); }

@media (max-width: 1040px) {
  .home-cover { min-height: auto; }
  .home-cover-inner { grid-template-columns: 1fr; gap: 28px; padding: 40px 24px 32px; }
  .cover-copy { padding-left: 0; }
  .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .wall-grid { grid-template-columns: repeat(2, 1fr); }
  .step-flow, .decision-grid, .decision-grid.cols-4 { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .container { padding: 0 16px; }
  .nav-primary-inner { padding: 0 12px; }
  .brand-logo svg { width: 80px; }
  .primary-menu a { padding: 0 11px; font-size: 12.5px; }
  .header-utility { display: none; }
  .cat-banner { height: 180px; }
  .sec-block { padding: 38px 0; }
  .wall-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .prod-grid { grid-template-columns: repeat(2, 1fr); gap: 14px 12px; }
  .prod-thumb { padding: 12px; }
  .prod-body { padding: 12px; }
  .prod-code, .prod-price { font-size: 13.5px; }
  .prod-body h2 { font-size: 14px; }
  .site-footer { padding-bottom: 76px; }
  .mobile-bar { display: flex; }
}
