:root {
    --bg: #121218;
    --bg-soft: #1a1a22;
    --card: #22222c;
    --card-hover: #2b2b38;
    --text: #f4f4f8;
    --text-soft: #a9a9bb;
    --text-mute: #75758a;
    --accent: #ffb92e;
    --accent-soft: rgba(255, 185, 46, 0.14);
    --live: #ff4d5e;
    --line: #30303d;
    --radius: 12px;
    --nav-w: 92px;
  }
  * { margin: 0; padding: 0; box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
  }
  img { display: block; max-width: 100%; }
  a { color: inherit; text-decoration: none; }
  ul { list-style: none; }

  .layout { display: flex; min-height: 100vh; }

  /* ============ 左侧竖导航 ============ */
  .side-nav {
    width: var(--nav-w);
    flex: 0 0 var(--nav-w);
    position: fixed;
    top: 0; left: 0; bottom: 0;
    background: #0d0d13;
    border-right: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 18px 0 20px;
    z-index: 50;
  }
  .brand-mark {
    width: 44px; height: 44px;
    border-radius: 10px;
    background: linear-gradient(145deg, var(--accent), #ff8a2b);
    color: #241500;
    font-weight: 800;
    font-size: 17px;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 26px;
    line-height: 1;
  }
  .nav-list { display: flex; flex-direction: column; gap: 6px; width: 100%; padding: 0 8px; }
  .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 4px;
    border-radius: 10px;
    color: var(--text-mute);
    font-size: 12px;
    transition: background .2s, color .2s;
  }
  .nav-item:hover { color: var(--text); background: #1c1c26; }
  .nav-item.is-active { color: var(--accent); background: var(--accent-soft); }
  .nav-item .ico { font-size: 17px; line-height: 1; }

  /* ============ 主内容区 ============ */
  .main { flex: 1; margin-left: var(--nav-w); min-width: 0; padding: 0 28px 40px; max-width: 1440px; }

  /* 顶栏 */
  .top-bar {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 20px 0 18px;
    position: sticky;
    top: 0;
    background: rgba(18,18,24,0.94);
    backdrop-filter: blur(8px);
    z-index: 40;
    border-bottom: 1px solid var(--line);
    flex-wrap: wrap;
  }
  .brand-title { display: flex; align-items: center; gap: 10px; }
  .brand-title img { height: 34px; width: auto; border-radius: 8px; }
  .brand-title h1 { font-size: 21px; font-weight: 800; letter-spacing: .5px; white-space: nowrap; }
  .brand-title .sub { font-size: 12px; color: var(--text-mute); letter-spacing: .5px; }
  .search-wrap { flex: 1; min-width: 220px; display: flex; gap: 8px; }
  .search-wrap input {
    flex: 1;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 9px 16px;
    color: var(--text);
    font-size: 14px;
    outline: none;
    font-family: inherit;
  }
  .search-wrap input::placeholder { color: var(--text-mute); }
  .search-wrap input:focus { border-color: var(--accent); }
  .search-wrap button {
    background: var(--accent);
    color: #241500;
    border: none;
    border-radius: 999px;
    padding: 0 20px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
  }
  .download-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--accent), #ff8a2b);
    color: #241500;
    font-weight: 800;
    font-size: 14px;
    padding: 9px 18px;
    border-radius: 999px;
    white-space: nowrap;
    transition: transform .2s, box-shadow .2s;
  }
  .download-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(255,185,46,.3); }

  /* 通用板块 */
  .block { margin-top: 40px; }
  .block-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
  }
  .block-head h2 { font-size: 20px; font-weight: 800; letter-spacing: .5px; }
  .block-head .more { font-size: 13px; color: var(--text-mute); white-space: nowrap; }
  .block-head .more:hover { color: var(--accent); }
  .block-desc { font-size: 13px; color: var(--text-mute); margin-top: -8px; margin-bottom: 14px; }

  /* ============ 首屏一大六小 ============ */
  .hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 14px;
  }
  .hero-main {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--card);
  }
  .hero-main img { width: 100%; height: 100%; object-fit: cover; }
  .hero-main .hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(8,8,12,.92) 0%, rgba(8,8,12,.35) 45%, rgba(8,8,12,0) 70%);
  }
  .badge-hot {
    position: absolute; top: 14px; left: 14px;
    background: var(--accent); color: #241500;
    font-size: 12px; font-weight: 800;
    padding: 3px 10px; border-radius: 6px;
  }
  .hero-info {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 20px 22px;
  }
  .hero-info .hero-title { font-size: 23px; font-weight: 800; line-height: 1.3; text-shadow: 0 2px 10px rgba(0,0,0,.6); }
  .hero-meta { display: flex; align-items: center; gap: 14px; margin: 10px 0 14px; font-size: 13px; color: #d8d8e2; flex-wrap: wrap; }
  .avatar-dot { width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg,#ffd76b,#ff8a2b); display: inline-block; vertical-align: middle; margin-right: 6px; }
  .btn-play {
    display: inline-flex; align-items: center; gap: 7px;
    background: var(--accent); color: #241500;
    font-weight: 800; font-size: 14px;
    padding: 9px 22px; border-radius: 999px;
  }
  .btn-play:hover { filter: brightness(1.08); }

  .hero-side { display: grid; grid-template-columns: 1fr; gap: 10px; }
  .mini-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--card);
    transition: transform .2s;
  }
  .mini-card:hover { transform: translateY(-2px); }
  .mini-card img { width: 100%; height: 100%; object-fit: cover; }
  .mini-card .mini-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,8,12,.88), rgba(8,8,12,0) 55%); }
  .tag-genre {
    position: absolute; top: 8px; left: 8px;
    background: rgba(8,8,12,.72); color: var(--accent);
    font-size: 11px; padding: 2px 8px; border-radius: 4px;
    backdrop-filter: blur(4px);
  }
  .tag-dur {
    position: absolute; right: 8px; bottom: 8px;
    background: rgba(8,8,12,.72); color: #e8e8f0;
    font-size: 11px; padding: 2px 7px; border-radius: 4px;
  }
  .mini-title {
    position: absolute; left: 10px; bottom: 8px; right: 64px;
    font-size: 12.5px; font-weight: 600;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }

  /* ============ 榜单 ============ */
  .rank-strip {
    display: grid;
    grid-template-columns: repeat(10, minmax(0, 1fr));
    gap: 10px;
  }
  .rank-cell {
    background: var(--card);
    border-radius: 10px;
    padding: 12px 10px;
    min-height: 108px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: background .2s;
    overflow: hidden;
  }
  .rank-cell:hover { background: var(--card-hover); }
  .rank-num {
    font-size: 26px; font-weight: 900; line-height: 1;
    color: var(--text-mute); font-style: italic;
  }
  .rank-cell.top .rank-num { color: var(--accent); }
  .rank-cell.top { background: linear-gradient(160deg, #2e2517, var(--card)); }
  .rank-name {
    font-size: 12.5px; font-weight: 600; line-height: 1.35;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    margin-top: 8px;
  }
  .rank-sub { font-size: 11px; color: var(--text-mute); margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

  /* ============ 推荐短剧卡片 ============ */
  .card-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }
  .drama-card { border-radius: var(--radius); overflow: hidden; background: var(--card); transition: transform .2s, background .2s; }
  .drama-card:hover { transform: translateY(-3px); background: var(--card-hover); }
  .drama-cover { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
  .drama-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
  .drama-card:hover .drama-cover img { transform: scale(1.05); }
  .drama-body { padding: 10px 12px 13px; }
  .drama-name {
    font-size: 13.5px; font-weight: 700;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .drama-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; font-size: 11.5px; color: var(--text-mute); }
  .drama-foot .up { max-width: 55%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .drama-foot .nums { display: flex; gap: 8px; white-space: nowrap; }

  /* ============ 分区精选 ============ */
  .tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
  .tab {
    font-size: 13px; padding: 6px 16px; border-radius: 999px;
    background: var(--bg-soft); color: var(--text-soft);
    border: 1px solid var(--line); cursor: pointer;
    font-family: inherit; transition: all .2s;
  }
  .tab:hover { color: var(--text); }
  .tab.is-active { background: var(--accent-soft); color: var(--accent); border-color: rgba(255,185,46,.45); }
  .panel { display: none; }
  .panel.is-active { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }

  /* ============ 专题合集 ============ */
  .topic-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
  .topic-card {
    position: relative; border-radius: var(--radius); overflow: hidden;
    aspect-ratio: 16 / 10; background: var(--card);
    display: block;
  }
  .topic-card img { width: 100%; height: 100%; object-fit: cover; opacity: .55; transition: transform .4s, opacity .3s; }
  .topic-card:hover img { transform: scale(1.04); opacity: .7; }
  .topic-text { position: absolute; inset: 0; padding: 20px; display: flex; flex-direction: column; justify-content: flex-end; background: linear-gradient(to top, rgba(8,8,12,.94), rgba(8,8,12,.15)); }
  .topic-text h3 { font-size: 18px; font-weight: 800; line-height: 1.35; }
  .topic-text p { font-size: 12.5px; color: #cfcfda; margin-top: 6px; }
  .topic-text .enter { font-size: 12px; color: var(--accent); margin-top: 10px; font-weight: 700; }

  /* ============ 直播 ============ */
  .live-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 14px; }
  .live-card { background: var(--card); border-radius: var(--radius); overflow: hidden; transition: transform .2s; }
  .live-card:hover { transform: translateY(-3px); }
  .live-cover { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
  .live-cover img { width: 100%; height: 100%; object-fit: cover; }
  .live-flag {
    position: absolute; top: 8px; left: 8px;
    display: inline-flex; align-items: center; gap: 5px;
    background: rgba(8,8,12,.78); border-radius: 4px;
    padding: 2px 8px; font-size: 11px; color: #fff;
  }
  .live-flag .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--live); }
  .live-online { position: absolute; right: 8px; top: 8px; font-size: 11px; color: #fff; background: rgba(8,8,12,.72); padding: 2px 7px; border-radius: 4px; }
  .live-body { padding: 10px 12px 13px; }
  .live-title { font-size: 13px; font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .live-sub { font-size: 11.5px; color: var(--text-mute); margin-top: 6px; }

  /* ============ 创作者动态 ============ */
  .feed-list { display: flex; flex-direction: column; gap: 2px; border-left: 2px solid var(--line); padding-left: 20px; }
  .feed-item { position: relative; padding: 14px 0 18px; }
  .feed-item::before {
    content: ""; position: absolute; left: -27px; top: 21px;
    width: 12px; height: 12px; border-radius: 50%;
    background: var(--bg); border: 2px solid var(--accent);
  }
  .feed-item h3 { font-size: 15px; font-weight: 700; }
  .feed-item p { font-size: 13.5px; color: var(--text-soft); margin-top: 6px; max-width: 780px; }

  /* ============ 常见问题 ============ */
  .faq-list { display: flex; flex-direction: column; gap: 10px; max-width: 900px; }
  .faq-item { background: var(--card); border-radius: 10px; overflow: hidden; }
  .faq-q {
    width: 100%; text-align: left; background: none; border: none;
    color: var(--text); font-size: 14.5px; font-weight: 600;
    padding: 15px 18px; cursor: pointer; font-family: inherit;
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
  }
  .faq-q .arrow { color: var(--accent); transition: transform .25s; font-size: 13px; }
  .faq-item.open .faq-q .arrow { transform: rotate(180deg); }
  .faq-a { font-size: 13.5px; color: var(--text-soft); padding: 0 18px 16px; display: none; }
  .faq-item.open .faq-a { display: block; }

  /* ============ 观看方式 / 图片墙 ============ */
  .gallery {
    display: grid;
    grid-template-columns: repeat(6, minmax(0,1fr));
    gap: 10px;
  }
  .gallery .shot { border-radius: 10px; overflow: hidden; aspect-ratio: 9 / 14; background: var(--card); }
  .gallery .shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
  .gallery .shot:hover img { transform: scale(1.06); }

  .how-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
  .how-card { background: var(--card); border-radius: var(--radius); padding: 20px; border: 1px solid var(--line); }
  .how-card .step-no { font-size: 13px; font-weight: 800; color: var(--accent); letter-spacing: 1px; }
  .how-card h3 { font-size: 16px; margin: 8px 0 8px; font-weight: 700; }
  .how-card p { font-size: 13.5px; color: var(--text-soft); }

  /* ============ 页脚 ============ */
  .site-foot {
    margin-left: var(--nav-w);
    border-top: 1px solid var(--line);
    padding: 32px 28px 26px;
    background: #0e0e14;
    font-size: 12.5px;
    color: var(--text-mute);
  }
  .foot-top { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; }
  .foot-brand { max-width: 380px; }
  .foot-brand strong { color: var(--text-soft); font-size: 14px; display: block; margin-bottom: 8px; }
  .foot-brand p { line-height: 1.75; }
  .foot-cols { display: flex; gap: 56px; flex-wrap: wrap; }
  .foot-col h4 { font-size: 12.5px; color: var(--text-soft); margin-bottom: 10px; font-weight: 700; }
  .foot-col li { margin-bottom: 6px; }
  .foot-col a:hover { color: var(--accent); }
  .foot-divider { border: 0; border-top: 1px solid var(--line); margin: 22px 0 16px; }
  .foot-bottom { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; font-size: 12px; }
  .foot-bottom a { color: var(--text-mute); }
  .foot-bottom a:hover { color: var(--accent); }
  .foot-bottom .upd { color: #5d5d70; }

  /* ============ 响应式 ============ */
  @media (max-width: 1180px) {
    .card-grid-4, .panel.is-active { grid-template-columns: repeat(3, minmax(0,1fr)); }
    .rank-strip { grid-template-columns: repeat(5, minmax(0,1fr)); }
    .live-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
    .gallery { grid-template-columns: repeat(4, minmax(0,1fr)); }
  }
  @media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-side { grid-template-columns: repeat(3, minmax(0,1fr)); }
    .topic-grid { grid-template-columns: 1fr; }
    .how-grid { grid-template-columns: 1fr; }
    .main { padding: 0 20px 36px; }
    .site-foot { padding: 28px 20px 22px; }
  }
  @media (max-width: 768px) {
    :root { --nav-w: 0px; }
    .side-nav {
      top: auto; left: 0; right: 0; bottom: 0;
      width: 100%; flex: none;
      flex-direction: row;
      justify-content: space-around;
      padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
      border-right: none;
      border-top: 1px solid var(--line);
      background: #0d0d13;
    }
    .brand-mark { display: none; }
    .nav-list { flex-direction: row; justify-content: space-around; padding: 0; gap: 0; }
    .nav-item { padding: 6px 8px; font-size: 10.5px; flex: 1; }
    .nav-item .ico { font-size: 16px; }
    .main { margin-left: 0; padding: 0 14px 96px; }
    .side-nav + .main { margin-left: 0; }
    .site-foot { margin-left: 0; padding-bottom: 96px; }
    .top-bar { padding: 14px 0 12px; gap: 12px; position: static; }
    .brand-title h1 { font-size: 17px; }
    .brand-title .sub { display: none; }
    .brand-title img { height: 28px; }
    .search-wrap { order: 3; width: 100%; flex: 1 1 100%; }
    .hero-info .hero-title { font-size: 16px; }
    .hero-info { padding: 14px; }
    .hero-side { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .card-grid-4, .panel.is-active { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
    .rank-strip { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
    .rank-cell { min-height: 96px; }
    .live-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
    .gallery { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
    .block { margin-top: 30px; }
    .block-head h2 { font-size: 17px; }
    .foot-cols { gap: 28px; }
  }
  @media (max-width: 420px) {
    .gallery { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .hero-side { grid-template-columns: 1fr 1fr; }
    .mini-title { font-size: 11.5px; right: 56px; }
  }