/* ============================================================
   安培精灵官网 - 前台与通用样式
   深色玻璃科技风，无外部依赖
   ============================================================ */

:root {
    --bg: #070b14;
    --bg-2: #0b1220;
    --card: rgba(18, 26, 46, .82);
    --card-solid: #111a2e;
    --line: rgba(120, 150, 200, .16);
    --line-strong: rgba(120, 190, 220, .32);
    --text: #e6ecf6;
    --muted: #8a95ad;
    --dim: #5d6880;
    --teal: #5eead4;
    --teal-soft: rgba(94, 234, 212, .14);
    --purple: #a78bfa;
    --purple-soft: rgba(167, 139, 250, .14);
    --danger: #f87171;
    --danger-soft: rgba(248, 113, 113, .14);
    --warn: #fbbf24;
    --warn-soft: rgba(251, 191, 36, .14);
    --success: #34d399;
    --success-soft: rgba(52, 211, 153, .14);
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 24px 60px -30px rgba(0, 0, 0, .85);
}

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: "Segoe UI", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.65;
    overflow-x: hidden;
}

a {
    color: var(--teal);
    text-decoration: none;
    transition: color .18s ease, opacity .18s ease;
}

a:hover {
    color: #8df5e4;
}

img {
    max-width: 100%;
    display: block;
}

h1, h2, h3, h4, h5 {
    margin: 0 0 .6em;
    line-height: 1.3;
    font-weight: 600;
    letter-spacing: -.01em;
}

p {
    margin: 0 0 1em;
}

.ico {
    flex: none;
    vertical-align: middle;
}

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------------------------------------------- 背景光晕 */
.bg-glow {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.glow {
    position: absolute;
    border-radius: 50%;
    opacity: .55;
}

.glow-a {
    width: 560px;
    height: 560px;
    top: -180px;
    right: -120px;
    background: radial-gradient(circle, rgba(94, 234, 212, .28), transparent 70%);
}

.glow-b {
    width: 640px;
    height: 640px;
    top: 220px;
    left: -260px;
    background: radial-gradient(circle, rgba(167, 139, 250, .22), transparent 70%);
}

.glow-c {
    width: 420px;
    height: 420px;
    bottom: -200px;
    right: 20%;
    background: radial-gradient(circle, rgba(56, 189, 248, .16), transparent 70%);
}

/* ---------------------------------------------- 导航 */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(7, 11, 20, .94);
    border-bottom: 1px solid var(--line);
}

.nav-wrap {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 68px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    flex: none;
}

.brand:hover {
    color: var(--text);
}

.brand-mark {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    color: #06131a;
    background: linear-gradient(135deg, var(--teal), var(--purple));
    box-shadow: 0 0 24px -6px rgba(94, 234, 212, .6);
}

.brand-mark .ico {
    color: #06131a;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-text strong {
    font-size: 16px;
    letter-spacing: .02em;
}

.brand-text small {
    font-size: 11px;
    color: var(--muted);
    letter-spacing: .06em;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 10px;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 10px;
    color: var(--muted);
    font-size: 14px;
    white-space: nowrap;
    border: 1px solid transparent;
}

.nav-link .ico {
    opacity: .75;
}

.nav-link:hover {
    color: var(--text);
    background: rgba(255, 255, 255, .04);
}

.nav-link.is-active {
    color: var(--teal);
    background: var(--teal-soft);
    border-color: rgba(94, 234, 212, .22);
}

.nav-link.is-active .ico {
    opacity: 1;
}

