/* ============================================
   樱花视频 - 主样式
   路径: static/css/style.css
============================================ */

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

:root {
    --pink:        #e8749a;
    --pink-light:  #f4a7c3;
    --pink-pale:   #fff0f5;
    --pink-dark:   #c9547a;
    --accent:      #ff8fab;
    --text-dark:   #2d2d2d;
    --text-mid:    #555566;
    --text-light:  #888899;
    --bg:          #fafafa;
    --bg2:         #ffffff;
    --bg3:         #f7f0f4;
    --border:      #f0dde8;
    --shadow-sm:   0 2px 10px rgba(232,116,154,0.10);
    --shadow-md:   0 4px 20px rgba(232,116,154,0.15);
    --shadow-lg:   0 8px 36px rgba(232,116,154,0.20);
    --radius-sm:   8px;
    --radius:      12px;
    --radius-lg:   18px;
    --transition:  0.25s ease;
    --font:        'PingFang SC','Microsoft YaHei','Helvetica Neue',Arial,sans-serif;
}

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

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

a { color: inherit; text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--pink); }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
ul { list-style: none; }

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

/* ---- 顶部公告栏 ---- */
.top-bar {
    background: linear-gradient(90deg, var(--pink), #f4a7c3);
    padding: 6px 0;
    font-size: 13px;
    color: white;
}
.top-bar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.top-bar-inner {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow: hidden;
    flex: 1;
    min-width: 0;
}
.top-bar-icon { font-size: 14px; flex-shrink: 0; }
.top-bar-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0.95;
    transition: opacity 0.4s ease;
}
.top-bar-links {
    display: flex;
    gap: 14px;
    flex-shrink: 0;
}
.top-bar-links a {
    color: rgba(255,255,255,0.9);
    font-size: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.4);
    padding-bottom: 1px;
}
.top-bar-links a:hover { color: white; border-color: white; }

/* ============================================
   Header / 导航 — 核心修复区域
============================================ */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition);
}
.header.scrolled { box-shadow: var(--shadow-md); }

.header-inner {
    display: flex;
    flex-direction: row;       /* 强制横排 */
    align-items: center;
    gap: 16px;
    padding: 12px 0;
    flex-wrap: nowrap;
}

/* Logo */
.logo {
    display: flex;
    flex-direction: row;       /* 强制横排 */
    align-items: center;
    gap: 9px;
    flex-shrink: 0;
    text-decoration: none;
    white-space: nowrap;
}
.logo-icon { flex-shrink: 0; display: block; }
.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.logo-main {
    font-size: 18px;
    font-weight: 800;
    color: var(--pink);
    letter-spacing: 1px;
    display: block;
}
.logo-sub {
    font-size: 10px;
    color: var(--pink-light);
    letter-spacing: 2px;
    display: block;
}

/* 搜索框 */
.search-box {
    flex: 1;
    max-width: 440px;
    display: flex;
    flex-direction: row;       /* 强制横排 */
    align-items: center;
    background: var(--bg3);
    border: 1.5px solid var(--border);
    border-radius: 50px;
    overflow: hidden;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.search-box:focus-within {
    border-color: var(--pink-light);
    box-shadow: 0 0 0 3px rgba(232,116,154,0.12);
}
.search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 8px 16px;
    font-size: 14px;
    color: var(--text-dark);
    font-family: var(--font);
    min-width: 0;
}
.search-input::placeholder { color: var(--text-light); }
.search-btn {
    background: var(--pink);
    border: none;
    padding: 8px 16px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition);
    flex-shrink: 0;
}
.search-btn:hover { background: var(--pink-dark); }

/* 右侧操作 */
.header-actions {
    display: flex;
    flex-direction: row;       /* 强制横排 */
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    margin-left: auto;
}
.btn-upload {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    background: var(--pink-pale);
    color: var(--pink);
    border: 1.5px solid var(--pink-light);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    transition: all var(--transition);
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
}
.btn-upload:hover {
    background: var(--pink);
    color: white;
    border-color: var(--pink);
}

