:root {
    --primary: #ff6b6b;
    --primary-dark: #e85555;
    --bg: #f7f8fa;
    --surface: #ffffff;
    --text-main: #1f2329;
    --text-sub: #646a73;
    --text-light: #8f959e;
    --border: #e5e6eb;
    --nav-width: 76px;
    --radius: 12px;
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
a {
    text-decoration: none;
    color: inherit;
}
img {
    display: block;
    max-width: 100%;
    object-fit: cover;
}
ul {
    list-style: none;
}

/* 左侧导航 */
.side-nav {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--nav-width);
    background-color: var(--surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 100;
}
.brand-logo {
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.brand-logo img {
    height: 32px;
    width: auto;
    margin-bottom: 4px;
}
.brand-text {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
}
.nav-menu {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 8px;
}
.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 0;
    color: var(--text-sub);
    font-size: 12px;
    transition: color 0.2s;
}
.nav-item.active {
    color: var(--primary);
    font-weight: 600;
    background-color: #fff0f0;
}
.nav-item:hover {
    color: var(--primary);
}
.nav-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
    background-color: currentColor;
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
}
.icon-home { mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"/></svg>'); -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"/></svg>'); }
.icon-rec { mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2L2 22h20L12 2z"/></svg>'); -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2L2 22h20L12 2z"/></svg>'); }
.icon-hot { mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M13.5.67s.74 2.65.74 4.8c0 2.06-1.35 3.73-3.41 3.73-2.07 0-3.63-1.67-3.63-3.73l.03-.36C5.21 7.51 4 10.62 4 14c0 4.42 3.58 8 8 8s8-3.58 8-8C20 8.61 17.41 3.8 13.5.67zM11.71 19c-1.78 0-3.22-1.4-3.22-3.14 0-1.62 1.05-2.76 2.81-3.12 1.77-.36 3.6-1.21 4.62-2.58.39 1.29.59 2.65.59 4.04 0 2.65-2.15 4.8-4.8 4.8z"/></svg>'); -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M13.5.67s.74 2.65.74 4.8c0 2.06-1.35 3.73-3.41 3.73-2.07 0-3.63-1.67-3.63-3.73l.03-.36C5.21 7.51 4 10.62 4 14c0 4.42 3.58 8 8 8s8-3.58 8-8C20 8.61 17.41 3.8 13.5.67zM11.71 19c-1.78 0-3.22-1.4-3.22-3.14 0-1.62 1.05-2.76 2.81-3.12 1.77-.36 3.6-1.21 4.62-2.58.39 1.29.59 2.65.59 4.04 0 2.65-2.15 4.8-4.8 4.8z"/></svg>'); }
.icon-cat { mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 3h8v8H3zm10 0h8v8h-8zM3 13h8v8H3zm10 0h8v8h-8z"/></svg>'); -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 3h8v8H3zm10 0h8v8h-8zM3 13h8v8H3zm10 0h8v8h-8z"/></svg>'); }
.icon-live { mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M17 10.5V7c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h12c.55 0 1-.45 1-1v-3.5l4 4v-11l-4 4z"/></svg>'); -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M17 10.5V7c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h12c.55 0 1-.45 1-1v-3.5l4 4v-11l-4 4z"/></svg>'); }
.icon-rank { mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7.5 21.5L12 18l4.5 3.5-1.2-5.6 4.2-3.8-5.7-.7L12 5l-1.8 6.4-5.7.7 4.2 3.8z"/></svg>'); -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7.5 21.5L12 18l4.5 3.5-1.2-5.6 4.2-3.8-5.7-.7L12 5l-1.8 6.4-5.7.7 4.2 3.8z"/></svg>'); }

/* 主体内容 */
.main-content {
    margin-left: var(--nav-width);
    padding: 0 24px 60px;
    max-width: 1400px;
}
/* 顶栏 */
.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    position: sticky;
    top: 0;
    background-color: rgba(247, 248, 250, 0.95);
    backdrop-filter: blur(8px);
    z-index: 50;
}
.brand-title {
    font-size: 22px;
    font-weight: 700;
    display: flex;
    align-items: baseline;
    gap: 12px;
}
.brand-subtitle {
    font-size: 13px;
    color: var(--text-sub);
    font-weight: 400;
}
.search-box {
    display: flex;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 0 16px;
    height: 40px;
    width: 320px;
}
.search-input {
    border: none;
    outline: none;
    background: transparent;
    flex: 1;
    font-size: 14px;
    color: var(--text-main);
}
.search-input::placeholder {
    color: var(--text-light);
}
.search-btn {
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    padding-left: 12px;
}
.btn-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary);
    color: #fff;
    padding: 0 20px;
    height: 40px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s;
}
.btn-download:hover {
    background-color: var(--primary-dark);
}

/* 首屏一大六小 */
.hero-section {
    display: grid;
    grid-template-columns: 2fr 1.2fr;
    gap: 16px;
    margin-top: 8px;
    margin-bottom: 32px;
}
.hero-main {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    display: block;
    aspect-ratio: 16/9;
    background: #000;
}
.hero-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 24px 24px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: #fff;
}
.hero-tag {
    display: inline-block;
    background-color: var(--primary);
    color: #fff;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
}
.hero-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}
.hero-meta {
    font-size: 13px;
    color: rgba(255,255,255,0.8);
}
.hero-btn {
    position: absolute;
    right: 24px;
    bottom: 24px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.4);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}
