:root {
  --bg-main: #0f1115;
  --bg-card: #181b22;
  --bg-card-hover: #1f232d;
  --text-main: #e2e8f0;
  --text-muted: #94a3b8;
  --accent: #f43f5e;
  --accent-gradient: linear-gradient(90deg, #f43f5e, #f59e0b, #8b5cf6, #3b82f6);
  --border-color: #2d3748;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-stack);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  padding-bottom: 90px;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* 跑马灯 */
.marquee-bar {
  width: 100%;
  background: #000;
  padding: 6px 0;
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 1px solid var(--border-color);
}
.marquee-content {
  display: inline-block;
  animation: marquee 18s linear infinite;
  font-weight: 800;
  font-size: 0.95rem;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding-left: 100%;
}
.marquee-content span { padding: 0 20px; }
@keyframes marquee {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-100%, 0); }
}

/* 头部导航 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 17, 21, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.logo-area { display: flex; align-items: center; gap: 10px; }
.logo-area img { height: 32px; width: auto; border-radius: 6px; }
.logo-text { font-size: 1.1rem; font-weight: 700; letter-spacing: 1px; }

.desktop-nav { display: none; gap: 4px; flex-wrap: wrap; }
.desktop-nav a {
  padding: 6px 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}
.desktop-nav a:hover {
  color: #fff;
  background: var(--bg-card-hover);
  transform: translateY(-1px);
}

.mobile-menu-btn {
  display: block;
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.9rem;
}
.mobile-nav {
  display: none;
  width: 100%;
  flex-direction: column;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  margin-top: 10px;
  padding: 10px;
}
.mobile-nav.active { display: flex; }
.mobile-nav a {
  padding: 10px;
  color: var(--text-main);
  border-bottom: 1px solid var(--border-color);
}
.mobile-nav a:last-child { border-bottom: none; }

/* 首屏 */
.hero-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.hero-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: linear-gradient(145deg, #1a1d24 0%, #111318 100%);
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.hero-title {
  font-size: 1.8rem;
  line-height: 1.3;
  color: #fff;
}
.hero-title span {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 900;
}
.hero-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
}
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hero-tags span {
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(244, 63, 94, 0.15);
  color: var(--accent);
  border: 1px solid rgba(244, 63, 94, 0.3);
}

