/* ===== 兴豪新闻 v2.0 - 商业级新闻门户 ===== */
:root {
    --bg: #f5f6f8;
    --surface: #ffffff;
    --primary: #d40000;
    --primary-hover: #b00000;
    --primary-light: #fff1f0;
    --primary-glow: rgba(212,0,0,0.08);
    --blue: #1677ff;
    --blue-light: #e6f4ff;
    --orange: #fa8c16;
    --orange-light: #fff7e6;
    --text: #1a1a2e;
    --text-2: #4e5969;
    --text-3: #5c6470; /* 2026-10-14 可访问性修复：#86909c 对比度仅 3.3:1 */
    --text-4: #6b7280; /* 2026-10-14 可访问性修复：#c9cdd4 对比度仅 1.9:1，现 4.8:1 (AA) */
    --border: #e8e9ec;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
    --shadow: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 6px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.10);
    --shadow-hover: 0 8px 24px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", sans-serif;
    --font-display: "PingFang SC", "Microsoft YaHei", sans-serif;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --header-height: 100px;
}

/* ===== Dark Mode ===== */
[data-theme="dark"] {
    --bg: #0f0f14;
    --surface: #1a1a24;
    --primary: #ff4d4f;
    --primary-hover: #ff7875;
    --primary-light: rgba(255,77,79,0.1);
    --primary-glow: rgba(255,77,79,0.12);
    --blue: #4096ff;
    --blue-light: rgba(64,150,255,0.1);
    --orange: #ffa940;
    --orange-light: rgba(255,169,64,0.1);
    --text: #e8e8ed;
    --text-2: #a0a0ab;
    --text-3: #9aa0b0; /* 2026-10-14 可访问性修复：#6b6b78 深色下仅 3.7:1 */
    --text-4: #8a8f9d; /* 2026-10-14 可访问性修复：#4a4a56 深色下仅 2.0:1，现 5.8:1 (AA) */
    --border: #2a2a36;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.2);
    --shadow: 0 2px 8px rgba(0,0,0,0.25);
    --shadow-md: 0 6px 16px rgba(0,0,0,0.3);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.35);
    --shadow-hover: 0 8px 24px rgba(0,0,0,0.4);
}

[data-theme="dark"] .site-header {
    background: rgba(15,15,20,0.92);
    border-bottom-color: var(--border);
}

[data-theme="dark"] .hero-img { filter: brightness(0.65); }
[data-theme="dark"] .hero-main:hover .hero-img { filter: brightness(0.7); }
[data-theme="dark"] .card-img { filter: brightness(0.85); }
[data-theme="dark"] .list-img { filter: brightness(0.85); }
[data-theme="dark"] .site-footer { background: #0a0a0f; }
[data-theme="dark"] .footer-brand .logo-text { color: var(--text); }
[data-theme="dark"] .footer-cats h4 { color: var(--text); }
[data-theme="dark"] .breaking-bar { background: rgba(255,77,79,0.08); border-bottom-color: rgba(255,77,79,0.15); }
[data-theme="dark"] .breaking-label { background: var(--primary); }
[data-theme="dark"] .breaking-item { color: var(--primary); }
[data-theme="dark"] .charity-inner { background: rgba(255,77,79,0.06); border-color: rgba(255,77,79,0.12); }
[data-theme="dark"] .charity-link { color: var(--text-2); }
[data-theme="dark"] .charity-link:hover { color: var(--text); }

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background 0.3s, color 0.3s;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

/* ===== Header ===== */
.site-header {
    background: rgba(255,255,255,0.95);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: box-shadow var(--transition), background var(--transition);
}

.site-header.scrolled {
    box-shadow: 0 6px 24px rgba(0,0,0,0.08);
}

[data-theme="dark"] .site-header.scrolled {
    box-shadow: 0 6px 24px rgba(0,0,0,0.3);
}

.header-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 28px;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    transition: opacity var(--transition);
}

.logo:hover { opacity: 0.85; }

.logo-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--primary), #ff3333);
    color: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 16px;
    letter-spacing: -1px;
    box-shadow: 0 2px 8px rgba(212,0,0,0.25);
}

.logo-text {
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
    font-family: var(--font-display);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-form {
    display: flex;
    background: var(--bg);
    border-radius: 24px;
    border: 1.5px solid var(--border);
    transition: all var(--transition);
}

.search-form:focus-within {
    border-color: var(--primary);
    background: var(--surface);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.search-form input {
    background: transparent;
    border: none;
    padding: 9px 18px;
    color: var(--text);
    font-size: 14px;
    width: 220px;
    outline: none;
}

.search-form input::placeholder { color: var(--text-3); }

.search-form button {
    background: transparent;
    border: none;
    color: var(--text-3);
    padding: 9px 16px;
    cursor: pointer;
    font-size: 14px;
    transition: color var(--transition);
}

.search-form button:hover { color: var(--primary); }

/* Theme Toggle */
.theme-toggle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    background: var(--bg);
    color: var(--text-2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all var(--transition);
    flex-shrink: 0;
}

.theme-toggle:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Navigation */
.main-nav {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 2px;
}

.main-nav::-webkit-scrollbar { display: none; }

.nav-item {
    padding: 9px 14px;
    color: var(--text-2);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    transition: all var(--transition);
    position: relative;
}

.nav-item:hover {
    color: var(--text);
    background: rgba(0,0,0,0.02);
}

[data-theme="dark"] .nav-item:hover { background: rgba(255,255,255,0.03); }

.nav-item.active {
    color: var(--primary);
    font-weight: 600;
    background: var(--primary-light);
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px 3px 0 0;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all var(--transition);
}

/* Breaking News */
.breaking-bar {
    background: linear-gradient(90deg, var(--primary-light), var(--surface));
    border-bottom: 1px solid rgba(212,0,0,0.1);
    height: 38px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.breaking-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 28px;
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
}

.breaking-label {
    background: var(--primary);
    color: #fff;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
    letter-spacing: 0.02em;
}

.breaking-scroll {
    display: flex;
    gap: 40px;
    overflow: hidden;
    flex: 1;
}

.breaking-item {
    white-space: nowrap;
    font-size: 14px;
    color: var(--primary);
    font-weight: 500;
    animation: scrollText 30s linear infinite;
}

@keyframes scrollText {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-200%); }
}

/* ===== Main Layout ===== */
.site-main { min-height: 60vh; }

.content-wrapper {
    max-width: 1240px;
    margin: 0 auto;
    padding: 24px 28px;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 28px;
}

/* ===== Hero ===== */
.hero-section {
    max-width: 1240px;
    margin: 0 auto;
    padding: 24px 28px 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
}

.hero-main {
    position: relative;
    display: block;
    min-height: 520px;
    overflow: hidden;
    background: #1a1a2e;
}

.hero-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), filter 0.5s;
    filter: brightness(0.82);
}

.hero-main:hover .hero-img {
    transform: scale(1.04);
    filter: brightness(0.88);
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 120px 36px 36px;
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
    color: #fff;
}

.hero-cat {
    display: inline-block;
    background: var(--primary);
    padding: 3px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 0.03em;
}

.hero-title {
    font-size: 30px;
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.hero-meta {
    font-size: 14px;
    color: rgba(255,255,255,0.75);
    display: flex;
    gap: 16px;
}

/* Hero Sub Grid */
.hero-sub-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.hero-sub-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    cursor: pointer;
}

.hero-sub-item:hover {
    background: var(--bg);
    transform: translateY(-2px);
}

.hero-sub-img {
    width: 100px;
    height: 72px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    background-size: cover;
    background-position: center;
    background-color: #e5e6eb;
    transition: transform var(--transition);
    overflow: hidden;
}

.hero-sub-item:hover .hero-sub-i

.hero-sub-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.hero-sub-info .tag {
    display: inline-block;
    color: var(--primary);
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 4px;
}

