:root {
  --bg-main: #0f111a;
  --bg-card: #181b26;
  --bg-card-hover: #1f2332;
  --text-main: #e2e8f0;
  --text-muted: #94a3b8;
  --accent-pink: #ec4899;
  --accent-blue: #3b82f6;
  --accent-cyan: #06b6d4;
  --accent-orange: #f97316;
  --border-color: #2d3748;
  --radius-md: 12px;
  --radius-lg: 20px;
  --font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* 头部与导航 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 17, 26, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 20px;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: bold;
  font-size: 1.1rem;
}

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

.desktop-nav {
  display: none;
  gap: 20px;
  font-size: 0.95rem;
}

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

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

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

.mobile-nav {
  display: none;
  background: var(--bg-card);
  padding: 15px;
  border-bottom: 1px solid var(--border-color);
}

.mobile-nav.active {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-nav a {
  color: var(--text-main);
  padding: 8px 12px;
  background: var(--bg-main);
  border-radius: var(--radius-md);
}

/* 首屏区域 */
.hero {
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 30px;
}

.hero-content h1 {
  font-size: 2rem;
  line-height: 1.3;
  margin-bottom: 16px;
  background: linear-gradient(90deg, var(--accent-pink), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 24px;
}

.download-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-weight: 500;
  color: #fff;
  transition: transform 0.2s, opacity 0.2s;
}

.btn-download:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.btn-android { background: linear-gradient(135deg, #22c55e, #16a34a); }
.btn-ios { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.btn-web { background: linear-gradient(135deg, #f97316, #ea580c); }
.btn-harmony { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }

.hero-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.hero-gallery img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  object-fit: cover;
}

.hero-gallery img:first-child {
  grid-column: span 2;
  height: 180px;
}

/* 跑马灯 */
.marquee {
  background: #1e1e2d;
  padding: 10px 0;
  overflow: hidden;
  white-space: nowrap;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.marquee-content {
  display: inline-block;
  animation: scroll 15s linear infinite;
}

.marquee-content span {
  font-weight: bold;
  background: linear-gradient(90deg, #ff00cc, #3333ff, #00ffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  padding: 0 20px;
  font-size: 1rem;
}

@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* 通用区块 */
.section {
  padding: 40px 20px;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: 1.5rem;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 20px;
  background: var(--accent-pink);
  border-radius: 2px;
}

/* 每日大赛 / 骑乘挑战 */
.grid-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.card {
  background: var(--bg-card);
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: background 0.2s;
}

.card:hover { background: var(--bg-card-hover); }

.card-icon {
  font-weight: bold;
  color: var(--bg-main);
  background: var(--accent-pink);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.8rem;
}

.card-content h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.card-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* 校园反差 / 热门吃瓜 图文混排 */
.mixed-block {
  display: grid;
  gap: 20px;
}

.mixed-text {
  background: var(--bg-card);
  padding: 20px;
  border-radius: var(--radius-lg);
}

.mixed-text ul {
  list-style: none;
}

.mixed-text li {
  padding: 10px 0;
  border-bottom: 1px dashed var(--border-color);
  display: flex;
  gap: 10px;
  font-size: 0.95rem;
}

.mixed-text li:last-child { border-bottom: none; }

.mixed-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 100%;
}

.mixed-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--bg-card); border-radius: var(--radius-md); overflow: hidden; }
.faq-question { padding: 14px 16px; font-weight: 500; cursor: pointer; display: flex; justify-content: space-between; background: #1f2332; }
.faq-answer { padding: 14px 16px; font-size: 0.9rem; color: var(--text-muted); border-top: 1px solid var(--border-color); }

/* 下载专区 & 安装步骤 */
.app-download-box {
  background: linear-gradient(135deg, #1e1b4b, #0f111a);
  border-radius: var(--radius-lg);
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  border: 1px solid var(--accent-blue);
}

.app-info { display: flex; gap: 16px; align-items: center; }
.app-info img { height: 60px; width: 60px; border-radius: 12px; }
.app-info h3 { font-size: 1.2rem; }
.app-info p { font-size: 0.85rem; color: var(--text-muted); }

.install-steps { list-style: none; display: grid; gap: 12px; }
.install-steps li {
  background: rgba(255, 255, 255, 0.05);
  padding: 12px;
  border-radius: var(--radius-md);
  display: flex; gap: 10px;
  font-size: 0.9rem;
}
.step-num { color: var(--accent-cyan); font-weight: bold; }

/* 浮动下载窗口 */
.floating-download {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-card);
  border: 1px solid var(--accent-pink);
  padding: 10px 16px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  z-index: 200;
  width: max-content;
  max-width: 90%;
}

.floating-download img { height: 28px; width: 28px; border-radius: 50%; }
.floating-download p { font-size: 0.8rem; color: var(--text-main); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.floating-download .btn-download { padding: 6px 14px; font-size: 0.8rem; }

/* 页脚 */
.site-footer {
  background: #0b0d14;
  padding: 40px 20px 80px;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-links { display: flex; flex-wrap: wrap; gap: 15px; }
.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--accent-pink); }

.about-section {
  border-top: 1px solid var(--border-color);
  padding-top: 15px;
  margin-top: 10px;
}
.about-section summary {
  cursor: pointer;
  font-size: 0.8rem;
  color: var(--text-muted);
  list-style: none;
}
.about-section summary::-webkit-details-marker { display: none; }
.about-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.about-links a { color: var(--text-muted); font-size: 0.75rem; }

/* 遮罩 */
.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 300;
  justify-content: center;
  align-items: center;
  padding: 20px;
}
.overlay.active { display: flex; }
.overlay-box {
  background: var(--bg-card);
  padding: 24px;
  border-radius: var(--radius-lg);
  text-align: center;
  max-width: 320px;
  width: 100%;
}
.overlay-box p { margin-bottom: 16px; font-size: 0.9rem; }
.overlay-box input {
  width: 100%;
  padding: 10px;
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  text-align: center;
}
.overlay-box button {
  background: var(--accent-pink);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  cursor: pointer;
  width: 100%;
}

/* 响应式 */
@media (min-width: 768px) {
  .desktop-nav { display: flex; }
  .mobile-menu-btn { display: none; }
  .hero { grid-template-columns: 1fr 1fr; padding: 60px 20px; }
  .hero-gallery { grid-template-columns: repeat(2, 1fr); }
  .hero-gallery img:first-child { height: 220px; }
  .grid-list { grid-template-columns: 1fr 1fr; }
  .mixed-block { grid-template-columns: 1fr 1fr; align-items: stretch; }
  .mixed-block.reverse { direction: rtl; }
  .mixed-block.reverse > * { direction: ltr; }
  .app-download-box { flex-direction: row; align-items: center; justify-content: space-between; }
  .install-steps { grid-template-columns: 1fr 1fr; width: 60%; }
}

@media (min-width: 1024px) {
  .hero { grid-template-columns: 1.2fr 1fr; gap: 50px; }
  .hero-content h1 { font-size: 2.5rem; }
  .grid-list { grid-template-columns: repeat(3, 1fr); }
  .install-steps { grid-template-columns: repeat(2, 1fr); }
}