/* 移动端菜单按钮 — 桌面端隐藏 */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    flex-shrink: 0;
}
.mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-mid);
    border-radius: 2px;
    transition: all var(--transition);
}

/* ============================================
   主导航 — 桌面端始终横排
============================================ */
.main-nav {
    border-top: 1px solid var(--border);
    width: 100%;
}

/* 桌面端：ul 强制横排 */
.main-nav > ul {
    display: flex;
    flex-direction: row;       /* ★ 关键：强制横排 */
    align-items: center;
    flex-wrap: nowrap;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.main-nav > ul::-webkit-scrollbar { display: none; }

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

.main-nav > ul > li > a {
    display: block;
    padding: 10px 14px;
    font-size: 14px;
    color: var(--text-mid);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    white-space: nowrap;
    text-decoration: none;
    line-height: 1.4;
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li.active > a {
    color: var(--pink);
    background: var(--pink-pale);
}

/* 下拉菜单 — 桌面端绝对定位 */
.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    min-width: 130px;
    box-shadow: var(--shadow-md);
    z-index: 9999;
    padding: 6px 0;
    list-style: none;
}
.has-dropdown:hover .dropdown { display: block; }

.dropdown li { list-style: none; }
.dropdown li a {
    display: block;
    padding: 8px 16px;
    font-size: 13px;
    color: var(--text-mid);
    transition: all var(--transition);
    white-space: nowrap;
    text-decoration: none;
}
.dropdown li a:hover {
    color: var(--pink);
    background: var(--pink-pale);
    padding-left: 20px;
}

/* ---- Banner ---- */
.banner-section {
    padding: 20px 0;
    background: white;
    border-bottom: 1px solid var(--border);
}
.banner-wrap {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 16px;
    align-items: stretch;
}
.banner-slider {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 340px;
}
.banner-track {
    display: flex;
    flex-direction: row;
    height: 100%;
    transition: transform 0.5s ease;
}
.banner-slide {
    min-width: 100%;
    position: relative;
    height: 100%;
    flex-shrink: 0;
}
.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.banner-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px 28px 24px;
    background: linear-gradient(transparent, rgba(0,0,0,0.65));
    color: white;
}
.banner-tag {
    display: inline-block;
    background: var(--pink);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 50px;
    margin-bottom: 8px;
}
.banner-info h2 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 6px;
    line-height: 1.3;
}
.banner-info p {
    font-size: 13px;
    opacity: 0.85;
    margin-bottom: 12px;
}
.banner-btn {
    display: inline-block;
    background: var(--pink);
    color: white;
    padding: 7px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    transition: all var(--transition);
    text-decoration: none;
}
.banner-btn:hover { background: var(--pink-dark); color: white; transform: translateY(-1px); }

.banner-prev,
.banner-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.85);
    color: var(--pink);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
    line-height: 1;
}
.banner-prev:hover,
.banner-next:hover { background: var(--pink); color: white; }
.banner-prev { left: 12px; }
.banner-next { right: 12px; }

.banner-dots {
    position: absolute;
    bottom: 12px;
    right: 16px;
    display: flex;
    flex-direction: row;
    gap: 6px;
    z-index: 10;
}
.bdot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all var(--transition);
}
.bdot.active { background: var(--pink); width: 20px; border-radius: 4px; }

