/* ============================================
   西瓜影院 - 主样式文件
   路径: static/css/style.css
============================================ */

/* ---- Reset & Base ---- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary:       #FF6B35;
    --primary-dark:  #e55a26;
    --primary-light: #ff8c5a;
    --secondary:     #2ECC71;
    --secondary-dark:#27AE60;
    --accent:        #F39C12;
    --dark:          #0d0d0d;
    --dark2:         #1a1a2e;
    --dark3:         #16213e;
    --card-bg:       #1e1e2e;
    --card-border:   rgba(255,107,53,0.15);
    --text-primary:  #f0f0f0;
    --text-secondary:#b0b0c0;
    --text-muted:    #707080;
    --white:         #ffffff;
    --overlay:       rgba(13,13,13,0.75);
    --radius:        12px;
    --radius-sm:     8px;
    --radius-lg:     18px;
    --shadow:        0 4px 24px rgba(0,0,0,0.4);
    --shadow-hover:  0 8px 40px rgba(255,107,53,0.25);
    --transition:    0.3s ease;
    --font:          'PingFang SC','Microsoft YaHei','Helvetica Neue',Arial,sans-serif;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font);
    background-color: var(--dark);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
}

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

a:hover { color: var(--primary); }

img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

ul { list-style: none; }

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---- 轮播背景 ---- */
.slideshow-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease;
}

.slide.active { opacity: 1; }

.slideshow-bg .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(13,13,13,0.85) 0%,
        rgba(13,13,13,0.70) 40%,
        rgba(13,13,13,0.90) 100%
    );
}

/* ---- 顶部公告栏 ---- */
.top-bar {
    background: linear-gradient(90deg, var(--primary-dark), var(--dark3));
    padding: 7px 0;
    font-size: 13px;
    position: relative;
    z-index: 200;
}

.top-bar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.top-bar-text {
    color: rgba(255,255,255,0.9);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.top-bar-links {
    display: flex;
    gap: 16px;
    flex-shrink: 0;
}

.top-bar-links a {
    color: rgba(255,255,255,0.8);
    font-size: 12px;
    transition: color var(--transition);
}

.top-bar-links a:hover { color: var(--primary-light); }

/* ---- Header / 导航 ---- */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(13,13,13,0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,107,53,0.2);
    box-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 12px 0;
}

/* Logo */
.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-icon { flex-shrink: 0; }

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-main {
    font-size: 20px;
    font-weight: 800;
    color: var(--white);
    letter-spacing: 1px;
}

.logo-sub {
    font-size: 11px;
    color: var(--primary-light);
    letter-spacing: 2px;
}

/* 搜索框 */
.search-box {
    flex: 1;
    max-width: 480px;
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,107,53,0.25);
    border-radius: 50px;
    overflow: hidden;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.search-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255,107,53,0.15);
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 9px 18px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: var(--font);
}

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

.search-btn {
    background: var(--primary);
    border: none;
    padding: 9px 18px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition);
}

.search-btn:hover { background: var(--primary-dark); }

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin-left: auto;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition);
}

/* 主导航 */
.main-nav {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 0;
}

.main-nav > ul {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-wrap: wrap;
}

.main-nav > ul > li {
    position: relative;
}

.main-nav > ul > li > a {
    display: block;
    padding: 10px 14px;
    font-size: 14px;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    white-space: nowrap;
}

.main-nav > ul > li > a:hover,
.main-nav > ul > li.active > a {
    color: var(--primary);
    background: rgba(255,107,53,0.1);
}

/* 下拉菜单 */
.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--dark2);
    border: 1px solid rgba(255,107,53,0.2);
    border-radius: var(--radius-sm);
    min-width: 130px;
    box-shadow: var(--shadow);
    z-index: 999;
    padding: 6px 0;
}

.has-dropdown:hover .dropdown { display: block; }

.dropdown li a {
    display: block;
    padding: 8px 16px;
    font-size: 13px;
    color: var(--text-secondary);
    transition: all var(--transition);
}

.dropdown li a:hover {
    color: var(--primary);
    background: rgba(255,107,53,0.08);
    padding-left: 22px;
}

/* ---- 主内容 ---- */
.main-content { position: relative; z-index: 1; }

/* ---- Hero Section ---- */
.hero-section {
    padding: 100px 0 80px;
    position: relative;
}

.hero-content {
    max-width: 700px;
}

.hero-title {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff 0%, var(--primary-light) 60%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.8;
}

