/* roulang page: index */
:root {
      --primary: #0A1128;
      --primary-accent: #FF4D4D;
      --primary-light: #F0F2F5;
      --text-primary: #1A1A1A;
      --text-secondary: #5A5A5A;
      --border: #E5E7EB;
      --success: #10B981;
      --white: #ffffff;
      --shadow-sm: 0 4px 12px rgba(0,0,0,0.04);
      --shadow-md: 0 12px 24px rgba(0,0,0,0.08);
      --radius-card: 12px;
      --radius-btn: 8px;
      --radius-input: 8px;
      --radius-capsule: 40px;
      --transition: all 0.3s ease;
      --font-mono: 'JetBrains Mono', monospace;
    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      font-family: 'Inter', system-ui, -apple-system, sans-serif;
      background-color: var(--white);
      color: var(--text-primary);
      line-height: 1.75;
      font-weight: 400;
      -webkit-font-smoothing: antialiased;
      overflow-x: hidden;
    }

    .container {
      max-width: 1280px;
      margin: 0 auto;
      padding: 0 32px;
    }

    h1, h2, h3 {
      font-weight: 700;
    }

    h1 {
      font-size: 3.5rem;
      line-height: 4.5rem;
      letter-spacing: -0.02em;
      font-weight: 800;
    }

    h2 {
      font-size: 2.25rem;
      line-height: 3rem;
      margin-bottom: 1.5rem;
      font-weight: 700;
    }

    h3 {
      font-size: 1.25rem;
      line-height: 1.75rem;
      font-weight: 600;
    }

    p {
      color: var(--text-secondary);
      font-size: 1rem;
      line-height: 1.75rem;
    }

    a {
      text-decoration: none;
      color: inherit;
    }

    img {
      max-width: 100%;
      display: block;
    }

    /* 悬浮胶囊导航 */
    .nav-capsule {
      position: fixed;
      top: 24px;
      left: 50%;
      transform: translateX(-50%);
      width: auto;
      max-width: 90%;
      background: rgba(255,255,255,0.7);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      border-radius: var(--radius-capsule);
      padding: 8px 24px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
      z-index: 1000;
      box-shadow: 0 8px 20px rgba(0,0,0,0.05);
      transition: background 0.3s, box-shadow 0.3s;
    }

    .nav-capsule.scrolled {
      background: rgba(255,255,255,0.95);
      box-shadow: 0 12px 28px rgba(0,0,0,0.08);
    }

    .nav-links {
      display: flex;
      align-items: center;
      gap: 28px;
      list-style: none;
    }

    .nav-links a {
      font-weight: 500;
      font-size: 0.95rem;
      color: var(--text-primary);
      transition: color 0.2s;
      white-space: nowrap;
    }

    .nav-links a.active,
    .nav-links a:hover {
      color: var(--primary-accent);
    }

    .nav-cta {
      background: var(--primary-accent);
      color: white !important;
      padding: 10px 22px;
      border-radius: 30px;
      font-weight: 600;
      transition: background 0.2s, transform 0.2s;
      margin-left: 8px;
      white-space: nowrap;
    }

    .nav-cta:hover {
      background: #e64444;
      transform: scale(1.02);
    }

    .mobile-menu-btn {
      display: none;
      background: none;
      border: none;
      font-size: 1.6rem;
      color: var(--primary);
      cursor: pointer;
      padding: 4px;
    }

    /* 区块通用 */
    section {
      padding: 100px 0;
    }

    /* Hero */
    #hero {
      position: relative;
      background-image: url('/assets/images/backpic/hero-bg.webp');
      background-size: cover;
      background-position: center;
      min-height: 100vh;
      display: flex;
      align-items: center;
      color: white;
      background-blend-mode: overlay;
      background-color: rgba(10, 17, 40, 0.75);
    }

    .hero-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 60px;
      align-items: center;
    }

    .hero-text h1 {
      color: white;
      margin-bottom: 1.5rem;
    }

    .hero-text h1 span {
      color: var(--primary-accent);
    }

    .hero-subtitle {
      font-size: 1.2rem;
      color: rgba(255,255,255,0.85);
      margin-bottom: 2.5rem;
      max-width: 90%;
    }

    .hero-actions {
      display: flex;
      gap: 16px;
      flex-wrap: wrap;
    }

    .btn-primary {
      background: var(--primary-accent);
      color: white;
      border: none;
      padding: 14px 32px;
      border-radius: var(--radius-btn);
      font-weight: 600;
      font-size: 1rem;
      cursor: pointer;
      transition: background 0.2s, transform 0.2s;
      display: inline-block;
      text-align: center;
    }

    .btn-primary:hover {
      background: #e64444;
      transform: scale(1.02);
    }

    .btn-secondary {
      background: transparent;
      border: 1.5px solid white;
      color: white;
      padding: 14px 32px;
      border-radius: var(--radius-btn);
      font-weight: 600;
      font-size: 1rem;
      cursor: pointer;
      transition: all 0.25s;
      display: inline-block;
    }

    .btn-secondary:hover {
      background: white;
      color: var(--primary);
    }

    .hero-visual {
      display: flex;
      justify-content: center;
      align-items: center;
    }

    .hero-visual img {
      max-width: 100%;
      height: auto;
      border-radius: 20px;
      box-shadow: 0 25px 50px rgba(0,0,0,0.3);
    }

    /* 指标看板 */
    .metrics-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 24px;
      margin-top: 40px;
    }

    .metric-card {
      background: var(--primary-light);
      padding: 32px 24px;
      border-radius: var(--radius-card);
      text-align: center;
      transition: var(--transition);
    }

    .metric-number {
      font-family: var(--font-mono);
      font-weight: 700;
      font-size: 2.5rem;
      color: var(--primary-accent);
      margin-bottom: 8px;
    }

    .metric-label {
      font-weight: 500;
      color: var(--text-primary);
    }

    /* 服务矩阵 */
    .services-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 24px;
      margin-top: 40px;
    }

    .service-card {
      background: white;
      border: 1px solid var(--border);
      border-radius: var(--radius-card);
      padding: 32px;
      transition: transform 0.3s, box-shadow 0.3s;
      box-shadow: var(--shadow-sm);
    }

    .service-card:hover {
      transform: translateY(-8px);
      box-shadow: var(--shadow-md);
    }

    .service-icon {
      font-size: 2rem;
      color: var(--primary-accent);
      margin-bottom: 20px;
    }

    .service-card h3 {
      margin-bottom: 12px;
    }

    /* 对比 */
    .compare-container {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 40px;
      margin-top: 40px;
    }

    .compare-col {
      padding: 32px;
      border-radius: var(--radius-card);
      background: var(--primary-light);
    }

    .compare-col.highlight {
      background: #fef9f9;
      border: 1px solid rgba(255,77,77,0.2);
      box-shadow: 0 0 0 4px rgba(255,77,77,0.05);
    }

    .compare-item {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 24px;
    }

    .compare-item i {
      font-size: 1.2rem;
      width: 24px;
      text-align: center;
    }

    .compare-item .old {
      color: #9CA3AF;
      text-decoration: line-through;
    }

    .compare-item .new {
      font-weight: 600;
      color: var(--primary);
    }

    .fa-check-circle {
      color: var(--success);
    }

    /* FAQ */
    .faq-list {
      max-width: 800px;
      margin: 40px auto 0;
    }

    .faq-item {
      border-bottom: 1px solid var(--border);
      padding: 20px 0;
    }

    .faq-question {
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-weight: 600;
      font-size: 1.1rem;
      cursor: pointer;
      transition: color 0.2s;
    }

    .faq-question:hover {
      color: var(--primary-accent);
    }

    .faq-icon {
      font-size: 1.4rem;
      color: var(--primary-accent);
      transition: transform 0.3s;
    }

    .faq-answer {
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.4s ease, padding 0.3s;
      color: var(--text-secondary);
      line-height: 1.7;
      padding-right: 20px;
    }

    .faq-item.active .faq-answer {
      max-height: 200px;
      padding-top: 12px;
    }

    .faq-item.active .faq-icon {
      transform: rotate(45deg);
    }

    /* 联系表单 */
    #contact {
      background: #f9fafb;
    }

    .contact-form {
      max-width: 600px;
      margin: 40px auto 0;
      display: flex;
      flex-direction: column;
      gap: 20px;
    }

    .form-input {
      padding: 14px 20px;
      border: 1px solid var(--border);
      border-radius: var(--radius-input);
      font-size: 1rem;
      transition: border 0.2s, box-shadow 0.2s;
      background: white;
    }

    .form-input:focus {
      outline: none;
      border-color: var(--primary-accent);
      box-shadow: 0 0 0 3px rgba(255, 77, 77, 0.2);
    }

    /* 页脚 */
    .footer {
      background: #0A0F1A;
      color: #B0B8C1;
      padding: 60px 0 30px;
    }

    .footer-grid {
      display: grid;
      grid-template-columns: 2fr 1fr 1fr 1.5fr;
      gap: 40px;
    }

    .footer-logo {
      font-size: 1.8rem;
      font-weight: 700;
      color: white;
      margin-bottom: 12px;
    }

    .footer-desc {
      color: #9CA3AF;
    }

    .footer h4 {
      color: white;
      margin-bottom: 20px;
      font-weight: 600;
    }

    .footer ul {
      list-style: none;
    }

    .footer li {
      margin-bottom: 12px;
    }

    .footer a {
      color: #B0B8C1;
      transition: color 0.2s;
    }

    .footer a:hover {
      color: var(--primary-accent);
    }

    .copyright {
      border-top: 1px solid #2D3748;
      margin-top: 40px;
      padding-top: 24px;
      text-align: center;
      color: #6B7280;
      font-size: 0.9rem;
    }

    /* 响应式 */
    @media (max-width: 1024px) {
      h1 {
        font-size: 2.8rem;
        line-height: 3.5rem;
      }
      .hero-grid {
        grid-template-columns: 1fr;
      }
      .services-grid {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    @media (max-width: 768px) {
      .container {
        padding: 0 20px;
      }
      .nav-capsule {
        width: calc(100% - 32px);
        left: 16px;
        transform: none;
        justify-content: space-between;
      }
      .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 24px;
        border-radius: 24px;
        box-shadow: 0 20px 30px rgba(0,0,0,0.1);
      }
      .nav-links.mobile-open {
        display: flex;
      }
      .mobile-menu-btn {
        display: block;
      }
      .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
      }
      .services-grid {
        grid-template-columns: 1fr;
      }
      .compare-container {
        grid-template-columns: 1fr;
      }
      .footer-grid {
        grid-template-columns: 1fr 1fr;
      }
      h2 {
        font-size: 1.9rem;
      }
      section {
        padding: 70px 0;
      }
    }

    @media (max-width: 520px) {
      .metrics-grid {
        grid-template-columns: 1fr;
      }
      .footer-grid {
        grid-template-columns: 1fr;
      }
      .hero-actions {
        flex-direction: column;
      }
    }
