/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #eef2f9;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    padding: 20px 16px 30px;
    color: #1a2a3a;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ===== 头部独立容器 ===== */
.header-hero-outside {
    width: 100%;
    max-width: 1280px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 20, 40, 0.06);
    padding: 18px 28px;
    margin-bottom: 24px;
    display: flex;
    flex-wrap: nowrap; /* ← 修改：改为 nowrap，防止换行 */
    align-items: center;
    justify-content: space-between;
    border: 1px solid rgba(0, 80, 160, 0.06);
    transition: all 0.2s;
}

.header-hero-left {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px 14px;
    flex-shrink: 0; /* ← 新增：防止被压缩 */
}

.header-hero-title {
    font-size: 26px;
    font-weight: 700;
    color: #0a2a44;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #0b3b5e, #1a5a8a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap; /* ← 新增：防止标题文字折行 */
}

.header-hero-domain {
    font-size: 16px;
    color: #2f5577;
    font-weight: 400;
    background: rgba(230, 242, 250, 0.6);
    padding: 2px 14px 2px 12px;
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(2px);
}

.header-hero-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0; /* ← 新增：防止被压缩 */
}

.header-hero-home {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: #1e4a6e;
    background: #f0f6fe;
    padding: 4px 16px 4px 12px;
    border-radius: 40px;
    border: 1px solid rgba(0, 60, 120, 0.08);
    text-decoration: none;
    font-weight: 500;
    transition: 0.15s;
    white-space: nowrap; /* ← 新增：防止按钮文字折行 */
}

.header-hero-home:hover {
    background: #dce8f5;
    border-color: #b0c8dd;
}

.header-hero-home::before {
    content: "🏠";
    font-size: 16px;
    margin-right: 4px;
}

/* ===== 主容器 (原来的news-container) 完全不动 ===== */
.news-container {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0, 40, 80, 0.08);
    overflow: hidden;
    padding: 20px 16px 24px;
    transition: all 0.2s;
}

/* ===== 以下全部为原有样式，未做任何改动 ===== */
.top-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    padding: 0 6px 14px 6px;
    border-bottom: 1px solid #e6edf4;
    margin-bottom: 18px;
}

.top-bar a {
    color: #0066b3;
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb {
    color: #2c3e50;
}

.breadcrumb a {
    color: #0066b3;
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.channel-tabs {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.channel-tabs a {
    color: #1e3a5f;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    padding: 2px 6px;
    border-radius: 20px;
    transition: background 0.2s;
}

.channel-tabs a:hover {
    background: #e9f0f9;
}

.region-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 10px;
    background: #f0f6fe;
    border-radius: 40px;
    padding: 12px 16px;
    margin: 8px 0 18px 0;
    border: 1px solid #dce6f2;
}

.region-nav .label {
    font-weight: 600;
    color: #0a2942;
    margin-right: 6px;
    font-size: 14px;
}

.region-nav a {
    color: #004080;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 30px;
    transition: 0.15s;
}

.region-nav a:hover {
    background: #cbddee;
    color: #001f3f;
}

.region-nav .blue-highlight {
    color: #0047b3;
    font-weight: 600;
}

.card-section {
    background: #fafdff;
    border-radius: 24px;
    border: 1px solid #e3ecf5;
    margin-top: 24px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,20,40,0.02);
}

.card-header {
    background: #f8fafd;
    padding: 12px 18px;
    color: white;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #d0dcec;
    color: #0a2a44;
}

.card-header.green {
    background: #117a3b;
}

.card-header .icon {
    margin-right: 10px;
    font-size: 18px;
}

.card-body {
    padding: 14px 12px 18px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 6px 10px;
    background: #ffffff;
}

.card-body a {
    color: #004080;
    text-decoration: none;
    font-size: 14px;
    padding: 5px 6px;
    border-radius: 8px;
    transition: all 0.1s;
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: #f2f8ff;
    text-align: center;
    border: 1px solid transparent;
}

.card-body a:hover {
    background: #dbeafe;
    border-color: #b3cfe0;
    color: #002b54;
    transform: translateY(-1px);
}

.card-body .region-tag {
    font-weight: 700;
    color: #0a3c5e;
    background: transparent !important;
    border: none !important;
    text-align: left;
    padding-left: 4px;
    font-size: 14px;
    letter-spacing: 0.3px;
    white-space: nowrap;
    cursor: default;
}

.card-body .region-tag:hover {
    background: transparent !important;
    transform: none;
    border-color: transparent;
}

.inline-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin: 0 0 6px 0;
    padding: 6px 0;
}

.inline-tabs a {
    color: #004080;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    padding-bottom: 4px;
}

.inline-tabs a:hover {
    border-bottom-color: #0066b3;
}

.grid-4col {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

.region-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 6px 12px;
    padding: 6px 4px;
}

