:root {
  --bg-color: #f9f7f1;
  --text-main: #2c3a2e;
  --text-light: #556b59;
  --primary-green: #7b9e6b;
  --light-green: #a4c496;
  --berry-red: #c75658;
  --wood-color: #d4b594;
  --wood-dark: #8c6a4d;
  --border-color: #dcd5c5;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", 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 { max-width: 100%; display: block; }

/* Header & Nav */
header { position: sticky; top: 0; background-color: rgba(249, 247, 241, 0.95); backdrop-filter: blur(5px); z-index: 100; border-bottom: 1px solid var(--border-color); }
.top-bar { display: flex; align-items: center; justify-content: space-between; padding: 10px 20px; max-width: 1200px; margin: 0 auto; }
.brand-logo { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: bold; color: var(--primary-green); }
.brand-logo img { height: 32px; width: auto; border-radius: 6px; }
.wood-sign { display: flex; gap: 15px; overflow-x: auto; scrollbar-width: none; }
.wood-sign::-webkit-scrollbar { display: none; }
.wood-sign a { font-size: 14px; color: var(--wood-dark); padding: 8px 12px; background: var(--wood-color); border-radius: 4px; border: 1px solid #c2a282; white-space: nowrap; min-height: 48px; display: flex; align-items: center; }
.wood-sign a:hover { background: #e3cbb2; }
.search-box { display: flex; align-items: center; gap: 10px; }
.search-box input { padding: 8px 12px; border: 1px solid var(--border-color); border-radius: 20px; outline: none; background: #fff; min-height: 36px; }
.btn-download-small { background: var(--berry-red); color: #fff; padding: 8px 16px; border-radius: 20px; font-weight: bold; min-height: 48px; display: flex; align-items: center; }
.btn-download-small:hover { background: #a54042; }

/* Hero */
.hero { padding: 40px 20px; text-align: center; max-width: 1200px; margin: 0 auto; position: relative; }
.hero h1 { font-size: 32px; color: var(--primary-green); margin-bottom: 15px; }
.hero p { color: var(--text-light); max-width: 600px; margin: 0 auto 30px; }
.hero-stats { display: flex; justify-content: center; gap: 30px; margin-bottom: 40px; }
.stat-item { font-size: 14px; color: var(--text-light); }
.stat-item span { display: block; font-size: 24px; font-weight: bold; color: var(--berry-red); }
.fruit-tree { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-cover { width: 100px; height: 150px; border-radius: 8px; object-fit: cover; animation: swing 3s ease-in-out infinite alternate; border: 2px solid #fff; box-shadow: 0 4px 8px rgba(0,0,0,0.1); }
.hero-cover:nth-child(even) { animation-delay: 1s; }
.hero-cover:nth-child(3n) { animation-delay: 2s; }
.download-buttons { display: flex; justify-content: center; gap: 20px; }
.btn-large { display: flex; align-items: center; justify-content: center; width: 200px; height: 60px; border-radius: 30px; font-size: 18px; font-weight: bold; color: #fff; min-height: 48px; }
.btn-android { background: var(--primary-green); }
.btn-ios { background: var(--berry-red); }
@keyframes swing { from { transform: rotate(-5deg); } to { transform: rotate(5deg); } }

/* Sections */
section { padding: 50px 20px; max-width: 1200px; margin: 0 auto; border-bottom: 1px dashed var(--border-color); }
h2 { font-size: 26px; margin-bottom: 15px; text-align: center; color: var(--primary-green); }
.section-intro { text-align: center; color: var(--text-light); margin-bottom: 30px; max-width: 800px; margin-left: auto; margin-right: auto; }
h3 { font-size: 18px; margin-bottom: 10px; }

/* Grid Cards */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 15px; }
.card { background: #fff; border-radius: 8px; padding: 10px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); text-align: center; transition: transform 0.2s; }
.card:hover { transform: translateY(-3px); }
.card img { width: 100%; aspect-ratio: 2/3; object-fit: cover; border-radius: 4px; margin-bottom: 8px; }
.card-title { font-size: 14px; font-weight: bold; margin-bottom: 5px; }
.card-desc { font-size: 12px; color: var(--text-light); }

/* Calendar */
.timeline { display: flex; flex-direction: column; gap: 20px; }
.batch { border: 1px solid var(--border-color); padding: 15px; border-radius: 8px; background: #fff; }
.batch-header { display: flex; justify-content: space-between; font-weight: bold; color: var(--wood-dark); margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--border-color); }
.batch-covers { display: flex; gap: 10px; overflow-x: auto; }
.batch-covers img { width: 80px; height: 120px; object-fit: cover; border-radius: 4px; }

/* Rankings */
.rank-list { display: flex; flex-direction: column; gap: 10px; }
.rank-item { display: flex; align-items: center; gap: 15px; background: #fff; padding: 10px; border-radius: 8px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.rank-num { font-size: 20px; font-weight: bold; width: 30px; text-align: center; color: #ccc; }
.rank-item:nth-child(1) .rank-num { color: #ffd700; font-size: 26px; }
.rank-item:nth-child(2) .rank-num { color: #c0c0c0; }
.rank-item:nth-child(3) .rank-num { color: #cd7f32; }
.rank-item img { width: 60px; height: 90px; object-fit: cover; border-radius: 4px; }
.rank-info { flex: 1; }
.rank-info h3 { margin: 0 0 5px 0; }
.rank-desc { font-size: 12px; color: var(--text-light); display: flex; gap: 10px; }
.rank-score { color: var(--berry-red); font-weight: bold; }

/* Categories */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.cat-card { background: #fff; padding: 15px; border-radius: 8px; border: 1px solid var(--border-color); }
.cat-card h3 { color: var(--primary-green); margin-bottom: 10px; }
.cat-covers { display: flex; gap: 10px; }
.cat-covers img { width: 70px; height: 100px; object-fit: cover; border-radius: 4px; }

/* Footer */
footer { background: #f0ece1; padding: 30px 20px; font-size: 12px; color: var(--text-light); text-align: center; }
.footer-links { display: flex; justify-content: center; gap: 20px; margin-bottom: 15px; flex-wrap: wrap; }
.footer-links a { color: var(--text-light); }
.footer-links a:hover { color: var(--primary-green); }

/* Responsive */
@media (max-width: 768px) {
  .top-bar { flex-wrap: wrap; }
  .wood-sign { display: none; }
  .hero h1 { font-size: 24px; }
  .hero-stats { flex-direction: column; gap: 15px; }
  .fruit-tree { display: none; }
  .btn-large { width: 100%; max-width: 300px; }
  .download-buttons { flex-direction: column; align-items: center; }
  .grid-cards { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
}