/* ============================================================
 * DownloadX v1.0.0 — Author: Cg
 * Copyright (c) 2026 Cg. All rights reserved.
 * 版权所有：禁止分发、复制、二次修改。
 * ============================================================ */

:root {
    --dlx-bg: #0b1020;
    --dlx-bg-soft: #0f1628;
    --dlx-surface: #141c31;
    --dlx-surface-2: #1a2440;
    --dlx-border: rgba(148, 163, 184, .14);
    --dlx-text: #e6ecf8;
    --dlx-text-dim: #9aa8c7;
    --dlx-text-faint: #6b7896;
    --dlx-primary: #4f7cff;
    --dlx-primary-strong: #3a63e8;
    --dlx-accent: #22d3ee;
    --dlx-gold: #f5b643;
    --dlx-danger: #f87171;
    --dlx-success: #34d399;
    --dlx-radius: 14px;
    --dlx-radius-sm: 9px;
    --dlx-shadow: 0 10px 30px rgba(3, 7, 18, .45);
    --dlx-shadow-sm: 0 4px 14px rgba(3, 7, 18, .35);
    --dlx-header-h: 64px;
    --dlx-font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--dlx-font);
    font-size: 15px;
    line-height: 1.7;
    color: var(--dlx-text);
    background:
        radial-gradient(1200px 500px at 85% -10%, rgba(79, 124, 255, .18), transparent 60%),
        radial-gradient(900px 420px at 0% -10%, rgba(34, 211, 238, .12), transparent 55%),
        var(--dlx-bg);
    min-height: 100vh;
}
a { color: var(--dlx-primary); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--dlx-accent); }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--dlx-accent); outline-offset: 2px; }

.dlx-skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 999;
    background: var(--dlx-primary); color: #fff; padding: 8px 16px; border-radius: 0 0 8px 0;
}
.dlx-skip-link:focus { left: 0; }

/* ---------- 容器（全宽为主，内容区留边距） ---------- */
.dlx-container {
    width: 100%;
    max-width: 1560px;
    margin: 0 auto;
    padding: 0 clamp(16px, 3vw, 40px);
}
body.dlx-layout-boxed .dlx-container { max-width: 1200px; }

