:root {
    --color-deep: #520556;
    --color-burgundy: #8b104e;
    --color-orange-red: #ca431d;
    --color-gold: #ff9900;
    --color-white: #ffffff;
    --color-bg: #faf8f5;
    --color-card: #ffffff;
    --color-text: #1a1a2e;
    --color-text-secondary: #5a5a6e;
    --color-border: #e8e4e0;
    --color-tag-bg: #fff3e6;
    --shadow-sm: 0 2px 8px rgba(82, 5, 86, 0.06);
    --shadow-md: 0 4px 16px rgba(82, 5, 86, 0.10);
    --shadow-lg: 0 8px 32px rgba(82, 5, 86, 0.13);
    --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.07);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --font-base: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
    --max-width: 1320px;
    --nav-height: 62px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-base);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
    padding-top: var(--nav-height);
}

/* ========== 顶部导航 ========== */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: var(--color-white);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(12px, 3vw, 32px);
    box-shadow: var(--shadow-sm);
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(90deg, var(--color-deep), var(--color-burgundy), var(--color-orange-red), var(--color-gold)) 1;
    gap: 8px;
    flex-wrap: nowrap;
}
.top-nav .brand-name {
    flex-shrink: 0;
}
.top-nav .brand-name h1 {
    font-size: clamp(1.1rem, 2.2vw, 1.5rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--color-deep), var(--color-burgundy));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
    letter-spacing: -0.5px;
    margin: 0;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: clamp(4px, 1.2vw, 18px);
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex-shrink: 1;
    justify-content: center;
    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%);
    padding: 0 6px;
}
.nav-links::-webkit-scrollbar {
    display: none;
}
.nav-links a {
    text-decoration: none;
    color: var(--color-text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    padding: 6px 10px;
    border-radius: 20px;
    transition: var(--transition);
    letter-spacing: 0.3px;
}
.nav-links a:hover,
.nav-links a:focus-visible {
    color: var(--color-orange-red);
    background: #fff5ed;
}
.user-status {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    cursor: pointer;
    padding: 6px 14px;
    border-radius: 22px;
    background: #fdf7f3;
    border: 1px solid #f0e0d4;
    transition: var(--transition);
    white-space: nowrap;
}
.user-status:hover {
    background: #fff5ed;
    border-color: var(--color-gold);
}
.user-status .avatar-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-gold);
    box-shadow: 0 0 6px rgba(255, 153, 0, 0.5);
}

/* ========== 容器 ========== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 clamp(14px, 3vw, 28px);
}

/* ========== 板块标题 ========== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: clamp(18px, 2.5vw, 26px);
}
.section-title {
    font-size: clamp(1.25rem, 2.4vw, 1.65rem);
    font-weight: 700;
    position: relative;
    padding-left: 16px;
    color: var(--color-text);
    letter-spacing: -0.3px;
}
.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 26px;
    border-radius: 3px;
    background: linear-gradient(180deg, var(--color-deep), var(--color-burgundy), var(--color-orange-red));
}
.section-subtitle {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    font-weight: 400;
    letter-spacing: 0.5px;
}
.more-link {
    font-size: 0.85rem;
    color: var(--color-orange-red);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.more-link:hover {
    color: var(--color-burgundy);
    gap: 8px;
}

/* ========== Banner轮播 (Brand: 左边文字右边图片) ========== */
.banner-section {
    margin: clamp(16px, 2.5vw, 24px) auto;
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: #1a0a1c;
    max-width: var(--max-width);
    width: calc(100% - clamp(20px, 4vw, 40px));
    aspect-ratio: 16 / 7;
    min-height: 260px;
    max-height: 440px;
}
.banner-slides {
    position: relative;
    width: 100%;
    height: 100%;
}
.banner-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    padding: clamp(20px, 5%, 48px);
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    pointer-events: none;
    gap: clamp(16px, 4%, 40px);
    flex-direction: row;
}
.banner-slide.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
}
.banner-slide .banner-text {
    flex: 1 1 50%;
    color: #fff;
    z-index: 3;
}
.banner-slide .banner-text .banner-tag {
    display: inline-block;
    background: var(--color-gold);
    color: #1a0a1c;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.banner-slide .banner-text h2 {
    font-size: clamp(1.3rem, 3vw, 2.2rem);
    font-weight: 800;
    margin-bottom: 8px;
    line-height: 1.25;
    letter-spacing: -0.5px;
}
.banner-slide .banner-text p {
    font-size: clamp(0.8rem, 1.3vw, 0.95rem);
    opacity: 0.88;
    margin-bottom: 16px;
    line-height: 1.55;
    max-width: 440px;
}
.banner-slide .banner-text .banner-btn {
    display: inline-block;
    background: var(--color-orange-red);
    color: #fff;
    padding: 10px 22px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: var(--transition);
    letter-spacing: 0.5px;
}
.banner-slide .banner-text .banner-btn:hover {
    background: var(--color-gold);
    color: #1a0a1c;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 153, 0, 0.35);
}
.banner-slide .banner-img-wrap {
    flex: 1 1 45%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}
