/* ===== 兴豪新闻 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: #86909c;
    --text-4: #c9cdd4;
    --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: #6b6b78;
    --text-4: #4a4a56;
    --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: 15px;
    -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: 11px 20px;
    color: var(--text-2);
    font-size: 15px;
    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: 13px;
    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: linea
    color: #fff;
}

.hero-cat {
    display: inline-block;
    background: var(--primary);
    padding: 3px 12px;
    border-radius: 4px;
    font-size: 13px;
    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: 13px; 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: c
    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: 15px;
    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: 13px;
    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: 13px;
    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: 13px;
    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: 13px;
    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: 13px;
    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: 15px;
}

.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: 13px;
    margin-top: 12px;
    line-height: 1.7;
}

.footer-cats h4 {
    color: #fff;
    font-size: 15px;
    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: 13px;
    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: 120px; padding: 7px 12px; font-size: 13px; }
    .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: 13px; }

    .aside-block { padding: 14px; }
    .aside-title { font-size: 14px; margin-bottom: 12px; padding-bottom: 8px; }
    .aside-cat-item { padding: 8px 8px; font-size: 13px; }
    .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: 13px; }

    .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: 13px; 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: 13px; }
}

/* ===== 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: 13px;
    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: 13px;
    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: 13px;
    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; }
}
