/* =====================================================
   幕间 全局样式 - 响应式设计
   PC端优先，移动端适配
   ===================================================== */

:root {
    --primary: #00a1d6;
    --primary-light: #33b5e0;
    --pink: #fb7299;
    --text: #18191c;
    --text-secondary: #61666d;
    --text-light: #9499a0;
    --bg: #f6f7f8;
    --card-bg: #fff;
    --border: #e3e5e7;
    --radius: 8px;
    --shadow: 0 2px 12px rgba(0,0,0,.08);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-light); }
img { max-width: 100%; display: block; }

/* ========== 导航栏 ========== */
.navbar {
    background: var(--card-bg);
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    position: sticky;
    top: 0;
    z-index: 100;
}
.navbar-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    height: 56px;
    display: flex;
    align-items: center;
    gap: 24px;
}
.logo {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
}
.nav-links {
    display: flex;
    gap: 20px;
    list-style: none;
}
.nav-links a {
    color: var(--text);
    font-size: 14px;
}
.nav-links a:hover { color: var(--primary); }
.search-box {
    flex: 1;
    max-width: 400px;
    margin: 0 auto;
    position: relative;
}
.search-box input {
    width: 100%;
    height: 36px;
    padding: 0 40px 0 16px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--bg);
    outline: none;
    font-size: 14px;
}
.search-box input:focus {
    border-color: var(--primary);
    background: #fff;
}
.search-btn {
    position: absolute;
    right: 4px;
    top: 4px;
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--text-secondary);
}
.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}
.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}
.btn {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 18px;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: all .2s;
}
.btn-primary {
    background: var(--primary);
    color: #fff;
}
.btn-primary:hover { background: var(--primary-light); color: #fff; }
.btn-outline {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}
.btn-pink {
    background: var(--pink);
    color: #fff;
}

/* ========== 容器 ========== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* ========== 分区导航 ========== */
.category-nav {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 12px 0;
    margin-bottom: 20px;
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 12px 16px;
}
.category-nav a {
    padding: 6px 16px;
    border-radius: 16px;
    font-size: 14px;
    color: var(--text-secondary);
    white-space: nowrap;
}
.category-nav a:hover, .category-nav a.active {
    background: var(--primary);
    color: #fff;
}

/* ========== 视频卡片网格 ========== */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}
.video-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .2s, box-shadow .2s;
    cursor: pointer;
}
.video-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}
.video-cover {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: #eee;
}
.video-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}
.video-card:hover .video-cover img {
    transform: scale(1.05);
}
.video-duration {
    position: absolute;
    right: 8px;
    bottom: 8px;
    background: rgba(0,0,0,.6);
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
}
.video-title {
    padding: 10px 12px 4px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.video-meta {
    padding: 0 12px 12px;
    font-size: 12px;
    color: var(--text-light);
    display: flex;
    justify-content: space-between;
}
.up-info {
    display: flex;
    align-items: center;
    gap: 6px;
}
.up-info .avatar {
    width: 20px;
    height: 20px;
}

/* ========== 视频播放页 ========== */
.player-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 20px;
}
.player-wrapper {
    background: #000;
    border-radius: var(--radius);
    aspect-ratio: 16/9;
    position: relative;
    overflow: hidden;
}
.player-wrapper video {
    width: 100%;
    height: 100%;
}
.danmaku-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 10;
}
.danmaku-item {
    position: absolute;
    white-space: nowrap;
    color: #fff;
    font-size: 20px;
    text-shadow: 0 0 2px #000;
    animation: danmaku-scroll linear forwards;
}
@keyframes danmaku-scroll {
    from { transform: translateX(100%); }
    to { transform: translateX(-100%); }
}

.video-info {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 16px;
    margin-top: 16px;
}
.video-title-full {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}
.video-stats {
    display: flex;
    gap: 20px;
    color: var(--text-light);
    font-size: 13px;
    margin-bottom: 16px;
}

/* UP主信息 */
.up-section {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid var(--border);
}
.up-section .avatar {
    width: 48px;
    height: 48px;
}
.up-name {
    font-weight: 600;
}
.up-fans {
    font-size: 12px;
    color: var(--text-light);
}
.follow-btn {
    margin-left: auto;
}

/* 互动按钮 */
.action-bar {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid var(--border);
}
.action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 18px;
    background: var(--bg);
    color: var(--text-secondary);
    cursor: pointer;
    border: none;
    font-size: 14px;
    transition: all .2s;
}
.action-btn:hover, .action-btn.active {
    background: var(--primary);
    color: #fff;
}

/* 评论区 */
.comment-section {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 16px;
    margin-top: 16px;
}
.comment-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}
.comment-item .avatar {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}
.comment-content {
    flex: 1;
}
.comment-author {
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 14px;
}
.comment-text {
    margin: 4px 0;
    font-size: 14px;
}
.comment-time {
    font-size: 12px;
    color: var(--text-light);
}

/* 右侧推荐列表 */
.recommend-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.recommend-item {
    display: flex;
    gap: 10px;
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 8px;
    cursor: pointer;
    transition: transform .2s;
}
.recommend-item:hover { transform: translateX(4px); }
.recommend-item .cover {
    width: 120px;
    aspect-ratio: 16/10;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}
.recommend-item .cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.recommend-item .info {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.recommend-item .title {
    font-size: 13px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.recommend-item .meta {
    margin-top: auto;
    font-size: 12px;
    color: var(--text-light);
}

/* ========== 表单页 ========== */
.auth-container {
    max-width: 400px;
    margin: 60px auto;
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
}
.auth-container h2 {
    text-align: center;
    margin-bottom: 24px;
}
.form-group {
    margin-bottom: 16px;
}
.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    color: var(--text-secondary);
}
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    outline: none;
}
.form-group input:focus {
    border-color: var(--primary);
}
.error-msg {
    color: #e74c3c;
    font-size: 14px;
    text-align: center;
    margin-bottom: 16px;
}

/* ========== 用户空间 ========== */
.space-header {
    background: linear-gradient(135deg, var(--primary), var(--pink));
    border-radius: var(--radius);
    padding: 40px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}
.space-header .avatar {
    width: 80px;
    height: 80px;
    border: 3px solid rgba(255,255,255,.5);
}
.space-name {
    font-size: 24px;
    font-weight: 700;
}
.space-stats {
    display: flex;
    gap: 24px;
    margin-top: 8px;
    font-size: 14px;
    opacity: .9;
}

/* ========== 页脚 ========== */
.footer {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
    font-size: 13px;
    margin-top: 40px;
}

/* =====================================================
   移动端适配 (<= 768px)
   ===================================================== */