.banner-slide .banner-img-wrap img {
    width: 100%;
    max-width: 380px;
    max-height: 380px;
    height: auto;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    transition: transform 0.4s ease;
}
.banner-slide.active .banner-img-wrap img {
    transform: scale(1);
}
.banner-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 5;
}
.banner-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: var(--transition);
}
.banner-dots span.active {
    background: var(--color-gold);
    width: 28px;
    border-radius: 6px;
}

/* ========== 平台介绍 ========== */
.intro-section {
    background: var(--color-card);
    border-radius: var(--radius-lg);
    padding: clamp(20px, 3vw, 32px);
    margin: clamp(18px, 2.5vw, 28px) auto;
    box-shadow: var(--shadow-card);
    text-align: center;
    max-width: var(--max-width);
    width: calc(100% - clamp(20px, 4vw, 40px));
}
.intro-section h2 {
    font-size: clamp(1.3rem, 2.6vw, 1.8rem);
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--color-deep);
}
.intro-section p {
    max-width: 700px;
    margin: 0 auto;
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ========== 周榜推荐 ========== */
.week-rank-section {
    margin: clamp(18px, 2.5vw, 28px) auto;
    max-width: var(--max-width);
    width: calc(100% - clamp(20px, 4vw, 40px));
}
.week-rank-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 14px;
}
.week-rank-card {
    background: var(--color-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    position: relative;
    cursor: pointer;
    text-align: center;
    padding-bottom: 10px;
}
.week-rank-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.week-rank-card .rank-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--color-gold);
    color: #1a0a1c;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    font-weight: 800;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(255, 153, 0, 0.4);
}
.week-rank-card img {
    width: 100%;
    max-width: 240px;
    max-height: 360px;
    height: auto;
    aspect-ratio: 2/3;
    object-fit: cover;
    display: block;
}
.week-rank-card .rank-title {
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 6px;
    padding: 0 6px;
    color: var(--color-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.week-rank-card .rank-score {
    font-size: 0.75rem;
    color: var(--color-orange-red);
    font-weight: 700;
}

/* ========== 热门影视 6x4 ========== */
.hot-movies-section {
    margin: clamp(18px, 2.5vw, 28px) auto;
    max-width: var(--max-width);
    width: calc(100% - clamp(20px, 4vw, 40px));
}
.hot-movies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
    gap: 16px;
}
.movie-card {
    background: var(--color-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}
.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.movie-card img {
    width: 100%;
    max-width: 320px;
    max-height: 480px;
    height: auto;
    aspect-ratio: 2/3;
    object-fit: cover;
    display: block;
}
.movie-card .movie-info {
    padding: 10px 12px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.movie-card .movie-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--color-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.movie-card .movie-meta {
    font-size: 0.73rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
}
.movie-card .movie-meta span {
    background: var(--color-tag-bg);
    padding: 2px 8px;
    border-radius: 10px;
    white-space: nowrap;
    font-size: 0.7rem;
    color: #8b4513;
}
.movie-card .movie-type-tag {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-deep), var(--color-burgundy));
    color: #fff;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    align-self: flex-start;
    letter-spacing: 0.5px;
}

/* ========== 热门明星推荐 ========== */
.hot-stars-recommend {
    margin: clamp(18px, 2.5vw, 28px) auto;
    max-width: var(--max-width);
    width: calc(100% - clamp(20px, 4vw, 40px));
}
.hot-stars-scroll {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
}
.hot-stars-scroll::-webkit-scrollbar {
    display: none;
}
.hot-star-chip {
    flex: 0 0 auto;
    scroll-snap-align: start;
    background: var(--color-card);
    border-radius: 30px;
    padding: 8px 18px 8px 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    white-space: nowrap;
}
.hot-star-chip:hover {
    border-color: var(--color-gold);
    box-shadow: var(--shadow-md);
}
.hot-star-chip img {
    width: 44px;
    height: 44px;
    max-width: 80px;
    max-height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.hot-star-chip .star-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--color-text);
}
.hot-star-chip .star-tag {
    font-size: 0.7rem;
    color: var(--color-orange-red);
    font-weight: 600;
}

