:root {
  --bg-main: #0a0b0e;
  --bg-panel: #14161c;
  --bg-panel-hover: #1c2030;
  --text-main: #e2e8f0;
  --text-sub: #94a3b8;
  --accent: #ff2a55;
  --accent-grad: linear-gradient(90deg, #ff2a55, #ff7b00, #ff2a55);
  --border-color: #2a2f3f;
  --radius: 12px;
  --nav-h: 64px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  padding-bottom: 80px;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; object-fit: cover; }
.hl { color: var(--accent); font-weight: bold; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 11, 14, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
}
.header-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 20px;
  height: var(--nav-h); display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 700; }
.brand img { height: 32px; width: auto; border-radius: 6px; }
.nav-desktop { display: flex; gap: 24px; align-items: center; }
.nav-desktop a { color: var(--text-sub); font-size: 15px; transition: color 0.3s; position: relative; }
.nav-desktop a:hover { color: var(--accent); }
.nav-desktop a::after {
  content: ''; position: absolute; left: 0; bottom: -4px; width: 0; height: 2px;
  background: var(--accent); transition: width 0.3s;
}
.nav-desktop a:hover::after { width: 100%; }

/* Mobile Nav */
.nav-mobile-toggle { display: none; background: none; border: none; color: #fff; font-size: 24px; cursor: pointer; }
.nav-mobile-menu {
  display: none; position: absolute; top: var(--nav-h); left: 0; width: 100%;
  background: var(--bg-panel); border-bottom: 1px solid var(--border-color);
  padding: 10px 20px; flex-direction: column; gap: 10px;
}
.nav-mobile-menu.active { display: flex; }
.nav-mobile-menu a { padding: 10px 0; border-bottom: 1px solid #222; color: var(--text-sub); }
.nav-mobile-menu a:last-child { border-bottom: none; }

/* Hero Section */
.hero-section {
  max-width: 1200px; margin: 40px auto; padding: 0 20px;
  display: flex; gap: 40px; align-items: center;
}
.hero-content { flex: 1.2; }
.hero-content h1 { font-size: 38px; line-height: 1.3; margin-bottom: 16px; }
.hero-content p { color: var(--text-sub); font-size: 16px; margin-bottom: 24px; }
.hero-tags { display: flex; gap: 10px; margin-bottom: 24px; flex-wrap: wrap; }
.hero-tags span { background: rgba(255, 42, 85, 0.15); color: var(--accent); padding: 4px 12px; border-radius: 20px; font-size: 13px; }
.download-group {
  display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 24px; border-radius: 8px; font-weight: bold; font-size: 15px;
  border: 1px solid var(--border-color); background: var(--bg-panel);
  color: var(--text-main); transition: all 0.2s;
}
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: #d91c44; color: #fff; }

/* Hero Carousel */
.hero-carousel { flex: 0.8; position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; border: 1px solid var(--border-color); }
.hero-carousel img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.5s; }
.carousel-dots { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 10; }
.carousel-dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.4); cursor: pointer; }
.carousel-dots span.active { background: var(--accent); }

/* Marquee */
.marquee-wrap {
  background: #14161c; padding: 10px 0; overflow: hidden; white-space: nowrap; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color);
}
.marquee-text {
  display: inline-block; font-weight: 800; font-size: 16px;
  background: var(--accent-grad); -webkit-background-clip: text; color: transparent;
  animation: scrollText 15s linear infinite;
}
@keyframes scrollText { 0% { transform: translateX(100%); } 100% { transform: translateX(-100%); } }

/* Layout & Sections */
.container { max-width: 1200px; margin: 0 auto; padding: 40px 20px; }
.section-title { font-size: 26px; margin-bottom: 24px; display: flex; align-items: center; gap: 10px; }
.section-title::before { content: ''; display: inline-block; width: 4px; height: 24px; background: var(--accent); border-radius: 2px; }