@media (max-width: 768px) {
    .navbar-inner {
        padding: 0 12px;
        gap: 12px;
    }
    .nav-links { display: none; }
    .search-box { max-width: none; }
    
    .container { padding: 12px; }
    
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .player-layout {
        grid-template-columns: 1fr;
    }
    .recommend-panel { display: none; }
    
    .up-section { flex-wrap: wrap; }
    .action-bar { 
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .space-header {
        padding: 20px;
        flex-direction: column;
        text-align: center;
    }
    .space-header .avatar {
        width: 64px;
        height: 64px;
    }
    
    .auth-container {
        margin: 20px;
        padding: 24px;
    }
    
    .video-stats {
        flex-wrap: wrap;
        gap: 12px;
    }
}

/* 平板适配 */
@media (min-width: 769px) and (max-width: 1024px) {
    .video-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .player-layout {
        grid-template-columns: 1fr 280px;
    }
}

/* =====================================================
   扩展样式 - 轮播/公告/排行/用户中心/私信/动态/答题等
   ===================================================== */

/* 轮播图 */
.banner-wrap { position: relative; border-radius: 12px; overflow: hidden; margin-bottom: 20px; }
.banner-track { display: flex; transition: transform .5s ease; }
.banner-item { min-width: 100%; position: relative; }
.banner-item img { width: 100%; aspect-ratio: 24/7; object-fit: cover; display: block; }
.banner-item .banner-title { position: absolute; left: 20px; bottom: 16px; color: #fff; font-size: 20px; font-weight: 600; text-shadow: 0 2px 8px rgba(0,0,0,.5); }
.banner-dots { position: absolute; right: 16px; bottom: 12px; display: flex; gap: 6px; }
.banner-dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.5); cursor: pointer; }
.banner-dots span.active { background: #fff; }
.banner-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; background: rgba(0,0,0,.4); color: #fff; border: none; border-radius: 50%; font-size: 18px; cursor: pointer; z-index: 2; }
.banner-arrow.prev { left: 12px; }
.banner-arrow.next { right: 12px; }

/* 公告栏 */
.announcement-bar { background: linear-gradient(90deg,#fff7f0,#fff); border: 1px solid #ffe0c2; border-radius: 8px; padding: 10px 16px; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; font-size: 14px; }
.announcement-bar .tag { background: #fb7299; color: #fff; font-size: 12px; padding: 2px 8px; border-radius: 4px; flex-shrink: 0; }

/* 首页布局 */
.home-layout { display: grid; grid-template-columns: 1fr 260px; gap: 20px; }
.home-main { min-width: 0; }
.home-side { min-width: 0; }

/* 排行榜 */
.rank-card { background: #fff; border-radius: 10px; padding: 16px; box-shadow: var(--shadow); }
.rank-card h3 { font-size: 16px; margin-bottom: 12px; }
.rank-item { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid #f0f1f2; }
.rank-item:last-child { border-bottom: none; }
.rank-item .rank-num { width: 22px; height: 22px; border-radius: 4px; text-align: center; line-height: 22px; font-size: 13px; font-weight: 600; background: #f1f2f3; color: #61666d; flex-shrink: 0; }
.rank-item:nth-child(-n+3) .rank-num { background: #fb7299; color: #fff; }
.rank-item img { width: 64px; aspect-ratio: 16/9; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.rank-item .rank-title { font-size: 13px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.rank-item .rank-views { font-size: 12px; color: var(--text-light); flex-shrink: 0; }

/* 分区导航 */
.category-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.category-nav a { padding: 6px 16px; border-radius: 20px; background: #fff; color: var(--text); font-size: 14px; border: 1px solid var(--border); }
.category-nav a:hover { color: var(--pink); border-color: var(--pink); }
.category-nav a.active { background: var(--pink); color: #fff; border-color: var(--pink); }

/* 分区标题 */
.section-title { display: flex; align-items: center; gap: 8px; margin: 24px 0 14px; font-size: 18px; font-weight: 600; }
.section-title::before { content: ''; width: 4px; height: 18px; background: var(--pink); border-radius: 2px; }
.section-title .more { margin-left: auto; font-size: 13px; color: var(--text-light); font-weight: 400; }

/* 用户中心 */
.user-center-header { background: #fff; border-radius: 12px; padding: 24px; display: flex; gap: 20px; align-items: center; box-shadow: var(--shadow); margin-bottom: 20px; }
.user-center-header .avatar-lg { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.user-center-header .uc-name { font-size: 20px; font-weight: 600; }
.user-center-header .uc-meta { color: var(--text-secondary); font-size: 13px; margin-top: 4px; }
.user-center-header .uc-stats { display: flex; gap: 24px; margin-left: auto; }
.user-center-header .uc-stats .stat { text-align: center; }
.user-center-header .uc-stats .stat b { display: block; font-size: 20px; color: var(--text); }
.user-center-header .uc-stats .stat span { font-size: 12px; color: var(--text-light); }

.uc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.uc-grid a.uc-item { background: #fff; border-radius: 10px; padding: 20px 14px; text-align: center; box-shadow: var(--shadow); transition: transform .2s; }
.uc-grid a.uc-item:hover { transform: translateY(-3px); }
.uc-grid .uc-icon { font-size: 28px; margin-bottom: 8px; }
.uc-grid .uc-label { font-size: 14px; color: var(--text); }
.uc-grid .uc-desc { font-size: 12px; color: var(--text-light); margin-top: 2px; }

/* 个人资料表单 */
.settings-form { max-width: 480px; }
.settings-form .form-group { margin-bottom: 20px; }
.settings-form label { display: block; font-size: 14px; color: var(--text-secondary); margin-bottom: 8px; }
.settings-form input, .settings-form textarea, .settings-form select { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; outline: none; }
.settings-form input:focus, .settings-form textarea:focus { border-color: var(--primary); }
.settings-form .avatar-preview { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; margin-bottom: 10px; }

/* 签到页 */
.checkin-card { background: #fff; border-radius: 12px; padding: 24px; box-shadow: var(--shadow); max-width: 640px; margin: 0 auto; }
.checkin-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin: 20px 0; }
.checkin-day { text-align: center; padding: 12px 4px; border-radius: 8px; background: #f6f7f8; }
.checkin-day.done { background: #e8f7ff; color: var(--primary); }
.checkin-day.today { border: 2px solid var(--pink); }
.checkin-day .day-label { font-size: 12px; color: var(--text-light); }
.checkin-day .day-coin { font-size: 14px; font-weight: 600; color: var(--text); margin-top: 4px; }
.checkin-day.done .day-coin { color: var(--primary); }
.checkin-calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 16px; }
.checkin-calendar .cal-day { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; font-size: 12px; border-radius: 6px; background: #f6f7f8; color: var(--text-light); }
.checkin-calendar .cal-day.signed { background: #e8f7ff; color: var(--primary); font-weight: 600; }
.checkin-calendar .cal-day.today { border: 1px solid var(--pink); }

/* 答题 */
.quiz-card { background: #fff; border-radius: 12px; padding: 24px; box-shadow: var(--shadow); max-width: 640px; margin: 0 auto; }
.quiz-progress { margin-bottom: 16px; }
.quiz-option { display: block; width: 100%; text-align: left; padding: 12px 16px; margin-bottom: 10px; border: 1px solid var(--border); border-radius: 8px; cursor: pointer; background: #fff; font-size: 14px; transition: all .2s; }
.quiz-option:hover { border-color: var(--primary); background: #f0f9ff; }
.quiz-option.selected { border-color: var(--primary); background: #e8f7ff; color: var(--primary); }
.quiz-option.correct { border-color: #52c41a; background: #f6ffed; color: #52c41a; }
.quiz-option.wrong { border-color: #ff4d4f; background: #fff2f0; color: #ff4d4f; }

/* 私信 */
.message-layout { display: grid; grid-template-columns: 260px 1fr; height: calc(100vh - 180px); background: #fff; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.message-list { border-right: 1px solid var(--border); overflow-y: auto; }
.message-list-item { padding: 14px 16px; display: flex; gap: 10px; align-items: center; cursor: pointer; border-bottom: 1px solid #f5f6f7; }
.message-list-item:hover, .message-list-item.active { background: #f6f7f8; }
.message-list-item img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.message-list-item .ml-name { font-size: 14px; font-weight: 500; }
.message-list-item .ml-preview { font-size: 12px; color: var(--text-light); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 150px; }
.message-chat { display: flex; flex-direction: column; }
.message-chat-header { padding: 14px 20px; border-bottom: 1px solid var(--border); font-weight: 600; }
.message-body { flex: 1; overflow-y: auto; padding: 20px; }
.msg-bubble { max-width: 60%; padding: 10px 14px; border-radius: 10px; margin-bottom: 12px; font-size: 14px; line-height: 1.5; }
.msg-bubble.mine { background: var(--primary); color: #fff; margin-left: auto; border-bottom-right-radius: 2px; }
.msg-bubble.theirs { background: #f1f2f3; color: var(--text); border-bottom-left-radius: 2px; }
.msg-input-bar { padding: 12px 20px; border-top: 1px solid var(--border); display: flex; gap: 10px; }
.msg-input-bar input { flex: 1; padding: 10px 14px; border: 1px solid var(--border); border-radius: 20px; outline: none; }

/* 动态 */
.feed-list { max-width: 640px; }
.feed-item { background: #fff; border-radius: 12px; padding: 16px; margin-bottom: 14px; box-shadow: var(--shadow); }
.feed-header { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.feed-header img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.feed-name { font-size: 14px; font-weight: 500; }
.feed-time { font-size: 12px; color: var(--text-light); }
.feed-content { font-size: 14px; line-height: 1.7; color: var(--text); }
.feed-publish { background: #fff; border-radius: 12px; padding: 16px; margin-bottom: 20px; box-shadow: var(--shadow); }
.feed-publish textarea { width: 100%; border: none; outline: none; resize: none; font-size: 14px; min-height: 80px; font-family: inherit; }

/* 通知 */
.notification-list { max-width: 640px; }
.notification-item { background: #fff; border-radius: 10px; padding: 14px 16px; margin-bottom: 10px; box-shadow: var(--shadow); display: flex; gap: 12px; align-items: flex-start; }
.notification-item.unread { border-left: 3px solid var(--pink); }
.notification-item img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.notification-item .nt-content { font-size: 14px; flex: 1; }
.notification-item .nt-time { font-size: 12px; color: var(--text-light); }

/* 创作中心 */
.creator-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.creator-stat { background: #fff; border-radius: 10px; padding: 20px; text-align: center; box-shadow: var(--shadow); }
.creator-stat b { font-size: 24px; color: var(--text); display: block; }
.creator-stat span { font-size: 12px; color: var(--text-light); }

/* 空状态 */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-light); }
.empty-state .empty-icon { font-size: 48px; margin-bottom: 12px; }

/* 通用卡片页 */
.page-card { background: #fff; border-radius: 12px; padding: 20px; box-shadow: var(--shadow); margin-bottom: 16px; }
.page-card h3 { margin-bottom: 16px; font-size: 16px; }

/* 三连动效 */
.triple-btn { transition: transform .15s; }
.triple-btn:active { transform: scale(.9); }
.coin-fly { position: fixed; pointer-events: none; z-index: 9999; animation: coinFly 1s ease-out forwards; font-size: 24px; }
@keyframes coinFly {
    0% { opacity: 1; transform: translate(0,0) scale(.5); }
    100% { opacity: 0; transform: translate(var(--fx,0),-120px) scale(1.4); }
}

/* 移动端适配补充 */
@media (max-width: 768px) {
    .home-layout { grid-template-columns: 1fr; }
    .home-side { display: none; }
    .banner-item img { aspect-ratio: 16/6; }
    .uc-grid { grid-template-columns: repeat(2, 1fr); }
    .user-center-header { flex-wrap: wrap; }
    .user-center-header .uc-stats { width: 100%; justify-content: space-around; margin: 12px 0 0; }
    .creator-stats { grid-template-columns: repeat(2, 1fr); }
    .message-layout { grid-template-columns: 1fr; height: auto; }
    .message-list { max-height: 180px; border-right: none; border-bottom: 1px solid var(--border); }
    .message-chat { min-height: 60vh; }
    .msg-bubble { max-width: 80%; }
    .checkin-week { gap: 4px; }
    .checkin-day { padding: 8px 2px; }
}
@media (min-width: 769px) and (max-width: 1024px) {
    .uc-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ============ 排行榜 ============ */
.rank-tabs { display:flex; gap:8px; flex-wrap:wrap; margin:14px 0 18px; }
.rank-tab {
    padding:6px 14px; border-radius:16px; font-size:13px;
    background:var(--bg); color:var(--text-secondary); text-decoration:none;
    transition:all .2s;
}
.rank-tab:hover { color:var(--primary); }
.rank-tab.active { background:var(--primary); color:#fff; }
.rank-num.top { color:var(--pink); font-weight:700; }
.rank-up { font-size:12px; color:var(--text-light); margin-top:2px; }

/* ============ 番剧 ============ */
.bangumi-head { display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; }

/* ============ 话题 ============ */
.topic-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:14px; }
.topic-card {
    display:flex; gap:12px; padding:12px; border-radius:10px;
    background:var(--bg); text-decoration:none; color:inherit;
    transition:transform .2s, box-shadow .2s;
}
.topic-card:hover { transform:translateY(-2px); box-shadow:var(--shadow); }
.topic-cover { width:88px; height:64px; border-radius:8px; overflow:hidden; flex:none; }
.topic-cover img { width:100%; height:100%; object-fit:cover; display:block; }
.topic-info { min-width:0; }
.topic-name { font-size:14px; font-weight:600; color:var(--primary); }
.topic-desc { font-size:12px; color:var(--text-secondary); margin:4px 0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.topic-meta { font-size:12px; color:var(--text-light); }
.topic-detail-head { text-align:center; padding:10px 0; }
.topic-name-big { font-size:22px; font-weight:700; color:var(--primary); }
.topic-desc-big { font-size:14px; color:var(--text-secondary); margin:8px 0; }
.topic-meta { font-size:13px; color:var(--text-light); }

/* ============ 钱包 / 订单 ============ */
.wallet-cards { display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:14px; }
.wallet-card { background:var(--bg); border-radius:10px; padding:18px; }
.wallet-label { font-size:13px; color:var(--text-secondary); }
.wallet-value { font-size:26px; font-weight:700; color:var(--primary); margin-top:6px; }
.data-table { width:100%; border-collapse:collapse; font-size:13px; }
.data-table thead th {
    text-align:left; padding:10px 8px; color:var(--text-secondary);
    border-bottom:1px solid var(--border); font-weight:500; white-space:nowrap;
}
.data-table tbody td { padding:10px 8px; border-bottom:1px solid var(--border); color:var(--text); }
.data-table tbody tr:hover { background:var(--bg); }

/* ============ 充电 ============ */
.charge-up { display:flex; align-items:center; gap:16px; flex-wrap:wrap; }
.up-desc { font-size:13px; color:var(--text-secondary); margin-top:4px; }
.up-fans { font-size:12px; color:var(--text-light); margin-top:6px; }
.level-badge {
    display:inline-block; font-size:11px; padding:1px 6px; border-radius:4px;
    background:var(--primary); color:#fff; vertical-align:middle;
}
.charge-amounts { display:flex; gap:10px; flex-wrap:wrap; margin:8px 0 16px; }
.charge-amount {
    flex:1 1 60px; min-width:60px; padding:12px 0; border-radius:8px;
    border:1px solid var(--border); background:var(--card-bg); color:var(--text);
    font-size:15px; font-weight:600; cursor:pointer; transition:all .2s;
}
.charge-amount:hover { border-color:var(--pink); color:var(--pink); }
.charge-amount.active { border-color:var(--pink); background:var(--pink); color:#fff; }
.charge-list { display:flex; flex-direction:column; gap:2px; }
.charge-item {
    display:flex; align-items:center; gap:10px; padding:10px 4px;
    border-bottom:1px solid var(--border); font-size:13px;
}
.charge-user { flex:1; color:var(--text); }
.charge-amount-text { color:var(--pink); font-weight:600; }
.charge-time { color:var(--text-light); font-size:12px; }

/* ============ 帮助中心 ============ */
.help-list { display:flex; flex-direction:column; gap:14px; }
.help-item { background:var(--bg); border-radius:10px; padding:16px; }
.help-q { font-size:15px; font-weight:600; color:var(--text); margin-bottom:8px; }
.help-a { font-size:13px; color:var(--text-secondary); line-height:1.9; }
.notice-item { padding:12px 0; border-bottom:1px solid var(--border); }
.notice-title { font-size:14px; font-weight:600; }
.notice-content { font-size:13px; color:var(--text-secondary); margin:6px 0; line-height:1.8; }
.notice-time { font-size:12px; color:var(--text-light); }

/* ============ 新页面移动端适配 ============ */
@media (max-width: 768px) {
    .topic-grid { grid-template-columns:1fr; }
    .wallet-cards { grid-template-columns:1fr 1fr; }
    .charge-up { flex-direction:column; align-items:flex-start; }
    .data-table { font-size:12px; }
    .data-table thead th, .data-table tbody td { padding:8px 4px; }
    .rank-tabs { gap:6px; }
    .rank-tab { padding:5px 10px; font-size:12px; }
}

/* ============ v1.3.1 头像框 / 关系列表 / 投稿 / 支付 ============ */
.frame-none { box-shadow: none; }
.frame-blue { box-shadow: 0 0 0 3px #00a1d6; }
.frame-pink { box-shadow: 0 0 0 3px #fb7299; }
.frame-purple { box-shadow: 0 0 0 3px #8a5cf5; }
.frame-gold { box-shadow: 0 0 0 3px #f5b400; }
.frame-neon { box-shadow: 0 0 0 3px #00e0c6, 0 0 12px rgba(0, 224, 198, .55); }

.frame-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 16px; margin-top: 20px; }
.frame-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; padding: 18px 12px 14px; text-align: center; transition: border-color .2s, box-shadow .2s; }
.frame-card.equipped { border-color: var(--pink); box-shadow: 0 0 0 2px rgba(251, 114, 153, .16); }
.frame-avatar-wrap { display: flex; justify-content: center; margin-bottom: 12px; }
.frame-avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; display: block; }
.frame-name { font-size: 14px; font-weight: 600; }
.frame-price { font-size: 12px; color: var(--text-secondary); margin: 6px 0 10px; }
.tag-owned { color: #52c41a; }
.frame-btn { width: 100%; }
.coin-pill { background: #fff7e6; color: #ad6800; padding: 8px 14px; border-radius: 20px; font-size: 13px; }

.relation-tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--border); margin-bottom: 18px; }
.rel-tab { padding: 10px 16px; font-size: 14px; color: var(--text-secondary); text-decoration: none; border-bottom: 2px solid transparent; }
.rel-tab.active { color: var(--pink); border-bottom-color: var(--pink); font-weight: 600; }

.user-list { display: flex; flex-direction: column; gap: 2px; }
.user-row { display: flex; align-items: center; gap: 12px; padding: 14px 8px; border-bottom: 1px solid var(--border); }
.user-row:last-child { border-bottom: 0; }

.upload-list { display: flex; flex-direction: column; gap: 2px; }
.upload-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.upload-title { font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 18px; }
.stat-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 10px; padding: 16px; text-align: center; }
.stat-num { font-size: 20px; font-weight: 700; }
.stat-label { font-size: 12px; color: var(--text-secondary); margin-top: 4px; }

.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 24px; }
.page-item { padding: 6px 12px; border: 1px solid var(--border); border-radius: 6px; color: var(--text-secondary); text-decoration: none; font-size: 13px; }
.page-item.active { background: var(--pink); border-color: var(--pink); color: #fff; }

.pay-methods { display: flex; gap: 12px; }
.pay-method { flex: 1; display: flex; align-items: center; gap: 10px; padding: 14px; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; transition: .2s; }
.pay-method.active { border-color: var(--pink); background: rgba(251, 114, 153, .05); }
.pay-ico { width: 28px; height: 28px; border-radius: 6px; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; }
.pay-tip { margin-top: 14px; padding: 12px; background: #fffbe6; border: 1px solid #ffe58f; border-radius: 8px; font-size: 12px; color: #874d00; line-height: 1.7; }

@media (max-width: 768px) {
  .frame-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
  .upload-row img { width: 120px !important; height: 68px !important; }
  .pay-methods { flex-direction: column; }
}

.space-medals { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.fan-medal { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 12px; color: #fff; opacity: .95; }

/* 动态点赞与评论 */
.feed-actions { display: flex; gap: 22px; margin-top: 10px; font-size: 13px; color: var(--text-secondary); }
.feed-like, .feed-cmt { cursor: pointer; user-select: none; display: inline-flex; align-items: center; gap: 4px; }
.feed-like.active { color: var(--pink); }
.feed-comment-box { margin-top: 12px; border-top: 1px solid var(--border); padding-top: 12px; }
.feed-cmt-row { display: flex; gap: 10px; padding: 8px 0; font-size: 13px; }
.feed-cmt-row img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.feed-cmt-name { font-weight: 600; margin-bottom: 2px; font-size: 12px; color: var(--text-secondary); }
.feed-cmt-input { display: flex; gap: 8px; margin-top: 10px; }
.feed-cmt-input input { flex: 1; padding: 8px 12px; border: 1px solid var(--border); border-radius: 6px; font-size: 13px; }
.feed-cmt-empty, .feed-cmt-loading { color: var(--text-secondary); font-size: 13px; padding: 6px 0; }

/* ===== 番剧体系 v1.3.2 ===== */
.bg-tabs{display:flex;gap:8px;}
.bg-tabs a{padding:5px 14px;border-radius:15px;background:#f1f2f4;color:#61666d;font-size:13px;text-decoration:none;}
.bg-tabs a.active{background:#fb7299;color:#fff;}
.bg-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:16px;margin-top:16px;}
.bg-card{min-width:0;}
.bg-cover{display:block;position:relative;aspect-ratio:3/4;border-radius:10px;overflow:hidden;background:#eef0f3;}
.bg-cover img{width:100%;height:100%;object-fit:cover;}
.bg-cover-ph{width:100%;height:100%;display:flex;align-items:center;justify-content:center;background:#fb7299;color:#fff;font-size:34px;font-weight:700;}
.bg-status{position:absolute;left:8px;bottom:8px;background:rgba(0,161,214,.92);color:#fff;font-size:11px;padding:2px 7px;border-radius:3px;}
.bg-status.done{background:rgba(97,102,109,.88);}
.bg-title{margin-top:8px;font-size:13px;line-height:1.4;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;}
.bg-meta{display:flex;align-items:center;justify-content:space-between;margin-top:6px;font-size:11px;color:#61666d;gap:6px;}
.bg-btn{border:0;background:#fb7299;color:#fff;font-size:11px;padding:4px 10px;border-radius:12px;cursor:pointer;white-space:nowrap;}
.bg-btn.on{background:#f1f2f4;color:#61666d;}
.bg-btn.large{font-size:14px;padding:9px 26px;border-radius:20px;}
.bg-btn.ghost{background:#f1f2f4;color:#61666d;text-decoration:none;display:inline-flex;align-items:center;}
.bg-detail{display:flex;gap:24px;align-items:flex-start;}
.bg-detail-cover{width:220px;flex-shrink:0;aspect-ratio:3/4;border-radius:12px;overflow:hidden;background:#eef0f3;}
.bg-detail-cover img{width:100%;height:100%;object-fit:cover;}
.bg-cover-ph.big{font-size:56px;}
.bg-detail-info{flex:1;min-width:0;}
.bg-detail-title{font-size:22px;margin:0;line-height:1.3;}
.bg-detail-sub{color:#61666d;font-size:13px;margin-top:8px;}
.bg-detail-tags{display:flex;gap:8px;margin-top:12px;flex-wrap:wrap;}
.bg-tag{background:rgba(0,161,214,.1);color:#00a1d6;font-size:12px;padding:3px 10px;border-radius:4px;}
.bg-tag.done,.bg-tag.ghost{background:#f1f2f4;color:#61666d;}
.bg-tag.score{background:rgba(251,114,153,.1);color:#fb7299;font-weight:600;}
.bg-detail-stat{display:flex;gap:20px;color:#61666d;font-size:13px;margin-top:14px;}
.bg-detail-desc{margin-top:14px;font-size:13px;line-height:1.7;color:#333;}
.bg-detail-actions{display:flex;gap:12px;margin-top:20px;}
.bg-eps{margin-top:26px;border-top:1px solid #e3e5e7;padding-top:18px;}
.bg-ep-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(52px,1fr));gap:8px;margin-top:12px;}
.bg-ep{height:38px;border-radius:6px;background:#f7f8fa;display:flex;align-items:center;justify-content:center;font-size:13px;color:#18191c;cursor:pointer;}
.bg-ep:hover{background:#fb7299;color:#fff;}
.bg-ep.locked{background:#f1f2f4;color:#c0c3c9;cursor:not-allowed;}
@media (max-width:768px){
  .bg-detail{flex-direction:column;}
  .bg-detail-cover{width:150px;}
  .bg-grid{grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:12px;}
}

/* ===== 动态转发 v1.3.2 ===== */
.feed-origin{margin-top:8px;padding:10px 12px;background:#f7f8fa;border-radius:8px;border-left:3px solid #fb7299;}
.feed-origin-head{font-size:12px;color:#00a1d6;margin-bottom:4px;}
.feed-origin-body{font-size:13px;color:#61666d;line-height:1.6;}
.feed-repost{cursor:pointer;}

/* ===== 全站头像框容器 v1.3.2 ===== */
.av-wrap{display:inline-flex;position:relative;line-height:0;border-radius:50%;flex-shrink:0;}
.av-wrap .avatar{display:block;}
.av-wrap.frame-blue,.av-wrap.frame-pink,.av-wrap.frame-purple,.av-wrap.frame-gold,.av-wrap.frame-neon{border-radius:50%;}

/* =====================================================
   幕间 v2.6.0 视觉移植（对齐现有移动端设计稿）
   蓝色主色 #00AEEC · 白色圆角卡 · 轻阴影 · 胶囊标签
   ===================================================== */
:root {
    --primary: #00AEEC;
    --primary-light: #4FC8F5;
    --primary-deep: #0096CC;
    --pink: #FB7299;
    --text: #17181A;
    --text-secondary: #6B7076;
    --text-light: #A2A6AD;
    --bg: #F5F6F8;
    --card-bg: #FFFFFF;
    --border: #EFF0F2;
    --radius: 16px;
    --shadow: 0 2px 10px rgba(20, 24, 30, .05);
    --card-shadow: 0 1px 3px rgba(20, 24, 30, .04);
}

body {
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

/* ---------- 顶栏 ---------- */
.navbar {
    background: #fff;
    box-shadow: none;
    border-bottom: 1px solid #F0F1F3;
}
.navbar-inner { height: 60px; gap: 20px; }

.logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    font-weight: 700;
    font-size: 17px;
    letter-spacing: .5px;
}
.logo::before { content: none; }
.logo-mark {
    width: 34px; height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, #33C4F5, #0096CC);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.logo-mark svg { width: 20px; height: 20px; display: block; }
.logo-text { color: var(--text); }

.nav-links { gap: 22px; }
.nav-links a { font-size: 14px; color: var(--text-secondary); }
.nav-links a:hover { color: var(--primary); }
.nav-links a.active { color: var(--primary); font-weight: 600; }
.nav-links a.active::after { content: none; }

.search-box { max-width: 420px; }
.search-box input {
    height: 36px;
    padding: 0 70px 0 38px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: #F4F5F7;
    font-size: 13.5px;
    transition: all .18s;
}
.search-box input:focus { background: #fff; border-color: var(--primary); }
.search-ico {
    position: absolute; left: 13px; top: 50%;
    transform: translateY(-50%);
    width: 17px; height: 17px;
    color: #9AA0A8;
    pointer-events: none;
}
.search-ico svg { width: 17px; height: 17px; }
.search-btn {
    right: 4px; top: 4px;
    width: auto; height: 28px;
    padding: 0 15px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-size: 12.5px;
    font-weight: 500;
    line-height: 28px;
    transition: background .18s;
}
.search-btn:hover { background: var(--primary-deep); }

.nav-right { gap: 12px; }
.nav-icon {
    position: relative;
    color: var(--text-secondary);
    display: inline-flex;
    width: 26px; height: 26px;
}
.nav-icon svg { width: 26px; height: 26px; }
.nav-avatar .avatar { width: 32px; height: 32px; border-radius: 50%; }
.btn-login {
    height: 32px;
    padding: 0 18px;
    line-height: 32px;
    border-radius: 999px;
    background: #E7F7FE;
    color: var(--primary-deep);
    font-size: 13.5px;
    font-weight: 500;
}
.btn-login:hover { background: #D8F2FE; color: var(--primary-deep); }
.btn-pill { height: 32px; padding: 0 18px; line-height: 32px; border-radius: 999px; font-size: 13.5px; }

/* ---------- 容器 ---------- */
.container { padding: 16px 20px 0; }

/* ---------- Banner ---------- */
.banner-wrap { border-radius: 14px; margin-bottom: 14px; }
.banner-item img { height: 340px; aspect-ratio: auto; object-fit: cover; }
.banner-item .banner-title {
    left: 22px; bottom: 18px;
    font-size: 19px; font-weight: 600;
    letter-spacing: .3px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .45);
}
.banner-arrow {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .25);
    color: rgba(255, 255, 255, .9);
    border: none;
    font-size: 18px;
}
.banner-dots {
    right: 18px; bottom: 14px;
    gap: 4px;
    display: flex;
    align-items: center;
}
.banner-dots span {
    width: 5px; height: 5px;
    border-radius: 3px;
    background: rgba(255, 255, 255, .45);
    transition: all .2s;
}
.banner-dots span.active { width: 16px; background: #fff; }

/* ---------- 排行榜横幅 ---------- */
.rank-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-radius: 16px;
    background: linear-gradient(100deg, #FFC15A 0%, #FF8A3D 100%);
    margin-bottom: 14px;
    color: #fff;
    box-shadow: 0 4px 14px rgba(255, 138, 61, .22);
    transition: transform .16s;
}
.rank-banner:hover { transform: translateY(-1px); color: #fff; }
.rank-banner-icon {
    width: 46px; height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .22);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.rank-banner-icon svg { width: 26px; height: 26px; }
.rank-banner-text { flex: 1; min-width: 0; }
.rb-title { font-size: 17px; font-weight: 700; letter-spacing: .4px; display: flex; align-items: center; gap: 8px; }
.rb-hot {
    font-size: 11px; font-weight: 600;
    padding: 1px 7px;
    border-radius: 6px;
    background: rgba(255, 255, 255, .26);
    letter-spacing: .5px;
}
.rb-sub { display: flex; align-items: center; gap: 5px; font-size: 12px; opacity: .92; margin-top: 3px; }
.rb-sub svg { width: 14px; height: 14px; }
.rank-banner-arrow { font-size: 20px; opacity: .85; }

/* ---------- 分区圆形入口 ---------- */
.category-card {
    background: #fff;
    border-radius: 16px;
    padding: 16px 4px 10px;
    margin-bottom: 14px;
    box-shadow: var(--card-shadow);
}
.category-scroll {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 12px 2px;
    scrollbar-width: none;
}
.category-scroll::-webkit-scrollbar { display: none; }
.cat-item {
    flex: 0 0 auto;
    width: 68px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    padding: 2px 0;
    color: var(--text);
}
.cat-item:hover { color: var(--text); }
.cat-circle {
    width: 46px; height: 46px;
    border-radius: 50%;
    background: #F3F5F7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    line-height: 1;
    transition: background .18s, transform .18s;
}
.cat-item.active .cat-circle { background: #E7F7FE; }
.cat-item:hover .cat-circle { transform: translateY(-1px); }
.cat-label { font-size: 12.5px; color: var(--text-secondary); white-space: nowrap; }
.cat-item.active .cat-label { color: var(--primary); font-weight: 600; }
.cat-scrollbar {
    margin: 10px 18px 0;
    height: 3px;
    border-radius: 2px;
    background: #F1F2F4;
}
.cat-scrollbar span {
    display: block;
    width: 28%;
    height: 3px;
    border-radius: 2px;
    background: #DDE0E4;
}

/* ---------- 公告 ---------- */
.announcement-bar {
    background: #fff;
    border-radius: 12px;
    padding: 9px 14px;
    font-size: 12.5px;
    margin-bottom: 14px;
    box-shadow: var(--card-shadow);
}

/* ---------- 区块标题 ---------- */
.section-title {
    margin: 6px 0 12px;
    font-size: 17px;
    font-weight: 700;
    gap: 6px;
}
.section-title::before { content: none; }
.st-name { position: relative; padding-left: 11px; }
.st-name::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    width: 4px; height: 15px;
    border-radius: 2px;
    background: var(--primary);
}
.section-title .more {
    margin-left: auto;
    font-size: 12.5px;
    font-weight: 400;
    color: var(--text-light);
}
.section-title .more:hover { color: var(--primary); }

/* ---------- 视频卡 ---------- */
.video-grid {
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 18px;
}
.video-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    padding: 0;
    box-shadow: var(--card-shadow);
    transition: transform .18s, box-shadow .18s;
}
.video-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(20, 24, 30, .09);
}
.video-cover {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #F2F3F5;
    border-radius: 0;
}
.video-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.video-card:hover .video-cover img { transform: scale(1.03); }

.hot-tag {
    position: absolute;
    left: 9px; top: 9px;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--pink);
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    line-height: 17px;
}
.cover-stats {
    position: absolute;
    left: 9px; right: 9px; bottom: 9px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .55);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 11px;
    width: fit-content;
    max-width: calc(100% - 18px);
}
.cover-stats .st { display: inline-flex; align-items: center; gap: 3px; }
.cover-stats .st svg { width: 12px; height: 12px; }
.cover-stats .st-dur { margin-left: 2px; opacity: .95; }

.video-title {
    padding: 9px 11px 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.42;
    color: var(--text);
    -webkit-line-clamp: 2;
    min-height: 40px;
}
.video-meta {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 11px 11px;
    font-size: 12px;
    color: var(--text-light);
}
.video-meta .up-avatar { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; }
.video-meta .up-name { color: var(--text-secondary); font-size: 12px; }
.video-meta .up-name:hover { color: var(--primary); }
.video-meta .up-time { color: var(--text-light); }
.video-meta > span:last-child { margin-left: auto; }

/* ---------- 侧栏 ---------- */
.home-layout { grid-template-columns: 1fr 280px; gap: 18px; }
.rank-card {
    background: #fff;
    border-radius: 16px;
    padding: 16px 14px;
    box-shadow: var(--card-shadow);
}
.rank-card h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.rank-trophy { font-size: 16px; }
.rk-more { margin-left: auto; font-size: 12px; font-weight: 400; color: var(--text-light); }
.rank-item { padding: 7px 0; gap: 9px; border-bottom: 1px solid #F5F6F8; }
.rank-item:last-child { border-bottom: none; padding-bottom: 2px; }
.rank-item .rank-num {
    width: 18px; height: 18px;
    line-height: 18px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    background: transparent;
    color: var(--text-light);
    text-align: center;
}
.rank-item:nth-child(2) .rank-num,
.rank-item:nth-child(3) .rank-num,
.rank-item:nth-child(4) .rank-num { color: #fff; }
.rank-item:nth-child(2) .rank-num { background: #FB7299; }
.rank-item:nth-child(3) .rank-num { background: #FF9F45; }
.rank-item:nth-child(4) .rank-num { background: #FFC53D; }
.rank-item img { width: 58px; border-radius: 6px; aspect-ratio: 16/9; object-fit: cover; }
.rank-item .rank-title { font-size: 12.5px; }
.rank-item .rank-views { font-size: 11px; }
.side-about { margin-top: 14px; }
.side-about h3 { font-size: 14px; }
.side-about p { font-size: 12.5px; color: var(--text-secondary); line-height: 1.75; margin: 0; }

/* ---------- 通用卡片/按钮 ---------- */
.page-card, .card {
    border-radius: 16px !important;
    box-shadow: var(--card-shadow) !important;
    border: none !important;
}
.btn { border-radius: 999px; font-weight: 500; }
.btn-primary { background: var(--primary); }
.btn-primary:hover { background: var(--primary-deep); }
.btn-outline {
    border: 1px solid var(--primary);
    color: var(--primary);
    background: #fff;
    border-radius: 999px;
}
.btn-pink { background: var(--pink); color: #fff; border-radius: 999px; }
.tag { border-radius: 6px; background: #E7F7FE; color: var(--primary-deep); }

/* ---------- 底部导航 ---------- */
.tabbar {
    display: none;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 90;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(12px);
    border-top: 1px solid #F0F1F3;
    padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
}
.tabbar .tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: #9AA0A8;
    font-size: 11px;
}
.tabbar .tab.active { color: var(--primary); }
.tab-ico { width: 23px; height: 23px; display: flex; align-items: center; justify-content: center; }
.tab-ico svg { width: 23px; height: 23px; }
.tab-label { font-size: 11px; line-height: 1.2; }

/* ---------- 移动端适配 ---------- */
@media (max-width: 768px) {
    .navbar-inner { height: 52px; padding: 0 14px; gap: 10px; }
    .nav-links { display: none; }
    .logo { font-size: 15px; gap: 7px; }
    .logo-mark { width: 30px; height: 30px; border-radius: 9px; }
    .logo-mark svg { width: 17px; height: 17px; }

    /* 搜索收成圆形图标按钮 */
    .search-box {
        max-width: none;
        width: 34px;
        flex: 0 0 34px;
        margin-left: auto;
        position: relative;
    }
    .search-box input { display: none; }
    .search-box .search-btn {
        position: static;
        width: 34px; height: 34px;
        padding: 0;
        background: transparent;
        color: var(--text);
        font-size: 0;
        border-radius: 50%;
        display: flex; align-items: center; justify-content: center;
    }
    .search-box .search-btn::after {
        content: '';
        width: 20px; height: 20px;
        background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'><circle cx='10.5' cy='10.5' r='6.5' stroke='%2317181A' stroke-width='1.7'/><path d='M15.5 15.5L20 20' stroke='%2317181A' stroke-width='1.7'/></svg>") center/contain no-repeat;
    }
    .search-box .search-ico { display: none; }
    .search-box .search-btn:active { background: #F3F5F7; }

    .nav-right { gap: 10px; }
    .nav-icon { width: 24px; height: 24px; }
    .nav-icon svg { width: 24px; height: 24px; }
    .btn-login { height: 30px; line-height: 30px; padding: 0 14px; font-size: 13px; }

    .container { padding: 10px 12px 0; }

    .banner-wrap { border-radius: 12px; margin-bottom: 12px; }
    .banner-item img { height: 176px; }
    .banner-item .banner-title { font-size: 15px; left: 14px; bottom: 12px; }
    .banner-arrow { display: none; }
    .banner-dots { right: 12px; bottom: 11px; }

    .rank-banner { border-radius: 14px; padding: 12px 15px; gap: 12px; margin-bottom: 12px; }
    .rank-banner-icon { width: 40px; height: 40px; }
    .rank-banner-icon svg { width: 22px; height: 22px; }
    .rb-title { font-size: 15.5px; }
    .rb-sub { font-size: 11.5px; }

    .category-card { border-radius: 14px; padding: 14px 2px 8px; margin-bottom: 12px; }
    .cat-item { width: 62px; }
    .cat-circle { width: 44px; height: 44px; font-size: 20px; }
    .cat-label { font-size: 12px; }

    .section-title { font-size: 16px; margin: 12px 0 10px; }
    .st-name { padding-left: 10px; }
    .st-name::before { width: 3px; height: 14px; }

    .video-grid { grid-template-columns: repeat(2, 1fr); gap: 11px; }
    .video-card { border-radius: 11px; }
    .video-title { font-size: 12.8px; padding: 8px 9px 0; min-height: 44px; line-height: 1.45; }
    .video-meta { padding: 5px 9px 9px; gap: 4px; font-size: 11px; }
    .video-meta .up-avatar { width: 16px; height: 16px; }
    .video-meta .up-name, .video-meta .up-time { font-size: 11px; }
    .video-meta .up-time { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .hot-tag { font-size: 10px; padding: 1px 6px; line-height: 15px; left: 7px; top: 7px; }
    .cover-stats { left: 7px; bottom: 7px; padding: 1px 6px; font-size: 10px; gap: 6px; }
    .cover-stats .st svg { width: 11px; height: 11px; }

    .home-layout { grid-template-columns: 1fr; }
    .home-side { display: none; }

    .footer { padding: 26px 20px calc(70px + env(safe-area-inset-bottom)); font-size: 12px; }
    .tabbar { display: flex; }
}

/* 超小屏 */
@media (max-width: 360px) {
    .video-grid { gap: 9px; }
    .video-title { font-size: 12.2px; }
}

/* ---------- 个人中心 ---------- */
.uc-container { max-width: 900px; padding-top: 14px; }

.uc-hero {
    height: 118px;
    border-radius: 16px;
    background: linear-gradient(112deg, #46C6F3 0%, #6EA6F4 46%, #EF9EB9 100%);
    position: relative;
}
.uc-edit {
    position: absolute;
    right: 14px; top: 14px;
    height: 30px; line-height: 30px;
    padding: 0 15px;
    border-radius: 999px;
    background: #fff;
    color: #2B2E33;
    font-size: 12.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}
.uc-edit:hover { color: #2B2E33; background: #F7F8FA; }

.uc-card {
    background: #fff;
    border-radius: 16px;
    margin-top: -46px;
    position: relative;
    padding: 0 16px 4px;
    box-shadow: 0 3px 14px rgba(20, 24, 30, .06);
}
.uc-avatar-wrap {
    position: relative;
    top: -24px;
    width: 88px; height: 88px;
    border-radius: 50%;
    border: 3px solid #fff;
    overflow: hidden;
    background: #F2F3F5;
    box-shadow: 0 2px 10px rgba(20, 24, 30, .08);
}
.uc-avatar { width: 100%; height: 100%; object-fit: cover; display: block; }

.uc-vip {
    position: absolute;
    left: 108px; top: 26px;
    height: 20px; line-height: 20px;
    padding: 0 9px;
    border-radius: 999px;
    background: linear-gradient(100deg, #FFE29A, #FFC24B);
    color: #7A4A00;
    font-size: 11px;
    font-weight: 600;
}

.uc-name-row { display: flex; align-items: center; gap: 8px; margin-top: -12px; }
.uc-nick { font-size: 20px; font-weight: 700; letter-spacing: .2px; }
.uc-lv {
    height: 20px; line-height: 20px;
    padding: 0 8px;
    border-radius: 5px;
    background: #FB7299;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
}
.uc-sign {
    margin-top: 6px;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.uc-exp { margin-top: 14px; }
.uc-exp-top { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-light); margin-bottom: 6px; }
.uc-exp-bar { height: 7px; border-radius: 4px; background: #F1F2F4; overflow: hidden; }
.uc-exp-bar span { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #FF9FBE, #FB7299); }
.uc-exp-next { font-size: 11.5px; color: var(--text-light); margin-top: 5px; }

.uc-stats3 {
    display: flex;
    margin: 16px -4px 0;
    padding: 12px 0 4px;
}
.uc-stats3 .cell {
    flex: 1;
    text-align: center;
    color: var(--text);
    position: relative;
}
.uc-stats3 .cell + .cell::before {
    content: '';
    position: absolute;
    left: 0; top: 6px;
    width: 1px; height: 26px;
    background: #F0F1F3;
}
.uc-stats3 b { display: block; font-size: 21px; font-weight: 700; letter-spacing: -.2px; }
.uc-stats3 span { display: block; font-size: 12px; color: var(--text-light); margin-top: 3px; }

/* 签到卡 */
.uc-checkin {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    padding: 13px 16px;
    border-radius: 16px;
    background: linear-gradient(100deg, #E9F6FF 0%, #F6F3FB 55%, #FDEFF4 100%);
    color: var(--text);
    box-shadow: 0 1px 3px rgba(20, 24, 30, .04);
}
.ck-ico {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: #fff;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 1px 4px rgba(0, 174, 236, .18);
    flex-shrink: 0;
}
.ck-ico svg { width: 22px; height: 22px; }
.ck-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ck-title { font-size: 14.5px; font-weight: 600; display: flex; align-items: center; gap: 7px; }
.ck-badge {
    font-size: 10.5px; font-weight: 400;
    padding: 1px 7px;
    border-radius: 5px;
    background: #DCF1FF;
    color: #1F8FC4;
}
.ck-sub { font-size: 12px; color: var(--text-secondary); }
.ck-reward { font-size: 13px; color: #1F8FC4; }
.ck-arrow { color: var(--text-light); font-size: 16px; }

/* 四宫格 */
.uc-quick {
    display: flex;
    margin-top: 12px;
    padding: 16px 6px;
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
}
.q-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text);
}
.q-ico { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; }
.q-ico svg { width: 26px; height: 26px; }
.q-blue { color: #00AEEC; }
.q-pink { color: #FB7299; }
.q-green { color: #33C48D; }
.q-yellow { color: #F5B93B; }
.q-label { font-size: 12.5px; color: #2B2E33; }

/* 功能列表 */
.uc-list {
    margin-top: 12px;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}
.uc-list .row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 16px;
    height: 50px;
    border-bottom: 1px solid #F6F7F8;
    color: var(--text);
}
.uc-list .row:last-child { border-bottom: none; }
.uc-list .row:hover { background: #FAFBFC; }
.row-ico { width: 20px; text-align: center; font-size: 16px; }
.row-t { font-size: 14px; }
.row-d { margin-left: auto; font-size: 12px; color: var(--text-light); }
.row-a { color: #D3D6DA; font-size: 15px; }

.uc-logout {
    display: block;
    margin: 14px 0 8px;
    height: 46px;
    line-height: 46px;
    text-align: center;
    border-radius: 999px;
    background: #fff;
    color: #E24A4A;
    font-size: 14px;
    box-shadow: var(--card-shadow);
}

@media (max-width: 768px) {
    .uc-container { padding: 10px 12px 0; }
    .uc-hero { height: 108px; border-radius: 14px; }
    .uc-avatar-wrap { width: 78px; height: 78px; top: -22px; }
    .uc-vip { left: 96px; top: 22px; }
    .uc-nick { font-size: 18px; }
    .uc-stats3 b { font-size: 19px; }
    .uc-list { margin-bottom: 6px; }
}


/* ======================================================
   幕间 v2.6.1 全站统一层（频道 / 动态 / 账号资料 / 播放页）
   ====================================================== */

/* ---------- 频道页 ---------- */
.ch-tabs-wrap {
    background: #fff;
    border-radius: 16px;
    padding: 12px 0 10px;
    margin-bottom: 10px;
    box-shadow: var(--shadow);
    overflow: hidden;
}
.ch-tabs {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0 16px;
    overflow-x: auto;
    scrollbar-width: none;
}
.ch-tabs::-webkit-scrollbar { display: none; }
.ch-tab {
    flex: 0 0 auto;
    font-size: 14.5px;
    color: var(--text);
    padding: 7px 2px;
    border-radius: 999px;
    white-space: nowrap;
}
.ch-tab:first-child { padding-left: 0; }
.ch-tab.active {
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    padding: 7px 20px;
}

.ch-filter {
    background: #fff;
    border-radius: 16px;
    padding: 14px 16px 12px;
    margin-bottom: 12px;
    box-shadow: var(--shadow);
}
.chf-line { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.chf-key { font-size: 13.5px; color: var(--text-secondary); margin-right: 2px; }
.chf-item {
    font-size: 13.5px;
    color: var(--text);
    padding: 6px 12px;
    border-radius: 8px;
}
.chf-item.active { background: #E7F7FE; color: #00AEEC; font-weight: 600; }
.chf-line2 { margin-top: 8px; justify-content: space-between; }
.chf-dur { font-size: 13.5px; color: var(--text); display: inline-flex; align-items: center; gap: 2px; }
.chf-count { font-size: 13px; color: var(--text-light); }
.ch-grid { margin-top: 4px; }

/* ---------- 动态页 ---------- */
.feed-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 4px 12px;
}
.feed-title { font-size: 22px; font-weight: 700; letter-spacing: 1.5px; margin: 0; }
.feed-top-act { display: flex; align-items: center; gap: 14px; }
.feed-pub-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 34px;
    padding: 0 16px;
    border: none;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
}
.feed-pub-btn:hover { background: var(--primary-deep); color: #fff; }
.feed-ico-btn { display: inline-flex; color: var(--primary); }

.feed-publish {
    background: #fff;
    border-radius: 16px;
    padding: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 12px;
}
.feed-publish textarea {
    width: 100%;
    min-height: 84px;
    border: none;
    outline: none;
    resize: none;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.7;
    background: #F7F8FA;
    border-radius: 12px;
    padding: 10px 12px;
    box-sizing: border-box;
}
.feed-pub-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.feed-pub-tip { font-size: 12px; color: var(--text-light); }
.feed-pub-submit {
    height: 32px;
    padding: 0 20px;
    border: none;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-size: 13.5px;
    font-family: inherit;
    cursor: pointer;
}

.feed-item {
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: var(--shadow);
}
.feed-head { display: flex; align-items: center; gap: 10px; }
.feed-avatar {
    width: 38px; height: 38px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: #F0F1F3;
}
.feed-who { min-width: 0; }
.feed-who .feed-name { font-size: 14px; font-weight: 600; color: var(--text); }
.feed-time {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--text-light);
    margin-top: 3px;
    font-weight: 400;
    margin-left: 0;
}
.feed-time svg { width: 12px; height: 12px; flex-shrink: 0; }
.feed-content {
    margin: 11px 0 0;
    font-size: 14.5px;
    line-height: 1.72;
    color: #22242A;
    white-space: pre-wrap;
    word-break: break-word;
}
.feed-imgs { display: grid; gap: 8px; margin-top: 10px; }
.feed-imgs.imgs-1 { grid-template-columns: 1fr; }
.feed-imgs.imgs-1 img { aspect-ratio: 16/10; border-radius: 12px; }
.feed-imgs.imgs-2 { grid-template-columns: repeat(2, 1fr); }
.feed-imgs.imgs-3 { grid-template-columns: repeat(3, 1fr); }
.feed-imgs.imgs-2 img, .feed-imgs.imgs-3 img { aspect-ratio: 1/1; border-radius: 10px; }
.feed-imgs img { width: 100%; object-fit: cover; display: block; background: #F0F1F3; }
.feed-origin {
    margin-top: 10px;
    background: #F7F8FA;
    border-radius: 12px;
    padding: 10px 12px;
}
.feed-origin-head { font-size: 12.5px; color: var(--primary); margin-bottom: 3px; }
.feed-origin-body { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }
.feed-actions {
    display: flex;
    align-items: center;
    gap: 0;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed #EDEFF2;
    font-size: 12.5px;
    color: #9DA2A9;
}
.feed-act {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #9DA2A9;
    cursor: pointer;
    user-select: none;
}
.feed-act svg { width: 17px; height: 17px; }
.feed-act em { font-style: normal; line-height: 1; }
.feed-act.active { color: var(--pink); }
.feed-act:hover { color: var(--primary); }

/* ---------- 账号资料页 ---------- */
.set-topbar {
    display: flex;
    align-items: center;
    height: 52px;
    background: #fff;
    padding: 0 14px;
    position: sticky;
    top: 0;
    z-index: 30;
}
.set-back, .set-save { display: inline-flex; align-items: center; justify-content: center; color: var(--text); border: none; background: none; padding: 0; cursor: pointer; }
.set-back svg { width: 22px; height: 22px; }
.set-save { color: var(--primary); }
.set-save svg { width: 22px; height: 22px; }
.set-title { flex: 1; text-align: center; font-size: 16px; font-weight: 600; color: var(--text); }
.set-list { background: #fff; margin-top: 10px; }
.set-row {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    padding: 0 16px;
    border-bottom: 1px solid #F4F5F7;
    cursor: pointer;
}
.set-row:last-child { border-bottom: none; }
.set-row:active { background: #FAFBFC; }
.set-row-static { cursor: default; }
.set-key { font-size: 14.5px; color: var(--text); flex-shrink: 0; width: 84px; }
.set-val {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    font-size: 14px;
    color: #6B7076;
    text-align: right;
    min-width: 0;
}
.set-val.muted { color: #9CA1A8; }
.set-val.multi { line-height: 1.55; max-width: 72%; padding: 14px 0; justify-content: flex-end; }
.set-row-multi { align-items: flex-start; min-height: 68px; }
.set-row-multi .set-key, .set-row-multi .set-arrow { padding-top: 16px; }
.set-avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; display: block; }
.set-cover-chip {
    display: block;
    width: 96px;
    height: 40px;
    border-radius: 8px;
    background: linear-gradient(90deg, #38B6F0 0%, #E86CA8 100%);
}
.set-arrow { color: #C9CDD2; font-size: 17px; line-height: 1; flex-shrink: 0; }
.set-note { margin: 14px 16px 0; font-size: 12.5px; color: #A7ABB2; line-height: 1.6; }
.page-settings .footer { display: none; }
.page-settings { padding-bottom: 64px; }

/* ---------- 播放页收口 ---------- */
.video-title-lg { font-size: 19px; line-height: 1.45; font-weight: 700; letter-spacing: .2px; }
.stat-chip { border-radius: 999px; font-size: 13.5px; color: var(--text-secondary); box-shadow: var(--shadow); }
.stat-chip.active { background: var(--primary); color: #fff; }
.danmaku-bar input { border-radius: 999px; background: #fff; border: none; box-shadow: var(--shadow); height: 38px; }
.danmaku-bar .btn { height: 38px; border-radius: 999px; }
.danmaku-bar .btn-outline { background: #fff; border: 1px solid #E3E5E8; color: var(--primary); box-shadow: var(--shadow); }

@media (max-width: 768px) {
    .logo-text { display: none; }
    .logo-mark { width: 32px; height: 32px; border-radius: 9px; }
    .ch-tabs { gap: 18px; }
    .ch-filter { padding: 12px 14px 10px; }
    .feed-top { padding: 14px 2px 10px; }
    .feed-title { font-size: 20px; }
    .feed-item { padding: 14px; }
    .video-title-lg { font-size: 17px; }
    .set-key { width: 76px; }
    .set-avatar { width: 42px; height: 42px; }
}


/* ---------- 首页卡片微调（对齐设计稿） ---------- */
.section-title { gap: 6px; }
.section-title .st-emoji {
    width: 20px; height: 20px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 15px; line-height: 1;
}
.section-title .st-name { font-size: 16px; font-weight: 600; }

.cover-stats {
    background: none;
    padding: 0;
    gap: 5px;
    left: 8px; right: 8px; bottom: 8px;
    max-width: calc(100% - 16px);
    backdrop-filter: none;
}
.cover-stats .st {
    background: rgba(0, 0, 0, .55);
    border-radius: 999px;
    padding: 2px 7px;
    line-height: 16px;
}
.cover-stats .st-dur {
    margin-left: auto;
    background: rgba(0, 0, 0, .55);
    border-radius: 999px;
    padding: 2px 7px;
    line-height: 16px;
    opacity: 1;
}
.video-title { font-size: 14.6px; font-weight: 600; padding: 9px 10px 0; }
.video-meta { padding: 6px 10px 10px; }
.video-meta > span:last-child { margin-left: 0; }

@media (max-width: 768px) {
    .nav-right .btn-pill { display: none; }
    .section-title { gap: 5px; margin: 14px 2px 10px; }
    .section-title .st-emoji { width: 18px; height: 18px; font-size: 14px; }
    .section-title .st-name { font-size: 15.5px; }
    .video-title { font-size: 13.6px; padding: 7px 9px 0; line-height: 1.44; min-height: 42px; }
    .video-meta { padding: 5px 9px 9px; }
    .cover-stats { left: 7px; right: 7px; bottom: 7px; gap: 4px; }
    .cover-stats .st, .cover-stats .st-dur { padding: 1px 6px; font-size: 10px; line-height: 15px; }
    .video-meta > span:last-child { margin-left: 0; }
    .video-meta .up-name, .video-meta .up-time { font-size: 10.8px; }
}

/* 去掉区块标题前的蓝色竖条，与设计稿一致 */
.st-name { padding-left: 0 !important; }
.st-name::before { content: none !important; }
.section-title { margin: 14px 2px 12px; font-size: 16px; }
@media (max-width: 768px) {
    .section-title { margin: 12px 2px 10px; }
}


/* ---------- 番剧页统一为蓝色体系 ---------- */
.bg-tabs a {
    border-radius: 999px;
    background: #F5F6F8;
    color: #6B7076;
    font-size: 13px;
    padding: 6px 16px;
    line-height: 1.4;
}
.bg-tabs a.active { background: var(--primary); color: #fff; font-weight: 600; }
.bg-btn {
    background: var(--primary);
    border-radius: 999px;
    font-size: 11.5px;
    padding: 4px 12px;
    line-height: 1.5;
}
.bg-btn.on { background: #F0F1F3; color: #8B8F96; }
.bg-cover { border-radius: 12px; }
.bg-cover-ph { background: linear-gradient(135deg, #33C4F5, #0096CC); }
.bg-status { border-radius: 999px; padding: 2px 8px; background: rgba(0, 174, 236, .92); }
.bg-status.done { border-radius: 999px; }
.bg-title { font-size: 13.5px; font-weight: 600; }
.bg-ep:hover { background: var(--primary); color: #fff; }
.bg-tag { background: rgba(0, 174, 236, .1); color: var(--primary); border-radius: 6px; }
.bangumi-head { align-items: center; gap: 10px; flex-wrap: wrap; }

/* ---------- 排行榜序号 ---------- */
.rank-item:nth-child(-n+3) .rank-num { background: #F3F5F7; color: #8B8F96; }
.rank-item:nth-child(2) .rank-num { background: #FB7299; color: #fff; }
.rank-item:nth-child(3) .rank-num { background: #FF9F45; color: #fff; }
.rank-item:nth-child(4) .rank-num { background: #FFC53D; color: #fff; }

/* ---------- 通用按钮 ---------- */
.btn-primary { border-radius: 999px; }
.btn-outline { border-radius: 999px; background: #fff; }

@media (max-width: 768px) {
    .bangumi-head { gap: 8px; }
    .btn-primary, .btn-outline { font-size: 13px; padding: 7px 16px; }
}

/* 排行榜页前三名序号 */
.rank-num.rk-1 { background: #FB7299; color: #fff; }
.rank-num.rk-2 { background: #FF9F45; color: #fff; }
.rank-num.rk-3 { background: #FFC53D; color: #fff; }


/* ---------- 全站统一图标 ---------- */
.mj-ico {
    width: 19px;
    height: 19px;
    display: inline-block;
    vertical-align: -4px;
    flex-shrink: 0;
}
.cat-circle .mj-ico { width: 26px; height: 26px; vertical-align: 0; color: #3A3F46; }
.cat-item.active .cat-circle .mj-ico { color: var(--primary); }
.st-emoji .mj-ico { width: 18px; height: 18px; vertical-align: -3px; color: #2B2E33; }
.row-ico .mj-ico { width: 19px; height: 19px; color: #5A6068; }
.uc-list .row:hover .row-ico .mj-ico { color: var(--primary); }
.q-ico .mj-ico { width: 25px; height: 25px; vertical-align: 0; }
.ck-ico .mj-ico { width: 21px; height: 21px; vertical-align: 0; color: var(--primary); }
.ck-reward .mj-ico { width: 14px; height: 14px; vertical-align: -2px; color: #E8A33D; }
.empty-icon .mj-ico { width: 40px; height: 40px; color: #C2C6CC; }
.rank-trophy .mj-ico { width: 16px; height: 16px; color: #FF9F45; vertical-align: -2px; }
.stat-chip .mj-ico { width: 15px; height: 15px; vertical-align: -2px; }
.search-btn .mj-ico { width: 16px; height: 16px; vertical-align: -3px; }
.rk-ico .mj-ico, .rank-views .mj-ico { width: 13px; height: 13px; vertical-align: -2px; }
.icon .mj-ico, .upload-icon .mj-ico { width: 44px; height: 44px; color: #B9BEC4; }

@media (max-width: 768px) {
    .mj-ico { width: 18px; height: 18px; vertical-align: -3px; }
    .cat-circle .mj-ico { width: 24px; height: 24px; }
    .q-ico .mj-ico { width: 23px; height: 23px; }
    .stat-chip .mj-ico { width: 14px; height: 14px; }
}

/* 图标尺寸收口 */
.search-ico svg { width: 17px; height: 17px; }
.tab-ico .mj-ico { width: 23px; height: 23px; vertical-align: 0; }
.nav-icon .mj-ico { width: 20px; height: 20px; vertical-align: 0; color: #34383E; }
.feed-pub-btn .mj-ico { width: 14px; height: 14px; vertical-align: -2px; color: #fff; }
.feed-ico-btn .mj-ico { width: 20px; height: 20px; vertical-align: 0; color: var(--primary); }
.set-back-ico { transform: rotate(180deg); }
.set-back .mj-ico { width: 20px; height: 20px; vertical-align: 0; }
.set-save .mj-ico { width: 22px; height: 22px; vertical-align: 0; }
.rank-banner-icon .rb-svg { width: 26px; height: 26px; vertical-align: 0; color: #fff; }

/* 图标视觉尺寸微调 */
.cat-circle .mj-ico { width: 25px; height: 25px; }
.st-emoji .mj-ico { width: 19px; height: 19px; }
.row-ico .mj-ico { width: 20px; height: 20px; }
.stat-chip .mj-ico { width: 16px; height: 16px; }

/* 序号配色（最高优先级，避免 nth-child 偏移） */
.rank-num.rk-1 { background: #FB7299 !important; color: #fff !important; }
.rank-num.rk-2 { background: #FF9F45 !important; color: #fff !important; }
.rank-num.rk-3 { background: #FFC53D !important; color: #fff !important; }
.rank-item:nth-child(n+4) .rank-num,
.rank-num.rk-4, .rank-num.rk-5, .rank-num.rk-6, .rank-num.rk-7,
.rank-num.rk-8, .rank-num.rk-9, .rank-num.rk-10 { background: #F3F5F7 !important; color: #8B8F96 !important; }
/* 分区图标统一蓝色 */
.cat-circle .mj-ico { color: var(--primary); }
.cat-item.active .cat-circle .mj-ico { color: var(--primary-deep); }

/* 区块标题图标统一蓝 */
.st-emoji .mj-ico { color: var(--primary); }
