:root {
    --color-deep: #33030d;
    --color-dark: #5a082d;
    --color-mid: #9d0b28;
    --color-accent: #ff004d;
    --color-accent-light: #ff3377;
    --color-bg: #0d0d0d;
    --color-surface: #1a1a1a;
    --color-surface2: #1f1f1f;
    --color-text: #e8e8e8;
    --color-text-secondary: #b0b0b0;
    --color-text-muted: #888888;
    --color-border: #2a2a2a;
    --color-card-hover: #252525;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 24px rgba(255, 0, 77, 0.25);
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --font-xs: 0.75rem;
    --font-sm: 0.85rem;
    --font-md: 0.95rem;
    --font-base: 1rem;
    --font-lg: 1.15rem;
    --font-xl: 1.35rem;
    --font-2xl: 1.6rem;
    --font-3xl: 2rem;
    --font-4xl: 2.5rem;
    --max-width: 1320px;
    --sidebar-width: 340px;
    --header-height: 60px;
}

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

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ==================== HEADER ==================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    height: var(--header-height);
    background: linear-gradient(180deg, #1a0a0f 0%, #1a0a10 100%);
    border-bottom: 1px solid rgba(157, 11, 40, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 12px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.site-header .logo-area {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-header .logo-area h1 {
    font-size: var(--font-xl);
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.5px;
    white-space: nowrap;
    background: linear-gradient(135deg, #fff 30%, #ff8fb3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.site-header .logo-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-accent);
    flex-shrink: 0;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 0, 77, 0.6);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(255, 0, 77, 0);
    }
}

.header-nav {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    mask-image: linear-gradient(to right, transparent 0%, #000 3%, #000 97%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 3%, #000 97%, transparent 100%);
    padding: 0 8px;
}
.header-nav::-webkit-scrollbar {
    display: none;
}

.header-nav a {
    flex-shrink: 0;
    display: inline-block;
    padding: 7px 14px;
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: var(--font-sm);
    font-weight: 500;
    border-radius: 20px;
    transition: var(--transition-fast);
    white-space: nowrap;
    letter-spacing: 0.3px;
}
.header-nav a:hover,
.header-nav a:focus-visible {
    color: #fff;
    background: rgba(255, 0, 77, 0.15);
    outline: none;
}
.header-nav a.active {
    color: #fff;
    background: rgba(255, 0, 77, 0.2);
}
.header-nav a.nav-hot {
    color: var(--color-accent);
    font-weight: 700;
    position: relative;
}
.header-nav a.nav-hot::after {
    content: 'HOT';
    position: absolute;
    top: -4px;
    right: -2px;
    font-size: 0.55rem;
    background: var(--color-accent);
    color: #fff;
    padding: 1px 5px;
    border-radius: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.header-user {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: var(--transition-fast);
    white-space: nowrap;
}
.header-user:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
}
.header-user .user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-mid), var(--color-accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: var(--font-xs);
    color: #fff;
    flex-shrink: 0;
}
.header-user .user-status {
    font-size: var(--font-xs);
    color: var(--color-text-secondary);
    line-height: 1.2;
}
.header-user .user-status .online-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4cff4c;
    margin-right: 3px;
    vertical-align: middle;
    animation: pulse-dot 2s infinite;
}

/* ==================== MAIN LAYOUT ==================== */
.main-wrapper {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 16px;
}

.content-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 1024px) {
    .content-layout {
        grid-template-columns: 1fr var(--sidebar-width);
        gap: 28px;
    }
}

@media (min-width: 1200px) {
    .content-layout {
        gap: 36px;
    }
}

.main-content {
    min-width: 0;
}
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ==================== BANNER ==================== */
.banner-section {
    position: relative;
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 8px;
    aspect-ratio: 21/9;
    min-height: 280px;
    max-height: 480px;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    transition: var(--transition-normal);
}
.banner-section:hover {
    box-shadow: var(--shadow-glow), var(--shadow-lg);
}
.banner-section img {
    width: 100%;
    height: 100%;
    max-width: 1200px;
    max-height: 500px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}