/* ========== 明星介绍 4条 ========== */
.stars-section {
    margin: clamp(18px, 2.5vw, 28px) auto;
    max-width: var(--max-width);
    width: calc(100% - clamp(20px, 4vw, 40px));
}
.stars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
}
.star-card {
    background: var(--color-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 16px;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}
.star-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.star-card img {
    width: 100px;
    height: 100px;
    max-width: 160px;
    max-height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--color-gold);
    margin-bottom: 10px;
}
.star-card .star-name-lg {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--color-text);
    margin-bottom: 4px;
}
.star-card .star-desc {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
}
.star-card .star-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 6px;
    justify-content: center;
    margin-bottom: 8px;
}
.star-card .star-tag-chip {
    background: linear-gradient(135deg, #fff5ed, #fff9f0);
    color: var(--color-burgundy);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    border: 1px solid #f5e4d4;
}

/* ========== 剧情介绍 4条 ========== */
.plot-section {
    margin: clamp(18px, 2.5vw, 28px) auto;
    max-width: var(--max-width);
    width: calc(100% - clamp(20px, 4vw, 40px));
}
.plot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}
.plot-card {
    background: var(--color-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}
.plot-card:hover {
    box-shadow: var(--shadow-md);
}
.plot-card img {
    width: 100%;
    max-width: 480px;
    max-height: 320px;
    height: auto;
    aspect-ratio: 16/10;
    object-fit: cover;
    display: block;
}
.plot-card .plot-info {
    padding: 14px 16px;
}
.plot-card .plot-info h4 {
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--color-text);
    font-size: 0.95rem;
}
.plot-card .plot-info p {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    line-height: 1.55;
}

/* ========== 电影详细介绍 4条 ========== */
.detail-section {
    margin: clamp(18px, 2.5vw, 28px) auto;
    max-width: var(--max-width);
    width: calc(100% - clamp(20px, 4vw, 40px));
}
.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
}
.detail-card {
    background: var(--color-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}
.detail-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}
.detail-card img {
    width: 100%;
    max-width: 480px;
    max-height: 320px;
    height: auto;
    aspect-ratio: 3/2;
    object-fit: cover;
    display: block;
}
.detail-card .detail-body {
    padding: 16px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.detail-card .detail-body h4 {
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-text);
}
.detail-card .detail-body .detail-meta {
    font-size: 0.78rem;
    color: var(--color-text-secondary);
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
}
.detail-card .detail-body .detail-desc {
    font-size: 0.82rem;
    color: var(--color-text-secondary);
    line-height: 1.55;
}

/* ========== 右侧边栏：电影总阅读 + 数据统计 ========== */
.sidebar-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin: clamp(18px, 2.5vw, 28px) auto;
    max-width: var(--max-width);
    width: calc(100% - clamp(20px, 4vw, 40px));
}
@media (min-width: 900px) {
    .sidebar-row {
        grid-template-columns: 1fr 320px;
        align-items: start;
    }
}
.reading-stats-sidebar {
    background: var(--color-card);
    border-radius: var(--radius-lg);
    padding: clamp(18px, 2.5vw, 24px);
    box-shadow: var(--shadow-card);
    border-left: 4px solid var(--color-gold);
    display: flex;
    flex-direction: column;
    gap: 14px;
    height: fit-content;
    position: sticky;
    top: calc(var(--nav-height) + 16px);
}
.reading-stats-sidebar h3 {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--color-deep);
}
.reading-stats-sidebar .stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--color-border);
}
.reading-stats-sidebar .stat-value {
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--color-orange-red);
}
.reading-stats-sidebar .stat-label {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
}
.reading-stats-sidebar .update-time {
    font-size: 0.75rem;
    color: #999;
    text-align: right;
}
.reading-stats-sidebar .new-today {
    background: linear-gradient(135deg, #fff9f0, #fff3e0);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    text-align: center;
    font-weight: 600;
    color: var(--color-orange-red);
    font-size: 0.9rem;
}

/* ========== 电影详解评论 ========== */
.comments-section {
    margin: clamp(18px, 2.5vw, 28px) auto;
    max-width: var(--max-width);
    width: calc(100% - clamp(20px, 4vw, 40px));
}
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.comment-card {
    background: var(--color-card);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-left: 3px solid transparent;
}
.comment-card:hover {
    border-left-color: var(--color-gold);
    box-shadow: var(--shadow-md);
}
.comment-card .comment-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
.comment-card .comment-user {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--color-text);
}
.comment-card .comment-time {
    font-size: 0.73rem;
    color: #999;
    margin-left: auto;
}
.comment-card .comment-body {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    line-height: 1.65;
}

