:root {
    --bg-dark: #16120c;
    --bg-dark-2: #221a10;
    --yellow: #ffcc33;
    --yellow-deep: #ffa726;
    --red: #e8352e;
    --red-hover: #c9241e;
    --text: #f5efe2;
    --text-dim: #b8ab94;
    --card: rgba(255, 204, 51, 0.07);
    --line: rgba(255, 204, 51, 0.18);
  }
  * { margin: 0; padding: 0; box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    background: var(--bg-dark);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
  }
  a { color: inherit; text-decoration: none; }
  img { display: block; max-width: 100%; }
  ul { list-style: none; }

  /* ---------- 顶部导航 ---------- */
  .site-header {
    position: sticky;
    top: 0;
    z-index: 90;
    background: rgba(22, 18, 12, 0.94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
  }
  .header-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }
  .brand { display: flex; align-items: center; gap: 10px; }
  .brand img { height: 34px; width: auto; border-radius: 8px; }
  .brand-name {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: 1px;
    background: linear-gradient(90deg, #ffe27a, #ffa726);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
  }
  .nav-wrap { flex: 1; display: flex; justify-content: flex-end; }
  .nav-list {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
  }
  .nav-list a {
    display: block;
    padding: 6px 11px;
    font-size: 14px;
    color: var(--text-dim);
    border-radius: 999px;
    transition: color .2s, background .2s;
    white-space: nowrap;
  }
  .nav-list a:hover { color: var(--yellow); background: rgba(255, 204, 51, 0.1); }
  .nav-toggle {
    display: none;
    background: var(--card);
    border: 1px solid var(--line);
    color: var(--yellow);
    border-radius: 8px;
    padding: 7px 12px;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
  }

  /* ---------- 首屏 ---------- */
  .hero {
    position: relative;
    overflow: hidden;
    background:
      radial-gradient(circle at 12% 8%, rgba(255, 167, 38, 0.22), transparent 46%),
      radial-gradient(circle at 88% 92%, rgba(232, 53, 46, 0.16), transparent 52%),
      linear-gradient(160deg, #1d1710 0%, #16120c 60%, #120f0a 100%);
    padding: 52px 0 64px;
  }
  .hero-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 2;
  }
  .hero-eyebrow {
    display: inline-block;
    font-size: 13px;
    letter-spacing: 2px;
    color: var(--yellow);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 4px 14px;
    margin-bottom: 20px;
    background: rgba(255, 204, 51, 0.06);
  }
  .hero h1 {
    font-size: 44px;
    line-height: 1.24;
    font-weight: 900;
    letter-spacing: 1px;
    margin-bottom: 18px;
  }
  .hero h1 span {
    background: linear-gradient(90deg, #ffe27a, #ffa726 70%, #ff7a3d);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  .hero-desc {
    font-size: 16px;
    color: var(--text-dim);
    max-width: 520px;
    margin-bottom: 26px;
  }
  .hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
  }
  .hero-tags li {
    font-size: 13px;
    color: #ffdc8a;
    background: rgba(255, 204, 51, 0.1);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 5px 12px;
  }
  .btn-download {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(180deg, #f24a42, var(--red));
    color: #fff;
    font-size: 17px;
    font-weight: 800;
    padding: 15px 34px;
    border-radius: 10px;
    box-shadow: 0 10px 26px rgba(232, 53, 46, 0.38);
    transition: transform .18s, box-shadow .18s, background .18s;
  }
  .btn-download:hover {
    background: linear-gradient(180deg, #ff5f56, var(--red-hover));
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(232, 53, 46, 0.5);
  }
  .btn-download .arrow { font-size: 15px; }
  .hero-note {
    font-size: 13px;
    color: #8d8069;
    margin-top: 14px;
  }

  /* ---------- 轮播 ---------- */
  .carousel {
    position: relative;
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
    background: #0f0c08;
  }
  .carousel-track { position: relative; aspect-ratio: 3 / 4.1; }
  .carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .6s ease;
  }
  .carousel-slide.active { opacity: 1; }
  .carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
  .carousel-caption {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 26px 16px 14px;
    font-size: 14px;
    font-weight: 700;
    color: #ffe9b0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.82));
  }
  .carousel-dots {
    position: absolute;
    top: 12px; right: 12px;
    display: flex;
    gap: 6px;
  }
  .carousel-dots button {
    width: 8px; height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    padding: 0;
  }
  .carousel-dots button.active { background: var(--yellow); width: 18px; border-radius: 4px; }

  /* ---------- 芒果下落装饰 ---------- */
  .mango-fall { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 1; }
  .mango-fall i {
    position: absolute;
    top: -40px;
    font-style: normal;
    font-size: 22px;
    opacity: .28;
    animation: fall linear infinite;
  }
  @keyframes fall {
    0%   { transform: translateY(-40px) rotate(0deg); }
    100% { transform: translateY(110vh) rotate(220deg); }
  }

  /* ---------- 滚动横幅 ---------- */
  .marquee {
    background: linear-gradient(90deg, var(--yellow-deep), var(--yellow), var(--yellow-deep));
    color: #241a05;
    overflow: hidden;
    padding: 11px 0;
    font-weight: 700;
    font-size: 14px;
  }
  .marquee-track {
    display: flex;
    width: max-content;
    gap: 42px;
    animation: scroll-x 30s linear infinite;
    white-space: nowrap;
  }
  @keyframes scroll-x {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
  }
  .marquee-track span { display: inline-flex; align-items: center; gap: 8px; }

  /* ---------- 通用区块 ---------- */
  .section {
    max-width: 1240px;
    margin: 0 auto;
    padding: 64px 20px;
  }
  .section-head { margin-bottom: 30px; }
  .section-head .tag {
    font-size: 13px;
    color: var(--yellow);
    letter-spacing: 2px;
    display: block;
    margin-bottom: 6px;
  }
  .section-head h2 {
    font-size: 29px;
    font-weight: 900;
    letter-spacing: .5px;
  }
  .section-head h2 em {
    font-style: normal;
    color: var(--yellow);
  }
  .section-head p {
    color: var(--text-dim);
    font-size: 15px;
    margin-top: 8px;
    max-width: 700px;
  }

  /* ---------- 卡片网格 ---------- */
  .grid-6 {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
  }
  .drama-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #1f1911;
    border: 1px solid rgba(255, 204, 51, 0.12);
    transition: transform .22s, border-color .22s, box-shadow .22s;
    cursor: pointer;
  }
  .drama-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 204, 51, 0.5);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
  }
  .drama-thumb {
    position: relative;
    aspect-ratio: 3 / 4.1;
    overflow: hidden;
    background: #211a10;
  }
  .drama-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .4s;
  }
  .drama-card:hover .drama-thumb img { transform: scale(1.06); }
  .play-btn {
    position: absolute;
    left: 50%; top: 50%;
    width: 44px; height: 44px;
    margin: -22px 0 0 -22px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.28);
    border: 1.5px solid rgba(255, 255, 255, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, transform .2s;
  }
  .play-btn::after {
    content: "";
    width: 0; height: 0;
    border-left: 12px solid #fff;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    margin-left: 3px;
  }
  .drama-card:hover .play-btn { background: rgba(232, 53, 46, 0.85); transform: scale(1.08); }
  .drama-info { padding: 10px 12px 13px; }
  .drama-info h3 {
    font-size: 14px;
    font-weight: 700;
    color: #ffe6ab;
    line-height: 1.4;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .drama-info p {
    font-size: 12px;
    color: #9c8f78;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .badge-ep {
    position: absolute;
    top: 8px; left: 8px;
    font-size: 11px;
    background: rgba(0, 0, 0, 0.62);
    color: #ffd97a;
    border-radius: 4px;
    padding: 1px 7px;
  }

  /* ---------- 剧库介绍条 ---------- */
  .library-intro {
    background: linear-gradient(120deg, rgba(255, 167, 38, 0.12), rgba(255, 204, 51, 0.04));
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 20px 24px;
    margin-bottom: 26px;
    font-size: 15px;
    color: #e6d8ba;
  }
  .library-intro strong { color: var(--yellow); }

  /* ---------- 排行榜 ---------- */
  .rank-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .rank-item {
    display: flex;
    gap: 14px;
    align-items: center;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px;
    cursor: pointer;
    transition: border-color .2s, transform .2s;
  }
  .rank-item:hover { border-color: rgba(255, 204, 51, 0.55); transform: translateY(-3px); }
  .rank-no {
    flex: 0 0 30px;
    text-align: center;
    font-size: 20px;
    font-weight: 900;
    color: var(--yellow-deep);
    font-style: italic;
  }
  .rank-item:nth-child(1) .rank-no { color: #ff5252; }
  .rank-item:nth-child(2) .rank-no { color: #ff9f43; }
  .rank-item:nth-child(3) .rank-no { color: #ffd93d; }
  .rank-thumb {
    position: relative;
    flex: 0 0 56px;
    width: 56px;
    aspect-ratio: 3 / 4;
    border-radius: 6px;
    overflow: hidden;
  }
  .rank-thumb img { width: 100%; height: 100%; object-fit: cover; }
  .rank-meta { min-width: 0; flex: 1; }
  .rank-meta h3 {
    font-size: 14px;
    font-weight: 700;
    color: #ffe6ab;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
  }
  .rank-nums { font-size: 12px; color: #9c8f78; display: flex; flex-wrap: wrap; gap: 10px; }
  .rank-nums b { color: #ff8a65; font-weight: 700; }

  /* ---------- 关于 ---------- */
  .about-layout {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 40px;
    align-items: center;
  }
  .about-text p { color: var(--text-dim); font-size: 15px; margin-bottom: 14px; }
  .about-text p strong { color: #ffe6ab; }
  .about-imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .about-imgs figure {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #1b150d;
  }
  .about-imgs img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
  .about-imgs figure:first-child { grid-row: span 1; transform: translateY(-16px); }

  /* ---------- FAQ ---------- */
  .faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 22px; }
  .faq-item {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 16px 18px;
    transition: border-color .2s, background .2s;
  }
  .faq-item:hover { border-color: rgba(255, 204, 51, 0.45); background: rgba(255, 204, 51, 0.1); }
  .faq-item h3 {
    font-size: 15px;
    font-weight: 700;
    color: #ffe6ab;
    margin-bottom: 7px;
    display: flex;
    gap: 8px;
  }
  .faq-item h3::before { content: "Q"; color: var(--yellow-deep); font-weight: 900; }
  .faq-item p { font-size: 13.5px; color: var(--text-dim); }
  .faq-item p::before { content: "解决："; color: var(--yellow); }

  /* ---------- 网友热议 ---------- */
  .discuss-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 34px; align-items: start; }
  .accordion-item {
    border: 1px solid var(--line);
    border-radius: 10px;
    margin-bottom: 12px;
    overflow: hidden;
    background: rgba(255, 204, 51, 0.04);
  }
  .accordion-head {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    color: #ffe6ab;
    font-size: 14.5px;
    font-weight: 700;
    padding: 14px 16px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-family: inherit;
  }
  .accordion-head span:last-child { color: var(--yellow); transition: transform .25s; }
  .accordion-item.open .accordion-head span:last-child { transform: rotate(45deg); }
  .accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }
  .accordion-body p {
    padding: 0 16px 16px;
    font-size: 13.5px;
    color: var(--text-dim);
  }

  .comment-box {
    background: linear-gradient(150deg, rgba(255, 167, 38, 0.1), rgba(22, 18, 12, 0.6));
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 22px;
  }
  .comment-box h3 { font-size: 17px; margin-bottom: 6px; color: #ffe6ab; }
  .comment-box .hint { font-size: 12.5px; color: #8d8069; margin-bottom: 14px; }
  .comment-box textarea {
    width: 100%;
    min-height: 96px;
    resize: vertical;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 204, 51, 0.24);
    border-radius: 8px;
    color: var(--text);
    padding: 11px 13px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
  }
  .comment-box textarea:focus { border-color: var(--yellow); }
  .comment-box button {
    margin-top: 12px;
    width: 100%;
    background: linear-gradient(180deg, #f24a42, var(--red));
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 800;
    padding: 12px;
    cursor: pointer;
    font-family: inherit;
    transition: background .2s;
  }
  .comment-box button:hover { background: linear-gradient(180deg, #ff5f56, var(--red-hover)); }

  /* ---------- 下载 CTA ---------- */
  .cta-band {
    text-align: center;
    padding: 72px 20px;
    background:
      radial-gradient(circle at 50% 0%, rgba(255, 167, 38, 0.25), transparent 62%),
      linear-gradient(180deg, #1d1710, #120f0a);
    border-top: 1px solid var(--line);
  }
  .cta-band h2 { font-size: 30px; font-weight: 900; margin-bottom: 12px; }
  .cta-band h2 em { font-style: normal; color: var(--yellow); }
  .cta-band p { color: var(--text-dim); margin-bottom: 26px; font-size: 15px; }

  /* ---------- 页脚 ---------- */
  .site-footer {
    border-top: 1px solid rgba(255, 204, 51, 0.12);
    background: #0f0c08;
    padding: 26px 20px 30px;
    text-align: center;
    font-size: 12.5px;
    color: #7a6f5c;
  }
  .site-footer p { margin-bottom: 6px; }
  .site-footer a { color: #9b8d73; }
  .site-footer a:hover { color: var(--yellow); }

  /* ---------- 弹窗 ---------- */
  .modal-mask {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 200;
    padding: 20px;
  }
  .modal-mask.show { display: flex; }
  .modal-box {
    background: linear-gradient(160deg, #241c11, #17120b);
    border: 1px solid rgba(255, 204, 51, 0.35);
    border-radius: 16px;
    max-width: 380px;
    width: 100%;
    padding: 30px 26px;
    text-align: center;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  }
  .modal-box h3 { font-size: 20px; color: #ffe6ab; margin-bottom: 10px; }
  .modal-box p { font-size: 14px; color: var(--text-dim); margin-bottom: 22px; }
  .modal-box .modal-btn {
    display: block;
    background: linear-gradient(180deg, #f24a42, var(--red));
    color: #fff;
    border-radius: 8px;
    padding: 12px;
    font-weight: 800;
    font-size: 15px;
  }
  .modal-close {
    position: absolute;
    top: 14px; right: 18px;
    background: none;
    border: none;
    color: #c9bda6;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
  }

  /* ---------- 响应式 ---------- */
  @media (max-width: 1023px) {
    .hero-inner { grid-template-columns: 1fr; gap: 36px; }
    .carousel { max-width: 300px; }
    .hero h1 { font-size: 36px; }
    .grid-6 { grid-template-columns: repeat(3, 1fr); }
    .rank-grid { grid-template-columns: repeat(2, 1fr); }
    .about-layout { grid-template-columns: 1fr; }
    .about-imgs figure:first-child { transform: none; }
    .discuss-layout { grid-template-columns: 1fr; }
    .faq-grid { grid-template-columns: 1fr; }
  }
  @media (max-width: 767px) {
    .header-inner { height: auto; padding: 10px 16px; flex-wrap: wrap; }
    .nav-toggle { display: inline-block; }
    .nav-wrap { flex-basis: 100%; width: 100%; justify-content: flex-start; display: none; }
    .nav-wrap.open { display: block; }
    .nav-list { flex-direction: column; align-items: stretch; gap: 2px; padding: 8px 0 12px; }
    .nav-list a { padding: 10px 12px; border-radius: 8px; font-size: 15px; }
    .hero { padding: 34px 0 46px; }
    .hero h1 { font-size: 28px; }
    .hero-desc { font-size: 14.5px; }
    .btn-download { width: 100%; justify-content: center; padding: 14px 20px; font-size: 16px; }
    .section { padding: 44px 16px; }
    .section-head h2 { font-size: 23px; }
    .grid-6 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .rank-grid { grid-template-columns: 1fr; }
    .carousel { max-width: 270px; }
    .about-imgs { gap: 10px; }
    .cta-band { padding: 52px 16px; }
    .cta-band h2 { font-size: 23px; }
    .marquee-track { gap: 26px; font-size: 13px; }
  }