:root {
    --bg-main: #0B0D1F;
    --bg-dark: #141833;
    --panel-1: #1C2145;
    --panel-2: #262C58;
    --rainbow: linear-gradient(90deg, #FF3D81, #FF8A00, #FFE14D, #2ED47A, #00C2FF, #5B5BFF, #B93DFF);
    --border-pink: rgba(255, 61, 129, .18);
    --border-yellow: rgba(255, 225, 77, .16);
    --border-cyan: rgba(0, 194, 255, .18);
    --text-main: #E2E6F0;
    --text-dim: #8A90B0;
    --text-dark: #0B0D1F;
    --radius: 16px;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  }

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

  body {
    font-family: var(--font);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    padding-bottom: 80px; /* Space for floating window */
  }

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

  /* Rainbow Text Utility */
  .text-rainbow {
    background: var(--rainbow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    display: inline-block;
  }

  /* Rainbow Button */
  .btn-rainbow {
    background: var(--rainbow);
    color: var(--text-dark);
    font-weight: bold;
    border: none;
    border-radius: 50px;
    padding: 10px 24px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: center;
    display: inline-block;
  }

  .btn-rainbow:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(255, 61, 129, 0.4);
  }

  .btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-pink);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    transition: all 0.2s;
  }
  .btn-outline:hover {
    border-color: #00C2FF;
    color: #00C2FF;
  }

  /* Layout */
  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
  }

  section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 28px;
    margin-bottom: 30px;
    text-align: center;
  }

  .panel {
    background: var(--panel-1);
    border: 1px solid var(--border-pink);
    border-radius: var(--radius);
    padding: 24px;
  }

  /* Header */
  header {
    background: rgba(20, 24, 51, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-cyan);
  }

  .header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
  }

  .logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    font-weight: bold;
  }

  .logo-area img {
    height: 36px;
    border-radius: 8px;
  }

  /* Desktop Nav */
  .desktop-nav {
    display: flex;
    gap: 24px;
  }

  .desktop-nav a {
    font-size: 15px;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s;
  }

  .desktop-nav a:hover {
    color: #FFE14D;
  }

  .desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--rainbow);
    transition: width 0.3s;
  }

  .desktop-nav a:hover::after {
    width: 100%;
  }

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

  /* Hero Section */
  .hero {
    padding: 80px 0 40px;
    text-align: center;
  }

  .hero h1 {
    font-size: 42px;
    line-height: 1.3;
    margin-bottom: 20px;
  }

  .hero p {
    font-size: 16px;
    color: var(--text-dim);
    max-width: 700px;
    margin: 0 auto 40px;
  }

  .hero-downloads {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-bottom: 50px;
  }

  .hero-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
  }

  .hero-gallery img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--border-yellow);
    transition: transform 0.3s;
  }

  .hero-gallery img:hover {
    transform: translateY(-5px);
  }

  /* Marquee */
  .marquee {
    width: 100%;
    overflow: hidden;
    background: var(--panel-2);
    padding: 12px 0;
    border-radius: 8px;
    border: 1px solid var(--border-cyan);
    font-size: 14px;
    font-weight: bold;
    white-space: nowrap;
  }

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

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

  /* Section 1: 每日吃瓜 */
  .eat-melon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }

  .eat-melon-card {
    background: var(--panel-2);
    border-radius: var(--radius);
    padding: 20px;
    border-left: 4px solid #FF8A00;
    transition: transform 0.2s;
  }

  .eat-melon-card:hover {
    transform: scale(1.02);
    border-color: #FFE14D;
  }

  .eat-melon-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-main);
  }

  .eat-melon-card p {
    font-size: 14px;
    color: var(--text-dim);
  }

  .eat-melon-card .tag {
    display: inline-block;
    font-size: 12px;
    color: #FF3D81;
    border: 1px solid var(--border-pink);
    padding: 2px 8px;
    border-radius: 4px;
    margin-top: 10px;
  }

  /* Section 2: 今日热瓜 */
  .hot-gua-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .hot-item {
    background: var(--panel-1);
    border: 1px solid var(--border-yellow);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
  }

  .hot-num {
    font-size: 24px;
    font-weight: bold;
    color: #00C2FF;
    width: 40px;
    flex-shrink: 0;
    text-align: center;
  }

  .hot-content h3 {
    font-size: 17px;
    margin-bottom: 6px;
  }

  .hot-content p {
    font-size: 14px;
    color: var(--text-dim);
  }

  /* Section 3: 校园反差 */
  .contrast-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    align-items: stretch;
  }

  .contrast-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--border-pink);
  }

  .contrast-text-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .contrast-text-item {
    background: var(--panel-2);
    padding: 16px;
    border-radius: 8px;
    border-left: 3px solid #5B5BFF;
    font-size: 15px;
    transition: background 0.2s;
  }

  .contrast-text-item:hover {
    background: var(--panel-1);
  }

  /* Section 4: 每日大赛 */
  .competition-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
  }

  .competition-card {
    background: var(--panel-1);
    border: 1px solid var(--border-cyan);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.2s;
  }

  .competition-card:hover {
    background: var(--panel-2);
    border-color: #2ED47A;
    transform: translateY(-3px);
  }

  .competition-card h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: #FFE14D;
  }

  .competition-card p {
    font-size: 13px;
    color: var(--text-dim);
  }

  /* Section 5: Q&A (Privacy & Feedback & FAQ) */
  .qa-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .qa-block {
    background: var(--panel-2);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--border-pink);
  }

  .qa-block h2 {
    font-size: 22px;
    margin-bottom: 20px;
    color: #5B5BFF;
  }

  details {
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border-yellow);
    padding-bottom: 12px;
  }

  details summary {
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    list-style: none;
    position: relative;
    padding-left: 20px;
  }

  details summary::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #FF8A00;
    transition: transform 0.2s;
  }

  details[open] summary::before {
    transform: rotate(90deg);
  }

  details p {
    font-size: 14px;
    color: var(--text-dim);
    margin-top: 8px;
    padding-left: 20px;
  }

  /* Section 6: Download Area */
  .download-area {
    background: var(--panel-1);
    border-top: 2px solid transparent;
    border-image: var(--rainbow) 1;
    padding: 60px 20px;
    text-align: center;
    border-radius: var(--radius);
  }

  .download-area h2 {
    font-size: 28px;
    margin-bottom: 15px;
  }

  .download-area p {
    color: var(--text-dim);
    margin-bottom: 30px;
  }

  .download-steps {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
  }

  .step-item {
    background: var(--bg-dark);
    padding: 20px 30px;
    border-radius: 12px;
    border: 1px solid var(--border-cyan);
    max-width: 250px;
  }

  .step-item h4 {
    color: #FF3D81;
    margin-bottom: 8px;
  }

  .step-item p {
    font-size: 13px;
    margin-bottom: 0;
  }

  /* Floating Download Window */
  .floating-download {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--panel-2);
    border: 1px solid var(--border-yellow);
    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: calc(100% - 40px);
    max-width: 400px;
  }

  .floating-download img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
  }

  .floating-info {
    font-size: 12px;
    flex-grow: 1;
  }

  .floating-info strong {
    display: block;
    color: var(--text-main);
    font-size: 14px;
  }

  .floating-btn {
    background: var(--rainbow);
    color: var(--text-dark);
    font-weight: bold;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 13px;
    white-space: nowrap;
  }

  /* Modal for copying link */
  .copy-modal {
    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;
    padding: 20px;
  }
  .copy-modal.show {
    display: flex;
  }
  .copy-box {
    background: var(--panel-1);
    border: 1px solid var(--border-pink);
    border-radius: var(--radius);
    padding: 24px;
    max-width: 400px;
    width: 100%;
    text-align: center;
  }
  .copy-box p {
    margin-bottom: 15px;
    font-size: 15px;
  }
  .copy-box input {
    width: 100%;
    padding: 10px;
    background: var(--bg-dark);
    border: 1px solid var(--border-cyan);
    border-radius: 8px;
    color: #FFE14D;
    margin-bottom: 15px;
    text-align: center;
    font-size: 14px;
  }

  /* Footer */
  footer {
    background: var(--bg-dark);
    padding: 40px 0 20px;
    font-size: 13px;
    color: var(--text-dim);
    text-align: center;
    border-top: 1px solid var(--border-yellow);
  }

  footer .footer-links {
    margin: 15px 0;
  }

  footer .footer-links a {
    margin: 0 8px;
    color: var(--text-dim);
    transition: color 0.2s;
  }

  footer .footer-links a:hover {
    color: #FF3D81;
  }

  footer details {
    margin: 20px auto;
    max-width: 800px;
    text-align: left;
    border: none;
    padding: 0;
  }
  
  footer details summary {
    font-size: 13px;
    color: var(--text-dim);
    padding-left: 0;
    display: inline-block;
    font-weight: normal;
  }
  
  footer details summary::before {
    content: none;
  }

  footer details summary:hover {
    color: var(--text-main);
  }

  .about-content {
    margin-top: 15px;
    font-size: 12px;
    line-height: 1.8;
    padding: 15px;
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
    border: 1px solid var(--border-yellow);
  }
  .about-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
  }
  .about-links a {
    color: #5B5BFF;
    text-decoration: underline;
  }
  .about-links a:hover {
    color: #00C2FF;
  }

  .footer-bottom {
    margin-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 20px;
    font-size: 12px;
  }

  /* Responsive Breakpoints */
  @media (max-width: 1024px) {
    .hero h1 { font-size: 34px; }
    .contrast-layout { grid-template-columns: 1fr 1fr; }
    .qa-section { grid-template-columns: 1fr; }
  }

  @media (max-width: 768px) {
    .header-inner { justify-content: space-between; }
    .desktop-nav { display: none; flex-direction: column; position: absolute; top: 70px; left: 0; width: 100%; background: var(--bg-dark); padding: 20px; border-bottom: 1px solid var(--border-cyan); gap: 15px; }
    .desktop-nav.active { display: flex; }
    .mobile-menu-btn { display: block; }
    
    .hero { padding: 40px 0 20px; }
    .hero h1 { font-size: 28px; }
    .hero-gallery { grid-template-columns: 1fr; }
    .hero-gallery img { height: 200px; }
    
    .contrast-layout { grid-template-columns: 1fr; }
    .contrast-img { height: 300px; }
    
    .download-steps { flex-direction: column; align-items: center; }
    .step-item { width: 100%; max-width: 100%; }
    
    .floating-download { width: 90%; padding: 10px 15px; }
    .floating-info strong { font-size: 13px; }
    
    .footer-links { display: flex; flex-direction: column; gap: 10px; }
    .about-links { flex-direction: column; }
  }