:root {
    --bg-dark: #111312;
    --bg-darker: #181a1a;
    --card-bg: #242626;
    --line-color: #2a2d2c;
    --accent: #fa7705;
    --accent-grad: linear-gradient(155deg, #ff7e0d, #ff9233);
    --text-main: #ffffff;
    --text-sub: #a9afac;
    --text-muted: #7d8481;
    --font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
  }

  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-family);
    line-height: 1.6;
    overflow-x: hidden;
  }

  a {
    text-decoration: none;
    color: inherit;
  }

  ul, li {
    list-style: none;
  }

  /* 顶栏 */
  .topbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 64px;
    background-color: rgba(24, 26, 26, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line-color);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4%;
  }

  .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: bold;
    color: var(--text-main);
  }

  .brand img {
    height: 32px;
    border-radius: 6px;
  }

  .nav-links {
    display: flex;
    gap: 30px;
  }

  .nav-links a {
    font-size: 15px;
    color: var(--text-sub);
    transition: color 0.3s;
  }

  .nav-links a:hover {
    color: var(--accent);
  }

  .menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 24px;
    cursor: pointer;
  }

  /* 首屏 */
  .hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    overflow: hidden;
  }

  .hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 10px;
    opacity: 0.28;
    z-index: 1;
    padding: 10px;
  }

  .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.3) 0%, rgba(17, 19, 18, 0.9) 70%, #111312 100%);
    z-index: 2;
  }

  .hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
  }

  .hero h1 {
    font-size: clamp(38px, 6vw, 68px);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
  }

  .hero h1::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 10%;
    width: 80%;
    height: 12px;
    background-color: var(--accent);
    border-radius: 10px;
    transform: rotate(-1.5deg);
    z-index: -1;
    opacity: 0.8;
  }

  .hero-sub {
    font-size: 18px;
    color: var(--text-sub);
    margin-bottom: 40px;
    margin-top: 30px;
  }

  .btn-primary {
    display: inline-block;
    background: var(--accent-grad);
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    padding: 16px 48px;
    border-radius: 6px;
    transition: transform 0.2s, box-shadow 0.2s;
  }

  .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(250, 119, 5, 0.4);
  }

  .scroll-hint {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-muted);
    font-size: 14px;
    gap: 8px;
  }

  .scroll-hint .arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: rotate(45deg);
    animation: bounce 1.5s infinite;
  }

  @keyframes bounce {
    0%, 100% { transform: translateY(0) rotate(45deg); }
    50% { transform: translateY(10px) rotate(45deg); }
  }

  /* 通用区块 */
  .section {
    padding: 80px 4%;
    max-width: 1400px;
    margin: 0 auto;
  }

  .section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--line-color);
    padding-bottom: 15px;
  }

  .section-header h2 {
    font-size: 28px;
    font-weight: bold;
    color: var(--text-main);
  }

  .section-header span {
    font-size: 14px;
    color: var(--accent);
  }

  /* 扇形剧照 */
  .fan-gallery {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 460px;
    position: relative;
    margin-top: -40px;
  }

  .fan-item {
    position: absolute;
    width: 160px;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    cursor: pointer;
  }

  .fan-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .fan-item:nth-child(1) { height: 210px; transform: translateX(-320px) rotate(-18deg); z-index: 1; }
  .fan-item:nth-child(2) { height: 260px; transform: translateX(-230px) rotate(-12deg); z-index: 2; }
  .fan-item:nth-child(3) { height: 310px; transform: translateX(-140px) rotate(-8deg); z-index: 3; }
  .fan-item:nth-child(4) { height: 360px; transform: translateX(-50px) rotate(-4deg); z-index: 4; }
  .fan-item:nth-child(5) { height: 360px; transform: translateX(50px) rotate(4deg); z-index: 4; }
  .fan-item:nth-child(6) { height: 310px; transform: translateX(140px) rotate(8deg); z-index: 3; }
  .fan-item:nth-child(7) { height: 260px; transform: translateX(230px) rotate(12deg); z-index: 2; }
  .fan-item:nth-child(8) { height: 210px; transform: translateX(320px) rotate(18deg); z-index: 1; }

  .fan-gallery:hover .fan-item {
    transform: translateX(0) rotate(0) !important;
    height: 280px !important;
    z-index: 10;
    margin: 0 5px;
  }

  .fan-gallery:hover {
    display: flex;
    gap: 10px;
  }

  /* 追剧三步 */
  .steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }

  .step-card {
    background-color: var(--card-bg);
    border-radius: 6px;
    padding: 30px;
    position: relative;
    border: 1px solid var(--line-color);
  }

  .step-num {
    font-size: 40px;
    font-weight: 900;
    color: var(--accent);
    opacity: 0.3;
    position: absolute;
    top: 20px;
    right: 20px;
  }

  .step-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
  }

  .step-card p {
    font-size: 14px;
    color: var(--text-sub);
    position: relative;
    z-index: 1;
  }

  /* 横向剧卡列表 */
  .scroll-row {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 20px;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) var(--bg-darker);
  }

  .scroll-row::-webkit-scrollbar {
    height: 6px;
  }

  .scroll-row::-webkit-scrollbar-track {
    background: var(--bg-darker);
    border-radius: 3px;
  }

  .scroll-row::-webkit-scrollbar-thumb {
    background-color: var(--accent);
    border-radius: 3px;
  }

  .movie-card {
    flex: 0 0 150px;
    position: relative;
    border-radius: 5px;
    overflow: hidden;
    background-color: var(--card-bg);
  }

  .movie-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
  }

  .movie-card:hover img {
    transform: scale(1.05);
  }

  .movie-card .ep-tag {
    position: absolute;
    bottom: 50px;
    left: 8px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 3px;
    backdrop-filter: blur(4px);
  }

  .movie-card .info {
    padding: 10px;
    background: #181a1a;
  }

  .movie-card .title {
    font-size: 14px;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
  }

  .movie-card .tags {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* 魔改专区 */
  .rewrite-compare {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
  }

  .compare-card {
    flex: 1;
    max-width: 300px;
    background-color: var(--card-bg);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--line-color);
    text-align: center;
    padding-bottom: 20px;
  }

  .compare-card img {
    width: 100%;
    height: 380px;
    object-fit: cover;
  }

  .compare-card h3 {
    margin-top: 15px;
    font-size: 18px;
  }

  .compare-card p {
    font-size: 14px;
    color: var(--text-sub);
    margin-top: 5px;
  }

  .compare-arrow {
    font-size: 40px;
    color: var(--accent);
    font-weight: bold;
  }

  .rewrite-points {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
  }

  .rewrite-points div {
    background: var(--bg-darker);
    padding: 20px;
    border-radius: 6px;
    border: 1px solid var(--line-color);
    color: var(--text-main);
    font-size: 15px;
    font-weight: bold;
  }

  /* 心愿榜 */
  .wishlist-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  .wish-item {
    display: flex;
    align-items: center;
    background-color: var(--card-bg);
    border-radius: 6px;
    padding: 15px;
    gap: 20px;
    border: 1px solid var(--line-color);
  }

  .wish-item img {
    width: 60px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
  }

  .wish-info {
    flex: 1;
  }

  .wish-info h4 {
    font-size: 16px;
    margin-bottom: 6px;
  }

  .wish-progress-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-sub);
  }

  .progress-bar {
    flex: 1;
    height: 6px;
    background-color: #111;
    border-radius: 3px;
    overflow: hidden;
  }

  .progress-bar span {
    display: block;
    height: 100%;
    background: var(--accent-grad);
    width: 0%;
    transition: width 0.3s;
  }

  .wish-btn {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
  }

  .wish-btn:hover {
    background: var(--accent);
    color: #fff;
  }

  .wish-btn.active {
    background: var(--accent);
    color: #fff;
    pointer-events: none;
  }

  /* FAQ */
  .faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  .faq-item {
    background-color: var(--card-bg);
    border-radius: 6px;
    border: 1px solid var(--line-color);
    overflow: hidden;
  }

  .faq-q {
    padding: 20px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .faq-q::after {
    content: '+';
    color: var(--accent);
    font-size: 20px;
    transition: transform 0.3s;
  }

  .faq-item.active .faq-q::after {
    transform: rotate(45deg);
  }

  .faq-a {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    color: var(--text-sub);
    font-size: 14px;
    transition: max-height 0.3s ease, padding 0.3s ease;
  }

  .faq-item.active .faq-a {
    padding: 0 20px 20px;
    max-height: 200px;
  }

  /* 下载区 & 页脚 */
  .download-section {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(to bottom, var(--bg-dark), var(--bg-darker));
    border-top: 1px solid var(--line-color);
  }

  .download-section h2 {
    font-size: 32px;
    margin-bottom: 20px;
  }

  .download-section p {
    color: var(--text-sub);
    margin-bottom: 40px;
  }

  .site-footer {
    background-color: #0b0c0c;
    padding: 40px 4%;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    border-top: 1px solid var(--line-color);
  }

  .site-footer .footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 15px;
  }

  .site-footer .footer-brand img {
    height: 24px;
    border-radius: 4px;
  }

  .site-footer p {
    margin-bottom: 8px;
  }

  .site-footer a {
    color: var(--text-muted);
  }

  .site-footer a:hover {
    text-decoration: underline;
  }

  /* 响应式 */
  @media (max-width: 1024px) {
    .fan-item { width: 120px; }
    .fan-item:nth-child(1) { transform: translateX(-240px) rotate(-18deg); }
    .fan-item:nth-child(2) { transform: translateX(-170px) rotate(-12deg); }
    .fan-item:nth-child(3) { transform: translateX(-100px) rotate(-8deg); }
    .fan-item:nth-child(4) { transform: translateX(-35px) rotate(-4deg); }
    .fan-item:nth-child(5) { transform: translateX(35px) rotate(4deg); }
    .fan-item:nth-child(6) { transform: translateX(100px) rotate(8deg); }
    .fan-item:nth-child(7) { transform: translateX(170px) rotate(12deg); }
    .fan-item:nth-child(8) { transform: translateX(240px) rotate(18deg); }
    .rewrite-points { grid-template-columns: repeat(2, 1fr); }
  }

  @media (max-width: 768px) {
    .nav-links {
      display: none;
      position: absolute;
      top: 64px;
      left: 0;
      width: 100%;
      background-color: var(--bg-darker);
      flex-direction: column;
      padding: 20px;
      border-bottom: 1px solid var(--line-color);
    }
    .nav-links.show { display: flex; }
    .menu-btn { display: block; }
    .hero-bg { grid-template-columns: repeat(3, 1fr); }
    .steps-grid { grid-template-columns: 1fr; }
    .fan-gallery { display: none; }
    .rewrite-compare { flex-direction: column; }
    .compare-arrow { transform: rotate(90deg); }
    .rewrite-points { grid-template-columns: 1fr; }
    .wish-item { flex-direction: column; text-align: center; }
    .wish-progress-wrap { width: 100%; }
    .section { padding: 40px 4%; }
  }
  
  /* 动画类 */
  .fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  }
  .fade-up.visible {
    opacity: 1;
    transform: translateY(0);
  }