:root {
    --bg-main: #121317;
    --bg-card: #1b1d24;
    --bg-accent: #2a2d37;
    --text-main: #e2e4e9;
    --text-muted: #8b90a0;
    --primary: #ff5c5c;
    --primary-hover: #ff4040;
    --secondary: #6c5ce7;
    --gradient-text: linear-gradient(90deg, #ff5c5c, #ff9e00, #ff5c5c);
    --border-color: #323642;
    --radius-md: 12px;
    --radius-lg: 20px;
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", 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;
    padding-bottom: 80px; /* Space for floating dock */
  }

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

  /* Header & Nav */
  .site-header {
    position: sticky;
    top: 0;
    background-color: rgba(18, 19, 23, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
  }

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

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

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

  .nav-links {
    display: flex;
    gap: 20px;
  }

  .nav-links a {
    font-size: 0.95rem;
    color: var(--text-muted);
    transition: color 0.3s, transform 0.3s;
  }

  .nav-links a:hover {
    color: var(--primary);
    transform: translateY(-2px);
  }

  .mobile-menu-btn {
    display: none;
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
  }

  /* Hero Section */
  .hero {
    padding: 60px 20px 40px;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
  }

  .hero-content {
    flex: 1 1 400px;
  }

  .hero-content h1 {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 20px;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .hero-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    max-width: 500px;
  }

  .hero-downloads {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
  }

  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
  }

  .btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 92, 92, 0.3);
  }

  .btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
  }

  .btn-outline {
    border: 1px solid var(--border-color);
    color: var(--text-main);
  }

  .btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
  }

  .hero-gallery {
    flex: 1 1 400px;
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
  }

  .hero-gallery::-webkit-scrollbar {
    display: none;
  }

  .hero-gallery img {
    height: 300px;
    width: auto;
    border-radius: var(--radius-lg);
    object-fit: cover;
    scroll-snap-align: start;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  }

  /* Marquee */
  .marquee-wrap {
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
    overflow: hidden;
    white-space: nowrap;
  }

  .marquee-text {
    display: inline-block;
    font-size: 1rem;
    font-weight: 700;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: scrollLeft 15s linear infinite;
    padding-left: 100%;
  }

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

  /* Sections */
  .section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
  }

  .section-header {
    text-align: center;
    margin-bottom: 40px;
  }

  .section-header h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--text-main);
  }

  .section-header p {
    color: var(--text-muted);
  }

  /* Section: 今日吃瓜 */
  .section-gossip {
    background-color: #1c1e26;
    border-radius: var(--radius-lg);
    margin-bottom: 40px;
  }

  .gossip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
  }

  .gossip-card {
    background: var(--bg-card);
    padding: 20px;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary);
    transition: transform 0.3s;
  }

  .gossip-card:hover {
    transform: translateY(-5px);
  }

  .gossip-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
  }

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

  /* Section: 本周热瓜 */
  .section-hot {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
  }

  .hot-sidebar {
    flex: 1 1 300px;
    position: relative;
  }

  .hot-sidebar img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  }

  .hot-content {
    flex: 2 1 500px;
  }

  .hot-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  .hot-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    transition: background 0.3s;
  }

  .hot-item:hover {
    background: var(--bg-accent);
  }

  .hot-num {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
    min-width: 30px;
  }

  .hot-info h4 {
    font-size: 1rem;
    margin-bottom: 5px;
  }

  .hot-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
  }

  /* Section: 校园大赛 */
  .section-campus {
    background: #171920;
    border-radius: var(--radius-lg);
    margin-bottom: 40px;
  }

  .campus-layout {
    display: flex;
    flex-direction: row-reverse;
    flex-wrap: wrap;
    gap: 30px;
    align-items: center;
  }

  .campus-img {
    flex: 1 1 300px;
  }

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

  .campus-text {
    flex: 2 1 500px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }

  .campus-item {
    background: var(--bg-card);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
  }

  .campus-item h4 {
    font-size: 0.95rem;
    margin-bottom: 5px;
    color: var(--secondary);
  }

  .campus-item p {
    font-size: 0.85rem;
    color: var(--text-muted);
  }

  /* Section: 社会时间 */
  .section-society {
    margin-bottom: 40px;
  }

  .society-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
  }

  .society-card {
    background: linear-gradient(145deg, #1e2028, #15171c);
    padding: 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
  }

  .society-card h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
  }

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

  /* Section: QA (Privacy & FAQ) */
  .section-qa {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
  }

  .qa-block {
    flex: 1 1 45%;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 30px;
  }

  .qa-block h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
  }

  .qa-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  .qa-item h4 {
    font-size: 1rem;
    margin-bottom: 5px;
    color: var(--text-main);
  }

  .qa-item p {
    font-size: 0.85rem;
    color: var(--text-muted);
  }

  /* Section: Download */
  .section-download {
    background: linear-gradient(135deg, #1f222c, #121317);
    border-radius: var(--radius-lg);
    padding: 50px 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
  }

  .download-text {
    flex: 1 1 400px;
  }

  .download-text h2 {
    font-size: 2rem;
    margin-bottom: 15px;
  }

  .download-text p {
    color: var(--text-muted);
    margin-bottom: 25px;
  }

  .download-btns {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
  }

  .download-img {
    flex: 1 1 300px;
    text-align: center;
  }

  .download-img img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  }

  /* Floating Dock */
  .floating-dock {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(28, 30, 38, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 1000;
    width: 90%;
    max-width: 600px;
    justify-content: space-between;
  }

  .dock-info {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .dock-info img {
    height: 30px;
    border-radius: 6px;
  }

  .dock-info span {
    font-size: 0.85rem;
    color: var(--text-main);
    font-weight: 600;
    display: none; /* Hidden on very small screens */
  }

  .dock-btn {
    background: var(--primary);
    color: #fff;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
  }

  /* Comments */
  .section-comments {
    margin-bottom: 40px;
  }

  .comment-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  .comment-item {
    display: flex;
    gap: 15px;
    background: var(--bg-card);
    padding: 15px;
    border-radius: var(--radius-md);
  }

  .comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
  }

  .comment-content h4 {
    font-size: 0.9rem;
    color: var(--primary);
    margin-bottom: 5px;
  }

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

  /* Footer */
  .site-footer {
    background-color: #0d0e11;
    padding: 40px 20px 20px;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-muted);
  }

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

  .footer-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
  }

  .footer-brand {
    max-width: 300px;
  }

  .footer-brand h3 {
    color: var(--text-main);
    margin-bottom: 10px;
  }

  .footer-nav {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
  }

  .footer-nav a {
    color: var(--text-muted);
    transition: color 0.3s;
  }

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

  .footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    font-size: 0.8rem;
  }

  .footer-bottom p {
    margin-bottom: 5px;
  }

  .footer-bottom a {
    color: var(--text-muted);
    text-decoration: underline;
  }

  /* Modal */
  .modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
  }

  .modal-overlay.active {
    display: flex;
  }

  .modal-box {
    background: var(--bg-card);
    padding: 30px;
    border-radius: var(--radius-lg);
    max-width: 400px;
    width: 90%;
    text-align: center;
    position: relative;
  }

  .modal-box h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
  }

  .modal-box p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    word-break: break-all;
    background: var(--bg-main);
    padding: 10px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
  }

  .modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
  }

  /* Responsive */
  @media (min-width: 768px) {
    .dock-info span {
      display: inline;
    }
    .hero-content h1 {
      font-size: 3.2rem;
    }
  }

  @media (max-width: 767px) {
    .nav-links {
      display: none;
      position: absolute;
      top: 64px;
      left: 0;
      width: 100%;
      background: var(--bg-card);
      flex-direction: column;
      padding: 20px;
      border-bottom: 1px solid var(--border-color);
    }

    .nav-links.active {
      display: flex;
    }

    .mobile-menu-btn {
      display: block;
    }

    .hero {
      padding: 40px 20px 20px;
      flex-direction: column;
      text-align: center;
    }

    .hero-content h1 {
      font-size: 2.2rem;
    }

    .hero-content p {
      margin: 0 auto 25px;
    }

    .hero-downloads {
      justify-content: center;
    }

    .hero-gallery {
      justify-content: flex-start;
      width: 100%;
    }

    .hero-gallery img {
      height: 220px;
    }

    .section {
      padding: 40px 20px;
    }

    .campus-layout {
      flex-direction: column;
    }

    .campus-text {
      grid-template-columns: 1fr;
    }

    .qa-block {
      flex: 1 1 100%;
    }

    .section-download {
      padding: 40px 20px;
      flex-direction: column;
      text-align: center;
    }

    .download-btns {
      justify-content: center;
    }

    .floating-dock {
      padding: 8px 15px;
    }
  }