.region-grid a {
    background: #f5f9ff;
    padding: 6px 10px;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
    color: #003366;
    text-decoration: none;
    border: 1px solid #e7eef8;
    transition: 0.1s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.region-grid a:hover {
    background: #dce8f5;
    border-color: #a8c0da;
}

.region-grid .province-label {
    background: transparent !important;
    border: none !important;
    font-weight: 700;
    color: #0a3a5c;
    text-align: left;
    padding-left: 4px;
    cursor: default;
    white-space: nowrap;
}

.region-grid .province-label:hover {
    background: transparent !important;
    border: none !important;
}

.spacer {
    height: 8px;
}

@media (max-width: 640px) {
    .news-container {
        padding: 12px 8px;
        border-radius: 20px;
    }

    .top-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .region-nav {
        padding: 10px 8px;
        gap: 4px 6px;
        border-radius: 30px;
    }

    .region-nav a {
        font-size: 13px;
        padding: 2px 6px;
    }

    .card-body {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 4px 6px;
        padding: 12px 6px;
    }

    .card-body a {
        font-size: 13px;
        padding: 4px 4px;
        white-space: nowrap;
    }

    .grid-4col {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    }

    .region-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }

    .region-grid a {
        font-size: 13px;
        padding: 4px 6px;
    }

    .channel-tabs {
        gap: 6px 12px;
    }

    .channel-tabs a {
        font-size: 13px;
    }

    /* 头部适配 - 修改为保持一行 */
    .header-hero-outside {
        flex-direction: row; /* ← 修改：改为 row，保持一行 */
        align-items: center; /* ← 修改：居中对齐 */
        flex-wrap: nowrap; /* ← 新增：确保不换行 */
        gap: 10px; /* ← 新增：控制间距 */
        padding: 14px 16px;
        border-radius: 32px;
    }

    .header-hero-title {
        font-size: 20px; /* ← 修改：调小字体适应屏幕 */
    }

    .header-hero-right {
        width: auto; /* ← 修改：auto 而不是 100% */
        justify-content: flex-end; /* ← 修改：右对齐 */
        flex-shrink: 0; /* ← 新增：防止被压缩 */
    }

    .header-hero-home {
        font-size: 12px; /* ← 新增：调小按钮文字 */
        padding: 3px 12px 3px 8px; /* ← 新增：减小内边距 */
    }

    .header-hero-home::before {
        font-size: 14px; /* ← 新增：调小图标 */
    }
}

/* ===== Logo 组合（眼睛 + 文字） ===== */
.logo-combo {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 小眼睛 — 尺寸与文字高度匹配 (约26px) */
.eye-inline {
    width: 26px;
    height: 26px;
    position: relative;
    flex-shrink: 0;
}
.eye-inline .eye-circle {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,#ffbc66,#ff7700);
    border: 2px solid #0a2a44;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
}
.eye-inline .pupil {
    width: 7px;
    height: 7px;
    background: #0a2a44;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    will-change: transform;
    transition: transform 0.05s ease-out;
}
/* 睫毛 — 适配小尺寸 */
.eye-inline::before {
    content: "";
    position: absolute;
    top: 4px;
    width: 8px;
    height: 2px;
    background: #000;
    border-radius: 2px;
}
.eye-inline.left-eye::before {
    left: -3px;
    transform: rotate(-25deg);
}
.eye-inline.right-eye::before {
    right: -3px;
    transform: rotate(25deg);
}


/* ===== 响应式 ===== */
@media (max-width: 640px) {
    /* 注意：这里与上面的 @media (max-width: 640px) 合并了 */
    /* 下面的样式会覆盖上面的，所以保持一致性 */
    .header-hero-outside {
        padding: 14px 16px;
        border-radius: 28px;
        flex-direction: row; /* ← 修改：改为 row */
        align-items: center; /* ← 修改：居中对齐 */
        gap: 8px; /* ← 修改：减小间距 */
    }
    .header-hero-title {
        font-size: 18px; /* ← 修改：进一步调小 */
    }
    .eye-inline {
        width: 20px; /* ← 修改：调小眼睛 */
        height: 20px;
    }
    .eye-inline .pupil {
        width: 5px;
        height: 5px;
    }
    .header-hero-title .dot {
        font-size: 16px;
    }
    .eye-inline::before {
        top: 3px;
        width: 6px;
        height: 2px;
    }
    .eye-inline.left-eye::before {
        left: -2px;
    }
    .eye-inline.right-eye::before {
        right: -2px;
    }
    .header-hero-domain {
        font-size: 14px;
        padding: 2px 10px 2px 8px;
    }
}

@media (max-width: 420px) {
    .header-hero-title {
        font-size: 16px; /* ← 修改：更小屏幕继续调小 */
    }
    .eye-inline {
        width: 16px;
        height: 16px;
    }
    .eye-inline .pupil {
        width: 4px;
        height: 4px;
    }
    .header-hero-title .dot {
        font-size: 14px;
    }
    .header-hero-home {
        font-size: 11px;
        padding: 2px 10px 2px 6px;
    }
    .header-hero-home::before {
        font-size: 12px;
    }
}

.text-muted { color: #3b5a78; }
.mt-1 { margin-top: 6px; }
.mb-1 { margin-bottom: 6px; }
.fw-600 { font-weight: 600; }
.bg-soft-blue { background: #f0f6fd; }
.rounded-full { border-radius: 40px; }
.inline-block { display: inline-block; }
.link-plain {
    color: #004b8f;
    text-decoration: none;
}
.link-plain:hover {
    text-decoration: underline;
}
a { word-break: keep-all; }
.l, .n {  }