.hero-stats {
    display: flex;
    gap: 32px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-num {
    font-size: 26px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

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

.hero-btns {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* ---- 通用按钮 ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    border: 2px solid transparent;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,107,53,0.4);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border-color: rgba(255,255,255,0.3);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 13px;
}

/* ---- 通用 Section ---- */
.section {
    padding: 60px 0;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

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

.title-icon {
    font-size: 22px;
}

.more-link {
    margin-left: auto;
    font-size: 13px;
    color: var(--primary);
    border: 1px solid rgba(255,107,53,0.3);
    padding: 5px 14px;
    border-radius: 50px;
    transition: all var(--transition);
    white-space: nowrap;
}

.more-link:hover {
    background: var(--primary);
    color: white;
}

/* ---- 筛选标签 ---- */
.filter-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 13px;
    border: 1px solid rgba(255,255,255,0.15);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition);
    font-family: var(--font);
}

.filter-tab:hover,
.filter-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* ---- Featured Slider ---- */
.featured-section { background: rgba(255,255,255,0.02); }

.featured-slider {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.featured-track {
    display: flex;
    transition: transform 0.5s ease;
}

.featured-card {
    min-width: 100%;
    display: flex;
    gap: 0;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--card-border);
}

.featured-img-wrap {
    position: relative;
    width: 55%;
    flex-shrink: 0;
    height: 320px;
    overflow: hidden;
}

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

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

.featured-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--primary);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 50px;
    z-index: 2;
}

.hot-badge { background: #e74c3c; }
.new-badge { background: var(--secondary-dark); }

.featured-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition);
}

.featured-img-wrap:hover .featured-overlay { opacity: 1; }

.play-btn-large {
    width: 64px;
    height: 64px;
    background: rgba(255,107,53,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: white;
    cursor: pointer;
    transition: transform var(--transition);
}

.play-btn-large:hover { transform: scale(1.1); }

.featured-info {
    flex: 1;
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
}

.featured-info h3 {
    font-size: 24px;
    font-weight: 800;
    color: var(--white);
}

.meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    background: rgba(255,107,53,0.15);
    color: var(--primary-light);
    border: 1px solid rgba(255,107,53,0.3);
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 12px;
}

.rating {
    color: var(--accent);
    font-size: 14px;
    font-weight: 600;
}

.featured-info p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
}

/* Slider 按钮 */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,107,53,0.8);
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    line-height: 1;
}

.slider-btn:hover { background: var(--primary); transform: translateY(-50%) scale(1.1); }
.prev-btn { left: 14px; }
.next-btn { right: 14px; }

.slider-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all var(--transition);
}

.dot.active {
    background: var(--primary);
    width: 24px;
    border-radius: 4px;
}

/* ---- 电影卡片网格 ---- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.movie-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--card-border);
    transition: all var(--transition);
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(255,107,53,0.4);
}

.card-img-wrap {
    position: relative;
    height: 220px;
    overflow: hidden;
}

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

.movie-card:hover .card-img-wrap img { transform: scale(1.08); }

.card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition);
}

.card-img-wrap:hover .card-overlay { opacity: 1; }

.play-icon {
    background: var(--primary);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    transition: transform var(--transition);
}

.play-icon:hover { transform: scale(1.05); color: white; }

.card-quality {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(46,204,113,0.9);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
}

.card-score {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(243,156,18,0.9);
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
}

.card-info {
    padding: 14px;
}

.card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-meta {
    display: flex;
    gap: 10px;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

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

.updating {
    color: var(--secondary);
    font-weight: 600;
}

/* ---- 电视剧网格 ---- */
.tv-section { background: rgba(22,33,62,0.4); }

.tv-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 20px;
}

.tv-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--card-border);
    transition: all var(--transition);
}

.tv-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.tv-card-large {
    grid-row: span 2;
}

.tv-card-large .card-img-wrap {
    height: 300px;
}

.tv-card .card-img-wrap {
    height: 180px;
}

.ep-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0,0,0,0.75);
    color: var(--accent);
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
}

/* ---- 综艺网格 ---- */
.variety-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.variety-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--card-border);
    transition: all var(--transition);
}

.variety-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.variety-card .card-img-wrap { height: 200px; }

.variety-type {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(46,204,113,0.85);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
}

/* ---- 排行榜 ---- */
.rank-section { background: rgba(13,13,13,0.6); }

.rank-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.rank-panel {
    background: var(--card-bg);
    border-radius: var(--radius);
    border: 1px solid var(--card-border);
    overflow: hidden;
}

.rank-panel-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 14px 18px;
    font-size: 15px;
    font-weight: 700;
    color: white;
}