/* ========== 平台APP下载 ========== */
.download-section {
    margin: clamp(18px, 2.5vw, 28px) auto;
    max-width: var(--max-width);
    width: calc(100% - clamp(20px, 4vw, 40px));
    background: linear-gradient(135deg, #fdf7f3, #fff9f5, #fef5ec);
    border-radius: var(--radius-xl);
    padding: clamp(22px, 3vw, 36px);
    text-align: center;
    box-shadow: var(--shadow-card);
    border: 1px solid #f0e0d0;
}
.download-section h3 {
    font-weight: 700;
    font-size: clamp(1.2rem, 2.2vw, 1.5rem);
    margin-bottom: 6px;
    color: var(--color-deep);
}
.download-section .download-subtitle {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    margin-bottom: 18px;
}
.download-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}
.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: 28px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    border: 2px solid transparent;
    background: var(--color-white);
    color: var(--color-text);
    box-shadow: var(--shadow-sm);
    white-space: nowrap;
}
.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-gold);
}
.download-btn .app-icon {
    flex-shrink: 0;
}
.download-btn.android:hover {
    background: #e8f8e8;
    border-color: #3ddc84;
}
.download-btn.ios:hover {
    background: #f5f5f7;
    border-color: #000;
}
.download-btn.pc:hover {
    background: #eef2f5;
    border-color: #52616b;
}
.download-btn.mac:hover {
    background: #f5f5f7;
    border-color: #333;
}

/* ========== 常见问题 ========== */
.faq-section {
    margin: clamp(18px, 2.5vw, 28px) auto;
    max-width: var(--max-width);
    width: calc(100% - clamp(20px, 4vw, 40px));
}
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
details.faq-item {
    background: var(--color-card);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--color-border);
}
details.faq-item[open] {
    border-color: var(--color-gold);
    box-shadow: var(--shadow-md);
}
details.faq-item summary {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--color-text);
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
details.faq-item summary::-webkit-details-marker {
    display: none;
}
details.faq-item summary::after {
    content: '+';
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-orange-red);
    transition: var(--transition);
    flex-shrink: 0;
}
details.faq-item[open] summary::after {
    content: '−';
    transform: rotate(180deg);
}
details.faq-item .faq-answer {
    margin-top: 10px;
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    padding-top: 8px;
    border-top: 1px solid var(--color-border);
}

/* ========== 友情链接 ========== */
.friendlinks-section {
    margin: clamp(20px, 3vw, 32px) auto;
    max-width: var(--max-width);
    width: calc(100% - clamp(20px, 4vw, 40px));
    background: linear-gradient(135deg, #fffaf5 0%, #fff5ed 50%, #fef5ec 100%);
    border-radius: var(--radius-xl);
    padding: clamp(20px, 2.8vw, 32px) clamp(20px, 3vw, 36px);
    box-shadow: var(--shadow-card);
    border: 1px solid #f0e0d0;
    position: relative;
    overflow: hidden;
}
.friendlinks-section::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(255, 153, 0, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.friendlinks-section::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(82, 5, 86, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.friendlinks-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px dashed rgba(82, 5, 86, 0.15);
    position: relative;
    z-index: 1;
}
.friendlinks-header h4 {
    font-weight: 700;
    font-size: clamp(1rem, 1.6vw, 1.15rem);
    color: var(--color-deep);
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.friendlinks-header h4::before {
    content: '🤝';
    font-size: 1.15rem;
}
.friendlinks-header .friendlinks-tip {
    font-size: 0.78rem;
    color: var(--color-text-secondary);
    font-weight: 500;
    letter-spacing: 0.3px;
    background: rgba(255, 255, 255, 0.6);
    padding: 4px 12px;
    border-radius: 14px;
}
.friendlinks-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
    position: relative;
    z-index: 1;
}
a.link_friendlinks_a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
    padding: 7px 14px;
    border-radius: 22px;
    background: var(--color-white);
    border: 1px solid #f0e0d4;
    box-shadow: 0 1px 4px rgba(82, 5, 86, 0.04);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}
a.link_friendlinks_a::before {
    content: '🔗';
    font-size: 0.7rem;
    opacity: 0.5;
    transition: var(--transition);
}
a.link_friendlinks_a:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--color-deep), var(--color-burgundy));
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(82, 5, 86, 0.18);
}
a.link_friendlinks_a:hover::before {
    opacity: 1;
    filter: brightness(0) invert(1);
}

