@charset "utf-8";
/* ==========================================================================
   HIGHTECH UI  —  高科技深色设计系统
   仅依赖站点本地资源，配合 Bootstrap5 网格 / Tab 组件使用
   ========================================================================== */

:root {
    /* ---------- 色彩 Token ---------- */
    --bg:            #04060e;
    --bg-soft:       #080d1c;
    --panel:         rgba(14, 22, 42, .62);
    --panel-2:       rgba(20, 30, 56, .72);
    --line:          rgba(122, 168, 255, .14);
    --line-strong:   rgba(122, 168, 255, .30);

    --text:          #e8f0ff;
    --text-2:        #a9badb;
    --text-3:        #6f82a6;

    --cyan:          #25e3ff;
    --blue:          #4d7cff;
    --violet:        #8b5cf6;
    --pink:          #ff4ecd;
    --mint:          #2dffb3;
    --amber:         #ffc24b;
    --danger:        #ff5c7c;

    --grad-main:     linear-gradient(120deg, #25e3ff 0%, #4d7cff 48%, #8b5cf6 100%);
    --grad-warm:     linear-gradient(120deg, #ffc24b 0%, #ff4ecd 100%);

    /* ---------- 圆角 / 阴影 / 间距 ---------- */
    --r-sm: 10px;
    --r-md: 16px;
    --r-lg: 22px;
    --r-xl: 30px;

    --shadow-card:   0 18px 50px -18px rgba(0, 8, 30, .85);
    --shadow-glow:   0 0 0 1px rgba(37, 227, 255, .25), 0 14px 44px -10px rgba(37, 227, 255, .35);
    --space:         clamp(56px, 8vw, 110px);

    --font-body: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, -apple-system, sans-serif;
    --font-mono: ui-monospace, "Cascadia Code", "JetBrains Mono", Consolas, "Courier New", monospace;
}

/* ==========================================================================
   1. 基础
   ========================================================================== */
html { scroll-behavior: smooth; }

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    color: var(--cyan);
    text-decoration: none;
    transition: color .25s ease;
}
a:hover { color: #7ff0ff; }

p { color: var(--text-2); }
label { color: var(--text-2); font-weight: 500; }
hr { border-color: var(--line); opacity: 1; }

::selection { background: rgba(37, 227, 255, .28); color: #fff; }

/* ---------- 滚动条 ---------- */
::-webkit-scrollbar { width: 10px; height: 8px; }
::-webkit-scrollbar-track { background: #060a16; }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(37, 227, 255, .45), rgba(139, 92, 246, .45));
    border-radius: 99px;
    border: 2px solid #060a16;
}
::-webkit-scrollbar-thumb:hover { background: rgba(37, 227, 255, .7); }

/* ==========================================================================
   2. 全局科技背景：网格 + 光晕 + 扫描线
   ========================================================================== */
body::before,
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -2;
}
body::before {
    background:
        radial-gradient(62rem 42rem at 12% -8%, rgba(37, 227, 255, .16), transparent 60%),
        radial-gradient(56rem 40rem at 92% 4%, rgba(139, 92, 246, .18), transparent 60%),
        radial-gradient(50rem 36rem at 50% 110%, rgba(77, 124, 255, .14), transparent 62%);
}
body::after {
    z-index: -1;
    background-image:
        linear-gradient(rgba(110, 165, 255, .055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(110, 165, 255, .055) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 78%);
    -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 78%);
}

/* 背景装饰裁剪容器（防止光斑产生横向滚动） */
.bg-layer {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

/* 扫描线遮罩 */
.bg-scanline {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg, rgba(255, 255, 255, .018) 0 1px, transparent 1px 4px);
}
/* 浮动光斑 */
.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: .35;
    animation: orbFloat 16s ease-in-out infinite alternate;
}
.bg-orb.o1 { width: 380px; height: 380px; left: -120px; top: 30%;  background: #25e3ff; }
.bg-orb.o2 { width: 420px; height: 420px; right: -140px; top: 8%;  background: #8b5cf6; animation-delay: -6s; }
.bg-orb.o3 { width: 300px; height: 300px; left: 40%; bottom: -160px; background: #4d7cff; animation-delay: -11s; }

@keyframes orbFloat {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to   { transform: translate3d(40px, -50px, 0) scale(1.12); }
}

/* ==========================================================================
   3. 通用文本 / 容器工具
   ========================================================================== */
.text-muted { color: var(--text-3) !important; }
.text-primary { color: var(--cyan) !important; }

.mono-label {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--cyan);
}

.main-container { position: relative; z-index: 1; }

.container { position: relative; }

.section-head { margin-bottom: 44px; }
.section-head h3 {
    font-weight: 800;
    font-size: clamp(24px, 3.4vw, 36px);
    letter-spacing: .02em;
    color: var(--text);
}
.section-head .lead { color: var(--text-2); font-size: 15px; }

.separator {
    display: block;
    width: 76px;
    height: 4px;
    margin: 18px auto;
    border-radius: 99px;
    background: var(--grad-main);
    position: relative;
    box-shadow: 0 0 18px rgba(37, 227, 255, .55);
}

/* ==========================================================================
   4. 顶部导航
   ========================================================================== */
.header {
    padding: 0;
    background: rgba(6, 10, 22, .66);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border-bottom: 1px solid var(--line);
    transition: background .3s ease, box-shadow .3s ease, border-color .3s ease;
    z-index: 1030;
}
.header.scrolled {
    background: rgba(5, 8, 18, .92);
    border-bottom-color: var(--line-strong);
    box-shadow: 0 10px 40px -12px rgba(0, 10, 40, .9),
                inset 0 -1px 0 rgba(37, 227, 255, .12);
}
.header .row { margin: 0; min-height: 74px; align-items: center; }
.header .col-md-3, .header .col-md-9 { padding: 0; }

.logo { padding: 10px 0; }
.logo img {
    height: 46px;
    width: auto;
    max-width: 100%;
    filter: drop-shadow(0 0 12px rgba(37, 227, 255, .35));
}

.header .navbar { padding: 0; }
.header .navbar .container-fluid { flex-wrap: nowrap; }
.header .navbar-brand {
    font-weight: 800;
    font-size: 19px;
    letter-spacing: .03em;
    background: var(--grad-main);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}
.header .navbar-toggler {
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    padding: 6px 10px;
}
.header .navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(37, 227, 255, .18); }
.header .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba(180,210,255,.85)' stroke-width='2.2' stroke-linecap='round' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
    width: 1.2em; height: 1.2em;
}

.header .nav-link {
    position: relative;
    color: var(--text-2) !important;
    font-weight: 500;
    padding: 8px 16px !important;
    margin: 0 2px;
    border-radius: 99px;
    transition: color .25s ease, background .25s ease;
}
.header .nav-link::after {
    content: "";
    position: absolute;
    left: 50%; bottom: 2px;
    width: 0; height: 2px;
    border-radius: 2px;
    background: var(--grad-main);
    transform: translateX(-50%);
    transition: width .3s ease;
}
.header .nav-link:hover { color: #fff !important; background: rgba(122, 168, 255, .08); }
.header .nav-link.active {
    color: var(--cyan) !important;
    background: rgba(37, 227, 255, .08);
}
.header .nav-link.active::after { width: 60%; box-shadow: 0 0 10px var(--cyan); }

/* 搜索框 */
.header form.d-flex {
    position: relative;
    gap: 8px;
}
.header .form-control {
    background: rgba(12, 19, 38, .8);
    border: 1px solid var(--line);
    color: var(--text);
    border-radius: 99px;
    padding: 7px 16px;
    min-width: 190px;
    transition: border-color .25s ease, box-shadow .25s ease;
}
.header .form-control::placeholder { color: var(--text-3); }
.header .form-control:focus {
    background: rgba(14, 23, 46, .95);
    border-color: rgba(37, 227, 255, .55);
    box-shadow: 0 0 0 3px rgba(37, 227, 255, .14);
    color: #fff;
}
.header form .btn {
    border-radius: 99px;
    width: 38px; height: 38px;
    padding: 0;
    display: grid; place-items: center;
}

/* ==========================================================================
   5. Hero 首屏
   ========================================================================== */
.hero {
    position: relative;
    padding: clamp(72px, 11vw, 150px) 0 clamp(60px, 8vw, 110px);
    overflow: hidden;
}
/* Hero 中央光晕环 */
.hero .hero-halo {
    position: absolute;
    left: 50%; top: 46%;
    width: min(760px, 92vw);
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 50%, rgba(37, 227, 255, .14), transparent 58%),
        conic-gradient(from 120deg, transparent 0 30%, rgba(37, 227, 255, .22) 42%, transparent 55%,
                       rgba(139, 92, 246, .25) 72%, transparent 85%);
    -webkit-mask: radial-gradient(farthest-side, transparent 54%, #000 60%, #000 66%, transparent 72%);
            mask: radial-gradient(farthest-side, transparent 54%, #000 60%, #000 66%, transparent 72%);
    animation: haloSpin 22s linear infinite;
    pointer-events: none;
}
@keyframes haloSpin { to { transform: translate(-50%, -50%) rotate(360deg); } }

.hero .hero-grid-lines {
    position: absolute; inset: 0; pointer-events: none; opacity: .5;
    background:
        linear-gradient(90deg, transparent 49.7%, rgba(120, 170, 255, .08) 50%, transparent 50.3%),
        linear-gradient(0deg, transparent 49.7%, rgba(120, 170, 255, .08) 50%, transparent 50.3%);
    background-size: 180px 100%, 100% 120px;
    mask-image: linear-gradient(180deg, transparent, #000 30%, transparent 95%);
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, transparent 95%);
}

.hero .badge-hud {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 18px;
    border-radius: 99px;
    border: 1px solid var(--line-strong);
    background: rgba(14, 22, 42, .6);
    backdrop-filter: blur(8px);
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--cyan);
}
.hero .badge-hud .pulse-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--mint);
    box-shadow: 0 0 0 0 rgba(45, 255, 179, .7);
    animation: pulseDot 2s infinite;
}
@keyframes pulseDot {
    0%   { box-shadow: 0 0 0 0 rgba(45, 255, 179, .65); }
    70%  { box-shadow: 0 0 0 9px rgba(45, 255, 179, 0); }
    100% { box-shadow: 0 0 0 0 rgba(45, 255, 179, 0); }
}

