/* 基础重置与变量 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
:root {
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --accent-color: #ff4757;
    --accent-gradient: linear-gradient(90deg, #ff6b81, #ff4757, #ffa502);
    --pill-bg: #2f3542;
    --border-radius: 12px;
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}
a {
    text-decoration: none;
    color: inherit;
}
ul {
    list-style: none;
}
img {
    max-width: 100%;
    display: block;
}
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* 顶部导航 */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(18, 18, 18, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 12px 0;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: bold;
}
.brand img {
    height: 32px;
    width: auto;
    border-radius: 6px;
}
.nav-links {
    display: none;
}
.nav-links a {
    margin-left: 20px;
    font-size: 14px;
    color: var(--text-muted);
    transition: color 0.3s;
}
.nav-links a:hover {
    color: var(--text-main);
}

/* 首屏区域 */
.hero {
    position: relative;
    padding: 60px 0 40px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    overflow: hidden;
}
.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
}
.hero h1 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.3;
}
.hero h1 span {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-desc {
    color: var(--text-muted);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto 32px;
}
.download-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    background: var(--pill-bg);
    color: var(--text-main);
    border: 1px solid rgba(255,255,255,0.1);
    transition: transform 0.2s, background 0.2s;
    cursor: pointer;
}
.btn:hover {
    transform: translateY(-2px);
    background: #3e4451;
}
.btn-primary {
    background: var(--accent-gradient);
    border: none;
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.4);
}
.btn-primary:hover {
    background: linear-gradient(90deg, #ff5e6b, #ffa502);
}
.hero-posters {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 20px;
    scrollbar-width: none;
}
.hero-posters::-webkit-scrollbar {
    display: none;
}
.hero-posters img {
    width: 140px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

/* 跑马灯 */
.marquee-wrap {
    background: #000;
    padding: 12px 0;
    overflow: hidden;
    white-space: nowrap;
}
.marquee-inner {
    display: inline-block;
    animation: marquee 20s linear infinite;
}
.marquee-inner span {
    font-size: 16px;
    font-weight: bold;
    margin-right: 30px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* 通用区块样式 */
.section {
    padding: 60px 0;
}
.section-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.section-title::before {
    content: '';
    display: block;
    width: 6px;
    height: 24px;
    background: var(--accent-color);
    border-radius: 3px;
}
.section-subtitle {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 32px;
}

/* 爆款卡片网格 */
.hot-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.hot-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: transform 0.3s;
}
.hot-card:hover {
    transform: translateY(-4px);
}
.hot-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}
.hot-card-info {
    padding: 12px;
}
.hot-card-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
}
.hot-card-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.tag {
    font-size: 11px;
    padding: 2px 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: var(--text-muted);
}
.hot-card-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 8px;
}

/* 完结精选 - 列表结构 */
.finished-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.finished-item {
    display: flex;
    gap: 16px;
    background: var(--card-bg);
    padding: 12px;
    border-radius: var(--border-radius);
}
.finished-item img {
    width: 90px;
    height: 120px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}
.finished-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.finished-info h3 {
    font-size: 16px;
    margin-bottom: 6px;
}
.finished-info p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 热榜 - 排行结构 */
.rank-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.rank-item {
    display: flex;
    align-items: center;
    background: var(--card-bg);
    padding: 12px 16px;
    border-radius: var(--border-radius);
}
.rank-num {
    font-size: 20px;
    font-weight: bold;
    color: var(--accent-color);
    width: 36px;
    flex-shrink: 0;
}
.rank-item img {
    width: 50px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 16px;
}
.rank-text {
    flex: 1;
}
.rank-text h3 {
    font-size: 15px;
    margin-bottom: 4px;
}
.rank-text p {
    font-size: 12px;
    color: var(--text-muted);
}

/* 互动剧 - 时间轴 */
.timeline-section {
    background: #1a1a2e;
    border-radius: var(--border-radius);
    padding: 24px;
}
.timeline {
    position: relative;
    padding-left: 20px;
    border-left: 2px solid var(--accent-color);
}
.timeline-item {
    position: relative;
    margin-bottom: 24px;
    padding-left: 24px;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -31px;
    top: 6px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent-color);
    border: 3px solid var(--bg-color);
}
.timeline-time {
    font-size: 13px;
    color: var(--accent-color);
    font-weight: bold;
    margin-bottom: 4px;
}
.timeline-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}
.timeline-desc {
    font-size: 13px;
    color: var(--text-muted);
}

