/* =============================================
   蘑菇视频 - 主样式文件
   外部CSS，全站通用
   ============================================= */

/* 变量 */
:root {
    --primary: #ff6b00;
    --primary-dark: #e05a00;
    --primary-light: #fff3e8;
    --secondary: #1a1a2e;
    --text: #333;
    --text-muted: #888;
    --border: #e8e8e8;
    --bg: #f5f5f5;
    --white: #fff;
    --radius: 8px;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --shadow-hover: 0 6px 24px rgba(0,0,0,0.14);
    --transition: 0.22s ease;
    --container: 1200px;
}

/* 重置 */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB',
                 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--primary); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* 容器 */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 16px;
}

/* =============================================
   顶部通知条
   ============================================= */
.top-bar {
    background: var(--secondary);
    color: rgba(255,255,255,0.82);
    font-size: 12px;
    padding: 6px 0;
    text-align: center;
}

/* =============================================
   头部
   ============================================= */
.site-header {
    background: var(--white);
    border-bottom: 2px solid var(--primary);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}
.header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    height: 62px;
}
.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    text-decoration: none;
}
.site-logo img {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    object-fit: cover;
}
.logo-text {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 1px;
    display: block;
    line-height: 1.2;
}
.logo-sub {
    font-size: 11px;
    color: var(--text-muted);
    display: block;
}
.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
}
.main-nav a {
    padding: 6px 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    border-radius: 5px;
    transition: background var(--transition), color var(--transition);
    white-space: nowrap;
}
.main-nav a:hover,
.main-nav a.active {
    background: var(--primary-light);
    color: var(--primary);
}
.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.btn-submit {
    background: var(--primary);
    color: var(--white) !important;
    padding: 7px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    transition: background var(--transition);
    white-space: nowrap;
}
.btn-submit:hover { background: var(--primary-dark); }
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

/* =============================================
   搜索栏
   ============================================= */
.search-bar-wrap {
    background: linear-gradient(135deg, #ff6b00 0%, #ff9500 100%);
    padding: 16px 0 12px;
}
.search-bar-inner {
    display: flex;
    gap: 10px;
    max-width: 700px;
    margin: 0 auto;
}
.search-input-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    background: var(--white);
    border-radius: 24px;
    padding: 0 16px;
    gap: 8px;
}
.search-icon { font-size: 16px; }
#searchInput {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
    padding: 10px 0;
    background: transparent;
    color: var(--text);
}
#searchInput::placeholder { color: #bbb; }
.search-btn {
    background: var(--secondary);
    color: var(--white);
    border: none;
    padding: 10px 24px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition);
    white-space: nowrap;
}
.search-btn:hover { background: #2a2a4e; }
.search-hot-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    max-width: 700px;
    margin: 8px auto 0;
    font-size: 12px;
    color: rgba(255,255,255,0.85);
}
.search-hot-tags a {
    color: rgba(255,255,255,0.9);
    background: rgba(255,255,255,0.2);
    padding: 2px 10px;
    border-radius: 12px;
    transition: background var(--transition);
}
.search-hot-tags a:hover { background: rgba(255,255,255,0.35); }

/* =============================================
   面包屑
   ============================================= */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--text-muted);
    padding: 10px 0;
    flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span:last-child { color: var(--text); }

/* =============================================
   主内容区
   ============================================= */
.page-main { padding: 16px 0 40px; }

/* 双列布局 */
.layout-two-col {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 24px;
    align-items: start;
}

/* 三列布局 */
.layout-three-col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* 卡片通用 */
.section-box {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}
.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
}
.section-head h2 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}
.section-head h2::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 18px;
    background: var(--primary);
    border-radius: 2px;
}
.more-link {
    font-size: 13px;
    color: var(--primary);
    font-weight: 500;
}
.more-link:hover { text-decoration: underline; }

/* =============================================
   头条区域
   ============================================= */
