/*
排行榜页面样式表 2026-03-20
*/
:root {
    --brand-green: #27ae60;
    --brand-green-light: #e8f5e9;
    --brand-orange: #ff9800;
    --text-dark: #2c3e50;
    --text-muted: #95a5a6;
    --border-soft: #e9ecef;
    --transition: all 0.25s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
a { text-decoration: none; transition: var(--transition); color: inherit; }

.container { max-width: 1200px; margin: 20px auto; padding: 0 15px; }

/* --- 页头与导航 --- */
.header-title { background: #fff; padding: 15px 0; border-bottom: 1px solid var(--border-soft); }
.page-title { font-size: 18px; font-weight: 800; color: var(--brand-green); }

.nav-scroller { border-bottom: 1px solid var(--border-soft); overflow-x: auto; white-space: nowrap; }
.nav-scroller .container { max-width: 1200px; margin: 0px auto; padding: 0 15px; }
.nav-scroller::-webkit-scrollbar { display: none; }
.category-nav { display: flex; padding: 10px 0; }
.cat-item { padding: 8px 20px; font-size: 14px; font-weight: 600; color: var(--text-muted); cursor: pointer; position: relative; }
.cat-item.active { color: var(--brand-green); }
.cat-item.active::after { content: ""; position: absolute; bottom: -10px; left: 20%; width: 60%; height: 3px; background: var(--brand-green); border-radius: 2px; }

/* --- 布局结构 --- */
.main-layout { display: flex; gap: 20px; flex-wrap: wrap; }
.sidebar { width: 200px; flex-shrink: 0; }
.content-area { flex: 1; min-width: 0; }

.filter-section { background: #fff; border-radius: 12px; padding: 15px; margin-bottom: 15px; border: 1px solid var(--border-soft); }
.filter-title { font-size: 11px; font-weight: bold; color: var(--text-muted); margin-bottom: 10px; text-transform: uppercase; }
.side-nav { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.side-nav a { display: block; padding: 8px 12px; font-size: 13px; border-radius: 8px; }
.side-nav a:hover { background: var(--brand-green-light); }
.side-nav a.active { background: var(--brand-green); color: #fff; font-weight: bold; }

/* --- 说明文字 --- */
.intro-box { background: #fdfdfd; border-left: 4px solid var(--brand-green); padding: 15px; border-radius: 4px; font-size: 13px; color: var(--text-muted); margin-bottom: 20px; line-height: 1.6; border-top: 1px solid var(--border-soft); border-right: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }

.filter-pills { background: #fff; border-radius: 12px; padding: 12px 20px; margin-bottom: 20px; border: 1px solid var(--border-soft); display: flex; flex-direction: column; gap: 12px; }
.pill-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.pill-group-wrap { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 300px; }
.pill-label { font-size: 12px; color: var(--text-muted); font-weight: bold; min-width: 70px; }
.pill-group { display: flex; gap: 6px; }
.pill { padding: 3px 12px; font-size: 12px; border-radius: 20px; background: #f8f9fa; cursor: pointer; border: 1px solid transparent; }
.pill.active { background: var(--brand-green-light); color: var(--brand-green); font-weight: bold; }
.pill-v-sep { color: #eee; margin: 0 10px; font-weight: 100; }

/* --- 数据表格 --- */
.data-card { background: #fff; padding:20px 10px; border-radius: 16px; border: 1px solid var(--border-soft); overflow-x: auto; box-shadow: 0 4px 20px rgba(0,0,0,0.02); }
.footer_notice{ padding:10px 0; font-size: 12px; color: var(--text-muted);}

/* --- 响应式处理 --- */
@media (max-width: 850px) {
    .sidebar { width: 100%; display: grid; gap: 10px; }
    .side-nav { flex-direction: row; flex-wrap: wrap; }
    .pill-row { flex-direction: column; align-items: flex-start; gap: 8px; }
    .pill-v-sep { display: none; }
    .pill-group-wrap { border-bottom: 1px dashed #f0f0f0; padding-bottom: 8px; width: 100%; }
    .pill-group-wrap:last-child { border-bottom: none; }
}

/* --- 响应式容器布局 --- */
.filter-sidebar {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

/* PC端：宽度固定 300px */
@media (min-width: 769px) {
    .filter-sidebar {
        width: 300px;
    }
}

/* 手机端：宽度 100% 响应式 */
@media (max-width: 768px) {
    .filter-sidebar {
        width: 100%;
        max-width: none;
        border-radius: 8px;
        padding: 15px;
    }
}

/* --- 表单内部组件样式 --- */
.filter-header {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.filter-header::before {
    content: ""; width: 3px; height: 14px; background: var(--brand-green); border-radius: 2px;
}

.form-row {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    gap: 10px;
}

.form-label {
    width: 65px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    text-align: right;
    flex-shrink: 0;
}

.form-content { flex: 1; position: relative; min-width: 0; }

/* 基础输入框 */
.input-base {
    width: 100%;
    height: 36px;
    padding: 6px 10px;
    font-size: 13px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: #f8fafc;
    outline: none;
    transition: var(--transition);
}
.input-base:focus {
    border-color: var(--brand-green);
    background: #fff;
    box-shadow: 0 0 0 3px var(--brand-green-light);
}

/* 内嵌单位标签 */
.input-with-unit { padding-right: 28px; }
.unit-tag {
    position: absolute; right: 8px; top: 50%;
    transform: translateY(-50%);
    font-size: 11px; font-weight: bold; color: var(--text-muted);
    pointer-events: none;
}

/* 范围输入组布局 */
.range-group { display: flex; align-items: center; gap: 4px; }
.range-sep { color: var(--text-muted); font-size: 12px; }

/* 分段开关 (Segmented Control) */
.segmented-control {
    display: flex;
    background: #f1f5f9;
    padding: 2px;
    border-radius: 6px;
    width: 100%;
}
.segment-item { flex: 1; text-align: center; }
.segment-item input { display: none; }
.segment-item label {
    display: block;
    padding: 5px 0;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 4px;
    transition: var(--transition);
}
.segment-item input:checked + label {
    background: #fff;
    color: var(--brand-green);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* 提交按钮 */
.btn-submit {
    width: 100%;
    margin-top: 15px;
    height: 42px;
    background: var(--brand-green);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(39, 174, 96, 0.15);
}
.btn-submit:hover {
    background: var(--brand-green-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(39, 174, 96, 0.2);
}