.hero-sub-info h3 {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== Section ===== */
.section-block { margin-bottom: 32px; }

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2.5px solid var(--text);
}

.section-title {
    font-size: 19px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
}

.section-count { font-size: 14px; color: var(--text-3); }

/* ===== Article Grid ===== */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
}

.article-card {
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
    border-color: transparent;
}

.card-img {
    aspect-ratio: 16/10;
    background-size: cover;
    background-position: center;
    background-color: #e5e6eb;
    position: relative;
    overflow: hidden;
    transition: transform 0.45s ease;
}

.article-card:hover .card-img {
    transform: scale(1.06);
}

.card-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 60%, rgba(0,0,0,0.04));
    pointer-events: none;
}

.card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    z-index: 1;
}

.card-badge.top { background: var(--primary); }
.card-badge.breaking { background: var(--orange); }

.card-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-cat {
    display: inline-block;
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}

.card-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.55;
    margin-bottom: 8px;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--transition);
}

.article-card:hover .card-title { color: var(--primary); }

.card-summary {
    font-size: 14px;
    color: var(--text-3);
    line-height: 1.65;
    margin-bottom: 12px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: var(--text-4);
    align-items: center;
    flex-wrap: wrap;
}

.card-meta .views {
    display: flex;
    align-items: center;
    gap: 3px;
}

/* ===== Article List ===== */
.article-list { display: flex; flex-direction: column; }

.list-item {
    display: flex;
    gap: 18px;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
    transition: all var(--transition);
    align-items: flex-start;
}

.list-item:hover {
    background: var(--surface);
    margin: 0 -14px;
    padding: 18px 14px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.list-img {
    width: 180px;
    height: 115px;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-sm);
    background-color: #e5e6eb;
    overflow: hidden;
    transition: transform var(--transition);
}

.list-item:hover .list-img { transform: scale(1.03); }

.list-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.list-body h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.45;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--transition);
}

.list-item:hover .list-body h3 { color: var(--primary); }

.list-summary {
    font-size: 14px;
    color: var(--text-3);
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
}

.list-meta {
    display: flex;
    gap: 14px;
    font-size: 12px;
    color: var(--text-4);
    align-items: center;
    flex-wrap: wrap;
}

.list-meta .views {
    display: flex;
    align-items: center;
    gap: 3px;
}

/* ===== Hot List ===== */
.hot-list { display: flex; flex-direction: column; }

.hot-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    transition: all var(--transition);
}

.hot-item:hover { color: var(--primary); }

.hot-rank {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    flex-shrink: 0;
    background: var(--bg);
    color: var(--text-3);
}

.hot-rank.rank-1 { background: var(--primary); color: #fff; box-shadow: 0 2px 8px rgba(212,0,0,0.2); }
.hot-rank.rank-2 { background: #ff5722; color: #fff; }
.hot-rank.rank-3 { background: var(--orange); color: #fff; }

.hot-info {
    flex: 1;
    min-width: 0;
}

.hot-info h4 {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 4px;
}

.hot-meta {
    font-size: 11px;
    color: var(--text-4);
    display: flex;
    align-items: center;
    gap: 8px;
}

.hot-score-num {
    font-weight: 700;
    color: var(--primary);
    font-size: 12px;
}

.hot-score-bar {
    height: 3px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 4px;
}

.hot-score-fill {
    height: 100%;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--primary), #ff6b6b);
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Sidebar ===== */
.content-aside {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.aside-block {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 20px;
    border: 1px solid var(--border);
    transition: box-shadow var(--transition);
}

.aside-block:hover { box-shadow: var(--shadow); }

.aside-title {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2.5px solid var(--text);
    font-family: var(--font-display);
}

.aside-cats { display: flex; flex-direction: column; gap: 3px; }

.aside-cat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text-2);
    transition: all var(--transition);
}

.aside-cat-item:hover {
    background: var(--bg);
    color: var(--text);
    transform: translateX(3px);
}

.aside-cat-item.active {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
}

.cat-icon {
    font-size: 14px;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    border-radius: 6px;
    flex-shrink: 0;
    font-weight: 700;
    color: var(--text-3);
    transition: all var(--transition);
}

.aside-cat-item.active .cat-icon {
    background: var(--primary);
    color: #fff;
}

.aside-rank { display: flex; flex-direction: column; }

.rank-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    color: var(--text-2);
    transition: all var(--transition);
}

.rank-item:hover { color: var(--primary); }

.rank-num {
    width: 22px;
    height: 22px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    flex-shrink: 0;
    background: var(--bg);
    color: var(--text-3);
}

.rank-num.rank-1 { background: var(--primary); color: #fff; }
.rank-num.rank-2 { background: #ff5722; color: #fff; }
.rank-num.rank-3 { background: var(--orange); color: #fff; }

.rank-title {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ===== Pagination ===== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}

.page-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text-2);
    background: var(--surface);
    transition: all var(--transition);
    font-weight: 500;
}

.page-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.page-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(212,0,0,0.25);
}

.page-dots { color: var(--text-3); line-height: 38px; }

/* ===== Empty State ===== */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-3);
    font-size: 14px;
}

.empty-state a { color: var(--primary); font-weight: 600; }

/* ===== Skeleton ===== */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 800px 100%;
    animation: shimmer 1.5s infinite linear;
    border-radius: var(--radius-sm);
}

[data-theme="dark"] .skeleton {
    background: linear-gradient(90deg, #2a2a36 25%, #333340 50%, #2a2a36 75%);
    background-size: 800px 100%;
}

@keyframes shimmer {
    0% { background-position: -400px 0; }
    100% { background-position: 400px 0; }
}

/* ===== Back to Top ===== */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--surface);
    color: var(--text-2);
    border: 1px solid var(--border);
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--transition);
    z-index: 50;
}

.back-to-top.show {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(212,0,0,0.25);
    transform: translateY(-2px);
}

/* ===== Footer ===== */
.site-footer {
    background: #1a1a2e;
    color: #86909c;
    margin-top: 48px;
}

.footer-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 40px 28px;
}

.charity-banner {
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.charity-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, rgba(212,0,0,0.12), rgba(255,107,107,0.08));
    border: 1px solid rgba(212,0,0,0.15);
    border-radius: var(--radius);
    padding: 14px 20px;
    transition: all var(--transition);
}

.charity-inner:hover {
    background: linear-gradient(135deg, rgba(212,0,0,0.18), rgba(255,107,107,0.12));
    border-color: rgba(212,0,0,0.25);
}

.charity-icon {
    font-size: 20px;
    color: var(--primary);
    animation: heartbeat 1.5s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.charity-text {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    background: rgba(212,0,0,0.1);
    padding: 2px 8px;
    border-radius: 4px;
    flex-shrink: 0;
    letter-spacing: 0.05em;
}

.charity-link {
    font-size: 14px;
    color: #e8e9ec;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color var(--transition);
}

.charity-link:hover { color: #fff; }

.charity-arrow {
    transition: transform var(--transition);
    font-size: 16px;
}

.charity-link:hover .charity-arrow { transform: translateX(4px); }

.charity-footer-link {
    background: rgba(212,0,0,0.15) !important;
    color: #ff8a8a !important;
    border: 1px solid rgba(212,0,0,0.2);
}

.charity-footer-link:hover {
    background: var(--primary) !important;
    color: #fff !important;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-brand { max-width: 420px; }

.footer-brand .logo-icon {
    width: 34px;
    height: 34px;
    font-size: 14px;
    display: inline-flex;
    vertical-align: middle;
}

.footer-brand .logo-text {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    margin-left: 10px;
    vertical-align: middle;
}

.footer-desc {
    font-size: 14px;
    margin-top: 12px;
    line-height: 1.7;
}

.footer-cats h4 {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 14px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-links a {
    padding: 5px 14px;
    background: rgba(255,255,255,0.05);
    border-radius: 6px;
    font-size: 14px;
    transition: all var(--transition);
}

.footer-links a:hover {
    background: var(--primary);
    color: #fff;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #4e5969;
}

/* ===== H5 Mobile Bottom Nav ===== */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--surface);
    border-top: 1px solid var(--border);
    z-index: 100;
    padding: 6px 0 env(safe-area-inset-bottom, 6px);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.06);
}

.mobile-bottom-nav .nav-list {
    display: flex;
    justify-content: space-around;
    list-style: none;
}

.mobile-bottom-nav .nav-list a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 0;
    font-size: 11px;
    color: var(--text-3);
    transition: color var(--transition);
    min-width: 56px;
}

