/* ==========================================================
   汇易电竞 · 设计系统
   色板：深空靛蓝背景 + 电紫主色 + 青色在线态 + 香槟金点缀
   字体：Rajdhani（数字/英文标题，竞技感）+ Noto Sans SC（中文正文）
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;600;700&family=Noto+Sans+SC:wght@400;500;700;900&display=swap');

:root {
    --bg-deep: #0A0E17;
    --bg-panel: #121826;
    --bg-panel-2: #171F30;
    --border: #232C40;
    --violet: #6C5CE7;
    --violet-bright: #8B7CFF;
    --cyan: #2FD5C8;
    --gold: #D4A857;
    --danger: #E9546B;
    --text-primary: #EDEFF7;
    --text-muted: #8B93A7;
    --text-dim: #5A6278;
    --radius: 14px;
    --radius-sm: 8px;
    --shadow-glow: 0 0 0 1px rgba(108,92,231,0.15), 0 20px 60px -20px rgba(108,92,231,0.35);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg-deep);
    color: var(--text-primary);
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    scroll-behavior: smooth;
}

body {
    background-image:
        radial-gradient(ellipse 900px 500px at 15% -10%, rgba(108,92,231,0.18), transparent 60%),
        radial-gradient(ellipse 700px 400px at 100% 0%, rgba(47,213,200,0.10), transparent 55%);
    background-attachment: fixed;
    padding-bottom: 78px; /* 底部导航预留 */
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }

.display {
    font-family: 'Rajdhani', 'Noto Sans SC', sans-serif;
    font-weight: 700;
    letter-spacing: 0.02em;
}

/* ---------- 顶部导航 ---------- */
.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: rgba(10,14,23,0.86);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 20px;
    letter-spacing: 0.04em;
}

.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--violet), var(--cyan));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: #0A0E17;
    font-size: 15px;
}

.topbar-actions { display: flex; align-items: center; gap: 14px; }
.topbar-actions .balance-pill {
    font-size: 12px;
    color: var(--gold);
    border: 1px solid rgba(212,168,87,0.4);
    padding: 5px 12px;
    border-radius: 100px;
    background: rgba(212,168,87,0.08);
}