.hero h1 {
    font-weight: 900;
    font-size: clamp(34px, 6.2vw, 72px);
    line-height: 1.12;
    letter-spacing: .01em;
    margin: 26px 0 20px;
    color: #fff;
}
.hero h1 .grad-text {
    background: var(--grad-main);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 26px rgba(37, 227, 255, .35));
}
.hero .hero-sub {
    font-size: clamp(15px, 1.7vw, 18px);
    color: var(--text-2);
    max-width: 640px;
    margin: 0 auto;
}

.hero .hero-actions { margin-top: 38px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.hero .hero-features {
    margin-top: clamp(44px, 6vw, 76px);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    max-width: 880px;
    margin-left: auto; margin-right: auto;
}
.hero-feature {
    position: relative;
    padding: 22px 18px;
    border-radius: var(--r-md);
    background: var(--panel);
    border: 1px solid var(--line);
    backdrop-filter: blur(10px);
    text-align: center;
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.hero-feature:hover {
    transform: translateY(-5px);
    border-color: rgba(37, 227, 255, .45);
    box-shadow: 0 18px 44px -16px rgba(37, 227, 255, .35);
}
.hero-feature .hf-icon {
    width: 46px; height: 46px;
    margin: 0 auto 12px;
    border-radius: 13px;
    display: grid; place-items: center;
    font-size: 21px;
    color: var(--cyan);
    background: linear-gradient(160deg, rgba(37, 227, 255, .18), rgba(139, 92, 246, .18));
    border: 1px solid var(--line-strong);
}
.hero-feature h6 { color: var(--text); font-weight: 700; margin: 0 0 3px; font-size: 15px; }
.hero-feature p { font-size: 12.5px; margin: 0; color: var(--text-3); }

/* HUD 角标 */
.hud-corner {
    position: absolute;
    width: 26px; height: 26px;
    border-color: rgba(37, 227, 255, .5);
    border-style: solid; border-width: 0;
    pointer-events: none;
}
.hud-corner.tl { top: 18px; left: 18px; border-top-width: 2px; border-left-width: 2px; border-top-left-radius: 6px; }
.hud-corner.tr { top: 18px; right: 18px; border-top-width: 2px; border-right-width: 2px; border-top-right-radius: 6px; }
.hud-corner.bl { bottom: 18px; left: 18px; border-bottom-width: 2px; border-left-width: 2px; border-bottom-left-radius: 6px; }
.hud-corner.br { bottom: 18px; right: 18px; border-bottom-width: 2px; border-right-width: 2px; border-bottom-right-radius: 6px; }

/* ==========================================================================
   6. 公告
   ========================================================================== */
.notice { padding: 0; }
.notice-card {
    position: relative;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 20px 24px;
    border-radius: var(--r-md);
    background: linear-gradient(120deg, rgba(37, 227, 255, .08), rgba(139, 92, 246, .08)), var(--panel);
    border: 1px solid var(--line);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}
.notice-card::before {
    content: "";
    position: absolute; left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--grad-main);
    box-shadow: 0 0 14px rgba(37, 227, 255, .7);
}
.notice-card .notice-icon {
    flex: 0 0 auto;
    width: 40px; height: 40px;
    border-radius: 12px;
    display: grid; place-items: center;
    color: var(--cyan); font-size: 18px;
    background: rgba(37, 227, 255, .1);
    border: 1px solid var(--line-strong);
}
.notice-card h4 {
    font-size: 15px; font-weight: 700; color: var(--text);
    margin: 2px 0 6px;
    display: flex; align-items: center; gap: 8px;
}
.notice-card .lead { font-size: 14px; margin: 0; color: var(--text-2); }
.notice-card .lead img { max-width: 100%; height: auto; }

/* ==========================================================================
   7. 分类 Tab
   ========================================================================== */
.category { padding: var(--space) 0 10px; }

.category-menus { margin-top: 8px; }
.category-menus .nav {
    flex-wrap: wrap;
    gap: 4px;
}
.category-menus .nav-item { margin: 4px; }
.category-menus .btn {
    border-radius: 99px !important;
    padding: 8px 22px !important;
    font-size: 14px;
    font-weight: 500;
    border-width: 1px;
}

/* ==========================================================================
   8. 商品卡片
   ========================================================================== */
.goods { padding: 30px 0 var(--space); }
.goods-list { position: relative; }

.goods .card {
    height: 100%;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    overflow: hidden;
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-card);
    transition: transform .35s cubic-bezier(.2,.7,.3,1), border-color .35s ease, box-shadow .35s ease;
}
.goods .card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(140deg, rgba(37, 227, 255, .55), transparent 40%, transparent 70%, rgba(139, 92, 246, .55));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
            mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    opacity: 0;
    transition: opacity .35s ease;
    pointer-events: none;
    z-index: 2;
}
.goods .card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-glow);
}
.goods .card:hover::before { opacity: 1; }