.mobile-bottom-nav .nav-list a.active {
    color: var(--primary);
}

.mobile-bottom-nav .nav-list a .nav-emoji {
    font-size: 20px;
    line-height: 1;
}

/* ===== Responsive ===== */
@media (max-width: 1200px) {
    .article-detail-layout {
        grid-template-columns: 1fr;
    }
    .article-toc { display: none; }
}

@media (max-width: 1024px) {
    .content-wrapper { grid-template-columns: 1fr; }
    .content-aside { order: -1; }
    .hero-main { min-height: 380px; }
    .hero-sub-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    :root { --header-height: 80px; }

    .header-inner { padding: 0 14px; }
    .header-top { padding: 10px 0; }
    .logo-text { font-size: 18px; }
    .logo-icon { width: 34px; height: 34px; font-size: 14px; }

    .search-form input { width: 100%; padding: 7px 12px; font-size: 14px; }
    .search-form button { padding: 7px 10px; }

    .menu-toggle { display: flex; }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
        flex-direction: column;
        padding: 8px 14px;
        z-index: 99;
    }

    .main-nav.open { display: flex; }

    .nav-item {
        padding: 12px 0;
        border-radius: 0;
        border-bottom: 1px solid var(--border);
    }

    .nav-item:last-child { border-bottom: none; }

    .nav-item.active { background: transparent; }
    .nav-item.active::after { display: none; }

    .hero-section { padding: 14px 14px 0; }
    .hero-main { min-height: 260px; }
    .hero-title { font-size: 20px; }
    .hero-overlay { padding: 80px 18px 20px; }
    .hero-meta { font-size: 12px; gap: 10px; }

    .hero-sub-grid { grid-template-columns: 1fr; gap: 0; padding: 0; }
    .hero-sub-item {
        padding: 12px 14px;
        border-bottom: 1px solid var(--border);
        border-radius: 0;
    }
    .hero-sub-item:last-child { border-bottom: none; }
    .hero-sub-img { width: 80px; height: 56px; }

    .content-wrapper {
        padding: 14px;
        gap: 16px;
    }

    .section-block { margin-bottom: 24px; }
    .section-header { margin-bottom: 14px; padding-bottom: 10px; }
    .section-title { font-size: 17px; }

    .article-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .card-body { padding: 10px; }
    .card-title { font-size: 14px; margin-bottom: 4px; }
    .card-summary { display: none; }
    .card-meta { font-size: 11px; gap: 8px; }
    .card-badge { top: 6px; left: 6px; padding: 2px 5px; font-size: 10px; }

    .list-item { gap: 12px; padding: 14px 0; }
    .list-item:hover { margin: 0 -8px; padding: 14px 8px; }
    .list-img { width: 110px; height: 75px; }
    .list-body h3 { font-size: 14px; }
    .list-summary { font-size: 12px; margin-bottom: 6px; }
    .list-meta { font-size: 11px; gap: 8px; }

    .hot-item { padding: 10px 0; gap: 10px; }
    .hot-rank { width: 22px; height: 22px; font-size: 12px; }
    .hot-info h4 { font-size: 14px; }

    .aside-block { padding: 14px; }
    .aside-title { font-size: 14px; margin-bottom: 12px; padding-bottom: 8px; }
    .aside-cat-item { padding: 8px 8px; font-size: 14px; }
    .cat-icon { width: 22px; height: 22px; font-size: 11px; }

    .article-detail { padding: 20px 16px; }
    .article-title { font-size: 22px; }
    .article-info { gap: 12px; font-size: 12px; margin-bottom: 20px; }
    .article-cover { margin: 0 -16px 20px; }
    .article-content { font-size: 16px; line-height: 1.85; max-width: 100%; }
    .article-content h2, .article-content h3 { scroll-margin-top: 80px; }

    .footer-inner { padding: 28px 14px; }
    .footer-top { flex-direction: column; gap: 20px; }
    .footer-bottom { flex-direction: column; gap: 6px; text-align: center; }

    .charity-inner { padding: 10px 14px; gap: 8px; flex-wrap: wrap; }
    .charity-link { font-size: 14px; }

    .back-to-top { bottom: 70px; right: 14px; width: 38px; height: 38px; font-size: 12px; }

    .mobile-bottom-nav { display: block; }

    body { padding-bottom: 60px; }

    .pagination { gap: 4px; }
    .page-btn { min-width: 34px; height: 34px; font-size: 14px; padding: 0 10px; }
}

@media (max-width: 480px) {
    .article-grid { grid-template-columns: 1fr; }
    .card-img { aspect-ratio: 16/9; }
    .article-info { flex-wrap: wrap; gap: 6px; }
    .search-form input { width: 90px; }
    .hero-main { min-height: 220px; }
    .hero-title { font-size: 18px; }
    .hero-overlay { padding: 60px 14px 16px; }
    .list-img { width: 90px; height: 64px; }
    .list-body h3 { font-size: 14px; }
}

/* ===== Article Page - Full Width ===== */
.article-page {
    width: 100%;
    min-height: 60vh;
}

.article-page-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 32px 40px;
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 40px;
    align-items: start;
}

.article-detail {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 40px 48px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    min-width: 0;
}

.article-toc {
    position: sticky;
    top: 120px;
    max-height: calc(100vh - 160px);
    overflow-y: auto;
    scrollbar-width: none;
}

.article-toc::-webkit-scrollbar { display: none; }

.toc-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
}

.toc-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

.toc-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.toc-list a {
    display: block;
    padding: 7px 12px;
    font-size: 14px;
    color: var(--text-3);
    border-radius: 4px;
    border-left: 2px solid transparent;
    transition: all var(--transition);
    line-height: 1.45;
}

.toc-list a:hover { color: var(--text); background: var(--bg); }

.toc-list a.active {
    color: var(--primary);
    border-left-color: var(--primary);
    background: var(--primary-light);
    font-weight: 600;
}

.toc-list .toc-h3 { padding-left: 24px; font-size: 12px; }

.breadcrumb {
    font-size: 14px;
    color: var(--text-3);
    margin-bottom: 20px;
}

.breadcrumb a { color: var(--text-3); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { margin: 0 8px; }
.breadcrumb .current { color: var(--text-2); }

.article-title {
    font-size: 38px;
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 20px;
    font-family: var(--font-display);
    letter-spacing: -0.02em;
    color: var(--primary);
}

.article-info {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: var(--text-3);
    margin-bottom: 28px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
    align-items: center;
}

.article-info .info-source {
    color: var(--primary);
    font-weight: 600;
}

.article-cover {
    margin: 0 -48px 28px;
    overflow: hidden;
    border-radius: 0;
}

.article-cover img {
    width: 100%;
    display: block;
    transition: transform 0.6s ease;
}

.article-cover:hover img { transform: scale(1.02); }

.article-content {
    font-size: 18px;
    line-height: 2;
    color: #2d2d3a;
    max-width: 900px;
}

[data-theme="dark"] .article-content { color: var(--text-2); }

.article-content p { margin-bottom: 20px; }

.article-content img {
    max-width: 100%;
    border-radius: var(--radius);
    margin: 20px 0;
    box-shadow: var(--shadow);
}

.article-content h2,
.article-content h3 {
    margin: 32px 0 16px;
    font-weight: 700;
    color: var(--text);
    scroll-margin-top: 120px;
}

.article-content blockquote {
    border-left: 4px solid var(--primary);
    padding: 16px 24px;
    margin: 24px 0;
    background: var(--primary-light);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--text-2);
    font-style: italic;
}

