/* ============================================================
   TSTARCOFFEE 帝星咖啡 —— 暗夜金调设计系统
   主背景 #0f1a29/#162638 · 品牌金 #af915f/#c9a96a · 奶油金 #fce1b6
   暖纸白 #f7f3ea · 墨色 #1c1c1c
   ============================================================ */
:root {
  --bg: #0f1a29;
  --bg2: #162638;
  --bg3: #1d3049;
  --gold: #af915f;
  --gold-hi: #c9a96a;
  --cream: #fce1b6;
  --paper: #f7f3ea;
  --ink: #1c1c1c;
  --ink-soft: #55504a;
  --line-dark: rgba(175, 145, 95, .28);
  --line-light: rgba(28, 28, 28, .14);
  --ease-cine: cubic-bezier(.2, .6, 0, 1);
  --ease-clip: cubic-bezier(.65, 0, .35, 1);
  --serif: 'Cormorant Garamond', 'Noto Serif SC', 'Songti SC', 'STSong', serif;
  --sans: 'Noto Sans SC', -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --nav-h: 72px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--paper);
  background: var(--bg);
  line-height: 1.75;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.3; }
::selection { background: var(--gold); color: var(--bg); }

/* ---------------- 导航 ---------------- */
.site-nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60; height: var(--nav-h);
  transition: background .5s var(--ease-cine), box-shadow .5s;
}
.site-nav.solid { background: rgba(15, 26, 41, .92); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line-dark); }
.nav-inner { max-width: 1440px; margin: 0 auto; height: 100%; padding: 0 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-brand img { height: 34px; width: auto; }
.nav-brand span { font-family: var(--serif); font-size: 15px; letter-spacing: .34em; color: var(--cream); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link { font-size: 14px; letter-spacing: .12em; padding: 8px 13px; color: rgba(247, 243, 234, .82); transition: color .3s; white-space: nowrap; }
.nav-link:hover { color: var(--cream); }
.nav-link.on { color: var(--gold-hi); }
.nav-cta { border: 1px solid var(--line-dark); margin-left: 8px; }
.nav-member { color: var(--gold-hi); }
.nav-item { position: relative; }
.nav-caret { font-size: 10px; margin-left: 5px; opacity: .6; }
.nav-drop { display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); min-width: 168px; flex-direction: column; padding: 10px 0; background: rgba(11, 19, 32, .97); border: 1px solid var(--line-dark); box-shadow: 0 18px 40px rgba(0, 0, 0, .45); }
.nav-drop .nav-link { padding: 11px 22px; font-size: 13.5px; letter-spacing: .14em; }
.nav-item:hover .nav-drop, .nav-item:focus-within .nav-drop { display: flex; }
.nav-item:hover > .nav-parent, .nav-item:focus-within > .nav-parent { color: var(--cream); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-dark); color: var(--cream); font-size: 18px; width: 42px; height: 42px; cursor: pointer; }

/* ---------------- 通用版式 ---------------- */
main { min-height: 70vh; }
.section { padding: 110px 40px; }
.wrap { max-width: 1280px; margin: 0 auto; }
.eyebrow { font-size: 13px; letter-spacing: .42em; color: var(--gold); text-transform: uppercase; margin-bottom: 18px; }
.section-title { font-size: clamp(30px, 4vw, 46px); color: var(--cream); margin-bottom: 16px; }
.lead { max-width: 640px; color: rgba(247, 243, 234, .72); font-size: 16px; }
.hr-gold { width: 64px; height: 1px; background: var(--gold); border: 0; margin: 28px 0; }

.btn { display: inline-block; font-size: 14px; letter-spacing: .18em; padding: 14px 34px; border: 1px solid var(--gold); cursor: pointer; transition: all .4s var(--ease-cine); background: transparent; color: var(--cream); font-family: var(--sans); }
.btn:hover { background: var(--gold); color: var(--bg); }
.btn-gold { background: var(--gold); color: var(--bg); }
.btn-gold:hover { background: var(--gold-hi); border-color: var(--gold-hi); }
.btn-ghost-dark { border-color: rgba(15, 26, 41, .4); color: var(--ink); }
.btn-ghost-dark:hover { background: var(--ink); color: var(--paper); }
.btn-sm { padding: 8px 18px; font-size: 12px; }

