:root {
  --bg-color: #fdfcf8;
  --text-main: #332d2b;
  --text-muted: #7a6f6a;
  --accent-red: #c92a2a;
  --accent-gold: #d4af37;
  --accent-gold-light: #f4e3b1;
  --border-color: #e8e2d9;
  --card-bg: #ffffff;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: "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; }
h1, h2, h3 { font-weight: 600; line-height: 1.3; }
img { display: block; max-width: 100%; object-fit: cover; }

/* 顶部导航 */
.header {
  position: sticky;
  top: 0;
  background: rgba(253, 252, 248, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 100;
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: bold;
  color: var(--accent-red);
}
.brand img { height: 32px; width: auto; }
.nav-links {
  display: flex;
  gap: 24px;
  font-size: 15px;
}
.nav-links a:hover { color: var(--accent-red); }
.nav-actions { display: flex; align-items: center; gap: 16px; }
.search-box {
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  background: #fff;
  font-size: 14px;
  outline: none;
}
.btn-download-nav {
  background: var(--accent-red);
  color: #fff;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  transition: opacity 0.3s;
}
.btn-download-nav:hover { opacity: 0.9; }

/* 通用区块 */
.section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}
.section-title {
  text-align: center;
  font-size: 28px;
  margin-bottom: 40px;
  color: var(--text-main);
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}
.section-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--accent-gold);
  margin: 12px auto 0;
}

/* 首屏 */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(180deg, #fff8f8 0%, var(--bg-color) 100%);
}
.hero h1 {
  font-size: 42px;
  margin-bottom: 16px;
  color: var(--text-main);
}
.hero p {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 600px;
}
.hero-stats {
  display: flex;
  gap: 40px;
  margin-bottom: 40px;
  font-size: 15px;
  color: var(--text-muted);
}
.hero-stats span strong { color: var(--accent-red); font-size: 18px; }
.hero-btns {
  display: flex;
  gap: 20px;
}
.btn-hero {
  background: var(--accent-red);
  color: #fff;
  padding: 14px 40px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: bold;
  border: 2px solid var(--accent-red);
  transition: all 0.3s;
}
.btn-hero.outline {
  background: transparent;
  color: var(--accent-red);
}
.btn-hero:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(201,42,42,0.2); }

/* 卡片网格布局 */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 24px;
}
.card {
  background: var(--card-bg);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
  transition: transform 0.3s;
  position: relative;
}
.card:hover { transform: translateY(-4px); }
.card img {
  width: 100%;
  aspect-ratio: 3/4;
  border-bottom: 2px solid var(--accent-gold-light);
}
.card-info { padding: 12px; }
.card-info h3 {
  font-size: 15px;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-info p {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
}

/* 排行榜 */
.rank-board {
  background: var(--accent-red);
  border-radius: 12px;
  padding: 30px;
  color: #fff;
  box-shadow: 0 10px 30px rgba(201,42,42,0.2);
}
.rank-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px dashed rgba(255,255,255,0.2);
}
.rank-item:last-child { border-bottom: none; }
.rank-num {
  font-size: 20px;
  font-weight: bold;
  color: var(--accent-gold-light);
  width: 30px;
  text-align: center;
}
.rank-img {
  width: 50px;
  height: 66px;
  border-radius: 4px;
  border: 1px solid var(--accent-gold-light);
}
.rank-detail { flex: 1; }
.rank-detail h3 { font-size: 16px; margin-bottom: 4px; color: #fff; }
.rank-detail span { font-size: 12px; color: rgba(255,255,255,0.7); }
.rank-hot { font-size: 14px; color: var(--accent-gold-light); }

/* 题材分类 */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}
.category-item {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  transition: all 0.3s;
  cursor: pointer;
}
.category-item:hover { border-color: var(--accent-red); background: #fffaf9; }
.category-icon {
  font-size: 24px;
  color: var(--accent-red);
  margin-bottom: 12px;
  font-weight: bold;
}
.category-item h3 { font-size: 18px; margin-bottom: 8px; }
.category-item p { font-size: 13px; color: var(--text-muted); }

/* 互动区 */
.vote-section {
  background: #fff8f8;
  padding: 60px 20px;
}
.vote-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.vote-item {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--border-color);
}
.vote-item h3 { font-size: 16px; font-weight: normal; }
.btn-vote {
  background: var(--accent-red);
  color: #fff;
  border: none;
  padding: 8px 24px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.3s;
}
.btn-vote:hover { background: #a81e1e; }
.vote-count {
  font-size: 14px;
  color: var(--accent-gold);
  margin-left: 12px;
  font-weight: bold;
}

/* FAQ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
}
.faq-question {
  padding: 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
}
.faq-answer {
  padding: 0 20px 20px;
  color: var(--text-muted);
  font-size: 14px;
  display: none;
}
.faq-item.active .faq-answer { display: block; }
.faq-item.active .faq-question { color: var(--accent-red); }

/* 页脚 */
.footer {
  background: #f4f1eb;
  padding: 40px 20px 20px;
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 60px;
}
.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}
.footer-links { display: flex; gap: 40px; }
.footer-col h4 { font-size: 14px; margin-bottom: 12px; color: var(--text-main); }
.footer-col a { display: block; margin-bottom: 8px; }
.footer-col a:hover { color: var(--accent-red); }
.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  font-size: 12px;
}
.footer-bottom a { color: var(--text-muted); margin: 0 4px; }
.footer-bottom a:hover { color: var(--accent-red); }

/* 移动端悬浮下载 */
.mobile-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fff;
  padding: 10px;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  z-index: 999;
  gap: 10px;
}
.mobile-bar a {
  flex: 1;
  text-align: center;
  padding: 12px 0;
  border-radius: 8px;
  font-weight: bold;
  font-size: 15px;
}
.mobile-bar .btn-android { background: var(--accent-red); color: #fff; }
.mobile-bar .btn-ios { background: var(--accent-gold); color: #fff; }

/* 响应式 */
@media (max-width: 992px) {
  .nav-links { display: none; }
  .hero h1 { font-size: 32px; }
  .hero-stats { flex-direction: column; gap: 10px; }
}
@media (max-width: 768px) {
  .section { padding: 40px 15px; }
  .section-title { font-size: 24px; }
  .grid-cards { grid-template-columns: repeat(2, 1fr); }
  .rank-board { padding: 20px; }
  .footer-links { flex-wrap: wrap; gap: 20px; }
  .mobile-bar { display: flex; }
  body { padding-bottom: 60px; }
}