.hero-section { margin-bottom: 20px; }
.hero-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 16px;
}
.hero-main {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    display: block;
}
.hero-main img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.hero-main:hover img { transform: scale(1.03); }
.hero-main-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.78));
    padding: 24px 16px 16px;
    color: var(--white);
}
.hero-main-info h1 {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.5;
    margin: 6px 0 8px;
}
.hero-main-info .meta {
    font-size: 12px;
    opacity: 0.8;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.hero-sub {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.hero-sub-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    display: block;
    flex: 1;
}
.hero-sub-item img {
    width: 100%;
    height: 148px;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.hero-sub-item:hover img { transform: scale(1.03); }
.hero-sub-item-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.72));
    padding: 20px 12px 10px;
    color: var(--white);
}
.hero-sub-item-info h3 { font-size: 13px; font-weight: 600; line-height: 1.4; }

/* =============================================
   新闻列表
   ============================================= */
.news-list { display: flex; flex-direction: column; gap: 16px; }
.news-item {
    display: flex;
    gap: 14px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.news-item:last-child { border-bottom: none; padding-bottom: 0; }
.news-item-thumb {
    flex-shrink: 0;
    width: 120px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    display: block;
}
.news-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.news-item-thumb:hover img { transform: scale(1.05); }
.news-item-info { flex: 1; }
.news-item-info h3 {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 6px;
}
.news-item-info h3 a:hover { color: var(--primary); }
.news-item-info .desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-item-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--text-muted);
    flex-wrap: wrap;
}

/* =============================================
   文章卡片
   ============================================= */
.article-card {
    display: block;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: box-shadow var(--transition), transform var(--transition);
}
.article-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}
.article-card-thumb {
    overflow: hidden;
    height: 160px;
}
.article-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.article-card:hover .article-card-thumb img { transform: scale(1.05); }
.article-card-body { padding: 14px; }
.article-card-body h3 {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    margin: 6px 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.article-card-meta {
    display: flex;
    gap: 10px;
    font-size: 12px;
    color: var(--text-muted);
}

/* =============================================
   视频卡片（核心交互）
   ============================================= */
.video-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.video-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.video-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: box-shadow var(--transition), transform var(--transition);
    cursor: pointer;
}
.video-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}
.video-thumb {
    position: relative;
    overflow: hidden;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 */
    background: #111;
}
.video-thumb img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.3s ease;
}
.video-card:hover .video-thumb img {
    transform: scale(1.05);
    filter: brightness(0.75);
}

/* 播放按钮 */
.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity var(--transition), transform var(--transition);
    z-index: 2;
}
.video-card:hover .video-play-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.08);
}
.play-icon {
    width: 48px;
    height: 48px;
    background: rgba(255,107,0,0.92);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(255,107,0,0.5);
    transition: background var(--transition);
}
.play-icon svg {
    width: 22px;
    height: 22px;
    fill: #fff;
    margin-left: 3px;
}
.video-card:hover .play-icon { background: rgba(255,107,0,1); }

/* 时长标签 */
.video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.72);
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    z-index: 2;
}
.video-tag {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    z-index: 2;
}
.video-info { padding: 12px; }
.video-info h3 {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--text);
}
.video-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 6px;
    flex-wrap: wrap;
}
.video-meta .author {
    display: flex;
    align-items: center;
    gap: 4px;
}
.video-meta .author img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
}
.video-stats {
    display: flex;
    gap: 10px;
    font-size: 12px;
    color: var(--text-muted);
}

/* =============================================
   专题卡片
   ============================================= */
.topic-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.topic-card {
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: box-shadow var(--transition), transform var(--transition);
}
.topic-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}
.topic-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.topic-card:hover img { transform: scale(1.04); }
.topic-card-info {
    background: var(--white);
    padding: 12px;
}
.topic-card-info .label {
    background: var(--primary-light);
    color: var(--primary);
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 6px;
    display: inline-block;
}
.topic-card-info h3 {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 4px;
}
.topic-card-info .count { font-size: 12px; color: var(--text-muted); }

/* =============================================
   作者卡片
   ============================================= */
