:root {
    --bg: #0d0d12;
    --bg2: #13131a;
    --card-bg: rgba(20, 18, 32, 0.85);
    --card-border: rgba(212, 163, 58, 0.18);
    --gold: #d4a33a;
    --gold-light: #e8c86a;
    --gold-glow: rgba(212, 163, 58, 0.25);
    --purple: #7c3aed;
    --text: #e2e8f0;
    --text-dim: #94a3b8;
    --text-dark: #64748b;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Segoe UI', 'Microsoft YaHei', system-ui, sans-serif;
    background: var(--bg);
    min-height: 100vh;
    color: var(--text);
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #1a1a2e; }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 4px; }

.container { max-width: 1400px; margin: 0 auto; padding: 30px 24px; }

.breadcrumb { margin-bottom: 20px; font-size: 13px; color: var(--text-dark); }
.breadcrumb a { color: var(--gold); text-decoration: none; }
.breadcrumb .separator { margin: 0 8px; color: var(--text-dark); }
.breadcrumb .current { color: var(--text-dim); font-weight: 500; }

.page-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}
.page-header-row h1 {
    font-size: 28px; font-weight: 700;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.page-subtitle {
    font-size: 13px;
    color: var(--text-dark);
    letter-spacing: 2px;
}
.btn-primary {
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--gold), #f59e0b);
    color: #1a1a2e;
    border: none;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-block;
}
.btn-primary:hover { box-shadow: 0 4px 12px var(--gold-glow); transform: translateY(-1px); }

/* ===== 表格容器 ===== */
.ads-table-wrap {
    background: var(--card-bg);
    backdrop-filter: blur(8px);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 20px;
}

.ads-table { width: 100%; border-collapse: collapse; }
.ads-table thead { background: rgba(0,0,0,0.25); }
.ads-table thead th {
    padding: 14px 16px;
    font-size: 13px; font-weight: 600; color: var(--gold);
    text-align: left;
    border-bottom: 1px solid rgba(212,163,58,0.12);
    white-space: nowrap;
}

/* ===== 行 ===== */
.ad-row { cursor: pointer; transition: filter 0.15s; }
.ad-row td {
    padding: 13px 16px;
    font-size: 14px;
    color: var(--text-dim);
    border-bottom: 1px solid rgba(255,255,255,0.03);
    vertical-align: middle;
}
.ad-row:hover { filter: brightness(1.15); }

/* ===== 分区背景色（暗色系，差异明显） ===== */
/* 置顶 — 暗金暖调 */
.ad-row.section-premium { background: rgba(245, 158, 11, 0.09); }
.ad-row.section-premium td { border-bottom-color: rgba(245, 158, 11, 0.1); }
.ad-row.section-premium:hover { background: rgba(245, 158, 11, 0.14); }
.ad-row.section-premium .col-title { color: #fcd34d; }

/* 30天 — 深蓝紫 */
.ad-row.section-day30 { background: rgba(79, 70, 229, 0.08); }
.ad-row.section-day30 td { border-bottom-color: rgba(79, 70, 229, 0.09); }
.ad-row.section-day30:hover { background: rgba(79, 70, 229, 0.13); }
.ad-row.section-day30 .col-title { color: #a5b4fc; }

/* 15天 — 紫红，和30天拉开 */
.ad-row.section-day15 { background: rgba(192, 38, 211, 0.07); }
.ad-row.section-day15 td { border-bottom-color: rgba(192, 38, 211, 0.08); }
.ad-row.section-day15:hover { background: rgba(192, 38, 211, 0.12); }
.ad-row.section-day15 .col-title { color: #e879f9; }

/* 7天 — 深青 */
.ad-row.section-day7 { background: rgba(5, 150, 105, 0.07); }
.ad-row.section-day7 td { border-bottom-color: rgba(5, 150, 105, 0.08); }
.ad-row.section-day7:hover { background: rgba(5, 150, 105, 0.12); }
.ad-row.section-day7 .col-title { color: #6ee7b7; }

/* ===== 列 ===== */
.col-sn { color: var(--text-dark); font-size: 13px; text-align: center; font-feature-settings: "tnum"; }
.col-title { color: var(--text); font-weight: 500; }
.col-summary {
    font-size: 13px;
    color: var(--text-dark);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 0;
}
.col-meta {
    white-space: nowrap;
    font-size: 12px;
    color: var(--text-dark);
}
.meta-version {
    display: inline-flex; align-items: center; gap: 2px;
    padding: 2px 8px;
    border-radius: 10px;
    background: rgba(212,163,58,0.08);
    color: var(--gold);
    font-size: 11px;
    margin-right: 8px;
    white-space: nowrap;
}
.meta-views {
    display: inline-flex; align-items: center; gap: 2px;
    color: var(--text-dark);
    font-size: 11px;
    white-space: nowrap;
}

.ad-tips {
    padding: 16px 20px;
    background: rgba(124,58,237,0.06);
    border: 1px solid rgba(124,58,237,0.12);
    border-radius: 12px;
    font-size: 13px; color: var(--text-dim);
    line-height: 1.6;
}
.ad-tips strong { color: var(--purple); }

.loading, .no-data { text-align: center; padding: 40px; color: var(--text-dark); }

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .container { padding: 16px; }
    .page-header-row h1 { font-size: 24px; }
    .ads-table-wrap { border-radius: 12px; overflow-x: hidden; }
    .ads-table thead th { padding: 10px 12px; font-size: 12px; }
    .ad-row td { padding: 10px 12px; font-size: 13px; }
    .col-summary { max-width: 100px; }
}

@media (max-width: 600px) {
    .ads-table thead th:nth-child(3),
    .ads-table thead th:nth-child(4) { display: none; }
    .ads-table colgroup { display: none; }
    .ad-row td { padding: 10px 6px 10px 10px; font-size: 14px; }
    .col-sn { width: 22px; min-width: 22px; padding-right: 0 !important; white-space: nowrap; }
    .col-title { width: auto !important; max-width: none; white-space: normal; word-break: break-word; }
    .col-summary { display: none; }
    .col-meta { display: none; }
}
