:root {
  --bg: #09090b;
  --bg-2: #101014;
  --panel: #151519;
  --panel-2: #1b1b20;
  --line: rgba(255,255,255,.1);
  --line-strong: rgba(218,184,104,.35);
  --text: #f6f3eb;
  --muted: #9d9aa2;
  --gold: #d7b35f;
  --gold-2: #f1d893;
  --green: #06c755;
  --danger: #e85c61;
  --radius: 18px;
  --shadow: 0 22px 60px rgba(0,0,0,.34);
  --max: 1320px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font-family: Inter, "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, .btn { cursor: pointer; }
img { max-width: 100%; display: block; }
.section-shell { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.grow { flex: 1; }
.muted { color: var(--muted); }
.center { text-align: center; }
.eyebrow { margin: 0 0 8px; color: var(--gold); font-size: .72rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.btn { min-height: 46px; padding: 10px 20px; border: 1px solid transparent; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-weight: 800; transition: .2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn.gold { background: linear-gradient(135deg, var(--gold-2), #b9872b); color: #141109; box-shadow: 0 8px 28px rgba(215,179,95,.2); }
.btn.ghost { border-color: var(--line); background: rgba(255,255,255,.035); color: var(--text); }
.btn.line { background: var(--green); color: #fff; }
.btn.danger { background: rgba(232,92,97,.12); border-color: rgba(232,92,97,.3); color: #ff9498; }
.btn.compact { min-height: 38px; padding: 7px 14px; font-size: .88rem; }
.btn.wide { width: 100%; }
.btn.disabled, .btn:disabled { pointer-events: none; opacity: .42; }
.line-logo { width: 23px; height: 23px; border-radius: 7px; background: #fff; color: var(--green); display: grid; place-items: center; font-weight: 900; }
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark { width: 43px; height: 43px; display: grid; place-items: center; border: 1px solid rgba(215,179,95,.7); border-radius: 12px; background: radial-gradient(circle at 30% 20%, #f5df9c, #a87a24 58%, #21180a); color: #0d0c09; font-family: Georgia, serif; font-weight: 900; font-size: 1.35rem; box-shadow: inset 0 0 0 3px rgba(0,0,0,.18); }
.brand > span:last-child { display: flex; flex-direction: column; line-height: 1.2; }
.brand b { font-size: 1rem; letter-spacing: .08em; }
.brand small { color: var(--muted); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; margin-top: 4px; }
.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); background: rgba(9,9,11,.88); backdrop-filter: blur(18px); }
.header-inner { min-height: 76px; display: flex; align-items: center; gap: 26px; }
.main-nav { display: flex; align-items: center; gap: 4px; margin-left: 12px; }
.main-nav a { padding: 10px 12px; color: #c8c5cb; font-size: .9rem; border-radius: 9px; }
.main-nav a:hover, .main-nav a.active { color: var(--gold-2); background: rgba(215,179,95,.08); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.wallet-chip, .account-chip { min-height: 42px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 11px; display: inline-flex; align-items: center; gap: 9px; background: rgba(255,255,255,.035); }
.wallet-chip span { color: var(--muted); font-size: .72rem; }
.wallet-chip b { color: var(--gold-2); font-size: .88rem; }
.account-chip > span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: #17130b; font-weight: 900; }
.account-chip b { font-size: .82rem; }
.account-chip i { min-width: 20px; height: 20px; padding: 0 5px; display: grid; place-items: center; border-radius: 99px; background: var(--danger); font-size: .68rem; font-style: normal; }
.menu-toggle { display: none; margin-left: auto; color: var(--text); background: none; border: 0; font-size: 1.4rem; }
.home-hero { min-height: 650px; padding-block: 74px 64px; display: grid; grid-template-columns: 1.04fr .96fr; gap: 64px; align-items: center; position: relative; }
.home-hero:before { content: ""; position: absolute; width: 540px; height: 540px; left: -240px; top: -80px; background: radial-gradient(circle, rgba(215,179,95,.09), transparent 68%); pointer-events: none; }
.hero-copy h1 { margin: 0; font-family: Georgia, "Noto Serif TC", serif; font-size: clamp(2.7rem, 5.2vw, 5.4rem); line-height: 1.04; letter-spacing: -.04em; }
.hero-copy h1 span { color: var(--gold-2); }
.hero-lead { max-width: 680px; margin: 26px 0; color: #bbb8bf; font-size: 1.05rem; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-metrics { margin-top: 48px; display: flex; gap: 36px; }
.hero-metrics div { display: flex; flex-direction: column; }
.hero-metrics strong { font-size: 1.45rem; color: var(--gold-2); }
.hero-metrics span { color: var(--muted); font-size: .78rem; }
.hero-product { padding: 24px; min-height: 500px; border: 1px solid var(--line-strong); border-radius: 28px; position: relative; overflow: hidden; background: linear-gradient(150deg, #1a1a1f, #0e0e11); box-shadow: var(--shadow); display: flex; flex-direction: column; }
.hero-product:after { content: "RESEARCH / 01"; position: absolute; top: 20px; right: 22px; color: rgba(255,255,255,.24); letter-spacing: .18em; font-size: .68rem; }
.hero-product img { width: 100%; height: 350px; object-fit: contain; position: relative; z-index: 1; transition: transform .3s ease; }
.hero-product:hover img { transform: scale(1.025); }
.hero-glow { position: absolute; width: 340px; height: 340px; border-radius: 50%; background: rgba(75,120,255,.2); filter: blur(55px); left: 50%; top: 45%; transform: translate(-50%,-50%); }
.hero-product-panel { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; position: relative; z-index: 2; }
.hero-product-panel span { color: var(--gold); font-size: .72rem; font-weight: 800; letter-spacing: .1em; }
.hero-product h2 { margin: 5px 0 0; font-size: 1.5rem; }
.hero-price { text-align: right; }
.hero-price small { color: var(--muted); display: block; }
.hero-price strong { color: var(--gold-2); white-space: nowrap; }
progress { appearance: none; width: 100%; height: 7px; border: 0; border-radius: 99px; overflow: hidden; background: #29292e; }
progress::-webkit-progress-bar { background: #29292e; }
progress::-webkit-progress-value { background: linear-gradient(90deg, #9b6c1e, var(--gold-2)); }
progress::-moz-progress-bar { background: linear-gradient(90deg, #9b6c1e, var(--gold-2)); }
.hero-product progress { margin-top: 20px; }
.hero-product > p { margin: 9px 0 0; text-align: right; color: var(--muted); font-size: .76rem; }
.category-strip { margin-bottom: 48px; display: grid; grid-template-columns: repeat(4,1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.category-strip a { min-height: 112px; padding: 20px; display: flex; align-items: center; gap: 15px; border-right: 1px solid var(--line); background: #111114; }
.category-strip a:last-child { border-right: 0; }
.category-strip a:hover { background: #17171b; }
.category-strip > a > span { color: var(--gold); font-size: .7rem; }
.category-strip b { display: block; }
.category-strip p { margin: 3px 0 0; color: var(--muted); font-size: .75rem; }
.category-strip i { margin-left: auto; color: var(--gold); font-style: normal; }
.content-section { padding-block: 54px; }
.section-heading { margin-bottom: 24px; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.section-heading h2 { margin: 0; font-family: Georgia, "Noto Serif TC", serif; font-size: clamp(1.8rem, 3vw, 2.6rem); }
.section-heading p:not(.eyebrow) { margin: 6px 0 0; color: var(--muted); }
.section-heading > a { color: var(--gold-2); font-size: .86rem; }
.compact-heading { margin-bottom: 18px; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; }
.product-card { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #121215; transition: .25s ease; }
.product-card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.product-image { height: 255px; position: relative; background: radial-gradient(circle at 50% 45%, #24242d, #101013 70%); overflow: hidden; }
.product-image img { width: 100%; height: 100%; object-fit: contain; padding: 20px; transition: .3s ease; }
.product-card:hover .product-image img { transform: scale(1.04); }
.product-image .mode-tag { position: absolute; left: 12px; top: 12px; padding: 5px 8px; border-radius: 7px; background: rgba(9,9,11,.82); color: var(--gold-2); font-size: .66rem; font-weight: 800; }
.product-image i { position: absolute; right: 12px; top: 12px; padding: 5px 8px; border-radius: 7px; background: var(--gold); color: #161109; font-style: normal; font-size: .64rem; font-weight: 900; }
.product-card-body { padding: 17px; }
.product-card-body > p { margin: 0; color: var(--gold); font-size: .66rem; letter-spacing: .12em; }
.product-card h3 { margin: 5px 0 3px; font-size: 1.08rem; }
.product-card-body > small { color: var(--muted); display: block; min-height: 42px; }
.stock-row { margin-top: 18px; }
.stock-row span { display: block; margin-bottom: 6px; color: var(--muted); font-size: .74rem; }
.card-bottom { margin-top: 16px; display: flex; justify-content: space-between; align-items: center; }
.card-bottom strong { font-size: 1.22rem; color: var(--gold-2); }
.card-bottom em { font-size: .72rem; font-style: normal; }
.card-bottom a { color: var(--gold); font-size: .78rem; font-weight: 800; }
.lab-banner { margin-block: 40px; border-block: 1px solid var(--line-strong); background: linear-gradient(110deg, #18150f, #101014 58%, #141318); }
.lab-banner-inner { min-height: 230px; display: grid; grid-template-columns: 1.3fr 1fr auto; align-items: center; gap: 42px; }
.lab-banner h2 { margin: 0; font-size: 2rem; }
.lab-banner p:not(.eyebrow) { color: var(--muted); }
.operation-flow { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.operation-flow span { padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; font-size: .76rem; }
.operation-flow i { color: var(--gold); font-style: normal; }
.split-section { display: grid; grid-template-columns: 1.1fr .9fr; gap: 34px; }
.win-feed, .activity-list { display: grid; gap: 10px; }
.win-feed article { padding: 14px; border: 1px solid var(--line); border-radius: 13px; background: #121215; display: flex; align-items: center; gap: 13px; }
.win-feed article > div { flex: 1; }
.win-feed b { font-size: .92rem; }
.win-feed p { margin: 2px 0 0; color: var(--muted); font-size: .72rem; }
.win-feed article > a { color: var(--gold); font-size: .74rem; }
.rarity { min-width: 34px; height: 34px; padding: 0 8px; border-radius: 9px; display: inline-grid; place-items: center; font-weight: 900; font-size: .74rem; }
.rarity-a { background: linear-gradient(135deg,#f5da83,#a77117); color:#151007; }
.rarity-b { background: rgba(167,112,255,.18); color:#c9a8ff; border:1px solid rgba(167,112,255,.35); }
.rarity-c { background: rgba(68,148,255,.16); color:#8fc0ff; border:1px solid rgba(68,148,255,.32); }
.rarity-d { background: rgba(60,194,143,.15); color:#8ce1bf; border:1px solid rgba(60,194,143,.3); }
.rarity-e { background: rgba(255,255,255,.08); color:#bbb; border:1px solid var(--line); }
.activity-list article, .activity-grid article { padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: #121215; }
.activity-list article > span, .activity-grid article > span { color: var(--gold); font-size: .68rem; font-weight: 800; letter-spacing: .08em; }
.activity-list h3 { margin: 5px 0; }
.activity-list p, .activity-grid p { margin: 0 0 10px; color: var(--muted); }
.activity-list small { color: #77737c; }
.site-footer { margin-top: 70px; border-top: 1px solid var(--line); background: #0d0d10; }
.footer-grid { padding-block: 55px; display: grid; grid-template-columns: 2fr repeat(3,1fr); gap: 50px; }
.footer-grid > div { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.footer-grid p { color: var(--muted); max-width: 360px; }
.footer-grid > div > b { color: var(--gold-2); margin-bottom: 7px; }
.footer-grid > div > a:not(.brand) { color: var(--muted); font-size: .82rem; }
.footer-grid > div > a:hover { color: var(--gold); }
.footer-grid small { margin-top: 8px; color: #66636c; }
.footer-bottom { padding: 18px 20px; border-top: 1px solid var(--line); text-align: center; color: #66636c; font-size: .7rem; }
.flash { margin: 16px 0; padding: 13px 15px; border-radius: 11px; display: flex; align-items: center; gap: 10px; }
.flash span { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; font-weight: 900; }
.flash p { margin: 0; }
.flash-success { background: rgba(58,190,132,.12); border: 1px solid rgba(58,190,132,.3); color: #9de4c5; }
.flash-success span { background: #3abe84; color: #07150f; }
.flash-error { background: rgba(232,92,97,.12); border: 1px solid rgba(232,92,97,.3); color: #ffaaaD; }
.flash-error span { background: var(--danger); color: #fff; }
.catalog-shell, .content-page, .product-detail { padding-block: 42px 80px; }
.catalog-hero, .page-banner { padding: 48px; border: 1px solid var(--line); border-radius: 22px; background: radial-gradient(circle at 75% 15%, rgba(215,179,95,.12), transparent 35%), #111114; }
.catalog-hero h1, .page-banner h1 { margin: 0; font-family: Georgia, "Noto Serif TC", serif; font-size: clamp(2.4rem, 5vw, 4.4rem); }
.catalog-hero > p, .page-banner > p { color: var(--muted); max-width: 700px; }
.catalog-hero form { margin-top: 24px; display: flex; gap: 10px; max-width: 520px; }
.catalog-hero input { flex: 1; }
.catalog-tabs { margin: 28px 0 18px; display: flex; gap: 8px; flex-wrap: wrap; }
.catalog-tabs a { padding: 9px 16px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); font-size: .82rem; }
.catalog-tabs a.active { background: var(--gold); color: #151109; border-color: var(--gold); font-weight: 800; }
.catalog-summary { margin-bottom: 18px; display: flex; justify-content: space-between; color: var(--muted); font-size: .8rem; }
.breadcrumbs { margin-bottom: 18px; display: flex; gap: 9px; align-items: center; flex-wrap: wrap; color: var(--muted); font-size: .76rem; }
.breadcrumbs b { color: var(--text); }
.product-main-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 32px; align-items: start; }
.challenge-banner { margin-bottom: 12px; padding: 13px 16px; border: 1px solid rgba(215,179,95,.3); border-radius: 13px; background: rgba(215,179,95,.07); display: flex; gap: 12px; align-items: center; }
.challenge-banner > span { font-size: 1.3rem; }
.challenge-banner p { margin: 2px 0 0; color: var(--muted); font-size: .78rem; }
.detail-image { min-height: 560px; border: 1px solid var(--line); border-radius: 24px; background: radial-gradient(circle at 50% 45%, #292936, #101013 72%); position: relative; display: grid; place-items: center; overflow: hidden; }
.detail-image img { width: 90%; height: 500px; object-fit: contain; }
.detail-image > span { position: absolute; left: 18px; bottom: 16px; color: var(--muted); font-size: .7rem; }
.purchase-panel { padding: 30px; border: 1px solid var(--line); border-radius: 24px; background: #121215; position: sticky; top: 96px; box-shadow: var(--shadow); }
.badge-row { display: flex; gap: 7px; flex-wrap: wrap; }
.badge-row span { padding: 5px 9px; border-radius: 7px; background: rgba(215,179,95,.1); color: var(--gold-2); font-size: .68rem; }
.purchase-panel h1 { margin: 6px 0 8px; font-family: Georgia, "Noto Serif TC", serif; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.12; }
.product-subtitle { color: var(--muted); }
.purchase-stats { margin: 25px 0 16px; padding: 18px 0; border-block: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; }
.purchase-stats > div:last-child { padding-left: 24px; border-left: 1px solid var(--line); }
.purchase-stats span { display: block; color: var(--muted); font-size: .7rem; }
.purchase-stats strong { display: block; margin-top: 3px; color: var(--gold-2); font-size: 1.7rem; }
.purchase-stats small { font-size: .72rem; color: var(--muted); }
.sold-note { margin: 6px 0; color: var(--muted); font-size: .72rem; text-align: right; }
.balance-box { margin: 22px 0 14px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; display: grid; grid-template-columns: 1fr auto; }
.balance-box span { color: var(--muted); font-size: .7rem; }
.balance-box strong { grid-row: 2; color: var(--gold-2); }
.balance-box a { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--gold); font-size: .75rem; }
.purchase-form { display: grid; gap: 12px; }
.purchase-form label, .form label { display: grid; gap: 7px; color: #d7d4da; font-size: .82rem; font-weight: 700; }
input, select, textarea { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 9px; background: #0e0e11; color: var(--text); outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(215,179,95,.1); }
.purchase-panel form + form { margin-top: 9px; }
.login-hint { text-align: center; color: var(--muted); font-size: .76rem; }
.purchase-warning { margin-top: 18px; padding: 13px; border-radius: 10px; background: rgba(255,255,255,.035); }
.purchase-warning b { color: var(--gold-2); font-size: .78rem; }
.purchase-warning p { margin: 4px 0 0; color: var(--muted); font-size: .72rem; }
.detail-section { margin-top: 32px; padding: 30px; border: 1px solid var(--line); border-radius: 22px; background: #111114; }
.ledger-list { display: grid; gap: 8px; }
.ledger-list article { padding: 14px; border: 1px solid var(--line); border-radius: 12px; display: flex; align-items: center; gap: 14px; }
.ledger-list h3 { margin: 0; font-size: .94rem; }
.ledger-list p { margin: 2px 0 0; color: var(--muted); font-size: .72rem; }
.ledger-stock { width: min(240px,30%); text-align: right; }
.ledger-stock span { color: var(--muted); font-size: .68rem; }
.ledger-stock strong { display: block; font-size: .82rem; }
.ledger-stock progress { margin-top: 5px; }
.ticket-board { display: grid; grid-template-columns: repeat(10,1fr); gap: 6px; }
.ticket-board span { aspect-ratio: 1; display: grid; place-items: center; border-radius: 7px; font-size: .62rem; }
.ticket-board .available { color: #19130a; background: linear-gradient(135deg,var(--gold-2),#9c6d1e); }
.ticket-board .sold { color: #55525a; background: #202025; text-decoration: line-through; }
.product-description-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 35px; }
.product-description-grid h2 { margin: 0; }
.product-description-grid p, .product-description-grid li { color: var(--muted); }
.related-section { padding-bottom: 0; }
.large-feed { margin-top: 28px; }
.large-feed article img { width: 72px; height: 72px; object-fit: contain; border-radius: 10px; background: #202025; }
.large-feed article { padding: 18px; }
.activity-grid { margin-top: 28px; display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.activity-grid article { min-height: 220px; display: flex; flex-direction: column; }
.activity-grid h2 { margin: 9px 0; }
.activity-grid footer { margin-top: auto; color: var(--muted); font-size: .78rem; }
.notice-panel { margin: 18px 0; padding: 17px; border: 1px solid rgba(215,179,95,.28); border-radius: 12px; background: rgba(215,179,95,.07); }
.notice-panel b { color: var(--gold-2); }
.notice-panel p { margin: 5px 0 0; color: var(--muted); }
.odds-list { display: grid; gap: 20px; margin-top: 28px; }
.odds-list > section { padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: #111114; }
.odds-list > section > header { margin-bottom: 14px; display: flex; justify-content: space-between; align-items: flex-end; }
.odds-list h2 { margin: 2px 0; }
.odds-list header small, .odds-list header a { color: var(--gold); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 680px; }
th, td { padding: 13px 12px; text-align: left; border-bottom: 1px solid var(--line); font-size: .8rem; }
th { color: var(--muted); font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; }
td small { color: var(--muted); }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: #d8d3c4; font-size: .78rem; overflow-wrap: anywhere; }
.empty-state { padding: 28px; border: 1px dashed var(--line); border-radius: 13px; color: var(--muted); text-align: center; }
.empty-state.large { min-height: 180px; display: grid; place-items: center; grid-column: 1 / -1; }
.auth-page { background: radial-gradient(circle at 15% 25%, rgba(215,179,95,.12), transparent 32%), #09090b; }
.auth-top { padding: 22px 32px; }
.auth-shell { width: min(calc(100% - 40px), 1050px); min-height: calc(100vh - 100px); margin: 0 auto; padding: 35px 0 70px; display: grid; grid-template-columns: 1fr 480px; gap: 70px; align-items: center; }
.auth-brand h1 { margin: 0; font-family: Georgia, "Noto Serif TC", serif; font-size: clamp(2.8rem, 6vw, 5rem); line-height: 1.03; }
.auth-brand h1 span { color: var(--gold-2); }
.auth-brand > p:not(.eyebrow) { color: var(--muted); max-width: 530px; }
.lab-orb { width: 86px; height: 86px; margin-bottom: 26px; border: 1px solid var(--line-strong); border-radius: 50%; display: grid; place-items: center; color: var(--gold-2); font-family: Georgia,serif; font-size: 2.5rem; box-shadow: inset 0 0 35px rgba(215,179,95,.14), 0 0 50px rgba(215,179,95,.08); }
.auth-features { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 25px; }
.auth-features span { padding: 7px 11px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); font-size: .72rem; }
.auth-card { padding: 34px; border: 1px solid var(--line); border-radius: 22px; background: rgba(20,20,24,.9); box-shadow: var(--shadow); }
.auth-card h2 { margin: 0 0 20px; font-size: 1.8rem; }
.form { display: grid; gap: 15px; }
.divider { margin: 20px 0; display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .7rem; }
.divider:before, .divider:after { content:""; height: 1px; background: var(--line); flex: 1; }
.setup-warning { padding: 13px; border: 1px solid rgba(215,179,95,.25); border-radius: 10px; background: rgba(215,179,95,.06); }
.setup-warning p { margin: 3px 0 0; color: var(--muted); font-size: .75rem; }
.demo-box { margin-top: 20px; padding: 13px; display: grid; gap: 4px; border-radius: 10px; background: #0e0e11; }
.demo-box b { margin-top: 5px; color: var(--muted); font-size: .67rem; }
.error-page { display: grid; place-items: center; }
.error-shell { width: min(90%, 620px); text-align: center; }
.error-shell .brand { margin-bottom: 45px; }
.error-code { color: var(--gold); font-family: Georgia,serif; font-size: 7rem; line-height: 1; opacity: .6; }
.error-shell h1 { font-size: 2rem; }
.error-shell p { color: var(--muted); }
.error-shell > div:last-child { display: flex; gap: 10px; justify-content: center; }
.member-page { background: #0d0d10; }
.member-header { min-height: 72px; padding: 0 28px; border-bottom: 1px solid var(--line); background: #101013; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 40; }
.member-header > div { display: flex; align-items: center; gap: 14px; }
.member-header > div > a { color: var(--muted); font-size: .78rem; }
.member-header form { margin: 0; }
.member-shell { min-height: calc(100vh - 72px); display: grid; grid-template-columns: 250px minmax(0,1fr); }
.member-sidebar { padding: 24px 14px; border-right: 1px solid var(--line); background: #101013; }
.member-identity { padding: 8px 8px 20px; display: flex; align-items: center; gap: 11px; }
.avatar { width: 43px; height: 43px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: #17120a; font-weight: 900; }
.member-identity > div { min-width: 0; display: flex; flex-direction: column; }
.member-identity b, .member-identity small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.member-identity small { color: var(--muted); font-size: .68rem; }
.member-sidebar nav { display: grid; gap: 3px; }
.member-sidebar nav a { padding: 10px 11px; border-radius: 9px; color: #aaa7af; display: flex; align-items: center; gap: 10px; font-size: .8rem; }
.member-sidebar nav a > span { width: 24px; color: var(--gold); text-align: center; }
.member-sidebar nav a > i { margin-left: auto; min-width: 18px; height: 18px; padding: 0 4px; display: grid; place-items: center; border-radius: 99px; background: var(--danger); color: #fff; font-size: .6rem; font-style: normal; }
.member-sidebar nav a:hover, .member-sidebar nav a.active { background: rgba(215,179,95,.09); color: var(--gold-2); }
.member-sidebar hr { width: 100%; border: 0; border-top: 1px solid var(--line); margin: 9px 0; }
.member-content { min-width: 0; padding: 34px; }
.page-head { margin-bottom: 22px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.page-head h1 { margin: 0; font-family: Georgia,"Noto Serif TC",serif; font-size: clamp(2rem,4vw,3.3rem); }
.page-head p:not(.eyebrow) { margin: 4px 0 0; color: var(--muted); }
.metric-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 20px; }
.metric-grid article { padding: 20px; border: 1px solid var(--line); border-radius: 15px; background: #141418; display: flex; flex-direction: column; }
.metric-grid article > span { color: var(--muted); font-size: .7rem; }
.metric-grid strong { margin: 6px 0 14px; color: var(--gold-2); font-size: 1.8rem; }
.metric-grid a { margin-top: auto; color: var(--gold); font-size: .72rem; }
.panel { padding: 20px; border: 1px solid var(--line); border-radius: 15px; background: #141418; }
.panel + .panel { margin-top: 14px; }
.panel-head { margin-bottom: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.panel-head h2, .panel h2 { margin: 0; font-size: 1.05rem; }
.panel-head a { color: var(--gold); font-size: .72rem; }
.member-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.member-two-col > .panel + .panel { margin-top: 0; }
.compact-list { display: grid; gap: 8px; }
.compact-list > a { padding: 9px; border: 1px solid var(--line); border-radius: 10px; display: flex; align-items: center; gap: 10px; }
.compact-list img { width: 48px; height: 48px; object-fit: contain; background: #202025; border-radius: 8px; }
.compact-list > a > div { flex: 1; }
.compact-list b { font-size: .8rem; }
.compact-list p { margin: 2px 0 0; color: var(--muted); font-size: .68rem; }
.compact-list small { color: var(--muted); font-size: .65rem; }
.account-checks { display: grid; gap: 9px; }
.account-checks > div { padding: 10px; border: 1px solid var(--line); border-radius: 10px; display: flex; align-items: center; gap: 10px; }
.account-checks > div > span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #25252b; color: var(--muted); font-size: .7rem; }
.account-checks > div.done > span { background: rgba(58,190,132,.18); color: #8ce0ba; }
.account-checks b { font-size: .78rem; }
.account-checks p { margin: 1px 0 0; color: var(--muted); font-size: .68rem; }
.status, .pill { display: inline-flex; align-items: center; padding: 4px 8px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); font-size: .65rem; font-weight: 800; }
.status.good { color: #8ce0ba; border-color: rgba(58,190,132,.3); background: rgba(58,190,132,.08); }
.status.bad { color: #ff9ea2; border-color: rgba(232,92,97,.3); background: rgba(232,92,97,.08); }
.draw-grid { display: grid; gap: 13px; }
.draw-card { padding: 16px; border: 1px solid var(--line); border-radius: 15px; background: #141418; display: grid; grid-template-columns: 110px 1fr auto; gap: 18px; align-items: center; }
.draw-card:hover { border-color: var(--line-strong); }
.draw-card img { width: 110px; height: 90px; object-fit: contain; background: #202025; border-radius: 11px; }
.draw-card small { color: var(--muted); }
.draw-card h2 { margin: 4px 0; font-size: 1.05rem; }
.draw-card p { margin: 0; color: var(--muted); font-size: .75rem; }
.draw-card > b { color: var(--gold); font-size: .75rem; }
.rarity-row { display: flex; gap: 4px; margin-top: 8px; }
.rarity-row .rarity { min-width: 25px; height: 25px; border-radius: 6px; font-size: .62rem; }
.result-hero { padding: 22px; margin-bottom: 16px; border: 1px solid var(--line-strong); border-radius: 17px; background: linear-gradient(120deg,#191815,#141418); display: flex; align-items: center; gap: 22px; }
.result-hero img { width: 170px; height: 140px; object-fit: contain; }
.result-hero h2 { margin: 4px 0; }
.result-hero p { color: var(--muted); }
.result-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 13px; }
.result-grid article { min-height: 210px; padding: 20px; border: 1px solid var(--line); border-radius: 15px; background: #141418; position: relative; }
.result-index { position: absolute; right: 14px; top: 12px; color: #34343a; font-size: 2.3rem; font-weight: 900; }
.result-grid h2 { margin: 18px 0 5px; font-size: 1rem; }
.result-grid p, .result-grid small { color: var(--muted); font-size: .72rem; }
.prize-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.prize-grid article { border: 1px solid var(--line); border-radius: 15px; background: #141418; overflow: hidden; }
.prize-image { height: 190px; background: #202025; position: relative; display: grid; place-items: center; }
.prize-image img { width: 90%; height: 170px; object-fit: contain; }
.prize-image .rarity { position: absolute; left: 12px; top: 12px; }
.prize-grid article > div:last-child { padding: 17px; }
.prize-grid small { color: var(--muted); }
.prize-grid h2 { margin: 5px 0; font-size: .95rem; }
.wallet-balance { background: linear-gradient(135deg,#1b1811,#141418); display: flex; flex-direction: column; justify-content: center; }
.wallet-balance p { color: var(--muted); }
.wallet-balance strong { color: var(--gold-2); font-size: 2.6rem; }
.wallet-balance small { font-size: .9rem; }
.wallet-balance span { color: var(--muted); font-size: .72rem; }
.topup-form { display: flex; gap: 8px; }
.topup-form select { flex: 1; }
.positive { color: #8ce0ba; }
.negative { color: #ff9ea2; }
.coupon-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.coupon-grid article { min-height: 170px; padding: 20px; border: 1px dashed rgba(215,179,95,.45); border-radius: 15px; background: linear-gradient(135deg,rgba(215,179,95,.08),#141418); display: flex; flex-direction: column; }
.coupon-grid article > div > small { color: var(--gold); letter-spacing: .12em; }
.coupon-grid h2 { margin: 9px 0; }
.coupon-grid p { color: var(--muted); }
.coupon-grid footer { margin-top: auto; display: flex; justify-content: space-between; align-items: center; }
.coupon-grid footer small { color: var(--muted); }
.notification-list { display: grid; gap: 8px; }
.notification-list > a { padding: 15px; border: 1px solid var(--line); border-radius: 12px; display: flex; align-items: flex-start; gap: 12px; background: #141418; }
.notification-list > a.unread { border-color: rgba(215,179,95,.3); background: rgba(215,179,95,.05); }
.notification-list > a > span { color: var(--gold); }
.notification-list > a > div { flex: 1; }
.notification-list b { font-size: .84rem; }
.notification-list p { margin: 3px 0; color: var(--muted); font-size: .73rem; }
.notification-list small { color: #67646c; }
.notification-list i { color: var(--gold); font-style: normal; }
.binding-card { margin-bottom: 16px; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: #141418; display: flex; align-items: center; gap: 20px; }
.binding-card.bound { border-color: rgba(6,199,85,.35); }
.binding-icon { width: 82px; height: 82px; border-radius: 18px; display: grid; place-items: center; background: var(--green); color: #fff; font-weight: 900; }
.binding-card h2 { margin: 8px 0; }
.binding-card p { color: var(--muted); }
.config-list { display: grid; }
.config-list > div { padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 14px; }
.config-list span { color: var(--muted); font-size: .75rem; }
.config-list b { font-size: .78rem; }
.qr-panel { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.qr-panel p { color: var(--muted); }
.qr-panel img { width: 150px; border: 8px solid #fff; border-radius: 9px; }
.step-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 13px; }
.step-grid article { padding: 18px; border: 1px solid var(--line); border-radius: 13px; background: #141418; }
.step-grid article > b { color: var(--gold); font-size: .7rem; }
.step-grid h3 { margin: 7px 0; font-size: .9rem; }
.step-grid p { margin: 0; color: var(--muted); font-size: .72rem; }
.form-panel { max-width: 720px; }
.form-note { padding: 12px; border-radius: 10px; background: #101013; }
.form-note p { margin: 2px 0 0; color: var(--muted); }
.address-layout { grid-template-columns: 360px 1fr; align-items: start; }
.address-list { display: grid; gap: 12px; }
.address-list .panel { margin: 0; }
.default-address { border-color: rgba(215,179,95,.35); }
.inline-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.inline-actions form { margin: 0; }
.admin-product-list { display: grid; gap: 12px; }
.admin-product { margin: 0 !important; display: grid; grid-template-columns: 160px 1fr; gap: 20px; align-items: center; }
.admin-product > img { width: 160px; height: 130px; object-fit: contain; border-radius: 11px; background: #202025; }
.admin-product-fields { gap: 10px; }
.form-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.member-bottom { display: none; }

@media (max-width: 1120px) {
  .main-nav { display: none; position: absolute; left: 20px; right: 20px; top: 72px; padding: 10px; background: #121215; border: 1px solid var(--line); border-radius: 13px; box-shadow: var(--shadow); flex-direction: column; align-items: stretch; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 11px; }
  .menu-toggle { display: block; }
  .header-actions { margin-left: 0; }
  .home-hero { grid-template-columns: 1fr 1fr; gap: 32px; }
  .product-grid { grid-template-columns: repeat(3,1fr); }
  .category-strip { grid-template-columns: repeat(2,1fr); }
  .category-strip a:nth-child(2) { border-right: 0; }
  .category-strip a:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .lab-banner-inner { grid-template-columns: 1fr auto; padding-block: 35px; }
  .operation-flow { grid-column: 1 / -1; grid-row: 2; }
  .metric-grid { grid-template-columns: repeat(2,1fr); }
  .result-grid, .prize-grid, .coupon-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 820px) {
  .section-shell { width: min(calc(100% - 28px), var(--max)); }
  .site-header .brand small { display: none; }
  .header-inner { min-height: 66px; gap: 10px; }
  .header-actions .wallet-chip { display: none; }
  .header-actions .btn.gold { display: none; }
  .account-chip b { display: none; }
  .home-hero { min-height: auto; padding-block: 48px; grid-template-columns: 1fr; }
  .hero-product { min-height: 430px; }
  .hero-product img { height: 290px; }
  .hero-metrics { gap: 22px; }
  .product-grid { grid-template-columns: repeat(2,1fr); }
  .product-image { height: 220px; }
  .split-section, .product-main-grid, .product-description-grid { grid-template-columns: 1fr; }
  .purchase-panel { position: static; }
  .detail-image { min-height: 420px; }
  .detail-image img { height: 380px; }
  .activity-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .auth-shell { grid-template-columns: 1fr; gap: 30px; }
  .auth-brand { text-align: center; }
  .auth-brand > p:not(.eyebrow) { margin-inline: auto; }
  .lab-orb { margin-inline: auto; }
  .auth-features { justify-content: center; }
  .member-header { padding: 0 14px; }
  .member-header .brand small, .member-header > div > a, .member-header .wallet-chip { display: none; }
  .member-shell { display: block; }
  .member-sidebar { display: none; }
  .member-content { padding: 24px 16px 90px; }
  .member-two-col, .address-layout { grid-template-columns: 1fr; }
  .result-grid, .prize-grid, .coupon-grid { grid-template-columns: repeat(2,1fr); }
  .member-bottom { position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; padding-bottom: env(safe-area-inset-bottom); min-height: 64px; border-top: 1px solid var(--line); background: rgba(16,16,19,.96); backdrop-filter: blur(14px); display: grid; grid-template-columns: repeat(5,1fr); }
  .member-bottom a { padding: 8px 3px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 2px; color: var(--muted); font-size: .62rem; }
  .member-bottom a span { color: var(--gold); font-size: 1rem; }
  .member-bottom a.active { color: var(--gold-2); background: rgba(215,179,95,.06); }
  .admin-product { grid-template-columns: 1fr; }
  .admin-product > img { width: 100%; }
}

@media (max-width: 560px) {
  .section-shell { width: min(calc(100% - 22px), var(--max)); }
  .brand-mark { width: 38px; height: 38px; }
  .hero-copy h1 { font-size: 2.55rem; }
  .hero-lead { font-size: .92rem; }
  .hero-metrics { justify-content: space-between; }
  .hero-product { min-height: 365px; padding: 16px; }
  .hero-product img { height: 235px; }
  .hero-product-panel h2 { font-size: 1rem; }
  .category-strip { grid-template-columns: 1fr; }
  .category-strip a { border-right: 0; border-bottom: 1px solid var(--line); }
  .category-strip a:last-child { border-bottom: 0; }
  .product-grid { grid-template-columns: 1fr; }
  .product-image { height: 275px; }
  .lab-banner-inner { grid-template-columns: 1fr; gap: 18px; }
  .operation-flow { grid-column: auto; grid-row: auto; }
  .split-section { gap: 54px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 25px; }
  .catalog-hero, .page-banner { padding: 28px 22px; }
  .catalog-hero form { flex-direction: column; }
  .catalog-summary { align-items: flex-start; gap: 5px; flex-direction: column; }
  .detail-image { min-height: 340px; }
  .detail-image img { height: 300px; }
  .purchase-panel, .detail-section { padding: 20px; }
  .purchase-stats strong { font-size: 1.3rem; }
  .ledger-list article { align-items: flex-start; flex-wrap: wrap; }
  .ledger-stock { width: 100%; text-align: left; margin-left: 48px; }
  .ticket-board { grid-template-columns: repeat(8,1fr); }
  .auth-top { padding: 15px; }
  .auth-shell { width: min(calc(100% - 24px), 1050px); padding-top: 20px; }
  .auth-brand h1 { font-size: 2.6rem; }
  .auth-card { padding: 22px; }
  .page-head { align-items: flex-start; flex-direction: column; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .metric-grid article { padding: 15px; }
  .metric-grid strong { font-size: 1.35rem; }
  .draw-card { grid-template-columns: 75px 1fr; }
  .draw-card img { width: 75px; height: 70px; }
  .draw-card > b { grid-column: 2; }
  .result-hero { align-items: flex-start; flex-direction: column; }
  .result-hero img { width: 100%; height: 180px; }
  .result-grid, .prize-grid, .coupon-grid { grid-template-columns: 1fr; }
  .binding-card { align-items: flex-start; flex-direction: column; }
  .binding-icon { width: 62px; height: 62px; }
  .qr-panel { align-items: flex-start; flex-direction: column; }
  .step-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .topup-form { flex-direction: column; }
}
