:root {
    --primary: #2563eb;
    --accent: #06b6d4;
    --bg: #f4f8ff;
    --text: #0f1e3d;
    --border: #dbe3f0;
    --white: #ffffff;
    --light: #eef4ff;
    --rating-gold: #f59e0b;
    --rating-silver: #94a3b8;
    --rating-bronze: #b45309;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Inter', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.7;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* 顶部导航 */
.navbar-cy {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.6rem 0;
}
.navbar-brand-cy {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: 'Inter', sans-serif;
}
.navbar-brand-cy i { font-size: 1.6rem; }
.navbar-brand-cy .highlight { color: var(--accent); }
.nav-links-cy .nav-link-cy {
    color: var(--text);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    transition: all 0.3s ease;
}
.nav-links-cy .nav-link-cy:hover {
    color: var(--primary);
    background: var(--light);
}
.navbar-toggler-cy {
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--primary);
    border-radius: 8px;
    padding: 0.3rem 0.7rem;
    font-size: 1.3rem;
}

/* Hero 标签云 */
.hero-tags {
    padding: 3rem 0 1rem;
    text-align: center;
}
.hero-tags h1 {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--text);
    letter-spacing: -1px;
    margin-bottom: 1.2rem;
    font-family: 'Inter', sans-serif;
}
.hero-tags h1 span { color: var(--primary); }
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    max-width: 800px;
    margin: 0 auto;
}
.tag-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 40px;
    padding: 0.4rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    cursor: default;
    transition: all 0.3s ease;
    animation: tagFloat 3s ease-in-out infinite;
}
.tag-item:nth-child(odd) { animation-delay: 0.5s; }
.tag-item:nth-child(3n) { animation-delay: 1s; }
.tag-item:nth-child(4n) { animation-delay: 1.5s; }
@keyframes tagFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
.tag-item:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    transform: scale(1.05);
}

/* 通用区块 */
.section-title {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--text);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: 'Inter', sans-serif;
}
.section-title i { color: var(--primary); }
.section-sub {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

/* 横向滚动 */
.h-scroll {
    display: flex;
    overflow-x: auto;
    gap: 1.2rem;
    padding: 0.5rem 0 1.5rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}
.h-scroll::-webkit-scrollbar { height: 4px; }
.h-scroll::-webkit-scrollbar-track { background: var(--light); }
.h-scroll::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }
.movie-card {
    min-width: 180px;
    max-width: 180px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    scroll-snap-align: start;
    opacity: 0;
    transform: translateY(30px);
    cursor: pointer;
    position: relative;
}
.movie-card.visible {
    opacity: 1;
    transform: translateY(0);
}
.movie-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.12);
    border-color: var(--primary);
}
.movie-poster {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    background: var(--light);
}
.movie-info {
    padding: 0.8rem 0.8rem 1rem;
}
.movie-name {
    font-weight: 700;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.2rem;
}
.movie-meta {
    font-size: 0.8rem;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.rating-badge {
    font-weight: 800;
    color: var(--primary);
}
.rating-badge.high { color: #f59e0b; }

/* 延迟出现 */
.delay-1 { transition-delay: 0.05s; }
.delay-2 { transition-delay: 0.1s; }
.delay-3 { transition-delay: 0.15s; }
.delay-4 { transition-delay: 0.2s; }
.delay-5 { transition-delay: 0.25s; }
.delay-6 { transition-delay: 0.3s; }
.delay-7 { transition-delay: 0.35s; }
.delay-8 { transition-delay: 0.4s; }

/* 分类矩阵 */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.2rem;
    padding: 1rem 0 2rem;
}
.cat-pill {
    display: inline-block;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 40px;
    padding: 0.3rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text);
    margin: 0.2rem;
    transition: all 0.3s;
    cursor: default;
}
.cat-pill:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}
.cat-pill.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* 排行榜 */
.rank-list {
    list-style: none;
    padding: 0;
}
.rank-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.8rem 1.2rem;
    margin-bottom: 0.8rem;
    transition: all 0.3s;
    cursor: pointer;
}
.rank-item:hover {
    border-color: var(--primary);
    transform: translateX(6px);
}
.rank-num {
    font-size: 1.4rem;
    font-weight: 900;
    width: 36px;
    text-align: center;
    font-style: italic;
}
.rank-1 .rank-num { color: var(--rating-gold); }
.rank-2 .rank-num { color: var(--rating-silver); }
.rank-3 .rank-num { color: var(--rating-bronze); }
.rank-info { flex: 1; }
.rank-title {
    font-weight: 700;
    font-size: 0.95rem;
}
.rank-score {
    font-weight: 800;
    color: var(--primary);
    font-size: 1.1rem;
}

