/* roulang page: index */
:root {
      --red: #E62E2E;
      --red-dark: #C41E1E;
      --charcoal: #1A1A1A;
      --cool-white: #F5F5F7;
      --light-gray: #ECECF0;
      --neon-green: #00E676;
      --text-dark: #1A1A1A;
      --text-muted-dark: #4A4A52;
      --text-light: #FFFFFF;
      --text-muted-light: #B0B0B8;
      --card-dark-bg: #2A2A2E;
      --border-light: #E8E8EC;
      --shadow-light: 0 2px 12px rgba(0,0,0,0.08);
      --shadow-dark: 0 4px 20px rgba(0,0,0,0.3);
      --radius: 12px;
      --btn-radius: 8px;
      --nav-width: 72px;
      --font-mono: 'Roboto Mono', 'Courier New', monospace;
      --font-sans: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
      transition: all 0.2s ease;
    }

    * {
      box-sizing: border-box;
    }

    body {
      font-family: var(--font-sans);
      background-color: var(--cool-white);
      color: var(--text-dark);
      margin: 0;
      line-height: 1.7;
      overflow-x: hidden;
      display: flex;
      flex-direction: row;
      min-height: 100vh;
    }

    /* 左侧 App Shell 导航 */
    .app-nav {
      position: fixed;
      left: 0;
      top: 0;
      width: var(--nav-width);
      height: 100vh;
      background-color: var(--charcoal);
      display: flex;
      flex-direction: column;
      align-items: center;
      padding: 1.5rem 0;
      z-index: 1030;
      box-shadow: 2px 0 12px rgba(0,0,0,0.2);
      transition: width 0.25s ease;
    }

    .nav-logo {
      font-size: 1.4rem;
      font-weight: 800;
      color: var(--text-light);
      writing-mode: vertical-rl;
      text-orientation: mixed;
      letter-spacing: 4px;
      margin-bottom: 2.5rem;
      display: flex;
      align-items: center;
      gap: 0.4rem;
    }
    .nav-logo i {
      font-size: 1.8rem;
      color: var(--neon-green);
      writing-mode: horizontal-tb;
    }

    .nav-menu {
      display: flex;
      flex-direction: column;
      gap: 1.8rem;
      list-style: none;
      padding: 0;
      margin: 0;
      align-items: center;
      width: 100%;
    }

    .nav-item {
      width: 100%;
      text-align: center;
      position: relative;
    }

    .nav-link {
      color: var(--text-muted-light);
      text-decoration: none;
      font-size: 0.8rem;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 0.2rem;
      padding: 0.5rem 0;
      transition: color 0.2s;
      position: relative;
    }

    .nav-link i {
      font-size: 1.5rem;
    }

    .nav-link:hover, .nav-link.active {
      color: var(--neon-green);
    }

    .nav-link.active::before {
      content: '';
      position: absolute;
      left: 0;
      top: 50%;
      transform: translateY(-50%);
      height: 24px;
      width: 3px;
      background-color: var(--neon-green);
      border-radius: 0 4px 4px 0;
    }

    /* 右侧主内容区 */
    .main-content {
      margin-left: var(--nav-width);
      flex: 1;
      width: calc(100% - var(--nav-width));
      background-color: var(--cool-white);
    }

    /* 桌面端隐藏汉堡菜单 */
    .mobile-nav-toggle {
      display: none;
    }

    /* 移动端抽屉 */
    .mobile-drawer {
      display: none;
    }

    h1, h2, h3, h4 {
      font-weight: 700;
    }

    .section-title {
      font-size: 2.5rem;
      font-weight: 700;
      margin-bottom: 1.5rem;
    }

    .text-mono {
      font-family: var(--font-mono);
    }

    .btn-primary-red {
      background: var(--red);
      border: none;
      color: white;
      padding: 0.75rem 1.8rem;
      border-radius: var(--btn-radius);
      font-weight: 600;
      transition: all 0.2s;
      text-decoration: none;
      display: inline-block;
      text-align: center;
    }
    .btn-primary-red:hover {
      background: var(--red-dark);
      transform: scale(1.02);
      color: white;
    }

    .btn-outline-green {
      border: 2px solid var(--neon-green);
      background: transparent;
      color: var(--text-light);
      padding: 0.75rem 1.8rem;
      border-radius: var(--btn-radius);
      font-weight: 600;
      transition: all 0.2s;
      text-decoration: none;
      display: inline-block;
      text-align: center;
    }
    .btn-outline-green:hover {
      background: var(--neon-green);
      color: var(--charcoal);
    }

    .btn-outline-green-dark {
      border: 2px solid var(--neon-green);
      color: var(--charcoal);
    }
    .btn-outline-green-dark:hover {
      background: var(--neon-green);
      color: var(--charcoal);
    }

    /* Hero */
    .hero-section {
      background-color: var(--charcoal);
      background-image: url('/assets/images/backpic/back-1.webp');
      background-size: cover;
      background-position: center;
      min-height: 100vh;
      display: flex;
      align-items: center;
      position: relative;
      color: var(--text-light);
    }
    .hero-overlay {
      background: rgba(26,26,26,0.75);
      width: 100%;
      height: 100%;
      padding: 4rem 2rem;
      display: flex;
      align-items: center;
    }

    .live-score-demo {
      background: rgba(42,42,46,0.9);
      border: 1px solid var(--neon-green);
      border-radius: var(--radius);
      padding: 1.5rem;
      backdrop-filter: blur(8px);
      color: white;
      width: fit-content;
    }

    /* 实时数据展示带 */
    .score-strip {
      background: var(--charcoal);
      padding: 2rem 1rem;
      overflow-x: auto;
      white-space: nowrap;
    }
    .score-card {
      background: var(--card-dark-bg);
      border-radius: var(--radius);
      padding: 1rem 1.5rem;
      display: inline-block;
      margin-right: 1rem;
      color: white;
      min-width: 180px;
      vertical-align: top;
    }
    .status-dot {
      display: inline-block;
      width: 8px;
      height: 8px;
      border-radius: 50%;
      margin-right: 4px;
    }

    /* 通用卡片 */
    .feature-card, .scene-card {
      background: white;
      border-radius: var(--radius);
      padding: 1.5rem;
      border: 1px solid var(--border-light);
      box-shadow: var(--shadow-light);
      transition: all 0.25s ease;
      height: 100%;
    }
    .feature-card:hover, .scene-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 8px 24px rgba(0,0,0,0.12);
      border-left: 4px solid var(--red);
    }

    .stat-number {
      font-family: var(--font-mono);
      font-size: 2.8rem;
      font-weight: 700;
      color: var(--red);
    }

    /* FAQ 手风琴自定义 */
    .accordion-button:not(.collapsed) {
      background-color: var(--light-gray);
      color: var(--charcoal);
      box-shadow: none;
      border-left: 4px solid var(--red);
    }
    .accordion-button {
      font-weight: 600;
      background: var(--light-gray);
    }
    .accordion-item {
      border: none;
      margin-bottom: 0.5rem;
    }

    footer {
      background: var(--charcoal);
      color: var(--text-muted-light);
    }
    footer a {
      color: var(--text-muted-light);
      text-decoration: none;
    }
    footer a:hover {
      color: var(--neon-green);
    }

    @media (max-width: 768px) {
      .app-nav {
        display: none;
      }
      .main-content {
        margin-left: 0;
        width: 100%;
      }
      .mobile-nav-toggle {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 56px;
        background: var(--charcoal);
        z-index: 1040;
        align-items: center;
        justify-content: space-between;
        padding: 0 1rem;
      }
      .mobile-drawer {
        display: block;
        position: fixed;
        top: 56px;
        left: -100%;
        width: 80%;
        height: calc(100vh - 56px);
        background: var(--charcoal);
        z-index: 1050;
        transition: left 0.3s;
        padding: 1.5rem;
      }
      .mobile-drawer.open {
        left: 0;
      }
      .hero-section {
        min-height: 90vh;
      }
      .section-title {
        font-size: 2rem;
      }
      .btn-primary-red, .btn-outline-green {
        width: 100%;
        margin-bottom: 0.5rem;
      }
    }
