:root {
    --iqiyi-green: #00be06;
    --iqiyi-dark: #111418;
    --iqiyi-panel: #1b2025;
    --iqiyi-line: #2c333b;
    --iqiyi-text: #f0f2f5;
    --iqiyi-muted: #8e98a5;
    --iqiyi-radius: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    background: var(--iqiyi-dark);
    color: var(--iqiyi-text);
    line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1180px, 92vw); margin: 0 auto; }

.iqiyi-header { position: sticky; top: 0; z-index: 50; background: rgba(17, 20, 24, .96); border-bottom: 1px solid var(--iqiyi-line); backdrop-filter: blur(10px); }
.iqiyi-header-inner { display: flex; align-items: center; min-height: 66px; gap: 22px; }
.iqiyi-logo { display: inline-flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 900; color: #fff; }
.iqiyi-logo-mark { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; background: var(--iqiyi-green); color: #fff; border-radius: 9px; font-size: 20px; }
.iqiyi-menu { display: flex; align-items: center; gap: 4px; flex: 1; }
.iqiyi-menu a { padding: 8px 14px; border-radius: 7px; color: #cbd2dc; font-weight: 700; font-size: 15px; }
.iqiyi-menu a:hover { color: #fff; background: rgba(0, 190, 6, .14); }
.iqiyi-search { display: flex; align-items: center; background: #1b2025; border: 1px solid var(--iqiyi-line); border-radius: 999px; overflow: hidden; }
.iqiyi-search input { border: 0; outline: 0; padding: 8px 12px; width: 165px; background: transparent; color: #fff; }
.iqiyi-search button { border: 0; background: var(--iqiyi-green); color: #fff; padding: 8px 15px; cursor: pointer; font-weight: 800; }
.iqiyi-nav-toggle { display: none; border: 0; background: var(--iqiyi-green); color: #fff; border-radius: 8px; padding: 8px 11px; font-size: 18px; cursor: pointer; }

.iqiyi-main { min-height: 70vh; }
.iqiyi-hero { padding: 18px 0 6px; }
.carousel { position: relative; overflow: hidden; border-radius: var(--iqiyi-radius); box-shadow: 0 10px 26px rgba(0,0,0,.28); background: #1b2025; }
.slides { display: flex; transition: transform .45s ease; }
.slide { position: relative; flex: 0 0 100%; height: 370px; display: block; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide-caption { position: absolute; left: 28px; bottom: 26px; background: rgba(0,0,0,.55); color: #fff; padding: 8px 14px; border-radius: 6px; font-size: 20px; font-weight: 900; border-left: 4px solid var(--iqiyi-green); }
.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(255,255,255,.88); color: #111; font-size: 25px; cursor: pointer; line-height: 1; }
.carousel-btn.prev { left: 16px; }
.carousel-btn.next { right: 16px; }
.carousel-dots { position: absolute; right: 22px; bottom: 18px; display: flex; gap: 6px; }
.carousel-dots .dot { width: 9px; height: 9px; border: 0; border-radius: 50%; background: rgba(255,255,255,.5); cursor: pointer; padding: 0; }
.carousel-dots .dot.active { background: var(--iqiyi-green); width: 24px; border-radius: 999px; }

.iqiyi-category { display: flex; gap: 12px; flex-wrap: wrap; padding: 18px 0 4px; }
.iqiyi-category a { background: var(--iqiyi-panel); border: 1px solid var(--iqiyi-line); border-radius: 8px; padding: 8px 14px; color: #cbd2dc; font-weight: 700; }
.iqiyi-category a:hover { border-color: var(--iqiyi-green); color: #fff; }

.iqiyi-section { padding: 26px 0 42px; }
.iqiyi-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.iqiyi-section-head h2 { margin: 0; font-size: 24px; }
.iqiyi-section-head a { color: var(--iqiyi-green); font-weight: 800; font-size: 14px; }
.iqiyi-video-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.iqiyi-video-card { background: var(--iqiyi-panel); border: 1px solid var(--iqiyi-line); border-radius: var(--iqiyi-radius); overflow: hidden; transition: transform .2s, border-color .2s; }
.iqiyi-video-card:hover { transform: translateY(-4px); border-color: var(--iqiyi-green); }
.iqiyi-cover { aspect-ratio: 16/10; overflow: hidden; background: #1b2025; }
.iqiyi-cover img { width: 100%; height: 100%; object-fit: cover; }
.iqiyi-cover-mark { display: flex; align-items: center; justify-content: center; color: #fff; background: linear-gradient(135deg, var(--iqiyi-green), #00d5d5); font-size: 30px; font-weight: 900; }
.iqiyi-card-body { padding: 13px 15px; }
.iqiyi-card-body h3 { margin: 0 0 6px; font-size: 16px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.iqiyi-card-body p { color: var(--iqiyi-muted); margin: 0 0 10px; font-size: 13px; }
.iqiyi-card-foot { display: flex; align-items: center; justify-content: space-between; color: var(--iqiyi-muted); font-size: 12px; }
.iqiyi-card-foot span:last-child { color: #ffd45c; font-weight: 800; }

.iqiyi-page-title { background: linear-gradient(135deg, #0e1113, #12331c); padding: 36px 0; border-bottom: 1px solid var(--iqiyi-line); }
.iqiyi-page-title h1 { margin: 0 0 6px; font-size: 30px; }
.iqiyi-page-title p { margin: 0; color: var(--iqiyi-muted); }
.iqiyi-page-layout { display: grid; grid-template-columns: 1fr 270px; gap: 22px; padding: 26px 0 44px; }
.iqiyi-page-main { min-width: 0; }
.iqiyi-page-side { position: sticky; top: 86px; align-self: start; }
.iqiyi-side-card { background: var(--iqiyi-panel); border: 1px solid var(--iqiyi-line); border-radius: var(--iqiyi-radius); padding: 18px; }
.iqiyi-side-card h3 { margin: 0 0 12px; font-size: 18px; }
.iqiyi-side-nav { display: flex; flex-direction: column; gap: 2px; }
.iqiyi-side-nav a { padding: 9px 10px; border-radius: 8px; color: #cbd2dc; font-weight: 700; }
.iqiyi-side-nav a:hover { background: rgba(0, 190, 6, .14); color: #fff; }

.iqiyi-article { background: var(--iqiyi-panel); border: 1px solid var(--iqiyi-line); border-radius: var(--iqiyi-radius); padding: 30px 36px 36px; margin: 26px auto 46px; }
.iqiyi-article-head { border-bottom: 1px solid var(--iqiyi-line); padding-bottom: 18px; margin-bottom: 22px; }
.iqiyi-article-head h1 { margin: 0 0 12px; font-size: 31px; line-height: 1.4; }
.iqiyi-meta { display: flex; flex-wrap: wrap; gap: 16px; color: var(--iqiyi-muted); font-size: 13px; }
.iqiyi-article-content { font-size: 16px; line-height: 1.9; }
.iqiyi-article-content h2, .iqiyi-article-content h3 { margin-top: 1.4em; }
.iqiyi-article-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 12px 0; }
.iqiyi-article-content p { margin: 0 0 16px; }
.iqiyi-article-pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--iqiyi-line); font-size: 14px; }
.iqiyi-article-pager a { color: var(--iqiyi-green); font-weight: 800; }
.iqiyi-related { margin-top: 24px; }
.iqiyi-related h2 { font-size: 22px; }
.iqiyi-empty { padding: 45px 0; text-align: center; color: var(--iqiyi-muted); }
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 22px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; padding: 0 10px; border: 1px solid var(--iqiyi-line); border-radius: 8px; background: var(--iqiyi-panel); color: #cbd2dc; font-weight: 800; }
.pager a:hover { border-color: var(--iqiyi-green); color: #fff; }
.pager .current { background: var(--iqiyi-green); border-color: var(--iqiyi-green); color: #fff; }

.iqiyi-footer { background: #0b0d0f; border-top: 1px solid var(--iqiyi-line); padding: 28px 0; text-align: center; color: var(--iqiyi-muted); margin-top: 20px; }
.iqiyi-footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-bottom: 12px; }
.iqiyi-footer-links a { color: #cbd2dc; }
.iqiyi-footer-links a:hover { color: #fff; }
.iqiyi-footer p { margin: 0; font-size: 13px; }
.stat-code { text-align: center; margin-top: 6px; }

@media (max-width: 960px) {
    .iqiyi-video-grid { grid-template-columns: repeat(2, 1fr); }
    .iqiyi-page-layout { grid-template-columns: 1fr; }
    .iqiyi-page-side { position: static; }
    .slide { height: 270px; }
}

@media (max-width: 640px) {
    .iqiyi-header-inner { flex-wrap: wrap; gap: 10px; padding: 12px 0; }
    .iqiyi-nav-toggle { display: inline-flex; }
    .iqiyi-menu { display: none; order: 3; flex-basis: 100%; flex-direction: column; align-items: stretch; background: #111418; border-top: 1px solid var(--iqiyi-line); padding: 8px 0; }
    .iqiyi-menu.open { display: flex; }
    .iqiyi-search { order: 2; flex: 1; }
    .iqiyi-search input { width: 100%; }
    .slide { height: 200px; }
    .slide-caption { left: 14px; bottom: 14px; font-size: 16px; }
    .iqiyi-video-grid { grid-template-columns: 1fr; }
    .iqiyi-article { padding: 20px 18px; }
    .iqiyi-article-head h1 { font-size: 25px; }
}
