:root {
    --bg-main: #f8f9fa;
    --bg-alt: #eef2f5;
    --text-main: #1a1a1a;
    --text-muted: #555555;
    --brand-primary: #0052ff;
    --brand-secondary: #ff3366;
    --brand-gradient: linear-gradient(90deg, #ff3366, #ff8c00, #00d2ff);
    --card-bg: #ffffff;
    --border-color: #e0e5ea;
    --radius-md: 12px;
    --radius-lg: 20px;
  }

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

  body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    padding-bottom: 80px; /* 为底部浮动窗口留空间 */
  }

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

  /* Header */
  header {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
  }

  .nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

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

  .brand img {
    height: 32px;
    width: auto;
  }

  .nav-links {
    display: flex;
    gap: 20px;
    font-size: 15px;
    color: var(--text-muted);
  }

  .nav-links a {
    transition: color 0.3s;
  }

  .nav-links a:hover {
    color: var(--brand-primary);
  }

  /* Mobile Nav */
  .mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 16px;
    color: var(--text-main);
    cursor: pointer;
  }

  /* Hero */
  .hero {
    background: linear-gradient(135deg, #f0f4ff 0%, #fff0f5 100%);
    padding: 40px 20px;
    text-align: center;
  }

  .hero-content {
    max-width: 800px;
    margin: 0 auto;
  }

  .hero h1 {
    font-size: 28px;
    margin-bottom: 16px;
    line-height: 1.4;
  }

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

  .download-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
  }

  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 500;
    transition: transform 0.2s;
  }

  .btn:active {
    transform: scale(0.98);
  }

  .btn-primary {
    background: var(--brand-primary);
    color: #fff;
  }

  .btn-outline {
    background: transparent;
    border: 1px solid var(--brand-primary);
    color: var(--brand-primary);
  }

  .hero-gallery {
    display: flex;
    gap: 16px;
    max-width: 1000px;
    margin: 32px auto 0;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
  }

  .hero-gallery img {
    width: 200px;
    height: 260px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    scroll-snap-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }

  /* Marquee */
  .marquee {
    background: var(--brand-gradient);
    color: #fff;
    padding: 8px 0;
    overflow: hidden;
    white-space: nowrap;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 20px;
  }

  .marquee span {
    display: inline-block;
    animation: scroll 20s linear infinite;
  }

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

  /* Sections */
  section {
    padding: 40px 20px;
  }

  .container {
    max-width: 1000px;
    margin: 0 auto;
  }

  h2 {
    font-size: 22px;
    margin-bottom: 24px;
    text-align: center;
  }

  /* 今日吃瓜 */
  .section-chigua {
    background: #fff;
  }
  .chigua-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .chigua-item {
    background: var(--bg-alt);
    padding: 16px;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .chigua-item h3 {
    font-size: 16px;
    color: var(--brand-secondary);
  }
  .chigua-item p {
    font-size: 14px;
    color: var(--text-muted);
  }

  /* 本周热瓜 */
  .section-reggua {
    background: #fff9f0;
  }
  .reggua-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .reggua-card {
    background: #fff;
    padding: 16px;
    border-radius: var(--radius-md);
    border-left: 4px solid #ff8c00;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  }
  .reggua-card h3 {
    font-size: 16px;
    margin-bottom: 8px;
  }

  /* 校园大赛 */
  .section-xiaoyuan {
    background: #e8f5e9;
  }
  .xiaoyuan-wrap {
    display: flex;
    gap: 24px;
    align-items: center;
  }
  .xiaoyuan-img {
    flex: 1;
    max-width: 300px;
    border-radius: var(--radius-lg);
  }
  .xiaoyuan-img img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    display: block;
  }
  .xiaoyuan-content {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .xiaoyuan-content p {
    font-size: 15px;
    background: rgba(255,255,255,0.6);
    padding: 10px;
    border-radius: 8px;
  }

  /* 社会时间 */
  .section-shehui {
    background: #e3f2fd;
  }
  .shehui-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
  }
  .shehui-card {
    background: #fff;
    padding: 20px;
    border-radius: var(--radius-md);
    text-align: center;
  }
  .shehui-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: 12px;
  }

  /* Q&A */
  .section-qa {
    background: #fff;
  }
  .qa-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .qa-item {
    background: var(--bg-alt);
    border-radius: var(--radius-md);
    padding: 16px;
  }
  .qa-q {
    font-weight: bold;
    color: var(--brand-primary);
    margin-bottom: 8px;
  }
  .qa-a {
    color: var(--text-muted);
    font-size: 14px;
  }

  /* 隐私安全 */
  .section-privacy {
    background: #f3e5f5;
  }
  .privacy-content {
    background: #fff;
    padding: 24px;
    border-radius: var(--radius-lg);
    font-size: 15px;
  }
  .privacy-content p {
    margin-bottom: 12px;
  }

  /* Download Section */
  .section-download {
    background: #1a1a1a;
    color: #fff;
  }
  .section-download h2 {
    color: #fff;
  }
  .dl-content {
    display: flex;
    gap: 32px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
  }
  .dl-img {
    width: 200px;
    height: 200px;
    border-radius: var(--radius-lg);
    object-fit: cover;
  }
  .dl-info {
    flex: 1;
    min-width: 260px;
  }
  .dl-info p {
    color: #ccc;
    margin-bottom: 20px;
    font-size: 15px;
  }
  .dl-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  }
  .dl-buttons .btn-outline {
    color: #fff;
    border-color: #fff;
  }

  /* Footer */
  footer {
    background: #fff;
    padding: 30px 20px;
    text-align: center;
    font-size: 12px;
    color: #888;
    border-top: 1px solid var(--border-color);
  }
  footer a {
    color: #888;
  }
  footer p {
    margin-bottom: 6px;
  }

  /* Floating Download Bar */
  .floating-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 600px;
    background: #fff;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.1);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 999;
    border-radius: 16px 16px 0 0;
  }
  .float-left {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .float-left img {
    height: 32px;
    width: auto;
  }
  .float-left span {
    font-size: 13px;
    color: var(--text-main);
  }
  .floating-bar .btn {
    padding: 8px 16px;
    font-size: 14px;
  }

  /* Media Queries */
  @media (max-width: 768px) {
    .nav-links {
      display: none;
      flex-direction: column;
      position: absolute;
      top: 100%;
      left: 0;
      width: 100%;
      background: #fff;
      padding: 16px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }
    .nav-links.active {
      display: flex;
    }
    .mobile-menu-btn {
      display: block;
    }
    .chigua-grid {
      grid-template-columns: 1fr;
    }
    .xiaoyuan-wrap {
      flex-direction: column;
    }
    .xiaoyuan-img {
      max-width: 100%;
      width: 100%;
    }
    .dl-content {
      flex-direction: column;
      text-align: center;
    }
    .dl-buttons {
      justify-content: center;
    }
    .hero-gallery img {
      width: 160px;
      height: 210px;
    }
  }

  @media (min-width: 1024px) {
    .hero-gallery {
      justify-content: center;
    }
  }