.article-content a { color: var(--primary); text-decoration: underline; }

.article-source-link {
    margin-top: 32px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.article-source-link a {
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
}

.article-share {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-3);
    flex-wrap: wrap;
}

.share-btn {
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 8px 20px;
    border-radius: 24px;
    font-size: 14px;
    cursor: pointer;
    color: var(--text-2);
    transition: all var(--transition);
}

.share-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(212,0,0,0.2);
}

.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), #ff6b6b);
    z-index: 9999;
    transition: width 0.1s;
    width: 0;
}

/* Related articles */
.article-related {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px 40px;
}

.article-related-inner {
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

/* ===== Article Page Responsive ===== */
@media (max-width: 1200px) {
    .article-page-inner {
        grid-template-columns: 1fr;
        padding: 24px 28px;
    }
    .article-toc { display: none; }
    .article-detail { padding: 32px 36px; }
    .article-cover { margin: 0 -36px 24px; }
    .article-related { padding: 0 28px 32px; }
}

@media (max-width: 768px) {
    .article-page-inner {
        padding: 14px;
    }
    .article-detail {
        padding: 20px 16px;
        border-radius: var(--radius);
    }
    .article-title {
        font-size: 24px;
        line-height: 1.35;
        margin-bottom: 14px;
    }
    .article-info {
        font-size: 12px;
        gap: 12px;
        margin-bottom: 20px;
    }
    .article-cover {
        margin: 0 -16px 20px;
    }
    .article-content {
        font-size: 16px;
        line-height: 1.85;
        max-width: 100%;
    }
    .article-content h2, .article-content h3 {
        scroll-margin-top: 80px;
    }
    .article-related {
        padding: 0 14px 24px;
    }
}

@media (max-width: 480px) {
    .article-title { font-size: 20px; }
    .article-info { flex-wrap: wrap; gap: 6px; }
}

/* ===== 文章内容排版优化 ===== */
.article-content {
    font-size: 17px;
    line-height: 2;
    color: #2d2d3a;
    max-width: 900px;
    word-break: break-word;
    overflow-wrap: break-word;
}

[data-theme="dark"] .article-content {
    color: var(--text-2);
}

/* 段落间距 */
.article-content p {
    margin-bottom: 22px;
    text-align: justify;
    text-indent: 0;
}

/* 首段首字下沉 */
.article-content > p:first-of-type::first-letter {
    float: left;
    font-size: 48px;
    line-height: 1;
    font-weight: 900;
    color: var(--primary);
    margin: 4px 12px 0 0;
    font-family: var(--font-display);
}

/* 标题样式 */
.article-content h1 {
    font-size: 26px;
    font-weight: 800;
    margin: 36px 0 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
    color: var(--text);
}

.article-content h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 32px 0 16px;
    padding-left: 14px;
    border-left: 4px solid var(--primary);
    color: var(--text);
}

.article-content h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 28px 0 14px;
    color: var(--text);
}

.article-content h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 24px 0 12px;
    color: var(--text-2);
}

/* 图片样式 */
.article-content img {
    max-width: 100%;
    border-radius: var(--radius);
    margin: 24px auto;
    display: block;
    box-shadow: var(--shadow-md);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: zoom-in;
}

.article-content img:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

/* 图片说明文字 */
.article-content img + em,
.article-content img + small {
    display: block;
    text-align: center;
    font-size: 14px;
    color: var(--text-3);
    margin-top: -16px;
    margin-bottom: 24px;
    font-style: normal;
}

/* 引用块 */
.article-content blockquote {
    border-left: 4px solid var(--primary);
    padding: 18px 24px;
    margin: 28px 0;
    background: linear-gradient(135deg, var(--primary-light), transparent);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--text-2);
    font-style: italic;
    position: relative;
}

.article-content blockquote::before {
    content: '"';
    position: absolute;
    top: -8px;
    left: 12px;
    font-size: 48px;
    color: var(--primary);
    opacity: 0.2;
    font-family: Georgia, serif;
    line-height: 1;
}

.article-content blockquote p {
    margin-bottom: 8px;
    text-indent: 0;
}

.article-content blockquote p:last-child {
    margin-bottom: 0;
}

/* 列表样式 */
.article-content ul,
.article-content ol {
    margin: 18px 0;
    padding-left: 28px;
}

.article-content li {
    margin-bottom: 10px;
    line-height: 1.85;
}

.article-content ul li {
    list-style-type: disc;
}

.article-content ol li {
    list-style-type: decimal;
}

.article-content li::marker {
    color: var(--primary);
    font-weight: 700;
}

/* 表格样式 */
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.article-content thead {
    background: var(--primary);
    color: #fff;
}

.article-content th {
    padding: 12px 16px;
    font-weight: 600;
    font-size: 14px;
    text-align: left;
}

.article-content td {
    padding: 12px 16px;
    font-size: 14px;
    border-bottom: 1px solid var(--border);
}

.article-content tbody tr:nth-child(even) {
    background: var(--bg);
}

.article-content tbody tr:hover {
    background: var(--primary-light);
}

/* 代码块 */
.article-content pre {
    background: #1e1e2e;
    color: #cdd6f4;
    padding: 20px 24px;
    border-radius: var(--radius);
    margin: 24px 0;
    overflow-x: auto;
    font-family: "JetBrains Mono", "Fira Code", "SF Mono", Consolas, monospace;
    font-size: 14px;
    line-height: 1.7;
    box-shadow: var(--shadow-md);
    position: relative;
}

.article-content pre::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 14px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ff5f57;
    box-shadow: 16px 0 0 #febc2e, 32px 0 0 #28c840;
}

.article-content pre code {
    padding-top: 16px;
    display: block;
}

.article-content code {
    background: var(--primary-light);
    color: var(--primary);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: "JetBrains Mono", "Fira Code", Consolas, monospace;
    font-size: 0.9em;
    font-weight: 500;
}

.article-content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
    border-radius: 0;
    font-weight: 400;
}

/* 分割线 */
.article-content hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
    margin: 36px 0;
}

/* 加粗和斜体 */
.article-content strong {
    color: var(--text);
    font-weight: 700;
}

.article-content em {
    color: var(--text-2);
    font-style: italic;
}

/* 链接 */
.article-content a {
    color: var(--primary);
    text-decoration: none;
    border-bottom: 1px solid rgba(212,0,0,0.3);
    transition: all var(--transition);
}

.article-content a:hover {
    border-bottom-color: var(--primary);
    background: var(--primary-light);
    padding: 1px 2px;
    border-radius: 2px;
}

/* 视频容器 */
.article-content video {
    max-width: 100%;
    border-radius: var(--radius);
    margin: 24px 0;
    box-shadow: var(--shadow-md);
}

/* iframe 容器（嵌入视频等） */
.article-content iframe {
    max-width: 100%;
    border-radius: var(--radius);
    margin: 24px 0;
    box-shadow: var(--shadow-sm);
}

/* 小标签/关键词高亮 */
.article-content mark {
    background: linear-gradient(120deg, rgba(212,0,0,0.1) 0%, rgba(212,0,0,0.2) 100%);
    color: var(--primary);
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 500;
}

/* 注释/脚注 */
.article-content sup {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.75em;
    cursor: help;
}

/* 段落间的强调文字 */
.article-content .highlight-text {
    background: linear-gradient(180deg, transparent 60%, rgba(212,0,0,0.15) 60%);
    padding: 0 2px;
    font-weight: 600;
}

/* 文章内图片灯箱效果 */
.article-content img:fullscreen {
    object-fit: contain;
    background: #000;
}

