:root {
  --bg-main: #f4f6f9;
  --bg-dark: #12151c;
  --bg-card: #ffffff;
  --text-main: #1a1d24;
  --text-muted: #5a6270;
  --text-light: #f8f9fa;
  --accent-pink: #e84a84;
  --accent-gold: #ffb830;
  --accent-blue: #3b82f6;
  --accent-purple: #8b5cf6;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 80px; /* 为底部浮动下载留出空间 */
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
  object-fit: cover;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */
.site-header {
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
}

.brand img {
  height: 32px;
  width: auto;
  border-radius: 6px;
}

.nav-links {
  display: none;
  gap: 20px;
  font-size: 15px;
  font-weight: 500;
}

.nav-links a {
  color: var(--text-muted);
  transition: color 0.2s;
  position: relative;
}

.nav-links a:hover {
  color: var(--accent-pink);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-pink);
  transition: width 0.2s;
}

.nav-links a:hover::after {
  width: 100%;
}

.mobile-menu-btn {
  display: block;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-main);
  cursor: pointer;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  background: #fff;
  padding: 10px 16px;
  border-top: 1px solid #eee;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
  color: var(--text-main);
  font-weight: 500;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #1e1b2e 0%, #2d2440 100%);
  color: var(--text-light);
  padding: 40px 0;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero h1 {
  font-size: 28px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.hero h1 .highlight {
  color: var(--accent-gold);
}

.hero p {
  font-size: 15px;
  color: #b0b5c1;
  max-width: 600px;
}

.download-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.15);
  transition: all 0.2s;
}

.download-btn:hover {
  background: var(--accent-pink);
  border-color: var(--accent-pink);
}

.hero-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #2a2438;
}

.hero-slider .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slider .slide.active {
  opacity: 1;
}

.hero-slider .slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #1a1625;
}

.slider-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.slider-dots span {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: background 0.2s;
}

.slider-dots span.active {
  background: var(--accent-gold);
}

