:root {
    --bg: #080c12;
    --bg-soft: #0d131c;
    --panel: #111a25;
    --panel-2: #162231;
    --line: #223044;
    --text: #e7eef7;
    --muted: #8fa2b8;
    --primary: #37a2ff;
    --primary-2: #2bd3a5;
    --danger: #ff6b6b;
    --warning: #f5b94c;
    --radius: 10px;
}

* { box-sizing: border-box; }

body.mall-body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: #7cc2ff; }
img { max-width: 100%; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* 顶部通知 */
.notice-bar {
    background: linear-gradient(90deg, #0e2a46, #10263b);
    border-bottom: 1px solid #1b3a58;
    font-size: 12px;
    color: #a9c6e4;
}
.notice-inner { display: flex; align-items: center; gap: 10px; min-height: 34px; flex-wrap: wrap; }
.notice-tag {
    background: var(--primary);
    color: #04121f;
    font-weight: 700;
    padding: 1px 8px;
    border-radius: 4px;
    letter-spacing: 1px;
}
.notice-links { margin-left: auto; display: flex; gap: 14px; }

/* 头部 */
.mall-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(9, 15, 23, .94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 22px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; flex: 0 0 auto; }
.brand:hover { color: #fff; }
.brand-mark {
    width: 38px; height: 38px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #04121f; font-weight: 800; font-size: 20px;
}
.brand-text strong { display: block; font-size: 16px; line-height: 1.2; }
.brand-text small { color: var(--muted); font-size: 11px; }
.header-search { display: flex; flex: 1 1 320px; max-width: 460px; }
.header-search input {
    flex: 1; height: 38px; padding: 0 12px;
    background: #0c1520; border: 1px solid var(--line);
    border-right: 0; border-radius: 8px 0 0 8px; color: var(--text); outline: none;
}
.header-search input:focus { border-color: var(--primary); }
.header-search button {
    height: 38px; padding: 0 18px; border: 0; border-radius: 0 8px 8px 0;
    background: var(--primary); color: #04121f; font-weight: 600; cursor: pointer;
}
.header-nav { display: flex; align-items: center; gap: 16px; margin-left: auto; white-space: nowrap; }
.header-nav a { color: #c5d4e5; font-size: 13px; }
.header-nav a:hover { color: #fff; }
.cart-link em {
    display: inline-block; min-width: 18px; height: 18px; line-height: 18px;
    padding: 0 5px; margin-left: 3px; border-radius: 9px;
    background: var(--primary-2); color: #04121f; font-style: normal;
    font-size: 11px; text-align: center;
}
.btn-outline {
    border: 1px solid var(--primary); color: var(--primary) !important;
    padding: 5px 12px; border-radius: 7px;
}

/* 主体 */
.mall-main { padding: 22px 0 46px; min-height: 60vh; }
.mall-main > .container { display: block; }
.mall-columns { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; }

.category-side {
    background: var(--panel); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 14px; align-self: start;
    position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow-y: auto;
}
.category-side h3 {
    margin: 0 0 10px; font-size: 14px; color: #fff;
    padding-bottom: 10px; border-bottom: 1px solid var(--line);
}
.category-side ul { list-style: none; margin: 0; padding: 0; }
.category-side li a {
    display: block; padding: 8px 10px; border-radius: 7px;
    color: #b9c9dc; font-size: 13px;
}
.category-side li a:hover { background: var(--panel-2); color: #fff; }
.category-side li a.active { background: rgba(55, 162, 255, .14); color: var(--primary); }
.home-category-tree .cat-level-1 > a,
.home-category-tree .cat-level-2 > a { font-size: 12.5px; color: #a9bdd2; }
.side-service { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }

.product-area { min-width: 0; }
.panel {
    background: var(--panel); border: 1px solid var(--line);
    border-radius: var(--radius); overflow: hidden; margin-bottom: 18px;
}
.panel-head {
    display: flex; align-items: center; gap: 12px;
    padding: 13px 16px; border-bottom: 1px solid var(--line);
    background: linear-gradient(90deg, #121e2b, #101923);
}
.panel-head h2 { margin: 0; font-size: 16px; color: #fff; }
.panel-head .count { color: var(--muted); font-size: 12px; }
.panel-head .more { margin-left: auto; font-size: 12px; }
.panel-body { padding: 0; }

.product-table { width: 100%; border-collapse: collapse; }
.product-table th, .product-table td {
    padding: 11px 12px; border-bottom: 1px solid #1a2635; vertical-align: middle;
}
.product-table th { color: var(--muted); font-size: 12px; font-weight: 500; text-align: left; background: #0e1721; }
.product-table tr:last-child td { border-bottom: 0; }
.product-table tr:hover td { background: #0f1a26; }
.product-cell { display: flex; align-items: center; gap: 11px; min-width: 0; }
.product-thumb {
    width: 52px; height: 52px; border-radius: 8px; object-fit: cover;
    background: #0a121b; border: 1px solid var(--line); flex: 0 0 auto;
}
.product-name { min-width: 0; }
.product-name a { color: #dfeaf7; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-name a:hover { color: var(--primary); }
.product-meta { color: var(--muted); font-size: 11px; margin-top: 2px; }
.tag {
    display: inline-block; padding: 0 6px; border-radius: 4px;
    font-size: 10px; line-height: 17px; margin-right: 5px;
}
.tag-official { background: rgba(55, 162, 255, .16); color: #6dc0ff; border: 1px solid rgba(55, 162, 255, .35); }
.tag-supplier { background: rgba(43, 211, 165, .12); color: #58e0bb; border: 1px solid rgba(43, 211, 165, .3); }
a.tag-supplier:hover { color: #fff; border-color: var(--primary-2); }
.price { color: #ffb74d; font-weight: 700; white-space: nowrap; }
.stock-out { color: var(--danger); }
.muted { color: var(--muted); }

/* 按钮 */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 5px;
    padding: 8px 16px; border-radius: 8px; border: 1px solid transparent;
    font-size: 13px; font-weight: 600; cursor: pointer; line-height: 1.2;
    transition: .18s ease;
}
.btn-primary { background: linear-gradient(135deg, var(--primary), #2c8ae0); color: #04121f; }
.btn-primary:hover { filter: brightness(1.08); color: #04121f; }
.btn-green { background: linear-gradient(135deg, var(--primary-2), #22b98f); color: #04121f; }
.btn-ghost { background: #101a26; border-color: var(--line); color: #c8d8e9; }
.btn-ghost:hover { border-color: var(--primary); color: #fff; }
.btn-danger { background: rgba(255, 107, 107, .14); border-color: rgba(255, 107, 107, .4); color: #ff9a9a; }
.btn-sm { padding: 5px 11px; font-size: 12px; border-radius: 6px; }
.btn[disabled], .btn.disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }

/* 商品详情 */
.breadcrumb { color: var(--muted); font-size: 12px; margin-bottom: 14px; }
.breadcrumb a { color: var(--muted); }
.detail-grid { display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 24px; }
.detail-gallery { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.detail-gallery .main-img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 8px; background: #0a121b; }
.detail-summary h1 { font-size: 22px; margin: 0 0 10px; color: #fff; line-height: 1.4; }
.detail-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.badge {
    font-size: 11px; padding: 3px 9px; border-radius: 999px;
    border: 1px solid var(--line); color: #a8bdd3; background: #0f1a26;
}
.price-box {
    background: linear-gradient(135deg, #132131, #0f1924);
    border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin-bottom: 14px;
}
.price-box .big { font-size: 30px; color: #ffb74d; font-weight: 800; }
.price-box .sales { color: var(--muted); margin-left: 10px; font-size: 12px; }
.buy-form { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.form-row { display: flex; align-items: center; gap: 12px; margin-bottom: 13px; }
.form-row label { width: 78px; flex: 0 0 auto; color: #b9c9dc; font-size: 13px; }
.form-control {
    width: 100%; height: 38px; padding: 0 12px;
    background: #0b141e; border: 1px solid var(--line); border-radius: 7px;
    color: var(--text); outline: none;
}
textarea.form-control { height: auto; min-height: 110px; padding: 10px 12px; resize: vertical; }
.form-control:focus { border-color: var(--primary); }
.qty-box { display: flex; align-items: center; }
.qty-box button {
    width: 34px; height: 38px; background: #0b141e; border: 1px solid var(--line);
    color: #c8d8e9; cursor: pointer;
}
.qty-box input { width: 64px; height: 38px; text-align: center; border-left: 0; border-right: 0; border-radius: 0; }
.buy-actions { display: flex; gap: 10px; margin-top: 16px; }
.buy-actions .btn { flex: 1; height: 42px; }
.service-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.service-tags span { font-size: 12px; color: #9fb6cd; }

/* 商品详情：商家信息 */
.seller-box { margin-top: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.seller-box-title { font-size: 13px; color: #fff; margin-bottom: 10px; }
.seller-box-main { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.seller-logo { width: 42px; height: 42px; border-radius: 10px; object-fit: cover; background: #0a121b; border: 1px solid var(--line); flex: 0 0 auto; }
.seller-logo-text {
    width: 42px; height: 42px; border-radius: 10px; flex: 0 0 auto;
    display: flex; align-items: center; justify-content: center; font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #04121f;
}
.seller-info { flex: 1; min-width: 0; }
.seller-name { display: flex; align-items: center; gap: 6px; color: #dfeaf7; font-size: 13px; }
.seller-name a { color: #dfeaf7; }
.seller-name a:hover { color: var(--primary); }
.seller-home-link { margin-left: auto; color: var(--primary); font-size: 12px; white-space: nowrap; }
.seller-meta { margin-top: 3px; color: var(--muted); font-size: 11px; }
.seller-intro { margin: 10px 0 0; color: #a9bdd2; font-size: 12px; line-height: 1.7; }
.seller-contact { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: 11px; }

/* 商家店铺页 */
.store-hero {
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 22px; align-items: center;
    position: relative; overflow: hidden; margin-bottom: 18px; padding: 26px;
    background: linear-gradient(135deg, #101c2b, #0c1520);
    border: 1px solid var(--line); border-radius: 18px;
}
.store-hero::after {
    content: ''; position: absolute; right: -70px; top: -70px; width: 220px; height: 220px;
    border-radius: 50%; background: rgba(55, 162, 255, .08);
}
.store-avatar-wrap {
    width: 96px; height: 96px; padding: 5px; border-radius: 26px; flex: 0 0 auto;
    background: rgba(55, 162, 255, .12); border: 1px solid rgba(55, 162, 255, .25);
}
.store-avatar { width: 100%; height: 100%; border-radius: 21px; object-fit: cover; display: block; background: #0a121b; }
.store-avatar-text {
    display: flex; align-items: center; justify-content: center;
    font-size: 34px; font-weight: 700; color: #04121f;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
}
.store-main { min-width: 0; position: relative; z-index: 1; }
.store-kicker { font-size: 12px; font-weight: 700; letter-spacing: 2px; color: var(--primary); text-transform: uppercase; }
.store-main h1 { margin: 6px 0 12px; font-size: 30px; color: #fff; }
.store-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.store-pill {
    display: inline-block; padding: 6px 12px; border-radius: 999px;
    background: #0e1721; border: 1px solid var(--line); color: #b9c9dc; font-size: 12px;
}
.store-desc { margin: 0; max-width: 560px; color: #a9bdd2; font-size: 13px; line-height: 1.8; }
.store-search { display: flex; min-width: 280px; position: relative; z-index: 1; }
.store-search input {
    flex: 1; height: 44px; padding: 0 14px; color: var(--text); outline: none;
    background: #0b141e; border: 1px solid var(--line); border-right: 0; border-radius: 12px 0 0 12px;
}
.store-search input:focus { border-color: var(--primary); }
.store-search button {
    height: 44px; padding: 0 20px; border: 0; border-radius: 0 12px 12px 0;
    background: var(--primary); color: #04121f; font-weight: 600; cursor: pointer;
}
.store-products { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.store-products-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.store-products-head h2 { margin: 4px 0 0; font-size: 18px; color: #fff; }
.store-products .panel { margin-bottom: 0; }
.store-products .product-thumb { width: 40px; height: 40px; border-radius: 8px; }
.store-products .product-table th,
.store-products .product-table td { padding: 10px 12px; }
.detail-section { margin-top: 22px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.detail-section h3 { margin: 0 0 12px; padding-left: 10px; border-left: 3px solid var(--primary); font-size: 16px; color: #fff; }
.detail-section .content { color: #c8d8e9; font-size: 14px; }
.detail-section .content img { border-radius: 8px; margin: 8px 0; }
.detail-section pre { background: #0b141e; border: 1px solid var(--line); padding: 12px; border-radius: 8px; color: #9fe0c4; white-space: pre-wrap; }

/* 结算 */
.checkout-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; }
.checkout-box { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 18px; }
.checkout-box h2 { font-size: 17px; margin: 0 0 14px; color: #fff; }
.order-table { width: 100%; border-collapse: collapse; }
.order-table th, .order-table td { padding: 10px 8px; border-bottom: 1px solid #1a2635; font-size: 13px; text-align: left; }
.order-table th { color: var(--muted); font-size: 12px; }
.order-summary { position: sticky; top: 96px; }
.summary-line { display: flex; justify-content: space-between; padding: 8px 0; color: #b9c9dc; }
.summary-line strong { color: #ffb74d; font-size: 22px; }
.channel-list { display: grid; gap: 10px; }
.channel-item {
    display: flex; align-items: center; gap: 11px;
    border: 1px solid var(--line); border-radius: 9px; padding: 12px;
    background: #0c1520; cursor: pointer;
}
.channel-item:hover { border-color: #2f4f70; }
.channel-item input { accent-color: var(--primary); }
.channel-item .channel-name { font-weight: 600; color: #dfeaf7; }
.channel-item .channel-tip { color: var(--muted); font-size: 12px; margin-left: auto; }
.channel-item.disabled { opacity: .45; cursor: not-allowed; }
.pay-actions { display: flex; gap: 10px; margin-top: 16px; }
.pay-actions .btn { flex: 1; }
.countdown { color: var(--warning); font-weight: 600; }
.notice-text { color: var(--muted); font-size: 12px; }

/* 支付二维码 */
.pay-wrap { max-width: 760px; margin: 0 auto; }
.pay-card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 26px; text-align: center; }
.pay-card h1 { font-size: 20px; margin: 0 0 6px; }
.pay-amount { font-size: 36px; color: #ffb74d; font-weight: 800; margin: 8px 0; }
.pay-qr { width: 260px; height: 260px; object-fit: contain; background: #fff; padding: 8px; border-radius: 10px; margin: 14px auto; display: block; }
.pay-account { color: var(--muted); font-size: 13px; word-break: break-all; }
.pay-tip { color: var(--muted); font-size: 12px; margin: 12px 0; }
.pay-status { margin-top: 14px; color: var(--primary-2); font-weight: 600; }
.pay-actions-center { display: flex; justify-content: center; gap: 10px; margin-top: 16px; flex-wrap: wrap; }

/* 订单查询/结果 */
.lookup-box { max-width: 820px; margin: 0 auto; }
.search-line { display: flex; gap: 10px; }
.search-line input { flex: 1; }
.search-line .btn { flex: 0 0 auto; padding: 0 24px; }
.order-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-top: 18px; }
.order-card h3 { margin: 0 0 12px; font-size: 16px; color: #fff; }
.kv { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 8px 12px; font-size: 13px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; color: #d8e5f2; }
.status-pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; }
.status-pay { background: rgba(245, 185, 76, .15); color: #ffd27a; border: 1px solid rgba(245, 185, 76, .4); }
.status-done { background: rgba(43, 211, 165, .15); color: #6ff0cb; border: 1px solid rgba(43, 211, 165, .4); }
.status-cancel { background: rgba(255, 107, 107, .12); color: #ff9a9a; border: 1px solid rgba(255, 107, 107, .35); }
.deliver-box { margin-top: 8px; background: #0b141e; border: 1px solid var(--line); border-radius: 8px; padding: 12px; }
.deliver-box pre { margin: 0; color: #9fe0c4; white-space: pre-wrap; font-size: 13px; }
.copy-btn { margin-left: 8px; }
.result-icon { font-size: 52px; margin-bottom: 8px; }
.result-success { color: var(--primary-2); }
.result-pending { color: var(--warning); }

/* 购物车 */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th, .cart-table td { padding: 12px 8px; border-bottom: 1px solid #1a2635; text-align: left; font-size: 13px; }
.cart-table th { color: var(--muted); font-size: 12px; }
.cart-actions { display: flex; gap: 12px; align-items: center; margin-top: 16px; flex-wrap: wrap; }
.cart-actions .email-input { max-width: 320px; }

/* 列表页 */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.filter-bar a {
    padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px;
    color: #b9c9dc; font-size: 12px; background: #0e1721;
}
.filter-bar a.active, .filter-bar a:hover { border-color: var(--primary); color: #fff; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.product-card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.product-card .cover { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #0a121b; display: block; }
.product-card .body { padding: 12px; }
.product-card .title { color: #dfeaf7; font-size: 13px; height: 40px; overflow: hidden; display: block; }
.product-card .bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }

/* 分类页标题 */
.cat-branch { color: var(--muted); margin-right: 4px; }
.category-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.category-head h2 { margin: 0; font-size: 20px; color: #fff; }
.search-tip { margin: -6px 0 14px; color: var(--muted); font-size: 12px; }

/* 首页：卖家评价与新闻资讯 */
.home-section { margin-top: 26px; }
.home-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.home-section-head h2 { margin: 0; font-size: 18px; color: #fff; }
.home-section-head .muted { font-size: 12px; }
.home-section-head .more { font-size: 12px; }
.review-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.review-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.review-head { display: flex; align-items: center; gap: 10px; }
.review-avatar {
    width: 38px; height: 38px; border-radius: 50%; flex: 0 0 auto;
    display: flex; align-items: center; justify-content: center; font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #04121f;
}
.review-user { flex: 1; min-width: 0; }
.review-user strong { display: block; font-size: 13px; color: #dfeaf7; }
.review-user span { font-size: 11px; color: var(--muted); }
.review-stars { color: #ffb74d; font-size: 12px; letter-spacing: 1px; white-space: nowrap; }
.review-content { margin: 12px 0 10px; color: #b9c9dc; font-size: 13px; line-height: 1.7; min-height: 66px; }
.review-date { color: var(--muted); font-size: 11px; }
.news-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.news-card {
    display: flex; gap: 12px; padding: 12px; color: inherit;
    background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
}
.news-card:hover { border-color: var(--primary); }
.news-card-cover { width: 96px; height: 72px; border-radius: 8px; object-fit: cover; flex: 0 0 auto; background: #0a121b; }
.news-card-cover.placeholder { display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 12px; }
.news-card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 8px; }
.news-card-body h3 { margin: 0; font-size: 13px; color: #dfeaf7; line-height: 1.5; max-height: 42px; overflow: hidden; }
.news-date { color: var(--muted); font-size: 11px; }
.pagination { margin-top: 18px; display: flex; gap: 6px; flex-wrap: wrap; }
.pagination li, .pagination a, .pagination span {
    display: inline-block; padding: 5px 10px; border: 1px solid var(--line);
    border-radius: 6px; color: #b9c9dc; font-size: 12px; background: #0e1721;
}
.pagination .active span { background: var(--primary); color: #04121f; border-color: var(--primary); }
.empty { text-align: center; color: var(--muted); padding: 60px 20px; }

/* 表单/提示 */
.alert { padding: 11px 14px; border-radius: 8px; font-size: 13px; margin-bottom: 14px; }
.alert-info { background: rgba(55, 162, 255, .1); border: 1px solid rgba(55, 162, 255, .28); color: #a8d4ff; }
.alert-warning { background: rgba(245, 185, 76, .1); border: 1px solid rgba(245, 185, 76, .3); color: #ffd27a; }
.alert-error { background: rgba(255, 107, 107, .1); border: 1px solid rgba(255, 107, 107, .3); color: #ff9a9a; }

/* 页脚 */
.mall-footer { background: #070b10; border-top: 1px solid var(--line); margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; padding: 34px 16px 24px; }
.footer-grid h4 { color: #dfeaf7; font-size: 14px; margin: 0 0 10px; }
.footer-grid p, .footer-grid a { color: var(--muted); font-size: 12px; display: block; margin: 0 0 7px; }
.footer-grid a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #121c28; padding: 14px 0; color: #6f8399; font-size: 12px; text-align: center; }
.footer-bottom a { color: #6f8399; margin-left: 8px; }

.float-service {
    position: fixed; right: 18px; bottom: 26px; z-index: 60;
    background: linear-gradient(135deg, #2aa8ff, #26c6a4);
    color: #04121f; font-weight: 700; font-size: 13px;
    padding: 11px 16px; border-radius: 999px;
    box-shadow: 0 10px 28px rgba(42, 168, 255, .35);
}

/* 提示 */
.mall-toast {
    position: fixed; left: 50%; top: 84px; z-index: 999;
    transform: translate(-50%, -12px);
    background: #16283a; color: #dbe9f7;
    border: 1px solid #2e4b68; border-radius: 8px;
    padding: 10px 18px; font-size: 13px;
    opacity: 0; transition: .22s ease; pointer-events: none;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .35);
}
.mall-toast.show { opacity: 1; transform: translate(-50%, 0); }
.mall-toast.error { border-color: rgba(255, 107, 107, .55); color: #ffb0b0; }

/* 会员中心 */
.member-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 20px; }
.member-side {
    background: var(--panel); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 16px; align-self: start;
    position: sticky; top: 96px;
}
.member-profile { display: flex; align-items: center; gap: 11px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.member-avatar {
    width: 44px; height: 44px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #04121f; font-weight: 800; font-size: 18px;
}
.member-name { font-weight: 700; color: #fff; }
.member-nav { display: grid; gap: 4px; margin-top: 12px; }
.member-nav a { padding: 9px 11px; border-radius: 7px; color: #b9c9dc; font-size: 13px; }
.member-nav a:hover { background: var(--panel-2); color: #fff; }
.member-nav a.active { background: rgba(55, 162, 255, .14); color: #7cc2ff; border: 1px solid rgba(55, 162, 255, .3); }
.member-main { min-width: 0; }
.member-hero {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    background: linear-gradient(135deg, #132131, #0f1924);
    border: 1px solid var(--line); border-radius: var(--radius);
    padding: 20px; margin-bottom: 18px;
}
.member-hero h2 { margin: 0 0 4px; font-size: 20px; color: #fff; }
.member-balance { text-align: right; display: flex; align-items: center; gap: 12px; }
.member-balance span { color: var(--muted); font-size: 12px; }
.member-balance strong { color: #ffb74d; font-size: 26px; }
.member-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat-card {
    background: var(--panel); border: 1px solid var(--line); border-radius: 9px;
    padding: 14px; color: #b9c9dc;
}
.stat-card:hover { border-color: var(--primary); color: #fff; }
.stat-card span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.stat-card strong { font-size: 22px; color: #fff; }
.preset-list { display: flex; flex-wrap: wrap; gap: 9px; }
.preset-btn {
    background: #0c1520; border: 1px solid var(--line); color: #c8d8e9;
    border-radius: 8px; padding: 8px 16px; cursor: pointer;
}
.preset-btn:hover, .preset-btn.active { border-color: var(--primary); color: #fff; background: rgba(55, 162, 255, .12); }
.upload-preview-list { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.upload-preview-list img { width: 82px; height: 82px; object-fit: cover; border-radius: 7px; border: 1px solid var(--line); }

/* 登录 / 注册 */
.auth-wrap { display: flex; justify-content: center; padding: 40px 0 60px; }
.auth-card {
    width: 100%; max-width: 440px;
    background: var(--panel); border: 1px solid var(--line);
    border-radius: 14px; padding: 24px 26px 24px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, .38);
}
.auth-tabs { display: flex; gap: 6px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.auth-tabs a {
    flex: 1; text-align: center; padding: 10px 0;
    color: var(--muted); font-size: 15px; border-bottom: 2px solid transparent;
}
.auth-tabs a:hover { color: #fff; }
.auth-tabs a.active { color: #fff; border-bottom-color: var(--primary); font-weight: 600; }
.auth-field { margin-bottom: 14px; }
.auth-field > label { display: block; margin-bottom: 6px; color: #b9c9dc; font-size: 13px; font-weight: 500; }
.auth-field > label.required::after { content: ' *'; color: var(--danger); }
.auth-row { display: flex; align-items: center; justify-content: space-between; margin: 2px 0 16px; font-size: 13px; }
.auth-check { display: flex; align-items: center; gap: 6px; color: var(--muted); font-weight: normal; margin: 0; }
.auth-check input { margin: 0; }
.auth-submit { width: 100%; height: 42px; font-size: 15px; }
.auth-alt { display: block; text-align: center; margin-top: 14px; color: var(--muted); font-size: 13px; }
.auth-alt:hover { color: var(--primary); }
.auth-link { color: var(--primary); font-size: 13px; }
.auth-note { margin: 14px 0 0; text-align: center; color: var(--muted); font-size: 12px; }
.auth-captcha .input-group { display: flex; align-items: center; gap: 10px; }
.auth-captcha .input-group .form-control { flex: 1; }
.auth-captcha .input-group-btn { display: block; width: auto; padding: 0 !important; border: 0; }
.auth-captcha .input-group-btn .btn { height: 38px; white-space: nowrap; }
.auth-captcha img {
    display: block; height: 38px; cursor: pointer;
    border: 1px solid var(--line); border-radius: 7px; background: #fff;
}

/* 忘记密码弹窗（深色） */
.layui-layer.layui-layer-page {
    background: var(--panel); border: 1px solid var(--line);
    border-radius: 12px; box-shadow: 0 22px 50px rgba(0, 0, 0, .5);
}
.layui-layer.layui-layer-page .layui-layer-title {
    height: 46px; line-height: 46px; padding: 0 18px;
    background: var(--panel-2); color: #fff; font-size: 14px;
    border-bottom: 1px solid var(--line); border-radius: 12px 12px 0 0;
}
.layui-layer.layui-layer-page .layui-layer-content { background: var(--panel); color: var(--text); }
.layui-layer.layui-layer-page .layui-layer-setwin .layui-layer-close1 { filter: invert(1) opacity(.75); }
.layui-layer.layui-layer-page .layui-layer-btn { border-top: 1px solid var(--line); background: var(--panel); }
.layui-layer.layui-layer-page .layui-layer-btn a { background: var(--panel-2); border-color: var(--line); color: #c8d8e9; }
.layui-layer.layui-layer-page .layui-layer-btn .layui-layer-btn0 { background: var(--primary); border-color: var(--primary); color: #04121f; }
#resetpwd-form { padding: 18px 18px 0; }
#resetpwd-form .control-label { color: #b9c9dc; font-size: 13px; font-weight: normal; text-align: left; }
#resetpwd-form .form-control { background: #0b141e; border: 1px solid var(--line); color: var(--text); }
#resetpwd-form .form-control:focus { border-color: var(--primary); box-shadow: none; }
#resetpwd-form .radio label { color: #c5d4e5; font-weight: normal; }
#resetpwd-form .input-group-btn .btn { border-radius: 0 7px 7px 0; }
#resetpwd-form .form-footer { margin-top: 6px; }

/* 会员资料 / 修改密码 */
.member-hero-user { display: flex; align-items: center; gap: 14px; }
.member-avatar-lg { width: 54px; height: 54px; border-radius: 15px; font-size: 22px; }
.member-hero-user h2 { margin: 0 0 3px; }
.member-hero-user p { margin: 0; font-size: 12px; }
.profile-panel { padding: 18px; }
.profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.profile-panel .pay-actions { max-width: 380px; }

/* 视频列表 */
.video-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.video-head h1 { margin: 0 0 6px; font-size: 22px; color: #fff; }
.video-head p { margin: 0; font-size: 12.5px; }
.video-search { display: flex; }
.video-search input {
    width: 220px; height: 38px; padding: 0 12px;
    background: #0c1520; border: 1px solid var(--line); border-right: 0;
    border-radius: 8px 0 0 8px; color: var(--text); outline: none;
}
.video-search input:focus { border-color: var(--primary); }
.video-search button {
    height: 38px; padding: 0 16px; border: 0; border-radius: 0 8px 8px 0;
    background: var(--primary); color: #04121f; font-weight: 600; cursor: pointer;
}
.video-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.video-card {
    display: block; background: var(--panel); border: 1px solid var(--line);
    border-radius: var(--radius); overflow: hidden; color: var(--text);
}
.video-card:hover { border-color: var(--primary); color: var(--text); }
.video-cover { position: relative; aspect-ratio: 16 / 9; background: #0a121b; overflow: hidden; }
.video-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-cover-text {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    padding: 10px; text-align: center; color: #5d7893; font-size: 14px;
}
.video-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.video-play i {
    width: 44px; height: 44px; border-radius: 50%; position: relative;
    background: rgba(4, 18, 31, .62); border: 1px solid rgba(124, 194, 255, .6);
}
.video-play i::after {
    content: ''; position: absolute; left: 16px; top: 12px;
    border-left: 12px solid #fff; border-top: 9px solid transparent; border-bottom: 9px solid transparent;
}
.video-duration {
    position: absolute; right: 8px; bottom: 8px;
    background: rgba(0, 0, 0, .68); color: #fff; font-size: 11px; padding: 1px 6px; border-radius: 4px;
}
.video-badge {
    position: absolute; left: 8px; top: 8px;
    background: rgba(43, 211, 165, .92); color: #04121f;
    font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 4px;
}
.video-badge.vip { background: linear-gradient(135deg, #ffd66b, #f5b94c); color: #3a2a00; }
.video-body { padding: 12px 14px; }
.video-body h3 {
    margin: 0 0 8px; font-size: 14px; color: #eef6ff;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.video-meta { display: flex; align-items: center; justify-content: space-between; font-size: 12px; }
.video-meta .price { color: #ffb74d; font-weight: 700; }

/* 视频播放 */
.video-detail { display: grid; gap: 16px; }
.video-stage { position: relative; background: #000; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.video-stage video { display: block; width: 100%; max-height: 72vh; background: #000; }
.video-preview-tip {
    position: absolute; left: 12px; bottom: 62px; z-index: 4;
    background: rgba(4, 18, 31, .82); border: 1px solid var(--line); color: #cfe3f7;
    font-size: 12px; padding: 4px 10px; border-radius: 6px;
}
.video-preview-tip b { color: #ffb74d; }
.video-mask {
    position: absolute; inset: 0; z-index: 5;
    background: rgba(4, 10, 17, .9);
    display: flex; align-items: center; justify-content: center;
}
.video-mask-box { max-width: 520px; padding: 20px; text-align: center; }
.video-mask-box h3 { margin: 0 0 8px; font-size: 18px; color: #fff; }
.video-mask-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.video-info { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.video-info h1 { margin: 0 0 10px; font-size: 20px; color: #fff; }
.video-meta-line { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 12.5px; }
.video-meta-line .price { color: #ffb74d; font-weight: 700; }
.tag-ok { color: #2bd3a5; border: 1px solid rgba(43, 211, 165, .4); border-radius: 5px; padding: 1px 8px; font-size: 12px; }
.video-tips {
    margin-top: 14px; padding: 10px 12px; font-size: 12.5px; color: #a9bdd2;
    background: #0c1722; border: 1px solid var(--line); border-radius: 8px;
}
.video-desc { margin-top: 12px; color: #c4d4e6; font-size: 13px; white-space: pre-wrap; }
.video-actions { max-width: 520px; }

/* VIP */
.vip-hero {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    background: linear-gradient(135deg, #2a2113, #141a22);
    border: 1px solid #4a3a1e; border-radius: var(--radius); padding: 20px; margin-bottom: 14px;
}
.vip-hero h2 { margin: 0 0 4px; font-size: 20px; color: #ffe1a3; }
.vip-badge { padding: 5px 14px; border-radius: 20px; background: #1c2836; border: 1px solid var(--line); color: #9fb6cd; font-size: 12px; }
.vip-badge.on { background: linear-gradient(135deg, #ffd66b, #f5b94c); color: #3a2a00; border-color: #f5b94c; font-weight: 700; }
.vip-mini {
    margin-left: 6px; font-size: 10px; padding: 1px 6px; border-radius: 4px;
    background: linear-gradient(135deg, #ffd66b, #f5b94c); color: #3a2a00; font-weight: 700; vertical-align: middle;
}
.vip-benefits { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.vip-benefits span {
    background: rgba(55, 162, 255, .12); border: 1px solid rgba(55, 162, 255, .3);
    color: #9fd0ff; font-size: 12px; padding: 5px 12px; border-radius: 20px;
}
.vip-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
.vip-plan {
    display: flex; flex-direction: column; gap: 8px;
    background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 20px;
}
.vip-plan-forever { border-color: #6b5524; background: linear-gradient(160deg, #1e1a11, #111a25); }
.vip-plan-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.vip-plan h3 { margin: 0; font-size: 17px; color: #fff; }
.vip-flag { font-size: 11px; color: #ffd66b; border: 1px solid rgba(255, 214, 107, .4); padding: 1px 8px; border-radius: 4px; }
.vip-price { font-size: 34px; font-weight: 800; color: #ffb74d; line-height: 1; }
.vip-price small { font-size: 16px; margin-right: 2px; }
.vip-intro { margin: 0; color: var(--muted); font-size: 12.5px; }
.vip-plan .btn { margin-top: auto; }

/* 响应式 */
@media (max-width: 980px) {
    .mall-columns { grid-template-columns: 1fr; }
    .category-side { position: static; max-height: none; overflow: visible; }
    .detail-grid { grid-template-columns: 1fr; }
    .checkout-grid { grid-template-columns: 1fr; }
    .order-summary { position: static; }
    .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .member-layout { grid-template-columns: 1fr; }
    .member-side { position: static; }
    .member-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .header-inner { flex-wrap: wrap; gap: 10px; padding: 10px 0; }
    .header-search { order: 3; flex-basis: 100%; max-width: none; }
    .header-nav { gap: 10px; overflow-x: auto; }
    .notice-links { display: none; }
    .product-table th:nth-child(3), .product-table td:nth-child(3),
    .product-table th:nth-child(4), .product-table td:nth-child(4) { display: none; }
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .review-grid, .news-grid { grid-template-columns: 1fr; }
    .detail-summary h1 { font-size: 18px; }
    .store-hero { grid-template-columns: 1fr; padding: 20px; }
    .store-avatar-wrap { width: 76px; height: 76px; border-radius: 20px; }
    .store-avatar { border-radius: 15px; }
    .store-main h1 { font-size: 22px; }
    .store-search { min-width: 0; }
    .store-products { padding: 14px; }
    .buy-actions { flex-direction: column; }
    .footer-grid { grid-template-columns: 1fr; }
    .kv { grid-template-columns: 96px minmax(0, 1fr); }
    .pay-card { padding: 18px; }
    .pay-qr { width: 220px; height: 220px; }
    .member-hero { flex-direction: column; align-items: flex-start; }
    .member-balance { text-align: left; }
    .member-stats { grid-template-columns: 1fr; }
    .preset-list { gap: 7px; }
    .preset-btn { flex: 1 0 30%; }
    .profile-grid { grid-template-columns: 1fr; }
    .auth-card { padding: 20px 18px; }
    .video-grid, .vip-plans { grid-template-columns: 1fr; }
    .video-head { align-items: flex-start; flex-direction: column; }
    .video-search { width: 100%; }
    .video-search input { width: 100%; }
    .vip-hero { flex-direction: column; align-items: flex-start; }
}