/* 响应式 */
@media (max-width: 768px) {
    .article-content {
        font-size: 16px;
        line-height: 1.9;
    }

    .article-content > p:first-of-type::first-letter {
        font-size: 38px;
        margin: 2px 8px 0 0;
    }

    .article-content h1 { font-size: 22px; margin: 28px 0 14px; }
    .article-content h2 { font-size: 19px; margin: 24px 0 12px; }
    .article-content h3 { font-size: 17px; margin: 22px 0 10px; }

    .article-content blockquote {
        padding: 14px 16px;
        margin: 20px 0;
    }

    .article-content pre {
        padding: 16px;
        font-size: 14px;
        margin: 16px -4px;
        border-radius: var(--radius-sm);
    }

    .article-content table {
        font-size: 14px;
        display: block;
        overflow-x: auto;
    }

    .article-content img {
        margin: 16px auto;
        border-radius: var(--radius-sm);
    }
}

/* ===== 移动端小程序体验优化 ===== */
@media (max-width: 768px) {
    /* 全局 */
    body {
        font-size: 14px;
        padding-bottom: 65px;
        background: #f5f6f8;
        -webkit-tap-highlight-color: transparent;
    }

    [data-theme="dark"] body { background: #0f0f14; }

    /* Header 紧凑 */
    .site-header {
        padding: 0;
        box-shadow: 0 1px 0 var(--border);
    }
    .header-inner { padding: 0 12px; }
    .header-top { padding: 8px 0; gap: 8px; }
    .logo-icon { width: 30px; height: 30px; font-size: 14px; border-radius: 8px; }
    .logo-text { font-size: 16px; font-weight: 800; }
    .search-form { border-radius: 20px; flex: 1; max-width: 200px; }
    .search-form input { padding: 7px 12px; font-size: 14px; width: 100%; }
    .search-form button { padding: 7px 10px; }
    .theme-toggle { width: 30px; height: 30px; font-size: 14px; }
    .menu-toggle { width: 30px; height: 30px; }

    /* 导航下拉 */
    .main-nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 60px;
        background: var(--surface);
        z-index: 200;
        flex-direction: column;
        padding: 60px 16px 16px;
        overflow-y: auto;
        animation: slideDown 0.25s ease;
    }
    .main-nav.open { display: flex; }
    .nav-item {
        padding: 14px 0;
        font-size: 16px;
        border-bottom: 1px solid var(--border);
    }
    .nav-item:last-child { border-bottom: none; }
    .nav-item.active { background: transparent; }
    .nav-item.active::after { display: none; }

    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }

    /* 快讯栏 */
    .breaking-bar { height: 32px; }
    .breaking-inner { padding: 0 12px; gap: 10px; }
    .breaking-label { font-size: 11px; padding: 1px 8px; }
    .breaking-item { font-size: 12px; }

    /* Hero 区域 - 适配手机 */
    .hero-section { padding: 12px 12px 0; }
    .hero-main { min-height: 200px; border-radius: var(--radius); }
    .hero-title { font-size: 17px; line-height: 1.4; }
    .hero-overlay { padding: 60px 14px 14px; }
    .hero-cat { font-size: 11px; padding: 2px 8px; margin-bottom: 8px; }
    .hero-meta { font-size: 11px; gap: 8px; }

    .hero-sub-grid { grid-template-columns: 1fr; gap: 0; padding: 0; }
    .hero-sub-item { padding: 10px 12px; border-bottom: 1px solid var(--border); border-radius: 0; }
    .hero-sub-item:last-child { border-bottom: none; }
    .hero-sub-img { width: 72px; height: 52px; border-radius: 6px; }
    .hero-sub-info h3 { font-size: 14px; }

    /* 内容区域 */
    .content-wrapper {
        padding: 12px;
        gap: 12px;
        grid-template-columns: 1fr;
    }
    .content-aside { order: -1; display: none; } /* 手机端隐藏侧边栏 */

    /* Section */
    .section-block { margin-bottom: 20px; }
    .section-header { margin-bottom: 12px; padding-bottom: 8px; }
    .section-title { font-size: 16px; }

    /* 文章卡片 - 小程序风格 */
    .article-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .article-card {
        flex-direction: column;
        border-radius: var(--radius);
        border: none;
        background: var(--surface);
        box-shadow: var(--shadow-sm);
        overflow: hidden;
    }

    .article-card:hover {
        transform: none;
        box-shadow: var(--shadow);
    }

    .card-img {
        width: 100%;
        height: auto;
        aspect-ratio: 16/9;
        flex-shrink: 0;
        border-radius: 0;
    }

    .article-card:hover .card-img { transform: none; }

    .card-body {
        padding: 12px 14px;
        flex: 1;
        min-width: 0;
        justify-content: center;
    }

    .card-cat { font-size: 11px; margin-bottom: 4px; }
    .card-title { font-size: 14px; margin-bottom: 4px; -webkit-line-clamp: 2; }
    .card-summary { display: none; }
    .card-meta { font-size: 11px; gap: 8px; margin-top: auto; }
    .card-badge { top: 4px; left: 4px; padding: 1px 5px; font-size: 9px; }

    /* 热点列表 */
    .hot-item { padding: 10px 0; gap: 10px; }
    .hot-rank { width: 22px; height: 22px; font-size: 11px; border-radius: 5px; }
    .hot-info h4 { font-size: 14px; }
    .hot-meta { font-size: 10px; }

    /* 列表页 */
    .list-item { gap: 10px; padding: 12px 0; }
    .list-item:hover { margin: 0; padding: 12px 0; background: transparent; box-shadow: none; }
    .list-img { width: 100px; height: 70px; border-radius: 6px; }
    .list-body h3 { font-size: 14px; }
    .list-summary { font-size: 12px; margin-bottom: 6px; -webkit-line-clamp: 1; }
    .list-meta { font-size: 11px; }

    /* 文章详情页 */
    .article-page-inner { padding: 12px; gap: 0; grid-template-columns: 1fr; }
    .article-detail { padding: 16px; border-radius: var(--radius); border: none; box-shadow: var(--shadow-sm); }
    .article-toc { display: none; }
    .breadcrumb { font-size: 12px; margin-bottom: 12px; }
    .article-title { font-size: 20px; line-height: 1.4; margin-bottom: 12px; }
    .article-info { font-size: 12px; gap: 10px; margin-bottom: 16px; padding-bottom: 12px; flex-wrap: wrap; }
    .article-cover { margin: 0 -16px 16px; border-radius: 0; }
    .article-cover img { border-radius: 0; }

    /* 文章内容排版 - 手机端 */
    .article-content {
        font-size: 16px;
        line-height: 1.9;
        max-width: 100%;
        word-break: break-word;
    }

    .article-content p {
        margin-bottom: 18px;
        text-align: justify;
    }

    .article-content > p:first-of-type::first-letter {
        font-size: 36px;
        margin: 2px 8px 0 0;
    }

    .article-content h2 { font-size: 18px; margin: 24px 0 12px; }
    .article-content h3 { font-size: 16px; margin: 20px 0 10px; }

    .article-content img {
        margin: 14px auto;
        border-radius: 6px;
        box-shadow: var(--shadow-sm);
    }

    .article-content blockquote {
        padding: 12px 14px;
        margin: 16px 0;
        border-radius: 0 6px 6px 0;
    }

    .article-content pre {
        padding: 14px;
        font-size: 12px;
        margin: 14px -4px;
        border-radius: 8px;
    }

    .article-content table {
        font-size: 12px;
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .article-content ul, .article-content ol {
        padding-left: 22px;
        margin: 14px 0;
    }

    .article-content li { margin-bottom: 8px; }

    .article-source-link { margin-top: 20px; }
    .article-share { margin-top: 16px; font-size: 14px; }

    .article-related { padding: 0 12px 20px; }
    .article-related .article-grid { grid-template-columns: 1fr; gap: 10px; }
    .article-related .card-img { width: 100%; height: auto; aspect-ratio: 16/9; }
    .article-related .article-card { flex-direction: column; }

    /* Footer */
    .site-footer { margin-top: 24px; }
    .footer-inner { padding: 24px 12px; }
    .footer-top { flex-direction: column; gap: 16px; }
    .footer-brand { max-width: 100%; }
    .footer-brand .logo-text { font-size: 16px; }
    .footer-desc { font-size: 12px; }
    .footer-cats h4 { font-size: 14px; margin-bottom: 10px; }
    .footer-links { gap: 6px; }
    .footer-links a { padding: 4px 10px; font-size: 12px; }
    .footer-bottom { flex-direction: column; gap: 4px; text-align: center; font-size: 11px; }

    .charity-inner { padding: 10px 12px; gap: 8px; flex-wrap: wrap; }
    .charity-link { font-size: 12px; }
    .charity-icon { font-size: 16px; }

    /* 底部导航 - 小程序风格 */
    .mobile-bottom-nav {
        display: flex;
        align-items: center;
        justify-content: space-around;
        background: var(--surface);
        border-top: 1px solid var(--border);
        box-shadow: 0 -1px 8px rgba(0,0,0,0.06);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }

    .mobile-bottom-nav .nav-list {
        display: flex;
        justify-content: space-around;
        width: 100%;
    }

    .mobile-bottom-nav .nav-list a {
        padding: 6px 0 4px;
        font-size: 10px;
        min-width: 52px;
        transition: all 0.2s;
        position: relative;
    }

    .mobile-bottom-nav .nav-list a.active {
        color: var(--primary);
    }

    .mobile-bottom-nav .nav-list a.active::before {
        content: '';
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 20px;
        height: 2px;
        background: var(--primary);
        border-radius: 2px;
    }

    .mobile-bottom-nav .nav-list a .nav-emoji {
        font-size: 20px;
        line-height: 1;
        display: block;
    }

    /* 回到顶部 */
    .back-to-top {
        bottom: 72px;
        right: 12px;
        width: 36px;
        height: 36px;
        font-size: 11px;
        box-shadow: var(--shadow);
    }

    /* 分页 */
    .pagination { gap: 4px; margin-top: 24px; padding-top: 16px; }
    .page-btn { min-width: 34px; height: 34px; font-size: 14px; padding: 0 10px; }

    /* 搜索页 */
    .search-results { padding: 12px; }
}