/* 下载按钮组 */
.download-btns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 10px;
}
.dl-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform 0.2s, filter 0.2s;
  border: 1px solid rgba(255,255,255,0.1);
}
.dl-btn:hover { transform: scale(1.02); filter: brightness(1.1); }
.dl-btn.android { background: linear-gradient(135deg, #22c55e, #15803d); color: #fff; }
.dl-btn.ios { background: linear-gradient(135deg, #3b82f6, #1d4ed8); color: #fff; }
.dl-btn.web { background: linear-gradient(135deg, #8b5cf6, #6d28d9); color: #fff; }
.dl-btn.harmony { background: linear-gradient(135deg, #f59e0b, #b45309); color: #fff; }

/* 首屏轮播图墙 */
.hero-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.gallery-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

/* 通用区块样式 */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}
.sec-header {
  margin-bottom: 24px;
}
.sec-title {
  font-size: 1.6rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sec-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 24px;
  background: var(--accent);
  border-radius: 2px;
}
.sec-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 8px;
}

/* 今日吃瓜 - 瀑布流 */
.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.content-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 16px;
  border: 1px solid var(--border-color);
  transition: background 0.2s;
}
.content-card:hover { background: var(--bg-card-hover); }
.card-title {
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 8px;
}
.card-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: #64748b;
}
.card-meta img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

/* 本周热瓜 - 横向滑动 */
.horizontal-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-color) transparent;
}
.horizontal-scroll::-webkit-scrollbar { height: 6px; }
.horizontal-scroll::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 3px; }
.scroll-card {
  min-width: 280px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.scroll-card-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}
.scroll-card-body { padding: 12px; flex: 1; display: flex; flex-direction: column; }
.scroll-card-title { font-size: 1rem; color: #fff; margin-bottom: 6px; }
.scroll-card-text { font-size: 0.85rem; color: var(--text-muted); flex: 1; }

/* 校园大赛 - 问答式 */
.qna-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.qna-item {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  padding: 16px;
  cursor: pointer;
}
.qna-q {
  font-weight: 700;
  color: #fbbf24;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
}
.qna-a {
  color: var(--text-muted);
  font-size: 0.9rem;
  border-top: 1px dashed var(--border-color);
  padding-top: 8px;
}

/* 反差大赛 - 图文交错 */
.alt-layout {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.alt-item {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  padding: 20px;
}
.alt-item:nth-child(even) { flex-direction: column-reverse; }
.alt-text { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.alt-text h3 { color: #a78bfa; font-size: 1.1rem; margin-bottom: 8px; }
.alt-text p { color: var(--text-muted); font-size: 0.9rem; }
.alt-img-wrap { flex: 1; border-radius: var(--radius-sm); overflow: hidden; }
.alt-img-wrap img { width: 100%; height: 200px; object-fit: cover; }

/* 隐私安全 - 强调样式 */
.security-block {
  background: linear-gradient(135deg, #1e1b4b 0%, #0f1115 100%);
  padding: 30px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid #3730a3;
}
.sec-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 20px;
}
.sec-card {
  background: rgba(255,255,255,0.05);
  padding: 16px;
  border-radius: var(--radius-md);
}
.sec-card h4 { color: #93c5fd; margin-bottom: 6px; }
.sec-card p { font-size: 0.85rem; color: var(--text-muted); }

/* 意见反馈与常见问题 */
.faq-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.faq-list h3 { color: #f43f5e; font-size: 1.2rem; margin-bottom: 12px; }
.faq-box {
  background: var(--bg-card);
  border-left: 4px solid #f43f5e;
  padding: 12px 16px;
  margin-bottom: 10px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.faq-box strong { color: #fff; display: block; margin-bottom: 4px; }
.faq-box span { color: var(--text-muted); font-size: 0.9rem; }

/* 下载专区 */
.download-zone {
  background: #0f1115;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 30px 20px;
  text-align: center;
}
.dl-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 24px;
  text-align: left;
}
.step-item {
  display: flex;
  gap: 12px;
  background: var(--bg-card);
  padding: 16px;
  border-radius: var(--radius-md);
}
.step-num {
  width: 28px; height: 28px;
  background: var(--accent); color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; flex-shrink: 0;
}
.step-info h4 { color: #fff; font-size: 0.95rem; margin-bottom: 4px; }
.step-info p { color: var(--text-muted); font-size: 0.85rem; }

/* 页脚 */
.site-footer {
  background: #090a0c;
  padding: 40px 20px;
  text-align: center;
  border-top: 1px solid var(--border-color);
  color: #64748b;
  font-size: 0.85rem;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}
.footer-links a { color: #94a3b8; }
.footer-links a:hover { color: #fff; }
.footer-info { margin-bottom: 12px; line-height: 1.8; }
.footer-time { margin-bottom: 16px; color: #475569; }

/* 浮动下载窗口 */
.float-dl-window {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(24, 27, 34, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid var(--accent);
  border-radius: 50px;
  padding: 8px 20px 8px 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 25px rgba(244, 63, 94, 0.3);
  z-index: 999;
  cursor: pointer;
  width: max-content;
  max-width: 90vw;
}
.float-dl-window img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.float-text { display: flex; flex-direction: column; }
.float-text strong { color: #fff; font-size: 0.9rem; }
.float-text span { color: var(--text-muted); font-size: 0.7rem; }
.float-btn {
  background: var(--accent); color: #fff;
  padding: 6px 14px; border-radius: 20px;
  font-size: 0.8rem; font-weight: 600; margin-left: 10px;
}

/* 弹窗 */
.modal-overlay {
  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: 1000; padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal-box {
  background: var(--bg-card); padding: 24px;
  border-radius: var(--radius-md);
  max-width: 400px; width: 100%;
  text-align: center; position: relative;
}
.modal-box h3 { color: #fff; font-size: 1.1rem; margin-bottom: 16px; line-height: 1.4; }
.modal-box p {
  background: #000; color: #38bdf8; padding: 12px;
  border-radius: var(--radius-sm);
  word-break: break-all; margin-bottom: 16px; font-size: 0.9rem;
}
.modal-btn {
  background: #3b82f6; color: #fff; border: none;
  padding: 10px 20px; border-radius: var(--radius-sm);
  cursor: pointer; font-size: 0.95rem; width: 100%;
}
.modal-close {
  position: absolute; top: 10px; right: 14px;
  color: #64748b; font-size: 1.5rem; cursor: pointer; background: none; border: none;
}

/* 响应式 768px */
@media (min-width: 768px) {
  .hero-section { flex-direction: row; align-items: stretch; }
  .hero-content { flex: 1; }
  .hero-gallery { flex: 1; grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .gallery-img { height: 100%; min-height: 250px; }
  .download-btns { grid-template-columns: repeat(4, 1fr); }
  .content-grid { grid-template-columns: repeat(2, 1fr); }
  .sec-grid { grid-template-columns: repeat(2, 1fr); }
  .faq-layout { grid-template-columns: 1fr 1fr; }
  .alt-item { flex-direction: row !important; align-items: center; }
  .alt-img-wrap img { height: 250px; }
  .dl-steps { grid-template-columns: repeat(2, 1fr); }
  .desktop-nav { display: flex; }
  .mobile-menu-btn { display: none; }
  .mobile-nav { display: none !important; }
}

/* 响应式 1024px */
@media (min-width: 1024px) {
  .content-grid { grid-template-columns: repeat(3, 1fr); }
  .sec-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-title { font-size: 2.4rem; }
}