/* ==========================================================
   坤发卡 · 初音物语二次元主题 v2「春樱物语」
   玻璃拟态 · 渐变主视觉 · 樱花飘落 · 自动深色模式 · 全端响应式
   ========================================================== */
:root {
    --bg: linear-gradient(135deg, #fdf0f6 0%, #eaf4ff 45%, #f3ecff 100%);
    --primary: #ff7eb3;
    --primary-deep: #ff5f9e;
    --secondary: #6db3f2;
    --accent: #a78bfa;
    --card: rgba(255, 255, 255, .86);
    --card-solid: #ffffff;
    --text: #43354e;
    --muted: #9b8fa5;
    --line: rgba(255, 126, 179, .16);
    --ok: #2fbf8f;
    --warn: #f59e0b;
    --bad: #ef4d6e;
    --radius: 18px;
    --shadow: 0 10px 30px rgba(255, 111, 165, .14);
    --shadow-hover: 0 16px 40px rgba(255, 111, 165, .26);
    --ring: 0 0 0 4px rgba(255, 126, 179, .16);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    font-family: "PingFang SC", "MiSans", "HarmonyOS Sans SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, sans-serif;
    background: var(--bg) fixed;
    color: var(--text);
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
.wrap { width: 92%; max-width: 1120px; margin: 0 auto; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.mono { font-family: Consolas, Monaco, "JetBrains Mono", monospace; }
::selection { background: rgba(255, 126, 179, .35); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(255, 126, 179, .35); border-radius: 999px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- 入场动画 ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.main .panel, .goods-card, .cat-tabs, .hero, .announce { animation: fadeUp .5s ease both; }
.goods-card:nth-child(2) { animation-delay: .06s; }
.goods-card:nth-child(3) { animation-delay: .12s; }
.goods-card:nth-child(4) { animation-delay: .18s; }
.goods-card:nth-child(5) { animation-delay: .24s; }
.goods-card:nth-child(6) { animation-delay: .3s; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- 樱花飘落 ---------- */
.sakura-bg { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.sakura-bg span {
    position: absolute; top: -6%;
    width: 12px; height: 12px;
    background: linear-gradient(135deg, #ffd9e9, #ffaed0);
    border-radius: 100% 0 100% 0;
    opacity: .75;
    filter: blur(.3px);
    animation: fall linear infinite;
}
.sakura-bg span:nth-child(1) { left: 5%;  animation-duration: 12s;  animation-delay: 0s;   transform: scale(.8); }
.sakura-bg span:nth-child(2) { left: 16%; animation-duration: 15s;  animation-delay: 2.2s; transform: scale(1.15); }
.sakura-bg span:nth-child(3) { left: 28%; animation-duration: 9.5s; animation-delay: 4.1s; transform: scale(.6); }
.sakura-bg span:nth-child(4) { left: 40%; animation-duration: 13s;  animation-delay: 1.2s; transform: scale(1); }
.sakura-bg span:nth-child(5) { left: 52%; animation-duration: 10.5s;animation-delay: 3.6s; transform: scale(.9); }
.sakura-bg span:nth-child(6) { left: 63%; animation-duration: 14s;  animation-delay: .9s;  transform: scale(.7); }
.sakura-bg span:nth-child(7) { left: 74%; animation-duration: 16s;  animation-delay: 5.2s; transform: scale(1.25); }
.sakura-bg span:nth-child(8) { left: 84%; animation-duration: 11s;  animation-delay: 2.6s; transform: scale(.85); }
.sakura-bg span:nth-child(9) { left: 92%; animation-duration: 13.5s;animation-delay: 4.4s; transform: scale(.95); }
.sakura-bg span:nth-child(10){ left: 10%; animation-duration: 17s;  animation-delay: 6.4s; transform: scale(.5); }
.sakura-bg span:nth-child(11){ left: 47%; animation-duration: 9s;   animation-delay: 7.2s; transform: scale(1.05); }
.sakura-bg span:nth-child(12){ left: 70%; animation-duration: 12.5s;animation-delay: 3.2s; transform: scale(.72); }
@keyframes fall {
    0%   { transform: translate(0, -6vh) rotate(0deg); opacity: .85; }
    50%  { transform: translate(42px, 52vh) rotate(190deg); }
    100% { transform: translate(-28px, 108vh) rotate(360deg); opacity: .35; }
}

/* ---------- 顶栏 ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .72);
    backdrop-filter: blur(16px) saturate(1.4);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 13px 0; gap: 10px; }
.logo { font-size: 21px; font-weight: 900; letter-spacing: .5px;
    background: linear-gradient(90deg, var(--primary-deep), var(--accent));
    -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo-icon { color: var(--primary); -webkit-text-fill-color: var(--primary); margin-right: 2px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
    font-size: 14px; padding: 7px 14px; border-radius: 999px;
    color: var(--text); opacity: .82; transition: .2s;
}
.nav a:hover { color: var(--primary-deep); background: rgba(255, 126, 179, .1); opacity: 1; }
.nav-user { font-size: 13px; color: var(--muted); padding: 7px 10px; }
.nav-burger {
    display: none;
    width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 12px;
    background: rgba(255,255,255,.7); cursor: pointer;
    flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-burger span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--text); transition: .25s; }
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 公告 ---------- */
.announce {
    margin: 16px auto 0; padding: 11px 18px;
    background: linear-gradient(90deg, rgba(255,126,179,.12), rgba(167,139,250,.12));
    border: 1px solid rgba(255, 126, 179, .28);
    border-radius: 14px; font-size: 13px;
}

/* ---------- 主视觉 Hero ---------- */
.hero {
    position: relative; overflow: hidden;
    margin-top: 18px; padding: 44px 34px;
    background: linear-gradient(120deg, rgba(255,126,179,.9), rgba(167,139,250,.85) 55%, rgba(109,179,242,.85));
    border-radius: 26px;
    box-shadow: 0 18px 44px rgba(167, 139, 250, .3);
    color: #fff;
}
.hero-blob { position: absolute; border-radius: 50%; filter: blur(6px); opacity: .5; pointer-events: none; }
.hero-blob.b1 { width: 190px; height: 190px; right: -46px; top: -58px; background: radial-gradient(circle at 30% 30%, #fff, rgba(255,255,255,.15)); animation: float 7s ease-in-out infinite; }
.hero-blob.b2 { width: 130px; height: 130px; right: 170px; bottom: -60px; background: radial-gradient(circle at 30% 30%, #ffe3f0, rgba(255,227,240,.1)); animation: float 9s ease-in-out infinite reverse; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
.hero-title { position: relative; font-size: 30px; font-weight: 900; letter-spacing: 1px; text-shadow: 0 2px 14px rgba(0,0,0,.12); }
.hero-title span { margin: 0 6px; opacity: .8; }
.hero-sub { position: relative; margin-top: 12px; font-size: 14.5px; opacity: .95; }
.hero-chip { position: relative; display: inline-block; margin-top: 18px; padding: 7px 16px; border-radius: 999px; background: rgba(255,255,255,.22); border: 1px solid rgba(255,255,255,.35); font-size: 12.5px; backdrop-filter: blur(4px); }

/* ---------- 主体面板 ---------- */
.main { position: relative; z-index: 1; flex: 1; padding: 6px 0 46px; }
.panel {
    background: var(--card);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, .75);
    padding: 24px 26px;
    margin-top: 16px;
}
.panel-title { font-size: 21px; font-weight: 800; margin-bottom: 14px;
    background: linear-gradient(90deg, var(--primary-deep), var(--accent));
    -webkit-background-clip: text; background-clip: text; color: transparent; display: inline-block; }
.panel-subtitle { font-size: 15px; margin: 18px 0 10px; color: var(--muted); }

/* ---------- 分类标签 ---------- */
.cat-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.cat-tab {
    padding: 9px 20px; border-radius: 999px;
    background: rgba(255, 255, 255, .85);
    border: 1px solid var(--line);
    font-size: 14px; font-weight: 500;
    transition: .2s;
}
.cat-tab:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--primary-deep); }
.cat-tab.active { background: linear-gradient(90deg, var(--primary), var(--accent)); color: #fff; border-color: transparent; box-shadow: 0 6px 16px rgba(255, 126, 179, .35); }

/* ---------- 商品网格 ---------- */
.goods-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; margin-top: 18px; }
.goods-card {
    position: relative;
    background: var(--card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius);
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, .8);
    box-shadow: var(--shadow);
    transition: .25s;
    display: flex; flex-direction: column;
    overflow: hidden;
}
.goods-card::before {
    content: ''; position: absolute; inset: 0 0 auto 0; height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--secondary));
    opacity: 0; transition: .25s;
}
.goods-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); border-color: rgba(255, 126, 179, .4); }
.goods-card:hover::before { opacity: 1; }
.goods-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.goods-cat { font-weight: 700; font-size: 15.5px; }
.goods-badge { flex-shrink: 0; font-size: 11px; color: #fff; background: linear-gradient(90deg, var(--ok), #5ad0a8); border-radius: 999px; padding: 3px 11px; }
.goods-badge.soldout { background: linear-gradient(90deg, var(--bad), #ff7d95); }
.goods-desc { flex: 1; font-size: 13px; color: var(--muted); margin: 11px 0 15px; line-height: 1.65; min-height: 40px; }
.goods-foot { display: flex; justify-content: space-between; align-items: center; }
.goods-price { font-size: 21px; font-weight: 900;
    background: linear-gradient(90deg, var(--primary-deep), var(--accent));
    -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- 按钮 ---------- */
.btn-buy {
    position: relative; overflow: hidden;
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    color: #fff; border: none; cursor: pointer;
    padding: 9px 22px; border-radius: 999px; font-size: 14px; font-weight: 600;
    transition: .22s;
}
.btn-buy::after {
    content: ''; position: absolute; top: 0; left: -80%; width: 50%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent);
    transform: skewX(-20deg); transition: .5s;
}
.btn-buy:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(255, 126, 179, .4); }
.btn-buy:hover::after { left: 120%; }
.btn-buy.big { width: 100%; padding: 13px; font-size: 16px; margin-top: 14px; }
.btn-buy:disabled { background: #ccc; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-buy:disabled::after { display: none; }
.btn-ghost {
    display: inline-block; padding: 8px 20px; border-radius: 999px; font-size: 14px;
    border: 1px solid rgba(255, 126, 179, .45); color: var(--primary-deep); transition: .2s; margin: 0 6px;
}
.btn-ghost:hover { background: rgba(255, 126, 179, .1); }
.btn-copy {
    border: 1px solid rgba(109, 179, 242, .5); background: rgba(109, 179, 242, .12);
    color: #2b7fd4; border-radius: 9px; padding: 5px 13px; cursor: pointer; font-size: 12px; transition: .2s;
}
.btn-copy:hover { background: rgba(109, 179, 242, .22); }

/* ---------- 表单 ---------- */
.form-row { margin-bottom: 15px; }
.form-row label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 7px; }
.form-row input, .form-row textarea, .form-row select {
    width: 100%; padding: 11px 15px;
    border: 1.5px solid var(--line);
    border-radius: 12px; font-size: 14.5px;
    background: rgba(255, 255, 255, .92); color: var(--text);
    outline: none; transition: .2s;
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus { border-color: var(--primary); box-shadow: var(--ring); }
.form-row input::placeholder, .form-row textarea::placeholder { color: #c5bccc; }

/* ---------- 订单摘要 ---------- */
.order-summary {
    background: linear-gradient(90deg, rgba(255,126,179,.09), rgba(167,139,250,.09));
    border: 1px solid rgba(255, 126, 179, .14);
    border-radius: 14px; padding: 13px 18px; margin-bottom: 15px;
}
.os-row { display: flex; justify-content: space-between; gap: 10px; padding: 5.5px 0; font-size: 14px; }
.os-row span { color: var(--muted); }
.os-row b { text-align: right; word-break: break-all; }
.warn-line { color: var(--warn); font-size: 12.5px !important; }
.price-text { color: var(--primary-deep); }
.ok-text { color: var(--ok); }
.bad-text { color: var(--bad); }
.warn-text { color: var(--warn); }
.usdt-amount { color: var(--primary-deep); font-size: 18px; font-family: Consolas, Monaco, monospace; }

/* ---------- 支付方式 ---------- */
/* 购买数量步进器(隐藏原生spinner) */
.num-step { display: inline-flex; align-items: stretch; border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; background: rgba(255,255,255,.9); }
.num-step .ns-btn { width: 44px; border: none; background: transparent; color: var(--text2, #8a8f98); font-size: 18px; font-weight: 600; cursor: pointer; transition: background .15s, color .15s; line-height: 1; }
.num-step .ns-btn:hover { background: rgba(0,0,0,.05); color: var(--text, #333); }
.num-step .ns-btn:active { transform: scale(.94); }
.num-step input { width: 88px; text-align: center; border: none; border-left: 1.5px solid var(--line); border-right: 1.5px solid var(--line); border-radius: 0; background: transparent; font-weight: 700; -moz-appearance: textfield; appearance: textfield; }
.num-step input::-webkit-outer-spin-button, .num-step input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.pay-list { display: flex; flex-direction: column; gap: 11px; }
.pay-item {
    display: flex; align-items: center; width: 100%;
    background: rgba(255, 255, 255, .9);
    border: 1.5px solid var(--line);
    border-radius: 14px; padding: 14px 17px;
    cursor: pointer; font-size: 15px; transition: .2s;
}
.pay-item:hover { border-color: var(--primary); transform: translateX(5px); box-shadow: var(--shadow); }

/* 商品页内嵌紧凑版: 胶囊网格, 收银台choose页保持大卡样式 */
.pay-list.pay-compact { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); flex-direction: unset; gap: 8px; }
.pay-compact .pay-item { display: flex; flex-direction: row; align-items: center; width: auto; padding: 9px 12px; border-radius: 10px; border-width: 1px; font-size: 13px; }
.pay-compact .pay-item input { display: none; }
.pay-compact .pay-item:has(input:checked) { border-color: var(--primary); }
.pay-compact .pay-item:hover { transform: none; box-shadow: none; }
.pay-compact .pay-icon { margin: 0 8px 0 0; }
.pay-compact .pay-icon svg, .pay-compact .pay-brand { width: 22px; height: 22px; }
.pay-compact .pay-name { font-weight: 600; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pay-icon { display: flex; align-items: center; margin-right: 13px; }
.pay-icon svg, .pay-brand { display: block; border-radius: 6px; box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.pay-brand-row { display: inline-flex; align-items: center; gap: 6px; }
.pay-brand-row svg { border-radius: 5px; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.pay-name { flex: 1; text-align: left; font-weight: 600; }
.pay-arrow { color: var(--muted); font-size: 18px; }
.tip-line { font-size: 12.5px; color: var(--muted); margin-top: 14px; }

/* ---------- 二维码/支付页 ---------- */
.pay-panel { text-align: center; }
.qr-wrap { margin: 10px auto; }
.qr-box { display: inline-block; padding: 13px; background: #fff; border-radius: 18px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.qr-box img, .qr-box canvas { display: block; }
.qr-tip { font-size: 14px; margin-top: 13px; }
.qr-tip.small { font-size: 12px; color: var(--muted); }
.wallet-line { margin-top: 11px; display: flex; align-items: center; justify-content: center; gap: 9px; flex-wrap: wrap; }
.wallet-line code { background: rgba(109,179,242,.12); padding: 7px 11px; border-radius: 9px; font-size: 12px; word-break: break-all; max-width: 72%; }
.poll-status { margin-top: 17px; font-size: 14px; color: var(--secondary); }
.dotting::after { content: ''; animation: dots 1.5s steps(4) infinite; }
@keyframes dots { 0%{content:''} 25%{content:'.'} 50%{content:'..'} 75%{content:'...'} }
.pay-actions { margin-top: 17px; }

/* ---------- 卡密 ---------- */
.cards-box {
    background: linear-gradient(135deg, rgba(47,191,143,.1), rgba(109,179,242,.12));
    border: 1.5px dashed rgba(47, 191, 143, .5);
    border-radius: 14px; padding: 17px; margin-top: 8px; text-align: left;
}
.cards-head { font-weight: 700; margin-bottom: 10px; color: var(--ok); }
.cards-content {
    background: var(--card-solid); border-radius: 12px; padding: 15px;
    font-family: Consolas, Monaco, monospace; font-size: 14px;
    white-space: pre-wrap; word-break: break-all; line-height: 1.75;
    box-shadow: inset 0 0 0 1px var(--line);
}

/* ---------- 订单列表 ---------- */
.order-list { margin-top: 16px; display: flex; flex-direction: column; gap: 11px; }
.order-item { background: rgba(255,255,255,.9); border: 1.5px solid var(--line); border-radius: 14px; padding: 13px 17px; transition: .2s; }
.order-item:hover { border-color: var(--primary); transform: translateX(5px); box-shadow: var(--shadow); }
.oi-line { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.oi-line.dim { font-size: 12px; color: var(--muted); margin-top: 5px; }
.oi-status { font-size: 12px; flex-shrink: 0; }

/* ---------- 登录/注册 ---------- */
.auth-panel { max-width: 440px; margin-left: auto; margin-right: auto; }
.auth-tabs { display: flex; gap: 8px; margin-bottom: 18px; background: rgba(255,255,255,.65); padding: 5px; border-radius: 14px; border: 1px solid var(--line); }
.auth-tab { flex: 1; text-align: center; padding: 10px; border-radius: 10px; font-weight: 700; color: var(--muted); transition: .2s; }
.auth-tab.active { background: linear-gradient(90deg, var(--primary), var(--accent)); color: #fff; box-shadow: 0 5px 14px rgba(255,126,179,.35); }
.auth-err { background: rgba(239,77,110,.1); color: var(--bad); border-radius: 11px; padding: 10px 14px; font-size: 13px; margin-bottom: 13px; }
.captcha-row { display: flex; gap: 10px; align-items: center; }
.captcha-img { height: 46px; border-radius: 11px; cursor: pointer; border: 1.5px solid var(--line); }
.captcha-input { flex: 1; }
.nav-user { font-size: 13px; color: var(--muted); }

/* ---------- 联系方式类型选择 ---------- */
/* 类型胶囊与账号输入框同行 */
.contact-line { display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch; }
.contact-line .contact-types { flex: none; }
.contact-line input[name="contact"] { flex: 1 1 200px; min-width: 0; }

.contact-types { display: flex; flex-wrap: wrap; gap: 8px; }
.ct-item {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 7px 15px; border-radius: 999px; font-size: 13.5px;
    background: rgba(255, 255, 255, .85);
    border: 1.5px solid var(--line);
    cursor: pointer; transition: .18s; user-select: none;
}
.ct-item input { display: none; }
.ct-item:has(input:checked) {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    color: #fff; border-color: transparent;
    box-shadow: 0 4px 12px rgba(255, 126, 179, .35);
}
.ct-item:has(input:not(:checked)):hover { border-color: var(--primary); color: var(--primary-deep); }

/* ---------- 空状态 ---------- */
.empty-box { text-align: center; padding: 42px 10px; color: var(--muted); }
.empty-face { font-size: 42px; margin-bottom: 10px; }
.empty-box .btn-buy { margin-top: 16px; }

/* ---------- 悬浮客服 ---------- */
.cs-wrap { position: fixed; right: 18px; bottom: 18px; z-index: 80; }
.cs-btn {
    width: 54px; height: 54px; border-radius: 50%; border: none; cursor: pointer;
    font-size: 24px; line-height: 1;
    background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff;
    box-shadow: 0 10px 26px rgba(255, 126, 179, .5);
    transition: .22s;
}
.cs-btn:hover { transform: translateY(-3px) scale(1.06); }
.cs-panel {
    display: none; position: absolute; bottom: 66px; right: 0; width: 272px;
    background: var(--card);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--line); border-radius: 16px;
    box-shadow: var(--shadow-hover); padding: 14px 15px;
    animation: fadeUp .25s ease both;
}
.cs-panel.open { display: block; }
.cs-head { font-weight: 800; font-size: 14.5px; margin-bottom: 6px; display: flex; justify-content: space-between; align-items: center; }
.cs-close { cursor: pointer; opacity: .55; font-size: 18px; padding: 0 4px; }
.cs-close:hover { opacity: 1; }
.cs-item { display: flex; align-items: center; gap: 7px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 13px; flex-wrap: wrap; }
.cs-item:last-of-type { border-bottom: none; }
.cs-tag { background: linear-gradient(90deg, var(--primary), var(--accent)); color: #fff; font-size: 11px; padding: 2.5px 10px; border-radius: 999px; flex-shrink: 0; }
.cs-note { color: var(--muted); font-size: 11px; flex-shrink: 1; max-width: 96px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-val { flex: 1; word-break: break-all; min-width: 72px; }
.cs-act { border: 1px solid rgba(109, 179, 242, .5); background: rgba(109, 179, 242, .12); color: #2b7fd4; border-radius: 8px; padding: 3.5px 11px; cursor: pointer; font-size: 12px; flex-shrink: 0; transition: .15s; }
.cs-act:hover { background: rgba(109, 179, 242, .24); }
.cs-tip { margin-top: 9px; font-size: 11.5px; color: var(--muted); }

/* ---------- 页脚 ---------- */
.site-footer { position: relative; z-index: 1; padding: 20px 0 28px; text-align: center; font-size: 12px; color: var(--muted); }
.powered { margin-left: 8px; opacity: .7; }

/* ---------- 自动深色模式 ---------- */
@media (prefers-color-scheme: dark) {
    :root {
        --bg: linear-gradient(135deg, #171226 0%, #131a2c 50%, #1a1430 100%);
        --primary: #ff8fb9;
        --primary-deep: #ff7aa9;
        --accent: #b39dfa;
        --secondary: #7cbdf5;
        --card: rgba(34, 28, 48, .82);
        --card-solid: #241e33;
        --text: #ece4f4;
        --muted: #9d92ad;
        --line: rgba(255, 143, 185, .2);
        --shadow: 0 10px 30px rgba(0, 0, 0, .35);
        --shadow-hover: 0 16px 40px rgba(255, 122, 169, .22);
    }
    .site-header { background: rgba(24, 19, 38, .75); }
    .site-header .nav { background: rgba(24, 19, 38, .97); }
    .nav a:hover { background: rgba(255, 143, 185, .12); }
    .nav-burger { background: rgba(255,255,255,.06); }
    .form-row input, .form-row textarea, .form-row select { background: rgba(16, 12, 26, .8); }
    .form-row input::placeholder, .form-row textarea::placeholder { color: #6d6280; }
    .pay-item, .order-item, .cat-tab { background: rgba(34, 28, 48, .9); }
    .cards-content { box-shadow: inset 0 0 0 1px var(--line); }
    .hero { background: linear-gradient(120deg, rgba(255,126,179,.75), rgba(139,109,250,.75) 55%, rgba(80,150,235,.72)); }
    .qr-box { background: #fff; }
    ::-webkit-scrollbar-thumb { background: rgba(255, 143, 185, .3); background-clip: content-box; }
}

/* ---------- 平板适配 ---------- */
@media (max-width: 960px) {
    .nav-burger { display: flex; }
    .nav {
        display: none;
        position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 2px;
        background: rgba(255, 255, 255, .97);
        backdrop-filter: blur(16px);
        border-bottom: 1px solid var(--line);
        padding: 10px 14px 14px;
        box-shadow: 0 18px 30px rgba(0,0,0,.08);
    }
    .nav.open { display: flex; animation: fadeUp .25s ease both; }
    .nav a { padding: 11px 16px; border-radius: 12px; font-size: 15px; }
    .nav a:hover { transform: none; }
    .hero { padding: 34px 26px; }
    .hero-title { font-size: 25px; }
}
@media (max-width: 640px) {
    .wrap { width: 94%; }
    .panel { padding: 18px 16px; border-radius: 16px; }
    .hero { padding: 28px 20px; border-radius: 20px; }
    .hero-title { font-size: 21px; }
    .hero-sub { font-size: 13px; }
    .goods-grid { grid-template-columns: 1fr; gap: 14px; }
    .btn-ghost { display: block; max-width: 240px; margin: 8px auto; text-align: center; }
    .pay-actions { display: flex; flex-direction: column; gap: 8px; }
    .os-row { flex-wrap: wrap; }
    .wallet-line code { max-width: 100%; }
    .site-footer { padding: 16px 0 24px; }
}

/* ---------- 公告/单页 ---------- */
a.announce { display: flex; align-items: center; gap: 8px; transition: box-shadow .2s ease, transform .2s ease; }
a.announce:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.announce-more { margin-left: auto; font-weight: 600; opacity: .75; }

.notice-list { display: grid; gap: 12px; margin-top: 16px; }
.notice-item {
    display: block;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 15px 18px;
    background: var(--card);
    transition: transform .2s ease, box-shadow .2s ease;
}
.notice-item:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.n-title { font-weight: 700; font-size: 15.5px; color: var(--text); }
.n-excerpt { margin-top: 5px; font-size: 13px; color: var(--muted); }
.n-meta { margin-top: 9px; font-size: 12.5px; color: var(--muted); display: flex; }
.n-more { margin-left: auto; color: var(--primary); font-weight: 600; }
.n-time { margin: 4px 0 0; font-size: 12.5px; color: var(--muted); }
.notice-body { margin-top: 14px; color: var(--text); font-size: 14.5px; line-height: 1.85; word-break: break-word; }
