:root {
    --bg: #1A0C08;
    --bg-dark: #1F0E09;
    --panel: #33150E;
    --panel-light: #4A1E13;
    --text: #FFF3EA;
    --text-muted: #C29C8A;
    --border: rgba(255,196,150,.10);
    --border-strong: rgba(255,196,150,.20);
    --grad-main: linear-gradient(135deg, #FFC64D, #FF8A3D, #FF5470);
    --glow: radial-gradient(circle at top left, rgba(255,198,77,.15), transparent 40%),
            radial-gradient(circle at top right, rgba(255,138,61,.15), transparent 40%),
            radial-gradient(circle at bottom, rgba(255,84,112,.1), transparent 50%);
}

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

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg);
    background-image: var(--glow);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    padding-bottom: 80px;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-grad {
    background: var(--grad-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    background: var(--grad-main);
    color: #1A0C08;
    border: none;
    cursor: pointer;
    text-align: center;
    box-shadow: 0 4px 15px rgba(255,84,112,.3);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,84,112,.5);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-strong);
    color: var(--text);
    box-shadow: none;
}

.btn-outline:hover {
    background: rgba(255,196,150,.05);
    border-color: var(--grad-main);
    box-shadow: 0 0 15px rgba(255,138,61,.2);
}

/* 头部与导航 */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(26, 12, 8, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 700;
}

.brand img {
    height: 32px;
    border-radius: 6px;
}

/* 导航样式-特色创意 */
.nav-list {
    display: flex;
    gap: 4px;
    list-style: none;
    overflow-x: auto;
    scrollbar-width: none;
}

.nav-list::-webkit-scrollbar {
    display: none;
}

.nav-list li a {
    display: block;
    padding: 6px 12px;
    font-size: 13px;
    color: var(--text-muted);
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
}

.nav-list li a:hover, .nav-list li a.active {
    color: #1A0C08;
    background: var(--grad-main);
    font-weight: 600;
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: 1px solid var(--border-strong);
    color: var(--text);
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
}

/* 首屏区 */
.hero {
    padding: 40px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    position: relative;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    padding: 4px 12px;
    border-radius: 20px;
    background: var(--panel);
    border: 1px solid var(--border-strong);
    color: var(--text-muted);
    width: fit-content;
}

.hero h1 {
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.3;
    font-weight: 800;
}

.hero p {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 90%;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
}

.hero-visual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 12px;
    height: 100%;
    min-height: 400px;
}

.hero-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0,0,0,.4);
}

.hero-visual img:nth-child(1) {
    grid-column: 1;
    grid-row: 1 / 3;
}

.hero-visual img:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
}

.hero-visual img:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
}

.hero-visual img:nth-child(4) {
    display: none; /* 保持布局整齐，只展示3张作为主视觉 */
}

/* 跑马灯 */
.marquee-wrap {
    width: 100%;
    overflow: hidden;
    background: var(--panel);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
    margin-bottom: 40px;
    position: relative;
}

.marquee-content {
    display: flex;
    white-space: nowrap;
    animation: scroll 20s linear infinite;
    font-weight: 700;
    font-size: 18px;
}

.marquee-content span {
    padding: 0 20px;
    background: var(--grad-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

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

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.section-header h2 span {
    background: var(--grad-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 15px;
}

/* 列表网格样式 */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

/* 卡片样式 1：真人短剧 */
.card {
    background: var(--panel);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.card:hover {
    border-color: var(--border-strong);
    transform: translateY(-4px);
}

.card-img-wrap {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
}

.card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-img-wrap img {
    transform: scale(1.05);
}

.card-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--grad-main);
    color: #1A0C08;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.card-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-info h3 {
    font-size: 16px;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-info p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    padding-top: 10px;
}

/* 排版风格 2：完结魔改剧 - 图文左右交替 */
.list-alternate {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.list-item-alt {
    display: flex;
    background: var(--panel);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    align-items: center;
}

.list-item-alt:nth-child(even) {
    flex-direction: row-reverse;
}

.list-item-alt .img-box {
    flex: 0 0 300px;
    height: 200px;
}

.list-item-alt .img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.list-item-alt .text-box {
    flex: 1;
    padding: 24px;
}

.list-item-alt .text-box h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.list-item-alt .text-box p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 16px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    font-size: 12px;
    padding: 2px 10px;
    border-radius: 12px;
    background: rgba(255,196,150,.1);
    color: #FFC64D;
    border: 1px solid rgba(255,196,150,.2);
}

/* 排版风格 3：热播榜 - 排行榜 */
.rank-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rank-item {
    display: flex;
    align-items: center;
    background: var(--panel);
    padding: 16px;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.rank-num {
    width: 40px;
    font-size: 24px;
    font-weight: 800;
    font-style: italic;
    background: var(--grad-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.8;
}

.rank-img {
    width: 60px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    margin-right: 16px;
}

.rank-info h3 {
    font-size: 16px;
    margin-bottom: 4px;
}

.rank-info p {
    font-size: 13px;
    color: var(--text-muted);
}

/* 排版风格 4：热门点评 - 问答样式 */
.review-box {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.review-card {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    padding: 20px;
    border-radius: 12px;
    position: relative;
}

.review-card::before {
    content: "“";
    position: absolute;
    top: 10px;
    left: 15px;
    font-size: 40px;
    color: rgba(255,196,150,.15);
    font-family: serif;
    line-height: 1;
}

.review-user {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.review-user img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--panel-light);
}

.review-user strong {
    display: block;
    font-size: 14px;
}

.review-user span {
    font-size: 12px;
    color: var(--text-muted);
}

.review-text {
    font-size: 14px;
    color: var(--text-muted);
    position: relative;
    z-index: 1;
}

/* 排版风格 5：时间轴 */
.timeline-box {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    padding-top: 30px;
    gap: 10px;
}

.timeline-box::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
    z-index: 0;
}

.time-item {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}

.time-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--grad-main);
    margin: 0 auto 10px;
    box-shadow: 0 0 10px rgba(255,138,61,.5);
}

.time-label {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #FFC64D;
}

.time-desc {
    font-size: 12px;
    color: var(--text-muted);
}

/* 头部菜单折叠 */
.mobile-dropdown {
    display: none;
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border);
    padding: 10px 20px;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    z-index: 99;
}