/* ---------- 按钮 ---------- */
.dlx-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 22px; border-radius: 999px; border: 1px solid transparent;
    font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease, color .16s ease;
}
.dlx-btn:hover { transform: translateY(-1px); }
.dlx-btn:active { transform: translateY(0); }
.dlx-btn-primary {
    background: linear-gradient(135deg, var(--dlx-primary), var(--dlx-accent));
    color: #fff; box-shadow: 0 6px 18px rgba(79, 124, 255, .35);
}
.dlx-btn-primary:hover { color: #fff; box-shadow: 0 10px 24px rgba(79, 124, 255, .5); }
.dlx-btn-ghost {
    background: transparent; color: var(--dlx-text);
    border-color: var(--dlx-border);
}
.dlx-btn-ghost:hover { background: var(--dlx-surface-2); color: #fff; }
.dlx-btn-gold {
    background: linear-gradient(135deg, #f5b643, #ff8a3d);
    color: #241a05; font-weight: 700;
    box-shadow: 0 6px 18px rgba(245, 182, 67, .35);
}
.dlx-btn-block { display: flex; width: 100%; }
.dlx-btn[disabled] { opacity: .55; cursor: not-allowed; transform: none !important; }
.dlx-btn-lg { padding: 13px 30px; font-size: 16px; }

/* ---------- 徽章 ---------- */
.dlx-badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; line-height: 1.6;
}
.dlx-badge-vip { background: linear-gradient(135deg, #f5b643, #ff8a3d); color: #241a05; }
.dlx-badge-free { background: rgba(52, 211, 153, .15); color: var(--dlx-success); }
.dlx-badge-hot { background: rgba(248, 113, 113, .15); color: var(--dlx-danger); }
.dlx-badge-paid { background: rgba(79, 124, 255, .16); color: var(--dlx-primary); }
.dlx-badge-pending { background: rgba(245, 182, 67, .15); color: var(--dlx-gold); }

/* ---------- 顶部导航 ---------- */
.dlx-header {
    position: sticky; top: 0; z-index: 90;
    background: rgba(11, 16, 32, .86);
    border-bottom: 1px solid var(--dlx-border);
    backdrop-filter: saturate(140%) blur(6px);
}
.dlx-header-inner {
    display: flex; align-items: center; gap: 28px;
    height: var(--dlx-header-h);
}
.dlx-logo-text { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--dlx-text); }
.dlx-logo-text:hover { color: var(--dlx-text); }
.dlx-logo-mark {
    display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
    background: linear-gradient(135deg, var(--dlx-primary), var(--dlx-accent));
    color: #fff; font-size: 14px; font-weight: 800; letter-spacing: .5px;
    box-shadow: 0 4px 12px rgba(79, 124, 255, .4);
}
.dlx-logo-name { font-size: 17px; }
.dlx-logo .custom-logo { max-height: 42px; width: auto; }

.dlx-nav { flex: 1; min-width: 0; }
.dlx-nav-list { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; flex-wrap: wrap; }
.dlx-nav-list a {
    display: inline-block; padding: 8px 14px; border-radius: 8px;
    color: var(--dlx-text-dim); font-size: 14px; font-weight: 500;
}
.dlx-nav-list a:hover,
.dlx-nav-list .current-menu-item > a,
.dlx-nav-list .current_page_item > a { color: #fff; background: var(--dlx-surface-2); }
.dlx-nav-list .sub-menu {
    list-style: none; position: absolute; z-index: 95; margin-top: 6px; padding: 8px;
    background: var(--dlx-surface); border: 1px solid var(--dlx-border); border-radius: 12px;
    box-shadow: var(--dlx-shadow); display: none; min-width: 180px;
}
.dlx-nav-list li { position: relative; }
.dlx-nav-list li:hover > .sub-menu { display: block; }
.dlx-nav-list .sub-menu a { display: block; padding: 8px 12px; border-radius: 8px; }

.dlx-header-actions { display: flex; align-items: center; gap: 12px; }
.dlx-search {
    display: flex; align-items: center; gap: 6px;
    background: var(--dlx-surface); border: 1px solid var(--dlx-border);
    border-radius: 999px; padding: 5px 6px 5px 16px;
}
.dlx-search input[type="search"] {
    border: 0; background: transparent; color: var(--dlx-text); width: 170px;
    outline: none; font-size: 13.5px;
}
.dlx-search input::placeholder { color: var(--dlx-text-faint); }
.dlx-search button {
    display: grid; place-items: center; width: 32px; height: 32px; border: 0; cursor: pointer;
    background: linear-gradient(135deg, var(--dlx-primary), var(--dlx-accent));
    color: #fff; border-radius: 999px;
}

.dlx-user-menu { position: relative; }
.dlx-user-btn {
    display: flex; align-items: center; gap: 8px; padding: 5px 10px 5px 5px;
    background: var(--dlx-surface); border: 1px solid var(--dlx-border);
    border-radius: 999px; cursor: pointer;
}
.dlx-avatar {
    display: grid; place-items: center; width: 30px; height: 30px; border-radius: 999px;
    background: linear-gradient(135deg, #7c5cff, var(--dlx-primary)); color: #fff;
    font-size: 13px; font-weight: 700;
}
.dlx-user-dropdown {
    position: absolute; right: 0; top: calc(100% + 8px); min-width: 170px;
    background: var(--dlx-surface); border: 1px solid var(--dlx-border); border-radius: 12px;
    box-shadow: var(--dlx-shadow); padding: 8px; display: none; z-index: 96;
}
.dlx-user-menu.open .dlx-user-dropdown { display: block; }
.dlx-user-dropdown a {
    display: block; padding: 9px 12px; border-radius: 8px; color: var(--dlx-text-dim); font-size: 14px;
}
.dlx-user-dropdown a:hover { background: var(--dlx-surface-2); color: #fff; }

.dlx-nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.dlx-nav-toggle span { display: block; width: 22px; height: 2px; background: var(--dlx-text); margin: 5px 0; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }

/* ---------- 主区布局：三栏 ---------- */
.dlx-main { min-height: calc(100vh - var(--dlx-header-h) - 200px); padding: 28px 0 60px; }
.dlx-layout-3col { display: grid; grid-template-columns: 250px minmax(0, 1fr) 300px; gap: 26px; align-items: start; }
.dlx-layout-2col-left { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 26px; align-items: start; }
.dlx-layout-2col-right { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 26px; align-items: start; }
.dlx-layout-1col { display: block; }
.dlx-layout-1col .dlx-side { display: none; }
.dlx-layout-2col-left .dlx-side-right,
.dlx-layout-2col-right .dlx-side-left { display: none; }

.dlx-side { position: sticky; top: calc(var(--dlx-header-h) + 20px); }
.dlx-side .widget {
    background: var(--dlx-surface); border: 1px solid var(--dlx-border);
    border-radius: var(--dlx-radius); padding: 18px; margin-bottom: 20px;
}
.widget-title { margin: 0 0 12px; font-size: 15px; font-weight: 700; position: relative; padding-left: 12px; }
.widget-title::before {
    content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 4px; border-radius: 4px;
    background: linear-gradient(180deg, var(--dlx-primary), var(--dlx-accent));
}

/* ---------- Hero ---------- */
.dlx-hero {
    position: relative; overflow: hidden;
    border-radius: 22px; padding: clamp(36px, 5vw, 72px);
    margin-bottom: 36px;
    background:
        radial-gradient(700px 300px at 80% 20%, rgba(34, 211, 238, .22), transparent 60%),
        linear-gradient(120deg, #1b2a5e 0%, #16204a 45%, #0f1628 100%);
    border: 1px solid var(--dlx-border);
}
.dlx-hero::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(2px 2px at 20% 30%, rgba(255,255,255,.35) 40%, transparent 41%),
                radial-gradient(2px 2px at 70% 60%, rgba(255,255,255,.25) 40%, transparent 41%),
                radial-gradient(1.5px 1.5px at 40% 80%, rgba(255,255,255,.3) 40%, transparent 41%);
    opacity: .5;
}
.dlx-hero-inner { position: relative; z-index: 1; max-width: 720px; }
.dlx-hero h1 {
    margin: 0 0 14px; font-size: clamp(26px, 4vw, 44px); line-height: 1.25; font-weight: 800;
    background: linear-gradient(90deg, #fff, #bcd0ff);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.dlx-hero p { color: var(--dlx-text-dim); font-size: clamp(14px, 1.4vw, 17px); margin: 0 0 26px; }
.dlx-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.dlx-hero-stats { display: flex; gap: 36px; margin-top: 34px; flex-wrap: wrap; }
.dlx-hero-stats div b { display: block; font-size: 26px; color: #fff; }
.dlx-hero-stats div span { color: var(--dlx-text-faint); font-size: 13px; }

/* ---------- 公告条 ---------- */
.dlx-notice {
    display: flex; align-items: center; gap: 10px;
    background: rgba(245, 182, 67, .1); border: 1px solid rgba(245, 182, 67, .3);
    color: #ffd58a; border-radius: 12px; padding: 10px 16px; margin-bottom: 28px; font-size: 14px;
}

/* ---------- 栏目区块 ---------- */
.dlx-section { margin-bottom: 46px; }
.dlx-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.dlx-section-title { margin: 0; font-size: 22px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.dlx-section-title::before {
    content: ""; width: 6px; height: 22px; border-radius: 6px;
    background: linear-gradient(180deg, var(--dlx-primary), var(--dlx-accent));
}
.dlx-section-more { font-size: 13px; color: var(--dlx-text-dim); }
.dlx-section-more:hover { color: var(--dlx-accent); }

/* ---------- 资源卡片网格 ---------- */
.dlx-grid {
    display: grid;
    grid-template-columns: repeat(var(--dlx-cols, 3), minmax(0, 1fr));
    gap: 22px;
}
.dlx-grid.cols-2 { --dlx-cols: 2; }
.dlx-grid.cols-3 { --dlx-cols: 3; }
.dlx-grid.cols-4 { --dlx-cols: 4; }

.dlx-card {
    position: relative; display: flex; flex-direction: column;
    background: var(--dlx-surface); border: 1px solid var(--dlx-border);
    border-radius: var(--dlx-radius); overflow: hidden;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.dlx-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--dlx-shadow);
    border-color: rgba(79, 124, 255, .45);
}
.dlx-card-thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--dlx-surface-2); }
.dlx-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.dlx-card:hover .dlx-card-thumb img { transform: scale(1.06); }
.dlx-card-thumb .dlx-badge { position: absolute; top: 10px; left: 10px; z-index: 2; }
.dlx-card-thumb .dlx-card-cat {
    position: absolute; top: 10px; right: 10px; z-index: 2;
    background: rgba(11, 16, 32, .6); color: #cdd8f2; font-size: 12px;
    padding: 3px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,.12);
}
.dlx-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.dlx-card-title { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.45;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dlx-card-title a { color: var(--dlx-text); }
.dlx-card-title a:hover { color: var(--dlx-accent); }
.dlx-card-desc { margin: 0; color: var(--dlx-text-dim); font-size: 13px; line-height: 1.6;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dlx-card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 12px; border-top: 1px dashed var(--dlx-border); }
.dlx-card-price { font-size: 18px; font-weight: 800; color: var(--dlx-gold); }
.dlx-card-price .dlx-free { color: var(--dlx-success); font-size: 15px; }
.dlx-card-meta { color: var(--dlx-text-faint); font-size: 12px; }
.dlx-card-action {
    padding: 7px 16px; border-radius: 999px; font-size: 13px; font-weight: 600;
    background: linear-gradient(135deg, var(--dlx-primary), var(--dlx-accent)); color: #fff;
}
.dlx-card-action:hover { color: #fff; box-shadow: 0 6px 16px rgba(79,124,255,.4); }

/* ---------- 详情页 ---------- */
.dlx-single-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.dlx-page-header { margin-bottom: 26px; }
.dlx-page-header h1 { margin: 8px 0 10px; font-size: clamp(22px, 3vw, 34px); font-weight: 800; }
.dlx-breadcrumb { font-size: 13px; color: var(--dlx-text-faint); }
.dlx-breadcrumb a { color: var(--dlx-text-dim); }
.dlx-breadcrumb a:hover { color: var(--dlx-accent); }
.dlx-single-meta { display: flex; gap: 18px; flex-wrap: wrap; color: var(--dlx-text-dim); font-size: 13px; margin-bottom: 6px; }

.dlx-panel {
    background: var(--dlx-surface); border: 1px solid var(--dlx-border);
    border-radius: var(--dlx-radius); padding: 26px; margin-bottom: 24px;
}
.dlx-panel-title { margin: 0 0 16px; font-size: 18px; font-weight: 700; }

/* 图文混排正文排版 */
.dlx-content { font-size: 15.5px; color: var(--dlx-text); line-height: 1.85; overflow-wrap: break-word; }
.dlx-content p { margin: 0 0 1.1em; }
.dlx-content img { border-radius: 12px; margin: 14px 0; }
.dlx-content h2, .dlx-content h3 { margin: 1.4em 0 .6em; font-weight: 800; }
.dlx-content h2 { font-size: 22px; padding-left: 12px; border-left: 4px solid var(--dlx-primary); }
.dlx-content h3 { font-size: 18px; color: var(--dlx-accent); }
.dlx-content blockquote {
    margin: 16px 0; padding: 14px 18px; border-left: 4px solid var(--dlx-accent);
    background: var(--dlx-surface-2); border-radius: 0 10px 10px 0; color: var(--dlx-text-dim);
}
.dlx-content pre {
    background: #0d1322; border: 1px solid var(--dlx-border); border-radius: 10px;
    padding: 16px; overflow: auto; font-size: 13.5px;
}
.dlx-content code { background: rgba(79,124,255,.14); padding: 2px 6px; border-radius: 6px; font-size: 90%; }
.dlx-content table { width: 100%; border-collapse: collapse; margin: 14px 0; }
.dlx-content th, .dlx-content td { border: 1px solid var(--dlx-border); padding: 9px 12px; text-align: left; }
.dlx-content th { background: var(--dlx-surface-2); }
.dlx-content ul, .dlx-content ol { padding-left: 1.4em; }
.dlx-content a { color: var(--dlx-accent); text-decoration: underline; text-underline-offset: 3px; }

/* 详情侧栏 - 购买盒 */
.dlx-buybox { position: sticky; top: calc(var(--dlx-header-h) + 20px); }
.dlx-buybox .dlx-panel { margin-bottom: 20px; }
.dlx-price-line { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.dlx-price-big { font-size: 32px; font-weight: 800; color: var(--dlx-gold); }
.dlx-price-old { color: var(--dlx-text-faint); text-decoration: line-through; font-size: 14px; }
.dlx-buylist { list-style: none; margin: 0 0 18px; padding: 0; color: var(--dlx-text-dim); font-size: 13.5px; }
.dlx-buylist li { display: flex; gap: 8px; align-items: center; padding: 5px 0; }
.dlx-buylist li::before { content: "✓"; color: var(--dlx-success); font-weight: 700; }

/* ---------- 登录 / 注册 / 会员页 ---------- */
.dlx-auth-wrap {
    max-width: 960px; margin: 30px auto; display: grid; grid-template-columns: 1fr 1fr;
    background: var(--dlx-surface); border: 1px solid var(--dlx-border);
    border-radius: 20px; overflow: hidden; box-shadow: var(--dlx-shadow);
}
.dlx-auth-side {
    background:
        radial-gradient(400px 260px at 30% 20%, rgba(34,211,238,.25), transparent 60%),
        linear-gradient(150deg, #22306b, #131c3f);
    padding: 44px 36px; display: flex; flex-direction: column; justify-content: center; gap: 16px;
}
.dlx-auth-side h2 { margin: 0; font-size: 26px; font-weight: 800; color: #fff; }
.dlx-auth-side p { color: var(--dlx-text-dim); margin: 0; }
.dlx-auth-side ul { margin: 8px 0 0; padding: 0; list-style: none; color: var(--dlx-text-dim); font-size: 14px; }
.dlx-auth-side li { padding: 6px 0 6px 26px; position: relative; }
.dlx-auth-side li::before { content: "✦"; position: absolute; left: 2px; color: var(--dlx-accent); }

.dlx-auth-form { padding: 44px 40px; }
.dlx-tabs { display: flex; gap: 8px; margin-bottom: 26px; background: var(--dlx-bg-soft); padding: 5px; border-radius: 999px; }
.dlx-tab {
    flex: 1; text-align: center; padding: 9px 0; border-radius: 999px; font-size: 14px;
    color: var(--dlx-text-dim); font-weight: 600;
}
.dlx-tab.active { background: linear-gradient(135deg, var(--dlx-primary), var(--dlx-accent)); color: #fff; }

.dlx-field { margin-bottom: 18px; }
.dlx-field label { display: block; font-size: 13px; color: var(--dlx-text-dim); margin-bottom: 7px; }
.dlx-input {
    width: 100%; padding: 12px 15px; border-radius: 10px;
    background: var(--dlx-bg-soft); border: 1px solid var(--dlx-border);
    color: var(--dlx-text); font-size: 14px; transition: border-color .18s ease, box-shadow .18s ease;
}
.dlx-input:focus { outline: none; border-color: var(--dlx-primary); box-shadow: 0 0 0 3px rgba(79,124,255,.18); }
textarea.dlx-input { min-height: 120px; resize: vertical; }
.dlx-form-msg { margin: 0 0 14px; padding: 10px 14px; border-radius: 10px; font-size: 13.5px; display: none; }
.dlx-form-msg.error { display: block; background: rgba(248,113,113,.12); color: #fca5a5; border: 1px solid rgba(248,113,113,.35); }
.dlx-form-msg.ok { display: block; background: rgba(52,211,153,.12); color: #6ee7b7; border: 1px solid rgba(52,211,153,.35); }

/* ---------- 用户中心 ---------- */
.dlx-account-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 26px; align-items: start; }
.dlx-account-menu { background: var(--dlx-surface); border: 1px solid var(--dlx-border); border-radius: var(--dlx-radius); padding: 14px; position: sticky; top: calc(var(--dlx-header-h) + 20px); }
.dlx-account-menu .dlx-account-head { display: flex; align-items: center; gap: 12px; padding: 10px 10px 16px; border-bottom: 1px solid var(--dlx-border); margin-bottom: 10px; }
.dlx-account-menu .dlx-avatar { width: 44px; height: 44px; font-size: 18px; }
.dlx-account-menu .dlx-account-name { font-weight: 700; font-size: 15px; }
.dlx-account-menu .dlx-account-sub { font-size: 12px; color: var(--dlx-text-faint); }
.dlx-account-menu a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--dlx-text-dim); font-size: 14px; }
.dlx-account-menu a:hover { background: var(--dlx-surface-2); color: #fff; }
.dlx-account-menu a.active { background: linear-gradient(135deg, rgba(79,124,255,.25), rgba(34,211,238,.18)); color: #fff; font-weight: 600; }

.dlx-stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin-bottom: 24px; }
.dlx-stat-card { background: var(--dlx-surface); border: 1px solid var(--dlx-border); border-radius: var(--dlx-radius); padding: 18px; }
.dlx-stat-card b { display: block; font-size: 24px; color: var(--dlx-accent); }
.dlx-stat-card span { color: var(--dlx-text-faint); font-size: 13px; }

/* ---------- 表格（订单 / 下载记录） ---------- */
.dlx-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.dlx-table th { text-align: left; color: var(--dlx-text-faint); font-weight: 600; font-size: 12.5px; padding: 10px 12px; border-bottom: 1px solid var(--dlx-border); }
.dlx-table td { padding: 13px 12px; border-bottom: 1px solid var(--dlx-border); color: var(--dlx-text); }
.dlx-table tr:last-child td { border-bottom: 0; }
.dlx-table .dlx-empty { text-align: center; color: var(--dlx-text-faint); padding: 40px 0; }

/* ---------- 会员开通 ---------- */
.dlx-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; margin: 26px 0 36px; }
.dlx-plan {
    position: relative; background: var(--dlx-surface); border: 1px solid var(--dlx-border);
    border-radius: 18px; padding: 28px 24px; text-align: center; transition: transform .2s ease, border-color .2s ease;
}
.dlx-plan:hover { transform: translateY(-4px); }
.dlx-plan.selected { border-color: var(--dlx-gold); box-shadow: 0 0 0 1px var(--dlx-gold), 0 12px 30px rgba(245,182,67,.18); }
.dlx-plan.featured { border-color: rgba(245,182,67,.55); background: linear-gradient(180deg, rgba(245,182,67,.08), var(--dlx-surface)); }
.dlx-plan .dlx-plan-tag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); }
.dlx-plan h3 { margin: 4px 0 10px; font-size: 18px; }
.dlx-plan .dlx-plan-price { font-size: 34px; font-weight: 800; color: var(--dlx-gold); }
.dlx-plan .dlx-plan-price small { font-size: 14px; color: var(--dlx-text-faint); font-weight: 400; }
.dlx-plan ul { list-style: none; margin: 18px 0 22px; padding: 0; color: var(--dlx-text-dim); font-size: 13.5px; text-align: left; }
.dlx-plan li { padding: 5px 0 5px 24px; position: relative; }
.dlx-plan li::before { content: "✓"; position: absolute; left: 4px; color: var(--dlx-success); font-weight: 700; }

/* 支付方式选择 */
.dlx-pay-methods { display: flex; gap: 14px; flex-wrap: wrap; margin: 18px 0; }
.dlx-pay-method {
    flex: 1; min-width: 140px; display: flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px; border: 1px solid var(--dlx-border); border-radius: 12px; cursor: pointer;
    background: var(--dlx-bg-soft); font-size: 14px; font-weight: 600; transition: all .18s ease;
}
.dlx-pay-method input { display: none; }
.dlx-pay-method.selected { border-color: var(--dlx-primary); background: rgba(79,124,255,.12); }
.dlx-pay-icon { width: 26px; height: 26px; border-radius: 6px; display: grid; place-items: center; color: #fff; font-size: 13px; font-weight: 800; }
.dlx-pay-icon.alipay { background: #1677ff; }
.dlx-pay-icon.wechat { background: #09bb07; }

/* 支付弹窗 / 二维码 */
.dlx-modal-mask {
    position: fixed; inset: 0; z-index: 200; background: rgba(4, 8, 20, .72);
    display: none; align-items: center; justify-content: center; padding: 20px;
}
.dlx-modal-mask.show { display: flex; }
.dlx-modal {
    width: 100%; max-width: 420px; background: var(--dlx-surface);
    border: 1px solid var(--dlx-border); border-radius: 18px; padding: 30px; text-align: center;
    box-shadow: var(--dlx-shadow); animation: dlx-pop .22s ease;
}
@keyframes dlx-pop { from { transform: scale(.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.dlx-modal h3 { margin: 0 0 6px; font-size: 18px; }
.dlx-modal .dlx-modal-sub { color: var(--dlx-text-dim); font-size: 13px; margin-bottom: 18px; }
.dlx-qr-box { width: 220px; height: 220px; margin: 0 auto 18px; background: #fff; border-radius: 12px; display: grid; place-items: center; padding: 12px; }
.dlx-qr-box img { width: 100%; height: 100%; }
.dlx-modal .dlx-countdown { color: var(--dlx-gold); font-size: 13px; margin-top: 10px; }

/* ---------- 分页 ---------- */
.dlx-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; flex-wrap: wrap; }
.dlx-pagination a, .dlx-pagination span {
    display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 12px;
    border-radius: 10px; background: var(--dlx-surface); border: 1px solid var(--dlx-border);
    color: var(--dlx-text-dim); font-size: 14px; font-weight: 600;
}
.dlx-pagination a:hover { color: #fff; border-color: var(--dlx-primary); }
.dlx-pagination .current { background: linear-gradient(135deg, var(--dlx-primary), var(--dlx-accent)); color: #fff; border-color: transparent; }

/* ---------- Toast ---------- */
.dlx-toast {
    position: fixed; left: 50%; bottom: 36px; transform: translateX(-50%) translateY(20px);
    background: #1f2a44; color: #fff; padding: 12px 22px; border-radius: 999px;
    border: 1px solid var(--dlx-border); box-shadow: var(--dlx-shadow);
    font-size: 14px; opacity: 0; pointer-events: none; z-index: 300;
    transition: opacity .25s ease, transform .25s ease; max-width: 86vw;
}
.dlx-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 404 ---------- */
.dlx-404 { text-align: center; padding: 80px 0; }
.dlx-404 h1 { font-size: 90px; margin: 0; background: linear-gradient(90deg, var(--dlx-primary), var(--dlx-accent)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* ---------- 响应式 ---------- */
@media (max-width: 1240px) {
    .dlx-layout-3col { grid-template-columns: 220px minmax(0, 1fr); }
    .dlx-layout-3col .dlx-side-right { display: none; }
    .dlx-grid.cols-4 { --dlx-cols: 3; }
}
@media (max-width: 1024px) {
    .dlx-single-grid { grid-template-columns: 1fr; }
    .dlx-buybox { position: static; }
    .dlx-account-grid { grid-template-columns: 1fr; }
    .dlx-account-menu { position: static; }
}
@media (max-width: 900px) {
    .dlx-nav { position: fixed; inset: var(--dlx-header-h) 0 auto 0; background: var(--dlx-bg-soft); border-bottom: 1px solid var(--dlx-border); display: none; z-index: 88; }
    .dlx-nav.open { display: block; }
    .dlx-nav-list { flex-direction: column; padding: 12px; gap: 2px; }
    .dlx-nav-list .sub-menu { position: static; display: block; box-shadow: none; border: 0; background: transparent; padding-left: 14px; }
    .dlx-nav-toggle { display: block; }
    .dlx-nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .dlx-nav-toggle.open span:nth-child(2) { opacity: 0; }
    .dlx-nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .dlx-search input[type="search"] { width: 110px; }
    .dlx-auth-wrap { grid-template-columns: 1fr; }
    .dlx-auth-side { padding: 30px 28px; }
    .dlx-auth-form { padding: 30px 26px; }
}
@media (max-width: 640px) {
    .dlx-layout-3col, .dlx-layout-2col-left, .dlx-layout-2col-right { grid-template-columns: 1fr; }
    .dlx-layout-3col .dlx-side, .dlx-layout-2col-left .dlx-side, .dlx-layout-2col-right .dlx-side { display: none; }
    .dlx-grid, .dlx-grid.cols-4, .dlx-grid.cols-3 { --dlx-cols: 2; gap: 14px; }
    .dlx-header-inner { gap: 12px; }
    .dlx-search { display: none; }
    .dlx-footer-grid { grid-template-columns: 1fr 1fr; }
    .dlx-hero-stats { gap: 22px; }
}
@media (max-width: 420px) {
    .dlx-grid, .dlx-grid.cols-4, .dlx-grid.cols-3 { --dlx-cols: 1; }
}

/* ---------- 底部 ---------- */
.dlx-footer { background: #080d1a; border-top: 1px solid var(--dlx-border); padding: 48px 0 0; margin-top: 30px; }
.dlx-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; padding-bottom: 34px; }
.dlx-footer-brand p { color: var(--dlx-text-faint); font-size: 13.5px; max-width: 300px; }
.dlx-footer h4 { margin: 0 0 14px; font-size: 14px; }
.dlx-footer-menu { list-style: none; margin: 0; padding: 0; }
.dlx-footer-menu li { margin-bottom: 8px; }
.dlx-footer-menu a { color: var(--dlx-text-faint); font-size: 13.5px; }
.dlx-footer-menu a:hover { color: var(--dlx-accent); }
.dlx-footer-bottom {
    border-top: 1px solid var(--dlx-border); padding: 18px 0;
    display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    color: var(--dlx-text-faint); font-size: 12.5px;
}
@media (max-width: 900px) { .dlx-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .dlx-footer-grid { grid-template-columns: 1fr; } }

/* ---------- 打印 / 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
}