/* ========== 底部导航 ========== */
.bottom-nav {
    width: 100%;
    background: var(--color-white);
    border-top: 1px solid var(--color-border);
    padding: clamp(14px, 2vw, 20px) clamp(12px, 3vw, 28px);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.8rem;
    color: var(--color-text-secondary);
}
.bottom-nav .bottom-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
}
.bottom-nav .bottom-links a {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 0.8rem;
    transition: var(--transition);
}
.bottom-nav .bottom-links a:hover {
    color: var(--color-orange-red);
}
.bottom-nav .mobile-brand-link a {
    color: var(--color-burgundy);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.85rem;
}
.bottom-nav .copyright {
    font-size: 0.75rem;
    color: #999;
    flex-basis: 100%;
    text-align: center;
    margin-top: 4px;
}

/* ========== 通用页面（关于我们/版权/联系我们） ========== */
.page-content {
    max-width: 920px;
    margin: clamp(20px, 3vw, 32px) auto;
    padding: clamp(22px, 3vw, 36px);
    background: var(--color-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}
.page-content h1 {
    font-size: clamp(1.4rem, 2.6vw, 1.9rem);
    font-weight: 800;
    color: var(--color-deep);
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--color-border);
}
.page-content h2 {
    font-size: clamp(1.1rem, 1.9vw, 1.3rem);
    font-weight: 700;
    color: var(--color-burgundy);
    margin: 22px 0 10px;
}
.page-content p {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: 12px;
}
.page-content ul {
    padding-left: 24px;
    margin-bottom: 14px;
}
.page-content ul li {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: 6px;
}
.page-content .info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 14px 0;
    font-size: 0.9rem;
}
.page-content .info-table th,
.page-content .info-table td {
    border: 1px solid var(--color-border);
    padding: 10px 14px;
    text-align: left;
}
.page-content .info-table th {
    background: #fff5ed;
    color: var(--color-deep);
    font-weight: 700;
    width: 30%;
}

/* ========== 影视列表页 ========== */
.list-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: clamp(16px, 2.5vw, 24px) auto;
    max-width: var(--max-width);
    width: calc(100% - clamp(20px, 4vw, 40px));
    background: var(--color-card);
    padding: 14px 18px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}