/* Banner 侧边 */
.banner-side {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.side-item {
    flex: 1;
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    display: block;
    transition: transform var(--transition);
    min-height: 0;
}
.side-item:hover { transform: translateY(-2px); }
.side-item img { width: 100%; height: 100%; object-fit: cover; }
.side-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px 10px;
    background: linear-gradient(transparent, rgba(0,0,0,0.6));
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
}
.side-info p { font-size: 12px; color: white; font-weight: 600; }
.side-tag {
    font-size: 10px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 50px;
    flex-shrink: 0;
}
.side-tag.hot { background: #ff4757; color: white; }
.side-tag.new { background: var(--pink); color: white; }
.side-tag.live { background: #2ed573; color: white; }

/* ---- 分类快捷导航 ---- */
.category-section {
    padding: 16px 0;
    background: white;
    border-bottom: 1px solid var(--border);
}
.category-grid {
    display: flex;
    flex-direction: row;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
}
.category-grid::-webkit-scrollbar { display: none; }
.cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    padding: 10px 16px;
    border-radius: var(--radius);
    border: 1.5px solid var(--border);
    background: white;
    transition: all var(--transition);
    cursor: pointer;
    text-decoration: none;
    color: var(--text-mid);
    min-width: 80px;
}
.cat-item:hover {
    border-color: var(--pink-light);
    background: var(--pink-pale);
    color: var(--pink);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}
.cat-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}
.cat-item span { font-size: 12px; font-weight: 600; white-space: nowrap; }

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

.section-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.section-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-dark);
    position: relative;
    padding-left: 12px;
    white-space: nowrap;
}
.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: var(--pink);
    border-radius: 2px;
}
.more-link {
    margin-left: auto;
    font-size: 13px;
    color: var(--pink);
    padding: 4px 12px;
    border: 1px solid var(--pink-light);
    border-radius: 50px;
    transition: all var(--transition);
    white-space: nowrap;
    text-decoration: none;
}
.more-link:hover { background: var(--pink); color: white; }

/* 筛选标签 */
.filter-tabs {
    display: flex;
    flex-direction: row;
    gap: 6px;
    flex-wrap: wrap;
}
.filter-tab {
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 13px;
    border: 1px solid var(--border);
    background: white;
    color: var(--text-mid);
    cursor: pointer;
    transition: all var(--transition);
    font-family: var(--font);
    white-space: nowrap;
}
.filter-tab:hover,
.filter-tab.active {
    background: var(--pink);
    border-color: var(--pink);
    color: white;
}

/* ---- 视频卡片 ---- */
.video-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
.video-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all var(--transition);
    cursor: pointer;
}
.video-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--pink-light);
}
.video-thumb {
    position: relative;
    height: 170px;
    overflow: hidden;
    background: var(--bg3);
}
.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.video-card:hover .video-thumb img { transform: scale(1.06); }
.video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition);
}
.video-thumb:hover .video-overlay { opacity: 1; }
.play-circle {
    width: 48px;
    height: 48px;
    background: rgba(232,116,154,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: white;
    transition: transform var(--transition);
}
.play-circle:hover { transform: scale(1.1); }
.video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.65);
    color: white;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
}
.video-quality {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(46,213,115,0.9);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 4px;
}
.video-info {
    display: flex;
    flex-direction: row;
    gap: 10px;
    padding: 10px 12px 12px;
}
.video-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid var(--pink-pale);
}
.video-meta { flex: 1; min-width: 0; }
.video-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 4px;
}
.video-author {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}
.author-name { font-size: 12px; color: var(--text-light); }
.video-views { font-size: 11px; color: var(--text-light); }

