* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2c3e50;
    --accent: #3498db;
    --accent-hover: #2980b9;
    --text: #333;
    --text-light: #666;
    --border: #e0e0e0;
    --bg: #f8f9fa;
    --white: #fff;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --radius: 8px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

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

/* ===== Header ===== */
.header {
    background: linear-gradient(135deg, var(--primary), #34495e);
    color: var(--white);
    padding: 24px 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon { font-size: 32px; }
.logo h1 { font-size: 22px; font-weight: 700; letter-spacing: 1px; }
.tagline { font-size: 14px; opacity: 0.8; }

/* ===== Stats ===== */
.stats-bar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
}
.stats-grid { display: flex; gap: 40px; justify-content: center; flex-wrap: wrap; }
.stat-item { text-align: center; }
.stat-num { font-size: 28px; font-weight: 700; color: var(--accent); }
.stat-label { font-size: 13px; color: var(--text-light); margin-top: 2px; }

/* ===== Search ===== */
.search-section { padding: 24px 0 0 0; }
.search-form { display: flex; gap: 8px; max-width: 600px; margin: 0 auto; }
.search-input {
    flex: 1; padding: 12px 16px; border: 2px solid var(--border);
    border-radius: var(--radius); font-size: 15px; outline: none; transition: border-color 0.2s;
}
.search-input:focus { border-color: var(--accent); }
.search-btn {
    padding: 12px 24px; background: var(--accent); color: var(--white);
    border: none; border-radius: var(--radius); font-size: 15px; cursor: pointer;
    white-space: nowrap; transition: background 0.2s;
}
.search-btn:hover { background: var(--accent-hover); }

/* ===== Filters ===== */
.filter-section { padding: 16px 0; background: var(--white); border-bottom: 1px solid var(--border); }
.filter-row { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-bottom: 12px; }
.filter-group { display: flex; align-items: center; gap: 8px; }
.filter-label { font-size: 14px; font-weight: 600; color: var(--text); white-space: nowrap; }

.prov-select {
    padding: 6px 12px; border: 1px solid var(--border); border-radius: var(--radius);
    font-size: 13px; background: var(--white); color: var(--text); cursor: pointer;
    outline: none; min-width: 140px;
}
.prov-select:focus { border-color: var(--accent); }

.time-nav { display: flex; gap: 6px; flex-wrap: wrap; }
.time-btn {
    padding: 5px 14px; border: 1px solid var(--border); border-radius: 16px;
    font-size: 12px; color: var(--text); text-decoration: none;
    background: var(--white); transition: all 0.2s;
}
.time-btn:hover { border-color: var(--accent); color: var(--accent); }
.time-btn.active { background: var(--accent); color: var(--white); border-color: var(--accent); }

.category-nav { display: flex; gap: 8px; flex-wrap: wrap; }
.cat-btn {
    padding: 6px 16px; border: 1px solid var(--border); border-radius: 20px;
    font-size: 13px; color: var(--text); text-decoration: none;
    background: var(--white); transition: all 0.2s;
}
.cat-btn:hover { border-color: var(--accent); color: var(--accent); }
.cat-btn.active { background: var(--accent); color: var(--white); border-color: var(--accent); }

/* ===== Main Content ===== */
.main-content { padding: 24px 0 40px 0; }
.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.list-count { font-size: 14px; color: var(--text-light); }
.list-count strong { color: var(--accent); }
.page-info { font-size: 13px; color: var(--text-light); }

/* ===== Fund Cards ===== */
.fund-list { display: flex; flex-direction: column; gap: 12px; }
.fund-card {
    background: var(--white); border-radius: var(--radius); padding: 20px 24px;
    box-shadow: var(--shadow); border-left: 4px solid var(--accent);
    transition: transform 0.15s, box-shadow 0.15s;
}
.fund-card:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,0,0,0.12); }
.fund-header { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 8px; }
.fund-tag {
    display: inline-block; padding: 2px 10px; border-radius: 4px;
    color: var(--white); font-size: 12px; white-space: nowrap; flex-shrink: 0; margin-top: 4px;
}
.fund-title { font-size: 16px; font-weight: 600; line-height: 1.4; }
.fund-title a { color: var(--text); text-decoration: none; }
.fund-title a:hover { color: var(--accent); }
.fund-summary {
    font-size: 14px; color: var(--text-light); margin-bottom: 10px; line-height: 1.6;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.fund-meta { font-size: 12px; color: #999; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.meta-source { color: var(--accent); font-weight: 500; }
.meta-content-badge {
    display: inline-block; padding: 1px 8px; background: #e8f5e9; color: #2e7d32;
    border-radius: 10px; font-size: 11px;
}
.empty { text-align: center; padding: 60px 20px; color: var(--text-light); font-size: 16px; }

/* ===== Pagination ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 24px 0 8px 0;
}
.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    background: var(--white);
    transition: all 0.2s;
}
.page-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: #f0f7ff;
}
.page-btn.active {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
    font-weight: 600;
}
.page-dots {
    color: var(--text-light);
    padding: 0 4px;
    font-size: 14px;
}

/* ===== Detail Page ===== */
.detail-main { padding: 24px 0 40px 0; }
.back-btn { display: inline-block; margin-bottom: 16px; color: var(--accent); text-decoration: none; font-size: 14px; }
.back-btn:hover { text-decoration: underline; }

.detail-card {
    background: var(--white); border-radius: var(--radius); padding: 32px;
    box-shadow: var(--shadow); max-width: 800px;
}
.detail-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.detail-province { font-size: 14px; color: var(--text-light); }
.detail-title { font-size: 24px; font-weight: 700; line-height: 1.4; margin-bottom: 16px; color: var(--primary); }
.detail-meta {
    display: flex; gap: 24px; flex-wrap: wrap; font-size: 14px; color: var(--text-light);
    padding-bottom: 20px; border-bottom: 1px solid var(--border); margin-bottom: 24px;
}
.detail-body h3 { font-size: 16px; margin-bottom: 12px; color: var(--primary); }
.detail-content-text {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text);
}
.detail-content-text p {
    margin-bottom: 12px;
    text-indent: 0;
}
.detail-actions { margin-top: 24px; }
.detail-link-btn {
    display: inline-block; padding: 10px 24px; background: var(--accent); color: var(--white);
    border-radius: var(--radius); text-decoration: none; font-size: 14px; transition: background 0.2s;
}
.detail-link-btn:hover { background: var(--accent-hover); }

/* ===== Footer ===== */
.footer {
    background: var(--primary); color: var(--white); padding: 24px 0;
    text-align: center; font-size: 13px;
}
.footer p { opacity: 0.8; }
.footer-note { margin-top: 8px; font-size: 12px; opacity: 0.5; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .header-inner { flex-direction: column; text-align: center; }
    .stats-grid { gap: 24px; }
    .stat-num { font-size: 22px; }
    .search-form { flex-direction: column; }
    .fund-card { padding: 16px; }
    .fund-header { flex-direction: column; gap: 6px; }
    .filter-row { flex-direction: column; align-items: flex-start; gap: 12px; }
    .detail-card { padding: 20px; }
    .detail-title { font-size: 20px; }
    .pagination { flex-wrap: wrap; }
}
