:root {
    --color-deep: #583131;
    --color-accent: #fc6e5e;
    --color-bg: #e3f3f7;
    --color-teal: #b0dedb;
    --color-white: #ffffff;
    --color-dark: #2c1a1a;
    --color-gray: #6b5b5b;
    --color-light-gray: #f5f0f0;
    --color-border: #e8dcdc;
    --color-star: #f0a500;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --shadow-sm: 0 2px 8px rgba(88, 49, 49, 0.06);
    --shadow-md: 0 6px 22px rgba(88, 49, 49, 0.10);
    --shadow-lg: 0 12px 36px rgba(88, 49, 49, 0.13);
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --max-width: 1320px;
    --nav-height: 60px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
    font-size: 16px;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
    background-color: #faf7f7;
    color: #3a2a2a;
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ==================== 顶部导航 ==================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: var(--color-deep);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.15);
}
.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(14px, 3vw, 28px);
    height: var(--nav-height);
    gap: 16px;
}
.site-logo h1 {
    font-size: clamp(1.25rem, 2.4vw, 1.6rem);
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.04em;
    white-space: nowrap;
    line-height: 1;
}
.site-logo h1 span {
    color: var(--color-accent);
}
.nav-links {
    display: flex;
    align-items: center;
    gap: clamp(6px, 1.2vw, 16px);
    list-style: none;
    flex-wrap: wrap;
    justify-content: center;
}
.nav-links a {
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    font-size: clamp(0.78rem, 1.1vw, 0.9rem);
    font-weight: 500;
    padding: 7px 12px;
    border-radius: 20px;
    transition: var(--transition);
    white-space: nowrap;
    letter-spacing: 0.02em;
}
.nav-links a:hover,
.nav-links a:focus-visible {
    background: rgba(255, 255, 255, 0.13);
    color: #fff;
    outline: none;
}
.user-status {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    padding: 6px 14px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    flex-shrink: 0;
}
.user-status:hover {
    background: rgba(255, 255, 255, 0.18);
}
.user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.5);
    flex-shrink: 0;
}

@media (max-width: 767px) {
    .nav-links {
        gap: 2px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        flex-wrap: nowrap;
        padding: 0 4px;
        mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
        -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
    }
    .nav-links::-webkit-scrollbar {
        display: none;
    }
    .nav-links a {
        font-size: 0.75rem;
        padding: 5px 10px;
        border-radius: 16px;
    }
    .header-inner {
        gap: 8px;
        padding: 0 10px;
    }
    .user-status {
        font-size: 0.75rem;
        padding: 5px 10px;
        gap: 4px;
    }
    .user-avatar {
        width: 24px;
        height: 24px;
    }
}

/* ==================== 主容器 ==================== */
.main-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 clamp(12px, 2.5vw, 24px);
}

/* ==================== 通用板块标题 ==================== */
.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: clamp(16px, 2.5vw, 24px);
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    font-weight: 700;
    color: var(--color-deep);
    letter-spacing: 0.03em;
    position: relative;
}
.section-title::before {
    content: '';
    width: 4px;
    height: 26px;
    background: var(--color-accent);
    border-radius: 3px;
    flex-shrink: 0;
}
.section-title span {
    color: var(--color-accent);
}

/* ==================== 板块间距 ==================== */
.section-block {
    margin-bottom: clamp(22px, 3.5vw, 38px);
}

/* ==================== 友情链接 ==================== */
.friend-links {
    margin-bottom: clamp(18px, 2.5vw, 28px);
}
.friend-links .links-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
}
.link_friendlinks_a {
    color: #6b5b5b;
    text-decoration: none;
    font-size: 0.82rem;
    padding: 6px 14px;
    border-radius: 18px;
    background: #f8f3f3;
    transition: var(--transition);
    border: 1px solid transparent;
    white-space: nowrap;
}
.link_friendlinks_a:hover {
    color: var(--color-accent);
    background: #fff;
    border-color: var(--color-accent);
}

/* ==================== 底部导航 ==================== */
.site-footer {
    width: 100%;
    background: var(--color-deep);
    color: rgba(255, 255, 255, 0.8);
    padding: clamp(20px, 3vw, 32px) clamp(14px, 3vw, 28px);
    text-align: center;
    font-size: 0.82rem;
    line-height: 1.8;
    letter-spacing: 0.03em;
}
.site-footer a {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 500;
}
.site-footer a:hover {
    text-decoration: underline;
}
.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 20px;
    margin-bottom: 10px;
}
.footer-links a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.8rem;
}

/* 平滑滚动偏移 */
[id] {
    scroll-margin-top: calc(var(--nav-height) + 10px);
}

/* ==================== 打印和焦点 ==================== */
:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
    border-radius: 3px;
}

/* ==================== Brand / Banner 轮播区域 ==================== */
.brand-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: clamp(16px, 2.5vw, 28px);
    margin-bottom: clamp(20px, 3vw, 36px);
}
@media (min-width: 900px) {
    .brand-section {
        grid-template-columns: 1fr 300px;
        gap: 20px;
    }
}
@media (min-width: 1100px) {
    .brand-section {
        grid-template-columns: 1fr 340px;
    }
}

