
:root {
    --color-pink-light: #edb1f1;
    --color-purple-mid: #d59bf6;
    --color-blue-purple: #9896f1;
    --color-teal: #8ef6e4;
    --bg-body: #faf5fd;
    --bg-card: #ffffff;
    --text-primary: #3d2c5e;
    --text-secondary: #5a4580;
    --text-muted: #7d6b99;
    --shadow-sm: 0 2px 10px rgba(152, 150, 241, 0.08);
    --shadow-md: 0 4px 20px rgba(152, 150, 241, 0.13);
    --shadow-lg: 0 8px 36px rgba(152, 150, 241, 0.18);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --nav-height: 64px;
    --max-width: 1400px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-height); }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    min-width: 320px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.top-nav {
    width: 100%;
    height: var(--nav-height);
    background: linear-gradient(135deg, #9896f1 0%, #d59bf6 50%, #edb1f1 100%);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 24px rgba(152, 150, 241, 0.3);
    display: flex;
    align-items: center;
    padding: 0 20px;
}
.top-nav-inner {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.nav-brand h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 1px;
    white-space: nowrap;
    margin: 0;
    cursor: pointer;
    transition: var(--transition);
    text-shadow: 0 1px 3px rgba(0,0,0,0.12);
}
.nav-brand h1:hover { color: #fffef5; text-shadow: 0 0 20px rgba(255,255,255,0.5); }
.nav-brand h1 .accent { color: #8ef6e4; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
}
.nav-links a {
    color: #fefefe;
    text-decoration: none;
    font-size: 0.88rem;
    padding: 8px 12px;
    border-radius: 20px;
    transition: var(--transition);
    white-space: nowrap;
    font-weight: 500;
}
.nav-links a:hover,
.nav-links a:focus {
    background: rgba(255,255,255,0.2);
    color: #fff;
    outline: none;
    box-shadow: 0 0 16px rgba(142,246,228,0.35);
}
.nav-links a.nav-hot {
    background: #8ef6e4;
    color: #3d2c5e;
    font-weight: 700;
    animation: pulse-teal 2.2s infinite;
}
@keyframes pulse-teal {
    0%,100% { box-shadow: 0 0 0 0 rgba(142,246,228,0.55); }
    50% { box-shadow: 0 0 0 12px rgba(142,246,228,0); }
}

.nav-user { display: flex; align-items: center; gap: 10px; white-space: nowrap; flex-shrink: 0; }
.nav-user .user-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: #8ef6e4; color: #3d2c5e;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1rem; cursor: pointer;
    transition: var(--transition); flex-shrink: 0;
}
.nav-user .user-avatar:hover { transform: scale(1.1); box-shadow: 0 0 20px rgba(142,246,228,0.6); }
.nav-user .login-text { color: #fff; font-size: 0.88rem; cursor: pointer; font-weight: 500; transition: var(--transition); }
.nav-user .login-text:hover { color: #8ef6e4; }
.nav-user .vip-badge {
    background: #ff6b8a; color: #fff; font-size: 0.68rem; padding: 3px 9px;
    border-radius: 10px; font-weight: 700; animation: vip-glow 1.8s infinite;
}
@keyframes vip-glow {
    0%,100% { box-shadow: 0 0 6px rgba(255,107,138,0.4); }
    50% { box-shadow: 0 0 18px rgba(255,107,138,0.75); }
}

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; flex-shrink: 0; z-index: 1001; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: #fff; margin: 5px 0; border-radius: 3px; transition: var(--transition); }

.main-container { max-width: var(--max-width); margin: 0 auto; display: flex; gap: 24px; padding: 20px; }
.main-content { flex: 1; min-width: 0; }
.sidebar { width: 340px; flex-shrink: 0; display: flex; flex-direction: column; gap: 20px; }

.section-block {
    background: var(--bg-card); border-radius: var(--radius-lg); padding: 24px;
    margin-bottom: 24px; box-shadow: var(--shadow-sm); border: 1px solid #f3e8f9; transition: var(--transition);
}
.section-block:hover { box-shadow: var(--shadow-md); }
.section-title {
    font-size: 1.3rem; font-weight: 700; color: #3d2c5e; margin-bottom: 18px;
    padding-left: 14px; border-left: 4px solid #9896f1; letter-spacing: 0.5px;
}
.section-title .sub-tag {
    font-size: 0.72rem; background: #8ef6e4; color: #3d2c5e; padding: 3px 10px;
    border-radius: 12px; margin-left: 10px; font-weight: 600; vertical-align: middle;
}

.movie-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.movie-card {
    background: #fff; border-radius: var(--radius-md); overflow: hidden;
    box-shadow: var(--shadow-sm); transition: var(--transition); cursor: pointer;
    border: 1px solid #f3e8f9; display: flex; flex-direction: column;
}
.movie-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: #d59bf6; }
.movie-card .poster-wrap {
    position: relative; width: 100%; aspect-ratio: 3/4; overflow: hidden;
    background: #f3e8f9; flex-shrink: 0;
}
.movie-card .poster-wrap img {
    width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s;
}
.movie-card:hover .poster-wrap img { transform: scale(1.06); }
.movie-card .rank-badge {
    position: absolute; top: 8px; left: 8px; background: #8ef6e4; color: #3d2c5e;
    font-weight: 700; font-size: 0.72rem; padding: 4px 9px; border-radius: 6px; z-index: 2;
}
.movie-card .type-tag {
    position: absolute; top: 8px; right: 8px; background: rgba(152,150,241,0.82);
    color: #fff; font-size: 0.68rem; padding: 3px 8px; border-radius: 4px; z-index: 2;
}
.movie-card .card-info {
    padding: 10px 12px 14px; flex: 1; display: flex; flex-direction: column; gap: 3px;
}
.movie-card .card-info h4 {
    font-size: 0.9rem; font-weight: 700; color: #3d2c5e;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.movie-card .card-info .meta {
    font-size: 0.7rem; color: #7d6b99; line-height: 1.5;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.1em;
}
.movie-card .card-info .meta span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.star-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.star-card {
    text-align: center; background: #fff; border-radius: var(--radius-md); padding: 18px 10px;
    box-shadow: var(--shadow-sm); transition: var(--transition); border: 1px solid #f3e8f9; cursor: pointer;
}
.star-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #d59bf6; }
.star-card .star-avatar {
    width: 80px; height: 80px; border-radius: 50%; object-fit: cover; margin: 0 auto 10px;
    display: block; border: 3px solid #edb1f1; transition: var(--transition);
}
.star-card:hover .star-avatar { border-color: #9896f1; box-shadow: 0 0 22px rgba(152,150,241,0.4); }
.star-card h4 { font-size: 0.92rem; color: #3d2c5e; font-weight: 700; }
.star-card .star-works { font-size: 0.7rem; color: #7d6b99; margin-top: 2px; }

.plot-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.plot-card {
    background: #fff; border-radius: var(--radius-md); padding: 16px; box-shadow: var(--shadow-sm);
    transition: var(--transition); border-left: 4px solid #d59bf6; cursor: pointer;
}
.plot-card:hover { box-shadow: var(--shadow-md); border-left-color: #9896f1; }
.plot-card h4 { font-weight: 700; color: #3d2c5e; margin-bottom: 6px; font-size: 0.98rem; }
.plot-card p {
    font-size: 0.83rem; color: #5a4580; line-height: 1.7;
    display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}

.detail-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.detail-card {
    display: flex; gap: 14px; background: #fff; border-radius: var(--radius-md); padding: 14px;
    box-shadow: var(--shadow-sm); transition: var(--transition); cursor: pointer; border: 1px solid #f3e8f9;
}
.detail-card:hover { box-shadow: var(--shadow-md); border-color: #d59bf6; }
.detail-card .detail-poster {
    width: 100px; height: 140px; border-radius: 8px; object-fit: cover; flex-shrink: 0; background: #f3e8f9;
}
.detail-card .detail-info h4 { font-weight: 700; color: #3d2c5e; font-size: 0.92rem; margin-bottom: 4px; }
.detail-card .detail-info .d-meta { font-size: 0.72rem; color: #7d6b99; line-height: 1.6; }

.weekly-rank {
    display: flex; gap: 12px; overflow-x: auto; padding: 8px 0 4px;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.weekly-rank::-webkit-scrollbar { height: 4px; }
.weekly-rank::-webkit-scrollbar-thumb { background: #edb1f1; border-radius: 4px; }
.weekly-rank-item { flex: 0 0 auto; width: 140px; text-align: center; scroll-snap-align: start; cursor: pointer; transition: var(--transition); }
.weekly-rank-item:hover { transform: translateY(-3px); }
.weekly-rank-item img { width: 100px; height: 140px; object-fit: cover; border-radius: 8px; display: block; margin: 0 auto 8px; box-shadow: var(--shadow-sm); }
.weekly-rank-item .rank-num { font-weight: 700; color: #d59bf6; font-size: 0.78rem; }
.weekly-rank-item h5 { font-size: 0.78rem; color: #3d2c5e; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.comment-list { display: flex; flex-direction: column; gap: 14px; }
.comment-item { background: #fdf9ff; border-radius: var(--radius-sm); padding: 14px 16px; border: 1px solid #f3e8f9; transition: var(--transition); }
.comment-item:hover { background: #fff; box-shadow: var(--shadow-sm); }
.comment-item .comment-user { font-weight: 700; color: #9896f1; font-size: 0.88rem; margin-bottom: 4px; }
.comment-item .comment-text { font-size: 0.83rem; color: #5a4580; line-height: 1.75; }
.comment-item .comment-time { font-size: 0.68rem; color: #b0a0c0; margin-top: 6px; }

.sidebar .side-card { background: #fff; border-radius: var(--radius-md); padding: 18px 16px; box-shadow: var(--shadow-sm); border: 1px solid #f3e8f9; }
.sidebar .side-card h3 { font-size: 1rem; font-weight: 700; color: #3d2c5e; margin-bottom: 12px; padding-left: 10px; border-left: 3px solid #d59bf6; }
.movie-reading { text-align: center; }
.movie-reading .reading-cover { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 8px; margin-bottom: 10px; background: #f3e8f9; }
.movie-reading .update-time { font-size: 0.72rem; color: #b0a0c0; margin-top: 4px; }
.stats-row { display: flex; gap: 12px; text-align: center; }
.stats-row .stat-item { flex: 1; background: #fdf9ff; border-radius: 8px; padding: 12px 8px; }
.stats-row .stat-num { font-size: 1.4rem; font-weight: 700; color: #9896f1; }
.stats-row .stat-label { font-size: 0.68rem; color: #999; margin-top: 2px; }

.download-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.download-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 10px;
    border-radius: 10px; text-decoration: none; font-weight: 700; font-size: 0.88rem; color: #fff;
    transition: var(--transition); letter-spacing: 0.5px; cursor: pointer; border: none; text-align: center;
}
.download-btn.android { background: #9896f1; color: #fff; }
.download-btn.ios { background: #3d2c5e; color: #fff; }
.download-btn.pc { background: #d59bf6; color: #3d2c5e; }
.download-btn.mac { background: #8ef6e4; color: #3d2c5e; }
.download-btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); filter: brightness(1.06); }

.platform-intro { font-size: 0.88rem; color: #5a4580; line-height: 1.9; }
.platform-intro strong { color: #9896f1; }

.bottom-nav {
    width: 100%; background: linear-gradient(135deg, #9896f1 0%, #d59bf6 50%, #edb1f1 100%);
    color: #fefefe; padding: 28px 20px 20px; margin-top: 10px;
}
.bottom-nav-inner {
    max-width: var(--max-width); margin: 0 auto; display: flex; flex-wrap: wrap;
    gap: 24px; justify-content: space-between; align-items: flex-start;
}
.bottom-nav .footer-col h4 { color: #fff; font-weight: 700; margin-bottom: 8px; font-size: 0.92rem; text-shadow: 0 1px 2px rgba(0,0,0,0.08); }
.bottom-nav .footer-col a { color: #fefefe; text-decoration: none; font-size: 0.78rem; display: block; margin: 4px 0; transition: var(--transition); opacity: 0.88; }
.bottom-nav .footer-col a:hover { color: #8ef6e4; opacity: 1; }
.bottom-nav .copyright {
    width: 100%; text-align: center; font-size: 0.72rem; color: rgba(255,255,255,0.7);
    margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,0.15);
}
.bottom-nav .mobile-link {
    display: inline-block; background: #8ef6e4; color: #3d2c5e; padding: 10px 18px;
    border-radius: 22px; font-weight: 700; text-decoration: none; font-size: 0.85rem;
    transition: var(--transition); letter-spacing: 0.5px;
}
.bottom-nav .mobile-link:hover { transform: scale(1.05); box-shadow: 0 0 24px rgba(142,246,228,0.55); }

img { background: #f3e8f9; }

@media (max-width: 1200px) {
    .movie-grid { grid-template-columns: repeat(4, 1fr); }
    .download-grid { grid-template-columns: repeat(2, 1fr); }
    .sidebar { width: 280px; }
}
@media (max-width: 900px) {
    .main-container { flex-direction: column; padding: 12px; }
    .sidebar { width: 100%; order: 10; }
    .movie-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .star-row { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .plot-row, .detail-row { grid-template-columns: 1fr; gap: 10px; }
    .download-grid { grid-template-columns: repeat(2, 1fr); }
    .nav-links {
        display: none; position: absolute; top: var(--nav-height); left: 0; width: 100%;
        background: #9896f1; flex-direction: column; padding: 12px 0; gap: 2px;
        z-index: 999; border-radius: 0 0 12px 12px; box-shadow: var(--shadow-lg);
    }
    .nav-links.active { display: flex; }
    .nav-links a { padding: 10px 20px; border-radius: 0; font-size: 0.83rem; }
    .nav-toggle { display: block; }
    .weekly-rank-item { width: 110px; }
    .weekly-rank-item img { width: 80px; height: 110px; }
}
@media (max-width: 600px) {
    .movie-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .star-row { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .download-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .download-btn { font-size: 0.76rem; padding: 10px 6px; }
    .section-block { padding: 14px 10px; }
    .section-title { font-size: 1.08rem; }
    .nav-brand h1 { font-size: 1.15rem; }
    .detail-card { flex-direction: column; align-items: center; text-align: center; }
    .detail-card .detail-poster { width: 80px; height: 110px; }
    .comment-item .comment-text { font-size: 0.78rem; }
}