.rank-list { padding: 8px 0; }

.rank-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    transition: background var(--transition);
    cursor: pointer;
}

.rank-item:hover { background: rgba(255,107,53,0.06); }

.rank-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    flex-shrink: 0;
}

.rank-top1 { background: linear-gradient(135deg,#FFD700,#FFA500); color: white; }
.rank-top2 { background: linear-gradient(135deg,#C0C0C0,#A0A0A0); color: white; }
.rank-top3 { background: linear-gradient(135deg,#CD7F32,#A0522D); color: white; }

.rank-item img {
    width: 44px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.rank-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.rank-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rank-meta {
    font-size: 11px;
    color: var(--text-muted);
}

.rank-heat {
    font-size: 11px;
    color: var(--primary-light);
    white-space: nowrap;
    flex-shrink: 0;
}

/* ---- APP下载 ---- */
.app-section {
    background: linear-gradient(135deg, rgba(255,107,53,0.12), rgba(46,204,113,0.08));
    border-top: 1px solid rgba(255,107,53,0.2);
    border-bottom: 1px solid rgba(255,107,53,0.2);
}

.app-download-wrap {
    display: flex;
    align-items: center;
    gap: 60px;
}

.app-info {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    flex: 1;
}

.app-logo-wrap { flex-shrink: 0; }

.app-text { flex: 1; }

.app-text h2 {
    font-size: 26px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 6px;
}

.app-slogan {
    color: var(--primary-light);
    font-size: 14px;
    margin-bottom: 16px;
}

.app-features {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 20px;
}

.app-features li {
    font-size: 13px;
    color: var(--text-secondary);
}
.app-btns {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.app-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.android-btn {
    background: var(--secondary-dark);
    color: white;
}

.android-btn:hover {
    background: #219a52;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39,174,96,0.4);
}

.ios-btn {
    background: var(--dark2);
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
}

.ios-btn:hover {
    background: #2c3e6e;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26,26,46,0.6);
}

.app-version {
    font-size: 12px;
    color: var(--text-muted);
}

.app-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.app-mockup {
    width: 220px;
    height: 280px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
    border: 3px solid rgba(255,107,53,0.3);
}

.app-qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.qr-placeholder {
    background: white;
    padding: 8px;
    border-radius: 10px;
}

.app-qr p {
    font-size: 12px;
    color: var(--text-muted);
}

/* ---- 纪录片 ---- */
.doc-section { background: rgba(22,33,62,0.3); }

.doc-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.doc-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--card-border);
    transition: all var(--transition);
}

.doc-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.doc-card .card-img-wrap { height: 190px; }

.doc-type {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(243,156,18,0.9);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
}

/* ---- 文章区 ---- */
.articles-section { background: rgba(13,13,13,0.5); }

.articles-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

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

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(255,107,53,0.35);
}

.article-card-large {
    grid-column: span 2;
    flex-direction: row;
}

.article-card-large .article-img {
    width: 42%;
    flex-shrink: 0;
    height: auto;
    min-height: 260px;
}

.article-img {
    height: 200px;
    overflow: hidden;
    flex-shrink: 0;
}

.article-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.article-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.article-tags {
    display: flex;
    align-items: center;
    gap: 10px;
}

.article-tag {
    background: rgba(255,107,53,0.15);
    color: var(--primary-light);
    border: 1px solid rgba(255,107,53,0.3);
    padding: 2px 10px;
    border-radius: 50px;
    font-size: 12px;
}

.article-date {
    font-size: 12px;
    color: var(--text-muted);
    margin-left: auto;
}

.article-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--white);
    line-height: 1.5;
}

.article-content p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 8px;
}

.article-more {
    display: inline-block;
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    margin-top: auto;
    transition: gap var(--transition);
}

.article-more:hover { color: var(--primary-light); }

/* ---- 关于我们 ---- */
.about-section {
    background: linear-gradient(135deg, rgba(26,26,46,0.8), rgba(22,33,62,0.6));
    border-top: 1px solid rgba(255,107,53,0.15);
}

.about-wrap {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-text {
    flex: 1;
}

.about-text .section-title {
    margin-bottom: 20px;
}

.about-text p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 14px;
}

.about-stats {
    display: flex;
    gap: 32px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.about-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255,107,53,0.08);
    border: 1px solid rgba(255,107,53,0.2);
    border-radius: var(--radius);
    padding: 16px 24px;
    min-width: 110px;
}

.about-stat-num {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.about-stat-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
}

.about-img {
    width: 380px;
    height: 280px;
    flex-shrink: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 2px solid rgba(255,107,53,0.2);
}

/* ---- 页脚 ---- */
.footer {
    background: var(--dark2);
    border-top: 2px solid rgba(255,107,53,0.3);
    margin-top: 20px;
}

.footer-top {
    padding: 56px 0 40px;
}

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

.footer-brand .footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.footer-brand .footer-logo span {
    font-size: 20px;
    font-weight: 800;
    color: var(--white);
}

.footer-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.footer-contact p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.footer-col h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,107,53,0.2);
}

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