/* 卡片光标跟随光斑 */
.goods .card .card-glow {
    position: absolute;
    width: 230px; height: 230px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 227, 255, .16), transparent 65%);
    left: var(--mx, 50%); top: var(--my, 0%);
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity .3s ease;
    pointer-events: none;
    z-index: 1;
}
.goods .card:hover .card-glow { opacity: 1; }

.goods .card-img-top {
    height: 168px;
    object-fit: cover;
    width: 100%;
    transition: transform .55s cubic-bezier(.2,.7,.3,1);
    background: #0a1124;
}
.goods .card:hover .card-img-top { transform: scale(1.07); }

.goods .card-img-wrap {
    position: relative;
    overflow: hidden;
}
.goods .card-img-wrap::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(8, 13, 28, .9));
    pointer-events: none;
}

.goods .card-body {
    position: relative;
    z-index: 3;
    padding: 16px;
    display: flex;
    flex-direction: column;
}
.goods .card-title {
    color: var(--text);
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 12px;
    min-height: 22px;
}
.goods .price-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.goods .btn-price {
    border-color: rgba(37, 227, 255, .45) !important;
    color: var(--cyan) !important;
    background: rgba(37, 227, 255, .08) !important;
    border-radius: 8px !important;
    font-family: var(--font-mono);
    padding: 4px 11px !important;
}
.goods .btn-price strong { font-size: 15px; }
.goods .btn-wholesale {
    border-color: rgba(255, 194, 75, .45) !important;
    color: var(--amber) !important;
    background: rgba(255, 194, 75, .07) !important;
    border-radius: 8px !important;
    padding: 4px 11px !important;
}
.goods .stock-line {
    font-size: 12.5px;
    color: var(--text-3);
    font-family: var(--font-mono);
    margin: 2px 0 14px;
}
.goods .btn-order {
    margin-top: auto;
    width: 100%;
    border-radius: 11px !important;
    padding: 9px 0 !important;
    font-weight: 600;
}