.list-toolbar .filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.list-toolbar .filter-tabs a {
    padding: 6px 14px;
    background: #fdf7f3;
    color: var(--color-text);
    border-radius: 18px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
}
.list-toolbar .filter-tabs a.active,
.list-toolbar .filter-tabs a:hover {
    background: var(--color-orange-red);
    color: #fff;
}
.list-toolbar .total-count {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
}
.list-toolbar .total-count strong {
    color: var(--color-orange-red);
    font-size: 1.1rem;
}
.list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
    gap: 16px;
    margin: clamp(16px, 2.5vw, 24px) auto;
    max-width: var(--max-width);
    width: calc(100% - clamp(20px, 4vw, 40px));
}
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: 24px auto 40px;
    max-width: var(--max-width);
    width: calc(100% - clamp(20px, 4vw, 40px));
    flex-wrap: wrap;
}
.pagination a {
    padding: 8px 14px;
    background: var(--color-card);
    border-radius: 8px;
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.85rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.pagination a:hover,
.pagination a.active {
    background: var(--color-orange-red);
    color: #fff;
}

/* ========== 影视详情页 ========== */
.detail-hero {
    max-width: var(--max-width);
    width: calc(100% - clamp(20px, 4vw, 40px));
    margin: clamp(18px, 2.5vw, 28px) auto;
    background: var(--color-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}
@media (min-width: 760px) {
    .detail-hero {
        grid-template-columns: 320px 1fr;
    }
}
.detail-hero .poster {
    width: 100%;
    aspect-ratio: 2/3;
    overflow: hidden;
    background: #1a0a1c;
}
.detail-hero .poster img {
    width: 100%;
    max-width: 320px;
    max-height: 480px;
    height: 100%;
    object-fit: cover;
    display: block;
}
.detail-hero .meta-block {
    padding: clamp(20px, 3vw, 32px);
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.detail-hero .meta-block h1 {
    font-size: clamp(1.4rem, 2.6vw, 1.9rem);
    font-weight: 800;
    color: var(--color-text);
    line-height: 1.3;
    margin: 0;
}
.detail-hero .meta-block .info-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    font-size: 0.85rem;
    color: var(--color-text-secondary);
}
.detail-hero .meta-block .info-row .info-tag {
    background: var(--color-tag-bg);
    padding: 3px 10px;
    border-radius: 14px;
    color: #8b4513;
    font-weight: 600;
}
.detail-hero .meta-block .score {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 1.1rem;
    color: var(--color-orange-red);
    font-weight: 800;
}
.detail-hero .meta-block .desc {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.8;
}
.detail-hero .meta-block .actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
}
.detail-hero .meta-block .actions .btn {
    display: inline-block;
    padding: 11px 22px;
    background: var(--color-orange-red);
    color: #fff;
    border-radius: 26px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
}
.detail-hero .meta-block .actions .btn:hover {
    background: var(--color-gold);
    color: #1a0a1c;
    transform: translateY(-2px);
}
.detail-hero .meta-block .actions .btn.secondary {
    background: var(--color-white);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}
.detail-hero .meta-block .actions .btn.secondary:hover {
    border-color: var(--color-orange-red);
    color: var(--color-orange-red);
}

/* ========== 明星内容页 ========== */
.star-hero {
    max-width: var(--max-width);
    width: calc(100% - clamp(20px, 4vw, 40px));
    margin: clamp(18px, 2.5vw, 28px) auto;
    background: var(--color-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr;
}
@media (min-width: 760px) {
    .star-hero {
        grid-template-columns: 280px 1fr;
    }
}
.star-hero .poster-block {
    background: linear-gradient(135deg, #1a0a1c, var(--color-deep));
    padding: clamp(20px, 3vw, 32px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
}
.star-hero .poster-block img {
    width: 180px;
    height: 180px;
    max-width: 240px;
    max-height: 240px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--color-gold);
    margin-bottom: 14px;
}
.star-hero .poster-block .star-name-big {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 4px;
}
.star-hero .poster-block .star-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}
.star-hero .poster-block .star-tags .tag {
    background: rgba(255, 255, 255, 0.15);
    padding: 4px 12px;
    border-radius: 14px;
    font-size: 0.8rem;
}
.star-hero .info-block {
    padding: clamp(20px, 3vw, 32px);
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.star-hero .info-block h2 {
    font-size: 1.25rem;
    color: var(--color-deep);
    margin-bottom: 4px;
}
.star-hero .info-block .info-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}
.star-hero .info-block .info-list .info-item {
    background: #fdf7f3;
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 0.85rem;
}
.star-hero .info-block .info-list .info-item strong {
    display: block;
    color: var(--color-deep);
    font-size: 0.75rem;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}
.star-hero .info-block .intro {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.8;
}

/* ========== 响应式微调 ========== */
@media (max-width: 640px) {
    .nav-links a {
        font-size: 0.75rem;
        padding: 5px 7px;
    }
    .user-status {
        font-size: 0.75rem;
        padding: 5px 10px;
        gap: 4px;
    }
    .banner-slide {
        flex-direction: column;
        text-align: center;
        padding: 16px;
        gap: 8px;
    }
    .banner-slide .banner-img-wrap img {
        max-width: 160px;
        max-height: 240px;
        aspect-ratio: 2/3;
    }
    .banner-slide .banner-text p {
        max-width: 100%;
        font-size: 0.75rem;
    }
    .banner-slide .banner-text h2 {
        font-size: 1.1rem;
    }
    .hot-movies-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .stars-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .plot-grid,
    .detail-grid {
        grid-template-columns: 1fr;
    }
    .week-rank-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    .download-buttons {
        flex-direction: column;
        align-items: center;
    }
    .download-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    .sidebar-row {
        grid-template-columns: 1fr;
    }
    .reading-stats-sidebar {
        position: static;
    }
}
@media (min-width: 641px) and (max-width: 1024px) {
    .hot-movies-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 14px;
    }
    .stars-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .week-rank-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}
@media (min-width: 1025px) {
    .hot-movies-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 16px;
    }
    .week-rank-grid {
        grid-template-columns: repeat(8, 1fr);
    }
    .stars-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .plot-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .detail-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