/* ---------- 容器 ---------- */
.container { max-width: 960px; margin: 0 auto; padding: 0 18px; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding: 46px 20px 28px;
    overflow: hidden;
}
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--cyan);
    border: 1px solid rgba(47,213,200,0.35);
    padding: 4px 10px;
    border-radius: 100px;
    margin-bottom: 16px;
}
.hero-eyebrow .dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 8px var(--cyan);
}
.hero h1 {
    font-family: 'Rajdhani', 'Noto Sans SC', sans-serif;
    font-size: 34px;
    line-height: 1.25;
    font-weight: 700;
    margin: 0 0 10px;
}
.hero h1 span { color: var(--violet-bright); }
.hero p {
    color: var(--text-muted);
    font-size: 14.5px;
    line-height: 1.7;
    max-width: 480px;
    margin: 0 0 24px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- 按钮 ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 22px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity .15s;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
    background: linear-gradient(135deg, var(--violet), #8B7CFF);
    color: #fff;
    box-shadow: 0 10px 24px -8px rgba(108,92,231,0.6);
}
.btn-ghost {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
}
.btn-gold {
    background: linear-gradient(135deg, var(--gold), #EFCE8F);
    color: #241a05;
}
.btn-block { width: 100%; }
.btn-sm { padding: 7px 14px; font-size: 12.5px; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* ---------- 计分板 / 实时数据条（签名元素）---------- */
.scoreboard {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: linear-gradient(180deg, var(--bg-panel), var(--bg-panel-2));
    overflow: hidden;
    margin: 26px 0 6px;
}
.scoreboard .cell {
    padding: 16px 10px;
    text-align: center;
    border-right: 1px solid var(--border);
    position: relative;
}
.scoreboard .cell:last-child { border-right: none; }
.scoreboard .cell .num {
    font-family: 'Rajdhani', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--cyan);
    display: block;
}
.scoreboard .cell .label {
    font-size: 11.5px;
    color: var(--text-dim);
    margin-top: 4px;
    letter-spacing: 0.04em;
}
.scoreboard .cell.gold .num { color: var(--gold); }

/* ---------- 分区标题 ---------- */
.section { padding: 30px 0 6px; }
.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 16px;
}
.section-head h2 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 20px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.section-head h2::before {
    content: '';
    width: 4px; height: 16px;
    background: var(--violet);
    border-radius: 2px;
    display: inline-block;
}
.section-head .more { font-size: 12.5px; color: var(--text-muted); }

/* ---------- 分类横滑 ---------- */
.cat-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    -ms-overflow-style: none; scrollbar-width: none;
}
.cat-scroll::-webkit-scrollbar { display: none; }
.cat-chip {
    flex: 0 0 auto;
    padding: 9px 18px;
    border-radius: 100px;
    border: 1px solid var(--border);
    background: var(--bg-panel);
    font-size: 13.5px;
    color: var(--text-muted);
    white-space: nowrap;
}
.cat-chip.active {
    background: linear-gradient(135deg, var(--violet), #8B7CFF);
    color: #fff;
    border-color: transparent;
}

/* ---------- 卡片 ---------- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
.product-card {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color .15s;
}
.product-card:hover { border-color: rgba(108,92,231,0.5); }
.product-card .cover {
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, #1a2033, #0f1420);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-dim);
    font-family: 'Rajdhani', sans-serif;
    font-size: 13px;
    position: relative;
}
.product-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.product-card .body { padding: 12px 13px 14px; }
.product-card .title {
    font-size: 14.5px; font-weight: 700; margin: 0 0 6px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.product-card .summary {
    font-size: 12px; color: var(--text-muted); margin: 0 0 10px;
    display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.product-card .foot { display: flex; align-items: center; justify-content: space-between; }
.product-card .price { color: var(--gold); font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 17px; }
.product-card .price small { font-size: 11px; color: var(--text-dim); font-weight: 400; }

/* ---------- 打手列表 ---------- */
.booster-row {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 14px;
    margin-bottom: 10px;
}
.booster-row .avatar {
    width: 48px; height: 48px; border-radius: 50%;
    background: linear-gradient(135deg, var(--violet), var(--cyan));
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; color: #0A0E17; flex-shrink: 0; overflow: hidden;
    font-family: 'Rajdhani', sans-serif;
}
.booster-row .avatar img { width: 100%; height: 100%; object-fit: cover; }
.booster-row .info { flex: 1; min-width: 0; }
.booster-row .name-line { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14.5px; }
.booster-row .status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text-dim); flex-shrink: 0; }
.booster-row .status-dot.online { background: var(--cyan); box-shadow: 0 0 6px var(--cyan); }
.booster-row .tags { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.booster-row .tag {
    font-size: 11px; padding: 2px 8px; border-radius: 100px;
    background: rgba(108,92,231,0.12); color: var(--violet-bright);
    border: 1px solid rgba(108,92,231,0.25);
}
.booster-row .tag.gold { background: rgba(212,168,87,0.12); color: var(--gold); border-color: rgba(212,168,87,0.3); }

/* ---------- 表单 ---------- */
.form-panel {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
}
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 7px; }
.field input, .field select, .field textarea {
    width: 100%;
    background: var(--bg-deep);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 11px 13px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
}
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: var(--violet-bright);
    box-shadow: 0 0 0 3px rgba(108,92,231,0.18);
}
.field textarea { resize: vertical; min-height: 90px; }
.field-hint { font-size: 11.5px; color: var(--text-dim); margin-top: 6px; line-height: 1.5; }

/* ---------- 提示条 ---------- */
.alert {
    padding: 12px 14px; border-radius: var(--radius-sm);
    font-size: 13px; margin-bottom: 16px;
    border: 1px solid;
}
.alert-success { background: rgba(47,213,200,0.08); border-color: rgba(47,213,200,0.3); color: var(--cyan); }
.alert-error { background: rgba(233,84,107,0.08); border-color: rgba(233,84,107,0.3); color: var(--danger); }
.alert-info { background: rgba(212,168,87,0.08); border-color: rgba(212,168,87,0.3); color: var(--gold); }

/* ---------- 底部 Tab 导航 ---------- */
.tabbar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 60;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: rgba(10,14,23,0.92);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--border);
    padding: 8px 0 max(8px, env(safe-area-inset-bottom));
}
.tabbar a {
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    font-size: 10.5px; color: var(--text-dim);
}
.tabbar a.active { color: var(--violet-bright); }
.tabbar svg { width: 21px; height: 21px; }

