:root {
  --bg-dark: #121212;
  --bg-card: #1e1e1e;
  --bg-card-hover: #2a2a2a;
  --text-main: #f5f5f5;
  --text-muted: #a0a0a0;
  --accent-color: #ff3366;
  --accent-gradient: linear-gradient(90deg, #ff3366, #ff9933, #33ccff, #ff3366);
  --border-radius: 12px;
  --nav-bg: #1a1a1a;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; background-color: var(--bg-dark); color: var(--text-main); line-height: 1.6; overflow-x: hidden; padding-bottom: 80px; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* 头部与导航 */
header { position: sticky; top: 0; z-index: 100; background-color: var(--nav-bg); border-bottom: 1px solid #333; }
.top-bar { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; max-width: 1200px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 32px; width: auto; }
.brand span { font-size: 20px; font-weight: bold; color: var(--text-main); }
.mobile-menu-btn { display: none; font-size: 24px; background: none; border: none; color: var(--text-main); cursor: pointer; }

nav.main-nav { display: flex; gap: 20px; overflow-x: auto; scrollbar-width: none; }
nav.main-nav::-webkit-scrollbar { display: none; }
nav.main-nav a { padding: 8px 12px; font-size: 14px; color: var(--text-muted); transition: color 0.3s, border-bottom 0.3s; white-space: nowrap; }
nav.main-nav a:hover, nav.main-nav a.active { color: var(--accent-color); border-bottom: 2px solid var(--accent-color); }

/* 跑马灯 */
.marquee-wrapper { width: 100%; overflow: hidden; background: #000; padding: 10px 0; }
.marquee-text { display: inline-block; white-space: nowrap; animation: marquee 15s linear infinite; font-size: 18px; font-weight: bold; background: var(--accent-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-size: 200% auto; animation: marquee 15s linear infinite, shine 3s linear infinite; }
@keyframes marquee { 0% { transform: translateX(100%); } 100% { transform: translateX(-100%); } }
@keyframes shine { to { background-position: 200% center; } }

/* 首屏 */
.hero { padding: 40px 20px; max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; gap: 30px; }
.hero-content { text-align: center; }
.hero-content h1 { font-size: 28px; margin-bottom: 15px; line-height: 1.3; }
.hero-content h1 span { color: var(--accent-color); }
.hero-content p { font-size: 16px; color: var(--text-muted); margin-bottom: 25px; max-width: 800px; margin-left: auto; margin-right: auto; }
.download-btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 30px; }
.btn { display: inline-block; padding: 10px 20px; border-radius: 20px; font-weight: bold; text-align: center; transition: transform 0.2s, background 0.2s; border: 1px solid #444; background: #2a2a2a; color: #fff; }
.btn:hover { transform: translateY(-2px); background: #333; border-color: var(--accent-color); }
.btn.primary { background: var(--accent-color); border-color: var(--accent-color); color: #fff; }
.btn.primary:hover { background: #e92255; }

.hero-gallery { display: flex; gap: 15px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x mandatory; }
.hero-gallery img { flex: 0 0 auto; width: 80%; max-width: 400px; border-radius: var(--border-radius); scroll-snap-align: center; object-fit: cover; aspect-ratio: 4/3; }

/* 内容区块通用 */
.section { padding: 50px 20px; max-width: 1200px; margin: 0 auto; }
.bg-alt { background-color: #181818; }
.section-title { font-size: 22px; text-align: center; margin-bottom: 30px; position: relative; display: inline-block; left: 50%; transform: translateX(-50%); }
.section-title::after { content: ""; display: block; width: 50%; height: 3px; background: var(--accent-color); margin: 8px auto 0; border-radius: 2px; }

/* 今日吃瓜 */
.grid-cards { display: grid; grid-template-columns: 1fr; gap: 15px; }
.card { background: var(--bg-card); border-radius: var(--border-radius); padding: 20px; border: 1px solid #333; transition: background 0.2s; }
.card:hover { background: var(--bg-card-hover); }
.card h3 { font-size: 18px; margin-bottom: 10px; color: #fff; }
.card p { font-size: 14px; color: var(--text-muted); }

/* 本周热瓜 (左右分栏) */
.split-layout { display: flex; flex-direction: column; gap: 20px; }
.split-img { flex: 1; border-radius: var(--border-radius); overflow: hidden; max-height: 500px; }
.split-img img { width: 100%; height: 100%; object-fit: cover; }
.split-content { flex: 2; display: flex; flex-direction: column; gap: 10px; }
.hot-item { background: #252525; padding: 12px 15px; border-radius: 8px; display: flex; align-items: center; gap: 10px; }
.hot-item span { background: var(--accent-color); color: #fff; font-size: 12px; padding: 2px 6px; border-radius: 4px; font-weight: bold; }
.hot-item p { font-size: 14px; }

/* 校园大赛 */
.campus-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 15px; }
.campus-card { background: #222; border-left: 4px solid #33ccff; padding: 15px; border-radius: 8px; }
.campus-card h4 { font-size: 16px; margin-bottom: 5px; color: #33ccff; }
.campus-card p { font-size: 14px; color: #bbb; }

/* 社会时间 (列表) */
.event-list { display: flex; flex-direction: column; gap: 10px; }
.event-item { background: #1e1e1e; padding: 15px; border-radius: 8px; display: flex; justify-content: space-between; align-items: center; }
.event-item p { font-size: 14px; }
.event-item span { font-size: 12px; color: var(--accent-color); }

/* 隐私安全 & 意见反馈 & 常见问题 (问答风格) */
.faq-grid { display: grid; grid-template-columns: 1fr; gap: 15px; }
.faq-item { background: #1c1c1c; padding: 15px; border-radius: 8px; border: 1px solid #2a2a2a; }
.faq-item h4 { font-size: 16px; margin-bottom: 8px; color: #fff; }
.faq-item p { font-size: 14px; color: #aaa; }

/* 用户评论 */
.comment-section { margin-top: 30px; }
.comment-title { font-size: 18px; margin-bottom: 15px; }
.comment-list { display: flex; flex-direction: column; gap: 15px; }
.comment { display: flex; gap: 12px; background: #1e1e1e; padding: 15px; border-radius: var(--border-radius); }
.comment-avatar { width: 40px; height: 40px; border-radius: 50%; background: #333; object-fit: contain; padding: 4px; border: 1px solid #444; }
.comment-body { flex: 1; }
.comment-body .name { font-weight: bold; font-size: 14px; color: #fff; margin-bottom: 4px; }
.comment-body .text { font-size: 14px; color: #ccc; }

/* 下载专区 */
.download-area { background: linear-gradient(135deg, #1f1f1f, #2a1a1a); padding: 40px 20px; text-align: center; border-radius: 20px; margin: 40px 20px; max-width: 1200px; margin-left: auto; margin-right: auto; border: 1px solid #333; }
.download-area h2 { font-size: 24px; margin-bottom: 20px; }
.download-area .steps { text-align: left; max-width: 600px; margin: 0 auto 30px; background: rgba(0,0,0,0.3); padding: 20px; border-radius: 12px; }
.download-area .steps li { font-size: 15px; margin-bottom: 10px; color: #ddd; margin-left: 20px; }
.download-area .tool-img { max-width: 300px; margin: 0 auto 20px; border-radius: 12px; }

/* 浮动下载窗口 */
.floating-download { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: rgba(20, 20, 20, 0.95); padding: 10px 20px; border-radius: 30px; box-shadow: 0 4px 15px rgba(0,0,0,0.5); border: 1px solid var(--accent-color); display: flex; align-items: center; gap: 15px; z-index: 1000; width: calc(100% - 40px); max-width: 400px; }
.floating-download img { width: 30px; height: 30px; object-fit: contain; }
.floating-download .info { flex: 1; text-align: left; }
.floating-download .info .title { font-size: 14px; font-weight: bold; color: #fff; }
.floating-download .info .desc { font-size: 11px; color: #aaa; }
.floating-download .btn { padding: 6px 15px; font-size: 13px; border-radius: 15px; background: var(--accent-color); color: #fff; border: none; }

/* 遮罩与提示框 */
.modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); z-index: 2000; justify-content: center; align-items: center; }
.modal-content { background: #2a2a2a; padding: 20px; border-radius: 12px; max-width: 350px; width: 90%; text-align: center; position: relative; }
.modal-content p { font-size: 15px; margin-bottom: 15px; color: #fff; }
.modal-content input { width: 100%; padding: 10px; margin-bottom: 15px; background: #111; border: 1px solid #555; color: #fff; border-radius: 6px; text-align: center; font-size: 14px; }
.modal-content .close-btn { position: absolute; top: 10px; right: 15px; background: none; border: none; color: #aaa; font-size: 20px; cursor: pointer; }
.modal-content .btn { width: 100%; }

/* 页脚 */
footer { padding: 30px 20px; text-align: center; font-size: 12px; color: #666; border-top: 1px solid #222; }
footer a { color: #666; }
footer a:hover { color: var(--accent-color); }
.footer-links { margin: 10px 0; display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; }
.footer-links a { color: #888; }
.update-time { margin-top: 10px; }

/* 响应式 768px */
@media (min-width: 768px) {
  .hero { flex-direction: row; align-items: center; text-align: left; }
  .hero-content { flex: 1; }
  .hero-content h1 { font-size: 32px; }
  .hero-gallery { flex: 1; flex-wrap: nowrap; justify-content: flex-end; }
  .hero-gallery img { width: 60%; }
  .grid-cards { grid-template-columns: repeat(2, 1fr); }
  .split-layout { flex-direction: row; align-items: flex-start; }
  .split-img { flex: 1; }
  .split-content { flex: 2; }
  .faq-grid { grid-template-columns: repeat(2, 1fr); }
  .floating-download { left: auto; right: 20px; transform: none; width: auto; }
}

/* 响应式 1024px */
@media (min-width: 1024px) {
  .hero-content h1 { font-size: 38px; }
  .grid-cards { grid-template-columns: repeat(3, 1fr); }
  .campus-grid { grid-template-columns: repeat(3, 1fr); }
  .event-list { display: grid; grid-template-columns: repeat(2, 1fr); }
}