.banner-carousel {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 16 / 7;
    box-shadow: var(--shadow-lg);
    background: #ddd;
    min-height: 200px;
}
@media (max-width: 480px) {
    .banner-carousel {
        aspect-ratio: 16 / 10;
        border-radius: var(--radius-md);
    }
}
.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}
.carousel-slide {
    flex: 0 0 100%;
    position: relative;
    height: 100%;
}
.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: clamp(16px, 3vw, 32px) clamp(16px, 3vw, 28px);
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
    color: #fff;
    pointer-events: none;
}
.carousel-caption h2 {
    font-size: clamp(1.1rem, 2.2vw, 1.7rem);
    font-weight: 700;
    margin-bottom: 4px;
    letter-spacing: 0.03em;
}
.carousel-caption p {
    font-size: clamp(0.75rem, 1.1vw, 0.9rem);
    opacity: 0.9;
}
.carousel-dots {
    position: absolute;
    bottom: 12px;
    right: 20px;
    display: flex;
    gap: 8px;
    z-index: 5;
}
.carousel-dots button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.7);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: var(--transition);
}
.carousel-dots button.active {
    background: #fff;
    border-color: #fff;
    transform: scale(1.25);
}
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}
.carousel-arrow:hover {
    background: rgba(255, 255, 255, 0.35);
}
.carousel-arrow.prev {
    left: 12px;
}
.carousel-arrow.next {
    right: 12px;
}
@media (max-width: 600px) {
    .carousel-arrow {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    .carousel-arrow.prev {
        left: 6px;
    }
    .carousel-arrow.next {
        right: 6px;
    }
}

/* 周榜推荐 */
.weekly-rank {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: clamp(16px, 2vw, 22px);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 100%;
    overflow-y: auto;
}
.weekly-rank h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-deep);
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.03em;
    border-bottom: 2px solid var(--color-accent);
    padding-bottom: 10px;
}
.rank-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}
.rank-item:hover {
    background: #fef9f8;
}
.rank-num {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--color-accent);
    min-width: 28px;
    text-align: center;
}
.rank-num.top {
    color: #e63946;
}
.rank-item img {
    width: 44px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}
.rank-info {
    flex: 1;
    min-width: 0;
}
.rank-info .rn-title {
    font-weight: 600;
    font-size: 0.88rem;
    color: #3a2a2a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rank-info .rn-meta {
    font-size: 0.72rem;
    color: #888;
}
@media (max-width: 899px) {
    .brand-section {
        grid-template-columns: 1fr;
    }
    .weekly-rank {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
        overflow-y: visible;
        padding: 14px;
    }
    .weekly-rank h3 {
        width: 100%;
        flex: 0 0 100%;
    }
    .rank-item {
        flex: 0 0 auto;
        width: calc(50% - 8px);
        min-width: 140px;
    }
    .rank-item img {
        width: 36px;
        height: 50px;
    }
}

/* ==================== 平台介绍 ==================== */
.platform-intro {
    background: linear-gradient(135deg, #fff 0%, var(--color-bg) 100%);
    border-radius: var(--radius-lg);
    padding: clamp(20px, 3vw, 34px) clamp(18px, 3vw, 30px);
    margin-bottom: clamp(22px, 3vw, 38px);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-teal);
}
.platform-intro p {
    font-size: clamp(0.9rem, 1.2vw, 1rem);
    color: #4a3a3a;
    line-height: 1.8;
    max-width: 800px;
}
.platform-intro .highlight {
    color: var(--color-accent);
    font-weight: 600;
}

/* ==================== 双栏布局 ==================== */
.content-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
    margin-bottom: 28px;
}
@media (min-width: 900px) {
    .content-layout {
        grid-template-columns: 1fr 320px;
        gap: 26px;
    }
}
@media (min-width: 1100px) {
    .content-layout {
        grid-template-columns: 1fr 350px;
    }
}
.content-main {
    min-width: 0;
}
.content-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ==================== 热门影视网格 ==================== */
.hot-movies-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 13px;
}
@media (min-width: 500px) {
    .hot-movies-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (min-width: 768px) {
    .hot-movies-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }
}
@media (min-width: 1100px) {
    .hot-movies-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 16px;
    }
}
.movie-card {
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--color-border);
    text-decoration: none;
    color: inherit;
}
.movie-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}
.movie-card .poster-wrap {
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: #e8e0e0;
    position: relative;
}
.movie-card .poster-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.movie-card:hover .poster-wrap img {
    transform: scale(1.06);
}
.movie-card .badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--color-accent);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    z-index: 2;
    letter-spacing: 0.04em;
}
.movie-card .card-info {
    padding: 10px 11px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.movie-card .card-info h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: #3a2a2a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.02em;
}
.movie-card .card-info .meta {
    font-size: 0.7rem;
    color: #7a6a6a;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.movie-card .card-info .type-tag {
    display: inline-block;
    background: #fef0ee;
    color: var(--color-accent);
    font-size: 0.66rem;
    padding: 2px 7px;
    border-radius: 10px;
    font-weight: 600;
    align-self: flex-start;
}

