/* roulang page: index */
:root {
      --primary-dark: #0B1A2F;
      --primary-mid: #1E2D3D;
      --accent-green: #00E676;
      --accent-red: #FF1744;
      --bg-cool-gray: #F5F7FA;
      --text-secondary: #5A6B7F;
      --border-light: #E0E6ED;
      --white: #FFFFFF;
      --radius-lg: 12px;
      --radius-md: 8px;
      --shadow-sm: 0 4px 20px rgba(11,26,47,0.08);
      --shadow-hover: 0 8px 30px rgba(11,26,47,0.15);
      --font-sans: 'Noto Sans SC', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
      --font-mono: 'Roboto Mono', 'Inter', 'Courier New', monospace;
      --nav-width: 240px;
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    body {
      font-family: var(--font-sans);
      background-color: var(--bg-cool-gray);
      color: #1E2D3D;
      line-height: 1.6;
      display: flex;
      min-height: 100vh;
    }

    a {
      text-decoration: none;
      color: inherit;
      transition: color 0.2s ease;
    }

    img {
      max-width: 100%;
      height: auto;
      display: block;
    }

    button, .button {
      cursor: pointer;
      font-family: var(--font-sans);
      border: none;
      background: none;
      transition: all 0.25s ease;
    }

    h1, h2, h3, h4 {
      font-weight: 700;
      line-height: 1.2;
    }

    h1 {
      font-size: 48px;
      letter-spacing: -0.5px;
    }

    h2 {
      font-size: 36px;
      margin-bottom: 1.5rem;
    }

    h3 {
      font-size: 22px;
      margin-bottom: 0.75rem;
    }

    /* 左侧竖向导航 */
    .side-nav {
      position: fixed;
      top: 0;
      left: 0;
      width: var(--nav-width);
      height: 100vh;
      background-color: var(--primary-dark);
      color: #B0BEC5;
      display: flex;
      flex-direction: column;
      align-items: center;
      padding: 2rem 1rem;
      z-index: 40;
      box-shadow: 2px 0 12px rgba(0,0,0,0.15);
    }

    .logo {
      font-size: 1.5rem;
      font-weight: 700;
      color: var(--white);
      margin-bottom: 3rem;
      text-align: center;
      line-height: 1.3;
    }

    .logo span {
      display: block;
      font-size: 0.85rem;
      font-weight: 400;
      color: var(--accent-green);
      letter-spacing: 1px;
    }

    .nav-links {
      list-style: none;
      width: 100%;
      padding: 0;
    }

    .nav-links li {
      margin-bottom: 0.25rem;
    }

    .nav-links a {
      display: block;
      padding: 0.8rem 1rem;
      color: #B0BEC5;
      border-radius: 6px;
      font-weight: 500;
      font-size: 15px;
      transition: all 0.2s;
      border-left: 3px solid transparent;
    }

    .nav-links a:hover,
    .nav-links a.active {
      color: var(--white);
      background-color: rgba(255,255,255,0.05);
      border-left: 3px solid var(--accent-green);
    }

    /* 移动端顶部导航 */
    .mobile-header {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 56px;
      background: var(--primary-dark);
      align-items: center;
      justify-content: space-between;
      padding: 0 1.25rem;
      z-index: 50;
      box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    }

    .mobile-logo {
      font-size: 1.2rem;
      font-weight: 700;
      color: white;
    }

    .hamburger {
      font-size: 1.6rem;
      color: white;
      background: transparent;
      border: none;
    }

    .mobile-menu {
      display: none;
      position: fixed;
      top: 56px;
      left: 0;
      width: 100%;
      background: var(--primary-dark);
      padding: 1.5rem;
      z-index: 45;
      flex-direction: column;
    }

    .mobile-menu a {
      color: #B0BEC5;
      padding: 0.9rem 0;
      border-bottom: 1px solid rgba(255,255,255,0.08);
      font-weight: 500;
    }

    /* 主内容区 */
    .main-content {
      margin-left: var(--nav-width);
      flex: 1;
      width: calc(100% - var(--nav-width));
    }

    section {
      padding: 100px 0;
    }

    .container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 2rem;
    }

    /* Hero */
    .hero {
      background: linear-gradient(135deg, #0B1A2F 0%, #1A2F44 100%);
      color: white;
      position: relative;
      overflow: hidden;
    }

    .hero::before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: url('/assets/images/backpic/back-1.webp') center/cover no-repeat;
      opacity: 0.2;
      z-index: 1;
    }

    .hero .container {
      position: relative;
      z-index: 2;
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 2.5rem;
    }

    .hero-left {
      flex: 1 1 400px;
    }

    .hero-right {
      flex: 1 1 350px;
      display: flex;
      justify-content: center;
    }

    .live-card {
      background: rgba(30,45,61,0.8);
      backdrop-filter: blur(12px);
      border-radius: var(--radius-lg);
      padding: 2rem;
      border: 1px solid rgba(255,255,255,0.1);
      width: 100%;
      max-width: 320px;
    }

    .live-dot {
      display: inline-block;
      width: 10px;
      height: 10px;
      background: var(--accent-red);
      border-radius: 50%;
      margin-right: 6px;
      animation: pulse 1.5s infinite;
    }

    @keyframes pulse {
      0% { box-shadow: 0 0 0 0 rgba(255,23,68,0.6); }
      70% { box-shadow: 0 0 0 10px rgba(255,23,68,0); }
      100% { box-shadow: 0 0 0 0 rgba(255,23,68,0); }
    }

    .score-number {
      font-family: var(--font-mono);
      font-size: 48px;
      font-weight: 700;
      color: var(--accent-green);
    }

    .btn-primary {
      background: var(--accent-green);
      color: var(--primary-dark);
      font-weight: 700;
      padding: 14px 32px;
      border-radius: var(--radius-md);
      display: inline-block;
      font-size: 1rem;
    }

    .btn-primary:hover {
      filter: brightness(1.1);
      box-shadow: 0 0 18px rgba(0,230,118,0.5);
      color: #0B1A2F;
    }

    .btn-outline {
      background: transparent;
      border: 1.5px solid var(--accent-green);
      color: var(--accent-green);
      font-weight: 600;
      padding: 12px 28px;
      border-radius: var(--radius-md);
    }

    .btn-outline:hover {
      background: rgba(0,230,118,0.1);
    }

    /* 卡片通用 */
    .card {
      background: white;
      border-radius: var(--radius-lg);
      padding: 28px;
      box-shadow: var(--shadow-sm);
      border: 1px solid var(--border-light);
      transition: all 0.25s;
    }

    .card:hover {
      box-shadow: var(--shadow-hover);
      transform: translateY(-4px);
    }

    .text-accent {
      color: var(--accent-green);
      font-weight: 700;
    }

    .stat-big {
      font-family: var(--font-mono);
      font-size: 42px;
      font-weight: 700;
      color: var(--accent-green);
    }

    .grid-3 {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 28px;
    }

    .grid-4 {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 24px;
    }

    .bg-dark-section {
      background: var(--primary-dark);
      color: white;
      border-radius: 16px;
      padding: 3rem 2rem;
    }

    footer {
      background: var(--primary-dark);
      color: #B0BEC5;
      padding: 3rem 2rem 2rem;
    }

    .footer-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 2rem;
    }

    @media (max-width: 1024px) {
      .side-nav {
        display: none;
      }
      .mobile-header {
        display: flex;
      }
      .main-content {
        margin-left: 0;
        width: 100%;
        margin-top: 56px;
      }
      .grid-4 {
        grid-template-columns: repeat(2, 1fr);
      }
      .grid-3 {
        grid-template-columns: 1fr;
      }
    }

    @media (max-width: 640px) {
      h1 { font-size: 32px; }
      h2 { font-size: 28px; }
      .hero .container {
        flex-direction: column;
      }
      .grid-4, .footer-grid {
        grid-template-columns: 1fr;
      }
    }
