:root {
    --color-primary-dark: #3e2723;
    --color-primary-hover: #4e342e;
    --color-accent: #fdd835;
    --color-accent-hover: #fbc02d;
    --color-bg-light: #f9f9f9;
    --color-text-main: #333333;
    --color-text-light: #6b6b6b;
    --color-up-red: #f44336;
    --color-down-green: #4caf50;
    --container-width: 1100px;
    --card-margin-bottom: 15px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--color-bg-light);
    color: var(--color-text-main);
    font-family: "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.6;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
}

.top-bar {
    background-color: var(--color-primary-dark);
    color: #ffffff;
}

.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 50px;
}

.site-logo {
    font-size: 20px;
    font-weight: bold;
    color: #ffffff;
}

.nav-menu {
    list-style: none;
    display: flex;
    height: 100%;
}

.nav-menu li a {
    display: flex;
    align-items: center;
    color: #ffffff;
    padding: 0 15px;
    height: 100%;
    font-size: 15px;
    text-decoration: none;
    transition: background-color 0.2s;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    background-color: var(--color-accent);
    color: #000000;
}

.breadcrumb {
    background: #fff;
    padding: 10px 0;
    font-size: 14px;
    color: var(--color-text-light);
    border-bottom: 1px solid #eee;
}

.breadcrumb a { color: var(--color-text-main); text-decoration: none; }
.breadcrumb a:hover { color: var(--color-accent-hover); }

.card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin-bottom: var(--card-margin-bottom);
    overflow: hidden;
}

.card-header {
    background-color: var(--color-accent);
    color: #000000;
    font-size: 16px;
    font-weight: bold;
    padding: 10px 15px;
    border-bottom: 1px solid #e0e0e0;
}

.card-body { padding: 15px; }

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.data-table thead tr {
    background-color: #f1f1f1;
    color: #666666;
    font-weight: bold;
}

.data-table th, .data-table td {
    padding: 10px 15px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.data-table tbody tr:nth-child(even) { background-color: #f9f9f9; }
.data-table tbody tr:nth-child(odd) { background-color: #ffffff; }

.color-up { color: var(--color-up-red); font-weight: bold; }
.color-down { color: var(--color-down-green); font-weight: bold; }
.color-flat { color: var(--color-text-light); }

.site-footer {
    background-color: var(--color-bg-light);
    color: #8a7f72;
    text-align: center;
    padding: 18px 0 26px;
    font-size: 13px;
    margin-top: 30px;
    border-top: 1px solid #eee;
}

.footer-note {
    margin: 0 auto 10px;
    max-width: 900px;
    line-height: 1.9;
}

.footer-icp { margin: 0; }

a { text-decoration: none; color: var(--color-text-main); }
a:hover { color: var(--color-accent-hover); }

/* ---------- 落地页正文排版 ---------- */
.prose p {
    margin-bottom: 12px;
    font-size: 15px;
    line-height: 1.9;
    color: var(--color-text-main);
    text-align: justify;
}

.prose h3 {
    font-size: 16px;
    margin: 18px 0 8px;
    color: var(--color-primary-dark);
}

.prose h3:first-child { margin-top: 0; }

/* ---------- 内链矩阵 ---------- */
.link-grid {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
}

.link-grid li a {
    font-size: 14px;
    color: #4e342e;
    line-height: 1.9;
}

.link-grid li a:hover {
    color: var(--color-accent-hover);
    text-decoration: underline;
}

/* 区域专题行内的成员城市小链接：灰色虚下划线可点，悬停变主色 */
.link-grid li .city-link {
    font-size: 13px;
    color: #6b6b6b;
    line-height: 1.9;
    text-decoration: none;
    border-bottom: 1px dotted #bbb;
}
.link-grid li .city-link:hover {
    color: var(--color-primary-hover);
    border-bottom-color: var(--color-primary-hover);
    text-decoration: none;
}

/* ---------- 资讯详情页：上一篇 / 下一篇 ---------- */
.post-nav {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: var(--card-margin-bottom);
    font-size: 14px;
}
.post-nav-item {
    flex: 1;
    min-width: 0;
    display: block;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 10px 14px;
    transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.post-nav-item.right { text-align: right; }
.post-nav-label {
    display: block;
    color: var(--color-text-light);
    font-size: 12px;
    margin-bottom: 3px;
}
.post-nav-title {
    display: block;
    color: var(--color-primary-dark);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
a.post-nav-item:hover {
    border-color: #c9971c;
    background-color: #fffaf0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .08);
    text-decoration: none;
}
a.post-nav-item:hover .post-nav-title { color: var(--color-accent-hover); }
.post-nav-item.disabled {
    background-color: #fafafa;
    border-style: dashed;
    cursor: default;
}
.post-nav-item.disabled .post-nav-title { color: #bbb; }
@media (max-width: 720px) {
    .post-nav { flex-direction: column; gap: 10px; }
    .post-nav-item.right { text-align: left; }
}

/* ---------- 响应式：小屏适配（此前仅有 viewport 声明、无规则） ---------- */
@media (max-width: 720px) {
    .nav-bar {
        flex-direction: column;
        align-items: center;
        height: auto;
        padding: 8px 0;
        gap: 6px;
    }
    .site-logo {
        width: 100%;
        text-align: center;
    }
    .nav-menu {
        width: 100%;
        height: auto;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        row-gap: 2px;
    }
    .nav-menu li a {
        padding: 6px 4px;
        font-size: 13px;
        height: auto;
        white-space: nowrap;
        justify-content: center;
        border-radius: 3px;
    }
    .card-header { font-size: 15px; }
    /* 宽表格横向滚动，避免多列被压瘪 */
    .card-body { overflow-x: auto; }
    .data-table { font-size: 13px; }
    .data-table th, .data-table td { padding: 7px 8px; }
    .prose p { font-size: 14px; }
    .link-grid { gap: 6px 12px; }
}

@media (max-width: 480px) {
    .data-table th, .data-table td { padding: 6px 6px; white-space: nowrap; }
    .breadcrumb { font-size: 13px; }
}

/* ---------- 资讯栏目：入口按钮 / 分类筛选标签 ---------- */
.btn-gold {
    display: block;
    background: linear-gradient(135deg, #fdd835, #c9971c);
    color: #3e2723;
    font-weight: bold;
    font-size: 15px;
    text-align: center;
    padding: 14px 16px;
    border-radius: 6px;
    transition: filter .2s;
}
.btn-gold:hover { filter: brightness(1.06); color: #3e2723; }

.tag-chip {
    display: inline-block;
    border: 1px solid #d9c89a;
    background: #fffaf0;
    color: #6b5d4b;
    font-size: 13px;
    padding: 3px 12px;
    border-radius: 14px;
    margin: 3px 6px 3px 0;
}
.tag-chip:hover { border-color: #c9971c; color: #3e2723; }
.tag-chip.on { background: #c9971c; border-color: #c9971c; color: #fff; font-weight: bold; }