/* ============================================
   西甲低调JRS直播 - 全局样式表
   配色：DeepNavy(#1a2744) + MutedAmber(#d4a843)
   ============================================ */

/* ===== 1. CSS Variables & Reset ===== */
:root {
    --primary: #1a2744;
    --primary-light: #2a3d5e;
    --primary-dark: #0f1a2e;
    --primary-rgb: 26, 39, 68;
    --secondary: #d4a843;
    --secondary-light: #e2be6a;
    --secondary-rgb: 212, 168, 67;
    --accent: #e74c3c;
    --bg-dark: #0d1520;
    --bg-card: #152238;
    --bg-card-hover: #1d2e4a;
    --bg-surface: #0a111c;
    --text-primary: #f0f4f8;
    --text-secondary: #8fa3be;
    --text-muted: #5a7090;
    --border-color: #1e3350;
    --border-light: #2a4565;
    --gradient-primary: linear-gradient(135deg, var(--primary), var(--secondary));
    --gradient-hero: linear-gradient(135deg, #0d1520 0%, #1a2230 50%, #0d1520 100%);
    --gradient-card: linear-gradient(145deg, var(--bg-card), #112640);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.25);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.35);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.45);
    --shadow-glow: 0 0 20px rgba(var(--secondary-rgb), 0.2);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --max-width: 1280px;
}

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

/* ===== 2. Global Typography & Body ===== */
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    color: var(--secondary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-light);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    line-height: 1.3;
    font-weight: 700;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== 3. Header & Navigation ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(13, 21, 32, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.site-header.scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-primary);
}

.site-logo .logo-icon {
    width: 36px;
    height: 36px;
    background: var(--gradient-primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
}

.site-logo span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.desktop-nav a {
    padding: 8px 16px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    position: relative;
}

.desktop-nav a:hover,
.desktop-nav a.active {
    color: var(--secondary);
    background: rgba(var(--secondary-rgb), 0.1);
}

.desktop-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--secondary);
    border-radius: 2px;
}

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