.nav-auth {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-user {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    font-size: 14px;
    padding: 4px 8px 4px 4px;
    border-radius: 10px;
}

.nav-user:hover {
    background: rgba(255, 255, 255, .04);
    color: var(--text);
}

.avatar {
    width: 28px;
    height: 28px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    color: #071018;
    background: linear-gradient(135deg, var(--teal), var(--purple));
}

.nav-toggle {
    display: none;
    margin-left: auto;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .04);
    color: var(--text);
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

/* ---------------------------------------------- 按钮 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: 11px;
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    white-space: nowrap;
    transition: box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
    font-family: inherit;
}

.btn:active {
    opacity: .92;
}

.btn--primary {
    color: #04121a;
    background: linear-gradient(135deg, var(--teal), #7dd3fc);
    box-shadow: 0 10px 28px -12px rgba(94, 234, 212, .75);
}

.btn--primary:hover {
    color: #04121a;
    box-shadow: 0 16px 34px -12px rgba(94, 234, 212, .9);
}

.btn--purple {
    color: #0b0616;
    background: linear-gradient(135deg, var(--purple), #c4b5fd);
    box-shadow: 0 10px 26px -14px rgba(167, 139, 250, .8);
}

.btn--purple:hover {
    color: #0b0616;
}

.btn--ghost {
    color: var(--text);
    background: rgba(255, 255, 255, .035);
    border-color: var(--line);
}

.btn--ghost:hover {
    color: var(--text);
    border-color: var(--line-strong);
    background: rgba(255, 255, 255, .07);
}

.btn--danger {
    color: #fff;
    background: rgba(248, 113, 113, .16);
    border-color: rgba(248, 113, 113, .4);
}

.btn--danger:hover {
    color: #fff;
    background: rgba(248, 113, 113, .26);
}

.btn--sm {
    padding: 7px 13px;
    font-size: 13px;
    border-radius: 9px;
}

.btn--block {
    width: 100%;
}

.btn:disabled,
.btn.is-disabled {
    opacity: .45;
    cursor: not-allowed;
    transform: none;
}

/* ---------------------------------------------- 提示条 */
.flash {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    margin: 18px 0;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .04);
    font-size: 14px;
    animation: flash-in .25s ease;
}

@keyframes flash-in {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.flash--success {
    border-color: rgba(52, 211, 153, .35);
    background: var(--success-soft);
    color: #a7f3d0;
}

.flash--error {
    border-color: rgba(248, 113, 113, .35);
    background: var(--danger-soft);
    color: #fecaca;
}

.flash--warning {
    border-color: rgba(251, 191, 36, .35);
    background: var(--warn-soft);
    color: #fde68a;
}

.flash--info {
    border-color: rgba(94, 234, 212, .3);
    background: var(--teal-soft);
    color: #b8fff2;
}

.flash-text {
    flex: 1;
}

.flash-close {
    background: none;
    border: none;
    color: inherit;
    opacity: .7;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 0 2px;
}

.flash-close:hover {
    opacity: 1;
}

/* ---------------------------------------------- 主体 */
.site-main {
    padding: 34px 0 60px;
    min-height: calc(100vh - 330px);
}

/* ---------------------------------------------- 首页 Hero */
.hero {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 40px;
    align-items: center;
    padding: 46px 0 30px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    background: rgba(94, 234, 212, .06);
    color: var(--teal);
    font-size: 13px;
    letter-spacing: .04em;
    margin-bottom: 22px;
}

.hero-badge .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--teal);
    box-shadow: 0 0 10px var(--teal);
    animation: pulse 2.4s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .35; }
}

.hero-title {
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.12;
    margin: 0 0 18px;
    letter-spacing: -.02em;
    background: linear-gradient(120deg, #ffffff 15%, #9df5e7 55%, #b9a4ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-sub {
    color: var(--muted);
    font-size: 16px;
    max-width: 540px;
    margin-bottom: 26px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 26px;
}

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    color: var(--muted);
    font-size: 13px;
}

.hero-points span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hero-points .ico {
    color: var(--teal);
}

.hero-panel {
    position: relative;
    border-radius: 20px;
    padding: 22px;
    background: linear-gradient(160deg, rgba(21, 33, 58, .95), rgba(11, 18, 34, .9));
    border: 1px solid var(--line-strong);
    box-shadow: var(--shadow), 0 0 60px -30px rgba(94, 234, 212, .5);
    overflow: hidden;
}

.hero-panel::before {
    content: "";
    position: absolute;
    width: 240px;
    height: 240px;
    right: -80px;
    top: -100px;
    background: radial-gradient(circle, rgba(94, 234, 212, .2), transparent 70%);
    border-radius: 50%;
}

.panel-dots {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
}

.panel-dots i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
}

.panel-dots i:first-child {
    background: var(--teal);
}

.panel-title {
    font-size: 13px;
    letter-spacing: .12em;
    color: var(--dim);
    text-transform: uppercase;
    margin-bottom: 12px;
}

.panel-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 14px;
    margin-bottom: 10px;
    border-radius: 11px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .025);
    font-size: 13px;
}

.panel-line .label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
}

.panel-line .value {
    color: var(--text);
    font-weight: 600;
}