/* ---- 热门博主 ---- */
.creator-section { background: var(--bg3); }
.creator-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
.creator-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all var(--transition);
    text-align: center;
}
.creator-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.creator-cover {
    height: 90px;
    overflow: hidden;
    position: relative;
}
.creator-cover img { width: 100%; height: 100%; object-fit: cover; }
.creator-avatar-wrap {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid white;
    margin: -30px auto 0;
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow-sm);
}
.creator-avatar { width: 100%; height: 100%; object-fit: cover; }
.creator-info { padding: 10px 16px 16px; }
.creator-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}
.creator-desc {
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.creator-stats {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 16px;
    font-size: 12px;
    color: var(--text-mid);
    margin-bottom: 12px;
}
.creator-stats strong { color: var(--pink); }
.follow-btn {
    display: inline-block;
    padding: 6px 20px;
    background: var(--pink-pale);
    color: var(--pink);
    border: 1.5px solid var(--pink-light);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    transition: all var(--transition);
    cursor: pointer;
    text-decoration: none;
}
.follow-btn:hover {
    background: var(--pink);
    color: white;
    border-color: var(--pink);
}

/* ---- 排行榜 ---- */
.rank-section { background: white; }
.rank-wrap {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
    align-items: start;
}
.rank-list-panel {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.rank-tabs {
    display: flex;
    flex-direction: row;
    border-bottom: 1px solid var(--border);
}
.rank-tab {
    flex: 1;
    padding: 10px;
    font-size: 14px;
    font-weight: 600;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-mid);
    transition: all var(--transition);
    font-family: var(--font);
    border-bottom: 2px solid transparent;
}
.rank-tab:hover { color: var(--pink); }
.rank-tab.active {
    color: var(--pink);
    border-bottom-color: var(--pink);
    background: var(--pink-pale);
}
.rank-list { padding: 4px 0; list-style: none; }
.rank-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    transition: background var(--transition);
    cursor: pointer;
}
.rank-item:hover { background: var(--pink-pale); }
.rank-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--bg3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-light);
    flex-shrink: 0;
}
.r1 { background: linear-gradient(135deg,#FFD700,#FFA500); color: white; }
.r2 { background: linear-gradient(135deg,#C0C0C0,#909090); color: white; }
.r3 { background: linear-gradient(135deg,#CD7F32,#A0522D); color: white; }
.rank-item img {
    width: 60px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}
.rank-info { flex: 1; min-width: 0; }
.rank-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}
.rank-meta { font-size: 11px; color: var(--text-light); }
.rank-arrow { font-size: 14px; flex-shrink: 0; }

/* 排行精选 */
.rank-featured {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    padding-bottom: 16px;
}
.rank-feat-title {
    padding: 14px 16px 10px;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border);
    margin-bottom: 12px;
}
.rank-feat-card {
    position: relative;
    height: 180px;
    margin: 0 16px 12px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.rank-feat-card img { width: 100%; height: 100%; object-fit: cover; }
.rank-feat-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);
}
.rank-feat-card:hover .rank-feat-overlay { opacity: 1; }
.rank-feat-play {
    background: var(--pink);
    color: white;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}
.rank-feat-play:hover { color: white; }
.rank-featured h4 {
    padding: 0 16px 6px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
}
.rank-featured p {
    padding: 0 16px 10px;
    font-size: 12px;
    color: var(--text-mid);
    line-height: 1.6;
}
.rank-feat-stats {
    display: flex;
    flex-direction: row;
    gap: 12px;
    padding: 0 16px;
    flex-wrap: wrap;
}
.rank-feat-stats span { font-size: 12px; color: var(--text-light); }

/* ---- APP下载 ---- */
.app-section {
    background: linear-gradient(135deg, #fff0f5, #fdf6ff);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.app-wrap {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 60px;
}
.app-left { flex: 1; }
.app-left .app-logo { margin-bottom: 12px; }
.app-left h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 4px;
}
.app-slogan {
    font-size: 14px;
    color: var(--pink);
    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-mid); }
.app-btns {
    display: flex;
    flex-direction: row;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.app-btn {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 7px;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}
.android-btn { background: var(--pink); color: white; }
.android-btn:hover {
    background: var(--pink-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(232,116,154,0.35);
}
.ios-btn { background: var(--text-dark); color: white; }
.ios-btn:hover { background: #444; color: white; transform: translateY(-2px); }
.app-version { font-size: 12px; color: var(--text-light); }
.app-right {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}
.app-mockup {
    width: 200px;
    height: 260px;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
    border: 3px solid var(--pink-light);
}
.app-qr { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.qr-box {
    background: white;
    padding: 8px;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
}
.app-qr p { font-size: 12px; color: var(--text-light); }

/* ---- 最新上传 ---- */
.latest-section { background: var(--bg3); }
.latest-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
}
.latest-card {
    background: white;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all var(--transition);
    cursor: pointer;
}
.latest-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
    border-color: var(--pink-light);
}
.latest-card .video-thumb { height: 120px; }
.latest-info { padding: 8px 10px; }
.latest-info .video-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    margin-bottom: 4px;
}
.latest-time { font-size: 11px; color: var(--text-light); }

/* ---- 文章区 ---- */
.articles-section { background: white; }
.articles-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.article-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}
.article-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--pink-light);
}
.article-large {
    grid-column: span 2;
    flex-direction: row;
}
.article-large .article-img {
    width: 40%;
    flex-shrink: 0;
    min-height: 240px;
    height: auto;
}
.article-img {
    height: 180px;
    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.04); }
