:root {
  --ink: #17140f;
  --ink-2: #463e33;
  --muted: #746a5c;
  --paper: #fbf9f5;
  --paper-2: #f2eee6;
  --line-c: #e3ddd0;
  --gold: #b8862b;
  --gold-2: #e0bd6a;
  --gold-deep: #8a6116;
  --night: #121110;
  --line-green: #06c755;
  --warn-bg: #fff4ec;
  --warn-ink: #9a3412;
  --radius: 16px;
  --shadow: 0 12px 30px rgba(20, 15, 5, .12);
  --serif: "Noto Serif TC", "Noto Sans TC", serif;
  --sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); font-size: 19px; line-height: 1.75; color: var(--ink); background: var(--paper); -webkit-text-size-adjust: 100%; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 800px; }
.center { text-align: center; }
.muted { color: var(--muted); }
[hidden] { display: none !important; }

.setup-warning { background: #b91c1c; color: #fff; padding: 10px 16px; font-size: 16px; text-align: center; font-weight: 700; }

/* top bar */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(18, 17, 16, .94); color: #f4eee3; backdrop-filter: blur(8px); border-bottom: 1px solid rgba(224, 189, 106, .25); }
.topbar-in { display: flex; align-items: center; gap: 18px; min-height: 66px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; font-size: 22px; margin-right: auto; letter-spacing: .04em; }
.logo-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, #f1dea6, var(--gold) 55%, var(--gold-deep)); color: #1b1305; font-family: var(--serif); font-weight: 900; font-size: 20px; }
.topnav { display: none; gap: 22px; font-size: 17px; }
.topnav a { text-decoration: none; color: #ddd3c1; }
.topnav a:hover { color: var(--gold-2); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; text-decoration: none; font-weight: 900; transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 7px 18px; font-size: 16px; }
.btn-xl { padding: 18px 40px; font-size: 24px; min-height: 68px; letter-spacing: .04em; }
.btn-line { background: var(--line-green); color: #fff; box-shadow: 0 8px 24px rgba(6, 199, 85, .35); }

/* hero: full-bleed photo with big type */
.hero { position: relative; color: #fff; background: linear-gradient(180deg, rgba(10, 9, 8, .55), rgba(10, 9, 8, .78)), var(--bg) center / cover no-repeat; min-height: min(92vh, 760px); display: flex; align-items: center; }
.hero-in { padding: 64px 16px 72px; }
.eyebrow { margin: 0 0 10px; color: var(--gold-2); font-weight: 700; font-size: 20px; letter-spacing: .12em; }
.hero h1 { font-family: var(--serif); font-weight: 900; font-size: clamp(56px, 14vw, 120px); line-height: 1.05; margin: 0; letter-spacing: .06em; background: linear-gradient(180deg, #fff7df, #e9cc84 55%, #b8862b); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: 0 4px 30px rgba(0, 0, 0, .25); }
.hero-sub { font-size: clamp(22px, 5vw, 36px); font-weight: 700; margin: 14px 0 0; letter-spacing: .08em; color: #f4eee3; }
.hero-lead { font-size: clamp(22px, 4.6vw, 32px); font-weight: 700; margin: 22px 0 30px; line-height: 1.55; }
.hl { color: var(--gold-2); }
.hero-pending { display: inline-block; padding: 12px 22px; border: 2px dashed rgba(255, 255, 255, .5); border-radius: 999px; font-size: 20px; margin: 0; }

/* sections */
.section { padding: 72px 0; }
.section.alt { background: var(--paper-2); }
.section-title { font-family: var(--serif); font-size: clamp(32px, 6vw, 46px); margin: 0 0 34px; text-align: center; letter-spacing: .06em; }
.section-title::after { content: ""; display: block; width: 56px; height: 4px; margin: 12px auto 0; background: var(--gold); border-radius: 2px; }

/* item cards with image */
.items { display: grid; gap: 18px; margin-bottom: 22px; }
.item { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--night); color: #fff; box-shadow: var(--shadow); min-height: 260px; display: flex; align-items: flex-end; }
.item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.item:hover img { transform: scale(1.04); }
.item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 25%, rgba(0, 0, 0, .82)); }
.item-body { position: relative; z-index: 1; padding: 22px; }
.item-tag { display: inline-block; font-size: 14px; font-weight: 900; letter-spacing: .1em; color: #1b1305; background: var(--gold-2); border-radius: 6px; padding: 2px 10px; margin-bottom: 8px; }
.item h3 { margin: 0 0 4px; font-family: var(--serif); font-size: 32px; letter-spacing: .04em; }
.item p { margin: 0; font-size: 17px; color: #ebe4d6; }

/* wide band */
.band { color: #fff; background: linear-gradient(90deg, rgba(10, 9, 8, .82), rgba(10, 9, 8, .35)), var(--bg) center / cover no-repeat; padding: 96px 0; }
.band-big { font-family: var(--serif); font-weight: 900; font-size: clamp(36px, 8vw, 72px); margin: 0; line-height: 1.25; letter-spacing: .06em; }
.band-small { font-size: clamp(20px, 4vw, 28px); margin: 12px 0 0; color: #efe7d6; }

.tiers { display: grid; gap: 16px; margin-bottom: 20px; }
.tier { background: #fff; border-radius: var(--radius); padding: 26px 22px; border: 1px solid var(--line-c); box-shadow: var(--shadow); }
.tier-tag { display: inline-block; font-family: var(--serif); font-weight: 900; font-size: 22px; color: var(--gold-deep); border: 2px solid var(--gold); border-radius: 8px; padding: 0 14px; margin-bottom: 10px; }
.tier h3 { margin: 0 0 6px; font-size: 25px; }
.tier p { margin: 0; color: var(--ink-2); }
.tier .tier-time { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line-c); font-weight: 700; color: var(--ink); }
.tier-big { background: var(--night); color: #f4eee3; border-color: var(--night); }
.tier-big h3, .tier-big .tier-time { color: #fff; }
.tier-big p { color: #d8cfbc; }
.tier-big .tier-tag { color: var(--gold-2); border-color: var(--gold-2); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; counter-reset: s; }
.steps li { background: #fff; border-radius: var(--radius); padding: 24px 22px; border: 1px solid var(--line-c); box-shadow: var(--shadow); }
.step-no { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--night); color: var(--gold-2); font-weight: 900; font-size: 26px; font-family: var(--serif); margin-bottom: 10px; }
.steps b { font-size: 24px; display: block; }
.steps p { margin: 4px 0 0; color: var(--ink-2); }

.cards { display: grid; gap: 16px; }
.card { background: #fff; border-radius: var(--radius); padding: 26px 22px; border: 1px solid var(--line-c); border-top: 5px solid var(--gold); }
.card-ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: #fbf1da; color: var(--gold-deep); font-size: 26px; font-weight: 900; margin-bottom: 10px; }
.card h3 { margin: 0 0 6px; font-size: 25px; }
.card p { margin: 0; color: var(--ink-2); }

/* learn */
.learn { background: linear-gradient(180deg, #16140f, #221d15); color: #efe8da; }
.learn .section-title { color: #fff; }
.learn-intro { font-size: 21px; max-width: 880px; margin: 0 auto 36px; text-align: center; color: #e2d9c6; }
.learn-intro b { color: var(--gold-2); }
.metals { display: grid; gap: 16px; margin-bottom: 26px; }
.metal { display: flex; gap: 18px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(224, 189, 106, .22); border-radius: var(--radius); padding: 20px; }
.sym { flex: none; position: relative; display: grid; place-items: center; width: 78px; height: 78px; border-radius: 12px; background: linear-gradient(145deg, #f1dea6, var(--gold) 60%, var(--gold-deep)); color: #1b1305; font-family: var(--serif); font-size: 32px; font-weight: 900; }
.sym small { position: absolute; top: 4px; left: 8px; font-size: 13px; font-family: var(--sans); }
.metal h3 { margin: 0 0 4px; font-size: 24px; color: #fff; }
.metal p { margin: 0; font-size: 17px; color: #d8cfbc; }
.learn-grid { display: grid; gap: 16px; }
.note { background: #fffdf8; color: var(--ink); border-radius: var(--radius); padding: 22px; }
.note h3 { margin: 0 0 8px; font-size: 23px; font-family: var(--serif); }
.note p { margin: 0; color: var(--ink-2); font-size: 17px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 17px; }
.tbl th, .tbl td { text-align: left; padding: 8px 4px; border-bottom: 1px solid var(--line-c); }
.tbl th { color: var(--muted); font-size: 15px; }

details { background: #fff; border: 1px solid var(--line-c); border-radius: 12px; margin-bottom: 10px; }
summary { cursor: pointer; padding: 18px 48px 18px 20px; font-weight: 700; font-size: 20px; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 28px; color: var(--gold); }
details[open] summary::after { content: "−"; }
details p { margin: 0; padding: 0 20px 18px; color: var(--ink-2); }

.section.warn { background: var(--warn-bg); }
.warn .section-title::after { background: var(--warn-ink); }
.warn-list { margin: 0; padding-left: 1.2em; color: var(--ink-2); font-size: 19px; }
.warn-list li { margin-bottom: 12px; }
.warn-list b { color: var(--warn-ink); }

.cta-band { color: #fff; background: linear-gradient(180deg, rgba(10, 9, 8, .78), rgba(10, 9, 8, .85)), var(--bg) center / cover no-repeat; padding: 90px 0; }
.cta-big { font-family: var(--serif); font-weight: 900; font-size: clamp(34px, 7vw, 60px); margin: 0 0 8px; letter-spacing: .06em; }
.cta-small { font-size: 20px; color: #e5dccb; margin: 0 0 26px; }
.qr { margin: 28px auto 0; width: 190px; height: 190px; border-radius: 14px; background: #fff; padding: 10px; }

.footer { background: var(--night); color: #c9bea8; padding: 36px 0 120px; font-size: 16px; }
.footer-buyer { color: #f4eee3; margin: 0 0 14px; }
.footer details { background: transparent; border-color: rgba(255, 255, 255, .15); }
.footer summary { color: #f4eee3; font-size: 17px; }
.footer details p { color: #c9bea8; font-size: 15px; }
.fine { font-size: 13px; color: #8f846f; margin: 14px 0 0; }

/* mobile dock: single LINE button */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(18, 17, 16, .94); border-top: 1px solid rgba(224, 189, 106, .3); }
.dock-btn { display: grid; place-items: center; min-height: 58px; border-radius: 14px; font-weight: 900; font-size: 21px; text-decoration: none; background: var(--line-green); color: #fff; }

@media (min-width: 760px) {
  .items { grid-template-columns: repeat(2, 1fr); }
  .item { min-height: 320px; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .tiers { grid-template-columns: repeat(3, 1fr); }
  .cards { grid-template-columns: repeat(4, 1fr); }
  .metals { grid-template-columns: repeat(2, 1fr); }
  .learn-grid { grid-template-columns: repeat(3, 1fr); }
  .dock { display: none !important; }
  .footer { padding-bottom: 40px; }
}
@media (min-width: 1000px) {
  .topnav { display: flex; }
  .items { grid-template-columns: repeat(var(--cols, 4), 1fr); }
  .metals { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 759px) {
  .topbar .btn-sm { display: none !important; }
}