@media (max-width: 480px) {
    .hero-main { min-height: 180px; }
    .hero-title { font-size: 14px; }
    .hero-overlay { padding: 50px 12px 12px; }
    .article-title { font-size: 18px; }
    .article-content { font-size: 14px; line-height: 1.85; }
    .article-content > p:first-of-type::first-letter { font-size: 32px; }
    .search-form { max-width: 150px; }
    .search-form input { width: 100%; padding: 6px 10px; font-size: 12px; }
}

/* ===== 文章内容自动段落排版 ===== */
.article-content {
    font-size: 17px;
    line-height: 2;
    color: #2d2d3a;
    max-width: 900px;
    word-break: break-word;
    overflow-wrap: break-word;
}

[data-theme="dark"] .article-content { color: var(--text-2); }

.article-content p {
    margin-bottom: 22px;
    text-align: justify;
}

/* 首字下沉 */
.article-content > p:first-of-type::first-letter {
    float: left;
    font-size: 48px;
    line-height: 1;
    font-weight: 900;
    color: var(--primary);
    margin: 4px 12px 0 0;
    font-family: var(--font-display);
}

/* 标题 */
.article-content h1 { font-size: 26px; font-weight: 800; margin: 36px 0 18px; padding-bottom: 12px; border-bottom: 2px solid var(--primary); color: var(--text); }
.article-content h2 { font-size: 22px; font-weight: 700; margin: 32px 0 16px; padding-left: 14px; border-left: 4px solid var(--primary); color: var(--text); }
.article-content h3 { font-size: 18px; font-weight: 700; margin: 28px 0 14px; color: var(--text); }
.article-content h4 { font-size: 16px; font-weight: 600; margin: 24px 0 12px; color: var(--text-2); }

/* 图片 */
.article-content img {
    max-width: 100%;
    border-radius: var(--radius);
    margin: 24px auto;
    display: block;
    box-shadow: var(--shadow-md);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: zoom-in;
}
.article-content img:hover { transform: scale(1.02); box-shadow: var(--shadow-lg); }

/* 引用 */
.article-content blockquote {
    border-left: 4px solid var(--primary);
    padding: 18px 24px;
    margin: 28px 0;
    background: linear-gradient(135deg, var(--primary-light), transparent);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--text-2);
    font-style: italic;
    position: relative;
}
.article-content blockquote::before {
    content: '\201C';
    position: absolute;
    top: -8px;
    left: 12px;
    font-size: 48px;
    color: var(--primary);
    opacity: 0.2;
    font-family: Georgia, serif;
    line-height: 1;
}
.article-content blockquote p { margin-bottom: 8px; }
.article-content blockquote p:last-child { margin-bottom: 0; }

/* 列表 */
.article-content ul, .article-content ol { margin: 18px 0; padding-left: 28px; }
.article-content li { margin-bottom: 10px; line-height: 1.85; }
.article-content ul li { list-style-type: disc; }
.article-content ol li { list-style-type: decimal; }
.article-content li::marker { color: var(--primary); font-weight: 700; }

/* 表格 */
.article-content table { width: 100%; border-collapse: collapse; margin: 24px 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.article-content thead { background: var(--primary); color: #fff; }
.article-content th { padding: 12px 16px; font-weight: 600; font-size: 14px; text-align: left; }
.article-content td { padding: 12px 16px; font-size: 14px; border-bottom: 1px solid var(--border); }
.article-content tbody tr:nth-child(even) { background: var(--bg); }
.article-content tbody tr:hover { background: var(--primary-light); }

/* 代码 */
.article-content pre {
    background: #1e1e2e;
    color: #cdd6f4;
    padding: 20px 24px;
    border-radius: var(--radius);
    margin: 24px 0;
    overflow-x: auto;
    font-family: "JetBrains Mono", "Fira Code", Consolas, monospace;
    font-size: 14px;
    line-height: 1.7;
    box-shadow: var(--shadow-md);
    position: relative;
}
.article-content pre::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 14px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ff5f57;
    box-shadow: 16px 0 0 #febc2e, 32px 0 0 #28c840;
}
.article-content pre code { padding-top: 16px; display: block; }
.article-content code {
    background: var(--primary-light);
    color: var(--primary);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: "JetBrains Mono", "Fira Code", Consolas, monospace;
    font-size: 0.9em;
    font-weight: 500;
}
.article-content pre code { background: transparent; color: inherit; padding: 0; border-radius: 0; font-weight: 400; }

/* 分割线 */
.article-content hr { border: none; height: 1px; background: linear-gradient(90deg, transparent, var(--border), transparent); margin: 36px 0; }

/* 加粗斜体 */
.article-content strong { color: var(--text); font-weight: 700; }
.article-content em { color: var(--text-2); font-style: italic; }

/* 链接 */
.article-content a {
    color: var(--primary);
    text-decoration: none;
    border-bottom: 1px solid rgba(212,0,0,0.3);
    transition: all var(--transition);
}
.article-content a:hover { border-bottom-color: var(--primary); background: var(--primary-light); padding: 1px 2px; border-radius: 2px; }

/* 视频 */
.article-content video { max-width: 100%; border-radius: var(--radius); margin: 24px 0; box-shadow: var(--shadow-md); }
.article-content iframe { max-width: 100%; border-radius: var(--radius); margin: 24px 0; box-shadow: var(--shadow-sm); }

/* 高亮 */
.article-content mark { background: linear-gradient(120deg, rgba(212,0,0,0.1) 0%, rgba(212,0,0,0.2) 100%); color: var(--primary); padding: 2px 6px; border-radius: 3px; font-weight: 500; }
.article-content sup { color: var(--primary); font-weight: 700; font-size: 0.75em; cursor: help; }

/* ===== 图片占位和加载 ===== */
.card-img,
.list-img,
.hero-img,
.hero-sub-img,
.trend-thumb {
    position: relative;
    background-color: #f0f0f5;
    background-image: url('/assets/img/placeholder.svg');
    background-size: 40%;
    background-position: center;
    background-repeat: no-repeat;
}

[data-theme="dark"] .card-img,
[data-theme="dark"] .list-img,
[data-theme="dark"] .hero-img,
[data-theme="dark"] .hero-sub-img,
[data-theme="dark"] .trend-thumb {
    background-color: #1a1a24;
    background-image: url('/assets/img/placeholder-dark.svg');
}

/* 图片加载动画 */
.card-img::before,
.list-img::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 25%, rgba(255,255,255,0.08) 50%, transparent 75%);
    background-size: 200% 100%;
    animation: imgShimmer 1.5s infinite;
    z-index: 0;
    border-radius: inherit;
}

