/*
 * S3ctor 外觀（2026-09-18 V：「模仿 S3ctor 的整個設計，放進 ONYX」）。
 * 疊在 style.css 上面，只改長相、不改結構——拿掉這支檔（index.html 那一行）就回到 09-17 的 ONYX 白底版。
 * 出處＝s3ctor.com 當下的佈景（research/s3ctor_ref/ 有 hero、photo、header 的原始碼）：
 *   純白底、#0C0C0D 字、紅 #E10600 只當點綴（跑馬燈的點、LEADER、購物車數字）；
 *   Archivo 粗體大寫標題、JetBrains Mono 當規格與小標、Baloo 2 當導覽；中文落到思源黑體。
 *   首頁＝跑馬燈＋兩張滿版圓角實拍（22px 圓角），頁首白字壓在第一張照片上。
 */
:root {
  --bg: #ffffff;
  --ink: #0C0C0D;
  --ink2: #3d3d3f;
  --card: #ffffff;
  --soft: #f4f4f4;
  --mute: #8a8a8a;
  --line: #e7e7e7;
  --line2: #d6d6d6;
  --hoverline: #0C0C0D;
  --panel: #ffffff;
  --glass: rgba(255, 255, 255, .9);
  --violet: #E10600;          /* 名字沿用，值換成 S3ctor 紅：style.css 裡所有「強調色」一起變 */
  --violet-hi: #E10600;
  --glow: rgba(225, 6, 0, 0);  /* S3ctor 不用光暈 */
  --r: 10px;
  --hd: 58px;
  --arch: "Archivo", "Noto Sans TC", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Noto Sans TC", monospace;
  --serif: var(--arch);
  --serif-tc: var(--arch);
}
body { font-family: "Archivo", "Noto Sans TC", system-ui, -apple-system, "PingFang TC", sans-serif; font-size: 14px; }
::selection { background: #E10600; }

/* ─── 跑馬燈（S3ctor live-timing） ─── */
.tk { display: flex; align-items: stretch; width: 100%; background: #fff; border-bottom: 1px solid var(--line); overflow: hidden; font-family: var(--mono); position: relative; z-index: 45; }
.tk__tag { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 8px clamp(16px, 4vw, 40px); font-size: 9.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--ink); border-right: 1px solid var(--line); white-space: nowrap; z-index: 2; background: #fff; }
.tk__tag i { width: 6px; height: 6px; border-radius: 50%; background: #E10600; flex: none; animation: tkpulse 1.4s ease-in-out infinite; }
.tk__tag b { color: #E10600; font-weight: 700; font-variant-numeric: tabular-nums; }
@keyframes tkpulse { 0%, 100% { opacity: 1; } 50% { opacity: .2; } }
.tk__view { flex: 1 1 auto; overflow: hidden; position: relative; }
.tk__track { display: inline-flex; align-items: center; height: 100%; white-space: nowrap; padding-left: 22px; will-change: transform; animation: tkmarq 34s linear infinite; }
.tk:hover .tk__track { animation-play-state: paused; }
@keyframes tkmarq { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.tk__e { display: inline-flex; align-items: baseline; gap: 8px; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); font-variant-numeric: tabular-nums; text-decoration: none; }
.tk__e .p { color: var(--mute); font-weight: 500; font-size: 9px; }
.tk__e .c { font-weight: 700; letter-spacing: .04em; }
.tk__e .n { font-weight: 400; }
.tk__e .g { font-weight: 700; }
.tk__e .g.lead { color: #E10600; font-weight: 500; letter-spacing: .14em; }
.tk__dot { display: inline-block; width: 5px; height: 5px; background: #E10600; margin: 0 22px; flex: none; }
@media (prefers-reduced-motion: reduce) { .tk__track { animation: none; } }
body.is-focus .tk { display: none; }

/* ─── 頁首（S3ctor 內頁 header：左導覽、中間字標、右工具） ─── */
.hd { background: rgba(255, 255, 255, .92); border-bottom: 1px solid var(--line); }
.hd__in { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; height: var(--hd); }
.nav { margin: 0; justify-self: start; grid-column: 1; grid-row: 1; }
.hd__mark { grid-column: 2; grid-row: 1; justify-self: center; font: 500 20px/1 "Baloo 2", var(--arch); letter-spacing: -.01em; text-transform: lowercase; color: var(--ink); }
.hd__tools { grid-column: 3; grid-row: 1; justify-self: end; margin-left: 0; }
.hd__secure { grid-column: 3; grid-row: 1; justify-self: end; margin-left: 0; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; }
.hd__secure svg { color: #E10600; }
.nav__a { font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; padding: 8px 10px; border-radius: 0; color: var(--mute); }
.nav__a:hover, .nav__a.is-on { color: var(--ink); }
.nav__a.is-on::after { width: 5px; height: 5px; border-radius: 0; bottom: 0; box-shadow: none; background: #E10600; }
.mega { border-radius: 14px; box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .25); border-color: var(--line); }
.mega__d b { font: 700 14px/1.2 var(--arch); text-transform: uppercase; letter-spacing: .01em; }
.icon:hover { background: transparent; opacity: .6; }
.icon svg { width: 19px; height: 19px; stroke-width: 1.5; }
.icon--cart i { background: transparent; color: var(--ink); font-family: var(--arch); font-weight: 600; top: 3px; right: -2px; }
.icon--cart.has i { background: transparent; color: #E10600; box-shadow: none; }
@media (max-width: 959px) {
  .hd__in { grid-template-columns: auto 1fr auto; }
  .hd__mark { grid-column: 2; }
  .hd__tools { grid-column: 3; }
  /* S3ctor 手機版：選單鈕在最左、字標置中、購物車在右 */
  .hd__in { position: relative; }
  .icon--menu { position: absolute; left: calc(var(--pad) - 10px); top: 50%; margin-top: -21px; }
  body.is-home .icon--menu { left: calc(4vw - 10px); }
}

/* 首頁：頁首白字壓在第一張照片上（S3ctor hero 自帶的那條導覽） */
body.is-home .hd { position: absolute; left: clamp(10px, 2.2vw, 22px); right: clamp(10px, 2.2vw, 22px); top: calc(var(--tk, 30px) + clamp(8px, 1.4vw, 14px)); background: none; border: 0; -webkit-backdrop-filter: none; backdrop-filter: none; color: #fff; }
body.is-home .hd__in { max-width: none; padding: 0 4vw; height: 78px; }
body.is-home .hd__mark, body.is-home .nav__a, body.is-home .icon, body.is-home .icon--cart i { color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, .35); }
body.is-home .nav__a { opacity: .75; } body.is-home .nav__a:hover { opacity: 1; }
body.is-home .icon svg { filter: drop-shadow(0 1px 6px rgba(0, 0, 0, .35)); }
body.is-home .hd.menu-open { color: var(--ink); }
body.is-home .hd.menu-open .hd__mark, body.is-home .hd.menu-open .icon { color: var(--ink); text-shadow: none; }

/* ─── 首頁照片卡（S3ctor s3ctor-hero＋s3ctor-photo） ─── */
.shot { position: relative; display: block; overflow: hidden; text-decoration: none; margin: clamp(6px, 1.2vw, 12px) clamp(10px, 2.2vw, 22px) 0; border-radius: 22px; background: var(--ink); height: 84vh; }
.shot--hero { height: 92vh; margin-top: clamp(8px, 1.4vw, 14px); }
.shot--hero::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 190px; z-index: 1; background: linear-gradient(180deg, rgba(0, 0, 0, .42), rgba(0, 0, 0, 0)); pointer-events: none; }
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2, .6, .2, 1); }
.shot:hover img { transform: scale(1.045); }
.shot__cap { position: absolute; left: 0; right: 0; bottom: clamp(30px, 5vh, 52px); z-index: 2; display: flex; justify-content: center; pointer-events: none; }
.shot__pill { display: inline-flex; align-items: center; gap: 10px; font: 800 13px/1 var(--arch); letter-spacing: .24em; text-transform: uppercase; color: #fff; background: rgba(12, 12, 13, .42); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); border: 1px solid rgba(255, 255, 255, .5); border-radius: 100px; padding: 12px 22px; opacity: 0; transform: translateY(14px); transition: opacity .4s ease, transform .4s ease; text-shadow: 0 1px 8px rgba(0, 0, 0, .4); }
.shot:hover .shot__pill, .shot:focus-visible .shot__pill { opacity: 1; transform: none; }
.shot__pill i { font-style: normal; color: #E10600; transition: transform .3s ease; }
.shot:hover .shot__pill i { transform: translateX(5px); }
/* 手機沒有 hover：膠囊一直顯示 */
@media (hover: none) { .shot__pill { opacity: 1; transform: none; } }
@media (max-width: 900px) { .shot--hero { height: 88vh; } .shot { height: 78vh; } }
@media (prefers-reduced-motion: reduce) { .shot img, .shot__pill { transition: none; } }

/* ─── 區塊標題、分類頁（S3ctor GARAGE：大寫粗黑、沒有副標襯線） ─── */
.eyebrow { font: 500 10px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--mute); }
.coll h1, .page h1 { font: 900 clamp(34px, 5vw, 56px)/1 var(--arch); letter-spacing: -.02em; text-transform: uppercase; }
.coll__line { font-size: 13px; color: var(--mute); }
.coll__face { opacity: .35; }
.crumbs { font: 500 10px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.sec__hd h2 { font: 800 clamp(18px, 2.4vw, 24px)/1.2 var(--arch); letter-spacing: -.01em; text-transform: uppercase; }
.sec__hd h2 em { font: 500 10px/1 var(--mono); letter-spacing: .2em; font-style: normal; color: var(--mute); }
.sec__more { font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.tabs .tab, .tab { border-radius: 0; font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.bar { background: rgba(255, 255, 255, .94); }
.bar__btn { border-radius: 0; font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; height: 34px; }
.bar__btn i { background: #E10600; border-radius: 0; }
.bar__n { font: 500 11px/1 var(--mono); letter-spacing: .1em; }
.bar__view { border-radius: 0; border: 0; }
.bar__view button { border-radius: 0; }

/* 商品格：淺灰方底、沒有外框，名字小、價格小灰（S3ctor GARAGE） */
.card__img { border: 0; border-radius: 4px; background: #f6f6f6; }
.card:hover .card__img { border-color: transparent; box-shadow: none; }
.card__meta { font: 500 9.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; margin-top: 12px; }
.card__name { font: 600 13px/1.45 var(--arch); margin-top: 6px; }
.card__price { font: 500 11px/1 var(--mono); letter-spacing: .06em; color: var(--mute); margin-top: 6px; }
.tag { border-radius: 2px; font: 600 9.5px/1 var(--arch); letter-spacing: .12em; text-transform: uppercase; background: #ececec; color: var(--ink); }
.tag--hot { background: #E10600; color: #fff; }

/* ─── 商品頁（S3ctor：大寫粗黑品名、方正尺寸鈕、黑色圓角主鈕、規格用等寬字） ─── */
.pd__track { border: 0; border-radius: 4px; background: #f6f6f6; }
.pd__thumbs button { border-radius: 4px; border-color: transparent; }
.pd__thumbs button.is-on { border-color: var(--ink); }
.pd__eyebrow, .pd__eyebrow a:first-child { font: 500 10px/1.4 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--mute); font-style: normal; }
.pd__name { font: 800 clamp(22px, 2.6vw, 30px)/1.15 var(--arch); letter-spacing: -.01em; text-transform: uppercase; }
.pd__sub { font-size: 12px; }
.pd__price { font: 600 18px/1 var(--arch); }
.pd__label { font: 500 10px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink); }
.opt { border-radius: 6px; font: 500 12px/1 var(--arch); padding: 10px 16px; min-width: 52px; justify-content: center; }
.opt.is-on { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: none; }
.opt--img { border-radius: 6px; }
.qty { border-radius: 6px; }
.btn { border-radius: 8px; font: 700 13px/1 var(--arch); letter-spacing: .02em; }
.btn:not(:disabled):hover { box-shadow: none; opacity: .88; }
.btn--line { border-color: var(--ink); }
.pill { border-radius: 8px; font-family: var(--arch); font-weight: 600; }
.pill--light:hover { box-shadow: none; opacity: .88; }
.stock { font: 500 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.perks { font-size: 12px; }
.acc summary { font: 500 10px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.spec dt { font: 500 10px/1.6 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.spec dd { font-size: 12px; }
.sizes table { font-family: var(--mono); font-size: 11px; }
.sizes th { font-weight: 700; }

/* ─── 購物車、結帳、訂單、說明頁 ─── */
.drawer__hd b, .sheet__hd b { font: 800 14px/1 var(--arch); text-transform: uppercase; letter-spacing: .02em; }
.menu__big { font: 900 26px/1.2 var(--arch); text-transform: uppercase; letter-spacing: -.02em; }
.menu__lab { font: 500 10px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; }
.menu__drivers a { font: 600 13px/1 var(--arch); border-radius: 6px; }

/* ─── 頁尾（S3ctor：小、灰、等寬） ─── */
.ft { margin-top: 48px; }
.ft::before { display: none; }
.ft__mark { font: 500 26px/1 "Baloo 2", var(--arch); text-transform: lowercase; }
.ft__mark span { display: none; }
.ft__col p { font: 500 10px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; }
.ft__col a { font-size: 12px; }
.ft__fine p { font: 400 10.5px/1.7 var(--mono); letter-spacing: .02em; color: var(--mute); }
body.is-home .ft { margin-top: 12px; }

/* ─── 查詢訂單（我的訂單頁） ─── */
.lookup { max-width: 440px; margin: 8px 0 36px; }
.lookup h2, .lookup__mine { margin: 0 0 8px; font: 800 16px/1.2 var(--arch); text-transform: uppercase; letter-spacing: .01em; }
.lookup .muted { font-size: 13px; margin: 0 0 18px; }
.lookup .err { margin: 0 0 12px; }
.lookup .btn { width: 100%; }
