/* roulang page: index */
:root {
      --primary: #4f46e5;
      --primary-hover: #4338ca;
      --primary-subtle: #eef2ff;
      --accent: #06b6d4;
      --accent-subtle: #ecfeff;
      --dark-surface: #0b0f19;
      --card-bg: #ffffff;
      --border-color: #e2e8f0;
      --text-main: #0f172a;
      --text-muted: #64748b;
      --radius-sm: 8px;
      --radius-md: 14px;
      --radius-lg: 20px;
      --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
      --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
      --shadow-lg: 0 20px 35px -8px rgba(15, 23, 42, 0.12);
      --section-spacing: 5rem 0;
    }

    body {
      color: var(--text-main);
      background-color: #f8fafc;
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
      line-height: 1.68;
      overflow-x: hidden;
      padding-bottom: 72px;
    }

    a {
      text-decoration: none;
      color: inherit;
      transition: color 0.2s ease;
    }

    .site-header {
      background: #ffffff;
      border-bottom: 1px solid var(--border-color);
      position: sticky;
      top: 0;
      z-index: 1030;
      box-shadow: var(--shadow-sm);
    }

    .brand-logo-badge {
      display: inline-flex;
      align-items: center;
      gap: 0.65rem;
      font-size: 1.35rem;
      font-weight: 800;
      color: var(--text-main);
      letter-spacing: -0.02em;
    }
    .brand-logo-badge .icon-wrap {
      width: 36px;
      height: 36px;
      border-radius: var(--radius-sm);
      background: linear-gradient(135deg, var(--primary), var(--accent));
      display: flex;
      align-items: center;
      justify-content: center;
      color: #ffffff;
      font-size: 1.1rem;
    }

    .nav-grid-container {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      overflow-x: auto;
      padding: 0.4rem 0;
      scrollbar-width: none;
    }
    .nav-grid-container::-webkit-scrollbar {
      display: none;
    }
    .nav-grid-card {
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      padding: 0.45rem 0.95rem;
      background: #f1f5f9;
      border-radius: 999px;
      font-size: 0.88rem;
      font-weight: 500;
      color: #334155;
      white-space: nowrap;
      transition: all 0.2s ease;
    }
    .nav-grid-card:hover, .nav-grid-card.active {
      background: var(--primary);
      color: #ffffff;
    }
    .nav-grid-card i {
      font-size: 1rem;
    }

    .section-wrap {
      padding: var(--section-spacing);
      position: relative;
    }
    .section-alt {
      background-color: #ffffff;
      border-top: 1px solid var(--border-color);
      border-bottom: 1px solid var(--border-color);
    }
    .section-dark {
      background: var(--dark-surface);
      color: #f8fafc;
    }
    .section-dark .text-muted {
      color: #94a3b8 !important;
    }

    .section-head {
      margin-bottom: 3.25rem;
    }
    .section-head .badge-lead {
      display: inline-block;
      padding: 0.35rem 0.85rem;
      background: var(--primary-subtle);
      color: var(--primary);
      font-weight: 600;
      font-size: 0.82rem;
      border-radius: 999px;
      margin-bottom: 0.75rem;
      letter-spacing: 0.04em;
    }
    .section-dark .badge-lead {
      background: rgba(79, 70, 229, 0.25);
      color: #a5b4fc;
    }
    .section-head h2 {
      font-size: 2.1rem;
      font-weight: 700;
      letter-spacing: -0.02em;
      margin-bottom: 0.85rem;
    }
    .section-head p {
      max-width: 780px;
      color: var(--text-muted);
      font-size: 1.05rem;
      margin: 0 auto;
    }

    /* Hero Before/After Split */
    .hero-split-box {
      border-radius: var(--radius-lg);
      background: #ffffff;
      border: 1px solid var(--border-color);
      box-shadow: var(--shadow-lg);
      overflow: hidden;
    }
    .compare-side {
      padding: 2.5rem;
    }
    .compare-before {
      background: #f8fafc;
      border-right: 1px dashed var(--border-color);
    }
    .compare-after {
      background: linear-gradient(180deg, #ffffff 0%, #f5f7ff 100%);
    }
    .compare-label {
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      font-size: 0.82rem;
      font-weight: 700;
      padding: 0.3rem 0.75rem;
      border-radius: 999px;
      margin-bottom: 1.25rem;
      text-transform: uppercase;
    }
    .compare-before .compare-label {
      background: #fee2e2;
      color: #b91c1c;
    }
    .compare-after .compare-label {
      background: #dcfce7;
      color: #15803d;
    }

    .card-custom {
      background: #ffffff;
      border: 1px solid var(--border-color);
      border-radius: var(--radius-md);
      padding: 1.75rem;
      box-shadow: var(--shadow-sm);
      transition: all 0.25s ease;
      height: 100%;
    }
    .card-custom:hover {
      transform: translateY(-4px);
      box-shadow: var(--shadow-md);
      border-color: #cbd5e1;
    }
    .card-dark {
      background: #161e2e;
      border-color: #27354a;
    }
    .card-dark:hover {
      border-color: #3b82f6;
      box-shadow: 0 15px 30px rgba(0,0,0,0.4);
    }

    .icon-square {
      width: 50px;
      height: 50px;
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.4rem;
      margin-bottom: 1.25rem;
    }
    .icon-square.primary {
      background: var(--primary-subtle);
      color: var(--primary);
    }
    .icon-square.accent {
      background: var(--accent-subtle);
      color: var(--accent);
    }

    .pill-tag {
      font-size: 0.75rem;
      font-weight: 600;
      padding: 0.2rem 0.6rem;
      border-radius: 6px;
      background: #f1f5f9;
      color: #475569;
    }

    /* Live Notice Hero */
    .live-alert-card {
      background: #0f172a;
      border-radius: var(--radius-lg);
      padding: 2rem;
      color: #ffffff;
      box-shadow: var(--shadow-lg);
      border: 1px solid #334155;
    }
    .countdown-number {
      font-size: 2.2rem;
      font-weight: 800;
      color: #38bdf8;
      line-height: 1;
      font-variant-numeric: tabular-nums;
    }
    .countdown-unit {
      font-size: 0.75rem;
      color: #94a3b8;
      text-transform: uppercase;
    }

    /* Rank Board GEO style */
    .rank-item {
      background: #ffffff;
      border-radius: var(--radius-md);
      border: 1px solid var(--border-color);
      padding: 1.25rem 1.5rem;
      margin-bottom: 1rem;
      transition: all 0.2s ease;
    }
    .rank-item:hover {
      border-color: var(--primary);
      box-shadow: var(--shadow-sm);
    }
    .rank-badge {
      width: 36px;
      height: 36px;
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 800;
      font-size: 1.1rem;
    }

    .changelog-node {
      position: relative;
      padding-left: 2rem;
      border-left: 2px solid #cbd5e1;
      margin-bottom: 2rem;
    }
    .changelog-node::before {
      content: "";
      position: absolute;
      left: -7px;
      top: 4px;
      width: 12px;
      height: 12px;
      border-radius: 50%;
      background: var(--primary);
      box-shadow: 0 0 0 4px #e0e7ff;
    }

    .btn-main {
      background: var(--primary);
      color: #ffffff;
      font-weight: 600;
      padding: 0.75rem 1.75rem;
      border-radius: var(--radius-sm);
      border: none;
      transition: all 0.2s;
    }
    .btn-main:hover {
      background: var(--primary-hover);
      color: #ffffff;
      box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
    }
    .btn-outline-custom {
      border: 1px solid var(--border-color);
      color: var(--text-main);
      font-weight: 600;
      padding: 0.75rem 1.75rem;
      border-radius: var(--radius-sm);
      background: #ffffff;
    }
    .btn-outline-custom:hover {
      background: #f8fafc;
      border-color: #cbd5e1;
      color: var(--primary);
    }

    /* Fixed Bottom Bar */
    .bottom-floating-bar {
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      background: rgba(15, 23, 42, 0.94);
      backdrop-filter: blur(12px);
      border-top: 1px solid rgba(255, 255, 255, 0.1);
      z-index: 1040;
      padding: 0.85rem 0;
      color: #ffffff;
    }

    .site-footer {
      background: #090d16;
      color: #94a3b8;
      border-top: 1px solid #1e293b;
      padding: 4.5rem 0 2.5rem;
    }
    .site-footer h6 {
      color: #ffffff;
      font-weight: 700;
      margin-bottom: 1.25rem;
    }
    .footer-links-list li {
      margin-bottom: 0.65rem;
    }
    .footer-links-list a:hover {
      color: #ffffff;
    }

    @media (max-width: 991.98px) {
      .compare-before {
        border-right: none;
        border-bottom: 1px dashed var(--border-color);
      }
      .compare-side {
        padding: 1.75rem;
      }
      .section-head h2 {
        font-size: 1.75rem;
      }
    }