.hero-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
}
.hero-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 12px;
}
.video-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    display: block;
    background: #000;
    aspect-ratio: 16/9;
}
.video-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.video-card:hover img {
    transform: scale(1.05);
}
.card-tag {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
}
.card-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
}
.card-title-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px 8px 8px;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 公共区块头 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 16px;
    margin-top: 40px;
}
.section-title {
    font-size: 20px;
    font-weight: 700;
}
.section-more {
    font-size: 14px;
    color: var(--text-sub);
}
.section-more:hover {
    color: var(--primary);
}

/* 榜单 */
.rank-list {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 12px;
    scrollbar-width: none;
}
.rank-list::-webkit-scrollbar {
    display: none;
}
.rank-item {
    flex: 0 0 160px;
    background: var(--surface);
    border-radius: var(--radius);
    padding: 16px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.2s;
}
.rank-item:hover {
    transform: translateY(-4px);
}
.rank-item.top-3 {
    background: #fff5f5;
}
.rank-num {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 8px;
}
.rank-item.top-3 .rank-num {
    color: var(--primary);
}
.rank-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rank-meta {
    font-size: 12px;
    color: var(--text-sub);
}

/* 推荐短剧 4列网格 */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.grid-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.grid-card .video-card {
    aspect-ratio: 16/9;
}
.grid-info {
    padding: 0 4px;
}
.grid-title {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}
.grid-meta {
    font-size: 12px;
    color: var(--text-sub);
    display: flex;
    justify-content: space-between;
}

/* 分区精选 */
.tabs {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    margin-bottom: 16px;
    scrollbar-width: none;
}
.tabs::-webkit-scrollbar {
    display: none;
}
.tab-item {
    padding: 6px 16px;
    border-radius: 16px;
    background: var(--surface);
    font-size: 14px;
    color: var(--text-sub);
    cursor: pointer;
    white-space: nowrap;
}
.tab-item.active {
    background: var(--primary);
    color: #fff;
    font-weight: 600;
}

/* 专题合集 */
.topic-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.topic-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 21/9;
    display: block;
    background: #333;
}
.topic-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: transform 0.3s;
}
.topic-card:hover img {
    transform: scale(1.05);
}
.topic-content {
    position: absolute;
    inset: 0;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(to right, rgba(0,0,0,0.8), transparent);
    color: #fff;
}
.topic-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}
.topic-desc {
    font-size: 13px;
    color: rgba(255,255,255,0.8);
}
.topic-link {
    position: absolute;
    bottom: 16px;
    right: 16px;
    font-size: 13px;
    color: #fff;
    background: rgba(255,255,255,0.2);
    padding: 4px 12px;
    border-radius: 12px;
    backdrop-filter: blur(4px);
}

