:root {
    --bg-main: #faf8f0;
    --bg-card: #ffffff;
    --bg-gray: #f3efe4;
    --board-bg: #b9a899;
    --board-hole: rgba(238, 228, 218, 0.35);
    --text-main: #4a403a;
    --text-muted: #7a6f65;
    --color-primary: #f0653a;
    --color-primary-dark: #d9502a;
    --grad-title: linear-gradient(135deg, #f0653a, #e5a838);
    
    /* 方块色阶 */
    --tile-2: #eee4da;
    --tile-4: #ede0c8;
    --tile-8: #f2b179;
    --tile-16: #f59563;
    --tile-32: #f67c5f;
    --tile-64: #f65e3b;
    --tile-128: #edcf72;
    --tile-256: #edcc61;
    --tile-512: #edc850;
    --tile-1024: #edc53f;
    --tile-2048: #edc22e;
    
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
    --shadow-board: inset 0 0 0 6px #9a8574, 0 10px 30px rgba(0,0,0,0.1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
  }

  * { 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-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
  }

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

  /* 导航 */
  .site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(250, 248, 240, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
  }
  .nav-container {
    max-width: 1200px; margin: 0 auto; padding: 12px 20px;
    display: flex; justify-content: space-between; align-items: center;
  }
  .brand { display: flex; align-items: center; gap: 10px; font-weight: bold; font-size: 1.2rem; }
  .brand img { height: 32px; width: auto; }
  .nav-links { display: none; gap: 24px; font-size: 0.95rem; }
  .nav-links a:hover { color: var(--color-primary); }
  .nav-actions { display: flex; align-items: center; gap: 12px; }
  .btn-nav-download {
    background: var(--color-primary); color: #fff; padding: 8px 16px;
    border-radius: 20px; font-size: 0.9rem; font-weight: bold;
    transition: background 0.2s;
  }
  .btn-nav-download:hover { background: var(--color-primary-dark); }
  .hamburger { display: block; cursor: pointer; width: 24px; height: 20px; position: relative; }
  .hamburger span {
    display: block; position: absolute; height: 2px; width: 100%; background: var(--text-main);
    transition: all 0.3s;
  }
  .hamburger span:nth-child(1) { top: 0; }
  .hamburger span:nth-child(2) { top: 9px; }
  .hamburger span:nth-child(3) { top: 18px; }
  
  .mobile-menu {
    display: none; background: var(--bg-card); padding: 20px; border-bottom: 1px solid #eee;
  }
  .mobile-menu.active { display: block; }
  .mobile-menu a { display: block; padding: 10px 0; border-bottom: 1px solid #f5f5f5; }

  /* 通用区块 */
  .section-wrap { padding: 60px 20px; max-width: 1200px; margin: 0 auto; }
  .section-title { font-size: 2rem; text-align: center; margin-bottom: 40px; font-weight: 800; letter-spacing: -0.5px; }
  .section-title .grad-text {
    background: var(--grad-title);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  .eyebrow { text-align: center; color: var(--color-primary); font-weight: bold; font-size: 0.9rem; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 8px; }

  /* 首屏 */
  .hero {
    padding: 60px 20px; max-width: 1200px; margin: 0 auto;
    display: flex; flex-direction: column; gap: 40px; align-items: center;
  }
  .hero-text { flex: 1; text-align: center; }
  .hero-text h1 {
    font-size: 2.8rem; line-height: 1.2; margin-bottom: 20px; font-weight: 800;
    background: var(--grad-title);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  .hero-desc { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 30px; }
  .hero-actions { display: flex; gap: 16px; justify-content: center; margin-bottom: 40px; }
  .btn-primary {
    background: var(--color-primary); color: #fff; padding: 14px 32px; border-radius: 30px;
    font-weight: bold; font-size: 1.1rem; box-shadow: 0 4px 15px rgba(240, 101, 58, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
  }
  .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(240, 101, 58, 0.4); }
  .stats-row { display: flex; justify-content: center; gap: 30px; border-top: 1px solid #eee; padding-top: 20px; }
  .stat-item { text-align: center; }
  .stat-num { font-size: 1.5rem; font-weight: 800; color: var(--color-primary); font-variant-numeric: tabular-nums; }
  .stat-label { font-size: 0.85rem; color: var(--text-muted); }

  /* 首屏棋盘区 */
  .hero-board {
    flex: 1; width: 100%; max-width: 400px;
    display: flex; flex-direction: column; gap: 16px;
  }
  .score-board {
    background: var(--board-bg); border-radius: var(--radius-md); padding: 12px 20px;
    display: flex; justify-content: space-between; color: #fff; font-weight: bold;
    box-shadow: var(--shadow-sm);
  }
  .score-item { display: flex; flex-direction: column; align-items: center; }
  .score-label { font-size: 0.8rem; opacity: 0.9; }
  .score-val { font-size: 1.2rem; font-variant-numeric: tabular-nums; }
  .board-grid {
    background: var(--board-bg); padding: 12px; border-radius: var(--radius-lg);
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
    box-shadow: var(--shadow-board);
  }
  .board-cell {
    aspect-ratio: 1; background: var(--board-hole); border-radius: var(--radius-sm);
    display: flex; justify-content: center; align-items: center;
    font-size: 1.5rem; font-weight: 800; color: var(--text-main);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.2s;
  }
  .board-cell.pop { animation: pop 0.3s ease; }
  @keyframes pop { 0% { transform: scale(1); } 50% { transform: scale(1.1); } 100% { transform: scale(1); } }
  
  .t-2 { background: var(--tile-2); }
  .t-4 { background: var(--tile-4); }
  .t-8 { background: var(--tile-8); color: #fff; }
  .t-16 { background: var(--tile-16); color: #fff; }
  .t-32 { background: var(--tile-32); color: #fff; }
  .t-64 { background: var(--tile-64); color: #fff; }
  .t-128 { background: var(--tile-128); color: #fff; box-shadow: 0 0 10px rgba(237, 207, 114, 0.5); }
  .t-256 { background: var(--tile-256); color: #fff; box-shadow: 0 0 15px rgba(237, 204, 97, 0.6); }
  .t-512 { background: var(--tile-512); color: #fff; box-shadow: 0 0 20px rgba(237, 200, 80, 0.7); }
  .t-1024 { background: var(--tile-1024); color: #fff; box-shadow: 0 0 25px rgba(237, 197, 63, 0.8); }
  .t-2048 { background: var(--tile-2048); color: #fff; box-shadow: 0 0 30px rgba(237, 194, 46, 0.9); animation: breathe 2s infinite alternate; }
  @keyframes breathe { 0% { box-shadow: 0 0 20px rgba(237, 194, 46, 0.6); } 100% { box-shadow: 0 0 40px rgba(237, 194, 46, 1); } }
  
  .board-note { text-align: center; font-size: 0.85rem; color: var(--text-muted); }

  /* 档位玩法 */
  .play-section { background: var(--bg-gray); }
  .play-grid { display: flex; flex-direction: column; gap: 20px; align-items: center; }
  .fragment-cards { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
  .fragment-card {
    background: var(--bg-card); padding: 20px; border-radius: var(--radius-md);
    text-align: center; box-shadow: var(--shadow-sm); cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s; flex: 1; min-width: 100px;
  }
  .fragment-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
  .fragment-card .icon { font-size: 2rem; margin-bottom: 10px; }
  .fragment-card h3 { font-size: 1rem; margin-bottom: 4px; }
  .fragment-card p { font-size: 0.8rem; color: var(--text-muted); }
  .merge-arrow { font-size: 2rem; color: var(--color-primary); transform: rotate(90deg); }
  .result-box {
    background: var(--bg-card); padding: 30px; border-radius: var(--radius-lg);
    text-align: center; box-shadow: var(--shadow-md); border: 2px dashed #ddd;
    width: 100%; max-width: 300px;
  }
  .result-box .result-num {
    font-size: 3rem; font-weight: 900; color: var(--color-primary);
    font-variant-numeric: tabular-nums; margin-bottom: 10px; transition: all 0.3s;
  }
  .result-box p { font-size: 0.9rem; color: var(--text-muted); }

  /* 剧库 */
  .filter-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 20px; }
  .chip {
    padding: 6px 16px; border-radius: 20px; background: var(--bg-card); border: 1px solid #ddd;
    font-size: 0.9rem; cursor: pointer; transition: all 0.2s;
  }
  .chip.active, .chip:hover { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
  .search-bar { max-width: 400px; margin: 0 auto 30px; position: relative; }
  .search-bar input {
    width: 100%; padding: 12px 20px; border-radius: 30px; border: 1px solid #ddd;
    font-size: 1rem; outline: none; transition: border-color 0.2s;
  }
  .search-bar input:focus { border-color: var(--color-primary); }
  
  .drama-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .drama-card {
    background: var(--bg-card); border-radius: var(--radius-md); overflow: hidden;
    box-shadow: var(--shadow-sm); transition: transform 0.2s, box-shadow 0.2s;
    position: relative; display: flex; flex-direction: column;
  }
  .drama-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
  .drama-img-wrap { position: relative; aspect-ratio: 3/4; overflow: hidden; }
  .drama-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
  .drama-card:hover .drama-img-wrap img { transform: scale(1.05); }
  .tier-badge {
    position: absolute; top: 8px; left: 8px; padding: 4px 8px; border-radius: 6px;
    font-size: 0.75rem; font-weight: bold; color: #fff;
  }
  .drama-info { padding: 12px; flex: 1; display: flex; flex-direction: column; }
  .drama-title { font-size: 0.95rem; font-weight: bold; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .drama-meta { font-size: 0.8rem; color: var(--text-muted); display: flex; justify-content: space-between; }
  .empty-tip { display: none; text-align: center; color: var(--text-muted); padding: 40px 0; width: 100%; }

  /* 更新日历 */
  .calendar-section { background: var(--bg-gray); }
  .calendar-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 30px; }
  .cal-day {
    background: var(--bg-card); padding: 16px; border-radius: var(--radius-md);
    text-align: center; box-shadow: var(--shadow-sm);
  }
  .cal-day.active { background: var(--color-primary); color: #fff; }
  .cal-day-name { font-weight: bold; font-size: 1.1rem; margin-bottom: 8px; }
  .cal-day-items { font-size: 0.85rem; color: var(--text-muted); }
  .cal-day.active .cal-day-items { color: rgba(255,255,255,0.9); }
  
  .update-blocks { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
  .update-block {
    background: var(--color-primary); color: #fff; padding: 30px; border-radius: var(--radius-lg);
    text-align: center; flex: 1; min-width: 250px; box-shadow: 0 8px 20px rgba(240, 101, 58, 0.2);
  }
  .update-block.secondary { background: var(--tile-8); color: var(--text-main); box-shadow: 0 8px 20px rgba(242, 177, 121, 0.2); }
  .update-time { font-size: 2.5rem; font-weight: 800; margin-bottom: 8px; font-variant-numeric: tabular-nums; }
  .update-desc { font-size: 0.95rem; opacity: 0.9; }
  .timezone-note { text-align: center; font-size: 0.85rem; color: var(--text-muted); margin-top: 20px; }

  /* 心愿榜 */
  .wish-list { display: flex; flex-direction: column; gap: 16px; max-width: 800px; margin: 0 auto; }
  .wish-item {
    background: var(--bg-card); padding: 20px; border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: space-between; box-shadow: var(--shadow-sm);
    flex-wrap: wrap; gap: 16px;
  }
  .wish-info { flex: 1; min-width: 200px; }
  .wish-title { font-weight: bold; font-size: 1.1rem; margin-bottom: 4px; }
  .wish-tier { font-size: 0.85rem; color: var(--color-primary); font-weight: bold; }
  .wish-progress-wrap { width: 100%; max-width: 300px; display: flex; align-items: center; gap: 10px; margin-top: 8px; }
  .progress-bar { flex: 1; height: 8px; background: #eee; border-radius: 4px; overflow: hidden; }
  .progress-fill { height: 100%; background: var(--color-primary); width: 0; transition: width 0.5s; }
  .wish-count { font-size: 0.85rem; color: var(--text-muted); min-width: 60px; text-align: right; }
  .btn-wish {
    background: var(--bg-gray); color: var(--text-main); border: 1px solid #ddd;
    padding: 8px 20px; border-radius: 20px; cursor: pointer; font-weight: bold;
    transition: all 0.2s;
  }
  .btn-wish:hover { background: #e8e4d9; }
  .btn-wish.added { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

  /* 碎片时间 */
  .scene-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
  .scene-card {
    background: var(--bg-card); padding: 30px; border-radius: var(--radius-lg);
    text-align: center; box-shadow: var(--shadow-sm);
  }
  .scene-card .icon { font-size: 2.5rem; margin-bottom: 16px; }
  .scene-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
  .scene-card p { font-size: 0.95rem; color: var(--text-muted); }

  /* 竖屏体验 */
  .vertical-section { background: var(--bg-gray); }
  .vertical-layout { display: flex; flex-direction: column; gap: 40px; align-items: center; }
  .vertical-features { flex: 1; }
  .vertical-features h2 { font-size: 1.8rem; margin-bottom: 20px; }
  .v-feat-list { display: flex; flex-direction: column; gap: 16px; }
  .v-feat-item { display: flex; gap: 12px; align-items: flex-start; }
  .v-feat-icon { font-size: 1.5rem; background: var(--bg-card); width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 10px; box-shadow: var(--shadow-sm); }
  .v-feat-text h3 { font-size: 1.1rem; margin-bottom: 4px; }
  .v-feat-text p { font-size: 0.9rem; color: var(--text-muted); }
  
  .phone-mockup {
    width: 280px; height: 580px; background: #000; border-radius: 40px;
    padding: 12px; box-shadow: 0 20px 40px rgba(0,0,0,0.2); position: relative;
    border: 4px solid #333; overflow: hidden;
  }
  .phone-screen {
    width: 100%; height: 100%; background: #fff; border-radius: 28px; overflow: hidden;
    position: relative;
  }
  .phone-notch {
    position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 100px; height: 20px; background: #000; border-bottom-left-radius: 12px; border-bottom-right-radius: 12px; z-index: 10;
  }
  .phone-track {
    display: flex; flex-direction: column; height: 100%;
    animation: scrollUp 15s linear infinite;
  }
  .phone-track img { width: 100%; height: 100%; object-fit: cover; flex-shrink: 0; }
  @keyframes scrollUp {
    0% { transform: translateY(0); }
    20% { transform: translateY(0); }
    25% { transform: translateY(-100%); }
    45% { transform: translateY(-100%); }
    50% { transform: translateY(-200%); }
    70% { transform: translateY(-200%); }
    75% { transform: translateY(-300%); }
    95% { transform: translateY(-300%); }
    100% { transform: translateY(-400%); }
  }
  .swipe-hint {
    position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
    background: rgba(0,0,0,0.6); color: #fff; padding: 6px 16px; border-radius: 20px;
    font-size: 0.8rem; animation: bounce 1.5s infinite; z-index: 10;
    display: flex; flex-direction: column; align-items: center; gap: 4px;
  }
  @keyframes bounce { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, -10px); } }

  /* 用户评价 */
  .review-header { display: flex; align-items: center; justify-content: center; gap: 20px; margin-bottom: 40px; }
  .review-score { font-size: 4rem; font-weight: 900; color: var(--color-primary); line-height: 1; font-variant-numeric: tabular-nums; }
  .review-stars { color: #f5c518; font-size: 1.5rem; }
  .review-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
  .review-card {
    background: var(--bg-card); padding: 24px; border-radius: var(--radius-md); box-shadow: var(--shadow-sm);
  }
  .review-user { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
  .review-avatar {
    width: 40px; height: 40px; border-radius: 10px; background: var(--color-primary);
    color: #fff; display: flex; align-items: center; justify-content: center; font-weight: bold;
  }
  .review-meta { font-size: 0.85rem; }
  .review-name { font-weight: bold; }
  .review-tag { color: var(--text-muted); }
  .review-content { font-size: 0.95rem; color: var(--text-main); line-height: 1.7; }

  /* FAQ */
  .faq-section { background: var(--bg-gray); }
  .faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
  .faq-item {
    background: var(--bg-card); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm);
  }
  .faq-q {
    padding: 20px; font-weight: bold; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  }
  .faq-q .arrow { transition: transform 0.3s; font-size: 1.2rem; color: var(--color-primary); }
  .faq-item.active .faq-q .arrow { transform: rotate(180deg); }
  .faq-a {
    padding: 0 20px; max-height: 0; overflow: hidden; transition: all 0.3s ease;
    color: var(--text-muted); font-size: 0.95rem;
  }
  .faq-item.active .faq-a { padding: 0 20px 20px; max-height: 300px; }

  /* 下载区 */
  .download-section { text-align: center; padding: 80px 20px; background: var(--color-primary); color: #fff; }
  .download-section h2 { font-size: 2.2rem; margin-bottom: 16px; }
  .download-section p { font-size: 1.1rem; opacity: 0.9; margin-bottom: 30px; }
  .download-features { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-bottom: 40px; font-size: 0.95rem; }
  .download-features span { background: rgba(255,255,255,0.2); padding: 6px 16px; border-radius: 20px; }
  .btn-download-large {
    display: inline-block; background: #fff; color: var(--color-primary); padding: 16px 48px;
    border-radius: 40px; font-size: 1.2rem; font-weight: bold; transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  }
  .btn-download-large:hover { transform: translateY(-2px); box-shadow: 0 12px 25px rgba(0,0,0,0.2); }

  /* 页脚 */
  .site-footer { padding: 40px 20px 20px; background: var(--bg-main); border-top: 1px solid #eee; color: var(--text-muted); font-size: 0.85rem; text-align: center; }
  .footer-content { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
  .footer-links { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
  .footer-links a:hover { color: var(--color-primary); }
  .footer-bottom { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 20px; }
  .footer-bottom a { color: var(--text-muted); }
  .footer-bottom a:hover { color: var(--color-primary); }

  /* 响应式 */
  @media (min-width: 768px) {
    .nav-links { display: flex; }
    .hamburger { display: none; }
    .mobile-menu { display: none !important; }
    .hero { flex-direction: row; text-align: left; padding: 80px 20px; }
    .hero-text { text-align: left; }
    .hero-actions { justify-content: flex-start; }
    .stats-row { justify-content: flex-start; }
    .play-grid { flex-direction: row; justify-content: center; }
    .merge-arrow { transform: rotate(0deg); }
    .drama-grid { grid-template-columns: repeat(4, 1fr); }
    .calendar-grid { grid-template-columns: repeat(4, 1fr); }
    .scene-grid { grid-template-columns: repeat(2, 1fr); }
    .vertical-layout { flex-direction: row; justify-content: center; }
    .review-grid { grid-template-columns: repeat(2, 1fr); }
  }

  @media (min-width: 1024px) {
    .drama-grid { grid-template-columns: repeat(5, 1fr); }
    .calendar-grid { grid-template-columns: repeat(7, 1fr); }
    .scene-grid { grid-template-columns: repeat(4, 1fr); }
    .review-grid { grid-template-columns: repeat(2, 1fr); }
    .vertical-layout { gap: 60px; }
    .phone-mockup { width: 320px; height: 660px; }
  }

  /* 滚动出现动画 */
  .fade-up { opacity: 1; transform: translateY(0); transition: opacity 0.6s ease, transform 0.6s ease; }
  .fade-up.pre-anim { opacity: 0; transform: translateY(30px); }