.article-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}
.article-meta {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}
.article-tag {
    background: var(--pink-pale);
    color: var(--pink);
    border: 1px solid var(--pink-light);
    padding: 2px 9px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
}
.article-date { font-size: 12px; color: var(--text-light); margin-left: auto; }
.article-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.5;
}
.article-text p {
    font-size: 13px;
    color: var(--text-mid);
    line-height: 1.8;
    margin-bottom: 6px;
}
.article-more {
    display: inline-block;
    color: var(--pink);
    font-size: 13px;
    font-weight: 600;
    margin-top: auto;
    transition: color var(--transition);
    text-decoration: none;
}
.article-more:hover { color: var(--pink-dark); }

/* ---- 页脚 ---- */
.footer { background: #2d2d3a; color: rgba(255,255,255,0.75); }
.footer-top { padding: 48px 0 36px; }
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 36px;
}
.footer-brand .footer-logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 9px;
    margin-bottom: 12px;
}
.footer-brand .footer-logo span {
    font-size: 18px;
    font-weight: 800;
    color: white;
}
.footer-desc {
    font-size: 13px;
    line-height: 1.8;
    margin-bottom: 14px;
    color: rgba(255,255,255,0.6);
}
.footer-contact p {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 5px;
}
.footer-col h4 {
    font-size: 14px;
    font-weight: 700;
    color: white;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 7px; }
.footer-col ul li a {
    font-size: 13px;
    color: rgba(255,255,255,0.55);
    transition: all var(--transition);
    display: inline-block;
    text-decoration: none;
}
.footer-col ul li a:hover {
    color: var(--pink-light);
    padding-left: 4px;
}

/* 友情链接 */
.footer-flink {
    background: rgba(0,0,0,0.2);
    padding: 16px 0;
    border-top: 1px solid rgba(255,255,255,0.07);
    border-bottom: 1px solid rgba(255,255,255,0.07);
}
.flink-title {
    font-size: 13px;
    font-weight: 700;
    color: rgba(255,255,255,0.6);
    margin-bottom: 10px;
}
.flink-wrap ul {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px 14px;
    list-style: none;
}
.flink-wrap ul li a,
.flink-wrap ul a {
    font-size: 12px;
    color: rgba(255,255,255,0.45);
    transition: color var(--transition);
    text-decoration: none;
}
.flink-wrap ul li a:hover,
.flink-wrap ul a:hover { color: var(--pink-light); }