/* 直播 */
.live-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}
.live-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 3/4;
    display: block;
    background: #333;
}
.live-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.live-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(255, 60, 60, 0.9);
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.live-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
}
.live-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px 12px 12px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: #fff;
}
.live-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.live-meta {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
}

/* 动态 */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: var(--surface);
    border-radius: var(--radius);
    padding: 24px;
}
.timeline-item {
    display: flex;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 16px;
}
.timeline-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.timeline-date {
    font-size: 13px;
    color: var(--text-light);
    min-width: 60px;
    padding-top: 2px;
}
.timeline-content h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}
.timeline-content p {
    font-size: 13px;
    color: var(--text-sub);
}

/* FAQ */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.faq-item {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 16px 20px;
}
.faq-item summary {
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-item summary::-webkit-details-marker {
    display: none;
}
.faq-item summary::after {
    content: '+';
    font-size: 20px;
    color: var(--text-light);
    font-weight: 400;
}
.faq-item[open] summary::after {
    content: '-';
}
.faq-answer {
    margin-top: 12px;
    font-size: 14px;
    color: var(--text-sub);
    line-height: 1.6;
}

/* 图片墙 */
.gallery {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 20px 0;
    scrollbar-width: none;
}
.gallery::-webkit-scrollbar {
    display: none;
}
.gallery-item {
    flex: 0 0 auto;
    border-radius: var(--radius);
    overflow: hidden;
    height: 200px;
}
.gallery-item img {
    height: 100%;
    width: auto;
    object-fit: cover;
}

/* 页脚 */
.footer {
    margin-top: 60px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
    color: var(--text-light);
    font-size: 13px;
}
.footer-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 24px;
}
.footer-brand h3 {
    font-size: 16px;
    color: var(--text-main);
    margin-bottom: 8px;
}
.footer-brand p {
    max-width: 400px;
    line-height: 1.6;
}
.footer-links {
    display: flex;
    gap: 60px;
}
.footer-col h4 {
    font-size: 14px;
    color: var(--text-main);
    margin-bottom: 12px;
}
.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.footer-col a:hover {
    color: var(--primary);
}
.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 12px;
}
.footer-bottom a {
    color: var(--text-light);
}
.footer-bottom a:hover {
    color: var(--text-main);
}

/* 响应式 1024px */
@media (max-width: 1024px) {
    .hero-section {
        grid-template-columns: 1.5fr 1fr;
    }
    .grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }
    .topic-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .live-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 响应式 768px */
@media (max-width: 768px) {
    :root {
        --nav-width: 0px;
    }
    .side-nav {
        top: auto;
        bottom: 0;
        width: 100%;
        height: 56px;
        flex-direction: row;
        border-right: none;
        border-top: 1px solid var(--border);
        padding: 0 8px;
    }
    .brand-logo {
        display: none;
    }
    .nav-menu {
        flex-direction: row;
        justify-content: space-around;
        gap: 0;
    }
    .nav-item {
        padding: 6px 0;
        flex: 1;
    }
    .nav-icon {
        width: 20px;
        height: 20px;
        margin-bottom: 2px;
    }
    .main-content {
        margin-left: 0;
        padding: 0 16px 80px;
    }
    .top-bar {
        flex-wrap: wrap;
        gap: 12px;
        padding: 16px 0;
    }
    .search-box {
        width: 100%;
        order: 3;
    }
    .hero-section {
        grid-template-columns: 1fr;
    }
    .hero-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .topic-grid {
        grid-template-columns: 1fr;
    }
    .live-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-top {
        flex-direction: column;
        gap: 24px;
    }
    .footer-links {
        gap: 40px;
    }
}