@keyframes imgShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* 无图卡片 - 横向文字模式 */
.article-card.no-image {
    flex-direction: row;
    padding: 14px 16px;
}

.article-card.no-image .card-img {
    display: none;
}

.article-card.no-image .card-body {
    padding: 0;
}

.article-card.no-image .card-summary {
    display: -webkit-box;
    -webkit-line-clamp: 2;
}

/* ===== 移动端底部导航 - SVG 图标 ===== */
.mobile-bottom-nav .nav-list a .nav-icon {
    width: 22px;
    height: 22px;
    display: block;
    margin: 0 auto 2px;
    stroke-width: 1.8;
    transition: all 0.2s ease;
}

.mobile-bottom-nav .nav-list a.active .nav-icon {
    stroke: var(--primary);
    transform: scale(1.1);
}

.mobile-bottom-nav .nav-list a {
    padding: 8px 0 5px;
    font-size: 10px;
    font-weight: 500;
    color: var(--text-3);
    position: relative;
    min-width: 56px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.mobile-bottom-nav .nav-list a.active {
    color: var(--primary);
    font-weight: 600;
}

.mobile-bottom-nav .nav-list a.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: var(--primary);
    border-radius: 0 0 3px 3px;
}

/* 点击涟漪效果 */
.mobile-bottom-nav .nav-list a::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--primary-glow);
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, opacity 0.3s;
    opacity: 0;
    z-index: -1;
}

.mobile-bottom-nav .nav-list a:active::after {
    width: 40px;
    height: 40px;
    opacity: 1;
}

/* ===== 移动端简化页脚 ===== */
.mobile-footer {
    display: none;
}