/* 今日吃瓜 */
.sec-daily { background: #16181f; border-radius: var(--radius); margin-bottom: 40px; }
.daily-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.daily-item { display: flex; gap: 12px; background: var(--bg-panel); padding: 12px; border-radius: 8px; border: 1px solid var(--border-color); }
.daily-item-img { width: 80px; height: 80px; border-radius: 6px; flex-shrink: 0; }
.daily-item-info h3 { font-size: 15px; margin-bottom: 4px; }
.daily-item-info p { font-size: 12px; color: var(--text-sub); }

/* 本周热瓜 */
.sec-weekly { background: #1a1c24; border-radius: var(--radius); margin-bottom: 40px; }
.weekly-list { display: flex; flex-direction: column; gap: 12px; }
.weekly-item { display: flex; align-items: center; gap: 16px; padding: 14px; background: var(--bg-panel); border-radius: 8px; }
.weekly-num { font-size: 20px; font-weight: 900; color: var(--accent); width: 30px; }
.weekly-item p { flex: 1; font-size: 15px; }
.weekly-tag { font-size: 12px; background: #2a2f3f; padding: 2px 8px; border-radius: 4px; color: #94a3b8; }

/* 校园大赛 */
.sec-campus { background: #191b26; border-radius: var(--radius); margin-bottom: 40px; display: flex; gap: 30px; align-items: stretch; }
.campus-left { flex: 0.4; display: flex; flex-direction: column; }
.campus-left img { width: 100%; height: 100%; min-height: 300px; border-radius: 8px; }
.campus-right { flex: 0.6; display: flex; flex-direction: column; gap: 12px; }
.campus-right h3 { font-size: 18px; color: #fff; }
.campus-list { display: grid; grid-template-columns: 1fr; gap: 10px; }
.campus-item { padding: 10px; background: var(--bg-panel); border-left: 3px solid var(--accent); border-radius: 0 8px 8px 0; font-size: 14px; }

/* 社会时间 */
.sec-society { background: #1c1e26; border-radius: var(--radius); margin-bottom: 40px; }
.society-timeline { position: relative; padding-left: 20px; border-left: 2px solid var(--border-color); }
.society-item { position: relative; margin-bottom: 16px; padding: 10px 16px; background: var(--bg-panel); border-radius: 8px; }
.society-item::before { content: ''; position: absolute; left: -26px; top: 16px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }

/* 隐私安全 / 意见反馈 / 常见问题 (Q&A) */
.sec-qa { background: #191a21; border-radius: var(--radius); margin-bottom: 40px; }
.qa-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.qa-box { background: var(--bg-panel); padding: 16px; border-radius: 8px; border: 1px solid var(--border-color); }
.qa-q { font-weight: bold; color: #fff; margin-bottom: 6px; font-size: 15px; }
.qa-a { color: var(--text-sub); font-size: 14px; }

/* Comments */
.comments-section { max-width: 1200px; margin: 0 auto 60px; padding: 0 20px; }
.comment-list { display: flex; flex-direction: column; gap: 16px; }
.comment-item { display: flex; gap: 12px; background: var(--bg-panel); padding: 16px; border-radius: var(--radius); }
.comment-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.comment-body .name { font-weight: bold; font-size: 14px; color: #fff; margin-bottom: 4px; }
.comment-body .text { font-size: 14px; color: var(--text-sub); }

/* Final Download Section */
.sec-final-download { background: linear-gradient(135deg, #1a1c24, #14161c); padding: 40px; border-radius: var(--radius); margin-bottom: 60px; text-align: center; }
.final-img-wrap { max-width: 400px; margin: 0 auto 24px; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.final-img-wrap img { width: 100%; height: auto; }
.install-steps { text-align: left; max-width: 600px; margin: 0 auto 24px; background: rgba(255,255,255,0.02); padding: 20px; border-radius: 8px; }
.install-steps p { margin-bottom: 8px; font-size: 14px; color: var(--text-sub); }

/* Floating Download Box */
.float-box {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  background: var(--bg-panel); border: 1px solid var(--accent);
  padding: 10px 20px; border-radius: 30px; display: flex; align-items: center; gap: 12px;
  box-shadow: 0 4px 20px rgba(255, 42, 85, 0.3); z-index: 1000;
  width: max-content; max-width: 90vw;
}
.float-box img { width: 30px; height: 30px; border-radius: 6px; }
.float-box .info { font-size: 12px; color: var(--text-sub); line-height: 1.2; }
.float-box .info strong { color: #fff; display: block; font-size: 13px; margin-bottom: 2px; }
.float-btn { background: var(--accent); color: #fff; padding: 6px 16px; border-radius: 20px; font-size: 13px; font-weight: bold; }

/* Footer */
.site-footer { background: #090a0d; border-top: 1px solid var(--border-color); padding: 40px 20px 20px; font-size: 12px; color: #64748b; text-align: center; }
.footer-links { display: flex; justify-content: center; gap: 20px; margin-bottom: 20px; flex-wrap: wrap; }
.footer-links a { color: #64748b; }
.footer-links a:hover { color: var(--accent); }
.footer-info { margin-bottom: 10px; }
.copyright { margin-bottom: 10px; }

/* iOS Copy Modal */
.copy-modal-mask {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.8); display: none; align-items: center; justify-content: center; z-index: 2000;
}
.copy-modal-mask.active { display: flex; }
.copy-modal { background: var(--bg-panel); padding: 24px; border-radius: 12px; max-width: 320px; text-align: center; width: 90%; }
.copy-modal p { margin-bottom: 16px; font-size: 14px; }
.copy-modal-input { width: 100%; padding: 10px; background: var(--bg-main); border: 1px solid var(--border-color); color: #fff; border-radius: 6px; margin-bottom: 16px; text-align: center; }
.copy-modal-btn { width: 100%; background: var(--accent); color: #fff; padding: 10px; border: none; border-radius: 6px; font-weight: bold; cursor: pointer; }

/* Responsive */
@media (max-width: 1024px) {
  .hero-section { flex-direction: column; text-align: center; }
  .hero-carousel { width: 100%; aspect-ratio: 16/9; order: -1; }
  .hero-content h1 { font-size: 32px; }
  .download-group, .hero-tags { justify-content: center; }
  .sec-campus { flex-direction: column; }
  .campus-left img { min-height: 200px; max-height: 300px; }
  .daily-grid, .qa-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-desktop { display: none; }
  .nav-mobile-toggle { display: block; }
  .hero-content h1 { font-size: 26px; }
  .float-box { padding: 8px 12px; bottom: 15px; gap: 8px; }
  .float-box .info { display: none; }
  .float-box img { width: 24px; height: 24px; }
}