/* FAQ */
.faq-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 1rem;
    padding: 1.2rem 1.5rem;
    transition: border-color 0.3s;
}
.faq-item:hover { border-color: var(--primary); }
.faq-q {
    font-weight: 700;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.4rem;
}
.faq-q i { color: var(--primary); }
.faq-a { color: #475569; font-size: 0.92rem; padding-left: 2rem; }

/* 时间线 */
.timeline {
    position: relative;
    padding-left: 2rem;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}
.timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
    padding-left: 1rem;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -1.85rem;
    top: 0.4rem;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid var(--white);
    box-shadow: 0 0 0 2px var(--primary);
}
.timeline-item h5 { font-weight: 700; margin-bottom: 0.3rem; }
.timeline-item p { color: #64748b; font-size: 0.9rem; }

/* 弹窗 */
.modal-cy {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(15, 30, 61, 0.6);
    backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}
.modal-cy.show { display: flex; }
.modal-card-cy {
    background: var(--white);
    border-radius: 16px;
    max-width: 680px;
    width: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: modalIn 0.3s ease;
    max-height: 85vh;
    overflow-y: auto;
}
@keyframes modalIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}
.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--white);
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.modal-body-cy {
    display: flex;
    gap: 1.5rem;
    padding: 1.8rem;
}
.modal-poster-cy {
    width: 180px;
    border-radius: 12px;
    flex-shrink: 0;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}
.modal-content-cy { flex: 1; }
.modal-content-cy h3 { font-weight: 800; font-size: 1.4rem; margin-bottom: 0.8rem; }
.modal-meta-cy {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 0.8rem;
}
.modal-tag-cy {
    background: var(--light);
    border-radius: 30px;
    padding: 0.15rem 0.8rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
}
.modal-plot-cy {
    font-size: 0.92rem;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 1rem;
}
.modal-stars-cy {
    font-size: 0.85rem;
    color: #64748b;
    border-top: 1px solid var(--border);
    padding-top: 0.6rem;
}
@media (max-width: 576px) {
    .modal-body-cy { flex-direction: column; padding: 1.2rem; }
    .modal-poster-cy { width: 100%; max-height: 220px; object-fit: cover; }
}

/* 底部 */
.footer-cy {
    border-top: 1px solid var(--border);
    background: var(--white);
    padding: 2.5rem 0 1rem;
    margin-top: 3rem;
}
.footer-brand-cy {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.footer-links-cy {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.8rem;
}
.footer-links-cy a {
    color: #64748b;
    font-size: 0.9rem;
    transition: color 0.3s;
}
.footer-links-cy a:hover { color: var(--primary); }
.copyright-cy {
    border-top: 1px solid var(--border);
    margin-top: 2rem;
    padding-top: 1rem;
    text-align: center;
    color: #94a3b8;
    font-size: 0.85rem;
}

/* 回到顶部 */
#backTop {
    position: fixed;
    bottom: 2.5rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
    z-index: 999;
}
#backTop.show {
    opacity: 1;
    visibility: visible;
}
#backTop:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

/* 今日更新区块 */
.today-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}
.today-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.8rem;
    transition: all 0.3s;
}
.today-item:hover { border-color: var(--accent); transform: translateY(-4px); }
.today-item .t-title { font-weight: 600; font-size: 0.9rem; }
.today-item .t-time { font-size: 0.75rem; color: var(--accent); font-weight: 600; }

/* 按钮 */
.btn-cy {
    display: inline-block;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 40px;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
    cursor: pointer;
}
.btn-cy:hover { background: var(--accent); transform: translateY(-2px); }
.btn-outline-cy {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}
.btn-outline-cy:hover { background: var(--primary); color: white; }

/* 标签页 */
.tab-pane-cy { display: none; }
.tab-pane-cy.active { display: block; }
.nav-tabs-cy {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}
.nav-tab-cy {
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 0.35rem 1.2rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
    cursor: pointer;
    transition: all 0.3s;
}
.nav-tab-cy.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* 响应式 */
@media (max-width: 768px) {
    .hero-tags h1 { font-size: 2rem; }
    .section-title { font-size: 1.4rem; }
    .movie-card { min-width: 150px; max-width: 150px; }
    .cat-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}