.panel-line .value.ok {
    color: var(--teal);
}

.panel-meter {
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    overflow: hidden;
    margin: 16px 0 6px;
}

.panel-meter i {
    display: block;
    height: 100%;
    width: 72%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--teal), var(--purple));
}

.panel-foot {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--dim);
}

/* ---------------------------------------------- 统计条 */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin: 26px 0 10px;
}

.stat {
    padding: 20px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--card);
}

.stat-value {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--text);
}

.stat-value.accent {
    color: var(--teal);
}

.stat-label {
    font-size: 12px;
    color: var(--muted);
    margin-top: 4px;
    letter-spacing: .04em;
}

/* ---------------------------------------------- 区块 */
.section {
    margin-top: 56px;
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.section-title {
    font-size: 22px;
    margin: 0 0 4px;
}

.section-desc {
    color: var(--muted);
    font-size: 13px;
    margin: 0;
}

.link-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--muted);
    white-space: nowrap;
}

.link-more:hover {
    color: var(--teal);
}

/* ---------------------------------------------- 功能卡片 */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.feature-card {
    padding: 22px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--card);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.feature-card:hover {
    border-color: var(--line-strong);
    box-shadow: 0 22px 44px -30px rgba(94, 234, 212, .45);
}

.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    color: var(--teal);
    background: var(--teal-soft);
    border: 1px solid rgba(94, 234, 212, .2);
}

.feature-icon.purple {
    color: var(--purple);
    background: var(--purple-soft);
    border-color: rgba(167, 139, 250, .22);
}

.feature-card h3 {
    font-size: 16px;
    margin-bottom: 6px;
}

.feature-card p {
    color: var(--muted);
    font-size: 13px;
    margin: 0;
}

/* ---------------------------------------------- 套餐 */
.price-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.price-card {
    position: relative;
    padding: 26px 22px 22px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--card);
    transition: border-color .2s ease, box-shadow .2s ease;
    display: flex;
    flex-direction: column;
}

.price-card:hover {
    border-color: var(--line-strong);
    box-shadow: 0 16px 36px -30px rgba(0, 0, 0, .8);
}

.price-card.is-hot {
    border-color: rgba(94, 234, 212, .45);
    box-shadow: 0 0 46px -24px rgba(94, 234, 212, .8);
    background: linear-gradient(160deg, rgba(24, 44, 66, .92), rgba(15, 22, 38, .9));
}

.price-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    letter-spacing: .06em;
    color: var(--teal);
    background: var(--teal-soft);
    border: 1px solid rgba(94, 234, 212, .28);
}

.price-name {
    font-size: 15px;
    color: var(--muted);
    margin-bottom: 12px;
}

.price-points {
    font-size: 34px;
    font-weight: 700;
    line-height: 1.1;
    color: var(--text);
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.price-points small {
    font-size: 13px;
    font-weight: 400;
    color: var(--muted);
}

.price-bonus {
    display: inline-block;
    margin-top: 8px;
    font-size: 12px;
    color: var(--purple);
    background: var(--purple-soft);
    border: 1px solid rgba(167, 139, 250, .25);
    border-radius: 999px;
    padding: 2px 10px;
    width: fit-content;
}

.price-amount {
    margin: 18px 0;
    font-size: 22px;
    font-weight: 700;
    color: var(--teal);
}

.price-amount span {
    font-size: 13px;
    color: var(--muted);
    font-weight: 400;
    margin-left: 4px;
}

.price-buy {
    margin-top: auto;
}

/* ---------------------------------------------- 公告 */
.ann-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ann-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 18px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--text);
    transition: border-color .2s ease, background .2s ease;
}

.ann-item:hover {
    border-color: var(--line-strong);
    background: rgba(24, 34, 56, .9);
    color: var(--text);
}

.ann-top {
    flex: none;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 6px;
    color: var(--warn);
    background: var(--warn-soft);
    border: 1px solid rgba(251, 191, 36, .3);
}

.ann-title {
    flex: 1;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ann-date {
    flex: none;
    font-size: 12px;
    color: var(--dim);
}

.ann-content {
    margin-top: 22px;
    padding: 26px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--text);
    line-height: 1.9;
    word-break: break-word;
}

.ann-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    color: var(--dim);
    font-size: 12px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