@media (max-width: 768px) {
    /* 完整页脚在移动端保留可见（2026-10-14 修复：此处曾设为 display:none，
       而 HTML 中并不存在 .mobile-footer 元素，导致移动端用户看不到任何页脚）。
       .mobile-footer 规则保留但无元素使用，不影响渲染。 */
    .mobile-footer {
        display: block;
        padding: 20px 16px;
        text-align: center;
        font-size: 12px;
        color: var(--text-4);
        border-top: 1px solid var(--border);
        background: var(--bg);
    }

    .mobile-footer-inner {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }

    .mobile-footer-logo {
        width: 20px;
        height: 20px;
        background: var(--primary);
        color: #fff;
        border-radius: 5px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 10px;
        font-weight: 900;
    }

    /* 底部导航栏优化 */
    .mobile-bottom-nav {
        background: rgba(255,255,255,0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-top: 0.5px solid var(--border);
        box-shadow: 0 -1px 12px rgba(0,0,0,0.04);
        padding: 0;
    }

    [data-theme="dark"] .mobile-bottom-nav {
        background: rgba(15,15,20,0.95);
        box-shadow: 0 -1px 12px rgba(0,0,0,0.2);
    }

    /* 回到顶部按钮 */
    .back-to-top {
        bottom: 72px;
        right: 12px;
        width: 38px;
        height: 38px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* 文章卡片无图时显示摘要 */
    .article-card.no-image .card-summary {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        font-size: 12px;
    }

    /* 首页文章网格 - 无图卡片优化 */
    .article-grid .article-card {
        min-height: auto;
    }
}

/* ===== 回到顶部按钮优化 ===== */
.back-to-top {
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top svg {
    transition: transform 0.2s;
}

.back-to-top:hover svg {
    transform: translateY(-2px);
}

/* ===== 无图卡片样式 ===== */
.article-card.no-image {
    flex-direction: column;
}

.article-card.no-image .card-body {
    padding: 16px;
}

.article-card.no-image .card-title {
    font-size: 16px;
    -webkit-line-clamp: 3;
}

.article-card.no-image .card-summary {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    font-size: 14px;
    color: var(--text-2);
}

/* 手机端无图卡片 */
@media (max-width: 768px) {
    .article-card.no-image .card-title {
        font-size: 14px;
        -webkit-line-clamp: 2;
    }
    .article-card.no-image .card-summary {
        -webkit-line-clamp: 2;
        font-size: 14px;
    }
}

/* ===== Hero 图片铺满修复 ===== */
.hero-img {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

.hero-sub-img {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

.card-img {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

.list-img {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

/* ===== 无图卡片样式 ===== */
.article-card.no-image {
    flex-direction: column;
}

.article-card.no-image .card-body {
    padding: 16px;
}

.article-card.no-image .card-title {
    font-size: 16px;
    -webkit-line-clamp: 3;
}

.article-card.no-image .card-summary {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    font-size: 14px;
    color: var(--text-2);
}

/* 手机端无图卡片 */
@media (max-width: 768px) {
    .article-card.no-image .card-title {
        font-size: 14px;
        -webkit-line-clamp: 2;
    }
    .article-card.no-image .card-summary {
        -webkit-line-clamp: 2;
        font-size: 14px;
    }
}

/* ===== Hero 图片铺满修复 ===== */
.hero-img {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

.hero-sub-img {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

.card-img {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

.list-img {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

/* ===== 无图卡片样式 ===== */
.article-card.no-image {
    flex-direction: column;
}

.article-card.no-image .card-body {
    padding: 16px;
}

.article-card.no-image .card-title {
    font-size: 16px;
    -webkit-line-clamp: 3;
}

.article-card.no-image .card-summary {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    font-size: 14px;
    color: var(--text-2);
}

/* 手机端无图卡片 */
@media (max-width: 768px) {
    .article-card.no-image .card-title {
        font-size: 14px;
        -webkit-line-clamp: 2;
    }
    .article-card.no-image .card-summary {
        -webkit-line-clamp: 2;
        font-size: 14px;
    }
}


/* ============================================================
   首页视觉修复 v3  —  追加于 style.css 末尾
   目的：
     1. Hero 永远有图、文字始终可读
     2. 所有卡片都有视觉（含无图文章），不再出现空白/灰块
     3. 收敛历史上重复的 .article-card.no-image 覆盖
   说明：本段必须放在最后，用于覆盖前面所有历史补丁。
   ============================================================ */

/* ---------- 1. 图片容器统一兜底 ---------- */
.card-img,
.hero-img,
.hero-sub-img,
.list-img,
.trend-thumb {
    background-color: #eceef2;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

[data-theme="dark"] .card-img,
[data-theme="dark"] .hero-img,
[data-theme="dark"] .hero-sub-img,
[data-theme="dark"] .list-img,
[data-theme="dark"] .trend-thumb {
    background-color: #22222e;
}

/* 去掉占位图标底图，改由后端 smart_cover 提供真正的渐变封面 */
.card-img,
.hero-img,
.hero-sub-img,
.list-img,
.trend-thumb {
    background-image: none;
}

/* 去掉会盖住图片的 shimmer 伪元素（历史上用于占位图标） */
.card-img::before,
.list-img::before {
    display: none !important;
}

/* ---------- 2. Hero 区域 ---------- */
.hero-section {
    max-width: 1240px;
    margin: 0 auto;
    padding: 24px 28px 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.62fr) minmax(0, 1fr);
    gap: 16px;
    align-items: stretch;
}

.hero-main {
    position: relative;
    display: block;
    min-height: 430px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a2e, #2a2a3e);
    box-shadow: var(--shadow-md);
    isolation: isolate;
}

.hero-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.01);
    transition: transform 0.9s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

.hero-main:hover .hero-img {
    transform: scale(1.06);
}

/* 双层遮罩：不管底图明暗，白字都能读清 */
.hero-overlay {
    position: absolute;
    inset: 0;
    padding: 40px 38px 34px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    z-index: 1;
    background:
        linear-gradient(to top,
            rgba(6, 8, 16, 0.90) 0%,
            rgba(6, 8, 16, 0.72) 26%,
            rgba(6, 8, 16, 0.34) 52%,
            rgba(6, 8, 16, 0.06) 74%,
            rgba(6, 8, 16, 0.18) 100%);
    color: #fff;
}

.hero-cat {
    display: inline-block;
    align-self: flex-start;
    background: var(--primary);
    color: #fff;
    padding: 4px 13px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: 14px;
    box-shadow: 0 2px 10px rgba(212, 0, 0, 0.4);
}

.hero-title {
    font-size: 30px;
    font-weight: 800;
    line-height: 1.38;
    margin: 0 0 12px;
    color: #fff;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.55);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 96%;
}

.hero-desc {
    font-size: 14.5px;
    line-height: 1.72;
    color: rgba(255, 255, 255, 0.80);
    margin: 0 0 16px;
    max-width: 92%;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.72);
    flex-wrap: wrap;
}

.hero-meta > span {
    display: inline-flex;
    align-items: center;
}

.hero-meta > span + span::before {
    content: '';
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.55;
    margin-right: 10px;
}

.hero-src {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

/* ---------- 3. Hero 右侧三条 ---------- */
.hero-sub-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-rows: 1fr;
    gap: 12px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
}

.hero-sub-item {
    display: flex;
    gap: 13px;
    padding: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
    align-items: stretch;
}

.hero-sub-item:hover {
    background: var(--surface);
    border-color: transparent;
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.hero-sub-img {
    width: 132px;
    min-height: 96px;
    flex: 0 0 132px;
    background-size: cover;
    background-position: center;
    background-color: #eceef2;
    border-radius: 0;
    transition: transform 0.5s ease;
}

.hero-sub-item:hover .hero-sub-img {
    transform: scale(1.05);
}

.hero-sub-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 12px 14px 12px 0;
    gap: 5px;
}

.hero-sub-info .tag {
    display: inline-block;
    align-self: flex-start;
    color: var(--primary);
    background: var(--primary-light);
    font-size: 11px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 3px;
    margin: 0;
}

.hero-sub-info h3 {
    font-size: 14px;
    font-weight: 650;
    line-height: 1.48;
    color: var(--text);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--transition);
}

.hero-sub-item:hover .hero-sub-info h3 {
    color: var(--primary);
}

.hero-sub-meta {
    font-size: 11.5px;
    color: var(--text-3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---------- 4. 区块标题 ---------- */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
}

.section-title .title-bar {
    display: inline-block;
    width: 4px;
    height: 17px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--primary), #ff5a36);
    flex: 0 0 4px;
}

.section-count {
    font-size: 12.5px;
    color: var(--text-3);
}

/* ---------- 5. 文章卡片：统一「都有图」 ---------- */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
}

.article-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
    position: relative;
}

.article-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
    border-color: transparent;
}

/* 关键：覆盖历史所有 no-image 横向/纯文字补丁 —— 无图卡也保留图区 */
.article-card.no-image {
    flex-direction: column;
    padding: 0;
}

.article-card.no-image .card-img {
    display: block !important;
}

.article-card.no-image .card-body {
    padding: 16px;
}

.article-card.no-image .card-title,
.article-card.no-image .card-summary {
    -webkit-line-clamp: 2;
}

.article-card.no-image .card-title {
    font-size: 15px;
}

.article-card.no-image .card-summary {
    font-size: 13.5px;
    color: var(--text-3);
}

.card-img {
    position: relative;
    aspect-ratio: 16 / 10;
    background-size: cover;
    background-position: center;
    background-color: #eceef2;
    overflow: hidden;
    transform: none;
    transition: filter var(--transition);
    flex: 0 0 auto;
}

.article-card:hover .card-img {
    transform: none;
    filter: brightness(1.03);
}

.card-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 62%, rgba(0, 0, 0, 0.18));
    pointer-events: none;
    opacity: 1;
}

.card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 3px 9px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    z-index: 2;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
}

.card-badge.top { background: rgba(212, 0, 0, 0.94); }
.card-badge.breaking { background: rgba(250, 140, 22, 0.94); }

.card-body {
    padding: 15px 16px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-cat {
    display: inline-block;
    align-self: flex-start;
    color: var(--primary);
    background: var(--primary-light);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 9px;
    letter-spacing: 0.02em;
}

.card-title {
    font-size: 15px;
    font-weight: 650;
    line-height: 1.56;
    margin: 0 0 9px;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--transition);
}

.article-card:hover .card-title {
    color: var(--primary);
}

.card-summary {
    font-size: 13.5px;
    line-height: 1.68;
    color: var(--text-3);
    margin: 0 0 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 12px;
    color: var(--text-3);
    margin-top: auto;
    padding-top: 11px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}

.card-meta > span:first-child {
    color: var(--text-2);
    font-weight: 600;
}

.card-meta .views {
    margin-left: auto;
    color: var(--text-3);
}

/* ---------- 6. 响应式 ---------- */
@media (max-width: 1080px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
    .hero-main {
        min-height: 340px;
    }
    .hero-sub-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }
    .hero-sub-item {
        flex-direction: column;
    }
    .hero-sub-img {
        width: 100%;
        flex: 0 0 auto;
        min-height: 128px;
        border-radius: 0;
    }
    .hero-sub-info {
        padding: 0 13px 13px;
    }
}

@media (max-width: 860px) {
    .hero-sub-grid {
        grid-template-columns: 1fr;
    }
    .hero-sub-item {
        flex-direction: row;
    }
    .hero-sub-img {
        width: 118px;
        flex: 0 0 118px;
        min-height: 88px;
    }
    .hero-sub-info {
        padding: 11px 13px 11px 0;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 14px 14px 0;
    }
    .hero-main {
        min-height: 300px;
        border-radius: var(--radius);
    }
    .hero-overlay {
        padding: 26px 20px 22px;
    }
    .hero-title {
        font-size: 21px;
        -webkit-line-clamp: 3;
    }
    .hero-desc {
        font-size: 13px;
        -webkit-line-clamp: 2;
        margin-bottom: 12px;
    }
    .hero-cat {
        font-size: 12px;
        padding: 3px 10px;
        margin-bottom: 10px;
    }
    .article-grid {
        grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
        gap: 12px;
    }
    .card-body {
        padding: 11px 12px 13px;
    }
    .card-title {
        font-size: 13.5px;
        line-height: 1.5;
    }
    .card-summary {
        font-size: 12.5px;
        margin-bottom: 9px;
    }
    .card-meta {
        font-size: 11px;
        padding-top: 8px;
        gap: 6px;
    }
    .card-meta .views {
        margin-left: 0;
    }
    .card-cat {
        font-size: 10px;
        padding: 1px 6px;
        margin-bottom: 7px;
    }
}

@media (max-width: 480px) {
    .hero-main {
        min-height: 250px;
    }
    .hero-title {
        font-size: 18px;
    }
    .hero-desc {
        display: none;
    }
    .article-grid {
        grid-template-columns: 1fr;
    }
    .card-img {
        aspect-ratio: 16 / 9;
    }
    .card-title {
        font-size: 14.5px;
    }
    .card-summary {
        font-size: 13px;
    }
}
