:root {
    --bg: #14100c;
    --panel: #1f1913;
    --panel-2: #2a2118;
    --line: #3a2f22;
    --yellow: #ffcc33;
    --yellow-soft: #f5d77a;
    --red: #e8342a;
    --red-dark: #b81f18;
    --white: #f7f3ea;
    --muted: #b7ac9b;
    --radius: 14px;
  }

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

  html { scroll-behavior: smooth; }

  body {
    background: var(--bg);
    color: var(--white);
    font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
  }

  /* 香蕉皮飘落装饰层 */
  .peel-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
  }
  .peel {
    position: absolute;
    top: -80px;
    width: 26px;
    height: 44px;
    background: linear-gradient(160deg, #ffe27a, #ffc21a 55%, #d99a0a);
    border-radius: 60% 40% 55% 45% / 70% 55% 45% 30%;
    opacity: 0.28;
    filter: blur(0.3px);
    animation: peelFall linear infinite;
  }
  .peel::after {
    content: "";
    position: absolute;
    top: 6px;
    left: 12px;
    width: 3px;
    height: 26px;
    background: rgba(120, 80, 0, 0.35);
    border-radius: 3px;
  }
  .peel.p1 { left: 6%;  animation-duration: 13s; animation-delay: 0s;    transform: rotate(12deg); }
  .peel.p2 { left: 18%; animation-duration: 17s; animation-delay: 3s;    transform: rotate(-20deg); width: 20px; height: 34px; }
  .peel.p3 { left: 31%; animation-duration: 11s; animation-delay: 6s;    transform: rotate(35deg); }
  .peel.p4 { left: 44%; animation-duration: 19s; animation-delay: 1.5s;  transform: rotate(-8deg); width: 30px; height: 50px; opacity: 0.2; }
  .peel.p5 { left: 57%; animation-duration: 15s; animation-delay: 8s;    transform: rotate(28deg); }
  .peel.p6 { left: 69%; animation-duration: 12s; animation-delay: 4s;    transform: rotate(-32deg); width: 22px; height: 38px; }
  .peel.p7 { left: 81%; animation-duration: 18s; animation-delay: 9s;    transform: rotate(16deg); }
  .peel.p8 { left: 92%; animation-duration: 14s; animation-delay: 2s;    transform: rotate(-14deg); width: 28px; height: 46px; opacity: 0.22; }

  @keyframes peelFall {
    0%   { top: -80px; transform: rotate(0deg) translateX(0); }
    50%  { transform: rotate(180deg) translateX(30px); }
    100% { top: 105vh; transform: rotate(360deg) translateX(-20px); }
  }

  /* 布局 */
  .page {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
  }

  a { color: var(--yellow); text-decoration: none; }

  img { display: block; max-width: 100%; }

  /* 侧边导航 + 顶部导航 */
  .side-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 210px;
    height: 100vh;
    background: rgba(22, 17, 12, 0.97);
    border-right: 1px solid var(--line);
    z-index: 30;
    overflow-y: auto;
    padding: 20px 14px 30px;
    transition: transform 0.3s ease;
  }
  .side-nav .nav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 6px 16px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 12px;
    color: var(--yellow);
    font-weight: 700;
    font-size: 15px;
  }
  .side-nav .nav-brand img { height: 32px; width: auto; border-radius: 6px; }
  .side-nav ul { list-style: none; }
  .side-nav li a {
    display: block;
    color: var(--muted);
    font-size: 14px;
    padding: 9px 10px;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
  }
  .side-nav li a:hover { background: var(--panel-2); color: var(--yellow); }

  .nav-toggle {
    position: fixed;
    top: 14px;
    left: 226px;
    z-index: 40;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--panel-2);
    color: var(--yellow);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: left 0.3s ease, background 0.2s;
  }
  .nav-toggle:hover { background: #3a2f22; }

  .nav-collapsed .side-nav { transform: translateX(-100%); }
  .nav-collapsed .nav-toggle { left: 14px; }

  .content {
    margin-left: 226px;
    padding: 20px 0 0;
  }
  .nav-collapsed .content { margin-left: 0; }

  /* Hero */
  .hero {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: var(--panel);
    border: 1px solid var(--line);
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 26px;
    padding: 40px 34px;
    margin-bottom: 34px;
    align-items: center;
  }
  .hero::before {
    content: "";
    position: absolute;
    top: -120px;
    right: -80px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(255, 204, 51, 0.18), transparent 68%);
    pointer-events: none;
  }
  .hero h1 {
    font-size: 34px;
    line-height: 1.35;
    color: var(--yellow);
    margin-bottom: 14px;
    letter-spacing: 1px;
  }
  .hero .lead {
    color: var(--muted);
    font-size: 15px;
    margin-bottom: 8px;
    max-width: 520px;
  }
  .hero .lead strong { color: var(--white); font-weight: 600; }

  .download-btn {
    display: inline-block;
    background: var(--red);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    padding: 14px 34px;
    border-radius: 999px;
    margin-top: 20px;
    box-shadow: 0 8px 22px rgba(232, 52, 42, 0.4);
    transition: transform 0.18s ease, background 0.18s;
  }
  .download-btn:hover { background: var(--red-dark); transform: translateY(-2px); }
  .hero .hint { font-size: 12px; color: #8f8374; margin-top: 10px; }

  /* 扑克牌轮播 */
  .hero-carousel {
    position: relative;
    height: 320px;
    perspective: 1000px;
  }
  .poker-track {
    position: relative;
    width: 100%;
    height: 100%;
  }
  .poker-card {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150px;
    height: 250px;
    margin: -125px 0 0 -75px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid rgba(255, 204, 51, 0.35);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.55);
    transition: transform 0.5s ease, opacity 0.5s ease;
    background: #000;
  }
  .poker-card img { width: 100%; height: 100%; object-fit: cover; }
  .poker-card .card-tag {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 18px 8px 6px;
    font-size: 12px;
    color: #fff;
    text-align: center;
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
  }
  .poker-card.pos0 { transform: translateX(0) scale(1) rotateY(0deg); z-index: 10; opacity: 1; }
  .poker-card.pos1 { transform: translateX(105px) scale(0.86) rotateY(-16deg); z-index: 8; opacity: 0.82; }
  .poker-card.pos2 { transform: translateX(185px) scale(0.72) rotateY(-26deg); z-index: 6; opacity: 0.6; }
  .poker-card.pos3 { transform: translateX(-105px) scale(0.86) rotateY(16deg); z-index: 8; opacity: 0.82; }
  .poker-card.pos4 { transform: translateX(-185px) scale(0.72) rotateY(26deg); z-index: 6; opacity: 0.6; }

  .carousel-controls {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 14px;
  }
  .carousel-controls button {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--panel-2);
    color: var(--yellow);
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s;
  }
  .carousel-controls button:hover { background: #3a2f22; }

  /* 通用区块 */
  section {
    border-radius: 18px;
    background: var(--panel);
    border: 1px solid var(--line);
    padding: 34px 30px;
    margin-bottom: 34px;
  }
  .sec-head { margin-bottom: 22px; }
  .sec-head h2 {
    font-size: 24px;
    color: var(--yellow);
    letter-spacing: 0.5px;
    display: inline-block;
    border-bottom: 2px solid var(--red);
    padding-bottom: 6px;
  }
  .sec-head p { color: var(--muted); font-size: 14px; margin-top: 10px; }

  /* 剧库 6 图 */
  .grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .drama-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #000;
    cursor: pointer;
  }
  .drama-card img { width: 100%; height: 260px; object-fit: cover; transition: transform 0.35s ease; }
  .drama-card:hover img { transform: scale(1.05); }
  .drama-card .card-caption {
    padding: 12px 12px 14px;
    background: var(--panel-2);
    font-size: 14px;
    color: var(--white);
  }
  .drama-card .card-caption em { color: var(--yellow); font-style: normal; font-size: 12px; display: block; margin-top: 3px; }

  .play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 54px;
    height: 54px;
    margin: -27px 0 0 -27px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.9);
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: background 0.2s, transform 0.2s;
  }
  .play-overlay::after {
    content: "";
    display: block;
    margin-left: 4px;
    border-style: solid;
    border-width: 10px 0 10px 16px;
    border-color: transparent transparent transparent #fff;
  }
  .drama-card:hover .play-overlay { background: rgba(232, 52, 42, 0.7); transform: scale(1.08); }

  /* 亮点 */
  .highlight-wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 26px; align-items: start; }
  .highlight-text h3 { color: var(--yellow-soft); font-size: 18px; margin-bottom: 12px; }
  .highlight-text p { font-size: 15px; color: #d9d0c2; margin-bottom: 14px; }
  .highlight-text p strong { color: var(--yellow); }
  .highlight-side {
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
  }
  .highlight-side img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .highlight-side .play-overlay { position: absolute; top: 50%; left: 50%; margin: -27px 0 0 -27px; }

  /* 热播 6 图 */
  .hot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .hot-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #000;
    cursor: pointer;
  }
  .hot-card img { width: 100%; height: 300px; object-fit: cover; transition: opacity 0.3s; }
  .hot-card:hover img { opacity: 0.82; }
  .hot-card .hot-reason {
    padding: 12px 14px;
    background: var(--panel-2);
    font-size: 13px;
    color: #e6ddcf;
  }

  /* 排行榜 */
  .rank-list { display: flex; flex-direction: column; gap: 14px; }
  .rank-item {
    display: grid;
    grid-template-columns: 52px 90px 1fr auto;
    gap: 16px;
    align-items: center;
    background: var(--panel-2);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px 16px;
    cursor: pointer;
  }
  .rank-no {
    font-size: 24px;
    font-weight: 800;
    color: var(--yellow);
    text-align: center;
    font-style: italic;
  }
  .rank-item:nth-child(1) .rank-no { color: #ff4b3e; }
  .rank-item:nth-child(2) .rank-no { color: #ffa53e; }
  .rank-item:nth-child(3) .rank-no { color: #ffe14b; }
  .rank-item img { width: 90px; height: 56px; object-fit: cover; border-radius: 8px; }
  .rank-name { font-size: 15px; color: var(--white); }
  .rank-name small { display: block; font-size: 12px; color: var(--muted); }
  .rank-data { text-align: right; font-size: 12px; color: var(--muted); }
  .rank-data b { display: block; color: var(--yellow); font-size: 14px; }

  /* 弹幕互动 */
  .danmu-stage {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #000;
    cursor: pointer;
  }
  .danmu-stage img { width: 100%; height: 380px; object-fit: cover; opacity: 0.85; }
  .danmu-layer {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
  }
  .danmu {
    position: absolute;
    white-space: nowrap;
    color: #fff;
    font-size: 15px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.85);
    animation: danmuMove linear infinite;
  }
  .danmu:nth-child(1) { top: 12%; animation-duration: 9s;  animation-delay: 0s; }
  .danmu:nth-child(2) { top: 25%; animation-duration: 11s; animation-delay: 1.5s; color: #ffe14b; }
  .danmu:nth-child(3) { top: 38%; animation-duration: 8s;  animation-delay: 3s; }
  .danmu:nth-child(4) { top: 52%; animation-duration: 12s; animation-delay: 0.8s; color: #ffb3a7; }
  .danmu:nth-child(5) { top: 64%; animation-duration: 10s; animation-delay: 4.2s; }
  .danmu:nth-child(6) { top: 76%; animation-duration: 9.5s; animation-delay: 2.4s; color: #ffe14b; }

  @keyframes danmuMove {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
  }

  .danmu-hint { font-size: 13px; color: var(--muted); margin-top: 12px; text-align: center; }

  /* 历史 */
  .history-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
  .history-text h3 { color: var(--yellow-soft); font-size: 17px; margin-bottom: 10px; }
  .history-text p { font-size: 14.5px; color: #d6cdbe; margin-bottom: 12px; }
  .history-side { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .history-side .mini {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--line);
    position: relative;
    cursor: pointer;
  }
  .history-side .mini img { width: 100%; height: 170px; object-fit: cover; }
  .history-side .mini .play-overlay { width: 40px; height: 40px; margin: -20px 0 0 -20px; }
  .history-side .mini .play-overlay::after { border-width: 7px 0 7px 12px; }

  /* FAQ */
  .faq-list { display: flex; flex-direction: column; gap: 10px; }
  details {
    background: var(--panel-2);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0 16px;
    overflow: hidden;
  }
  details summary {
    list-style: none;
    cursor: pointer;
    padding: 15px 0;
    font-size: 15px;
    color: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
  }
  details summary::-webkit-details-marker { display: none; }
  details summary::after {
    content: "＋";
    color: var(--yellow);
    font-size: 17px;
    flex-shrink: 0;
    transition: transform 0.2s;
  }
  details[open] summary::after { content: "－"; }
  details p { padding: 2px 0 16px; font-size: 14px; color: var(--muted); }

  /* 网友热议 */
  .comment-area { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
  .comment-list { display: flex; flex-direction: column; gap: 14px; }
  .comment-item { display: flex; gap: 12px; align-items: flex-start; }
  .comment-item img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); flex-shrink: 0; }
  .comment-item .c-body { background: var(--panel-2); border-radius: 10px; padding: 10px 14px; font-size: 13.5px; color: #e2dacd; }
  .comment-item .c-body strong { color: var(--yellow); font-size: 13px; display: block; margin-bottom: 3px; }

  .comment-form h3 { color: var(--yellow-soft); font-size: 16px; margin-bottom: 12px; }
  .comment-form input, .comment-form textarea {
    width: 100%;
    background: #15110d;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--white);
    font-size: 14px;
    padding: 11px 12px;
    margin-bottom: 12px;
    font-family: inherit;
    resize: vertical;
  }
  .comment-form textarea { min-height: 110px; }
  .comment-form input:focus, .comment-form textarea:focus { outline: 1px solid var(--yellow); }
  .submit-btn {
    background: var(--yellow);
    color: #1a1206;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    padding: 11px 30px;
    cursor: pointer;
    transition: background 0.2s;
  }
  .submit-btn:hover { background: #ffdf6e; }

  /* 滚动横幅 */
  .ticker-band {
    overflow: hidden;
    background: linear-gradient(90deg, var(--yellow) 0%, #ffb31a 50%, var(--yellow) 100%);
    border-radius: 10px;
    padding: 11px 0;
    margin-bottom: 34px;
  }
  .ticker-track {
    display: flex;
    width: max-content;
    animation: tickerScroll 26s linear infinite;
  }
  .ticker-track span {
    font-size: 14px;
    font-weight: 700;
    color: #2a1d05;
    padding: 0 34px;
    white-space: nowrap;
    position: relative;
  }
  .ticker-track span::after {
    content: "★";
    position: absolute;
    right: -8px;
    color: rgba(0,0,0,0.35);
    font-size: 10px;
    top: 4px;
  }
  @keyframes tickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
  }

  /* 更多剧照墙 */
  .wall { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
  .wall-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--line);
    cursor: pointer;
    background: #000;
  }
  .wall-item img { width: 100%; height: 150px; object-fit: cover; transition: transform 0.3s; }
  .wall-item:hover img { transform: scale(1.07); }
  .wall-item .play-overlay { width: 34px; height: 34px; margin: -17px 0 0 -17px; }
  .wall-item .play-overlay::after { border-width: 6px 0 6px 10px; }

  /* 弹窗 */
  .modal-mask {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.74);
    z-index: 90;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
  }
  .modal-mask.show { display: flex; }
  .modal-box {
    background: var(--panel);
    border: 1px solid var(--yellow);
    border-radius: 16px;
    padding: 30px 26px;
    max-width: 360px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
  }
  .modal-box h3 { color: var(--yellow); font-size: 19px; margin-bottom: 12px; }
  .modal-box p { font-size: 14px; color: var(--muted); margin-bottom: 20px; }
  .modal-box .modal-actions { display: flex; flex-direction: column; gap: 10px; }
  .modal-box .modal-actions .download-btn { margin-top: 0; font-size: 16px; padding: 12px 20px; }
  .modal-close {
    background: transparent;
    border: 1px solid var(--line);
    color: var(--muted);
    border-radius: 999px;
    padding: 9px 20px;
    font-size: 14px;
    cursor: pointer;
  }
  .modal-close:hover { color: var(--white); border-color: var(--yellow); }

  footer {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 30px 16px 40px;
    font-size: 12px;
    color: #7d7364;
    border-top: 1px solid var(--line);
    margin-left: 226px;
    transition: margin-left 0.3s ease;
  }
  .nav-collapsed footer { margin-left: 0; }
  footer p { margin-bottom: 6px; }
  footer a { color: #9c9284; }
  footer a:hover { color: var(--yellow); }
  footer time { color: #6e6558; }

  /* 响应式 */
  @media (max-width: 1023px) {
    .page { padding: 0 14px; }
    .side-nav {
      width: 100%;
      height: auto;
      max-height: 72vh;
      border-right: none;
      border-bottom: 1px solid var(--line);
      border-radius: 0 0 16px 16px;
      transform: translateY(-100%);
    }
    .nav-collapsed .side-nav { transform: translateY(-100%); }
    body:not(.nav-collapsed) .side-nav { transform: translateY(0); }
    .nav-toggle { left: auto; right: 14px; top: 12px; }
    .nav-collapsed .nav-toggle { left: auto; right: 14px; }
    .content { margin-left: 0; padding-top: 64px; }
    .hero { grid-template-columns: 1fr; padding: 28px 22px; }
    .hero h1 { font-size: 27px; }
    .hero-carousel { height: 280px; }
    .poker-card { width: 126px; height: 210px; margin: -105px 0 0 -63px; }
    .poker-card.pos1 { transform: translateX(88px) scale(0.85) rotateY(-14deg); }
    .poker-card.pos2 { transform: translateX(150px) scale(0.7) rotateY(-24deg); }
    .poker-card.pos3 { transform: translateX(-88px) scale(0.85) rotateY(14deg); }
    .poker-card.pos4 { transform: translateX(-150px) scale(0.7) rotateY(24deg); }
    .grid-3, .hot-grid { grid-template-columns: repeat(2, 1fr); }
    .highlight-wrap, .history-grid, .comment-area { grid-template-columns: 1fr; }
    .wall { grid-template-columns: repeat(4, 1fr); }
    .rank-item { grid-template-columns: 40px 70px 1fr; }
    .rank-data { display: none; }
    .danmu-stage img { height: 280px; }
    section { padding: 26px 18px; }
    footer { margin-left: 0; }
  }

  @media (max-width: 767px) {
    .hero h1 { font-size: 23px; }
    .hero { padding: 24px 16px; }
    .hero-carousel { height: 240px; }
    .poker-card { width: 110px; height: 184px; margin: -92px 0 0 -55px; }
    .poker-card.pos1 { transform: translateX(70px) scale(0.84) rotateY(-12deg); }
    .poker-card.pos2 { transform: translateX(120px) scale(0.66) rotateY(-22deg); }
    .poker-card.pos3 { transform: translateX(-70px) scale(0.84) rotateY(12deg); }
    .poker-card.pos4 { transform: translateX(-120px) scale(0.66) rotateY(22deg); }
    .sec-head h2 { font-size: 20px; }
    .grid-3, .hot-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .drama-card img { height: 200px; }
    .hot-card img { height: 210px; }
    .drama-card .card-caption, .hot-card .hot-reason { font-size: 12.5px; padding: 9px 10px; }
    .rank-item { grid-template-columns: 34px 64px 1fr; gap: 10px; padding: 8px 10px; }
    .rank-item img { width: 64px; height: 44px; }
    .rank-no { font-size: 19px; }
    .wall { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .wall-item img { height: 110px; }
    .danmu { font-size: 13px; }
    .history-side .mini img { height: 130px; }
    .ticker-track span { font-size: 13px; padding: 0 18px; }
  }