/* ---------------------------------------------- 页头 */
.page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.page-title {
    font-size: 24px;
    margin: 0 0 4px;
}

.page-sub {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.breadcrumb {
    display: flex;
    gap: 8px;
    font-size: 12px;
    color: var(--dim);
    margin-bottom: 14px;
}

.breadcrumb a {
    color: var(--muted);
}

/* ---------------------------------------------- 卡片 */
.card {
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--card);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.card + .card {
    margin-top: 18px;
}

.card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
}

.card-title {
    font-size: 15px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-title .ico {
    color: var(--teal);
}

.card-body {
    padding: 20px;
}

.card-body.is-flush {
    padding: 0;
}

/* ---------------------------------------------- 表单 */
.form-row {
    margin-bottom: 16px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
}

.form-label {
    display: block;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 7px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 11px 13px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: rgba(8, 13, 24, .72);
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.form-textarea {
    min-height: 110px;
    resize: vertical;
    line-height: 1.7;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--dim);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: rgba(94, 234, 212, .55);
    box-shadow: 0 0 0 3px rgba(94, 234, 212, .12);
    background: rgba(10, 17, 30, .9);
}

.form-select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
    background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    padding-right: 34px;
}

.form-hint {
    font-size: 12px;
    color: var(--dim);
    margin-top: 6px;
}

.form-error {
    font-size: 12px;
    color: var(--danger);
    margin-top: 6px;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 20px;
}

.form-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.form-inline .form-input,
.form-inline .form-select {
    width: auto;
    min-width: 130px;
    flex: 1 1 130px;
}

.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.radio-card {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: rgba(8, 13, 24, .6);
    cursor: pointer;
    font-size: 13px;
    color: var(--muted);
    transition: border-color .18s ease, color .18s ease, background .18s ease;
}

.radio-card input {
    accent-color: var(--teal);
}

.radio-card.is-checked,
.radio-card:hover {
    border-color: rgba(94, 234, 212, .4);
    color: var(--text);
    background: rgba(94, 234, 212, .07);
}

.checkbox-line {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
    cursor: pointer;
}

.checkbox-line input {
    accent-color: var(--teal);
    width: 16px;
    height: 16px;
}

/* ---------------------------------------------- 登录注册 */
.auth-page {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    align-items: stretch;
    max-width: 940px;
    margin: 30px auto;
}

.auth-card {
    padding: 30px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--card);
    box-shadow: var(--shadow);
}

.auth-side {
    padding: 34px;
    border-radius: var(--radius);
    border: 1px solid rgba(94, 234, 212, .22);
    background: linear-gradient(155deg, rgba(20, 40, 60, .92), rgba(18, 20, 44, .92));
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.auth-side::after {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    right: -110px;
    bottom: -140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(167, 139, 250, .28), transparent 70%);
}

.auth-side h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.auth-side p {
    color: var(--muted);
    font-size: 14px;
}

.auth-side ul {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
}

.auth-side li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 10px;
}

.auth-side li .ico {
    color: var(--teal);
    margin-top: 2px;
}

.auth-title {
    font-size: 23px;
    margin-bottom: 4px;
}

.auth-sub {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 22px;
}

/* ---------------------------------------------- 用户中心 */
.dash-top {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 18px;
    margin-bottom: 18px;
}

.points-card {
    position: relative;
    padding: 26px;
    border-radius: var(--radius);
    border: 1px solid rgba(94, 234, 212, .3);
    background: linear-gradient(150deg, rgba(22, 48, 62, .94), rgba(16, 20, 40, .94));
    box-shadow: 0 0 60px -34px rgba(94, 234, 212, .7);
    overflow: hidden;
}

.points-card::after {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    right: -120px;
    top: -120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(94, 234, 212, .18), transparent 70%);
}

.points-label {
    font-size: 12px;
    letter-spacing: .14em;
    color: var(--muted);
    text-transform: uppercase;
}

.points-number {
    font-size: 46px;
    font-weight: 700;
    line-height: 1.15;
    color: var(--teal);
    letter-spacing: -.02em;
}

.points-unit {
    font-size: 13px;
    color: var(--muted);
    margin-left: 6px;
}

.points-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 14px;
    color: var(--muted);
    font-size: 13px;
}

.points-meta strong {
    color: var(--text);
    font-weight: 600;
}

.points-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.info-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px dashed rgba(120, 150, 200, .14);
    font-size: 13px;
}

