/* ===== 基础重置 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", Arial, sans-serif;
}

:root {
    --blue: #3388ff;
    --purple: #9933ff;
    --bg-dark: #0b0b1f;
    --bg-card: #12102b;
    --border-glow: 0 0 8px rgba(51,136,255,0.4), 0 0 12px rgba(153,51,255,0.3);
    --yes-color: #22c55e;
    --no-color: #ef4444;
    --na-color: #8888aa;
}

body {
    background: var(--bg-dark);
    color: #e2f0fa;
    padding: 20px;
    line-height: 1.6;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
}

/* ===== 页面标题 ===== */
.page-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 24px;
    background: linear-gradient(90deg, var(--blue), var(--purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 15px rgba(51,136,255,0.3);
    letter-spacing: 1px;
}

/* ===== 统计栏 ===== */
.stats-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #8899bb;
}
.stats-bar span {
    background: var(--bg-card);
    padding: 6px 18px;
    border-radius: 20px;
    border: 1px solid rgba(51,136,255,0.15);
}
.stats-bar .num {
    color: var(--blue);
    font-weight: bold;
}

/* ===== 搜索栏 ===== */
.search-box {
    background: var(--bg-card);
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: var(--border-glow);
}
.search-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}
.search-input {
    flex: 1;
    min-width: 200px;
    padding: 10px 14px;
    border: 1px solid rgba(51,136,255,0.3);
    border-radius: 8px;
    background: #101028;
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.search-input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 8px rgba(51,136,255,0.4);
}
.filter-select {
    padding: 10px 12px;
    border-radius: 8px;
    background: #101028;
    color: #fff;
    border: 1px solid rgba(51,136,255,0.3);
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s;
}
.filter-select:focus {
    border-color: var(--blue);
}

/* ===== 表格 ===== */
.table-wrap {
    overflow-x: auto;
    background: var(--bg-card);
    border-radius: 12px;
    padding: 12px;
    box-shadow: var(--border-glow);
}
table {
    width: 100%;
    border-collapse: collapse;
    white-space: nowrap;
    font-size: 0.9rem;
}
th, td {
    padding: 10px 10px;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
th {
    background: rgba(51,136,255,0.1);
    color: var(--blue);
    font-weight: bold;
    position: sticky;
    top: 0;
    z-index: 2;
}
tr:hover {
    background: rgba(51,136,255,0.05);
}
.file-link {
    color: var(--blue);
    text-decoration: none;
}
.file-link:hover {
    text-decoration: underline;
}

/* ===== 合效性标签 ===== */
.tag-yes {
    color: var(--yes-color);
    font-weight: bold;
}
.tag-no {
    color: var(--no-color);
    font-weight: bold;
}
.tag-na {
    color: var(--na-color);
    font-weight: bold;
}

/* ===== 操作按钮 ===== */
.preview-btn {
    display: inline-block;
    padding: 3px 12px;
    background: rgba(51,136,255,0.15);
    color: var(--blue);
    border: 1px solid rgba(51,136,255,0.3);
    border-radius: 40px;
    font-size: 0.75rem;
    text-decoration: none;
    transition: 0.2s;
    white-space: nowrap;
}
.preview-btn:hover {
    background: rgba(51,136,255,0.25);
    box-shadow: 0 0 15px rgba(51,136,255,0.2);
    border-color: var(--blue);
}
.no-link {
    color: #444;
    font-size: 0.7rem;
}

/* ===== 底部行 ===== */
.footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}
.back-btn {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(90deg, var(--blue), var(--purple));
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.2s;
    border: none;
    cursor: pointer;
}
.back-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}
.row-count {
    text-align: right;
    font-size: 0.8rem;
    color: #556688;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .page-title { font-size: 1.4rem; }
    .search-row { flex-direction: column; align-items: stretch; }
    th, td { padding: 8px 6px; font-size: 0.8rem; }
    .stats-bar { font-size: 0.75rem; gap: 10px; }
    .preview-btn { font-size: 0.65rem; padding: 2px 8px; }
}
@media (max-width: 480px) {
    body { padding: 10px; }
    .table-wrap { padding: 6px; }
    th, td { padding: 6px 4px; font-size: 0.7rem; }
}