/* 版权底部 */
.footer-bottom {
    padding: 16px 0;
    background: rgba(0,0,0,0.25);
}
.footer-bottom-row {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.copyright p {
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    margin-bottom: 3px;
}
.copyright a { color: var(--pink-light); text-decoration: none; }
.beian {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.beian a {
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    transition: color var(--transition);
    text-decoration: none;
}
.beian a:hover { color: var(--pink-light); }
.beian span { color: rgba(255,255,255,0.25); font-size: 12px; }
.footer-disclaimer {
    font-size: 12px;
    color: rgba(255,255,255,0.3);
    line-height: 1.7;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 10px;
}

/* ---- 回到顶部 ---- */
.back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 40px;
    height: 40px;
    background: var(--pink);
    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 14px rgba(232,116,154,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--pink-dark); transform: translateY(-3px); }

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

/* ---- 桌面端强制横排保障（≥769px）---- */
@media (min-width: 769px) {
    .mobile-menu-btn { display: none !important; }

    .main-nav { display: block !important; }

    .main-nav > ul {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
    }

    .main-nav > ul > li {
        width: auto !important;
    }

    .main-nav > ul > li > a {
        border-bottom: none !important;
        border-radius: var(--radius-sm) !important;
        padding: 10px 14px !important;
    }

    .dropdown {
        position: absolute !important;
        display: none !important;
    }

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

    .has-dropdown.open .dropdown {
        display: none !important;
    }
}

/* ---- 1100px 以下 ---- */
@media (max-width: 1100px) {
    .video-grid { grid-template-columns: repeat(3, 1fr); }
    .latest-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
    .footer-brand { grid-column: span 3; }
    .rank-wrap { grid-template-columns: 1fr; }
    .rank-featured { display: none; }
}

/* ---- 900px 以下 ---- */
@media (max-width: 900px) {
    .banner-wrap { grid-template-columns: 1fr; }
    .banner-side {
        flex-direction: row;
        height: 100px;
    }
    .banner-slider { height: 260px; }
    .creator-grid { grid-template-columns: repeat(2, 1fr); }
    .app-wrap { flex-direction: column; gap: 28px; }
    .app-right { flex-direction: row; align-items: center; gap: 16px; }
    .app-mockup { width: 150px; height: 200px; }
    .articles-grid { grid-template-columns: 1fr; }
    .article-large {
        flex-direction: column;
        grid-column: span 1;
    }
    .article-large .article-img { width: 100%; min-height: 200px; }
    .app-features { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: span 2; }
}

/* ---- 768px 以下（移动端）---- */
@media (max-width: 768px) {
    /* 显示汉堡按钮 */
    .mobile-menu-btn { display: flex !important; }

    /* 搜索框缩小 */
    .search-box { max-width: 200px; }

    /* 投稿按钮隐藏文字 */
    .btn-upload span { display: none; }
    .btn-upload { padding: 7px 10px; }

    /* 导航默认隐藏 */
    .main-nav {
        display: none !important;
        border-top: none;
    }
    .main-nav.open {
        display: block !important;
        border-top: 1px solid var(--border);
    }

    /* 移动端竖排 */
    .main-nav > ul {
        flex-direction: column !important;
        flex-wrap: wrap !important;
        overflow-x: visible !important;
    }
    .main-nav > ul > li {
        width: 100% !important;
        flex-shrink: 1 !important;
    }
    .main-nav > ul > li > a {
        padding: 11px 16px !important;
        border-radius: 0 !important;
        border-bottom: 1px solid var(--border) !important;
    }

    /* 移动端下拉变静态 */
    .dropdown {
        position: static !important;
        display: none !important;
        box-shadow: none !important;
        border: none !important;
        border-radius: 0 !important;
        background: var(--bg3) !important;
        padding-left: 16px !important;
        min-width: unset !important;
        z-index: auto !important;
    }
    .has-dropdown.open .dropdown {
        display: block !important;
    }
    .has-dropdown:hover .dropdown {
        display: none !important;
    }
    .has-dropdown.open:hover .dropdown {
        display: block !important;
    }

    /* 其他布局调整 */
    .video-grid { grid-template-columns: repeat(2, 1fr); }
    .latest-grid { grid-template-columns: repeat(2, 1fr); }
    .creator-grid { grid-template-columns: repeat(2, 1fr); }
    .top-bar-links { display: none; }
    .section-header { flex-wrap: wrap; }
    .banner-side { display: none; }
    .banner-wrap { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: span 2; }
    .footer-bottom-row { flex-direction: column; }
}

/* ---- 480px 以下（小屏手机）---- */
@media (max-width: 480px) {
    .video-grid { grid-template-columns: 1fr; }
    .latest-grid { grid-template-columns: repeat(2, 1fr); }
    .creator-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-brand { grid-column: auto; }
    .category-grid { gap: 6px; }
    .cat-item { min-width: 68px; padding: 8px 10px; }
    .logo-sub { display: none; }
    .search-box { max-width: 150px; }
    .app-right { flex-direction: column; }
    .banner-slider { height: 200px; }
    .banner-info h2 { font-size: 15px; }
    .banner-info p { display: none; }
    .section { padding: 28px 0; }
    .section-title { font-size: 17px; }
}