.info-item:last-child {
    border-bottom: none;
}

.info-item .k {
    color: var(--muted);
    flex: none;
}

.info-item .v {
    color: var(--text);
    text-align: right;
    word-break: break-all;
}

.info-item .v.mono {
    font-family: Consolas, "Courier New", monospace;
    font-size: 12px;
}

.dash-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.dash-grid .card + .card {
    margin-top: 0;
}

.section-gap {
    margin-top: 18px;
}

/* ---------------------------------------------- 表格 */
.table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    min-width: 560px;
}

.table th {
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: .04em;
    color: var(--muted);
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
    background: rgba(255, 255, 255, .02);
}

.table td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(120, 150, 200, .09);
    color: var(--text);
    vertical-align: middle;
}

.table tbody tr {
    transition: background .15s ease;
}

.table tbody tr:hover {
    background: rgba(94, 234, 212, .045);
}

.table tbody tr:last-child td {
    border-bottom: none;
}

.table .actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.table .actions form {
    display: inline;
    margin: 0;
}

.table .muted {
    color: var(--muted);
}

.table .num {
    font-variant-numeric: tabular-nums;
}

.mono {
    font-family: Consolas, "Courier New", monospace;
    letter-spacing: .01em;
}

.nowrap {
    white-space: nowrap;
}

.empty {
    padding: 44px 20px;
    text-align: center;
    color: var(--dim);
    font-size: 13px;
}

.empty .ico {
    display: block;
    margin: 0 auto 10px;
    color: var(--dim);
}

/* ---------------------------------------------- 状态胶囊 */
.pill {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1.7;
    border: 1px solid transparent;
    white-space: nowrap;
}

.pill--success {
    color: #6ee7b7;
    background: var(--success-soft);
    border-color: rgba(52, 211, 153, .3);
}

.pill--danger {
    color: #fca5a5;
    background: var(--danger-soft);
    border-color: rgba(248, 113, 113, .3);
}

.pill--warning {
    color: #fcd34d;
    background: var(--warn-soft);
    border-color: rgba(251, 191, 36, .3);
}

.pill--info {
    color: #7dd3fc;
    background: rgba(56, 189, 248, .13);
    border-color: rgba(56, 189, 248, .3);
}

.pill--purple {
    color: #c4b5fd;
    background: var(--purple-soft);
    border-color: rgba(167, 139, 250, .3);
}

.pill--muted {
    color: var(--muted);
    background: rgba(255, 255, 255, .05);
    border-color: var(--line);
}

/* ---------------------------------------------- 标签页 */
.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 18px;
}

.tab {
    padding: 7px 15px;
    border-radius: 9px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .03);
    color: var(--muted);
    font-size: 13px;
}

.tab:hover {
    color: var(--text);
    border-color: var(--line-strong);
}

.tab.is-active {
    color: var(--teal);
    background: var(--teal-soft);
    border-color: rgba(94, 234, 212, .3);
}

/* ---------------------------------------------- 分页 */
.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    padding: 16px 20px;
    border-top: 1px solid var(--line);
}

.page-btn {
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .03);
    color: var(--muted);
    font-size: 13px;
}

.page-btn:hover {
    color: var(--text);
    border-color: var(--line-strong);
}

.page-btn.is-active {
    color: var(--teal);
    background: var(--teal-soft);
    border-color: rgba(94, 234, 212, .3);
}

.page-btn.is-disabled {
    opacity: .4;
    cursor: not-allowed;
}

.page-dot {
    color: var(--dim);
    padding: 0 4px;
}

/* ---------------------------------------------- 订单 */
.order-card {
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
}

.order-card:last-child {
    border-bottom: none;
}

.order-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    align-items: center;
    justify-content: space-between;
}

.order-no {
    font-family: Consolas, "Courier New", monospace;
    font-size: 13px;
    color: var(--text);
}

.order-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    font-size: 12px;
    color: var(--muted);
    margin-top: 6px;
}

.order-meta strong {
    color: var(--text);
    font-weight: 600;
}

.order-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

/* ---------------------------------------------- 购买页 */
.pay-note {
    margin-top: 18px;
    padding: 16px 18px;
    border-radius: 12px;
    border: 1px dashed rgba(94, 234, 212, .3);
    background: rgba(94, 234, 212, .05);
    color: var(--muted);
    font-size: 13px;
    white-space: pre-line;
    line-height: 1.8;
}