/* ---------- 订单/列表项 ---------- */
.order-item {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    margin-bottom: 12px;
}
.order-item .top-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.order-item .order-no { font-size: 11.5px; color: var(--text-dim); }
.order-item .status-badge {
    font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 100px;
}
.order-item .prod-title { font-size: 14.5px; font-weight: 700; margin-bottom: 4px; }
.order-item .meta { font-size: 12px; color: var(--text-muted); }
.order-item .bottom-row { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--border); }

/* ---------- 聊天 ---------- */
.chat-wrap { display: flex; height: calc(100vh - 56px); }
.chat-list { width: 100%; max-width: 100%; }
.chat-item { display: flex; gap: 10px; padding: 13px 16px; border-bottom: 1px solid var(--border); }
.chat-item .avatar { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, var(--violet), var(--cyan)); flex-shrink: 0; display:flex;align-items:center;justify-content:center; font-weight:700; color:#0A0E17;}
.chat-item .info { flex: 1; min-width: 0; }
.chat-item .row1 { display: flex; justify-content: space-between; font-size: 13.5px; font-weight: 700; }
.chat-item .preview { font-size: 12px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 3px; }

.msg-scroll { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.msg-row { display: flex; }
.msg-row.me { justify-content: flex-end; }
.msg-bubble { max-width: 72%; padding: 10px 14px; border-radius: 14px; font-size: 13.5px; line-height: 1.5; }
.msg-row.other .msg-bubble { background: var(--bg-panel); border: 1px solid var(--border); border-top-left-radius: 4px; }
.msg-row.me .msg-bubble { background: linear-gradient(135deg, var(--violet), #7C6BF0); color: #fff; border-top-right-radius: 4px; }
.chat-input-bar { display: flex; gap: 10px; padding: 12px 14px; border-top: 1px solid var(--border); background: var(--bg-panel); }
.chat-input-bar input { flex: 1; background: var(--bg-deep); border: 1px solid var(--border); border-radius: 100px; padding: 10px 16px; color: var(--text-primary); font-size: 13.5px; }
.chat-input-bar input:focus { outline: none; border-color: var(--violet-bright); }

/* ---------- 个人中心 ---------- */
.profile-head {
    display: flex; align-items: center; gap: 14px;
    padding: 26px 20px 20px;
    background: linear-gradient(160deg, rgba(108,92,231,0.16), transparent 70%);
}
.profile-head .avatar { width: 60px; height: 60px; border-radius: 50%; background: linear-gradient(135deg, var(--violet), var(--cyan)); display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700; color: #0A0E17; }
.wallet-card {
    margin: 0 20px 8px;
    background: linear-gradient(135deg, #1B1032, #0F1B2E);
    border: 1px solid rgba(212,168,87,0.3);
    border-radius: var(--radius);
    padding: 18px 20px;
    position: relative;
    overflow: hidden;
}
.wallet-card::after {
    content: '';
    position: absolute; right: -30px; top: -30px; width: 140px; height: 140px;
    background: radial-gradient(circle, rgba(212,168,87,0.25), transparent 70%);
}
.wallet-card .label { font-size: 12px; color: var(--text-muted); }
.wallet-card .amount { font-family: 'Rajdhani', sans-serif; font-size: 32px; font-weight: 700; color: var(--gold); margin: 6px 0 2px; }
.wallet-card .hint { font-size: 11px; color: var(--text-dim); }

.grid-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 0 20px; margin-top: 16px; }
.grid-links a { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 11.5px; color: var(--text-muted); background: var(--bg-panel); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 4px; }
.grid-links .ic { width: 22px; height: 22px; color: var(--violet-bright); }

.list-panel { margin: 20px; background: var(--bg-panel); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.list-panel a.row, .list-panel .row { display: flex; align-items: center; justify-content: space-between; padding: 15px 16px; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.list-panel a.row:last-child, .list-panel .row:last-child { border-bottom: none; }
.list-panel .row .arrow { color: var(--text-dim); }

.empty-state { text-align: center; padding: 60px 20px; color: var(--text-dim); }
.empty-state .big { font-size: 40px; margin-bottom: 10px; }

footer.site-footer {
    text-align: center;
    color: var(--text-dim);
    font-size: 11.5px;
    padding: 30px 20px 20px;
}

@media (min-width: 700px) {
    .card-grid { grid-template-columns: repeat(3, 1fr); }
}
