:root {
    --bg-main: #0f1115;
    --bg-alt: #1a1d24;
    --bg-card: #232730;
    --text-main: #f0f2f5;
    --text-sub: #a0a5b1;
    --brand: #6366f1;
    --brand-grad: linear-gradient(90deg, #ec4899, #8b5cf6, #3b82f6);
    --accent: #f59e0b;
    --radius: 16px;
    --radius-sm: 8px;
  }

  * { 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-main);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    padding-bottom: 80px;
  }
  a { text-decoration: none; color: inherit; transition: 0.2s; }
  img { max-width: 100%; display: block; }
  
  /* 容器 */
  .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
  .section { padding: 60px 0; }
  
  /* 头部导航 */
  header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(15, 17, 21, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  .header-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 64px; padding: 0 20px; max-width: 1200px; margin: 0 auto;
  }
  .logo-wrap { display: flex; align-items: center; gap: 12px; }
  .logo-wrap img { height: 32px; width: auto; border-radius: 4px; }
  .logo-text { font-weight: 700; font-size: 1.2rem; letter-spacing: 0.5px; }
  
  .desktop-nav { display: none; }
  .desktop-nav ul { display: flex; gap: 20px; list-style: none; }
  .desktop-nav a { font-size: 0.9rem; color: var(--text-sub); font-weight: 500; padding: 6px 10px; border-radius: 6px; position: relative; }
  .desktop-nav a:hover { color: #fff; background: rgba(255,255,255,0.05); }
  .desktop-nav a::after { content: ''; position: absolute; bottom: 0; left: 50%; width: 0; height: 2px; background: var(--brand-grad); transition: 0.3s; transform: translateX(-50%); }
  .desktop-nav a:hover::after { width: 80%; }

  .mobile-menu-btn { display: block; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }
  .mobile-nav { display: none; position: absolute; top: 64px; left: 0; width: 100%; background: var(--bg-alt); border-bottom: 1px solid #333; padding: 10px 0; }
  .mobile-nav.active { display: block; }
  .mobile-nav ul { list-style: none; display: flex; flex-direction: column; }
  .mobile-nav a { display: block; padding: 12px 20px; color: var(--text-main); border-bottom: 1px solid rgba(255,255,255,0.05); }
  
  /* 首屏 Hero */
  .hero { position: relative; padding: 40px 0 60px; overflow: hidden; background: radial-gradient(circle at 50% 0%, #2a1b3d, var(--bg-main)); }
  .hero-content { text-align: center; max-width: 800px; margin: 0 auto; position: relative; z-index: 2; }
  .hero-title { font-size: 2rem; font-weight: 800; line-height: 1.3; margin-bottom: 16px; background: var(--brand-grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
  .hero-desc { font-size: 1rem; color: var(--text-sub); margin-bottom: 24px; }
  
  .download-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 40px; }
  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 24px; border-radius: 30px; font-weight: 600; font-size: 0.95rem;
    background: var(--bg-card); color: #fff; border: 1px solid rgba(255,255,255,0.1);
  }
  .btn:hover { background: #333; border-color: var(--brand); transform: translateY(-2px); }
  .btn-primary { background: var(--brand-grad); border: none; box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4); }
  .btn-primary:hover { background: var(--brand-grad); filter: brightness(1.1); }
  
  .hero-images {
    display: flex; justify-content: center; gap: 16px; padding: 0 20px; margin-top: 20px; overflow-x: auto; scrollbar-width: none;
  }
  .hero-images::-webkit-scrollbar { display: none; }
  .hero-img-item {
    flex: 0 0 200px; border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(255,255,255,0.1); transition: 0.3s;
  }
  .hero-img-item img { width: 100%; height: 280px; object-fit: cover; }
  .hero-img-item:hover { transform: translateY(-5px); border-color: var(--brand); box-shadow: 0 10px 20px rgba(0,0,0,0.5); }

  /* 跑马灯 */
  .marquee-wrap {
    overflow: hidden; background: var(--bg-alt); padding: 12px 0; border-top: 1px solid #333; border-bottom: 1px solid #333;
  }
  .marquee-track {
    display: flex; white-space: nowrap; width: max-content; animation: marquee 15s linear infinite;
    font-weight: 700; font-size: 1.1rem; background: var(--brand-grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  }
  @keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

  /* 内容板块通用 */
  .section-header { text-align: center; margin-bottom: 40px; }
  .section-title { font-size: 1.6rem; font-weight: 700; margin-bottom: 12px; display: inline-block; position: relative; }
  .section-title::after { content: ''; display: block; width: 40px; height: 3px; background: var(--brand); border-radius: 2px; margin: 8px auto 0; }
  .section-subtitle { color: var(--text-sub); font-size: 0.9rem; }

  /* 今日吃瓜 - 左图右文 */
  .plit-section { display: flex; flex-direction: column; gap: 30px; }
  .plit-img { flex: 1; border-radius: var(--radius); overflow: hidden; }
  .plit-img img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
  .plit-content { flex: 2; display: flex; flex-direction: column; gap: 12px; }
  .news-list { list-style: none; background: var(--bg-card); border-radius: var(--radius); padding: 20px; }
  .news-list li { padding: 10px 0; border-bottom: 1px dashed #444; display: flex; align-items: flex-start; gap: 10px; font-size: 0.95rem; }
  .news-list li:last-child { border-bottom: none; }
  .news-list li::before { content: '•'; color: var(--brand); font-weight: bold; font-size: 1.2rem; line-height: 1; }

  /* 本周热瓜 - 网格 */
  .grid-cards { display: grid; grid-template-columns: 1fr; gap: 16px; }
  .card-item { background: var(--bg-card); padding: 20px; border-radius: var(--radius-sm); border-left: 4px solid var(--brand); }
  .card-item h3 { font-size: 1.05rem; margin-bottom: 8px; color: #fff; }
  .card-item p { font-size: 0.9rem; color: var(--text-sub); }

  /* 校园大赛 - 图文交错 */
  .z-pattern { display: flex; flex-direction: column; gap: 24px; }
  .z-item { background: var(--bg-card); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
  .z-img { height: 200px; overflow: hidden; }
  .z-img img { width: 100%; height: 100%; object-fit: cover; }
  .z-text { padding: 24px; }
  .z-text h3 { font-size: 1.2rem; margin-bottom: 12px; color: var(--accent); }
  .z-text p { font-size: 0.95rem; color: var(--text-main); margin-bottom: 10px; }

  /* 社会时间 / 隐私安全 / 意见反馈 - 多元卡片 */
  .alt-bg { background: var(--bg-alt); }
  .multi-cards { display: grid; grid-template-columns: 1fr; gap: 20px; }
  .m-card { background: var(--bg-main); padding: 20px; border-radius: var(--radius); box-shadow: 0 4px 10px rgba(0,0,0,0.2); border: 1px solid #333; }
  .m-card h3 { font-size: 1.1rem; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
  .m-card h3 span { color: var(--brand); font-weight: bold; }
  .m-card ul { list-style: none; }
  .m-card ul li { font-size: 0.9rem; color: var(--text-sub); padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
  .m-card ul li:last-child { border-bottom: none; }

  /* 常见问题 */
  .faq-list { display: flex; flex-direction: column; gap: 12px; }
  .faq-item { background: var(--bg-card); border-radius: var(--radius-sm); padding: 16px 20px; }
  .faq-item h3 { font-size: 1rem; color: var(--brand); margin-bottom: 8px; }
  .faq-item p { font-size: 0.9rem; color: var(--text-sub); }

  /* 下载专区 */
  .download-area { text-align: center; background: linear-gradient(135deg, #1e1b4b, #2e1065); border-radius: var(--radius); padding: 40px 20px; margin-top: 20px; }
  .download-area h2 { font-size: 1.6rem; margin-bottom: 16px; }
  .download-area p { color: var(--text-sub); margin-bottom: 24px; max-width: 600px; margin-left: auto; margin-right: auto; }
  .download-area .btn-group { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
  .download-area .btn { background: rgba(255,255,255,0.1); backdrop-filter: blur(5px); border: 1px solid rgba(255,255,255,0.2); }
  .download-area .btn:hover { background: rgba(255,255,255,0.2); border-color: #fff; }

  /* 浮动下载窗口 */
  .floating-download {
    position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 999;
    background: rgba(30, 33, 40, 0.95); border: 1px solid var(--brand); border-radius: 50px;
    padding: 8px 20px; display: flex; align-items: center; gap: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    backdrop-filter: blur(10px); width: max-content; max-width: 90%; transition: 0.3s;
  }
  .floating-download img { height: 28px; border-radius: 4px; }
  .floating-text { display: flex; flex-direction: column; }
  .floating-text strong { font-size: 0.9rem; color: #fff; }
  .floating-text span { font-size: 0.75rem; color: var(--text-sub); }
  .floating-download a { background: var(--brand); color: #fff; padding: 6px 16px; border-radius: 20px; font-size: 0.85rem; font-weight: 600; white-space: nowrap; }

  /* 页脚 */
  footer { text-align: center; padding: 40px 20px; font-size: 0.8rem; color: var(--text-sub); border-top: 1px solid #333; }
  footer .footer-nav { margin: 15px 0; display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; }
  footer .footer-nav a:hover { color: #fff; }
  footer .copyright { margin-top: 15px; }
  footer a { color: var(--text-sub); }
  footer a:hover { color: var(--text-main); }

  /* 复制提示框 */
  .copy-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); z-index: 1000; justify-content: center; align-items: center; padding: 20px; }
  .copy-modal.active { display: flex; }
  .copy-box { background: var(--bg-card); padding: 30px; border-radius: var(--radius); text-align: center; max-width: 400px; width: 100%; position: relative; }
  .copy-box p { margin-bottom: 20px; font-size: 0.95rem; line-height: 1.5; }
  .copy-box input { width: 100%; padding: 12px; background: var(--bg-main); border: 1px solid #555; color: #fff; border-radius: var(--radius-sm); margin-bottom: 20px; font-size: 0.9rem; text-align: center; }
  .copy-box button { background: var(--brand); color: #fff; border: none; padding: 10px 30px; border-radius: 30px; font-size: 1rem; cursor: pointer; font-weight: 600; }
  .copy-box button:hover { filter: brightness(1.1); }
  .close-modal { position: absolute; top: 10px; right: 15px; font-size: 1.5rem; color: var(--text-sub); cursor: pointer; background: none; border: none; }

  /* 响应式 */
  @media (min-width: 768px) {
    .desktop-nav { display: block; }
    .mobile-menu-btn { display: none; }
    .hero-title { font-size: 2.8rem; }
    .hero-desc { font-size: 1.1rem; }
    .hero-images { gap: 24px; }
    .hero-img-item { flex: 0 0 280px; }
    .hero-img-item img { height: 380px; }
    .plit-section { flex-direction: row; align-items: stretch; }
    .plit-img { flex: 1; }
    .plit-content { flex: 2; }
    .grid-cards { grid-template-columns: repeat(2, 1fr); }
    .z-pattern { flex-direction: row; flex-wrap: wrap; }
    .z-item { flex: 1 1 calc(50% - 12px); }
    .z-item:nth-child(even) { flex-direction: row-reverse; }
    .multi-cards { grid-template-columns: repeat(2, 1fr); }
  }

  @media (min-width: 1024px) {
    .hero-title { font-size: 3.5rem; }
    .hero-images { gap: 30px; }
    .hero-img-item { flex: 0 0 320px; }
    .hero-img-item img { height: 450px; }
    .grid-cards { grid-template-columns: repeat(3, 1fr); }
    .multi-cards { grid-template-columns: repeat(3, 1fr); }
    .z-pattern { flex-direction: column; }
    .z-item { flex-direction: row !important; }
    .z-item:nth-child(even) { flex-direction: row-reverse !important; }
    .z-img { width: 40%; height: auto; }
    .z-text { width: 60%; display: flex; flex-direction: column; justify-content: center; padding: 40px; }
  }