/* ==================== 明星介绍 ==================== */
.stars-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
@media (min-width: 600px) {
    .stars-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 18px;
    }
}
.star-card {
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    text-align: center;
    padding-bottom: 14px;
    transition: var(--transition);
    border: 1px solid var(--color-border);
    text-decoration: none;
    color: inherit;
    display: block;
}
.star-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.star-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}
.star-card h4 {
    margin-top: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #3a2a2a;
}
.star-card p {
    font-size: 0.72rem;
    color: #7a6a6a;
    padding: 0 8px;
    margin-top: 2px;
}

/* ==================== 剧情介绍 & 电影详情 ==================== */
.plot-grid,
.detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}
@media (min-width: 600px) {
    .plot-grid,
    .detail-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}
@media (min-width: 1000px) {
    .plot-grid,
    .detail-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
.plot-card,
.detail-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 16px 18px;
    box-shadow: var(--shadow-sm);
    border-left: 3px solid var(--color-teal);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    display: block;
}
.plot-card:hover,
.detail-card:hover {
    box-shadow: var(--shadow-md);
    border-left-color: var(--color-accent);
}
.plot-card h4,
.detail-card h4 {
    font-weight: 700;
    color: var(--color-deep);
    margin-bottom: 6px;
    font-size: 0.95rem;
}
.plot-card p,
.detail-card p {
    font-size: 0.82rem;
    color: #5a4a4a;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.detail-card .detail-meta {
    font-size: 0.72rem;
    color: #999;
    margin-top: 4px;
}

/* ==================== 侧边栏卡片 ==================== */
.sidebar-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 18px 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
}
.sidebar-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-deep);
    margin-bottom: 12px;
    letter-spacing: 0.03em;
    border-bottom: 2px solid var(--color-teal);
    padding-bottom: 8px;
}
.reading-stats {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.reading-stats .stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.88rem;
}
.reading-stats .stat-val {
    font-weight: 700;
    color: var(--color-accent);
    font-size: 1.1rem;
}
.reading-stats .update-time {
    font-size: 0.7rem;
    color: #aaa;
    text-align: right;
    margin-top: 4px;
}
.hot-star-mini {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #f5eeee;
}
.hot-star-mini:last-child {
    border-bottom: none;
}
.hot-star-mini img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
}
.hot-star-mini span {
    font-weight: 600;
    font-size: 0.85rem;
    color: #3a2a2a;
}

/* ==================== 评论区 ==================== */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.comment-item {
    background: #fff;
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid #f5eeee;
    transition: var(--transition);
}
.comment-item:hover {
    border-color: var(--color-teal);
}
.comment-item .comment-user {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--color-deep);
    margin-bottom: 4px;
}
.comment-item .comment-text {
    font-size: 0.82rem;
    color: #4a3a3a;
    line-height: 1.7;
}
.comment-item .comment-meta {
    font-size: 0.68rem;
    color: #bbb;
    margin-top: 4px;
    text-align: right;
}

/* ==================== APP下载 ==================== */
.download-section {
    background: linear-gradient(135deg, #fff 0%, #fdf7f5 100%);
    border-radius: var(--radius-lg);
    padding: clamp(20px, 3vw, 32px) clamp(16px, 3vw, 28px);
    margin-bottom: clamp(22px, 3vw, 34px);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
}
.download-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
@media (min-width: 500px) {
    .download-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }
}
.download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    color: #fff;
    transition: var(--transition);
    letter-spacing: 0.03em;
    cursor: pointer;
    border: none;
    white-space: nowrap;
}
.download-btn.android {
    background: #3ddc84;
    color: #000;
}
.download-btn.ios {
    background: #1c1c1e;
    color: #fff;
}
.download-btn.pc {
    background: #52616b;
    color: #fff;
}
.download-btn.mac {
    background: #2c2c2e;
    color: #fff;
}
.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    filter: brightness(1.08);
}

/* ==================== 常见问题 ==================== */
.faq-section {
    margin-bottom: clamp(22px, 3vw, 34px);
}
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.faq-item {
    background: #fff;
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    box-shadow: var(--shadow-sm);
    border: 1px solid #f5eeee;
    cursor: pointer;
    transition: var(--transition);
}
.faq-item:hover {
    border-color: var(--color-teal);
    background: #fefefe;
}
.faq-item summary {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-deep);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}
.faq-item summary::-webkit-details-marker {
    display: none;
}
.faq-item summary::after {
    content: '+';
    font-size: 1.3rem;
    color: var(--color-accent);
    font-weight: 700;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}
.faq-item[open] summary::after {
    content: '−';
    transform: rotate(0deg);
}
.faq-item .faq-answer {
    margin-top: 8px;
    font-size: 0.82rem;
    color: #5a4a4a;
    line-height: 1.7;
    padding-top: 8px;
    border-top: 1px solid #f5eeee;
}