.mobile-dropdown.active {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mobile-dropdown a {
    padding: 6px 12px;
    font-size: 14px;
    color: var(--text-muted);
    border-radius: 16px;
    border: 1px solid var(--border);
}

/* 浮动下载窗 */
.floating-download {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 500px;
    background: var(--panel);
    border: 1px solid var(--border-strong);
    border-radius: 16px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    z-index: 1000;
    gap: 12px;
}

.floating-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.floating-info img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.floating-text h4 {
    font-size: 14px;
    margin-bottom: 2px;
}

.floating-text p {
    font-size: 12px;
    color: var(--text-muted);
}

/* 页脚 */
footer {
    background: var(--bg-dark);
    border-top: 1px solid var(--border);
    padding: 40px 0 20px;
    font-size: 13px;
    color: var(--text-muted);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    gap: 16px;
}

.footer-links a {
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--text);
}

.copyright {
    text-align: center;
    border-top: 1px solid var(--border);
    padding-top: 20px;
    font-size: 12px;
    color: rgba(194,156,138,0.6);
}

/* 弹窗样式（百度/苹果） */
.browser-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.browser-modal.active {
    display: flex;
}

.modal-content {
    background: var(--panel);
    padding: 24px;
    border-radius: 16px;
    width: 80%;
    max-width: 320px;
    text-align: center;
    border: 1px solid var(--border-strong);
}

.modal-content h3 {
    font-size: 16px;
    margin-bottom: 12px;
    line-height: 1.4;
}

.modal-content p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
    word-break: break-all;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-content {
        align-items: center;
    }
    .hero p {
        max-width: 100%;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-visual {
        min-height: 300px;
    }
    .nav-list {
        display: none;
    }
    .mobile-menu-btn {
        display: block;
    }
    .grid-container {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    .list-item-alt, .list-item-alt:nth-child(even) {
        flex-direction: column;
    }
    .list-item-alt .img-box {
        flex: auto;
        width: 100%;
        height: 240px;
    }
    .timeline-box {
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 20px;
    }
    .time-item {
        flex: 0 0 calc(33.333% - 20px);
    }
    .timeline-box::before {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 20px 0;
    }
    .section {
        padding: 40px 0;
    }
    .hero-visual {
        min-height: 200px;
        gap: 8px;
    }
    .grid-container {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .card-info {
        padding: 10px;
    }
    .card-info h3 {
        font-size: 14px;
    }
    .card-info p {
        font-size: 12px;
        margin-bottom: 8px;
    }
    .rank-item {
        padding: 10px;
    }
    .rank-img {
        width: 50px;
        height: 66px;
        margin-right: 10px;
    }
    .time-item {
        flex: 0 0 calc(50% - 10px);
        text-align: left;
    }
    .time-dot {
        margin: 0 0 6px 0;
    }
    .floating-download {
        width: 95%;
        padding: 10px;
    }
    .floating-text h4 {
        font-size: 13px;
    }
    .floating-text p {
        font-size: 11px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 120px;
    }
    .floating-download .btn {
        padding: 6px 14px;
        font-size: 13px;
    }
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .marquee-content {
        font-size: 15px;
    }
}