/* roulang page: index */
:root {
      --primary: #1E1B4B;
      --accent: #F59E0B;
      --secondary: #8B5CF6;
      --bg: #FAF9FE;
      --card-bg: #FFFFFF;
      --dark-section: #0F0A2E;
      --text-primary: #1F2937;
      --text-secondary: #6B7280;
      --text-on-dark: #F3F4F6;
      --border-light: #F0EDFA;
      --shadow-card: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
      --shadow-card-hover: 0 10px 25px rgba(30,27,75,0.08);
      --radius-card: 12px;
      --radius-btn: 8px;
      --radius-input: 6px;
      --transition: 0.3s ease;
      --max-width: 1280px;
      --font-sans: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Noto Sans SC", system-ui, -apple-system, 'Segoe UI', sans-serif;
    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      font-family: var(--font-sans);
      background-color: var(--bg);
      color: var(--text-primary);
      line-height: 1.7;
      font-size: 16px;
      -webkit-font-smoothing: antialiased;
    }

    .container {
      max-width: var(--max-width);
      margin: 0 auto;
      padding: 0 24px;
    }

    /* 导航栏 */
    .site-header {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      z-index: 1000;
      transition: background var(--transition), backdrop-filter var(--transition), box-shadow var(--transition);
      background: transparent;
      backdrop-filter: blur(0px);
    }

    .site-header.scrolled {
      background: rgba(255,255,255,0.95);
      backdrop-filter: blur(12px);
      box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    }

    .header-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      height: 72px;
    }

    .logo {
      font-weight: 700;
      font-size: 1.5rem;
      letter-spacing: -0.01em;
      color: #fff;
      transition: color var(--transition);
      display: flex;
      align-items: center;
      gap: 6px;
      text-decoration: none;
    }

    .scrolled .logo {
      color: var(--primary);
    }

    .logo-star {
      width: 24px;
      height: 24px;
      color: var(--accent);
    }

    .nav-links {
      display: flex;
      align-items: center;
      gap: 28px;
      list-style: none;
    }

    .nav-links a {
      text-decoration: none;
      font-size: 0.95rem;
      font-weight: 400;
      color: rgba(255,255,255,0.9);
      transition: color var(--transition);
      position: relative;
      padding-bottom: 4px;
    }

    .scrolled .nav-links a {
      color: var(--text-primary);
    }

    .nav-links a::after {
      content: '';
      position: absolute;
      left: 0;
      bottom: 0;
      width: 0%;
      height: 2px;
      background: var(--accent);
      transition: width var(--transition);
    }

    .nav-links a:hover {
      color: var(--accent);
    }

    .nav-links a:hover::after {
      width: 100%;
    }

    .header-actions {
      display: flex;
      align-items: center;
      gap: 16px;
    }

    .search-icon {
      background: none;
      border: none;
      color: rgba(255,255,255,0.9);
      cursor: pointer;
      font-size: 1.2rem;
      transition: color var(--transition);
    }

    .scrolled .search-icon {
      color: var(--text-primary);
    }

    .login-link {
      color: rgba(255,255,255,0.9);
      text-decoration: none;
      font-size: 0.9rem;
      font-weight: 500;
      transition: color var(--transition);
    }

    .scrolled .login-link {
      color: var(--text-primary);
    }

    .btn-primary-sm {
      background: var(--accent);
      color: var(--primary);
      font-weight: 600;
      padding: 8px 20px;
      border-radius: var(--radius-btn);
      text-decoration: none;
      font-size: 0.9rem;
      transition: background var(--transition), box-shadow var(--transition);
      border: none;
      cursor: pointer;
    }

    .btn-primary-sm:hover {
      background: #D97706;
      box-shadow: 0 0 15px rgba(245,158,11,0.3);
    }

    .hamburger {
      display: none;
      background: none;
      border: none;
      font-size: 1.8rem;
      color: #fff;
      cursor: pointer;
    }

    .scrolled .hamburger {
      color: var(--primary);
    }

    /* Hero */
    .hero {
      height: 100vh;
      min-height: 700px;
      background: linear-gradient(135deg, #0F0A2E 0%, #1E1B4B 100%);
      display: flex;
      align-items: center;
      position: relative;
      overflow: hidden;
    }

    .stars {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      pointer-events: none;
    }

    .star {
      position: absolute;
      background: white;
      border-radius: 50%;
      opacity: 0.7;
      animation: float 6s infinite alternate ease-in-out;
    }

    @keyframes float {
      0% { transform: translateY(0px); opacity: 0.4; }
      100% { transform: translateY(-20px); opacity: 0.8; }
    }

    .hero-content {
      display: flex;
      align-items: center;
      justify-content: space-between;
      width: 100%;
      gap: 40px;
      position: relative;
      z-index: 2;
    }

    .hero-text {
      flex: 1 1 50%;
      max-width: 600px;
    }

    .hero-text h1 {
      font-size: clamp(2.4rem, 5vw, 3.5rem);
      font-weight: 800;
      line-height: 1.2;
      color: white;
      margin-bottom: 20px;
      letter-spacing: -0.02em;
    }

    .hero-text p {
      font-size: 1.1rem;
      color: rgba(255,255,255,0.7);
      margin-bottom: 32px;
      line-height: 1.7;
    }

    .hero-buttons {
      display: flex;
      gap: 16px;
      flex-wrap: wrap;
    }

    .btn-primary {
      background: var(--accent);
      color: var(--primary);
      font-weight: 600;
      padding: 14px 32px;
      border-radius: var(--radius-btn);
      text-decoration: none;
      display: inline-block;
      transition: background var(--transition), box-shadow var(--transition);
      border: none;
      cursor: pointer;
    }

    .btn-primary:hover {
      background: #D97706;
      box-shadow: 0 0 20px rgba(245,158,11,0.4);
    }

    .btn-secondary {
      background: transparent;
      border: 2px solid white;
      color: white;
      font-weight: 600;
      padding: 14px 32px;
      border-radius: var(--radius-btn);
      text-decoration: none;
      display: inline-block;
      transition: all var(--transition);
    }

    .btn-secondary:hover {
      background: white;
      color: var(--primary);
    }

    .hero-visual {
      flex: 1 1 40%;
      display: flex;
      justify-content: center;
    }

    .star-sphere {
      width: 320px;
      height: 320px;
      background: radial-gradient(circle at 30% 30%, rgba(139,92,246,0.3), transparent 70%);
      border-radius: 50%;
      position: relative;
      animation: pulse 4s infinite alternate;
    }

    @keyframes pulse {
      0% { transform: scale(0.95); opacity: 0.8; }
      100% { transform: scale(1.05); opacity: 1; }
    }

    .scroll-indicator {
      position: absolute;
      bottom: 30px;
      left: 50%;
      transform: translateX(-50%);
      color: rgba(255,255,255,0.5);
      font-size: 2rem;
      animation: bounce 2s infinite;
      z-index: 2;
    }

    @keyframes bounce {
      0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
      40% { transform: translateX(-50%) translateY(-10px); }
      60% { transform: translateX(-50%) translateY(-5px); }
    }

    /* 通用板块 */
    .section {
      padding: 100px 0;
    }

    .section-title {
      font-size: 2.2rem;
      font-weight: 700;
      text-align: center;
      margin-bottom: 16px;
      color: var(--primary);
      position: relative;
      display: inline-block;
      left: 50%;
      transform: translateX(-50%);
      white-space: nowrap;
    }

    .section-title::after {
      content: '';
      position: absolute;
      bottom: -8px;
      left: 0;
      width: 60%;
      height: 4px;
      background: var(--accent);
      border-radius: 2px;
    }

    .section-subtitle {
      text-align: center;
      color: var(--text-secondary);
      max-width: 600px;
      margin: 0 auto 50px;
      font-size: 1.1rem;
    }

    /* 痛点区 */
    .pain-points {
      display: flex;
      align-items: center;
      gap: 60px;
      flex-wrap: wrap;
    }

    .pain-text {
      flex: 1 1 400px;
    }

    .pain-text h2 {
      font-size: 2rem;
      font-weight: 700;
      margin-bottom: 20px;
    }

    .pain-image {
      flex: 1 1 400px;
      background: #F5F3FF;
      border-radius: var(--radius-card);
      height: 300px;
      background-image: url('/assets/images/backpic/back-1.webp');
      background-size: cover;
      background-position: center;
    }

    /* 解决方案卡片 */
    .cards-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 24px;
    }

    .solution-card {
      background: var(--card-bg);
      border-radius: var(--radius-card);
      padding: 32px 24px;
      box-shadow: var(--shadow-card);
      border: 1px solid var(--border-light);
      transition: all var(--transition);
      text-align: center;
    }

    .solution-card:hover {
      transform: translateY(-4px);
      box-shadow: var(--shadow-card-hover);
      border-color: var(--secondary);
    }

    .card-icon {
      font-size: 2.5rem;
      color: var(--accent);
      margin-bottom: 16px;
    }

    .solution-card h3 {
      font-size: 1.4rem;
      font-weight: 600;
      margin-bottom: 12px;
    }

    .card-link {
      color: var(--secondary);
      text-decoration: none;
      font-weight: 500;
      display: inline-flex;
      align-items: center;
      gap: 4px;
      margin-top: 12px;
      transition: gap var(--transition);
    }

    .card-link:hover {
      gap: 10px;
    }

    /* 数据看板 */
    .stats-scroll {
      display: flex;
      gap: 30px;
      overflow-x: auto;
      padding-bottom: 20px;
      scrollbar-width: thin;
    }

    .stat-item {
      background: var(--card-bg);
      border-radius: var(--radius-card);
      padding: 32px;
      min-width: 200px;
      text-align: center;
      box-shadow: var(--shadow-card);
    }

    .stat-number {
      font-size: 2.8rem;
      font-weight: 800;
      color: var(--primary);
    }

    /* 证言 */
    .testimonials-slider {
      display: flex;
      gap: 24px;
      overflow-x: auto;
      padding: 10px 0;
    }

    .testimonial-card {
      background: var(--card-bg);
      border-left: 4px solid var(--accent);
      border-radius: var(--radius-card);
      padding: 28px;
      min-width: 300px;
      box-shadow: var(--shadow-card);
    }

    .avatar {
      width: 48px;
      height: 48px;
      background: #F5F3FF;
      border-radius: 50%;
      margin-bottom: 16px;
      background-image: url('/assets/images/coverpic/cover-2.webp');
      background-size: cover;
    }

    /* FAQ */
    .faq-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 20px;
    }

    .faq-item {
      background: white;
      border-radius: var(--radius-card);
      border: 1px solid var(--border-light);
      overflow: hidden;
    }

    .faq-question {
      padding: 20px;
      font-weight: 600;
      display: flex;
      justify-content: space-between;
      cursor: pointer;
      background: white;
    }

    .faq-answer {
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.4s ease-out, padding 0.4s;
      background: #FAF9FE;
      padding: 0 20px;
    }

    .faq-item.active .faq-answer {
      max-height: 150px;
      padding: 16px 20px;
    }

    /* CTA */
    .cta-section {
      background: var(--dark-section);
      padding: 100px 0;
      text-align: center;
      color: white;
    }

    .footer {
      background: var(--dark-section);
      color: #9CA3AF;
      padding: 60px 0 30px;
    }

    .footer-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 30px;
      margin-bottom: 40px;
    }

    @media (max-width: 1024px) {
      .cards-grid { grid-template-columns: repeat(2, 1fr); }
      .hero-content { flex-direction: column; text-align: center; }
      .hero-visual { margin-top: 30px; }
    }

    @media (max-width: 640px) {
      .nav-links, .header-actions .search-icon, .header-actions .login-link {
        display: none;
      }
      .hamburger { display: block; }
      .cards-grid { grid-template-columns: 1fr; }
      .faq-grid { grid-template-columns: 1fr; }
      .footer-grid { grid-template-columns: 1fr 1fr; }
      .pain-points { flex-direction: column; }
    }