.search-btn {
    width: 38px;
    height: 38px;
    border: none;
    background: rgba(var(--secondary-rgb), 0.1);
    color: var(--text-secondary);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.search-btn:hover {
    background: rgba(var(--secondary-rgb), 0.2);
    color: var(--secondary);
}

/* Hamburger */
.hamburger {
    display: none;
    width: 38px;
    height: 38px;
    border: none;
    background: rgba(var(--secondary-rgb), 0.1);
    border-radius: var(--radius-sm);
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 10px;
    transition: var(--transition);
}

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

.hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== 4. Mobile Navigation ===== */
.mobile-nav {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(13, 21, 32, 0.98);
    backdrop-filter: blur(20px);
    z-index: 999;
    padding: 20px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav.show {
    transform: translateX(0);
}

.mobile-nav a {
    display: block;
    padding: 14px 20px;
    color: var(--text-secondary);
    font-size: 1.05rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    margin-bottom: 4px;
    transition: var(--transition);
    border: 1px solid transparent;
}

.mobile-nav a:hover,
.mobile-nav a:active {
    color: var(--secondary);
    background: rgba(var(--secondary-rgb), 0.1);
    border-color: rgba(var(--secondary-rgb), 0.2);
}

/* ===== 5. Hero / Banner ===== */
.hero-section {
    position: relative;
    background: var(--gradient-hero);
    padding: 80px 0 60px;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(var(--secondary-rgb), 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.2) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    background: rgba(var(--secondary-rgb), 0.12);
    border: 1px solid rgba(var(--secondary-rgb), 0.25);
    border-radius: 50px;
    color: var(--secondary);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
    0%, 100% { box-shadow: 0 0 0 0 rgba(var(--secondary-rgb), 0.25); }
    50% { box-shadow: 0 0 0 8px rgba(var(--secondary-rgb), 0); }
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero-title .highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 30px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
}

.hero-stat .stat-num {
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-stat .stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ===== 5.1 Live Ticker ===== */
.live-ticker {
    background: rgba(var(--secondary-rgb), 0.05);
    border-top: 1px solid rgba(var(--secondary-rgb), 0.12);
    border-bottom: 1px solid rgba(var(--secondary-rgb), 0.12);
    padding: 12px 0;
    overflow: hidden;
}

.ticker-inner {
    display: flex;
    align-items: center;
    gap: 30px;
    animation: ticker-scroll 30s linear infinite;
    white-space: nowrap;
}

@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 4px 16px;
    background: rgba(var(--secondary-rgb), 0.07);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.ticker-item .live-dot {
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.ticker-item .score {
    color: var(--secondary);
    font-weight: 700;
}

/* ===== 6. News Cards ===== */
.news-card {
    display: flex;
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 20px;
}

.news-card:hover {
    border-color: rgba(var(--secondary-rgb), 0.35);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.news-thumb {
    position: relative;
    flex-shrink: 0;
    width: 240px;
    min-height: 180px;
    overflow: hidden;
}

.news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-thumb img {
    transform: scale(1.05);
}

.thumb-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    background: rgba(var(--secondary-rgb), 0.9);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 2;
}

.news-body {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.news-body h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-body h3 a {
    color: var(--text-primary);
}

.news-body h3 a:hover {
    color: var(--secondary);
}

.excerpt {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
}

.news-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.meta-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.meta-left span {
    font-size: 0.78rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.meta-left i {
    font-size: 0.75rem;
}

.news-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.tag {
    padding: 3px 10px;
    background: rgba(var(--secondary-rgb), 0.1);
    color: var(--secondary);
    font-size: 0.72rem;
    font-weight: 500;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition);
}

.tag:hover {
    background: rgba(var(--secondary-rgb), 0.2);
}

.tag.tag-hot {
    background: rgba(231, 76, 60, 0.15);
    color: #f87171;
}

.tag.tag-secondary {
    background: rgba(var(--primary-rgb), 0.3);
    color: var(--primary-light);
}

/* ===== 6.1 Featured Card (Large) ===== */
.featured-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    height: 300px;
    transition: var(--transition);
}

.featured-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.featured-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-card:hover img {
    transform: scale(1.05);
}

.featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 24px 24px;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
}

.featured-overlay h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.featured-overlay h3 a {
    color: #fff;
}

.featured-overlay h3 a:hover {
    color: var(--secondary);
}

.featured-overlay .news-meta {
    justify-content: flex-start;
}

/* ===== 7. Content Layout ===== */
.content-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 30px;
    padding: 40px 0;
}

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

.section-title {
    font-size: 1.3rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: var(--secondary);
    font-size: 1.1rem;
}

.section-more {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.section-more:hover {
    color: var(--secondary);
}

/* ===== 7.1 Sidebar Widgets ===== */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.widget {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    transition: var(--transition);
}

.widget:hover {
    border-color: rgba(var(--secondary-rgb), 0.25);
}

.widget-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.widget-title i {
    color: var(--secondary);
}

.hot-list {
    list-style: none;
}

.hot-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(var(--secondary-rgb), 0.06);
}

.hot-list li:last-child {
    border-bottom: none;
}

.hot-rank {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background: rgba(var(--secondary-rgb), 0.12);
    color: var(--secondary);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hot-list li:nth-child(1) .hot-rank { background: rgba(231,76,60,0.2); color: #f87171; }
.hot-list li:nth-child(2) .hot-rank { background: rgba(var(--primary-rgb),0.35); color: var(--primary-light); }
.hot-list li:nth-child(3) .hot-rank { background: rgba(34,197,94,0.2); color: #4ade80; }

.hot-list li a {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hot-list li a:hover {
    color: var(--secondary);
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-cloud .tag {
    padding: 6px 14px;
    font-size: 0.8rem;
}

.about-widget p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 12px;
}

/* ===== 8. List Page ===== */
.page-header {
    padding: 40px 0 20px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--text-muted);
}

.breadcrumb a:hover {
    color: var(--secondary);
}

.breadcrumb .separator {
    font-size: 0.7rem;
}

.breadcrumb .current {
    color: var(--secondary);
}

.category-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.category-tab {
    padding: 8px 20px;
    background: rgba(var(--secondary-rgb), 0.06);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.category-tab:hover,
.category-tab.active {
    background: rgba(var(--secondary-rgb), 0.15);
    border-color: rgba(var(--secondary-rgb), 0.3);
    color: var(--secondary);
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 40px 0 20px;
}

.pagination a,
.pagination span {
    padding: 8px 14px;
    background: rgba(var(--secondary-rgb), 0.06);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.88rem;
    transition: var(--transition);
}

.pagination a:hover {
    background: rgba(var(--secondary-rgb), 0.15);
    border-color: rgba(var(--secondary-rgb), 0.3);
    color: var(--secondary);
}

.pagination .current {
    background: var(--secondary);
    border-color: var(--secondary);
    color: #fff;
}

/* ===== 9. Detail Page ===== */
.detail-hero {
    position: relative;
    height: 400px;
    overflow: hidden;
    margin-bottom: 30px;
}

.detail-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 60px 40px 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
}

.detail-hero-overlay h1 {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.4;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.article-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.article-meta .meta-item i {
    color: var(--secondary);
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0 40px;
}

.article-content p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.9;
    margin-bottom: 20px;
}

.article-content h2 {
    font-size: 1.4rem;
    margin: 32px 0 16px;
    padding-left: 14px;
    border-left: 3px solid var(--secondary);
}

.article-content h3 {
    font-size: 1.15rem;
    margin: 24px 0 12px;
}

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

.article-content blockquote {
    padding: 20px 24px;
    background: rgba(var(--secondary-rgb), 0.06);
    border-left: 3px solid var(--secondary);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: 20px 0;
    color: var(--text-secondary);
    font-style: italic;
}

.article-content .highlight-box {
    padding: 20px 24px;
    background: rgba(var(--primary-rgb), 0.2);
    border: 1px solid rgba(var(--primary-rgb), 0.35);
    border-radius: var(--radius-md);
    margin: 24px 0;
}

.article-content .highlight-box h4 {
    color: var(--secondary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-content .live-embed {
    padding: 24px;
    background: var(--gradient-card);
    border: 1px solid rgba(var(--secondary-rgb), 0.25);
    border-radius: var(--radius-lg);
    text-align: center;
    margin: 30px 0;
}

.article-content .live-embed i {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 12px;
}

.article-content .live-embed .embed-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.article-content .live-embed .embed-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.article-content .live-embed .embed-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: var(--gradient-primary);
    color: #fff;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.article-content .live-embed .embed-btn:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-glow);
}

.article-content table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.9rem;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.article-content table thead {
    background: rgba(var(--secondary-rgb), 0.1);
}

.article-content table th,
.article-content table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

.article-content table th {
    font-weight: 600;
    color: var(--secondary);
}

.article-content table td {
    color: var(--text-secondary);
}

.post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 30px 0;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.post-nav-item {
    padding: 16px;
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.post-nav-item:hover {
    border-color: rgba(var(--secondary-rgb), 0.25);
}

.post-nav-item .nav-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.post-nav-item .nav-title {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-nav-item:hover .nav-title {
    color: var(--secondary);
}

/* ===== 10. Footer ===== */
.site-footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    padding: 50px 0 30px;
    margin-top: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-brand .site-logo {
    margin-bottom: 12px;
}

.footer-brand p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.footer-col h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--text-primary);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--secondary);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ===== 11. Back to Top ===== */
.back-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    z-index: 100;
}

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

.back-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

/* ===== 12. Two Column Featured ===== */
.featured-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

/* ===== 13. Animations ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* ===== 14. Responsive: Tablet (1024px) ===== */
@media (max-width: 1024px) {
    .content-layout {
        grid-template-columns: 1fr;
    }
    .sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
    .hero-title {
        font-size: 2.2rem;
    }
}

/* ===== 15. Responsive: Mobile (768px) ===== */
@media (max-width: 768px) {
    .desktop-nav { display: none; }
    .hamburger { display: flex; }
    .mobile-nav { display: block; }
    .hero-section { padding: 50px 0 40px; }
    .hero-title { font-size: 1.8rem; }
    .hero-desc { font-size: 0.95rem; }
    .hero-stats { gap: 24px; }
    .hero-stat .stat-num { font-size: 1.4rem; }
    .news-card { flex-direction: column; }
    .news-thumb { width: 100%; height: 200px; min-height: auto; }
    .featured-grid { grid-template-columns: 1fr; }
    .featured-card { height: 220px; }
    .sidebar { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 20px; }
    .detail-hero { height: 250px; }
    .detail-hero-overlay h1 { font-size: 1.3rem; }
    .detail-hero-overlay { padding: 40px 20px 20px; }
    .post-nav { grid-template-columns: 1fr; }
    .article-content { padding: 10px 0 30px; }
    .category-tabs { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 8px; -webkit-overflow-scrolling: touch; }
    .category-tab { flex-shrink: 0; }
    .back-top { bottom: 20px; right: 20px; width: 40px; height: 40px; }
}

/* ===== 16. Responsive: Small Mobile (480px) ===== */
@media (max-width: 480px) {
    .header-inner { height: 56px; }
    .site-logo { font-size: 1.1rem; }
    .site-logo .logo-icon { width: 32px; height: 32px; font-size: 0.85rem; }
    .hero-title { font-size: 1.5rem; }
    .hero-stats { gap: 16px; }
    .hero-stat .stat-num { font-size: 1.2rem; }
    .news-body { padding: 14px; }
    .news-body h3 { font-size: 1rem; }
    .section-title { font-size: 1.1rem; }
    .pagination a, .pagination span { padding: 6px 10px; font-size: 0.8rem; }
}