.marquee-container {
  background: #15121e;
  overflow: hidden;
  white-space: nowrap;
  padding: 10px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.marquee-text {
  display: inline-block;
  animation: marquee 20s linear infinite;
  font-weight: 700;
  font-size: 14px;
  background: linear-gradient(90deg, #ff6b6b, #ffd93d, #6bcb77, #4d96ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Sections Common */
.section-block {
  padding: 50px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 32px;
}

.section-header h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
}

.section-header p {
  font-size: 14px;
  color: var(--text-muted);
}

/* Block 1: 今日吃瓜 */
.section-today {
  background: #fff8f0;
}

.grid-today {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.today-card {
  display: flex;
  gap: 16px;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 12px;
  box-shadow: var(--shadow-sm);
  align-items: flex-start;
}

.today-card img {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.today-card-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.today-card-text h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #333;
}

.today-card-text p {
  font-size: 13px;
  color: #777;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Block 2: 本周热瓜 */
.section-week {
  background: #f0f4ff;
}

.grid-week {
  display: flex;
  overflow-x: auto;
  gap: 16px;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
}

.week-card {
  flex: 0 0 240px;
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  scroll-snap-align: start;
}

.week-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.week-card-body {
  padding: 12px;
}

.week-card-body h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}

.week-card-body p {
  font-size: 13px;
  color: #666;
}

/* Block 3: 校园大赛 */
.section-campus {
  background: #ffffff;
}

.campus-layout {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.campus-img {
  width: 100%;
  height: 250px;
  border-radius: var(--radius-lg);
  object-fit: cover;
}

.campus-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.campus-list li {
  list-style: none;
  background: #f8f9fa;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--accent-blue);
  font-size: 14px;
}

/* Block 4: 反差大赛 */
.section-contrast {
  background: #fff0f5;
}

.contrast-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.contrast-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contrast-card img {
  width: 100%;
  height: 180px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.contrast-card h3 {
  font-size: 15px;
  font-weight: 700;
}

.contrast-card p {
  font-size: 13px;
  color: #555;
}

/* Block 5: 隐私安全 & 意见反馈 & 常见问题 */
.section-qa {
  background: #f8f9fa;
}

.qa-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.qa-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.qa-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--accent-purple);
}

.qa-item {
  margin-bottom: 12px;
  border-bottom: 1px solid #eee;
  padding-bottom: 8px;
}

.qa-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.qa-question {
  font-weight: 600;
  font-size: 14px;
  color: #222;
  margin-bottom: 4px;
}

.qa-answer {
  font-size: 13px;
  color: #666;
}

/* Block 6: 用户评论 */
.section-comments {
  background: #eef2f5;
}

.comment-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.comment-item {
  display: flex;
  gap: 12px;
  background: #fff;
  padding: 12px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.comment-item img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
}

.comment-content {
  flex: 1;
}

.comment-content strong {
  font-size: 13px;
  color: #333;
  display: block;
}

.comment-content p {
  font-size: 13px;
  color: #555;
  margin-top: 4px;
}

/* Block 7: 下载专区 */
.section-download {
  background: linear-gradient(180deg, #1a1625 0%, #2d2440 100%);
  color: #fff;
}

.download-layout {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
}

.download-img {
  width: 100%;
  max-width: 300px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.download-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.download-content h2 {
  font-size: 24px;
  font-weight: 800;
}

.download-content p {
  font-size: 14px;
  color: #b0b5c1;
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.steps-list li {
  list-style: none;
  font-size: 14px;
  display: flex;
  gap: 8px;
}

.steps-list li span {
  display: inline-block;
  width: 20px;
  height: 20px;
  background: var(--accent-pink);
  color: #fff;
  border-radius: 50%;
  text-align: center;
  line-height: 20px;
  font-size: 12px;
  font-weight: bold;
  flex-shrink: 0;
}

.download-tags-dark {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

.btn-download-primary {
  display: inline-block;
  background: var(--accent-pink);
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 15px;
  transition: background 0.2s;
}

.btn-download-primary:hover {
  background: #d13d73;
}

/* Footer */
.site-footer {
  background: #111;
  color: #888;
  padding: 30px 0;
  font-size: 12px;
  text-align: center;
}

.site-footer p {
  margin-bottom: 8px;
}

.site-footer a {
  color: #888;
  transition: color 0.2s;
}

.site-footer a:hover {
  color: #ccc;
}

/* 浮动下载窗口 */
.floating-download {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border-radius: 30px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px 8px 8px;
  z-index: 999;
  max-width: 90%;
  border: 1px solid #eee;
}

.floating-download img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  flex-shrink: 0;
}

.floating-text {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.floating-text strong {
  font-size: 13px;
  color: #222;
}

.floating-text span {
  font-size: 11px;
  color: #888;
}

.floating-download .btn-float {
  background: var(--accent-pink);
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

/* Baidu 下载提示弹窗 */
.baidu-tip-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.baidu-tip-overlay.show {
  display: flex;
}

.baidu-tip-box {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  max-width: 340px;
  width: 100%;
  text-align: center;
}

.baidu-tip-box p {
  font-size: 14px;
  color: #333;
  margin-bottom: 16px;
  line-height: 1.5;
}

.baidu-tip-box .btn-copy {
  background: var(--accent-pink);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  width: 100%;
}

/* 响应式：768px */
@media (min-width: 768px) {
  .hero-inner {
    flex-direction: row;
    align-items: center;
    gap: 40px;
  }
  .hero-content {
    flex: 1;
  }
  .hero-slider {
    flex: 1;
    max-width: 480px;
  }
  .hero h1 {
    font-size: 36px;
  }
  .grid-today {
    grid-template-columns: repeat(2, 1fr);
  }
  .campus-layout {
    flex-direction: row;
    align-items: center;
    gap: 40px;
  }
  .campus-img {
    width: 40%;
    height: 400px;
  }
  .campus-list {
    flex: 1;
  }
  .contrast-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .qa-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .download-layout {
    flex-direction: row;
    align-items: center;
    gap: 50px;
  }
  .download-img {
    width: 40%;
    max-width: 400px;
  }
  .nav-links {
    display: flex;
  }
  .mobile-menu-btn {
    display: none;
  }
  .floating-download {
    bottom: 30px;
    padding: 10px 20px 10px 10px;
  }
}

/* 响应式：1024px */
@media (min-width: 1024px) {
  .grid-today {
    grid-template-columns: repeat(3, 1fr);
  }
  .contrast-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .qa-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .section-block {
    padding: 70px 0;
  }
  .hero h1 {
    font-size: 42px;
  }
}