:root {
  --navy: #2d3e81;
  --ink: #111;
  --text: #484848;
  --muted: #767676;
  --line: #8a8a8a;
  --line-soft: #bfbfbf;
  --bg: #fbf7f3;
  --bg-tab: #f2ede9;
  --bg-warm: #f4eae2;
  --bg-card: #fdf5ef;
  --wrap: 1360px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
.wrap { width: min(100% - 48px, var(--wrap)); margin-inline: auto; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
.ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.600; stroke-linecap: round; stroke-linejoin: round; }

/* 頂部 */
.announce { display: block; background: var(--navy); color: #fff; text-align: center; text-decoration: none; padding: 10px 16px; font-size: 15px; letter-spacing: .02em; }
.site-header { background: var(--bg); position: sticky; top: 0; z-index: 20; }
.header-inner { display: flex; align-items: center; gap: 32px; height: 92px; }
.logo img { width: 190px; height: auto; }
.nav { display: flex; gap: clamp(28px, 5vw, 96px); margin-inline: auto; }
.nav a { text-decoration: none; color: var(--text); font-size: 16px; padding: 6px 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.nav a:hover, .nav a[aria-current] { border-color: var(--navy); color: var(--navy); }
.tools { display: flex; gap: 6px; }
.tools button { width: 44px; height: 44px; display: grid; place-items: center; color: var(--text); position: relative; }
.tools button:hover { color: var(--navy); }
.cart-count { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--navy); color: #fff; font-size: 11px; line-height: 18px; text-align: center; }
.breadcrumb { background: #eaeaea; color: var(--text); font-size: 15px; padding: 12px 0; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* 商品主區 */
.product { display: grid; grid-template-columns: minmax(0, 1.150fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); padding-block: 48px 72px; align-items: start; }
.gallery { position: sticky; top: 116px; padding-left: 116px; }
.thumbs { position: absolute; left: 0; top: 0; bottom: 0; width: 96px; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; scrollbar-width: thin; }
.thumbs button { border: 2px solid transparent; opacity: .7; transition: opacity .2s, border-color .2s; flex: none; }
.thumbs button img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.thumbs button:hover { opacity: 1; }
.thumbs button[aria-selected="true"] { border-color: var(--navy); opacity: 1; }
.main-img { background: var(--bg-warm); overflow: hidden; }
.main-img img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; transition: opacity .25s; }
.main-img img.fading { opacity: 0; }

.eyebrow { color: var(--muted); font-size: 15px; }
h1 { font-size: clamp(24px, 2.200vw, 30px); font-weight: 400; line-height: 1.400; margin-block: 4px 22px; }
.lead, .checks { font-weight: 300; font-size: 16px; line-height: 1.900; }
.checks { margin-top: 18px; }
.checks li { padding-left: 1.300em; position: relative; }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--navy); font-weight: 500; }
.notice { margin-top: 32px; padding: 4px 0 4px 20px; border-left: 8px solid var(--navy); font-weight: 300; font-size: 15px; line-height: 1.850; display: grid; gap: 14px; }
.notice strong { font-weight: 500; }
.price { margin-top: 30px; font-size: 26px; font-weight: 700; letter-spacing: .01em; }
.rating { font-size: 15px; margin-top: 2px; }
.stars { letter-spacing: 1px; font-size: 14px; }
.rating a { color: var(--ink); }
.buy { margin-top: 18px; max-width: 480px; display: grid; }
.buy label { color: var(--muted); font-size: 15px; margin: 12px 0 6px; }
.select { position: relative; }
.select select { width: 100%; height: 48px; appearance: none; border: 1px solid var(--line); background: #fff; padding: 0 44px 0 16px; font: inherit; font-size: 15px; border-radius: 0; color: var(--ink); }
.select .ico { position: absolute; right: 14px; top: 13px; pointer-events: none; }
.qty { display: grid; grid-template-columns: 48px 1fr 48px; height: 48px; border: 1px solid var(--line); background: #fff; }
.qty button { font-size: 24px; font-weight: 300; line-height: 1; }
.qty button:hover { background: var(--bg-tab); }
.qty input { border: 0; border-inline: 1px solid var(--line); text-align: center; font: inherit; width: 100%; -moz-appearance: textfield; border-radius: 0; background: #fff; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.btn-cart { margin-top: 22px; height: 50px; background: var(--navy); color: #fff; font-size: 16px; letter-spacing: .08em; transition: background .2s; }
.btn-cart:hover { background: #22306a; }

/* 分頁 */
.details { background: var(--bg-tab); }
.tabs { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--muted); position: relative; }
.tabs button { padding: 26px 8px 18px; font-size: clamp(16px, 1.500vw, 22px); font-weight: 500; color: var(--line); position: relative; transition: color .2s; }
.tabs button:hover { color: var(--text); }
.tabs button[aria-selected="true"] { color: var(--ink); }
.tabs button::after { content: ""; position: absolute; left: 50%; bottom: -2px; width: 0; height: 4px; background: var(--navy); transform: translateX(-50%); transition: width .25s; }
.tabs button[aria-selected="true"]::after { width: min(60%, 150px); }
.panel[hidden] { display: none; }
.panel { animation: fade .35s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } }

/* 六大特色 */
.features { display: grid; grid-template-columns: repeat(7, 1fr); gap: 16px; padding-block: 72px 56px; }
.features button { display: grid; justify-items: center; gap: 4px; width: 100%; }
.ring { width: clamp(80px, 7.400vw, 116px); aspect-ratio: 1; border: 1.500px solid var(--text); border-radius: 50%; display: grid; place-items: center; margin-bottom: 14px; transition: background .2s, border-color .2s, transform .2s; }
.ring svg { width: 46%; height: 46%; fill: none; stroke: var(--navy); stroke-width: 1.600; stroke-linecap: round; stroke-linejoin: round; transition: stroke .2s; }
.features button:hover .ring { background: var(--navy); border-color: var(--navy); transform: translateY(-3px); }
.features button:hover .ring svg { stroke: #fff; }
.features b { font-weight: 400; font-size: clamp(17px, 1.550vw, 22px); }
.features small { color: var(--muted); font-size: 13px; }

/* 結構 + 材質分頁 */
.structure { display: grid; grid-template-columns: minmax(0, .850fr) minmax(0, 1fr); gap: 40px; align-items: center; padding-bottom: 88px; scroll-margin-top: 110px; }
.structure-img { position: relative; }
.structure-img img { width: 100%; height: auto; mix-blend-mode: multiply; }
.pointer { position: absolute; left: var(--x, 90%); right: -40px; top: var(--y, 10%); height: 2px; margin-top: -1px; background: var(--navy); transition: top .45s cubic-bezier(.4, 0, .2, 1), left .45s cubic-bezier(.4, 0, .2, 1); pointer-events: none; }
.pointer::before { content: ""; position: absolute; left: -2px; top: 50%; transform: translateY(-50%); border: 9px solid transparent; border-right: 14px solid var(--navy); border-left: 0; }
.pointer::after { content: ""; position: absolute; left: -30px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: rgba(45, 62, 129, .180); animation: pulse 1.800s ease-out infinite; }
@keyframes pulse { from { transform: scale(.500); opacity: 1; } to { transform: scale(1.700); opacity: 0; } }
.materials { display: grid; grid-template-columns: minmax(180px, .800fr) minmax(0, 1fr); background: var(--bg-card); border: 1px solid var(--line-soft); min-height: 520px; }
.mat-tabs { display: flex; flex-direction: column; border-right: 1px solid var(--line-soft); }
.mat-tabs button { flex: 1; text-align: left; padding: 14px 24px; font-size: clamp(15px, 1.300vw, 19px); border-bottom: 1px solid var(--line); transition: background .2s, color .2s; line-height: 1.400; }
.mat-tabs button:last-child { border-bottom: 0; }
.mat-tabs button:hover { background: var(--bg-warm); }
.mat-tabs button[aria-selected="true"] { background: var(--navy); color: #fff; }
.mat-panel { padding: 32px 28px; display: flex; flex-direction: column; justify-content: center; gap: 16px; animation: fade .3s ease; }
.mat-panel img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.mat-panel h3 { font-size: clamp(18px, 1.500vw, 22px); font-weight: 500; line-height: 1.450; }
.mat-panel p, .mat-panel li { font-size: 15.500px; font-weight: 300; line-height: 1.850; }
.mat-panel .tag { color: var(--navy); font-weight: 500; font-size: 14px; }
.mat-panel ul { display: grid; gap: 6px; }
.mat-panel li { padding-left: 1em; position: relative; }
.mat-panel li::before { content: ""; position: absolute; left: 0; top: .800em; width: 5px; height: 5px; border-radius: 50%; background: var(--navy); }
.mat-panel li b { font-weight: 500; }

/* 面布橫幅 */
.fabric-banner { background: linear-gradient(rgba(255,255,255,.350), rgba(255,255,255,.350)), url(images/fabric.jpg) center / cover; padding: clamp(64px, 9vw, 150px) 24px; text-align: center; }
.fabric-inner { max-width: 760px; margin-inline: auto; }
.spaced { font-weight: 400; font-size: clamp(24px, 3vw, 44px); letter-spacing: .350em; margin-right: -.350em; line-height: 1.400; }
.fabric-banner h3 { font-size: clamp(18px, 1.700vw, 26px); font-weight: 500; margin-top: 28px; }
.fabric-banner p { font-size: clamp(16px, 1.500vw, 22px); line-height: 1.900; margin-top: 6px; }
.badges { display: flex; justify-content: center; align-items: center; gap: 56px; margin-top: 36px; }
.badges img { height: 110px; width: auto; mix-blend-mode: multiply; }
.badges img:first-child { height: 130px; }
.fabric-banner .badge-note { font-size: 14px; color: var(--text); margin-top: 14px; }

/* 左右分欄 */
.split { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg-warm); }
.split-img img { width: 100%; height: 100%; min-height: 420px; max-height: 760px; object-fit: cover; }
.split-text { align-self: center; padding: 48px clamp(28px, 7vw, 140px); }
.split.reverse .split-img { order: 2; }
.split h3 { font-size: clamp(20px, 1.900vw, 28px); font-weight: 500; margin-bottom: 14px; line-height: 1.500; }
.split p { font-size: clamp(16px, 1.450vw, 21px); line-height: 2; }
.split p + p { margin-top: 18px; }
.segments { display: grid; gap: 18px; }
.segments div { display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: start; }
.segments dt { background: var(--navy); color: #fff; text-align: center; font-size: 15px; padding: 4px 0; margin-top: 5px; letter-spacing: .100em; }
.segments dd { font-size: clamp(15px, 1.300vw, 19px); line-height: 1.900; }

/* 軟硬度 */
.balance { text-align: center; padding-block: clamp(72px, 9vw, 140px); }
.scale { max-width: 900px; margin: 0 auto 72px; color: var(--navy); }
.scale-marks { position: relative; height: 54px; font-weight: 500; }
.scale-marks span { position: absolute; left: calc((var(--p) + .500) * 10%); bottom: 4px; transform: translateX(-50%); font-size: 15px; display: grid; justify-items: center; line-height: 1.300; }
.scale-marks span::after { content: ""; border: 8px solid transparent; border-top: 11px solid var(--navy); border-bottom: 0; margin-top: 5px; }
.scale-marks .me { font-size: 22px; }
.scale-marks .me::after { border-width: 11px; border-top-width: 15px; }
.scale-bar { display: grid; grid-template-columns: repeat(10, 1fr); height: 30px; background: var(--navy); border-radius: 15px; }
.scale-bar i { display: grid; place-items: center; }
.scale-bar i::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.scale-bar i.on { background: #e9edf8; margin-block: -5px; }
.scale-bar i.on::before { background: var(--navy); }
.scale-ends { display: grid; grid-template-columns: 1fr auto 1fr; margin-top: 10px; font-size: 26px; font-weight: 500; padding-inline: 2.500%; }
.scale-ends span:first-child { text-align: left; }
.scale-ends span:last-child { text-align: right; }
.scale-ends .mid { font-size: 20px; letter-spacing: .100em; align-self: center; }
.balance p { text-wrap: pretty; max-width: 860px; margin: 36px auto 0; font-size: clamp(16px, 1.600vw, 23px); font-weight: 500; line-height: 2.100; }

/* 生活 */
.life { display: grid; grid-template-columns: minmax(0, .630fr) minmax(0, 1fr); background: var(--bg-warm); }
.life-img img { width: 100%; height: 100%; object-fit: cover; min-height: 380px; }
.life-text { padding: clamp(40px, 5vw, 88px) clamp(28px, 6vw, 110px); align-self: center; }
.life-text h3 { font-size: clamp(20px, 1.900vw, 28px); font-weight: 500; }
.life-text > p { font-size: clamp(16px, 1.500vw, 22px); margin-top: 6px; }
.life-icons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 44px; text-align: center; }
.life-icons svg { width: 72px; height: 72px; fill: none; stroke: var(--navy); stroke-width: 1.500; stroke-linecap: round; stroke-linejoin: round; margin-inline: auto; }
.life-icons b { display: block; font-size: clamp(18px, 1.700vw, 24px); font-weight: 500; margin-top: 10px; }
.life-icons span { display: block; font-size: 15px; line-height: 1.800; max-width: 15em; margin: 6px auto 0; text-wrap: balance; }

/* 文字型分頁 */
.text-panel { padding-block: 64px 96px; max-width: 980px; }
.text-panel h2 { font-size: 22px; font-weight: 500; padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); margin-bottom: 20px; }
.text-panel h2:not(:first-child) { margin-top: 48px; }
.dots { display: grid; gap: 12px; }
.dots li { padding-left: 1.200em; position: relative; font-weight: 300; font-size: 16px; line-height: 1.850; }
.dots li::before { content: ""; position: absolute; left: 2px; top: .780em; width: 6px; height: 6px; border-radius: 50%; background: var(--navy); }
.dots strong { font-weight: 500; }
.spec-grid { display: grid; grid-template-columns: minmax(0, .850fr) minmax(0, 1fr); gap: 64px; max-width: var(--wrap); }
.spec-grid h2:not(:first-child) { margin-top: 0; }
.spec-list { counter-reset: n; display: grid; }
.spec-list li { counter-increment: n; display: grid; grid-template-columns: 40px 1fr; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line-soft); font-size: 16px; }
.spec-list li::before { content: counter(n, decimal-leading-zero); color: var(--navy); font-weight: 500; font-size: 14px; }
.size-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.size-table th, .size-table td { text-align: left; padding: 11px 12px 11px 0; border-bottom: 1px solid var(--line-soft); font-weight: 300; white-space: nowrap; }
.size-table thead th { color: var(--muted); font-size: 14px; font-weight: 400; padding-top: 0; }
.size-table tbody th { font-weight: 500; color: var(--navy); }
.custom-size { margin-top: 18px; font-weight: 300; font-size: 15px; line-height: 1.850; }
.custom-size strong { font-weight: 500; }
.spec-grid h2:not(:first-child) { margin-top: 44px; }

/* 頁尾 */
.trust { background: var(--navy); color: #fff; padding-block: 56px; }
.trust ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.trust li { display: flex; align-items: center; justify-content: center; gap: 22px; }
.trust svg { width: 64px; height: 64px; flex: none; fill: none; stroke: #fff; stroke-width: 1.500; stroke-linecap: round; stroke-linejoin: round; }
.trust b { display: block; font-weight: 400; font-size: 20px; }
.trust span { font-size: 16px; opacity: .900; }

.toast { position: fixed; left: 50%; bottom: 32px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 12px 24px; font-size: 15px; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; z-index: 50; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* 響應式 */
@media (max-width: 1000px) {
  .nav { display: none; }
  .header-inner { height: 72px; justify-content: space-between; }
  .product { grid-template-columns: 1fr; padding-block: 28px 56px; }
  .gallery { position: static; padding-left: 0; }
  .thumbs { position: static; width: auto; flex-direction: row; margin-top: 12px; overflow-x: auto; }
  .thumbs button { width: 84px; }
  .features { grid-template-columns: repeat(4, 1fr); row-gap: 36px; padding-block: 48px 40px; }
  .pointer { right: 0; }
  .structure { grid-template-columns: 1fr; }
  .structure-img { max-width: 520px; margin-inline: auto; }
  .split, .life, .spec-grid { grid-template-columns: 1fr; }
  .split.reverse .split-img { order: 0; }
  .split-img img { max-height: 420px; min-height: 0; }
  .spec-grid { gap: 48px; }
}
@media (max-width: 640px) {
  .wrap { width: min(100% - 32px, var(--wrap)); }
  .logo img { width: 150px; }
  .tabs button { font-size: 14px; padding: 18px 4px 14px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .size-table { font-size: 14px; }
  .size-table th, .size-table td { white-space: normal; }
  .materials { grid-template-columns: 1fr; min-height: 0; }
  .mat-tabs { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .mat-tabs button { flex: none; white-space: nowrap; border-bottom: 0; border-right: 1px solid var(--line-soft); padding: 12px 16px; }
  .spaced { letter-spacing: .150em; margin-right: -.150em; }
  .badges { gap: 28px; }
  .badges img { height: 76px; }
  .badges img:first-child { height: 90px; }
  .scale-ends { font-size: 20px; }
  .scale-ends .mid { font-size: 16px; }
  .scale-marks span { font-size: 13px; }
  .scale-marks .me { font-size: 17px; }
  .life-icons { grid-template-columns: 1fr; }
  .trust ul { grid-template-columns: 1fr; gap: 28px; }
  .trust li { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