/* 卡片角标徽章 */
.goods .badge-corner {
    position: absolute;
    top: 10px; left: 10px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 11.5px;
    font-weight: 600;
    backdrop-filter: blur(6px);
}
.badge-corner.auto {
    color: var(--mint);
    background: rgba(45, 255, 179, .12);
    border: 1px solid rgba(45, 255, 179, .35);
    box-shadow: 0 4px 18px -6px rgba(45, 255, 179, .5);
}
.badge-corner.manual {
    color: var(--amber);
    background: rgba(255, 194, 75, .12);
    border: 1px solid rgba(255, 194, 75, .35);
}

/* ==========================================================================
   9. 页脚
   ========================================================================== */
.footer {
    position: relative;
    margin-top: var(--space);
    padding: 38px 16px 30px !important;
    background: rgba(6, 10, 22, .7);
    border-top: 1px solid var(--line);
    backdrop-filter: blur(14px);
}
.footer::before {
    content: "";
    position: absolute; top: -1px; left: 50%;
    transform: translateX(-50%);
    width: min(560px, 70%); height: 1px;
    background: linear-gradient(90deg, transparent, rgba(37, 227, 255, .7), transparent);
}
.footer .author { color: var(--text-3); font-size: 13.5px; margin-bottom: 6px; }
.footer .author a { color: var(--cyan); font-weight: 600; }
.footer .custom { color: var(--text-3); font-size: 13px; }
.footer .custom img { max-width: 100%; height: auto; }
.footer .row { margin: 0; }

/* ==========================================================================
   10. 全站 Bootstrap 组件深色适配（购买 / 订单 / 支付 / 查询 / 错误页）
   ========================================================================== */

/* ---------- 卡片 ---------- */
.card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    color: var(--text);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-card);
}
.card-header {
    background: rgba(18, 28, 52, .7);
    border-bottom: 1px solid var(--line);
    color: var(--text);
    border-top-left-radius: var(--r-md);
    border-top-right-radius: var(--r-md);
}
.card .card-body { color: var(--text-2); }
.card-title { color: var(--text); }

/* ---------- 表单 ---------- */
.form-control,
.form-select {
    background: rgba(10, 17, 36, .85);
    border: 1px solid var(--line);
    color: var(--text);
    border-radius: var(--r-sm);
    padding: 9px 14px;
    transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.form-control::placeholder { color: var(--text-3); }
.form-control:focus,
.form-select:focus {
    background: rgba(13, 22, 46, .95);
    border-color: rgba(37, 227, 255, .55);
    box-shadow: 0 0 0 3px rgba(37, 227, 255, .14);
    color: #fff;
}
.form-control:disabled,
.form-control[readonly] { background: rgba(20, 28, 50, .6); color: var(--text-3); }
.input-group-text {
    background: rgba(18, 28, 52, .8);
    border: 1px solid var(--line);
    color: var(--text-2);
}
fieldset { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 16px 18px 8px; margin-top: 8px; }
legend { color: var(--cyan); font-size: 14px; float: none; width: auto; padding: 0 8px; }

.form-check-label { color: var(--text-2); padding-left: 2px; }
.form-check-input {
    background-color: rgba(10, 17, 36, .9);
    border: 1px solid var(--line-strong);
}
.form-check-input:checked {
    background-color: var(--blue);
    border-color: var(--cyan);
}
.form-check-input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(37, 227, 255, .18); }

