:root {
    --bg-deep: #111312;
    --bg-dark: #181a1a;
    --card-bg: #242626;
    --line: #2a2d2c;
    --orange-main: #fa7705;
    --orange-light: #ff7e0d;
    --orange-bright: #ff9233;
    --text-main: #ffffff;
    --text-sub: #a9afac;
    --text-muted: #7d8481;
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background-color: var(--bg-deep);
    color: var(--text-main);
    line-height: 1.5;
    overflow-x: hidden;
  }
  a { text-decoration: none; color: inherit; }
  ul { list-style: none; }
  img { display: block; max-width: 100%; }

  /* 顶栏 */
  .topbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: rgba(24, 26, 26, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4%;
    z-index: 1000;
  }
  .brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: bold;
  }
  .brand-logo img { height: 32px; border-radius: 4px; }
  .nav-links {
    display: flex;
    gap: 24px;
    font-size: 15px;
    color: var(--text-sub);
  }
  .nav-links a:hover { color: var(--orange-main); }
  .menu-btn {
    display: none;
    background: none;
    border: 1px solid var(--line);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
  }

  /* 首屏 */
  .hero {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
  }
  .hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    padding: 8px;
    opacity: 0.28;
    z-index: 0;
  }
  .hero-bg img {
    width: 100%; height: 100%; object-fit: cover; border-radius: 4px;
  }
  .hero-veil {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, rgba(17,19,18,0.4) 0%, rgba(17,19,18,0.95) 80%);
    z-index: 1;
  }
  .hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
    margin-top: 40px;
  }
  .hero-title {
    font-size: clamp(38px, 6vw, 68px);
    font-weight: 900;
    letter-spacing: 2px;
    margin-bottom: 24px;
    position: relative;
    display: inline-block;
  }
  .hero-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 10%;
    width: 80%;
    height: 12px;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 20" preserveAspectRatio="none" xmlns="http://www.w3.org/2000/svg"><path d="M0,10 Q25,0 50,10 T100,10" stroke="%23fa7705" stroke-width="6" fill="none" stroke-linecap="round"/></svg>') no-repeat center;
    background-size: 100% 100%;
  }
  .btn-orange {
    display: inline-block;
    background: linear-gradient(155deg, var(--orange-light), var(--orange-bright));
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    padding: 14px 40px;
    border-radius: 6px;
    margin-top: 30px;
    transition: transform 0.2s;
  }
  .btn-orange:hover { transform: scale(1.05); }
  .scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-sub);
    font-size: 14px;
    animation: bounce 2s infinite;
  }
  .scroll-down::after {
    content: '↓';
    font-size: 20px;
    color: var(--orange-main);
  }
  @keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-10px) translateX(-50%); }
    60% { transform: translateY(-5px) translateX(-50%); }
  }

  /* 扇形 */
  .fan-section {
    padding: 80px 0;
    display: flex;
    justify-content: center;
    overflow: visible;
  }
  .fan-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
    margin-top: 40px;
  }
  .fan-item {
    width: 140px;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.4s ease;
    margin-left: -30px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    flex-shrink: 0;
  }
  .fan-item img { width: 100%; height: 100%; object-fit: cover; }
  .fan-item:nth-child(1) { height: 210px; transform: rotate(-18deg) translateY(20px); z-index: 1; margin-left: 0; }
  .fan-item:nth-child(2) { height: 270px; transform: rotate(-12deg) translateY(10px); z-index: 2; }
  .fan-item:nth-child(3) { height: 320px; transform: rotate(-5deg); z-index: 3; }
  .fan-item:nth-child(4) { height: 360px; transform: rotate(0deg) translateY(-10px); z-index: 4; }
  .fan-item:nth-child(5) { height: 320px; transform: rotate(5deg); z-index: 3; }
  .fan-item:nth-child(6) { height: 270px; transform: rotate(10deg) translateY(10px); z-index: 2; }
  .fan-item:nth-child(7) { height: 210px; transform: rotate(13deg) translateY(20px); z-index: 1; }
  .fan-item:nth-child(8) { height: 240px; transform: rotate(16deg) translateY(15px); z-index: 0; }
  .fan-container:hover .fan-item {
    transform: rotate(0deg) translateY(0) !important;
    margin-left: 4px;
    z-index: 10 !important;
  }
  .fan-container:hover .fan-item:hover {
    transform: scale(1.1) translateY(-10px) !important;
    box-shadow: 0 15px 30px rgba(250, 119, 5, 0.3);
  }

  /* 通用版块 */
  .section {
    padding: 60px 4%;
    max-width: 1200px;
    margin: 0 auto;
  }
  .section-head {
    margin-bottom: 30px;
    display: flex;
    align-items: baseline;
    gap: 16px;
  }
  .section-title {
    font-size: 28px;
    font-weight: bold;
    position: relative;
    padding-left: 14px;
  }
  .section-title::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    width: 4px; height: 24px;
    background: var(--orange-main);
    border-radius: 2px;
  }
  .section-desc {
    color: var(--text-sub);
    font-size: 15px;
  }

  /* 追剧三步 */
  .steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  .step-card {
    background: var(--card-bg);
    padding: 30px 24px;
    border-radius: 6px;
    border: 1px solid var(--line);
  }
  .step-num {
    font-size: 14px;
    color: var(--orange-main);
    font-weight: bold;
    margin-bottom: 12px;
  }
  .step-title {
    font-size: 20px;
    margin-bottom: 12px;
  }
  .step-text {
    color: var(--text-sub);
    font-size: 15px;
  }

  /* 横向剧卡 */
  .scroll-row {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 20px;
    scrollbar-width: thin;
    scrollbar-color: var(--line) transparent;
  }
  .scroll-row::-webkit-scrollbar { height: 6px; }
  .scroll-row::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
  .drama-card {
    width: 150px;
    flex-shrink: 0;
    background: transparent;
  }
  .drama-poster {
    position: relative;
    width: 100%;
    height: 210px;
    border-radius: 4px;
    overflow: hidden;
  }
  .drama-poster img { width: 100%; height: 100%; object-fit: cover; }
  .ep-badge {
    position: absolute;
    bottom: 6px; left: 6px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 3px;
  }
  .drama-name {
    font-size: 15px;
    margin-top: 10px;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .drama-tag {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
  }

  /* 魔改专区 */
  .magic-area {
    background: var(--bg-dark);
    border-radius: 8px;
    padding: 40px;
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-around;
    position: relative;
  }
  .magic-card { text-align: center; }
  .magic-card img {
    width: 200px; height: 280px; object-fit: cover; border-radius: 6px;
    border: 1px solid var(--line);
  }
  .magic-label {
    margin-top: 12px; font-size: 16px; color: var(--text-sub);
  }
  .magic-arrow {
    font-size: 30px; color: var(--orange-main); font-weight: bold;
  }
  .magic-points {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 30px;
  }
  .magic-point {
    background: var(--card-bg); padding: 16px; border-radius: 4px; border: 1px solid var(--line);
  }
  .magic-point b { color: var(--orange-main); display: block; margin-bottom: 4px; }
  .magic-point span { color: var(--text-sub); font-size: 14px; }

  /* 心愿榜 */
  .wishlist-list {
    display: flex; flex-direction: column; gap: 16px;
  }
  .wish-item {
    display: flex; align-items: center; gap: 20px;
    background: var(--card-bg); padding: 16px; border-radius: 6px; border: 1px solid var(--line);
  }
  .wish-img { width: 60px; height: 84px; border-radius: 4px; overflow: hidden; flex-shrink: 0; }
  .wish-img img { width: 100%; height: 100%; object-fit: cover; }
  .wish-info { flex-grow: 1; }
  .wish-name { font-size: 16px; font-weight: bold; margin-bottom: 6px; }
  .wish-bar-bg { width: 100%; max-width: 300px; height: 6px; background: #333; border-radius: 3px; margin-bottom: 6px; overflow: hidden; }
  .wish-bar-fill { height: 100%; background: var(--orange-main); width: 0; transition: width 0.3s; }
  .wish-stats { font-size: 13px; color: var(--text-muted); }
  .btn-wish {
    padding: 8px 16px; border-radius: 4px; border: 1px solid var(--orange-main);
    background: transparent; color: var(--orange-main); font-size: 14px; cursor: pointer;
    transition: all 0.2s;
  }
  .btn-wish:hover { background: var(--orange-main); color: #fff; }
  .btn-wish.added { background: #333; border-color: #555; color: var(--text-muted); cursor: not-allowed; }

  /* FAQ */
  .faq-list { display: flex; flex-direction: column; gap: 12px; }
  .faq-item {
    background: var(--card-bg); border-radius: 6px; border: 1px solid var(--line); overflow: hidden;
  }
  .faq-q {
    padding: 18px 20px; font-size: 16px; font-weight: bold; cursor: pointer;
    display: flex; justify-content: space-between; align-items: center;
  }
  .faq-q::after { content: '+'; color: var(--orange-main); font-size: 20px; transition: transform 0.3s; }
  .faq-item.open .faq-q::after { transform: rotate(45deg); }
  .faq-a {
    padding: 0 20px; max-height: 0; overflow: hidden; transition: all 0.3s ease;
    color: var(--text-sub); font-size: 15px;
  }
  .faq-item.open .faq-a { padding: 0 20px 18px; max-height: 200px; }

  /* 下载区 */
  .download-box {
    background: linear-gradient(135deg, rgba(250,119,5,0.15), rgba(24,26,26,0.8));
    border: 1px solid var(--orange-main); border-radius: 8px; padding: 50px 20px; text-align: center;
  }
  .download-box h2 { font-size: 32px; margin-bottom: 16px; }
  .download-box p { color: var(--text-sub); margin-bottom: 30px; }

  /* 页脚 */
  footer {
    border-top: 1px solid var(--line); padding: 40px 4%; margin-top: 40px;
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
    font-size: 13px; color: var(--text-muted);
  }
  .footer-left { display: flex; flex-direction: column; gap: 8px; }
  .footer-links { display: flex; gap: 20px; }
  .footer-links a:hover { color: var(--orange-main); }

  /* 响应式 */
  @media (max-width: 1024px) {
    .hero-title { font-size: 48px; }
    .fan-item { width: 120px; }
    .steps-grid { grid-template-columns: repeat(3, 1fr); }
  }
  @media (max-width: 768px) {
    .nav-links { display: none; }
    .menu-btn { display: block; }
    .hero-bg { grid-template-columns: repeat(3, 1fr); }
    .hero-title { font-size: 36px; }
    .fan-container { transform: scale(0.85); margin-top: 20px; }
    .fan-item:nth-child(n+6) { display: none; }
    .fan-item { margin-left: -40px; }
    .steps-grid { grid-template-columns: 1fr; }
    .magic-area { flex-direction: column; gap: 20px; }
    .magic-arrow { transform: rotate(90deg); }
    .magic-points { grid-template-columns: 1fr; }
    .wish-item { flex-wrap: wrap; }
    .wish-bar-bg { max-width: 100%; }
    footer { flex-direction: column; gap: 16px; text-align: center; }
  }