.pay-note strong {
    color: var(--teal);
}

.narrow {
    max-width: 560px;
    margin: 0 auto;
}

/* ---------------------------------------------- 下载页 */
.download-hero {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 24px;
    align-items: center;
    padding: 30px;
    border-radius: var(--radius);
    border: 1px solid var(--line-strong);
    background: linear-gradient(150deg, rgba(22, 40, 62, .94), rgba(14, 18, 36, .94));
    box-shadow: var(--shadow);
}

.version-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 13px;
    border-radius: 999px;
    font-size: 12px;
    color: var(--purple);
    background: var(--purple-soft);
    border: 1px solid rgba(167, 139, 250, .3);
    margin-bottom: 16px;
}

.download-title {
    font-size: 30px;
    margin-bottom: 10px;
}

.download-desc {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 20px;
}

.download-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.download-meta div {
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .03);
    font-size: 12px;
    color: var(--muted);
}

.download-meta strong {
    display: block;
    color: var(--text);
    font-size: 14px;
    margin-top: 3px;
}

/* ---------------------------------------------- 弹窗 / 轻提示 */
.modal-mask {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(3, 6, 12, .86);
}

.modal-box {
    width: 100%;
    max-width: 400px;
    padding: 24px;
    border-radius: 14px;
    border: 1px solid var(--line-strong);
    background: var(--card-solid);
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9);
}

.modal-title {
    font-size: 16px;
    margin-bottom: 8px;
}

.modal-text {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 20px;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 34px;
    transform: translateX(-50%) translateY(12px);
    padding: 10px 18px;
    border-radius: 10px;
    background: rgba(18, 26, 46, .96);
    border: 1px solid var(--line-strong);
    color: var(--text);
    font-size: 13px;
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .8);
    opacity: 0;
    transition: opacity .2s ease, transform .2s ease;
    z-index: 300;
}

.toast.is-show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ---------------------------------------------- 页脚 */
.site-footer {
    border-top: 1px solid var(--line);
    background: rgba(7, 11, 20, .6);
    padding: 40px 0 22px;
    margin-top: 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 32px;
}

.footer-desc {
    color: var(--muted);
    font-size: 13px;
    margin: 14px 0 6px;
    max-width: 420px;
}

.footer-contact {
    color: var(--dim);
    font-size: 12px;
    margin: 0;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links h4 {
    font-size: 13px;
    color: var(--text);
    margin: 0 0 4px;
    letter-spacing: .04em;
}

.footer-links a {
    color: var(--muted);
    font-size: 13px;
}

.footer-links a:hover {
    color: var(--teal);
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    margin-top: 30px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    color: var(--dim);
    font-size: 12px;
}

/* ---------------------------------------------- 工具类 */
.text-muted {
    color: var(--muted);
}

.text-dim {
    color: var(--dim);
}

.text-teal {
    color: var(--teal);
}

.text-center {
    text-align: center;
}

.mt-0 { margin-top: 0; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; }
.hidden { display: none !important; }

/* ---------------------------------------------- 响应式 */
@media (max-width: 1000px) {
    .site-nav {
        position: absolute;
        top: 68px;
        left: 12px;
        right: 12px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 12px;
        border-radius: 14px;
        border: 1px solid var(--line-strong);
        background: rgba(10, 16, 30, .98);
        box-shadow: var(--shadow);
    }

    .site-nav.is-open {
        display: flex;
    }

    .nav-link {
        padding: 10px 12px;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .nav-auth {
        margin-left: auto;
    }

    .nav-user-name {
        display: none;
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-top: 26px;
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .price-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dash-top,
    .dash-grid,
    .download-hero,
    .auth-page {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 680px) {
    .container {
        padding: 0 16px;
    }

    .site-main {
        padding-top: 22px;
    }

    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-grid,
    .price-grid {
        grid-template-columns: 1fr;
    }

    .form-grid,
    .download-meta {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-actions .btn {
        flex: 1 1 46%;
    }

    .section {
        margin-top: 40px;
    }

    .page-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .points-number {
        font-size: 38px;
    }

    .auth-card,
    .auth-side {
        padding: 22px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .nav-wrap {
        gap: 10px;
    }

    .brand-text small {
        display: none;
    }
}
