:root {
  --bg-base: #121212;
  --bg-dark: #1e1e1e;
  --bg-light: #2a2a2a;
  --text-main: #e0e0e0;
  --text-muted: #9e9e9e;
  --accent: #ff4757;
  --accent-grad: linear-gradient(90deg, #ff6b81, #ff4757, #ffa502);
  --radius: 12px;
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background-color: var(--bg-base);
  color: var(--text-main);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
  padding-bottom: 140px;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; object-fit: cover; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(30, 30, 30, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #333;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
}
.logo-wrap { display: flex; align-items: center; gap: 10px; font-weight: bold; font-size: 18px; }
.logo-wrap img { height: 32px; border-radius: 6px; }
.nav-links {
  display: none;
  gap: 20px;
  font-size: 14px;
}
.nav-links a:hover { color: var(--accent); text-decoration: underline; }
.menu-btn {
  display: block;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 24px;
  cursor: pointer;
}

/* Hero */
.hero {
  padding: 40px 20px;
  background: linear-gradient(180deg, #1e1e1e 0%, #121212 100%);
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.hero-text h1 {
  font-size: 28px;
  line-height: 1.3;
  margin-bottom: 16px;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-text p {
  color: var(--text-muted);
  margin-bottom: 24px;
}
.download-btns {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: bold;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.2s;
  background: var(--bg-light);
  border: 1px solid #444;
}
.btn:hover { transform: translateY(-2px); border-color: var(--accent); }
.btn-primary {
  background: var(--accent);
  color: #fff;
  border: none;
}
.hero-gallery {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
  height: 240px;
}
.hero-gallery img {
  border-radius: var(--radius);
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-gallery img:first-child {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
}
.hero-gallery img:not(:first-child) {
  grid-column: 2 / 3;
}

/* Marquee */
.marquee-wrap {
  overflow: hidden;
  background: #000;
  padding: 10px 0;
  white-space: nowrap;
}
.marquee-text {
  display: inline-block;
  font-size: 18px;
  font-weight: bold;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: marquee 10s linear infinite;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Sections Common */
section {
  padding: 40px 20px;
}
.sec-title {
  font-size: 22px;
  margin-bottom: 20px;
  padding-left: 12px;
  border-left: 4px solid var(--accent);
}

/* Section 1: 今日吃瓜 - 帖子卡片 */
.sec-today { background-color: #1a1a1a; }
.post-list { display: flex; flex-direction: column; gap: 15px; }
.post-card {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  gap: 15px;
}
.post-card img { width: 80px; height: 80px; border-radius: 8px; flex-shrink: 0; }
.post-info h3 { font-size: 16px; margin-bottom: 6px; color: #fff; }
.post-info p { font-size: 13px; color: var(--text-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Section 2: 本周热瓜 - 图文交错 */
.sec-week { background-color: #121a2a; }
.week-item { display: flex; flex-direction: column; gap: 15px; margin-bottom: 25px; }
.week-item:nth-child(even) { flex-direction: column-reverse; }
.week-item img { width: 100%; height: 200px; border-radius: var(--radius); }
.week-item h3 { margin-bottom: 10px; color: #fff; }

/* Section 3: 校园大赛 - 横向滑动 */
.sec-campus { background-color: #2a1218; }
.scroll-x {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: none;
}
.scroll-x::-webkit-scrollbar { display: none; }
.campus-card {
  flex: 0 0 240px;
  background: var(--bg-dark);
  border-radius: var(--radius);
  overflow: hidden;
}
.campus-card img { width: 100%; height: 130px; }
.campus-card div { padding: 12px; }
.campus-card h3 { font-size: 15px; margin-bottom: 6px; color: #fff; }
.campus-card p { font-size: 12px; color: var(--text-muted); }

/* Section 4: 社会时间 - 话题串 */
.sec-society { background-color: #1a2a1a; }
.thread { border-left: 2px solid #333; padding-left: 20px; margin-left: 10px; }
.thread-node { position: relative; margin-bottom: 20px; }
.thread-node::before {
  content: '';
  position: absolute;
  left: -26px; top: 6px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
}
.thread-node h3 { font-size: 16px; color: #fff; margin-bottom: 5px; }
.thread-node p { font-size: 14px; color: var(--text-muted); }

/* Section 5: 隐私安全 - 问答式（同步用上常见问题的骨架，但这块是隐私） */
.sec-privacy { background-color: #1f1a2a; }
.qa-box { background: var(--bg-light); padding: 15px; border-radius: var(--radius); margin-bottom: 12px; }
.qa-box h3 { font-size: 15px; color: #fff; margin-bottom: 8px; }
.qa-box p { font-size: 13px; color: var(--text-muted); }

/* Section 6: 意见反馈 - 表单样式（仅展示） */
.sec-feedback { background-color: #1a1a2a; }
.feedback-form { background: var(--bg-light); padding: 20px; border-radius: var(--radius); display: flex; flex-direction: column; gap: 15px; }
.feedback-form textarea { width: 100%; height: 100px; background: #111; border: 1px solid #333; border-radius: 8px; color: #fff; padding: 10px; resize: none; }
.feedback-list { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.feedback-item { display: flex; gap: 10px; align-items: flex-start; background: var(--bg-dark); padding: 10px; border-radius: 8px; }
.feedback-item img { width: 30px; height: 30px; border-radius: 50%; }
.feedback-item p { font-size: 13px; color: var(--text-muted); }

/* Section 7: 常见问题 - 列表 */
.sec-faq { background-color: #2a2a1a; }
.faq-list { display: flex; flex-direction: column; gap: 15px; }
.faq-item { border-bottom: 1px solid #333; padding-bottom: 15px; }
.faq-item h3 { font-size: 16px; color: #fff; margin-bottom: 8px; }
.faq-item p { font-size: 14px; color: var(--text-muted); }

/* Section 8: 下载专区 */
.sec-download { background-color: #121212; text-align: center; }
.download-steps { text-align: left; background: var(--bg-dark); padding: 20px; border-radius: var(--radius); margin-bottom: 20px; }
.download-steps ol { margin-left: 20px; color: var(--text-muted); font-size: 14px; margin-bottom: 15px; }
.download-steps li { margin-bottom: 8px; }
.download-steps img { width: 100%; border-radius: 8px; margin-top: 10px; }

/* Footer */
.site-footer {
  background-color: #0a0a0a;
  padding: 30px 20px;
  font-size: 12px;
  color: #666;
  text-align: center;
  border-top: 1px solid #222;
}
.site-footer p { margin-bottom: 10px; }
.site-footer a { color: #888; }
.site-footer a:hover { color: #aaa; }

/* Float Download */
.float-bar {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(30, 30, 30, 0.95);
  border: 1px solid #444;
  border-radius: 20px;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  gap: 15px;
  z-index: 999;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
  width: 90%;
  max-width: 400px;
}
.float-bar img { height: 28px; border-radius: 4px; }
.float-info { flex: 1; overflow: hidden; }
.float-info p { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #ccc; }
.float-btns { display: flex; gap: 8px; }
.float-btns .btn { padding: 6px 10px; font-size: 12px; }

/* Media Queries */
@media (min-width: 768px) {
  .hero { flex-direction: row; align-items: center; padding: 60px 40px; }
  .hero-text { flex: 1; padding-right: 40px; }
  .hero-gallery { flex: 1; height: 300px; }
  .week-item { flex-direction: row; align-items: center; }
  .week-item:nth-child(even) { flex-direction: row-reverse; }
  .week-item img { width: 50%; height: 250px; }
  .week-item .week-content { width: 50%; padding: 20px; }
  .scroll-x { gap: 20px; }
  .campus-card { flex: 0 0 300px; }
  .campus-card img { height: 180px; }
}
@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .menu-btn { display: none; }
  .hero-text h1 { font-size: 36px; }
  .container { max-width: 1200px; margin: 0 auto; }
  .post-list { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .qa-box-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
}