/* input-spinner 加减按钮 */
.input-group .btn,
.bootstrap-touchspin .btn {
    background: rgba(18, 28, 52, .9);
    border: 1px solid var(--line);
    color: var(--cyan);
}
.input-group .btn:hover { background: rgba(37, 227, 255, .14); color: #fff; }

/* ---------- 按钮 ---------- */
.btn { border-radius: var(--r-sm); font-weight: 600; transition: all .28s ease; }
.btn:focus { box-shadow: 0 0 0 3px rgba(37, 227, 255, .18); }

.btn-primary {
    background: var(--grad-main);
    border: none;
    color: #fff;
    box-shadow: 0 10px 26px -10px rgba(37, 227, 255, .6);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -10px rgba(37, 227, 255, .75); filter: brightness(1.08); }

.btn-secondary {
    background: linear-gradient(120deg, rgba(120, 140, 180, .35), rgba(90, 110, 150, .35));
    border: 1px solid var(--line-strong);
    color: #eef4ff;
}
.btn-secondary:hover { border-color: var(--cyan); color: #fff; }

.btn-success { background: linear-gradient(120deg, #13d99a, #10b981); border: none; color: #04210f; }
.btn-success:hover { filter: brightness(1.1); color: #04210f; }

.btn-danger { background: linear-gradient(120deg, #ff6b88, #f03e63); border: none; color: #fff; }
.btn-warning { background: linear-gradient(120deg, #ffce5c, #ffab2e); border: none; color: #3a2400; }
.btn-dark {
    background: linear-gradient(120deg, #1a2748, #101a36);
    border: 1px solid var(--line-strong);
    color: #eaf2ff;
}
.btn-dark:hover { border-color: var(--cyan); box-shadow: 0 12px 30px -12px rgba(37, 227, 255, .55); color: #fff; }

.btn-outline-primary {
    border: 1px solid rgba(37, 227, 255, .55);
    color: var(--cyan);
    background: rgba(37, 227, 255, .05);
}
.btn-outline-primary:hover { background: var(--grad-main); border-color: transparent; color: #fff; box-shadow: 0 12px 30px -12px rgba(37, 227, 255, .6); }

.btn-outline-secondary {
    border: 1px solid var(--line-strong);
    color: var(--text-2);
    background: rgba(14, 22, 42, .45);
}
.btn-outline-secondary:hover,
.btn-outline-secondary.active {
    border-color: transparent;
    background: var(--grad-main) !important;
    color: #fff !important;
    box-shadow: 0 10px 26px -10px rgba(37, 227, 255, .6);
}
.btn-outline-success { border: 1px solid rgba(45, 255, 179, .5); color: var(--mint); background: rgba(45, 255, 179, .05); }
.btn-outline-success:hover { background: rgba(45, 255, 179, .16); color: var(--mint); }
.btn-outline-warning { border: 1px solid rgba(255, 194, 75, .5); color: var(--amber); background: rgba(255, 194, 75, .05); }
.btn-outline-warning:hover { background: rgba(255, 194, 75, .15); color: var(--amber); }
.btn-outline-dark { border: 1px solid var(--line-strong); color: var(--text-2); background: rgba(14, 22, 42, .45); }
.btn-outline-dark:hover { border-color: var(--cyan); color: #fff; background: rgba(37, 227, 255, .1); }

/* ---------- 徽章 ---------- */
.badge { font-weight: 600; padding: .42em .72em; border-radius: 8px; }
.badge.bg-success { background: rgba(45, 255, 179, .16) !important; color: var(--mint); border: 1px solid rgba(45, 255, 179, .4); }
.badge.bg-warning { background: rgba(255, 194, 75, .16) !important; color: var(--amber); border: 1px solid rgba(255, 194, 75, .4); }
.badge.bg-danger  { background: rgba(255, 92, 124, .16) !important; color: var(--danger); border: 1px solid rgba(255, 92, 124, .4); }
.badge.bg-info    { background: rgba(37, 227, 255, .16) !important; color: var(--cyan); border: 1px solid rgba(37, 227, 255, .4); }
.badge.bg-primary { background: rgba(77, 124, 255, .2) !important; color: #8fb0ff; border: 1px solid rgba(77, 124, 255, .45); }
.badge.bg-secondary { background: rgba(150, 170, 200, .16) !important; color: var(--text-2); border: 1px solid rgba(150, 170, 200, .35); }
.badge.bg-dark    { background: rgba(120, 140, 180, .18) !important; color: #d6e2f8; border: 1px solid rgba(120, 140, 180, .38); }

/* ---------- 导航 Pill（订单查询页 / Tab 分类） ---------- */
.nav-pills .nav-link {
    color: var(--text-2);
    border-radius: 99px;
    border: 1px solid var(--line);
    background: rgba(14, 22, 42, .5);
    margin: 3px;
    transition: all .25s ease;
}
.nav-pills .nav-link:hover { color: #fff; border-color: rgba(37, 227, 255, .45); }
.nav-pills .nav-link.active {
    color: #fff;
    background: var(--grad-main);
    border-color: transparent;
    box-shadow: 0 8px 22px -8px rgba(37, 227, 255, .6);
}

/* ---------- 弹窗 ---------- */
.modal-content {
    background: linear-gradient(160deg, rgba(18, 28, 54, .96), rgba(9, 15, 32, .98));
    border: 1px solid var(--line-strong);
    border-radius: var(--r-lg);
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, .9);
    color: var(--text);
}
.modal-header { border-bottom: 1px solid var(--line); }
.modal-footer { border-top: 1px solid var(--line); }
.modal-title { color: #fff; }
.btn-close {
    filter: invert(1) grayscale(1) brightness(1.6);
    opacity: .7;
}

/* ---------- 表格 ---------- */
.table { color: var(--text-2); border-color: var(--line); }
.table th, .table td { border-color: var(--line); }
.table thead th { background: rgba(18, 28, 52, .7); color: var(--text); border-bottom: 1px solid var(--line-strong); }
.table-hover tbody tr:hover { background: rgba(37, 227, 255, .05); color: #fff; }

/* ---------- Jumbotron（兼容旧公告结构） ---------- */
.jumbotron { background: transparent; }

/* ---------- 错误页 ---------- */
.err-message h5 { color: var(--danger); line-height: 1.8; }
.page-wrapper { background: transparent; }

/* ==========================================================================
   11. 入场动画
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.3,1);
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   12. 响应式
   ========================================================================== */
@media (max-width: 991.98px) {
    .header .row { min-height: 64px; flex-wrap: nowrap; }
    .header .navbar-collapse {
        position: absolute;
        top: 64px; left: 0; right: 0;
        background: rgba(7, 12, 26, .97);
        border-bottom: 1px solid var(--line-strong);
        padding: 14px 18px 18px;
        backdrop-filter: blur(18px);
    }
    .header .navbar-nav { margin-bottom: 10px; }
    .header .form-control { min-width: 0; flex: 1; }
}

@media (max-width: 767.98px) {
    body { font-size: 14px; }

    /* —— 顶部导航：修复双列被挤压成 50/50 的问题，改为单列 —— */
    .header .row { flex-wrap: wrap; }
    .header .col-md-3 { display: none; }
    .header .col-md-9 { flex: 0 0 100%; width: 100%; max-width: 100%; }
    .header .navbar { padding: 6px 0; }
    .header .navbar-brand { font-size: 17px; }

    /* —— Hero 首屏 —— */
    .hero { padding-top: 64px; }
    .hero h1 { font-size: clamp(26px, 7.4vw, 38px); margin: 20px 0 14px; }
    .hero .hero-actions { margin-top: 26px; gap: 12px; }
    .hero .hero-actions .btn { padding: 10px 22px; font-size: 15px; }
    .hero .hero-features { grid-template-columns: 1fr; max-width: 420px; gap: 12px; }
    .hero-feature { padding: 16px 14px; }

    /* —— 公告 —— */
    .notice-card { padding: 16px 18px; gap: 12px; }

    /* —— 区块与分类 Tab —— */
    .section-head { margin-bottom: 26px; }
    .category-menus .btn { padding: 6px 16px !important; font-size: 13px; }
    .category-menus .nav {
        flex-wrap: nowrap;
        justify-content: flex-start !important;
        overflow-x: auto;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .category-menus .nav::-webkit-scrollbar { display: none; }
    .category-menus .nav-item { flex: 0 0 auto; }

    /* —— 商品卡片（2列网格优化） —— */
    .goods { padding-top: 18px; }
    .goods .card-img-top { height: 138px; }
    .goods .card-body { padding: 13px; }
    .goods .card-title {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        white-space: normal;
        overflow: hidden;
        text-overflow: clip;
        font-size: 14px;
        line-height: 1.45;
        min-height: 40px;
        margin-bottom: 8px;
    }
    .goods .btn-price strong { font-size: 14px; }
    .goods .stock-line { margin-bottom: 10px; }

    /* —— 表单：16px 防止 iOS 聚焦自动放大 —— */
    .form-control, .form-select { font-size: 16px; }

    /* —— 购买页 —— */
    .card-img-top.p-5 { padding: 1.5rem !important; }
    .buy-form .card-body { padding: 18px 16px !important; }
    .buy-form button[type="submit"] { width: 100%; padding: 11px 0 !important; }

    /* —— 订单/账单表格：窄屏横向滑动 —— */
    .table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }

    .hud-corner { display: none; }
}

@media (max-width: 380px) {
    .goods .card-img-top { height: 118px; }
    .goods .card-title { min-height: 0; }
    .hero .hero-actions .btn { width: 100%; }
}

/* ==========================================================================
   13. 悬浮音乐播放器
   ========================================================================== */
.music-player {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 1025;
    font-family: var(--font-body);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

/* ---------- FAB 悬浮按钮 ---------- */
.music-fab {
    position: relative;
    width: 58px; height: 58px;
    border-radius: 50%;
    border: 1px solid rgba(37, 227, 255, .5);
    background: var(--grad-main);
    color: #fff;
    display: grid; place-items: center;
    box-shadow: 0 12px 34px -8px rgba(37, 227, 255, .7);
    transition: transform .3s ease, box-shadow .3s ease, opacity .3s ease;
    overflow: hidden;
}
.music-fab:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 18px 44px -8px rgba(37, 227, 255, .85); }
.music-fab:active { transform: scale(.96); }

.fab-note, .fab-eq {
    position: absolute;
    display: grid; place-items: center;
    transition: opacity .3s ease, transform .3s ease;
}
.fab-eq {
    height: 22px;
    flex-direction: row;
    align-items: flex-end;
    gap: 3px;
    opacity: 0;
    transform: scale(.6);
}
.fab-eq i {
    width: 3.5px;
    border-radius: 2px;
    background: #fff;
    height: 100%;
    transform-origin: bottom;
    animation: mpEq 0.9s ease-in-out infinite alternate;
}
.fab-eq i:nth-child(1) { animation-delay: -.25s; }
.fab-eq i:nth-child(2) { animation-delay: -.6s; }
.fab-eq i:nth-child(3) { animation-delay: -.4s; }
.fab-eq i:nth-child(4) { animation-delay: -.75s; }

@keyframes mpEq {
    0%   { transform: scaleY(.25); }
    50%  { transform: scaleY(.9); }
    100% { transform: scaleY(.45); }
}

.music-player.playing .fab-note { opacity: 0; transform: scale(.6) rotate(-20deg); }
.music-player.playing .fab-eq   { opacity: 1; transform: scale(1); }

.fab-ring {
    position: absolute; inset: -1px;
    border-radius: 50%;
    border: 1px solid rgba(37, 227, 255, .55);
    animation: fabRing 2.4s ease-out infinite;
}
@keyframes fabRing {
    0%   { transform: scale(1);   opacity: .8; }
    100% { transform: scale(1.7); opacity: 0; }
}

/* 展开面板时隐藏 FAB */
.music-player.open .music-fab {
    opacity: 0;
    pointer-events: none;
    transform: scale(.5);
}

/* ---------- 展开面板 ---------- */
.music-panel {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 296px;
    padding: 18px 18px 16px;
    border-radius: var(--r-lg);
    background: linear-gradient(165deg, rgba(20, 30, 58, .92), rgba(8, 14, 32, .94));
    border: 1px solid var(--line-strong);
    backdrop-filter: blur(20px) saturate(160%);
    box-shadow: 0 30px 80px -20px rgba(0, 5, 22, .95),
                inset 0 1px 0 rgba(160, 200, 255, .12);

    opacity: 0;
    transform: translateY(20px) scale(.9);
    transform-origin: bottom right;
    pointer-events: none;
    transition: opacity .35s ease, transform .35s cubic-bezier(.2,.8,.3,1);
}
.music-player.open .music-panel {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

/* HUD 角标 */
.mp-corner {
    position: absolute;
    width: 14px; height: 14px;
    border-color: rgba(37, 227, 255, .55);
    border-style: solid; border-width: 0;
}
.mp-corner.tl { top: 8px; left: 8px; border-top-width: 1.5px; border-left-width: 1.5px; border-top-left-radius: 4px; }
.mp-corner.tr { top: 8px; right: 8px; border-top-width: 1.5px; border-right-width: 1.5px; border-top-right-radius: 4px; }
.mp-corner.bl { bottom: 8px; left: 8px; border-bottom-width: 1.5px; border-left-width: 1.5px; border-bottom-left-radius: 4px; }
.mp-corner.br { bottom: 8px; right: 8px; border-bottom-width: 1.5px; border-right-width: 1.5px; border-bottom-right-radius: 4px; }

.mp-min {
    position: absolute;
    top: 12px; right: 14px;
    width: 26px; height: 26px;
    border-radius: 8px;
    display: grid; place-items: center;
    color: var(--text-3);
    background: transparent;
    transition: all .25s ease;
    z-index: 3;
}
.mp-min:hover { color: #fff; background: rgba(122, 168, 255, .12); }

/* ---------- 唱片 ---------- */
.mp-disc {
    width: 86px; height: 86px;
    margin: 4px auto 12px;
    border-radius: 50%;
    padding: 3px;
    background: conic-gradient(from 0deg, var(--cyan), var(--blue), var(--violet), var(--pink), var(--cyan));
    box-shadow: 0 0 22px -4px rgba(37, 227, 255, .55);
}
.mp-disc-inner {
    position: relative;
    width: 100%; height: 100%;
    border-radius: 50%;
    overflow: hidden;
    background:
        radial-gradient(circle at center, #0a1228 0 20%, transparent 21%),
        repeating-radial-gradient(circle at center, #101a34 0 2px, #0a1124 2px 4px);
    display: grid; place-items: center;
    animation: mpSpin 9s linear infinite;
    animation-play-state: paused;
}
.music-player.playing .mp-disc-inner { animation-play-state: running; }
.mp-disc-inner img {
    width: 56%; height: 56%;
    border-radius: 50%;
    object-fit: cover;
}
.mp-disc-inner::after {
    content: "";
    position: absolute;
    width: 9px; height: 9px;
    border-radius: 50%;
    background: #dfe9ff;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, .4);
}
@keyframes mpSpin { to { transform: rotate(360deg); } }

/* ---------- 歌曲信息 ---------- */
.mp-info { text-align: center; margin-bottom: 12px; }
.mp-state {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: .24em;
    color: var(--cyan);
    margin-bottom: 4px;
}
.mp-eq {
    display: none;
    height: 11px;
    align-items: flex-end;
    gap: 2px;
}
.music-player.playing .mp-eq { display: inline-flex; }
.mp-eq i {
    width: 2.5px;
    border-radius: 1px;
    background: var(--cyan);
    height: 100%;
    transform-origin: bottom;
    animation: mpEq .8s ease-in-out infinite alternate;
}
.mp-eq i:nth-child(1) { animation-delay: -.3s; }
.mp-eq i:nth-child(2) { animation-delay: -.55s; }
.mp-eq i:nth-child(3) { animation-delay: -.15s; }
.mp-eq i:nth-child(4) { animation-delay: -.7s; }

.mp-name {
    color: var(--text);
    font-size: 14.5px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    padding: 0 24px;
}

/* ---------- 进度条 ---------- */
.mp-progress {
    position: relative;
    height: 16px;
    display: flex;
    align-items: center;
    cursor: pointer;
    touch-action: none;
}
.mp-progress::before {
    content: "";
    width: 100%; height: 4px;
    border-radius: 99px;
    background: rgba(120, 150, 200, .2);
}
.mp-fill {
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    width: 0; height: 4px;
    border-radius: 99px;
    background: var(--grad-main);
    box-shadow: 0 0 10px rgba(37, 227, 255, .65);
}
.mp-fill::after {
    content: "";
    position: absolute;
    right: -5px; top: 50%;
    transform: translateY(-50%);
    width: 11px; height: 11px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(37, 227, 255, .35), 0 0 10px rgba(37, 227, 255, .8);
    opacity: 0;
    transition: opacity .2s ease;
}
.mp-progress:hover .mp-fill::after { opacity: 1; }

.mp-times {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: var(--text-3);
    margin: -2px 0 10px;
}

/* ---------- 控制区 ---------- */
.mp-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.mp-volbox {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    min-width: 0;
}
.mp-ico-btn {
    flex: 0 0 auto;
    width: 34px; height: 34px;
    border-radius: 10px;
    display: grid; place-items: center;
    color: var(--text-2);
    background: rgba(16, 24, 46, .8);
    border: 1px solid var(--line);
    transition: all .25s ease;
}
.mp-ico-btn:hover { color: #fff; border-color: rgba(37, 227, 255, .5); }
.mp-loop-btn.on {
    color: var(--cyan);
    border-color: rgba(37, 227, 255, .5);
    background: rgba(37, 227, 255, .1);
    box-shadow: 0 0 14px -3px rgba(37, 227, 255, .55);
}

/* 音量图标切换 */
.vol-ico-x { display: none; }
.music-player.is-muted .vol-ico-3 { display: none; }
.music-player.is-muted .vol-ico-x { display: block; }
.music-player.is-muted .mp-ico-btn { color: var(--danger); }

.mp-vol {
    -webkit-appearance: none;
    appearance: none;
    flex: 1;
    min-width: 30px;
    height: 4px;
    border-radius: 99px;
    background: linear-gradient(to right,
        var(--grad-main) 0%, var(--grad-main) 70%,
        rgba(120, 150, 200, .2) 70%, rgba(120, 150, 200, .2) 100%);
    outline: none;
    cursor: pointer;
}
.mp-vol::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 8px rgba(37, 227, 255, .8);
    cursor: pointer;
}
.mp-vol::-moz-range-thumb {
    width: 12px; height: 12px; border: none;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 8px rgba(37, 227, 255, .8);
}

/* 主播放按钮 */
.mp-play {
    flex: 0 0 auto;
    width: 56px; height: 56px;
    border-radius: 50%;
    display: grid; place-items: center;
    color: #fff;
    background: var(--grad-main);
    border: 1px solid rgba(120, 190, 255, .6);
    box-shadow: 0 10px 28px -8px rgba(37, 227, 255, .75),
                inset 0 1px 0 rgba(255, 255, 255, .35);
    transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}
.mp-play:hover { transform: translateY(-2px) scale(1.05); filter: brightness(1.1); box-shadow: 0 16px 36px -8px rgba(37, 227, 255, .9); }
.mp-play:active { transform: scale(.94); }

/* ---------- 播放器响应式 ---------- */
@media (max-width: 767.98px) {
    .music-player {
        right: 14px;
        bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    }
    .music-fab { width: 52px; height: 52px; }
    .music-panel {
        width: calc(100vw - 28px);
        max-width: 320px;
    }
}
