:root {
    --watermelon-red: #e54d42;
    --watermelon-dark: #b83229;
    --rind-green: #3d6b35;
    --rind-light: #7fae68;
    --seed-black: #1a1a1a;
    --bg-color: #fcf9f2;
    --text-main: #2b2b2b;
    --text-light: #666;
    --radius-lg: 16px;
    --radius-md: 10px;
    --radius-sm: 6px;
  }

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

  body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
  }

  a {
    text-decoration: none;
    color: inherit;
  }

  ul {
    list-style: none;
  }

  img {
    display: block;
    max-width: 100%;
    height: auto;
    object-fit: cover;
  }

  /* 吸顶 Header */
  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(252, 249, 242, 0.95);
    backdrop-filter: blur(8px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-bottom: 2px solid var(--rind-light);
  }

  .header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--watermelon-dark);
  }

  .brand img {
    height: 32px;
    width: auto;
  }

  .nav-links {
    display: none;
    gap: 24px;
    font-weight: 500;
    color: var(--text-main);
  }

  .nav-links a:hover {
    color: var(--watermelon-red);
  }

  .header-btn {
    background-color: var(--watermelon-red);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s, transform 0.2s;
  }

  .header-btn:hover {
    background-color: var(--watermelon-dark);
    transform: translateY(-2px);
  }

  .header-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
  }

  /* 首屏封面墙 */
  .hero {
    padding-top: 80px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, var(--bg-color) 0%, #f0e8d8 100%);
    overflow: hidden;
    position: relative;
  }

  .hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    position: relative;
    z-index: 2;
  }

  .hero-text {
    text-align: center;
    padding-top: 20px;
  }

  .hero-text h1 {
    font-size: 2.2rem;
    line-height: 1.3;
    margin-bottom: 16px;
    color: var(--seed-black);
  }

  .hero-text h1 span {
    color: var(--watermelon-red);
    position: relative;
    display: inline-block;
  }

  .hero-text h1 span::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: rgba(229, 77, 66, 0.2);
    z-index: -1;
    border-radius: 4px;
  }

  .hero-desc {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--watermelon-red);
    color: #fff;
    font-size: 1.2rem;
    font-weight: bold;
    padding: 16px 40px;
    border-radius: 40px;
    box-shadow: 0 8px 20px rgba(229, 77, 66, 0.3);
    transition: transform 0.2s;
  }

  .hero-cta:hover {
    transform: scale(1.05);
  }

  .hero-wall {
    height: 400px;
    display: flex;
    gap: 16px;
    justify-content: center;
    overflow: hidden;
    padding: 20px 0;
    mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
  }

  .wall-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 130px;
    animation: scrollUp 30s linear infinite;
  }

  .wall-col:nth-child(even) {
    animation: scrollDown 35s linear infinite;
  }
  
  .wall-col:nth-child(3) { animation-duration: 25s; }
  .wall-col:nth-child(4) { animation-duration: 40s; }

  .wall-card {
    width: 100%;
    aspect-ratio: 3/4;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    position: relative;
  }
  
  .wall-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
  }

  .wall-card:hover img {
    transform: scale(1.05);
  }

  @keyframes scrollUp {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
  }

  @keyframes scrollDown {
    0% { transform: translateY(-50%); }
    100% { transform: translateY(0); }
  }

  /* 通用区块 */
  .section {
    padding: 80px 20px;
  }

  .section-inner {
    max-width: 1200px;
    margin: 0 auto;
  }

  .section-header {
    text-align: center;
    margin-bottom: 50px;
  }

  .section-header h2 {
    font-size: 2rem;
    color: var(--seed-black);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }
  
  .section-header h2::before, .section-header h2::after {
    content: '';
    display: block;
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231a1a1a'%3E%3Cellipse cx='12' cy='12' rx='5' ry='8' transform='rotate(45 12 12)'/%3E%3C/svg%3E");
    background-size: contain;
    opacity: 0.2;
  }

  .section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
  }

  /* 敲瓜：题材与剧库 */
  .genre-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .genre-item {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    position: relative;
    overflow: hidden;
  }

  .genre-item:hover {
    border-color: var(--watermelon-red);
    transform: translateY(-4px);
  }

  .genre-icon {
    font-size: 2rem;
    margin-bottom: 12px;
    display: inline-block;
  }

  .genre-title {
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--seed-black);
  }

  .genre-desc {
    font-size: 0.9rem;
    color: var(--text-light);
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s, transform 0.3s;
  }

  .genre-item.is-opened {
    background-color: var(--bg-color);
    border-color: var(--watermelon-red);
  }

  .genre-item.is-opened .genre-desc {
    display: block;
    opacity: 1;
    transform: translateY(0);
  }

  .genre-item.is-opened::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 40px;
    height: 40px;
    background-color: var(--rind-green);
    border-radius: 50%;
    opacity: 0.2;
  }

  /* 热门榜单 */
  .ranking-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .rank-card {
    display: flex;
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  }

  .rank-img-wrap {
    width: 100px;
    flex-shrink: 0;
    position: relative;
  }

  .rank-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 3/4;
  }

  .rank-badge {
    position: absolute;
    top: 0;
    left: 0;
    background: var(--watermelon-red);
    color: #fff;
    padding: 4px 10px;
    font-size: 0.8rem;
    font-weight: bold;
    border-bottom-right-radius: var(--radius-sm);
  }

  .rank-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .rank-info h3 {
    font-size: 1.1rem;
    margin-bottom: 6px;
    color: var(--seed-black);
  }

  .rank-info p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .rank-tag {
    display: inline-block;
    background: #f0f0f0;
    color: #666;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 4px;
    margin-right: 6px;
  }

  /* 切瓜：找剧方式 */
  .fan-container {
    position: relative;
    height: 320px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    margin-top: 40px;
    overflow: hidden;
  }

  .fan-item {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 110px;
    aspect-ratio: 3/4;
    margin-left: -55px;
    transform-origin: center bottom;
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    cursor: pointer;
    border: 3px solid #fff;
  }
  
  .fan-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .fan-item:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
    z-index: 10 !important;
  }

  /* 冰镇：离线缓存 */
  .fridge {
    background: #e0f0f7;
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.05);
    border: 4px solid #cce0e8;
  }

  .fridge-shelf {
    display: flex;
    gap: 12px;
    padding: 16px 10px;
    border-bottom: 4px solid #b3d4e0;
    overflow-x: auto;
    scrollbar-width: none;
  }
  
  .fridge-shelf::-webkit-scrollbar {
    display: none;
  }

  .fridge-shelf:last-child {
    border-bottom: none;
  }

  .fridge-item {
    width: 80px;
    flex-shrink: 0;
    aspect-ratio: 3/4;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: relative;
  }
  
  .fridge-item::before {
    content: '';
    position: absolute;
    top: 4px;
    right: 4px;
    width: 12px;
    height: 12px;
    background: rgba(255,255,255,0.8);
    border-radius: 50%;
    box-shadow: 0 0 4px rgba(0,0,0,0.2);
    z-index: 2;
  }

  .fridge-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* 顺藤摸瓜 */
  .vine-wrap {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
    padding-left: 20px;
  }

  .vine-wrap::before {
    content: '';
    position: absolute;
    left: 44px;
    top: 20px;
    bottom: 20px;
    width: 4px;
    background: var(--rind-green);
    border-radius: 2px;
    z-index: 0;
  }

  .vine-item {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    z-index: 1;
    cursor: pointer;
  }
  
  .vine-dot {
    width: 12px;
    height: 12px;
    background: var(--rind-green);
    border: 3px solid #fff;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 0 2px var(--rind-green);
    margin-left: 14px;
  }

  .vine-card {
    display: flex;
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    flex: 1;
    max-width: 300px;
    transition: transform 0.2s;
  }

  .vine-item:hover .vine-card {
    transform: translateX(10px);
  }

  .vine-card img {
    width: 70px;
    object-fit: cover;
    aspect-ratio: 3/4;
  }

  .vine-card-info {
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .vine-card-info h4 {
    font-size: 0.95rem;
    margin-bottom: 4px;
    color: var(--seed-black);
  }
  
  .vine-card-info span {
    font-size: 0.8rem;
    color: var(--text-light);
  }

  /* 瓜熟蒂落：落瓜表 */
  .schedule-table {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  }

  .schedule-row {
    display: grid;
    grid-template-columns: 80px 1fr;
    padding: 20px;
    border-bottom: 1px dashed #eee;
  }
  
  .schedule-row:last-child {
    border-bottom: none;
  }

  .schedule-date {
    font-weight: bold;
    color: var(--watermelon-red);
    font-size: 1.1rem;
  }

  .schedule-content h4 {
    margin-bottom: 4px;
    color: var(--seed-black);
  }

  .schedule-content p {
    font-size: 0.9rem;
    color: var(--text-light);
  }

  /* 下载区块 */
  .download-section {
    background-color: var(--seed-black);
    color: #fff;
    text-align: center;
    padding: 80px 20px;
    position: relative;
  }

  .download-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: repeating-linear-gradient(90deg, var(--rind-green) 0, var(--rind-green) 20px, transparent 20px, transparent 40px);
  }

  .download-section h2 {
    font-size: 2.2rem;
    margin-bottom: 16px;
  }

  .download-section p {
    color: #aaa;
    margin-bottom: 40px;
    font-size: 1.1rem;
  }

  .download-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .download-btn-large {
    background-color: var(--watermelon-red);
    color: #fff;
    font-size: 1.4rem;
    font-weight: bold;
    padding: 18px 60px;
    border-radius: 50px;
    display: inline-block;
    box-shadow: 0 10px 30px rgba(229, 77, 66, 0.4);
    transition: transform 0.2s;
    width: 100%;
    max-width: 300px;
  }

  .download-btn-large:hover {
    transform: scale(1.05);
  }
  
  .download-note {
    font-size: 0.85rem;
    color: #666;
    margin-top: 10px;
  }

  .qr-placeholder {
    width: 120px;
    height: 120px;
    background: #fff;
    border-radius: 10px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--seed-black);
    font-size: 0.8rem;
    margin-top: 20px;
  }
  
  .qr-placeholder::before {
      content: '';
      width: 80px;
      height: 80px;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231a1a1a'%3E%3Cpath d='M3 3h6v6H3V3zm2 2v2h2V5H5zm8-2h6v6h-6V3zm2 2v2h2V5h-2zM3 15h6v6H3v-6zm2 2v2h2v-2H5zm10 0h2v2h-2v-2zm-2-2h2v2h-2v-2zm2 2h2v2h-2v-2zm-2 2h2v2h-2v-2zm2 2h2v2h-2v-2z'/%3E%3C/svg%3E");
      background-size: cover;
      margin-bottom: 5px;
  }

  /* Footer */
  .site-footer {
    background-color: #111;
    color: #666;
    padding: 40px 20px 60px;
    text-align: center;
    font-size: 0.85rem;
  }

  .site-footer a {
    color: #888;
    margin: 0 10px;
  }
  
  .site-footer a:hover {
    color: #fff;
  }
  
  .footer-time {
    margin-top: 15px;
    font-size: 0.75rem;
    color: #444;
  }

  /* 响应式 */
  @media (min-width: 768px) {
    .hero {
      flex-direction: row;
      align-items: center;
      padding-top: 100px;
      padding-bottom: 60px;
    }
    
    .hero-content {
      grid-template-columns: 1fr 1fr;
      text-align: left;
      align-items: center;
    }
    
    .hero-text {
      text-align: left;
    }
    
    .hero-text h1 {
      font-size: 3rem;
    }
    
    .hero-desc {
      margin-left: 0;
    }
    
    .hero-wall {
      height: 600px;
      padding: 0;
    }
    
    .wall-col {
      width: 180px;
    }

    .nav-links {
      display: flex;
    }

    .genre-grid {
      grid-template-columns: repeat(3, 1fr);
    }

    .ranking-list {
      flex-direction: row;
      overflow-x: auto;
      padding-bottom: 20px;
    }
    
    .rank-card {
      flex-direction: column;
      min-width: 200px;
    }
    
    .rank-img-wrap {
      width: 100%;
    }
    
    .rank-img-wrap img {
      aspect-ratio: 3/4;
    }
    
    .vine-wrap {
      flex-direction: row;
      overflow-x: auto;
      padding: 20px 0;
      padding-left: 0;
    }
    
    .vine-wrap::before {
      left: 20px;
      right: 20px;
      top: 50px;
      height: 4px;
      width: auto;
      bottom: auto;
    }
    
    .vine-item {
      flex-direction: column;
    }
    
    .vine-dot {
      margin-left: 0;
      order: -1;
      margin-bottom: 30px;
    }
    
    .vine-card {
      flex-direction: column;
      width: 160px;
      max-width: none;
    }
    
    .vine-card img {
      width: 100%;
      aspect-ratio: 3/4;
    }

    .download-actions {
      flex-direction: row;
      justify-content: center;
    }
    
    .qr-placeholder {
      margin-top: 0;
    }
  }

  @media (min-width: 1024px) {
    .hero-text h1 {
      font-size: 3.5rem;
    }
    
    .section {
      padding: 100px 20px;
    }
    
    .genre-grid {
      grid-template-columns: repeat(4, 1fr);
    }
  }
  
  @media (prefers-reduced-motion: reduce) {
    .wall-col {
      animation: none;
    }
    .fan-item {
      transition: none;
    }
  }