:root {
  --bg-main: #f7f8fa;
  --text-main: #1a1a1a;
  --text-muted: #666;
  --brand: #ff4757;
  --brand-dark: #e84118;
  --card-bg: #ffffff;
  --border-radius: 12px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  padding-bottom: 70px;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* Header */
header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
}
.logo-area { display: flex; align-items: center; gap: 10px; font-weight: bold; font-size: 18px; }
.logo-area img { height: 32px; width: auto; border-radius: 4px; }
.desktop-nav { display: none; }
.menu-btn {
  display: block;
  background: none;
  border: none;
  font-size: 16px;
  color: var(--text-main);
  cursor: pointer;
  padding: 8px;
}
.mobile-nav {
  display: none;
  flex-direction: column;
  background: #fff;
  padding: 10px 16px;
  border-top: 1px solid #eee;
}
.mobile-nav.active { display: flex; }
.mobile-nav a { padding: 10px 0; color: var(--text-main); border-bottom: 1px solid #f0f0f0; }
.mobile-nav a:hover { color: var(--brand); }

/* Hero */
.hero {
  background: linear-gradient(135deg, #fff 0%, #ffeef0 100%);
  padding: 30px 0;
}
.hero-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.hero-text h1 {
  font-size: 28px;
  line-height: 1.3;
  margin-bottom: 16px;
  color: var(--text-main);
}
.hero-text p {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.download-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.3s;
}
.btn-android { background: var(--brand); color: #fff; }
.btn-android:hover { background: var(--brand-dark); }
.btn-ios { background: #1a1a1a; color: #fff; }
.btn-ios:hover { background: #333; }

.hero-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.hero-images img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.hero-images img:nth-child(2) { margin-top: 16px; }

/* Marquee */
.marquee-wrap {
  background: #1a1a1a;
  padding: 12px 0;
  overflow: hidden;
  white-space: nowrap;
}
.marquee-text {
  display: inline-block;
  font-size: 16px;
  font-weight: bold;
  background: linear-gradient(90deg, #ff4757, #ffa502, #2ed573);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: marquee 15s linear infinite;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Sections Base */
section { padding: 40px 0; }
.section-title { font-size: 22px; margin-bottom: 12px; font-weight: bold; }
.section-desc { font-size: 14px; color: var(--text-muted); margin-bottom: 24px; }

/* 今日吃瓜 - 左图右文 */
.sec-today { background: #fff; }
.card-img-right {
  display: flex; flex-direction: column; gap: 16px;
  background: #f9f9f9; padding: 16px; border-radius: var(--border-radius);
  margin-bottom: 12px;
}
.card-img-right img { flex: 0 0 120px; width: 120px; height: 160px; object-fit: cover; border-radius: 8px; }
.card-info h3 { font-size: 16px; margin-bottom: 8px; }
.card-info p { font-size: 14px; color: var(--text-muted); }

/* 本周热瓜 - 话题串 */
.sec-week { background: #f0f8ff; }
.thread-list { display: flex; flex-direction: column; gap: 16px; }
.thread-item {
  background: #fff; padding: 16px; border-radius: var(--border-radius);
  border-left: 4px solid #1e90ff;
}
.thread-item h3 { font-size: 16px; margin-bottom: 8px; }
.thread-item p { font-size: 14px; color: #555; }

/* 校园大赛 - 卡片网格 */
.sec-school { background: #fdf5e6; }
.grid-cards { display: grid; grid-template-columns: 1fr; gap: 16px; }
.grid-card {
  background: #fff; border-radius: var(--border-radius);
  overflow: hidden;
  transition: transform 0.3s;
}
.grid-card:hover { transform: translateY(-4px); }
.grid-card img { width: 100%; height: 180px; object-fit: cover; }
.grid-card-info { padding: 12px; }
.grid-card-info h3 { font-size: 15px; margin-bottom: 6px; }
.grid-card-info p { font-size: 13px; color: #666; }

/* 社会时间 - 弹幕墙风格 */
.sec-society { background: #2f3542; color: #fff; }
.sec-society .section-title { color: #fff; }
.sec-society .section-desc { color: #a4b0be; }
.danmaku-wall { display: flex; flex-direction: column; gap: 10px; }
.danmaku-item {
  background: rgba(255,255,255,0.1); padding: 10px 16px;
  border-radius: 20px; font-size: 14px; align-self: flex-start;
  transition: background 0.3s;
}
.danmaku-item:hover { background: rgba(255,255,255,0.2); }
.danmaku-item:nth-child(even) { align-self: flex-end; }

/* 隐私安全 - 问答 */
.sec-privacy { background: #e8f5e9; }
.qa-item { background: #fff; padding: 16px; border-radius: 8px; margin-bottom: 12px; }
.qa-item h3 { font-size: 16px; color: #2e7d32; margin-bottom: 8px; }
.qa-item p { font-size: 14px; color: #555; }

/* 意见反馈 - 帖子+回帖 */
.sec-feedback { background: #fff3e0; }
.post-item { background: #fff; padding: 16px; border-radius: var(--border-radius); margin-bottom: 16px; }
.post-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.post-head img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.post-head span { font-size: 14px; font-weight: bold; }
.post-body { font-size: 15px; margin-bottom: 10px; }
.reply-item { background: #fafafa; padding: 10px; border-radius: 8px; font-size: 13px; color: #666; margin-top: 8px; }
.reply-item strong { color: #333; }

/* 常见问题 - 列表 */
.sec-faq { background: #f3e5f5; }
.faq-item { border-bottom: 1px solid #e1bee7; padding: 12px 0; }
.faq-item h3 { font-size: 16px; margin-bottom: 6px; color: #6a1b9a; }
.faq-item p { font-size: 14px; color: #555; }

/* 下载专区 */
.sec-download { background: #fff; }
.download-layout {
  display: flex; flex-direction: column; gap: 24px;
}
.download-steps h3 { font-size: 18px; margin-bottom: 8px; }
.download-steps p { font-size: 14px; color: var(--text-muted); margin-bottom: 16px; }
.step-list { list-style: none; margin-bottom: 24px; }
.step-list li { position: relative; padding-left: 20px; margin-bottom: 12px; font-size: 14px; }
.step-list li::before {
  content: ''; position: absolute; left: 0; top: 6px;
  width: 8px; height: 8px; background: var(--brand); border-radius: 50%;
}
.download-img img { width: 100%; max-width: 300px; border-radius: var(--border-radius); margin: 0 auto; }

/* 图片墙 */
.gallery-wall {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 24px;
}
.gallery-wall img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: 8px;
}

/* Floating Download */
.floating-bar {
  position: fixed; bottom: 0; left: 0; width: 100%;
  background: #fff; box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  z-index: 99; padding: 10px 16px;
  display: flex; align-items: center; justify-content: space-between;
}
.float-info { display: flex; align-items: center; gap: 10px; }
.float-info img { width: 40px; height: 40px; border-radius: 8px; }
.float-text { display: flex; flex-direction: column; }
.float-text strong { font-size: 14px; }
.float-text span { font-size: 12px; color: #888; }
.float-btns { display: flex; gap: 8px; }
.float-btns .btn { padding: 8px 12px; font-size: 13px; border-radius: 16px; }

/* Footer */
footer {
  background: #1a1a1a; color: #888;
  padding: 30px 16px; font-size: 13px;
  text-align: center;
}
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-bottom: 16px; }
.footer-links a { color: #aaa; transition: color 0.3s; }
.footer-links a:hover { color: #fff; }
.footer-copy { margin-bottom: 8px; line-height: 1.8; }
.footer-copy a { color: #888; text-decoration: underline; }
.update-time { font-size: 12px; color: #666; }

/* Responsive 768px */
@media (min-width: 768px) {
  .desktop-nav { display: flex; gap: 20px; }
  .desktop-nav a { font-size: 14px; color: var(--text-main); transition: color 0.3s; }
  .desktop-nav a:hover { color: var(--brand); }
  .menu-btn { display: none; }
  .mobile-nav { display: none !important; }
  .hero-content { flex-direction: row; align-items: center; gap: 40px; }
  .hero-text { flex: 1; }
  .hero-images { flex: 1; }
  .card-img-right { flex-direction: row; }
  .card-img-right img { width: 140px; height: 180px; }
  .grid-cards { grid-template-columns: repeat(2, 1fr); }
  .download-layout { flex-direction: row; align-items: center; }
  .download-steps { flex: 1; }
  .download-img { flex: 0 0 300px; }
  .gallery-wall { grid-template-columns: repeat(3, 1fr); }
}

/* Responsive 1024px */
@media (min-width: 1024px) {
  .hero-content { gap: 60px; }
  .hero-text h1 { font-size: 36px; }
  .grid-cards { grid-template-columns: repeat(3, 1fr); }
  .gallery-wall { grid-template-columns: repeat(4, 1fr); }
  section { padding: 60px 0; }
}