.footer-col ul li a {
    font-size: 13px;
    color: var(--text-muted);
    transition: all var(--transition);
    display: inline-block;
}

.footer-col ul li a:hover {
    color: var(--primary);
    padding-left: 6px;
}

/* ---- 友情链接 ---- */
.footer-links-section {
    background: rgba(0,0,0,0.3);
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.flink-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.flink-wrap ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    list-style: none;
}

.flink-wrap ul li a,
.flink-wrap ul a {
    font-size: 13px;
    color: var(--text-muted);
    transition: color var(--transition);
}

.flink-wrap ul li a:hover,
.flink-wrap ul a:hover {
    color: var(--primary);
}

/* ---- 版权底部 ---- */
.footer-bottom {
    padding: 20px 0;
    background: rgba(0,0,0,0.4);
}

.footer-bottom-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.copyright p {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.copyright a {
    color: var(--primary-light);
}

.beian {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.beian a {
    font-size: 12px;
    color: var(--text-muted);
    transition: color var(--transition);
}

.beian a:hover { color: var(--primary); }

.beian-divider {
    color: var(--text-muted);
    font-size: 12px;
}

.footer-disclaimer p {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.7;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 12px;
}

/* ---- 回到顶部 ---- */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    box-shadow: 0 4px 16px rgba(255,107,53,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* ============================================
   响应式布局
============================================ */

@media (max-width: 1100px) {
    .cards-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
    .footer-brand { grid-column: span 3; }
    .rank-grid { grid-template-columns: 1fr 1fr; }
    .rank-panel:last-child { grid-column: span 2; }
}

@media (max-width: 900px) {
    .featured-card { flex-direction: column; }
    .featured-img-wrap { width: 100%; height: 240px; }
    .tv-grid { grid-template-columns: 1fr 1fr; }
    .tv-card-large { grid-row: auto; }
    .variety-grid { grid-template-columns: repeat(2, 1fr); }
    .doc-grid { grid-template-columns: repeat(2, 1fr); }
    .about-wrap { flex-direction: column; }
    .about-img { width: 100%; height: 220px; }
    .app-download-wrap { flex-direction: column; gap: 32px; }
    .app-preview { flex-direction: row; align-items: center; }
    .app-mockup { width: 160px; height: 200px; }
    .articles-grid { grid-template-columns: 1fr; }
    .article-card-large { flex-direction: column; }
    .article-card-large .article-img { width: 100%; min-height: 200px; }
    .rank-grid { grid-template-columns: 1fr; }
    .rank-panel:last-child { grid-column: auto; }
}

@media (max-width: 768px) {
    .mobile-menu-btn { display: flex; }
    .search-box { max-width: 200px; }
    .main-nav {
        display: none;
        flex-direction: column;
        padding: 10px 0;
    }
    .main-nav.open { display: flex; }
    .main-nav > ul { flex-direction: column; gap: 0; }
    .main-nav > ul > li > a { padding: 10px 8px; }
    .dropdown {
        position: static;
        display: none;
        background: rgba(255,255,255,0.04);
        border: none;
        box-shadow: none;
        padding-left: 16px;
    }
    .has-dropdown.open .dropdown { display: block; }
    .hero-section { padding: 60px 0 40px; }
    .hero-stats { gap: 20px; }
    .cards-grid { grid-template-columns: repeat(2, 1fr); }
    .tv-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: span 2; }
    .footer-bottom-inner { flex-direction: column; }
    .top-bar-links { display: none; }
    .app-features { grid-template-columns: 1fr; }
    .section-header { flex-direction: column; align-items: flex-start; }
    .more-link { margin-left: 0; }
}

@media (max-width: 480px) {
    .cards-grid { grid-template-columns: 1fr; }
    .variety-grid { grid-template-columns: 1fr; }
    .doc-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 24px; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-brand { grid-column: auto; }
    .about-stats { gap: 12px; }
    .about-stat { padding: 12px 16px; min-width: 90px; }
    .app-preview { flex-direction: column; }
    .search-box { max-width: 160px; }
    .logo-sub { display: none; }
}

