:root {
  --bg-main: #0B0D1F;
  --bg-dark: #141833;
  --panel-1: #1C2145;
  --panel-2: #262C58;
  --rainbow: linear-gradient(90deg, #FF3D81, #FF8A00, #FFE14D, #2ED47A, #00C2FF, #5B5BFF, #B93DFF);
  --border-pink: rgba(255,61,129,.18);
  --border-yellow: rgba(255,225,77,.16);
  --border-cyan: rgba(0,194,255,.18);
  --text-main: #E2E8F0;
  --text-muted: #94A3B8;
  --text-dark: #0B0D1F;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  padding-bottom: 80px;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* 顶部导航 */
header {
  background: var(--bg-dark);
  border-bottom: 1px solid var(--border-pink);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: bold; font-size: 18px; }
.brand img { height: 32px; width: auto; }
.nav-links { display: flex; gap: 16px; flex-wrap: wrap; }
.nav-links a {
  font-size: 14px;
  color: var(--text-muted);
  padding: 6px 8px;
  border-radius: 6px;
  transition: all 0.3s;
}
.nav-links a:hover { color: #FFE14D; background: rgba(255,61,129,.1); }

/* 通用区块 */
section { padding: 40px 20px; max-width: 1200px; margin: 0 auto; }
.sec-title { font-size: 22px; margin-bottom: 20px; display: inline-block; background: var(--rainbow); -webkit-background-clip: text; -webkit-text-fill-color: transparent; font-weight: bold; }

/* 首屏 */
.hero { display: flex; flex-direction: column; gap: 24px; padding-top: 20px; }
.hero-top { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.hero-text { flex: 1 1 300px; }
.hero-text h1 { font-size: 28px; line-height: 1.4; background: var(--rainbow); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 12px; }
.hero-text p { color: var(--text-muted); font-size: 15px; margin-bottom: 16px; }
.dl-group { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-dl {
  display: inline-flex; justify-content: center; align-items: center;
  padding: 10px 20px; font-size: 14px; font-weight: bold;
  background: var(--rainbow); color: var(--text-dark);
  border-radius: 20px; border: none; cursor: pointer; transition: transform 0.2s;
}
.btn-dl:hover { transform: scale(1.05); }
.hero-imgs { display: flex; gap: 10px; flex: 1 1 300px; justify-content: center; }
.hero-imgs img { width: calc(33.33% - 7px); border-radius: 10px; border: 1px solid var(--border-cyan); object-fit: cover; aspect-ratio: 3/4; }

/* 跑马灯 */
.marquee-wrap { width: 100%; overflow: hidden; background: var(--panel-1); border-top: 1px solid var(--border-yellow); border-bottom: 1px solid var(--border-yellow); padding: 10px 0; }
.marquee-content { display: inline-block; white-space: nowrap; animation: scroll-left 15s linear infinite; font-weight: bold; background: var(--rainbow); -webkit-background-clip: text; -webkit-text-fill-color: transparent; padding-left: 100%; }
@keyframes scroll-left { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }

/* 每日吃瓜 / 今日热瓜 */
.feed-list { display: flex; flex-direction: column; gap: 16px; }
.feed-card { display: flex; gap: 16px; background: var(--panel-1); padding: 16px; border-radius: 12px; border: 1px solid var(--border-pink); transition: border-color 0.3s; }
.feed-card:hover { border-color: #FF3D81; }
.feed-card .img-wrap { flex: 0 0 100px; }
.feed-card img { border-radius: 8px; }
.feed-card .info { flex: 1; }
.feed-card h3 { font-size: 16px; margin-bottom: 6px; color: #FFE14D; }
.feed-card p { font-size: 13px; color: var(--text-muted); }

/* 校园反差 左右结构 */
.split-sec { display: flex; flex-wrap: wrap; gap: 20px; }
.split-left { flex: 1 1 300px; }
.split-left img { border-radius: 12px; border: 1px solid var(--border-cyan); width: 100%; height: auto; }
.split-right { flex: 2 1 400px; }
.split-list { display: grid; grid-template-columns: 1fr; gap: 10px; }
.split-list li { background: var(--panel-2); padding: 10px 14px; border-radius: 8px; font-size: 14px; border-left: 3px solid #00C2FF; }

/* 常见问题 */
.faq-item { background: var(--panel-2); margin-bottom: 10px; border-radius: 8px; padding: 12px; border: 1px solid var(--border-yellow); }
.faq-item h3 { font-size: 15px; color: #FF8A00; margin-bottom: 6px; }
.faq-item p { font-size: 14px; color: var(--text-muted); }

/* 页脚 */
footer { background: var(--bg-dark); padding: 20px; text-align: center; font-size: 12px; color: var(--text-muted); border-top: 1px solid var(--border-pink); margin-top: 20px; }
footer a { color: var(--text-muted); margin: 0 4px; }
footer a:hover { color: #FFE14D; }

/* 浮动下载 */
.float-dl {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  background: var(--panel-1); border: 1px solid var(--border-pink); padding: 8px 16px;
  border-radius: 30px; display: flex; align-items: center; gap: 10px; z-index: 999;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}
.float-dl img { height: 24px; width: auto; }
.float-dl .btn-dl { padding: 6px 14px; font-size: 13px; }

/* 响应式 */
@media (min-width: 768px) {
  .hero { flex-direction: row; justify-content: space-between; }
  .hero-text h1 { font-size: 32px; }
  .split-list { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .hero-text h1 { font-size: 38px; }
  .feed-list { flex-direction: row; flex-wrap: wrap; }
  .feed-card { width: calc(50% - 8px); }
}
@media (max-width: 767px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: block; background: none; border: none; color: #FFE14D; font-size: 20px; cursor: pointer; }
  .mobile-menu { display: none; position: absolute; top: 100%; left: 0; width: 100%; background: var(--bg-dark); flex-direction: column; padding: 10px; border-bottom: 1px solid var(--border-pink); }
  .mobile-menu.show { display: flex; }
  .mobile-menu a { padding: 10px; font-size: 15px; color: var(--text-main); border-bottom: 1px solid var(--border-yellow); }
}
@media (min-width: 768px) {
  .mobile-menu-btn { display: none; }
}