:root {
    --red-deep: #6e1010;
    --red-main: #b31818;
    --red-bright: #d62b2b;
    --yellow: #ffcc33;
    --yellow-deep: #e8a900;
    --ink: #2a1515;
    --paper: #fff6f0;
    --paper-2: #ffe9dd;
    --line: rgba(110, 16, 16, 0.16);
    --radius: 14px;
    --shadow: 0 10px 26px rgba(88, 10, 10, 0.16);
  }
  * { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; }
  body {
    margin: 0;
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.7;
    overflow-x: hidden;
  }
  img { max-width: 100%; display: block; border: 0; }
  a { color: inherit; text-decoration: none; }
  h1, h2, h3 { margin: 0 0 12px; line-height: 1.35; font-weight: 800; }
  p { margin: 0 0 12px; }
  ul { margin: 0; padding: 0; list-style: none; }

  .wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }

  /* 顶部滚动横幅 */
  .ticker {
    background: var(--red-deep);
    color: #ffd9a8;
    font-size: 13px;
    overflow: hidden;
    white-space: nowrap;
    border-bottom: 2px solid var(--yellow-deep);
  }
  .ticker-track {
    display: inline-block;
    padding: 7px 0;
    animation: tickerMove 26s linear infinite;
    will-change: transform;
  }
  .ticker-track span { margin: 0 26px; }
  .ticker-track b { color: var(--yellow); }
  @keyframes tickerMove {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
  }

  /* 头部导航 */
  .site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(179, 24, 24, 0.97);
    color: #fff;
    box-shadow: 0 4px 16px rgba(80, 8, 8, 0.28);
  }
  .header-inner {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 58px;
    padding: 8px 0;
    flex-wrap: wrap;
  }
  .brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 17px; letter-spacing: 0.5px; }
  .brand img { height: 32px; width: auto; border-radius: 7px; background: #fff; padding: 2px; }
  .nav { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }
  .nav a {
    font-size: 13.5px;
    padding: 6px 10px;
    border-radius: 99px;
    color: #ffe6cf;
    transition: background .2s, color .2s;
  }
  .nav a:hover, .nav a:focus-visible { background: var(--yellow); color: var(--red-deep); }
  .nav-toggle {
    display: none;
    margin-left: auto;
    background: var(--yellow);
    color: var(--red-deep);
    border: 0;
    font-size: 14px;
    font-weight: 700;
    padding: 7px 14px;
    border-radius: 99px;
    cursor: pointer;
  }

  /* 首屏 */
  .hero {
    background:
      radial-gradient(1200px 420px at 12% -10%, #e2492b 0%, transparent 62%),
      linear-gradient(160deg, var(--red-main) 0%, var(--red-deep) 78%);
    color: #fff;
    padding: 40px 0 52px;
  }
  .hero-grid { display: grid; grid-template-columns: 1fr; gap: 30px; align-items: center; }
  .hero-badge {
    display: inline-block;
    background: rgba(255, 204, 51, 0.16);
    border: 1px solid rgba(255, 204, 51, 0.55);
    color: var(--yellow);
    font-size: 12.5px;
    padding: 4px 12px;
    border-radius: 99px;
    margin-bottom: 14px;
  }
  .hero h1 { font-size: 27px; letter-spacing: 0.5px; margin-bottom: 14px; }
  .hero h1 em { font-style: normal; color: var(--yellow); }
  .hero-sub { color: #ffe2cf; font-size: 15px; max-width: 520px; }
  .hero-actions { margin-top: 22px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
  .btn-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(180deg, #ffe071 0%, var(--yellow) 42%, var(--yellow-deep) 100%);
    color: #6a1800;
    font-weight: 900;
    font-size: 17px;
    padding: 14px 30px;
    border-radius: 99px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.26), inset 0 -2px 0 rgba(0, 0, 0, 0.12);
    transition: transform .18s ease, box-shadow .18s ease;
  }
  .btn-download:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 12px 26px rgba(0, 0, 0, 0.3); }
  .btn-download:active { transform: translateY(0); }
  .btn-download .arrow { font-size: 15px; }
  .hero-note { font-size: 12.5px; color: #ffcfae; }
  .update-time {
    margin-top: 12px;
    font-size: 12.5px;
    color: #ffdfc4;
    background: rgba(0, 0, 0, 0.18);
    display: inline-block;
    padding: 5px 12px;
    border-radius: 8px;
    border: 1px dashed rgba(255, 204, 51, 0.45);
  }

  /* 首屏轮播 */
  .carousel {
    position: relative;
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    aspect-ratio: 9 / 15;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.42);
    background: #3d0707;
    border: 3px solid rgba(255, 204, 51, 0.5);
  }
  .slides { position: absolute; inset: 0; }
  .slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .7s ease;
  }
  .slide.is-active { opacity: 1; }
  .slide a { display: block; width: 100%; height: 100%; position: relative; }
  .slide img { width: 100%; height: 100%; object-fit: cover; }
  .play-badge {
    position: absolute;
    top: 50%; left: 50%;
    width: 62px; height: 62px;
    margin: -31px 0 0 -31px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.34);
    border: 2px solid rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
    transition: transform .2s ease, background .2s ease;
  }
  .play-badge::after {
    content: "";
    width: 0; height: 0;
    border-left: 18px solid #fff;
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
    margin-left: 5px;
  }
  .slide a:hover .play-badge { transform: scale(1.1); background: rgba(214, 43, 43, 0.72); }
  .carousel-dots {
    position: absolute;
    bottom: 10px; left: 0; right: 0;
    display: flex;
    justify-content: center;
    gap: 7px;
    z-index: 3;
  }
  .carousel-dots button {
    width: 8px; height: 8px;
    border-radius: 50%;
    border: 0;
    padding: 0;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
  }
  .carousel-dots button.is-active { background: var(--yellow); width: 20px; border-radius: 99px; }

  /* 区块通用 */
  section { padding: 54px 0; }
  .section-head { max-width: 640px; margin-bottom: 26px; }
  .eyebrow {
    display: inline-block;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--red-main);
    border-left: 4px solid var(--yellow-deep);
    padding-left: 8px;
    margin-bottom: 8px;
  }
  .section-head h2 { font-size: 23px; color: var(--red-deep); }
  .section-head p { color: #6b4545; font-size: 14.5px; }

  /* 独家自制 */
  .craft { background: var(--paper-2); }
  .craft-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
    align-items: center;
    background: #fff;
    border-radius: var(--radius);
    padding: 18px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
  }
  .craft-text h3 { font-size: 19px; color: var(--red-main); }
  .craft-text p { font-size: 14.5px; color: #5b3b3b; margin-bottom: 0; }
  .craft-media { position: relative; border-radius: 12px; overflow: hidden; }
  .craft-media a { display: block; position: relative; }
  .craft-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 10; }
  .craft-media .play-badge { width: 52px; height: 52px; margin: -26px 0 0 -26px; }
  .craft-media .play-badge::after { border-left-width: 15px; border-top-width: 9px; border-bottom-width: 9px; }

  /* 魔改剧场 图墙 */
  .gallery { background: #fff; }
  .wall {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .wall-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #f3e3dc;
    box-shadow: 0 6px 16px rgba(90, 20, 20, 0.14);
  }
  .wall-item a { display: block; position: relative; }
  .wall-item img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .35s ease; }
  .wall-item a:hover img { transform: scale(1.05); }
  .wall-item .play-badge { width: 46px; height: 46px; margin: -23px 0 0 -23px; }
  .wall-item .play-badge::after { border-left-width: 13px; border-top-width: 8px; border-bottom-width: 8px; }
  .wall-cap {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 22px 10px 8px;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.74));
    color: #fff;
    font-size: 13px;
    font-weight: 700;
  }

  /* 凌晨片段 */
  .clips { background: linear-gradient(180deg, #fff 0%, var(--paper-2) 100%); }
  .clip-strip {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 12px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .clip-card {
    flex: 0 0 78%;
    max-width: 300px;
    scroll-snap-align: start;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: #2a0303;
  }
  .clip-card a { display: block; position: relative; }
  .clip-card img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; }
  .clip-card .play-badge { width: 50px; height: 50px; margin: -25px 0 0 -25px; }
  .clip-card .play-badge::after { border-left-width: 14px; border-top-width: 9px; border-bottom-width: 9px; }
  .clip-label {
    position: absolute;
    left: 8px; bottom: 8px;
    background: rgba(214, 43, 43, 0.9);
    color: #fff;
    font-size: 12px;
    padding: 3px 9px;
    border-radius: 99px;
  }

  /* 安装步骤 */
  .install { background: var(--red-deep); color: #fff; }
  .install .section-head h2 { color: #fff; }
  .install .section-head p { color: #ffcdb4; }
  .install .eyebrow { color: var(--yellow); border-left-color: var(--yellow); }
  .steps { display: grid; grid-template-columns: 1fr; gap: 14px; }
  .step {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 204, 51, 0.24);
    border-radius: var(--radius);
    padding: 18px;
  }
  .step-no {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px; height: 30px;
    border-radius: 50%;
    background: var(--yellow);
    color: var(--red-deep);
    font-weight: 900;
    font-size: 14px;
    margin-bottom: 10px;
  }
  .step h3 { font-size: 16px; color: #fff; margin-bottom: 6px; }
  .step p { font-size: 14px; color: #ffd9c6; margin: 0; }
  .install-cta { margin-top: 26px; }

  /* 播放体验 */
  .experience { background: #fff; }
  .feature-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
  .feature {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px;
    border-top: 3px solid var(--yellow-deep);
  }
  .feature h3 { font-size: 16px; color: var(--red-deep); margin-bottom: 6px; }
  .feature p { font-size: 14px; color: #614040; margin: 0; }

  /* 产品问答 */
  .faq { background: var(--paper-2); }
  .faq-list { display: grid; gap: 12px; }
  .faq-item {
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    overflow: hidden;
  }
  .faq-q {
    width: 100%;
    text-align: left;
    background: none;
    border: 0;
    padding: 16px 44px 16px 16px;
    font-size: 15px;
    font-weight: 800;
    color: var(--red-deep);
    cursor: pointer;
    position: relative;
    font-family: inherit;
  }
  .faq-q::after {
    content: "+";
    position: absolute;
    right: 16px; top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: var(--red-bright);
    line-height: 1;
  }
  .faq-item.open .faq-q::after { content: "−"; }
  .faq-a { padding: 0 16px 16px; font-size: 14px; color: #5b3b3b; display: none; }
  .faq-item.open .faq-a { display: block; }

  /* 网友互动 */
  .comments { background: #fff; }
  .comment-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
  .comment {
    display: flex;
    gap: 12px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px;
  }
  .avatar {
    flex: 0 0 40px;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--red-bright), var(--red-deep));
    color: #fff;
    font-weight: 800;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .comment-body { flex: 1; min-width: 0; }
  .comment-name { font-size: 13.5px; font-weight: 800; color: var(--red-deep); margin-bottom: 3px; }
  .comment-text { font-size: 14px; color: #4d3030; margin: 0; }
  .comment-meta { font-size: 12px; color: #9c7777; margin-top: 6px; }

  /* 底部下载 */
  .final-cta {
    background: linear-gradient(135deg, var(--red-main), var(--red-deep));
    color: #fff;
    text-align: center;
    padding: 48px 0;
  }
  .final-cta h2 { font-size: 22px; color: #fff; }
  .final-cta p { color: #ffd8c4; font-size: 14.5px; max-width: 540px; margin: 0 auto 22px; }

  /* 页脚 */
  .site-footer {
    background: #2a0a0a;
    color: #b99a9a;
    font-size: 12.5px;
    padding: 22px 0;
    text-align: center;
  }
  .site-footer p { margin: 0 0 8px; }
  .site-footer a { color: #c9a3a3; }
  .site-footer a:hover { color: var(--yellow); }

  /* 响应式 */
  @media (min-width: 768px) {
    .hero { padding: 56px 0 66px; }
    .hero h1 { font-size: 34px; }
    .hero-sub { font-size: 16px; }
    .section-head h2 { font-size: 26px; }
    .wall { grid-template-columns: repeat(3, 1fr); gap: 14px; }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .comment-grid { grid-template-columns: repeat(2, 1fr); }
    .clip-card { flex: 0 0 42%; }
    .craft-row { grid-template-columns: 1.15fr 1fr; gap: 26px; padding: 22px; }
    .craft-row.reverse .craft-media { order: 2; }
    .nav-toggle { display: none; }
  }
  @media (min-width: 1024px) {
    .header-inner { min-height: 64px; }
    .brand { font-size: 18px; }
    .hero-grid { grid-template-columns: 1.05fr 0.85fr; gap: 44px; }
    .hero h1 { font-size: 40px; }
    .carousel { max-width: 340px; margin-left: auto; margin-right: 0; }
    .wall { grid-template-columns: repeat(4, 1fr); }
    .steps { grid-template-columns: repeat(4, 1fr); }
    .feature-grid { grid-template-columns: repeat(3, 1fr); }
    .comment-grid { grid-template-columns: repeat(3, 1fr); }
    .clip-card { flex: 0 0 23%; }
    section { padding: 70px 0; }
  }
  @media (max-width: 767px) {
    .nav { display: none; width: 100%; margin-left: 0; padding-bottom: 8px; }
    .nav.open { display: flex; }
    .nav-toggle { display: inline-block; }
  }
  @media (prefers-reduced-motion: reduce) {
    .ticker-track { animation: none; }
    .slide, .btn-download, .wall-item img { transition: none; }
  }