.banner-section:hover img {
    transform: scale(1.04);
}
.banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(51, 3, 13, 0.15) 0%,
            rgba(51, 3, 13, 0.05) 30%,
            rgba(51, 3, 13, 0.6) 70%,
            rgba(51, 3, 13, 0.9) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: clamp(16px, 4vw, 36px) clamp(20px, 5vw, 48px);
    pointer-events: none;
}
.banner-overlay .banner-tag {
    display: inline-block;
    background: var(--color-accent);
    color: #fff;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: var(--font-xs);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    width: fit-content;
    margin-bottom: 10px;
    pointer-events: auto;
}
.banner-overlay h2 {
    font-size: clamp(1.2rem, 3.5vw, 2.2rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}
.banner-overlay p {
    font-size: clamp(0.8rem, 1.5vw, 1rem);
    color: rgba(255, 255, 255, 0.85);
    max-width: 520px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.5;
}
.banner-overlay .banner-cta {
    pointer-events: auto;
    display: inline-block;
    margin-top: 12px;
    background: var(--color-accent);
    color: #fff;
    padding: 10px 24px;
    border-radius: 24px;
    font-weight: 700;
    font-size: var(--font-sm);
    text-decoration: none;
    width: fit-content;
    transition: var(--transition-fast);
    letter-spacing: 0.5px;
    box-shadow: 0 4px 16px rgba(255, 0, 77, 0.35);
}
.banner-overlay .banner-cta:hover {
    background: #e60045;
    box-shadow: 0 6px 24px rgba(255, 0, 77, 0.5);
    transform: translateY(-1px);
}

/* ==================== SECTION STYLES ==================== */
.section-block {
    margin-bottom: 28px;
}
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 8px;
}
.section-header h2 {
    font-size: var(--font-xl);
    font-weight: 700;
    color: #fff;
    position: relative;
    padding-left: 16px;
    letter-spacing: 0.5px;
}
.section-header h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 22px;
    background: var(--color-accent);
    border-radius: 2px;
}
.section-header .section-more {
    font-size: var(--font-sm);
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-fast);
    white-space: nowrap;
}
.section-header .section-more:hover {
    color: #ff5580;
    text-decoration: underline;
}

/* ==================== PLATFORM INTRO ==================== */
.platform-intro {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: clamp(16px, 3vw, 28px) clamp(18px, 3.5vw, 32px);
    border: 1px solid var(--color-border);
    text-align: center;
    margin-bottom: 24px;
    transition: var(--transition-normal);
}
.platform-intro:hover {
    border-color: rgba(157, 11, 40, 0.5);
    box-shadow: var(--shadow-md);
}
.platform-intro h2 {
    font-size: var(--font-2xl);
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}
.platform-intro p {
    color: var(--color-text-secondary);
    font-size: var(--font-md);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}
.platform-intro .intro-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 16px;
}
.platform-intro .intro-stat {
    text-align: center;
    min-width: 80px;
}
.platform-intro .intro-stat .stat-num {
    font-size: var(--font-3xl);
    font-weight: 800;
    color: var(--color-accent);
    line-height: 1;
}
.platform-intro .intro-stat .stat-label {
    font-size: var(--font-xs);
    color: var(--color-text-muted);
    margin-top: 4px;
}

/* ==================== MOVIE GRID ==================== */
.movie-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
@media (min-width: 480px) {
    .movie-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}
@media (min-width: 768px) {
    .movie-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 18px;
    }
}
@media (min-width: 1024px) {
    .movie-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 18px;
    }
}
@media (min-width: 1200px) {
    .movie-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 20px;
    }
}

