:root {
  --cream: #fffaf5;
  --pink-white: #fff5f5;
  --tomato: #ff4d4f;
  --tomato-dark: #c0392b;
  --fresh-green: #52c41a;
  --brown: #4a3b32;
  --brown-light: #7a6a60;
  --card-bg: #ffffff;
  --radius: 24px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  background-color: var(--cream);
  color: var(--brown);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* 导航 */
header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 250, 245, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 77, 79, 0.1);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
}
.logo-area { display: flex; align-items: center; gap: 10px; font-weight: bold; font-size: 1.2rem; }
.logo-area img { height: 34px; width: auto; border-radius: 8px; }
.nav-links { display: none; gap: 24px; font-size: 0.95rem; color: var(--brown-light); }
.nav-links a:hover { color: var(--tomato); }
.nav-btn {
  background: var(--tomato); color: #fff; padding: 8px 20px;
  border-radius: 30px; font-weight: bold; font-size: 0.9rem;
  transition: transform 0.2s, background 0.2s;
}
.nav-btn:hover { background: var(--tomato-dark); transform: scale(1.05); }

/* Hero */
.hero {
  margin: 30px auto; background: linear-gradient(135deg, #fff5f5 0%, #fffaf5 100%);
  border-radius: 32px; padding: 50px 30px; display: flex; flex-direction: column;
  align-items: center; text-align: center; position: relative; overflow: hidden;
  border: 1px solid rgba(255, 77, 79, 0.05);
}
.hero::before, .hero::after {
  content: "🍃"; position: absolute; font-size: 30px; opacity: 0.6;
}
.hero::before { top: 20px; left: 20px; transform: rotate(-30deg); }
.hero::after { bottom: 20px; right: 20px; transform: rotate(150deg); }
.hero h1 { font-size: 2.2rem; color: var(--tomato-dark); margin-bottom: 16px; line-height: 1.3; }
.hero p { font-size: 1.05rem; color: var(--brown-light); max-width: 600px; margin-bottom: 30px; }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.btn-primary {
  background: var(--tomato); color: #fff; padding: 12px 30px;
  border-radius: 30px; font-weight: bold; font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(255, 77, 79, 0.3); transition: transform 0.2s;
}
.btn-primary:hover { transform: translateY(-3px); }
.btn-secondary {
  background: transparent; color: var(--fresh-green); border: 2px solid var(--fresh-green);
  padding: 10px 30px; border-radius: 30px; font-weight: bold; font-size: 1.1rem;
  transition: all 0.2s;
}
.btn-secondary:hover { background: var(--fresh-green); color: #fff; }
.hero-img-wrap { margin-top: 40px; width: 100%; max-width: 800px; border-radius: 20px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }

/* Section Common */
section { padding: 60px 0; }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { font-size: 1.8rem; color: var(--tomato-dark); margin-bottom: 10px; }
.section-title p { color: var(--brown-light); font-size: 1rem; }

/* 今日掉落 - 横向滑动 */
.scroll-row {
  display: flex; gap: 20px; overflow-x: auto; padding-bottom: 20px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.scroll-row::-webkit-scrollbar { height: 6px; }
.scroll-row::-webkit-scrollbar-thumb { background: var(--tomato); border-radius: 10px; }
.card-scroll {
  flex: 0 0 200px; scroll-snap-align: start; background: var(--card-bg);
  border-radius: var(--radius); padding: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.03);
  transition: transform 0.2s;
}
.card-scroll:hover { transform: translateY(-5px); }
.card-scroll img { width: 100%; height: 260px; object-fit: cover; border-radius: 16px; margin-bottom: 10px; }
.card-scroll h3 { font-size: 0.95rem; margin-bottom: 4px; }
.card-scroll .tag { font-size: 0.75rem; color: var(--tomato); background: #fff0f0; padding: 2px 8px; border-radius: 10px; display: inline-block; }

/* 神仙榜单 */
.rank-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.rank-main { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: 0 8px 20px rgba(0,0,0,0.08); }
.rank-main img { width: 100%; height: 400px; object-fit: cover; }
.rank-main .badge {
  position: absolute; top: 15px; left: 15px; background: var(--tomato); color: #fff;
  padding: 4px 12px; border-radius: 20px; font-weight: bold; font-size: 0.9rem;
}
.rank-list { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.rank-item {
  display: flex; gap: 10px; background: var(--card-bg); border-radius: 16px; padding: 10px;
  align-items: center; box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}
.rank-item img { width: 60px; height: 80px; object-fit: cover; border-radius: 8px; }
.rank-item .info h4 { font-size: 0.9rem; margin-bottom: 4px; }
.rank-item .info span { font-size: 0.75rem; color: var(--brown-light); }

/* 分类库 */
.tags-cloud { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.tag-pill {
  background: var(--card-bg); padding: 10px 24px; border-radius: 30px;
  font-size: 1rem; color: var(--brown); box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  border: 1px solid rgba(255,77,79,0.1); transition: all 0.2s;
}
.tag-pill:hover { border-color: var(--tomato); color: var(--tomato); transform: scale(1.05); }

/* 下饭专区 2x2 */
.food-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.food-card {
  background: var(--card-bg); border-radius: var(--radius); padding: 20px;
  display: flex; flex-direction: column; gap: 15px; box-shadow: 0 6px 20px rgba(0,0,0,0.04);
  border: 2px dashed rgba(255, 77, 79, 0.2);
}
.food-card img { width: 100%; height: 200px; object-fit: cover; border-radius: 16px; }
.food-card h3 { color: var(--tomato-dark); }
.food-card p { font-size: 0.9rem; color: var(--brown-light); }

/* 宝藏专栏 */
.treasure-grid { display: grid; grid-template-columns: 1fr; gap: 30px; }
.treasure-card {
  display: flex; flex-direction: column; background: var(--card-bg);
  border-radius: var(--radius); overflow: hidden; box-shadow: 0 6px 20px rgba(0,0,0,0.04);
}
.treasure-card img { width: 100%; height: 250px; object-fit: cover; }
.treasure-content { padding: 25px; }
.treasure-content h3 { color: var(--tomato-dark); margin-bottom: 10px; }
.treasure-content p { font-size: 0.95rem; color: var(--brown-light); margin-bottom: 15px; }
.treasure-quote { font-size: 0.85rem; color: var(--fresh-green); font-weight: bold; }

/* 漫友放映室 */
.living-room { display: flex; flex-direction: column; gap: 20px; }
.living-video { width: 100%; border-radius: var(--radius); overflow: hidden; position: relative; }
.living-video img { width: 100%; height: auto; }
.danmaku-box {
  background: #fff5f5; border-radius: var(--radius); padding: 20px;
  border: 1px solid rgba(255,77,79,0.1); display: flex; flex-direction: column; gap: 10px;
}
.danmaku-item { font-size: 0.9rem; background: #fff; padding: 8px 15px; border-radius: 20px; box-shadow: 0 2px 5px rgba(0,0,0,0.02); display: inline-block; align-self: flex-start; }

/* 树洞评价 */
.reviews-grid { display: grid; grid-template-columns: 1fr; gap: 15px; }
.review-bubble {
  background: var(--card-bg); padding: 18px; border-radius: 20px 20px 20px 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03); font-size: 0.9rem; position: relative;
}
.review-bubble::after {
  content: ""; position: absolute; bottom: 0; left: -10px;
  border: 10px solid transparent; border-top-color: var(--card-bg); border-right-color: var(--card-bg);
}

/* 截图墙 */
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.gallery-item { border-radius: 16px; overflow: hidden; background: #fff; padding: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.03); }
.gallery-item img { width: 100%; height: 180px; object-fit: cover; border-radius: 12px; }

/* 年度神作 */
.masterpiece {
  background: linear-gradient(135deg, #8b0000 0%, #c0392b 100%);
  border-radius: 32px; padding: 40px 25px; color: #fff; display: flex; flex-direction: column; gap: 20px;
}
.masterpiece h2 { font-size: 1.8rem; margin-bottom: 10px; }
.masterpiece p { font-size: 0.95rem; opacity: 0.9; line-height: 1.8; }
.masterpiece img { border-radius: 16px; width: 100%; max-width: 300px; margin: 0 auto; box-shadow: 0 10px 20px rgba(0,0,0,0.3); }

/* 追番周历 */
.calendar { background: var(--card-bg); border-radius: var(--radius); padding: 20px; box-shadow: 0 4px 15px rgba(0,0,0,0.03); }
.calendar-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px dashed #eee; }
.calendar-row:last-child { border-bottom: none; }
.calendar-row.today { background: #fff0f0; border-radius: 12px; padding: 12px 15px; border-bottom: none; }
.calendar-row .day { font-weight: bold; width: 60px; }
.calendar-row.today .day { color: var(--tomato); }
.calendar-row .anime { color: var(--brown-light); font-size: 0.9rem; }

/* 下载区 */
.download-section {
  background: var(--tomato); color: #fff; padding: 60px 0; border-radius: 40px 40px 0 0;
  margin-top: 60px;
}
.download-inner { display: flex; flex-direction: column; gap: 40px; align-items: center; }
.download-text { text-align: center; width: 100%; }
.download-text h2 { font-size: 2rem; margin-bottom: 15px; }
.download-text p { font-size: 1.05rem; margin-bottom: 25px; opacity: 0.9; }
.features { display: flex; flex-wrap: wrap; gap: 15px; justify-content: center; margin-bottom: 30px; }
.feature-item { background: rgba(255,255,255,0.2); padding: 8px 16px; border-radius: 20px; font-size: 0.9rem; }
.download-btns { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; margin-bottom: 30px; }
.btn-white { background: #fff; color: var(--tomato); padding: 12px 30px; border-radius: 30px; font-weight: bold; }
.btn-dark { background: var(--brown); color: #fff; padding: 12px 30px; border-radius: 30px; font-weight: bold; }
.faq-list { text-align: left; margin-top: 20px; max-width: 600px; margin-left: auto; margin-right: auto; }
.faq-item { margin-bottom: 15px; background: rgba(255,255,255,0.1); padding: 15px; border-radius: 16px; }
.faq-item h4 { font-size: 1rem; margin-bottom: 5px; }
.faq-item p { font-size: 0.9rem; opacity: 0.9; }
.download-img-wrap { width: 100%; max-width: 400px; border-radius: 20px; overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,0.2); transform: rotate(-5deg); transition: transform 0.3s; }
.download-img-wrap:hover { transform: rotate(0deg) scale(1.02); }

/* 悬浮按钮 */
.float-btn {
  position: fixed; bottom: 30px; right: 20px; z-index: 999;
  background: linear-gradient(135deg, var(--tomato) 50%, var(--fresh-green) 50%);
  color: #fff; padding: 15px 25px; border-radius: 30px; font-weight: bold;
  box-shadow: 0 10px 20px rgba(255,77,79,0.3); cursor: pointer;
  display: flex; align-items: center; gap: 10px; border: none;
  font-family: inherit; font-size: 1rem;
}
.float-tip {
  position: absolute; bottom: 120%; right: 0; background: #fff; color: var(--brown);
  padding: 10px 15px; border-radius: 12px; font-size: 0.85rem; white-space: nowrap;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1); opacity: 0; visibility: hidden; transition: all 0.3s;
}
.float-btn:hover .float-tip, .float-btn.show-tip .float-tip { opacity: 1; visibility: visible; }

/* 页脚 */
footer {
  background: var(--cream); padding: 40px 20px; text-align: center;
  color: var(--brown-light); font-size: 0.85rem; border-top: 1px solid rgba(0,0,0,0.05);
}
footer a { color: var(--brown-light); }
footer a:hover { color: var(--tomato); }
.footer-about { margin-top: 20px; text-align: left; max-width: 800px; margin-left: auto; margin-right: auto; }
.footer-about summary { cursor: pointer; font-size: 0.85rem; color: var(--brown-light); list-style: none; display: inline-block; }
.footer-about summary::-webkit-details-marker { display: none; }
.footer-about .about-content { margin-top: 15px; line-height: 1.8; font-size: 0.85rem; }
.footer-about .about-content a { margin-right: 12px; display: inline-block; }
.update-time { margin-top: 15px; font-size: 0.75rem; color: #999; }

/* 响应式 */
@media (min-width: 768px) {
  .nav-links { display: flex; }
  .hero h1 { font-size: 2.8rem; }
  .rank-grid { grid-template-columns: 1fr 1fr; }
  .rank-main img { height: 100%; min-height: 400px; }
  .food-grid { grid-template-columns: 1fr 1fr; }
  .treasure-grid { grid-template-columns: 1fr 1fr; }
  .living-room { flex-direction: row; align-items: stretch; }
  .living-video { width: 60%; }
  .danmaku-box { width: 40%; }
  .reviews-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .masterpiece { flex-direction: row; align-items: center; }
  .masterpiece img { flex: 0 0 300px; }
  .download-inner { flex-direction: row; text-align: left; }
  .download-text { text-align: left; width: 55%; }
  .features { justify-content: flex-start; }
  .download-btns { justify-content: flex-start; }
  .faq-list { margin-left: 0; }
  .download-img-wrap { max-width: 400px; width: 45%; }
}
@media (min-width: 1024px) {
  .hero { padding: 80px 50px; }
  .hero h1 { font-size: 3.2rem; }
  .reviews-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-item img { height: 220px; }
}