:root {
    --paper: #F7F0E3;
    --cinnabar: #B7342B;
    --deep-cinnabar: #7C1D18;
    --ink: #241E1C;
    --gold: #B9924B;
    --bamboo: #5B7A63;
    --font-serif: "Songti SC", "SimSun", "Source Han Serif SC", serif;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  }

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

  body {
    background-color: var(--paper);
    color: var(--ink);
    font-family: var(--font-sans);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    background-image: radial-gradient(circle at 50% 0%, rgba(183, 52, 43, 0.04) 0%, transparent 60%),
                      radial-gradient(circle at 100% 100%, rgba(185, 146, 75, 0.06) 0%, transparent 50%);
    background-attachment: fixed;
  }

  a { text-decoration: none; color: inherit; }
  ul { list-style: none; }
  img { max-width: 100%; display: block; }

  /* 首屏红幕 */
  .curtain-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
  }
  .curtain {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 51%;
    background: repeating-linear-gradient(90deg, #7C1D18 0%, #a3251e 10%, #7C1D18 20%);
    box-shadow: inset 0 0 100px rgba(0,0,0,0.8);
  }
  .curtain.left { left: 0; animation: openLeft 800ms cubic-bezier(0.25, 1, 0.5, 1) forwards; }
  .curtain.right { right: 0; animation: openRight 800ms cubic-bezier(0.25, 1, 0.5, 1) forwards; }
  @keyframes openLeft { to { transform: translateX(-100%); } }
  @keyframes openRight { to { transform: translateX(100%); } }

  /* 顶部导航 */
  header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(247, 240, 227, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
  }
  header.scrolled {
    border-bottom: 1px solid var(--gold);
    padding: 8px 0;
  }
  .nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: padding 0.3s ease;
  }
  .logo-group {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--deep-cinnabar);
  }
  .logo-group img { height: 32px; }
  
  .nav-links { display: flex; gap: 20px; font-size: 0.95rem; }
  .nav-links a { color: var(--ink); transition: color 0.2s; }
  .nav-links a:hover { color: var(--cinnabar); }

  .search-box input {
    padding: 6px 12px;
    border: 1px solid var(--gold);
    border-radius: 4px;
    background: transparent;
    outline: none;
  }

  .btn-nav-download {
    background: var(--cinnabar);
    color: #fff;
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: bold;
  }
  
  .hamburger { display: none; }

  /* 公共区块 */
  section { padding: 80px 20px; scroll-margin-top: 80px; }
  .container { max-width: 1200px; margin: 0 auto; }
  .section-title {
    font-family: var(--font-serif);
    font-size: 2rem;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 16px;
  }
  .seal-tag {
    writing-mode: vertical-rl;
    background: var(--cinnabar);
    color: #fff;
    padding: 6px 4px;
    font-size: 1rem;
    border-radius: 2px;
    letter-spacing: 4px;
    box-shadow: 2px 2px 0 rgba(0,0,0,0.1);
  }

  /* 水袖线 */
  .divider {
    width: 100%;
    height: 20px;
    position: relative;
    margin: 40px 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .divider::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--cinnabar) 20%, var(--gold) 80%, transparent 100%);
    border-radius: 50%;
    transform: scaleY(0.5) translateY(50%);
  }
  .divider-coin {
    width: 12px;
    height: 12px;
    background: var(--gold);
    border-radius: 50%;
    border: 2px solid var(--paper);
    position: relative;
    z-index: 2;
  }

  /* 首屏 */
  .hero {
    background: linear-gradient(180deg, #3b0e0b 0%, #1f0807 100%);
    color: #fff;
    padding-top: 120px;
    position: relative;
    overflow: hidden;
  }
  .hero-stage {
    display: flex;
    gap: 40px;
    align-items: flex-end;
    margin-top: 40px;
  }
  .hero-main {
    flex: 1;
  }
  .hero-h1 {
    font-family: var(--font-serif);
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--gold);
  }
  .hero-brand { color: #fff; }
  .hero-sub { font-size: 1.1rem; color: #ccc; margin-bottom: 30px; }
  .hero-stats {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    font-size: 1.1rem;
  }
  .hero-stats span { display: block; font-size: 0.85rem; color: var(--gold); }
  .stamp {
    display: inline-block;
    border: 2px solid var(--cinnabar);
    padding: 2px 8px;
    color: var(--cinnabar);
    font-weight: bold;
    border-radius: 4px;
    animation: stampIn 400ms cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  }
  @keyframes stampIn { from { transform: scale(1.4) rotate(-4deg); opacity: 0; } to { transform: scale(1) rotate(0deg); opacity: 1; } }
  
  .btn-group { display: flex; gap: 24px; }
  .btn-door {
    background: url('data:image/svg+xml;utf8,<svg width="10" height="10" xmlns="http://www.w3.org/2000/svg"><rect width="10" height="10" fill="%235A3B2C"/></svg>');
    min-width: 220px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-family: var(--font-serif);
    font-size: 1.2rem;
    border: 2px solid var(--gold);
    border-radius: 4px;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.8);
    position: relative;
  }
  .btn-door::before, .btn-door::after {
    content: ''; position: absolute; width: 6px; height: 6px; background: var(--gold); border-radius: 50%;
  }
  .btn-door::before { top: 6px; left: 6px; }
  .btn-door::after { top: 6px; right: 6px; }
  .btn-group .btn-door:nth-child(2)::before { top: auto; bottom: 6px; }
  .btn-group .btn-door:nth-child(2)::after { top: auto; bottom: 6px; }

  .hero-poster-card {
    width: 280px;
    background: var(--paper);
    padding: 10px;
    border-radius: 6px;
    color: var(--ink);
    position: relative;
  }
  .hero-poster-card img { width: 100%; border-radius: 4px; }
  
  /* 热播推荐 */
  .card-wall { display: grid; grid-template-columns: 5fr 7fr; gap: 40px; }
  .main-card { background: var(--paper); border: 2px solid var(--gold); padding: 10px; }
  .main-card img { width: 100%; object-fit: cover; border: 4px solid var(--deep-cinnabar); }
  .small-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .small-card { background: var(--paper); border: 1px solid transparent; padding: 6px; text-align: center; transition: all 0.2s; cursor: pointer; }
  .small-card:hover { transform: translateY(-4px); border-color: var(--cinnabar); box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
  
  /* 排行榜 */
  .rank-board { background: var(--paper); border: 2px solid var(--deep-cinnabar); padding: 30px; border-radius: 4px; }
  .rank-list li { display: flex; align-items: center; padding: 15px 0; border-bottom: 1px dashed var(--gold); }
  .rank-board .list-header { font-weight: bold; font-size: 1.2rem; margin-bottom: 20px; font-family: var(--font-serif); text-align: center;}
  .rank-num { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border: 2px solid var(--cinnabar); color: var(--cinnabar); font-weight: bold; margin-right: 15px; }
  
  /* 题材分类 */
  .genre-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .genre-item { background: var(--paper); border: 2px solid #5A3B2C; padding: 20px; display: flex; gap: 15px; transition: transform 0.3s; }
  .genre-item:hover { transform: rotate(6deg); }
  .genre-text { writing-mode: vertical-rl; font-family: var(--font-serif); color: var(--deep-cinnabar); }
  .genre-imgs { display: flex; flex-direction: column; gap: 10px; }
  .genre-imgs img { width: 60px; }

  /* 免费专区 */
  .free-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
  .free-card { background: #EADBC8; padding: 15px; text-align: center; border-radius: 4px; position: relative; transition: transform 0.3s; border: 1px solid var(--gold); }
  .free-card:nth-child(odd) { transform: rotate(-1.5deg); }
  .free-card:nth-child(even) { transform: rotate(1.5deg); }
  .free-card:hover { transform: rotate(0deg) scale(1.05); }
  .free-card img { width: 100%; margin-bottom: 10px; }
  .free-tag { position: absolute; top: 10px; right: 10px; border: 2px solid var(--cinnabar); color: var(--cinnabar); padding: 2px 4px; font-weight: bold; border-radius: 2px; }

  /* 用户评价 */
  .reviews-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
  .review-card { background: #fff; padding: 20px; border-radius: 4px; border: 1px solid var(--gold); position: relative; }
  .review-card::before { content: ''; position: absolute; top: 12px; left: 12px; width: 10px; height: 10px; background: var(--cinnabar); border-radius: 50%; box-shadow: 0 2px 4px rgba(0,0,0,0.3); }
  .avatar { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--cinnabar); margin-bottom: 10px; }
  .stars { color: var(--gold); font-size: 1.2rem; margin-bottom: 10px; }
  .review-text { font-size: 0.9rem; color: #555; }

  /* 常见问题 */
  .faq-item { border-bottom: 1px solid var(--gold); margin-bottom: 10px; }
  .faq-q { padding: 15px; font-weight: bold; cursor: pointer; background: rgba(183, 52, 43, 0.05); }
  .faq-a { padding: 15px; max-height: 0; overflow: hidden; transition: max-height 0.3s ease; background: #fff; }
  .faq-a.active { max-height: 200px; }
  
  /* 下载区 */
  .download-sec { background: var(--deep-cinnabar); color: #fff; padding-top: 100px; padding-bottom: 100px; }
  .download-steps { display: flex; gap: 20px; justify-content: center; margin-bottom: 40px; flex-wrap: wrap; }
  .step-card { background: rgba(255,255,255,0.1); padding: 30px; border-radius: 4px; flex: 1; min-width: 250px; text-align: center; }
  .download-btns-large { display: flex; justify-content: center; gap: 50px; align-items: center; position: relative;}
  .download-btns-large::before { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: rgba(255,255,255,0.3); }

  /* 页脚 */
  footer { background: var(--ink); color: #888; padding: 40px 20px; font-size: 0.85rem; }
  .footer-content { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 30px; max-width: 1200px; margin: 0 auto; }
  .footer-links { display: flex; gap: 40px; }
  .footer-links ul { display: flex; flex-direction: column; gap: 8px; }
  .footer-links h4 { color: #ccc; margin-bottom: 10px; }
  .footer-bottom { text-align: center; margin-top: 40px; border-top: 1px solid #333; padding-top: 20px; }

  /* 响应式 */
  @media (max-width: 1024px) {
    .nav-links, .search-box { display: none; }
    .hamburger { display: block; width: 30px; height: 20px; position: relative; cursor: pointer; }
    .hamburger span { position: absolute; width: 100%; height: 2px; background: var(--ink); left: 0; }
    .hamburger span:nth-child(1) { top: 0; }
    .hamburger span:nth-child(2) { top: 9px; }
    .hamburger span:nth-child(3) { bottom: 0; }
    
    .hero-stage { flex-direction: column; align-items: stretch; }
    .hero-poster-card { width: 100%; max-width: 320px; margin: 0 auto; }
    .card-wall { grid-template-columns: 1fr; }
    .small-cards { grid-template-columns: repeat(2, 1fr); }
    .genre-grid { grid-template-columns: repeat(2, 1fr); }
    .free-grid { grid-template-columns: repeat(2, 1fr); }
  }

  @media (max-width: 768px) {
    .hero-h1 { font-size: 2.2rem; }
    .btn-group { flex-direction: column; gap: 16px; }
    .btn-door { width: 100%; min-width: auto; }
    .faq-q { font-size: 1rem; }
    .footer-content { flex-direction: column; }
    .footer-links { flex-direction: column; gap: 20px; }
  }