.author-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.author-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px 16px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: box-shadow var(--transition), transform var(--transition);
}
.author-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}
.author-card .avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 10px;
    border: 3px solid var(--primary-light);
}
.author-card .name { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.author-card .desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.author-card .stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 12px;
}
.author-card .stats strong { display: block; font-size: 16px; font-weight: 700; color: var(--primary); }
.btn-follow {
    display: inline-block;
    border: 1.5px solid var(--primary);
    color: var(--primary);
    padding: 5px 20px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 600;
    transition: background var(--transition), color var(--transition);
}
.btn-follow:hover { background: var(--primary); color: var(--white); }

/* =============================================
   FAQ
   ============================================= */
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    background: var(--white);
    transition: background var(--transition);
    user-select: none;
}
.faq-question:hover { background: var(--primary-light); }
.faq-question.active { background: var(--primary-light); color: var(--primary); }
.faq-icon {
    font-size: 18px;
    font-weight: 400;
    color: var(--primary);
    transition: transform var(--transition);
    flex-shrink: 0;
}
.faq-question.active .faq-icon { transform: rotate(45deg); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: #fafafa;
}
.faq-answer.open { max-height: 300px; }
.faq-answer p {
    padding: 14px 16px;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.8;
}

/* =============================================
   用户评论
   ============================================= */