.movie-card {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: var(--transition-normal);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    position: relative;
}
.movie-card:hover {
    transform: translateY(-4px);
    border-color: rgba(157, 11, 40, 0.5);
    box-shadow: var(--shadow-lg), 0 0 20px rgba(255, 0, 77, 0.1);
    background: var(--color-card-hover);
}
.movie-card .card-poster {
    position: relative;
    aspect-ratio: 2/3;
    overflow: hidden;
    background: #1a1a1a;
}
.movie-card .card-poster img {
    width: 100%;
    height: 100%;
    max-width: 300px;
    max-height: 450px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.movie-card:hover .card-poster img {
    transform: scale(1.08);
}
.movie-card .card-rating {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.75);
    color: #ffc107;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: var(--font-xs);
    font-weight: 700;
    backdrop-filter: blur(4px);
}
.movie-card .card-info {
    padding: 10px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.movie-card .card-title {
    font-weight: 700;
    font-size: var(--font-sm);
    color: #fff;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.movie-card .card-meta {
    font-size: var(--font-xs);
    color: var(--color-text-muted);
    line-height: 1.4;
}
.movie-card .card-meta span {
    display: inline-block;
    margin-right: 6px;
}
.movie-card .card-tag {
    display: inline-block;
    font-size: 0.65rem;
    padding: 2px 7px;
    border-radius: 10px;
    background: rgba(255, 0, 77, 0.15);
    color: var(--color-accent);
    font-weight: 600;
    margin-top: 2px;
    width: fit-content;
}
.movie-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* ==================== STAR CARDS ==================== */
.star-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
@media (min-width: 600px) {
    .star-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }
}
.star-card {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--color-border);
    text-align: center;
    transition: var(--transition-normal);
    cursor: pointer;
    padding-bottom: 12px;
}
.star-card:hover {
    transform: translateY(-3px);
    border-color: rgba(157, 11, 40, 0.5);
    box-shadow: var(--shadow-md);
}
.star-card .star-photo {
    aspect-ratio: 3/4;
    overflow: hidden;
    background: #1a1a1a;
}
.star-card .star-photo img {
    width: 100%;
    height: 100%;
    max-width: 300px;
    max-height: 400px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.star-card:hover .star-photo img {
    transform: scale(1.06);
}
.star-card .star-name {
    font-weight: 700;
    font-size: var(--font-sm);
    color: #fff;
    margin-top: 10px;
}
.star-card .star-role {
    font-size: var(--font-xs);
    color: var(--color-text-muted);
}
.star-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* ==================== PLOT / DETAIL CARDS ==================== */
.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: 900px) {
    .plot-grid,
    .detail-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }
}
.plot-card,
.detail-card {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    padding: 16px;
    border: 1px solid var(--color-border);
    transition: var(--transition-normal);
    cursor: pointer;
}
.plot-card:hover,
.detail-card:hover {
    border-color: rgba(157, 11, 40, 0.5);
    box-shadow: var(--shadow-md);
    background: var(--color-card-hover);
}
.plot-card h3,
.detail-card h3 {
    font-size: var(--font-base);
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}
.plot-card p,
.detail-card p {
    font-size: var(--font-sm);
    color: var(--color-text-secondary);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.detail-card .detail-meta {
    font-size: var(--font-xs);
    color: var(--color-text-muted);
    margin-top: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.plot-card a,
.detail-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* ==================== COMMENTS ==================== */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.comment-item {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    border: 1px solid var(--color-border);
    transition: var(--transition-normal);
    cursor: pointer;
}
.comment-item:hover {
    border-color: rgba(157, 11, 40, 0.4);
    background: var(--color-card-hover);
}
.comment-item .comment-header {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.comment-item .comment-user {
    font-weight: 600;
    font-size: var(--font-sm);
    color: #fff;
}
.comment-item .comment-time {
    font-size: var(--font-xs);
    color: var(--color-text-muted);
}
.comment-item .comment-text {
    font-size: var(--font-sm);
    color: var(--color-text-secondary);
    line-height: 1.7;
}
.comment-item .comment-text .keyword-highlight {
    color: var(--color-accent);
    font-weight: 600;
}

/* ==================== DETAIL PAGE (MOVIE / STAR) ==================== */
.detail-hero {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
    margin-bottom: 24px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}
@media (min-width: 768px) {
    .detail-hero {
        grid-template-columns: 320px 1fr;
    }
}
.detail-hero .hero-poster {
    aspect-ratio: 2/3;
    background: #1a1a1a;
    overflow: hidden;
}
.detail-hero .hero-poster img {
    width: 100%;
    height: 100%;
    max-width: 320px;
    max-height: 480px;
    object-fit: cover;
    display: block;
}
.detail-hero .hero-info {
    padding: clamp(18px, 3vw, 28px);
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.detail-hero .hero-title {
    font-size: var(--font-2xl);
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.5px;
}
.detail-hero .hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.detail-hero .hero-tag {
    font-size: var(--font-xs);
    padding: 3px 10px;
    border-radius: 12px;
    background: rgba(255, 0, 77, 0.15);
    color: var(--color-accent);
    font-weight: 600;
}
.detail-hero .hero-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 16px;
    font-size: var(--font-sm);
    color: var(--color-text-secondary);
    padding: 12px 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}
@media (min-width: 600px) {
    .detail-hero .hero-meta {
        grid-template-columns: repeat(3, 1fr);
    }
}
.detail-hero .hero-meta .meta-label {
    color: var(--color-text-muted);
    font-size: var(--font-xs);
}
.detail-hero .hero-meta .meta-value {
    color: #fff;
    font-weight: 600;
}
.detail-hero .hero-rating {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 700;
    font-size: var(--font-base);
    width: fit-content;
}
.detail-hero .hero-body {
    font-size: var(--font-md);
    color: var(--color-text-secondary);
    line-height: 1.8;
}
.detail-hero .hero-action {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    border-radius: 22px;
    background: var(--color-accent);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: var(--font-sm);
    transition: var(--transition-fast);
    border: none;
    cursor: pointer;
}
.btn-primary:hover {
    background: #e60045;
    box-shadow: 0 6px 20px rgba(255, 0, 77, 0.45);
    transform: translateY(-1px);
}
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: var(--font-sm);
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: var(--transition-fast);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.35);
}

/* ==================== STAR DETAIL ==================== */
.star-detail-hero {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
    margin-bottom: 24px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}
@media (min-width: 768px) {
    .star-detail-hero {
        grid-template-columns: 280px 1fr;
    }
}
.star-detail-hero .star-photo {
    aspect-ratio: 3/4;
    background: #1a1a1a;
    overflow: hidden;
}
.star-detail-hero .star-photo img {
    width: 100%;
    height: 100%;
    max-width: 280px;
    max-height: 380px;
    object-fit: cover;
    display: block;
}
.star-detail-hero .star-info {
    padding: clamp(18px, 3vw, 28px);
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.star-detail-hero .star-info h2 {
    font-size: var(--font-2xl);
    color: #fff;
    font-weight: 800;
}
.star-detail-hero .star-info .star-enname {
    font-size: var(--font-sm);
    color: var(--color-text-muted);
}
.star-detail-hero .star-info p {
    color: var(--color-text-secondary);
    font-size: var(--font-md);
    line-height: 1.8;
}

/* ==================== PAGE CONTENT (about / contact / etc) ==================== */
.page-content {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    padding: clamp(20px, 3vw, 32px);
    margin-bottom: 24px;
    transition: var(--transition-normal);
}
.page-content:hover {
    border-color: rgba(157, 11, 40, 0.5);
    box-shadow: var(--shadow-md);
}
.page-content h2 {
    font-size: var(--font-xl);
    color: #fff;
    font-weight: 700;
    margin-bottom: 14px;
    padding-left: 14px;
    border-left: 4px solid var(--color-accent);
}
.page-content h3 {
    font-size: var(--font-base);
    color: #fff;
    font-weight: 700;
    margin: 18px 0 8px;
}
.page-content p {
    font-size: var(--font-sm);
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: 10px;
}
.page-content ul, .page-content ol {
    margin: 8px 0 14px 22px;
    color: var(--color-text-secondary);
    font-size: var(--font-sm);
    line-height: 1.9;
}
.page-content li {
    margin-bottom: 4px;
}
.page-content strong {
    color: var(--color-accent);
    font-weight: 700;
}

/* ==================== SIDEBAR ==================== */
.sidebar-card {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    padding: 18px;
    border: 1px solid var(--color-border);
    transition: var(--transition-normal);
}
.sidebar-card:hover {
    border-color: rgba(157, 11, 40, 0.4);
}
.sidebar-card h3 {
    font-size: var(--font-base);
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    padding-left: 12px;
    border-left: 3px solid var(--color-accent);
    letter-spacing: 0.3px;
}
.sidebar-card .update-time {
    font-size: var(--font-xs);
    color: var(--color-accent);
    font-weight: 500;
    margin-bottom: 8px;
}
.sidebar-card .stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: var(--font-sm);
}
.sidebar-card .stat-row:last-child {
    border-bottom: none;
}
.sidebar-card .stat-value {
    font-weight: 700;
    color: var(--color-accent);
    font-size: var(--font-lg);
}
.sidebar-card .stat-label {
    color: var(--color-text-secondary);
}

.rank-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.rank-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
    cursor: pointer;
    background: rgba(255, 255, 255, 0.02);
}
.rank-list li:hover {
    background: rgba(255, 0, 77, 0.08);
}
.rank-list .rank-num {
    font-weight: 800;
    font-size: var(--font-lg);
    width: 28px;
    text-align: center;
    flex-shrink: 0;
}
.rank-list .rank-num.top1 { color: #ffc107; }
.rank-list .rank-num.top2 { color: #c0c0c0; }
.rank-list .rank-num.top3 { color: #cd7f32; }
.rank-list .rank-num.normal { color: var(--color-text-muted); }
.rank-list .rank-info { flex: 1; min-width: 0; }
.rank-list .rank-title {
    font-size: var(--font-sm);
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rank-list .rank-sub {
    font-size: var(--font-xs);
    color: var(--color-text-muted);
}
.rank-list a {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.star-mini-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.star-mini-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}
.star-mini-list li:hover {
    background: rgba(255, 0, 77, 0.06);
}
.star-mini-list img {
    width: 40px;
    height: 40px;
    max-width: 40px;
    max-height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.star-mini-list .mini-name {
    font-size: var(--font-sm);
    font-weight: 600;
    color: #fff;
}
.star-mini-list .mini-works {
    font-size: var(--font-xs);
    color: var(--color-text-muted);
}
.star-mini-list a {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

/* ==================== APP DOWNLOAD ==================== */
.app-download-section {
    background: linear-gradient(135deg, #1a0a10 0%, #1f0f15 50%, #1a0a10 100%);
    border-radius: var(--radius-lg);
    padding: clamp(20px, 4vw, 32px);
    border: 1px solid rgba(157, 11, 40, 0.3);
    text-align: center;
    margin-bottom: 24px;
    box-shadow: var(--shadow-md);
}
.app-download-section h2 {
    font-size: var(--font-xl);
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}
.app-download-section .app-subtitle {
    font-size: var(--font-sm);
    color: var(--color-text-secondary);
    margin-bottom: 20px;
}
.app-download-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}
.app-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: 24px;
    text-decoration: none;
    font-weight: 600;
    font-size: var(--font-sm);
    transition: var(--transition-fast);
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    white-space: nowrap;
}
.app-download-btn:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.app-download-btn .app-icon {
    width: 22px;
    height: 22px;
    max-width: 22px;
    max-height: 22px;
    flex-shrink: 0;
}

.app-platform-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 24px;
}
@media (min-width: 600px) {
    .app-platform-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1024px) {
    .app-platform-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
.app-platform-card {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    padding: 20px;
    border: 1px solid var(--color-border);
    text-align: center;
    transition: var(--transition-normal);
}
.app-platform-card:hover {
    border-color: rgba(157, 11, 40, 0.5);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.app-platform-card .platform-icon {
    width: 56px;
    height: 56px;
    max-width: 56px;
    max-height: 56px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--color-dark), var(--color-mid));
}
.app-platform-card .platform-icon img {
    width: 32px;
    height: 32px;
    max-width: 32px;
    max-height: 32px;
}
.app-platform-card h3 {
    font-size: var(--font-base);
    color: #fff;
    margin-bottom: 6px;
}
.app-platform-card p {
    font-size: var(--font-xs);
    color: var(--color-text-muted);
    margin-bottom: 12px;
    line-height: 1.6;
}

/* ==================== FAQ ==================== */
.faq-section {
    margin-bottom: 24px;
}
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.faq-item {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: var(--transition-normal);
    cursor: pointer;
}
.faq-item:hover {
    border-color: rgba(157, 11, 40, 0.4);
}
.faq-item summary {
    padding: 14px 18px;
    font-weight: 600;
    font-size: var(--font-sm);
    color: #fff;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    user-select: none;
}
.faq-item summary::-webkit-details-marker {
    display: none;
}
.faq-item summary::after {
    content: '+';
    font-size: 1.3rem;
    font-weight: 300;
    color: var(--color-accent);
    flex-shrink: 0;
    transition: transform 0.3s ease;
}
.faq-item[open] summary::after {
    content: '\2212';
    transform: rotate(180deg);
}
.faq-item .faq-answer {
    padding: 0 18px 16px;
    font-size: var(--font-sm);
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* ==================== FRIEND LINKS ==================== */
.friend-links-section {
    margin-bottom: 24px;
    text-align: center;
}
.friend-links-section h3 {
    font-size: var(--font-base);
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}
.friend-links-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}
.link_friendlinks_a {
    display: inline-block;
    padding: 7px 16px;
    background: var(--color-surface);
    border-radius: 20px;
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: var(--font-xs);
    border: 1px solid var(--color-border);
    transition: var(--transition-fast);
    white-space: nowrap;
}
.link_friendlinks_a:hover {
    color: #fff;
    border-color: var(--color-accent);
    background: rgba(255, 0, 77, 0.1);
    box-shadow: 0 0 12px rgba(255, 0, 77, 0.15);
}

/* ==================== FOOTER ==================== */
.site-footer {
    width: 100%;
    background: var(--color-surface2);
    border-top: 2px solid rgba(157, 11, 40, 0.35);
    padding: 24px 16px;
    text-align: center;
}
.site-footer .footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}
.site-footer p {
    font-size: var(--font-xs);
    color: var(--color-text-muted);
}
.site-footer .footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}
.site-footer .footer-links a {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: var(--font-xs);
    transition: var(--transition-fast);
}
.site-footer .footer-links a:hover {
    color: var(--color-accent);
}
.site-footer .mobile-brand-link {
    display: inline-block;
    margin-top: 6px;
    padding: 8px 18px;
    background: var(--color-accent);
    color: #fff;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 700;
    font-size: var(--font-sm);
    letter-spacing: 0.5px;
    transition: var(--transition-fast);
    box-shadow: 0 4px 14px rgba(255, 0, 77, 0.3);
}
.site-footer .mobile-brand-link:hover {
    background: #e60045;
    box-shadow: 0 6px 20px rgba(255, 0, 77, 0.45);
    transform: translateY(-1px);
}

/* ==================== PAGINATION ==================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 18px;
}
.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 8px;
    font-size: var(--font-sm);
    text-decoration: none;
    color: var(--color-text-secondary);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    transition: var(--transition-fast);
}
.pagination a:hover {
    background: rgba(255, 0, 77, 0.12);
    color: #fff;
    border-color: var(--color-accent);
}
.pagination .current {
    background: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
    font-weight: 700;
}

/* ==================== FILTER BAR ==================== */
.filter-bar {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    padding: 14px 16px;
    margin-bottom: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    align-items: center;
}
.filter-bar .filter-label {
    color: var(--color-text-muted);
    font-size: var(--font-sm);
    flex-shrink: 0;
}
.filter-bar .filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.filter-bar .filter-options a {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: var(--font-xs);
    border: 1px solid transparent;
    transition: var(--transition-fast);
}
.filter-bar .filter-options a:hover,
.filter-bar .filter-options a.active {
    color: #fff;
    background: rgba(255, 0, 77, 0.15);
    border-color: var(--color-accent);
}

/* ==================== UTILITY ==================== */
.text-accent {
    color: var(--color-accent);
}
.divider {
    width: 100%;
    height: 1px;
    background: var(--color-border);
    margin: 8px 0;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
@media (max-width: 380px) {
    .header-nav a {
        padding: 5px 9px;
        font-size: 0.7rem;
    }
    .header-user .user-status {
        display: none;
    }
    .header-user {
        padding: 5px 8px;
    }
    .site-header .logo-area h1 {
        font-size: var(--font-base);
    }
}
@media (min-width: 768px) {
    .site-header {
        padding: 0 24px;
    }
    .main-wrapper {
        padding: 0 24px;
    }
}
@media (min-width: 1024px) {
    .site-header {
        padding: 0 32px;
    }
    .main-wrapper {
        padding: 0 32px;
    }
}