/* 明暗区块 */
.dark { background: var(--bg); }
.darker { background: linear-gradient(180deg, var(--bg) 0%, #0b1320 100%); }
.light { background: var(--paper); color: var(--ink); }
.light .section-title { color: var(--ink); }
.light .lead { color: var(--ink-soft); }
.light .eyebrow { color: #96793f; }

/* 进场揭示（隐藏初始态由 JS 加 .pre，无 JS/降级时内容完整可见） */
.reveal.pre { clip-path: inset(0 100% 0 0); }
.reveal { transition: clip-path .7s var(--ease-clip); }
.reveal.seen { clip-path: inset(0 0 0 0); }
.fade-up.pre { opacity: 0; transform: translateY(24px); }
.fade-up { transition: opacity .8s var(--ease-cine), transform .8s var(--ease-cine); }
.fade-up.seen { opacity: 1; transform: none; }

/* ---------------- Hero ---------------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; animation: heroDrift 26s var(--ease-cine) infinite alternate; }
@keyframes heroDrift { from { transform: scale(1); } to { transform: scale(1.08); } }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,19,32,.72) 0%, rgba(15,26,41,.42) 40%, rgba(15,26,41,.55) 70%, var(--bg) 100%); }
.hero-content { position: relative; z-index: 2; padding: 0 24px; }
.hero-logo { width: min(360px, 76vw); height: auto; margin: 0 auto 26px; }
.hero h1 { font-size: clamp(28px, 5.4vw, 68px); color: var(--cream); letter-spacing: .14em; padding: 0 12px; }
.hero .hero-es { font-family: var(--serif); font-style: italic; font-size: clamp(15px, 2vw, 24px); letter-spacing: .3em; color: var(--gold-hi); margin-top: 16px; padding: 0 12px; }
.hero-scroll { position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); z-index: 2; font-size: 12px; letter-spacing: .38em; color: rgba(247,243,234,.6); }
.hero-scroll::after { content: ''; display: block; width: 1px; height: 44px; background: var(--gold); margin: 12px auto 0; animation: scrollHint 2.4s var(--ease-cine) infinite; }
@keyframes scrollHint { 0% { transform: scaleY(0); transform-origin: top; } 55% { transform: scaleY(1); transform-origin: top; } 56% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------------- 首页分区 ---------------- */
.quote-band { text-align: center; padding: 130px 24px; }
.quote-band blockquote { font-family: var(--serif); font-size: clamp(24px, 3.4vw, 40px); color: var(--cream); max-width: 900px; margin: 0 auto; line-height: 1.6; }
.quote-band cite { display: block; margin-top: 26px; font-style: normal; font-size: 14px; letter-spacing: .34em; color: var(--gold); }

.editorial { display: grid; grid-template-columns: repeat(12, 1fr); gap: 28px; align-items: center; }
.editorial .ed-img { grid-column: span 7; overflow: hidden; }
.editorial .ed-img img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; transition: none; }
.editorial .ed-text { grid-column: span 5; padding: 20px 8px; }
.editorial.flip .ed-img { order: 2; }
.editorial.flip .ed-text { order: 1; }

.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.trio-card { position: relative; overflow: hidden; display: block; }
.trio-card img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.trio-card .trio-cap { position: absolute; inset: auto 0 0 0; padding: 60px 24px 22px; background: linear-gradient(180deg, transparent, rgba(11, 19, 32, .92)); }
.trio-card h3 { color: var(--cream); font-size: 22px; margin-bottom: 6px; }
.trio-card p { font-size: 13px; color: rgba(247,243,234,.72); }
.trio-card .trio-go { font-size: 12px; letter-spacing: .28em; color: var(--gold-hi); }

.stores-band { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 1px; background: var(--line-dark); border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.store-cell { background: var(--bg); padding: 44px 36px; }
.store-cell h3 { color: var(--cream); font-size: 20px; margin-bottom: 10px; }
.store-cell p { font-size: 14px; color: rgba(247,243,234,.66); }
.store-cell .store-tag { font-size: 12px; letter-spacing: .3em; color: var(--gold); }

/* ---------------- 菜单页 ---------------- */
.menu-cats { display: flex; flex-wrap: wrap; gap: 10px; margin: 34px 0 56px; }
.menu-cat-btn { border: 1px solid var(--line-dark); background: none; color: rgba(247,243,234,.75); padding: 9px 22px; font-size: 13px; letter-spacing: .16em; cursor: pointer; font-family: var(--sans); transition: all .3s; }
.menu-cat-btn.on, .menu-cat-btn:hover { border-color: var(--gold); color: var(--gold-hi); }
.menu-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 64px 56px; }
.menu-item { display: grid; grid-template-columns: 150px 1fr; gap: 24px; align-items: start; }
.menu-item:nth-child(4n+2), .menu-item:nth-child(4n+3) { transform: translateY(28px); }
.menu-item img { width: 150px; height: 150px; object-fit: cover; }
.menu-item img.menu-logo { object-fit: contain; padding: 20px; background: rgba(247, 243, 234, .05); }
.menu-item h3 { color: var(--cream); font-size: 19px; display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.menu-item h3 .price { font-family: var(--serif); color: var(--gold-hi); font-size: 16px; white-space: nowrap; }
.menu-item p { font-size: 13.5px; color: rgba(247,243,234,.62); margin-top: 8px; }
.menu-note { margin-top: 70px; font-size: 13px; color: rgba(247,243,234,.5); letter-spacing: .12em; text-align: center; }

/* ---------------- 品牌故事 ---------------- */
.story-hero { padding: calc(var(--nav-h) + 90px) 40px 80px; text-align: center; }
.story-body { max-width: 760px; margin: 0 auto; font-size: 16.5px; color: rgba(247,243,234,.85); }
.story-body p { margin-bottom: 26px; }
.story-values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-light); margin-top: 80px; }
.story-value { background: var(--paper); padding: 40px 28px; }
.story-value h4 { font-size: 19px; color: var(--ink); margin-bottom: 10px; }
.story-value p { font-size: 13.5px; color: var(--ink-soft); }
.timeline { position: relative; margin: 70px 0 0; padding-left: 30px; border-left: 1px solid var(--line-dark); }
.timeline li { position: relative; padding: 0 0 44px 26px; }
.timeline li::before { content: ''; position: absolute; left: -36px; top: 8px; width: 11px; height: 11px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 5px var(--bg); }
.timeline .t-year { font-family: var(--serif); font-size: 30px; color: var(--gold-hi); }
.timeline p { font-size: 14.5px; color: rgba(247,243,234,.72); max-width: 620px; }

/* ---------------- 商城 ---------------- */
.shop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.product-card { background: var(--bg2); border: 1px solid rgba(175,145,95,.14); transition: border-color .4s; display: flex; flex-direction: column; }
.product-card:hover { border-color: var(--line-dark); }
.product-card a.ph { display: block; overflow: hidden; }
.product-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.product-card .pc-body { padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product-card h3 { color: var(--cream); font-size: 18px; }
.product-card .pc-desc { font-size: 13px; color: rgba(247,243,234,.6); flex: 1; }
.product-card .pc-foot { display: flex; justify-content: space-between; align-items: center; }
.price { font-family: var(--serif); font-size: 22px; color: var(--gold-hi); }
.stock-note { font-size: 12px; color: rgba(247,243,234,.45); }

.product-detail { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; padding-top: calc(var(--nav-h) + 50px); }
.product-detail img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.pd-info h1 { color: var(--cream); font-size: 34px; margin: 12px 0 18px; }
.pd-info .pd-desc { color: rgba(247,243,234,.72); margin-bottom: 26px; }
.qty-row { display: flex; gap: 14px; align-items: center; margin: 26px 0; }
.qty-row input { width: 72px; background: var(--bg); border: 1px solid var(--line-dark); color: var(--cream); padding: 10px; text-align: center; font-size: 15px; }

/* 购物车 */
.cart-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; padding-top: calc(var(--nav-h) + 50px); align-items: start; }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { text-align: left; font-weight: 400; font-size: 12px; letter-spacing: .26em; color: var(--gold); padding: 14px 10px; border-bottom: 1px solid var(--line-dark); }
.cart-table td { padding: 18px 10px; border-bottom: 1px solid rgba(175,145,95,.12); vertical-align: middle; font-size: 14.5px; }
.cart-table img { width: 72px; height: 72px; object-fit: cover; }
.cart-summary { background: var(--bg2); border: 1px solid var(--line-dark); padding: 34px 30px; position: sticky; top: calc(var(--nav-h) + 24px); }
.cart-summary h3 { color: var(--cream); margin-bottom: 20px; font-size: 20px; }
.sum-row { display: flex; justify-content: space-between; font-size: 14px; padding: 8px 0; color: rgba(247,243,234,.75); }
.sum-row.total { border-top: 1px solid var(--line-dark); margin-top: 12px; padding-top: 16px; font-size: 17px; color: var(--cream); }
.sum-row.total b { font-family: var(--serif); color: var(--gold-hi); font-size: 24px; }

/* ---------------- 活动 / 演出 ---------------- */
.event-split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; padding: 56px 0; border-bottom: 1px solid rgba(175,145,95,.14); }
.event-split:last-child { border-bottom: 0; }
.event-split.flip .ev-img { order: 2; }
.event-split img.ev-poster { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.ev-date { font-family: var(--serif); font-size: 15px; letter-spacing: .22em; color: var(--gold-hi); }
.ev-title { color: var(--cream); font-size: clamp(24px, 3vw, 34px); margin: 10px 0 14px; }
.ev-lineup { font-size: 14px; color: rgba(247,243,234,.7); margin-bottom: 14px; }
.ev-recap { font-size: 14px; color: rgba(247,243,234,.6); border-left: 2px solid var(--gold); padding-left: 16px; margin: 14px 0; }
.ev-gallery { display: flex; gap: 10px; margin-top: 16px; }
.ev-gallery img { width: 96px; height: 72px; object-fit: cover; }
.status-tag { display: inline-block; font-size: 11px; letter-spacing: .24em; border: 1px solid var(--line-dark); color: var(--gold-hi); padding: 4px 12px; margin-bottom: 12px; }
.status-tag.past { color: rgba(247,243,234,.45); }

.piano-band { position: relative; padding: 150px 40px; text-align: center; overflow: hidden; background: radial-gradient(ellipse at 50% 120%, #233c5c 0%, var(--bg) 60%); }
.piano-band svg { position: absolute; left: 50%; bottom: -20px; transform: translateX(-50%); width: min(920px, 110%); opacity: .5; }

/* ---------------- OPC ---------------- */
.opc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.opc-card { border: 1px solid var(--line-dark); padding: 44px 38px; background: linear-gradient(160deg, var(--bg2), var(--bg)); }
.opc-card h3 { color: var(--cream); font-size: 23px; margin-bottom: 14px; }
.opc-card p { font-size: 14px; color: rgba(247,243,234,.68); margin-bottom: 18px; }
.opc-card ul li { font-size: 13.5px; color: rgba(247,243,234,.6); padding: 6px 0 6px 20px; position: relative; }
.opc-card ul li::before { content: '—'; position: absolute; left: 0; color: var(--gold); }

/* ---------------- 空间服务 ---------------- */
.space-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.space-card { border: 1px solid var(--line-dark); background: var(--bg2); }
.space-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.space-card .sp-body { padding: 30px 30px 34px; }
.space-card h3 { color: var(--cream); font-size: 22px; margin-bottom: 6px; }
.space-card .sp-cap { font-size: 12px; letter-spacing: .3em; color: var(--gold-hi); margin-bottom: 12px; }
.space-card p { font-size: 14px; color: rgba(247,243,234,.68); }
.space-card .sp-services { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.space-card .sp-services span { font-size: 12px; border: 1px solid var(--line-dark); padding: 3px 12px; color: rgba(247,243,234,.6); }
.partner-row { display: grid; grid-template-columns: 200px 1fr; gap: 30px; padding: 34px 0; border-bottom: 1px solid rgba(175,145,95,.14); align-items: center; }
.partner-row img { width: 200px; height: 140px; object-fit: cover; }
.partner-row h3 { color: var(--cream); font-size: 21px; }
.partner-row .sp-host { font-size: 13px; letter-spacing: .2em; color: var(--gold-hi); margin-bottom: 8px; }
.partner-row p { font-size: 14px; color: rgba(247,243,234,.68); margin: 8px 0; }

/* ---------------- 联系我们 ---------------- */
.contact-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 54px; align-items: start; }
.contact-map img { width: 100%; border: 1px solid var(--line-dark); display: block; }
.contact-map-links { margin-top: 16px; font-size: 13.5px; color: rgba(247,243,234,.6); }
.contact-map-links a { color: var(--gold-hi); border-bottom: 1px solid var(--line-dark); }
.contact-info h2 { color: var(--cream); font-size: 21px; margin: 0 0 10px; }
.contact-info > div { margin-bottom: 34px; }
.contact-info > div:last-child { margin-bottom: 0; }
.contact-info p { font-size: 14.5px; color: rgba(247,243,234,.68); line-height: 1.9; }
.contact-info a { color: var(--gold-hi); border-bottom: 1px solid var(--line-dark); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------------- 表单 ---------------- */
.form-card { max-width: 560px; margin: 0 auto; background: var(--bg2); border: 1px solid var(--line-dark); padding: 46px 44px; }
.form-card.wide-form { max-width: 760px; }
.form-card h1 { color: var(--cream); font-size: 28px; margin-bottom: 8px; }
.form-card .form-sub { font-size: 13.5px; color: rgba(247,243,234,.6); margin-bottom: 30px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 12.5px; letter-spacing: .18em; color: var(--gold); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; background: var(--bg); border: 1px solid rgba(175,145,95,.22); color: var(--paper);
  padding: 12px 14px; font-size: 15px; font-family: var(--sans); transition: border-color .3s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.field textarea { min-height: 96px; resize: vertical; }
.field .hint { font-size: 12px; color: rgba(247,243,234,.45); margin-top: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.checkbox-row { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: rgba(247,243,234,.7); }
.checkbox-row input { width: auto; margin-top: 5px; }
.form-error { background: rgba(160, 60, 50, .16); border: 1px solid rgba(200, 90, 70, .5); color: #f0b9ad; font-size: 13.5px; padding: 12px 16px; margin-bottom: 20px; }
.form-ok { background: rgba(90, 140, 90, .14); border: 1px solid rgba(110, 160, 110, .45); color: #cfe6c8; font-size: 13.5px; padding: 12px 16px; margin-bottom: 20px; }
.form-foot { margin-top: 26px; font-size: 13px; color: rgba(247,243,234,.55); text-align: center; }
.form-foot a { color: var(--gold-hi); border-bottom: 1px solid var(--line-dark); }

.page-head { padding: calc(var(--nav-h) + 76px) 40px 30px; text-align: center; }

/* ---------------- 会员 ---------------- */
.level-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.level-card { border: 1px solid var(--line-dark); padding: 42px 34px; text-align: center; background: linear-gradient(170deg, var(--bg2), var(--bg)); }
.level-card.featured { border-color: var(--gold); position: relative; }
.level-card h3 { color: var(--cream); font-size: 24px; margin-bottom: 8px; }
.level-card .lv-amount { font-family: var(--serif); font-size: 34px; color: var(--gold-hi); margin: 14px 0; }
.level-card p { font-size: 13.5px; color: rgba(247,243,234,.65); }
.honor-wall { display: flex; flex-wrap: wrap; gap: 14px; }
.honor-badge { border: 1px solid var(--line-dark); padding: 10px 22px; font-size: 14px; color: var(--gold-hi); letter-spacing: .1em; }
.honor-badge.dim { color: rgba(247,243,234,.35); border-style: dashed; }
.profile-layout { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: start; padding-top: calc(var(--nav-h) + 50px); }
.profile-side { background: var(--bg2); border: 1px solid var(--line-dark); padding: 36px 30px; text-align: center; position: sticky; top: calc(var(--nav-h) + 24px); }
.profile-side .pf-level { font-size: 13px; letter-spacing: .3em; color: var(--gold-hi); margin: 18px 0 6px; }
.profile-side .pf-id { font-size: 12.5px; color: rgba(247,243,234,.55); }
.progress { height: 4px; background: rgba(175,145,95,.18); margin: 18px 0 8px; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-hi)); }
.progress-label { font-size: 12px; color: rgba(247,243,234,.55); }
.profile-main h2 { color: var(--cream); font-size: 22px; margin: 34px 0 16px; }
.profile-main h2:first-child { margin-top: 0; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th { text-align: left; font-weight: 400; font-size: 12px; letter-spacing: .2em; color: var(--gold); padding: 10px 12px; border-bottom: 1px solid var(--line-dark); }
.data-table td { padding: 12px; border-bottom: 1px solid rgba(175,145,95,.12); color: rgba(247,243,234,.8); }

/* ---------------- 后台 ---------------- */
.admin-shell { display: grid; grid-template-columns: 230px 1fr; min-height: 100vh; padding-top: 0; }
.admin-side { background: #0b1320; border-right: 1px solid var(--line-dark); padding: 30px 0; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.admin-side .as-brand { padding: 0 26px 24px; border-bottom: 1px solid var(--line-dark); margin-bottom: 18px; }
.admin-side .as-brand img { height: 30px; }
.admin-side .as-brand p { font-size: 11px; letter-spacing: .3em; color: var(--gold); margin-top: 8px; }
.admin-side a { display: block; padding: 11px 26px; font-size: 14px; color: rgba(247,243,234,.72); border-left: 2px solid transparent; }
.admin-side a:hover { color: var(--cream); }
.admin-side a.on { color: var(--gold-hi); border-left-color: var(--gold); background: rgba(175,145,95,.07); }
.admin-main { padding: 40px 44px 80px; }
.admin-main h1 { color: var(--cream); font-size: 26px; margin-bottom: 26px; }
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 40px; }
.stat-card { background: var(--bg2); border: 1px solid rgba(175,145,95,.16); padding: 24px 26px; }
.stat-card .sc-num { font-family: var(--serif); font-size: 34px; color: var(--gold-hi); }
.stat-card .sc-label { font-size: 12.5px; letter-spacing: .2em; color: rgba(247,243,234,.6); margin-top: 4px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13.5px; background: var(--bg2); }
.admin-table th { text-align: left; font-weight: 400; font-size: 12px; letter-spacing: .16em; color: var(--gold); padding: 12px 14px; border-bottom: 1px solid var(--line-dark); white-space: nowrap; }
.admin-table td { padding: 12px 14px; border-bottom: 1px solid rgba(175,145,95,.1); color: rgba(247,243,234,.82); vertical-align: middle; }
.admin-table img { width: 52px; height: 52px; object-fit: cover; }
.admin-table .ops form { display: inline; }
.admin-table .ops button { background: none; border: 1px solid rgba(175,145,95,.3); color: rgba(247,243,234,.7); font-size: 12px; padding: 4px 10px; margin-right: 6px; cursor: pointer; font-family: var(--sans); }
.admin-table .ops button:hover { border-color: var(--gold); color: var(--gold-hi); }
.admin-table .ops button.danger:hover { border-color: #c05a4a; color: #e8a294; }
.inline-form { display: inline; }
.tag { font-size: 11px; letter-spacing: .1em; padding: 3px 10px; border: 1px solid var(--line-dark); color: var(--gold-hi); white-space: nowrap; }
.tag.off { color: rgba(247,243,234,.4); border-style: dashed; }
.admin-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 26px; }
.admin-login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: radial-gradient(ellipse at 50% -10%, #233c5c 0%, var(--bg) 55%); padding: 40px 20px; }

/* ---------------- Toast / 页脚 / 错误页 ---------------- */
.toast { position: fixed; left: 50%; bottom: 34px; transform: translate(-50%, 20px); background: var(--cream); color: var(--bg); padding: 12px 28px; font-size: 14px; letter-spacing: .08em; opacity: 0; pointer-events: none; transition: all .4s var(--ease-cine); z-index: 300; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.site-footer { background: #0b1320; border-top: 1px solid var(--line-dark); padding: 80px 40px 0; }
.footer-grid { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 60px; }
.footer-brand img { height: 44px; margin-bottom: 18px; }
.footer-slogan { font-family: var(--serif); font-size: 17px; color: var(--cream); }
.footer-slogan em { color: var(--gold-hi); }
.footer-note { font-size: 13px; color: rgba(247,243,234,.5); margin-top: 14px; line-height: 1.9; }
.footer-col h4 { color: var(--gold-hi); font-size: 14px; letter-spacing: .28em; margin-bottom: 20px; font-family: var(--sans); font-weight: 400; }
.footer-col p, .footer-col li { font-size: 13.5px; color: rgba(247,243,234,.6); margin-bottom: 10px; }
.footer-col a:hover { color: var(--cream); }
.footer-partners { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.footer-partners a, .footer-partners span { font-size: 13.5px; color: rgba(247,243,234,.6); }
.footer-map-links a { color: var(--gold-hi); }
.footer-icp { border-top: 1px solid rgba(175,145,95,.14); text-align: center; padding: 22px 0; font-size: 12.5px; color: rgba(247,243,234,.45); letter-spacing: .1em; }
.error-hero { min-height: 80vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 120px 24px 60px; }
.error-code { font-family: var(--serif); font-size: 110px; color: var(--gold); line-height: 1; }
.error-hero h1 { color: var(--cream); margin: 18px 0 10px; font-size: 28px; }
.error-hero p { color: rgba(247,243,234,.6); margin-bottom: 30px; }

/* ---------------- 响应式 640 / 1024 / 1440 ---------------- */
@media (max-width: 1024px) {
  .editorial .ed-img, .editorial .ed-text { grid-column: span 12; }
  .editorial.flip .ed-img { order: 1; } .editorial.flip .ed-text { order: 2; }
  .trio { grid-template-columns: 1fr 1fr; }
  .shop-grid { grid-template-columns: 1fr 1fr; }
  .menu-grid { grid-template-columns: 1fr; }
  .menu-item:nth-child(4n+2), .menu-item:nth-child(4n+3) { transform: none; }
  .product-detail, .cart-layout, .event-split, .profile-layout { grid-template-columns: 1fr; }
  .event-split.flip .ev-img { order: 1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stat-cards { grid-template-columns: 1fr 1fr; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { position: static; height: auto; display: flex; flex-wrap: wrap; align-items: center; padding: 14px 0; }
  .admin-side .as-brand { border: 0; padding: 0 16px; margin: 0; }
  .admin-side .as-brand p { display: none; }
  .admin-side a { padding: 8px 14px; border-left: 0; }
  .admin-main { padding: 26px 20px 60px; }
}
/* 导航提前折叠，避免中等宽度下顶栏文字挤压重叠 */
@media (max-width: 1180px) {
  .nav-links { display: none; position: absolute; top: var(--nav-h); left: 0; right: 0; background: rgba(11, 19, 32, .97); flex-direction: column; align-items: stretch; padding: 16px 24px 24px; gap: 2px; }
  .nav-links.open { display: flex; }
  .nav-link { padding: 12px 8px; border-bottom: 1px solid rgba(175,145,95,.1); }
  .nav-item > .nav-link { border-bottom: 0; }
  .nav-caret { display: none; }
  .nav-drop { display: flex; position: static; transform: none; min-width: 0; background: none; border: 0; box-shadow: none; padding: 0 0 4px 20px; }
  .nav-drop .nav-link { font-size: 13px; color: rgba(247,243,234,.58); padding: 10px 8px; border-bottom: 1px solid rgba(175,145,95,.08); }
  .nav-cta { margin: 10px 0 0; text-align: center; }
  .nav-toggle { display: block; background: rgba(11, 19, 32, .6); border-color: var(--gold); }
}
@media (max-width: 640px) {
  body { overflow-x: clip; }
  .nav-brand span { display: none; }
  .nav-brand img { height: 26px; }
  .section { padding: 72px 22px; }
  .nav-inner { padding: 0 20px; }
  .story-hero, .page-head { padding-left: 22px; padding-right: 22px; }
  .trio, .shop-grid, .space-grid, .opc-grid, .level-cards, .story-values, .stores-band { grid-template-columns: 1fr; }
  .menu-item { grid-template-columns: 104px 1fr; gap: 16px; }
  .menu-item img { width: 104px; height: 104px; }
  .field-row, .admin-form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .form-card { padding: 34px 24px; }
  .stat-cards { grid-template-columns: 1fr; }
  .partner-row { grid-template-columns: 1fr; }
  .cart-table th:nth-child(1), .cart-table td:nth-child(1) { display: none; }
}

/* ---------------- 动效降级 ---------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { clip-path: none; }
  .fade-up { opacity: 1; transform: none; }
  .hero-bg img { animation: none; }
}