.reviews-section { margin-bottom: 20px; }
.review-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.review-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
}
.review-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.review-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
}
.review-user-info .username { font-size: 14px; font-weight: 600; }
.review-user-info .stars { color: #f5a623; font-size: 13px; }
.review-text {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 8px;
}
.review-date { font-size: 12px; color: #bbb; }

/* =============================================
   联系/CTA区域
   ============================================= */
.contact-section {
    background: linear-gradient(135deg, #ff6b00 0%, #ff9500 100%);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    color: var(--white);
    margin-bottom: 20px;
}
.contact-section h2 { font-size: 22px; font-weight: 700; margin-bottom: 10px; }
.contact-section p { font-size: 14px; opacity: 0.9; margin-bottom: 20px; }
.contact-btns { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.btn-white {
    background: var(--white);
    color: var(--primary);
    padding: 10px 28px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 700;
    transition: background var(--transition);
}
.btn-white:hover { background: #ffe8d6; }
.btn-outline-white {
    border: 2px solid rgba(255,255,255,0.8);
    color: var(--white);
    padding: 10px 28px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    transition: background var(--transition);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.15); }

/* =============================================
   侧边栏
   ============================================= */
.sidebar { position: sticky; top: 80px; }
.sidebar-widget {
    background: var(--white);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}
.widget-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 平台数据 */
.platform-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.stat-item {
    background: var(--primary-light);
    border-radius: 6px;
    padding: 12px 8px;
    text-align: center;
}
.stat-item .num { font-size: 18px; font-weight: 800; color: var(--primary); }
.stat-item .label { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* 热门标签 */
.hot-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.hot-tags a {
    background: var(--bg);
    color: var(--text);
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 12px;
    transition: background var(--transition), color var(--transition);
}
.hot-tags a:hover { background: var(--primary); color: var(--white); }

/* 标签列表 */
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-list a {
    background: var(--primary-light);
    color: var(--primary);
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 12px;
    transition: background var(--transition), color var(--transition);
}
.tag-list a:hover { background: var(--primary); color: var(--white); }

/* 排行榜 */
.ranking-list { display: flex; flex-direction: column; gap: 12px; }
.ranking-item { display: flex; gap: 10px; align-items: flex-start; }
.ranking-num {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    background: var(--border);
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}
.ranking-item:nth-child(1) .ranking-num { background: #ff6b00; color: #fff; }
.ranking-item:nth-child(2) .ranking-num { background: #ff9500; color: #fff; }
.ranking-item:nth-child(3) .ranking-num { background: #ffc107; color: #fff; }
.ranking-info h4 { font-size: 13px; font-weight: 500; line-height: 1.5; margin-bottom: 2px; }
.ranking-info h4 a:hover { color: var(--primary); }
.ranking-info .meta { font-size: 12px; color: var(--text-muted); }

/* 侧边栏新闻 */
.sidebar-news { display: flex; flex-direction: column; gap: 12px; }
.sidebar-news-item { display: flex; gap: 10px; }
.sidebar-news-item .thumb {
    flex-shrink: 0;
    width: 70px;
    height: 48px;
    border-radius: 4px;
    overflow: hidden;
    display: block;
}
.sidebar-news-item .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.sidebar-news-item .thumb:hover img { transform: scale(1.05); }
.sidebar-news-item .info h4 { font-size: 12px; font-weight: 500; line-height: 1.5; margin-bottom: 3px; }
.sidebar-news-item .info h4 a:hover { color: var(--primary); }
.sidebar-news-item .info .meta { font-size: 11px; color: var(--text-muted); }

/* =============================================
   标签通用
   ============================================= */
.tag {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
}

/* =============================================
   分页
   ============================================= */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 20px;
    flex-wrap: wrap;
}
.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 6px;
    font-size: 14px;
    border: 1px solid var(--border);
    color: var(--text);
    transition: background var(--transition), color var(--transition);
}
.pagination a:hover { background: var(--primary-light); color: var(--primary); }
.pagination span.current { background: var(--primary); color: #fff; border-color: var(--primary); }

/* =============================================
   页脚
   ============================================= */
.site-footer {
    background: var(--secondary);
    color: rgba(255,255,255,0.75);
    padding: 40px 0 0;
    margin-top: 20px;
}
.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.footer-brand .logo img {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    object-fit: cover;
}
.footer-brand .logo span { font-size: 18px; font-weight: 700; color: var(--white); }
.footer-brand p { font-size: 13px; line-height: 1.8; margin-bottom: 10px; }
.footer-brand .domain-info { font-size: 12px; color: rgba(255,255,255,0.5); }
.footer-col h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 14px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a {
    font-size: 13px;
    color: rgba(255,255,255,0.65);
    transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--primary); }
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    font-size: 12px;
    color: rgba(255,255,255,0.45);
    flex-wrap: wrap;
    gap: 10px;
}
.footer-links { display: flex; gap: 16px; }
.footer-links a { color: rgba(255,255,255,0.45); }
.footer-links a:hover { color: var(--primary); }

/* =============================================
   响应式
   ============================================= */
@media (max-width: 1024px) {
    .video-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-top { grid-template-columns: 1fr 1fr; gap: 20px; }
}

@media (max-width: 900px) {
    .layout-two-col { grid-template-columns: 1fr; }
    .sidebar { position: static; }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-main img { height: 240px; }
    .hero-sub { flex-direction: row; }
    .hero-sub-item img { height: 120px; }
    .layout-three-col { grid-template-columns: repeat(2, 1fr); }
    .review-grid { grid-template-columns: repeat(2, 1fr); }
    .topic-grid { grid-template-columns: repeat(2, 1fr); }
    .author-grid { grid-template-columns: repeat(2, 1fr); }
    .video-grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 62px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 12px;
        border-top: 1px solid var(--border);
        box-shadow: 0 8px 24px rgba(0,0,0,0.1);
        z-index: 99;
        gap: 4px;
    }
    .main-nav.open { display: flex; }
    .main-nav a { padding: 10px 14px; width: 100%; }
    .hamburger { display: flex; }
    .btn-submit { display: none; }
    .video-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-top { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .video-grid { grid-template-columns: 1fr; }
    .layout-three-col { grid-template-columns: 1fr; }
    .review-grid { grid-template-columns: 1fr; }
    .topic-grid { grid-template-columns: 1fr; }
    .author-grid { grid-template-columns: 1fr; }
    .video-grid-3 { grid-template-columns: 1fr; }
    .hero-sub { flex-direction: column; }
    .platform-stats { grid-template-columns: repeat(2, 1fr); }
    .search-bar-inner { flex-direction: column; }
    .footer-bottom { flex-direction: column; text-align: center; }
}
