/* roulang page: index */
:root {
      --primary: #0A1F3F;
      --accent: #00E5A1;
      --accent-hover: #00CC8E;
      --alert: #FF4D6A;
      --bg: #F4F7FC;
      --card-bg: #FFFFFF;
      --card-border: #E2E8F0;
      --text-primary: #0A1F3F;
      --text-body: #334155;
      --text-muted: #64748B;
      --text-light: #B0C4DE;
      --dark-bg-start: #0A1F3F;
      --dark-bg-end: #132B52;
      --radius-card: 12px;
      --radius-btn: 8px;
      --radius-pill: 20px;
      --shadow-card: 0 1px 3px rgba(10,31,63,0.06), 0 1px 2px rgba(10,31,63,0.04);
      --shadow-card-hover: 0 10px 25px rgba(10,31,63,0.10), 0 4px 10px rgba(10,31,63,0.06);
      --shadow-nav: 0 2px 8px rgba(10,31,63,0.08);
      --font-sans: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Noto Sans SC", sans-serif;
      --font-mono: "Inter", "SF Mono", "Roboto Mono", monospace;
      --transition: 0.25s ease;
    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      font-family: var(--font-sans);
      background-color: var(--bg);
      color: var(--text-body);
      line-height: 1.6;
      font-size: 16px;
      -webkit-font-smoothing: antialiased;
    }

    .container {
      max-width: 1280px;
      margin: 0 auto;
      padding: 0 24px;
    }

    h1, h2, h3, h4 {
      font-weight: 700;
      color: var(--text-primary);
    }

    a {
      text-decoration: none;
      color: inherit;
      transition: var(--transition);
    }

    img {
      max-width: 100%;
      height: auto;
      display: block;
    }

    /* 导航 */
    #nav {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      background: white;
      height: 64px;
      box-shadow: var(--shadow-nav);
      z-index: 1000;
      display: flex;
      align-items: center;
      border-bottom: 1px solid rgba(0,0,0,0.02);
    }

    .nav-container {
      display: flex;
      justify-content: space-between;
      align-items: center;
      width: 100%;
    }

    .logo {
      font-weight: 800;
      font-size: 1.5rem;
      color: var(--primary);
      display: flex;
      align-items: center;
      gap: 8px;
      letter-spacing: -0.3px;
    }
    .logo i {
      color: var(--accent);
      font-style: normal;
    }

    .nav-menu {
      display: flex;
      gap: 32px;
      list-style: none;
    }
    .nav-menu a {
      font-weight: 500;
      color: var(--text-body);
      position: relative;
      padding: 4px 0;
    }
    .nav-menu a:hover,
    .nav-menu a.active {
      color: var(--accent);
    }
    .nav-menu a.active::after {
      content: '';
      position: absolute;
      bottom: -4px;
      left: 0;
      width: 100%;
      height: 2px;
      background: var(--accent);
    }

    .nav-cta {
      background: var(--accent);
      color: var(--primary);
      font-weight: 700;
      padding: 10px 24px;
      border-radius: var(--radius-btn);
      transition: var(--transition);
    }
    .nav-cta:hover {
      background: var(--accent-hover);
      transform: scale(1.02);
    }

    .hamburger {
      display: none;
      flex-direction: column;
      gap: 5px;
      cursor: pointer;
      background: none;
      border: none;
    }
    .hamburger span {
      width: 24px;
      height: 2px;
      background: var(--primary);
      border-radius: 2px;
    }

    /* 通用板块 */
    section {
      padding: 80px 0;
    }

    .section-title {
      font-size: 2.25rem;
      line-height: 1.3;
      margin-bottom: 16px;
      color: var(--primary);
      font-weight: 700;
    }
    .section-sub {
      color: var(--text-muted);
      font-size: 1.1rem;
      margin-bottom: 48px;
    }

    /* Hero */
    #hero {
      background: linear-gradient(135deg, #F4F7FC 0%, #E8EEF6 100%);
      padding: 140px 0 100px;
      display: flex;
      align-items: center;
      min-height: 85vh;
    }
    .hero-grid {
      display: flex;
      align-items: center;
      gap: 60px;
    }
    .hero-left {
      flex: 1;
    }
    .hero-badge {
      background: rgba(0,229,161,0.12);
      color: #00B37A;
      padding: 6px 16px;
      border-radius: var(--radius-pill);
      font-weight: 600;
      font-size: 0.85rem;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 24px;
    }
    .live-dot {
      width: 8px;
      height: 8px;
      background: var(--accent);
      border-radius: 50%;
      animation: pulse 1.5s infinite;
    }
    @keyframes pulse {
      0% { opacity: 1; transform: scale(1); }
      50% { opacity: 0.5; transform: scale(1.2); }
      100% { opacity: 1; transform: scale(1); }
    }
    .hero-title {
      font-size: 3rem;
      font-weight: 800;
      line-height: 1.2;
      letter-spacing: -0.5px;
      margin-bottom: 24px;
      color: var(--primary);
    }
    .hero-desc {
      font-size: 1.1rem;
      color: var(--text-body);
      margin-bottom: 36px;
      max-width: 520px;
    }
    .hero-buttons {
      display: flex;
      gap: 16px;
      flex-wrap: wrap;
      margin-bottom: 40px;
    }
    .btn-primary {
      background: var(--accent);
      color: var(--primary);
      font-weight: 700;
      padding: 14px 32px;
      border-radius: var(--radius-btn);
      border: none;
      cursor: pointer;
      transition: var(--transition);
      display: inline-block;
    }
    .btn-primary:hover {
      background: var(--accent-hover);
      transform: scale(1.03);
    }
    .btn-outline {
      background: transparent;
      border: 2px solid var(--primary);
      color: var(--primary);
      font-weight: 700;
      padding: 14px 32px;
      border-radius: var(--radius-btn);
      transition: var(--transition);
      display: inline-block;
    }
    .btn-outline:hover {
      background: var(--primary);
      color: white;
    }

    .live-ticker {
      background: white;
      border-radius: 40px;
      padding: 8px 20px;
      display: inline-flex;
      align-items: center;
      gap: 16px;
      font-family: var(--font-mono);
      font-weight: 600;
      color: var(--primary);
      box-shadow: var(--shadow-card);
      overflow: hidden;
      white-space: nowrap;
    }
    .ticker-text {
      animation: scroll 12s linear infinite;
    }
    @keyframes scroll {
      0% { transform: translateX(0); }
      100% { transform: translateX(-40%); }
    }

    .hero-right {
      flex: 1;
      position: relative;
      display: flex;
      justify-content: center;
    }
    .data-cards-stack {
      position: relative;
      width: 280px;
      height: 240px;
    }
    .float-card {
      background: white;
      border-radius: var(--radius-card);
      padding: 20px;
      box-shadow: var(--shadow-card);
      position: absolute;
      width: 180px;
      font-weight: 700;
      border: 1px solid var(--card-border);
    }
    .float-card:nth-child(1) { top: 0; left: 0; transform: rotate(-3deg); z-index: 3; }
    .float-card:nth-child(2) { top: 30px; left: 90px; transform: rotate(2deg); z-index: 2; }
    .float-card:nth-child(3) { top: 90px; left: 20px; transform: rotate(-1deg); z-index: 1; }
    .float-card .big-num {
      font-size: 2rem;
      color: var(--accent);
      font-family: var(--font-mono);
    }

    /* 优势 */
    .advantages-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 32px;
      margin-top: 30px;
    }
    .adv-card {
      background: var(--card-bg);
      padding: 32px;
      border-radius: var(--radius-card);
      border: 1px solid var(--card-border);
      box-shadow: var(--shadow-card);
      transition: var(--transition);
      text-align: center;
    }
    .adv-card:hover {
      transform: translateY(-4px);
      box-shadow: var(--shadow-card-hover);
      border-color: var(--accent);
    }
    .adv-icon {
      font-size: 2.5rem;
      margin-bottom: 16px;
    }
    .adv-metric {
      font-size: 2.2rem;
      font-weight: 700;
      color: var(--accent);
      font-family: var(--font-mono);
    }

    /* 服务矩阵 */
    .services-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 28px;
      margin-top: 32px;
    }
    .service-card {
      background: white;
      border-radius: var(--radius-card);
      padding: 28px;
      border: 1px solid var(--card-border);
      transition: var(--transition);
    }
    .service-card:hover {
      transform: translateY(-4px);
      border-color: var(--accent);
      box-shadow: var(--shadow-card-hover);
    }
    .service-wide {
      grid-column: span 2;
      display: flex;
      gap: 24px;
      align-items: center;
    }
    .service-img {
      width: 120px;
      height: 120px;
      background: #F4F7FC url('/assets/images/backpic/back-2.webp') center/cover no-repeat;
      border-radius: 12px;
    }
    .service-title {
      font-size: 1.3rem;
      margin-bottom: 8px;
    }

    /* 对比区 */
    .compare-grid {
      display: flex;
      gap: 48px;
      align-items: flex-start;
      margin-top: 32px;
    }
    .compare-table {
      flex: 1;
      background: white;
      border-radius: var(--radius-card);
      padding: 24px;
      border: 1px solid var(--card-border);
    }
    .table-row {
      display: flex;
      justify-content: space-between;
      padding: 12px 0;
      border-bottom: 1px solid #f1f5f9;
    }
    .old-badge { color: #94a3b8; text-decoration: line-through; }
    .new-badge { color: var(--accent); font-weight: 700; }
    .chart-group {
      flex: 1;
    }
    .bar-item {
      margin-bottom: 24px;
    }
    .bar-label {
      display: flex;
      justify-content: space-between;
      font-weight: 600;
      margin-bottom: 6px;
    }
    .bar-track {
      height: 10px;
      background: #e2e8f0;
      border-radius: 20px;
      overflow: hidden;
    }
    .bar-fill {
      height: 100%;
      background: linear-gradient(90deg, #00E5A1, #00B37A);
      width: 0%;
      border-radius: 20px;
      animation: fillBar 1.8s ease forwards;
    }
    @keyframes fillBar { to { width: var(--w); } }

    /* FAQ */
    .faq-item {
      background: white;
      border: 1px solid var(--card-border);
      border-radius: var(--radius-card);
      margin-bottom: 16px;
      overflow: hidden;
    }
    .faq-question {
      padding: 20px 28px;
      font-weight: 700;
      display: flex;
      justify-content: space-between;
      cursor: pointer;
      background: white;
    }
    .faq-answer {
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.35s ease;
      background: #F8FAFC;
      padding: 0 28px;
      color: var(--text-body);
    }
    .faq-item.open .faq-answer {
      max-height: 200px;
      padding: 20px 28px;
    }

    /* CTA */
    #contact {
      background: linear-gradient(135deg, var(--dark-bg-start), var(--dark-bg-end));
      color: white;
      padding: 80px 0;
      text-align: center;
    }
    .contact-form {
      display: flex;
      gap: 16px;
      justify-content: center;
      flex-wrap: wrap;
      margin-top: 36px;
    }
    .contact-form input {
      padding: 12px 16px;
      border-radius: 6px;
      border: 1px solid #CBD5E1;
      background: white;
      min-width: 200px;
    }
    .contact-form button {
      background: var(--accent);
      border: none;
      font-weight: 700;
      padding: 12px 28px;
      border-radius: 6px;
      cursor: pointer;
    }

    /* Footer */
    #footer {
      background: var(--primary);
      color: var(--text-light);
      padding: 60px 0 20px;
    }
    .footer-grid {
      display: grid;
      grid-template-columns: 2fr 1fr 1fr 1fr;
      gap: 32px;
    }
    .copyright {
      text-align: center;
      margin-top: 40px;
      font-size: 0.8rem;
    }

    @media (max-width: 1024px) {
      .hero-grid { flex-direction: column; }
      .services-grid { grid-template-columns: repeat(2,1fr); }
      .service-wide { grid-column: span 2; }
      .compare-grid { flex-direction: column; }
    }
    @media (max-width: 768px) {
      .nav-menu { display: none; flex-direction: column; position: absolute; top: 64px; left:0; background: white; width: 100%; padding: 20px; }
      .nav-menu.show { display: flex; }
      .hamburger { display: flex; }
      .advantages-grid, .services-grid { grid-template-columns: 1fr; }
      .service-wide { grid-column: span 1; flex-direction: column; }
      .footer-grid { grid-template-columns: 1fr 1fr; }
      .hero-title { font-size: 2rem; }
    }