/* 评论墙 */
.comment-wall {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
.comment-card {
    background: var(--card-bg);
    padding: 16px;
    border-radius: var(--border-radius);
    display: flex;
    gap: 12px;
}
.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.comment-content {
    flex: 1;
}
.comment-user {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--accent-color);
}
.comment-text {
    font-size: 14px;
    color: #ddd;
}

/* 创作者激励与反馈 */
.info-block {
    background: var(--card-bg);
    padding: 24px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
}
.info-block h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--accent-color);
}
.info-block p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

/* 下载区 */
.download-section {
    background: linear-gradient(135deg, #2f3542 0%, #1e1e1e 100%);
    text-align: center;
    padding: 60px 20px;
    border-radius: var(--border-radius);
    margin-bottom: 40px;
}
.download-section h2 {
    font-size: 24px;
    margin-bottom: 12px;
}
.download-section p {
    color: var(--text-muted);
    margin-bottom: 24px;
    font-size: 14px;
}
.install-steps {
    text-align: left;
    max-width: 600px;
    margin: 0 auto 32px;
    background: rgba(0,0,0,0.3);
    padding: 20px;
    border-radius: var(--border-radius);
}
.install-steps h3 {
    font-size: 16px;
    margin-bottom: 12px;
}
.install-steps ol {
    padding-left: 20px;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.8;
}

/* 页脚 */
.site-footer {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 40px 0 20px;
    font-size: 13px;
    color: var(--text-muted);
}
.footer-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    text-align: center;
}
.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}
.footer-links a {
    color: var(--text-muted);
}
.footer-links a:hover {
    color: var(--text-main);
}
.copyright {
    font-size: 12px;
    margin-top: 8px;
}
.copyright a {
    color: var(--text-muted);
    text-decoration: underline;
}
.update-time {
    font-size: 12px;
    color: #666;
    margin-top: 8px;
}

/* 浮动下载窗口 */
.floating-download {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-gradient);
    color: #fff;
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 15px;
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.5);
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: transform 0.2s;
    border: none;
}
.floating-download:hover {
    transform: translateX(-50%) scale(1.05);
}
.floating-download img {
    height: 20px;
    width: 20px;
    border-radius: 50%;
}

/* 折叠面板 (移动端) */
.collapse-panel {
    display: none;
}
.collapse-trigger {
    display: none;
}

/* 媒体查询 - 平板 */
@media (min-width: 768px) {
    .hero h1 { font-size: 42px; }
    .hot-grid { grid-template-columns: repeat(3, 1fr); }
    .comment-wall { grid-template-columns: repeat(2, 1fr); }
    .finished-list { flex-direction: row; flex-wrap: wrap; }
    .finished-item { flex: 1 1 calc(50% - 20px); }
    .nav-links { display: flex; }
    .hero-posters img { width: 180px; height: 260px; }
    .floating-download { display: none; }
}

/* 媒体查询 - 桌面 */
@media (min-width: 1024px) {
    .hero { padding: 80px 0 60px; }
    .hot-grid { grid-template-columns: repeat(4, 1fr); }
    .finished-item { flex: 1 1 calc(33.33% - 20px); }
    .comment-wall { grid-template-columns: repeat(3, 1fr); }
    .hero-posters img { width: 200px; height: 280px; }
    .timeline {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
        border-left: none;
    }
    .timeline-item {
        padding-left: 0;
    }
    .timeline-item::before {
        left: -12px;
    }
    .info-layout {
        display: flex;
        gap: 20px;
    }
    .info-layout > div {
        flex: 1;
    }
}

/* 移动端折叠菜单控制 */
@media (max-width: 767px) {
    .collapse-trigger {
        display: block;
        background: var(--card-bg);
        padding: 12px 16px;
        border-radius: var(--border-radius);
        font-weight: 600;
        margin-bottom: 12px;
        text-align: center;
        border: 1px solid rgba(255,255,255,0.1);
        cursor: pointer;
    }
    .collapse-panel {
        display: none;
    }
    .collapse-panel.active {
        display: block;
        animation: fadeIn 0.3s;
    }
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}