
:root {
    --color-yellow: #f3f798;
    --color-purple: #eab4f8;
    --color-pink: #fcc8f8;
    --color-blue: #c7f5fe;
    --text-dark: #2c3e50;
    --text-gray: #555;
    --text-light: #777;
    --bg-white: #ffffff;
    --bg-light: #fafafa;
    --bg-gray: #f5f5f5;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.10);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --transition: 0.3s ease;
    --max-width: 1320px;
    --header-height: 64px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
    background-color: #faf8fc; color: var(--text-dark); line-height: 1.6; min-height: 100vh;
    -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
.header {
    width: 100%; height: var(--header-height); background: #fff; border-bottom: 2px solid var(--color-yellow);
    position: sticky; top: 0; z-index: 1000; box-shadow: var(--shadow-sm); display: flex; align-items: center;
}
.header-inner { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; height: 100%; }
.header-logo h1 { font-size: 1.5rem; font-weight: 700; color: #5b2d8e; letter-spacing: 1px; white-space: nowrap; margin: 0; cursor: pointer; }
.header-nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center; list-style: none; }
.header-nav a { text-decoration: none; color: var(--text-dark); font-size: 0.9rem; font-weight: 500; padding: 8px 14px; border-radius: 20px; transition: var(--transition); white-space: nowrap; display: inline-block; }
.header-nav a:hover, .header-nav a:focus { background: var(--color-yellow); color: #5b2d8e; outline: none; }
.header-user { display: flex; align-items: center; gap: 10px; white-space: nowrap; font-weight: 500; color: #5b2d8e; cursor: pointer; padding: 8px 16px; border-radius: 20px; background: var(--color-blue); transition: var(--transition); font-size: 0.9rem; }
.header-user:hover { background: var(--color-purple); }
.avatar-dot { width: 10px; height: 10px; border-radius: 50%; background: #4caf50; display: inline-block; animation: pulse-dot 2s infinite; }
@keyframes pulse-dot { 0%,100%{box-shadow: 0 0 0 0 rgba(76,175,80,0.6);} 50%{box-shadow: 0 0 0 10px rgba(76,175,80,0);} }
.mobile-menu-btn { display: none; background: none; border: none; font-size: 1.6rem; cursor: pointer; color: #5b2d8e; padding: 4px 8px; }

.banner-section { width: 100%; max-width: var(--max-width); margin: 20px auto 0; padding: 0 20px; position: relative; overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); background: #e8e0f0; }
.banner-carousel { display: flex; transition: transform 0.6s cubic-bezier(0.25,0.8,0.25,1.2); width: 100%; will-change: transform; }
.banner-slide { min-width: 100%; position: relative; height: 380px; overflow: hidden; flex-shrink: 0; }
.banner-slide img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: var(--radius-lg); background: #d5c8e8; }
.banner-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 30px 40px; background: linear-gradient(transparent, rgba(30,10,50,0.85)); color: #fff; border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.banner-overlay h2 { font-size: 2rem; font-weight: 700; margin-bottom: 6px; text-shadow: 0 2px 4px rgba(0,0,0,0.4); }
.banner-overlay p { font-size: 1rem; opacity: 0.9; text-shadow: 0 1px 2px rgba(0,0,0,0.3); }
.banner-dots { position: absolute; bottom: 16px; right: 30px; display: flex; gap: 10px; z-index: 10; }
.banner-dots button { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; background: transparent; cursor: pointer; padding: 0; transition: var(--transition); opacity: 0.7; }
.banner-dots button.active { background: #fff; opacity: 1; transform: scale(1.3); }
.banner-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.85); border: none; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; font-size: 1.3rem; color: #5b2d8e; z-index: 10; transition: var(--transition); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm); }
.banner-arrow:hover { background: #fff; box-shadow: var(--shadow-md); }
.banner-arrow.prev { left: 16px; } .banner-arrow.next { right: 16px; }

.section { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 20px 20px; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; flex-wrap: wrap; gap: 10px; }
.section-title { font-size: 1.4rem; font-weight: 700; color: #5b2d8e; position: relative; padding-left: 16px; border-left: 4px solid var(--color-purple); line-height: 1.3; }
.section-more { font-size: 0.85rem; color: #e67e22; text-decoration: none; font-weight: 500; transition: var(--transition); }
.section-more:hover { color: #5b2d8e; text-decoration: underline; }

.platform-intro { background: linear-gradient(135deg, #fefefe 0%, #fdf6ff 50%, #fefdf8 100%); border-radius: var(--radius-lg); padding: 28px 30px; border: 1px solid #f0e6f6; box-shadow: var(--shadow-sm); line-height: 1.8; color: var(--text-dark); }
.platform-intro p { margin-bottom: 10px; font-size: 0.95rem; }
.platform-intro strong { color: #5b2d8e; }

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

.movie-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.movie-card { background: #fff; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); transition: var(--transition); border: 1px solid #f0e6f6; display: flex; flex-direction: column; }
.movie-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--color-purple); }
.movie-card-img { width: 100%; aspect-ratio: 2/3; overflow: hidden; background: #e8e0f0; flex-shrink: 0; position: relative; }
.movie-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; background: #d5c8e8; }
.movie-card:hover .movie-card-img img { transform: scale(1.06); }
.movie-card-badge { position: absolute; top: 8px; left: 8px; background: #e67e22; color: #fff; font-size: 0.72rem; padding: 3px 10px; border-radius: 12px; font-weight: 600; z-index: 2; }
.movie-card-info { padding: 12px 14px; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.movie-card-info h3 { font-size: 0.95rem; font-weight: 600; color: #2c3e50; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.movie-card-info .meta { font-size: 0.75rem; color: #888; display: flex; flex-wrap: wrap; gap: 6px; line-height: 1.5; }
.movie-card-info .meta span { background: #faf5ff; padding: 2px 8px; border-radius: 10px; white-space: nowrap; font-size: 0.7rem; }
.type-tag { display: inline-block; background: var(--color-yellow); color: #5b2d8e; padding: 3px 10px; border-radius: 10px; font-size: 0.7rem; font-weight: 600; align-self: flex-start; }

.star-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.star-card { background: #fff; border-radius: var(--radius-md); padding: 16px; text-align: center; box-shadow: var(--shadow-sm); transition: var(--transition); border: 1px solid #f0e6f6; }
.star-card:hover { box-shadow: var(--shadow-md); border-color: var(--color-pink); }
.star-card img { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; margin: 0 auto 10px; display: block; background: #e8ddf5; border: 3px solid var(--color-pink); }
.star-card h4 { font-size: 0.95rem; font-weight: 600; color: #2c3e50; margin-bottom: 2px; }
.star-card .role { font-size: 0.75rem; color: #888; }

.plot-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.plot-card { background: #fff; border-radius: var(--radius-md); padding: 18px 20px; box-shadow: var(--shadow-sm); border: 1px solid #f0e6f6; border-left: 4px solid var(--color-purple); transition: var(--transition); }
.plot-card:hover { box-shadow: var(--shadow-md); }
.plot-card h4 { font-weight: 600; color: #5b2d8e; margin-bottom: 6px; font-size: 1rem; }
.plot-card p { font-size: 0.85rem; color: #666; line-height: 1.7; }

.detail-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.detail-card { background: #fff; border-radius: var(--radius-md); padding: 20px; box-shadow: var(--shadow-sm); display: flex; gap: 16px; border: 1px solid #f0e6f6; transition: var(--transition); align-items: flex-start; }
.detail-card:hover { box-shadow: var(--shadow-md); border-color: var(--color-blue); }
.detail-card img { width: 100px; height: 140px; object-fit: cover; border-radius: var(--radius-sm); flex-shrink: 0; background: #d5c8e8; }
.detail-card-content h4 { font-weight: 600; color: #2c3e50; margin-bottom: 4px; font-size: 0.95rem; }
.detail-card-content .info-row { font-size: 0.75rem; color: #777; line-height: 1.7; }
.detail-card-content .info-row strong { color: #5b2d8e; }

.sidebar-card { background: #fff; border-radius: var(--radius-md); padding: 20px; box-shadow: var(--shadow-sm); border: 1px solid #f0e6f6; }
.sidebar-card h4 { font-weight: 700; color: #5b2d8e; margin-bottom: 14px; font-size: 1rem; border-bottom: 2px solid var(--color-yellow); padding-bottom: 10px; }
.rank-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.rank-list li { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: var(--radius-sm); transition: var(--transition); cursor: pointer; background: #fefefe; }
.rank-list li:hover { background: #fdf6ff; }
.rank-num { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.85rem; flex-shrink: 0; color: #fff; }
.rank-num.top1 { background: #e74c3c; } .rank-num.top2 { background: #e67e22; } .rank-num.top3 { background: #f39c12; } .rank-num.normal { background: #bdc3c7; color: #555; }
.rank-info { flex: 1; min-width: 0; }
.rank-info .rn { font-weight: 600; font-size: 0.85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-info .rs { font-size: 0.7rem; color: #999; }
.stat-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed #eee; font-size: 0.85rem; }
.stat-row .sv { font-weight: 700; color: #5b2d8e; font-size: 1.1rem; }
.update-time { font-size: 0.7rem; color: #aaa; text-align: right; margin-top: 6px; }

.comment-list { display: flex; flex-direction: column; gap: 14px; }
.comment-item { background: #fff; border-radius: var(--radius-md); padding: 16px 20px; box-shadow: var(--shadow-sm); border: 1px solid #f0e6f6; transition: var(--transition); }
.comment-item:hover { border-color: var(--color-blue); background: #fdfeff; }
.comment-user { font-weight: 600; color: #5b2d8e; font-size: 0.9rem; margin-bottom: 4px; }
.comment-text { font-size: 0.85rem; color: #555; line-height: 1.7; }
.comment-meta { font-size: 0.7rem; color: #aaa; margin-top: 6px; }

.app-download { background: linear-gradient(135deg, #fdf8ff 0%, #f8fdfe 100%); border-radius: var(--radius-lg); padding: 30px; border: 2px dashed var(--color-purple); box-shadow: var(--shadow-sm); }
.app-download-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 16px; }
.app-download-card { background: #fff; border-radius: var(--radius-md); padding: 20px 16px; text-align: center; box-shadow: var(--shadow-sm); transition: var(--transition); border: 1px solid #f0e6f6; cursor: pointer; text-decoration: none; color: inherit; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.app-download-card:hover { box-shadow: var(--shadow-lg); border-color: var(--color-yellow); transform: translateY(-3px); }
.app-download-card .app-icon { width: 48px; height: 48px; object-fit: contain; }
.app-download-card span { font-weight: 600; font-size: 0.9rem; color: #2c3e50; }
.app-download-card small { font-size: 0.7rem; color: #999; }

.footer { width: 100%; background: #2c1a3d; color: #ddd; padding: 30px 20px 20px; margin-top: 30px; }
.footer-inner { max-width: var(--max-width); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-col h5 { color: #fff; font-weight: 600; margin-bottom: 10px; font-size: 0.95rem; }
.footer-col a { display: block; color: #ccc; text-decoration: none; font-size: 0.8rem; padding: 3px 0; transition: var(--transition); }
.footer-col a:hover { color: var(--color-yellow); text-decoration: underline; }
.footer-bottom { max-width: var(--max-width); margin: 20px auto 0; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.15); text-align: center; font-size: 0.75rem; color: #aaa; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.footer-bottom a { color: var(--color-yellow); text-decoration: none; font-weight: 500; transition: var(--transition); }
.footer-bottom a:hover { text-decoration: underline; color: #fff; }

@media (max-width: 1199px) {
    .movie-grid { grid-template-columns: repeat(3, 1fr); }
    .star-grid { grid-template-columns: repeat(3, 1fr); }
    .app-download-grid { grid-template-columns: repeat(2, 1fr); }
    .sidebar { width: 280px; }
    .banner-slide { height: 300px; }
    .banner-overlay h2 { font-size: 1.5rem; }
}
@media (max-width: 899px) {
    .main-layout { flex-direction: column; }
    .sidebar { width: 100%; order: -1; flex-direction: row; flex-wrap: wrap; gap: 12px; }
    .sidebar .sidebar-card { flex: 1; min-width: 220px; }
    .movie-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .star-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .plot-list { grid-template-columns: 1fr; }
    .detail-list { grid-template-columns: 1fr; }
    .app-download-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .header-nav { display: none; position: absolute; top: var(--header-height); left: 0; right: 0; background: #fff; flex-direction: column; padding: 12px; box-shadow: var(--shadow-md); border-bottom: 2px solid var(--color-yellow); z-index: 999; gap: 2px; }
    .header-nav.open { display: flex; }
    .header-nav a { padding: 10px 16px; border-radius: 8px; width: 100%; text-align: center; }
    .mobile-menu-btn { display: block; }
    .banner-slide { height: 240px; }
    .banner-overlay { padding: 16px 20px; }
    .banner-overlay h2 { font-size: 1.2rem; }
    .banner-arrow { width: 30px; height: 30px; font-size: 1rem; }
}
@media (max-width: 540px) {
    .movie-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .star-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .app-download-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .banner-slide { height: 180px; }
    .banner-overlay h2 { font-size: 1rem; }
    .sidebar { flex-direction: column; }
    .detail-card { flex-direction: column; align-items: center; text-align: center; }
    .detail-card img { width: 80px; height: 110px; }
}
