/* roulang page: index */
:root {
      --primary: #4F46E5;
      --primary-light: #6366F1;
      --secondary: #06B6D4;
      --accent: #F43F5E;
      --success: #10B981;
      --bg-dark: #0B0F19;
      --bg-panel: #111827;
      --bg-light: #F8FAFC;
      --white: #FFFFFF;
      --text-main: #0F172A;
      --text-muted: #64748B;
      --text-light: #E2E8F0;
      --border-color: #E2E8F0;
      --radius-lg: 1.25rem;
      --radius-md: 0.75rem;
      --radius-pill: 9999px;
      --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
      --shadow-card: 0 10px 25px -5px rgba(15, 23, 42, 0.06);
      --shadow-hover: 0 20px 30px -10px rgba(79, 70, 229, 0.2);
      --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }

    * { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; font-size: 16px; }
    body {
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
      color: var(--text-main);
      background-color: var(--white);
      line-height: 1.6;
      -webkit-font-smoothing: antialiased;
      overflow-x: hidden;
    }

    a { text-decoration: none; color: inherit; transition: var(--transition-smooth); }
    img { max-width: 100%; height: auto; display: block; }

    /* 通用组件规范 */
    .section-wrap { padding: 90px 0; position: relative; }
    .bg-light-alt { background-color: var(--bg-light); }
    .bg-dark-mesh { background-color: var(--bg-dark); color: var(--text-light); }
    .bg-gradient-bar { background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%); color: var(--white); }

    .site-card {
      background: var(--white);
      border-radius: var(--radius-lg);
      border: 1px solid var(--border-color);
      box-shadow: var(--shadow-card);
      padding: 30px;
      transition: var(--transition-smooth);
      height: 100%;
    }
    .site-card:hover {
      transform: translateY(-6px);
      box-shadow: var(--shadow-hover);
      border-color: rgba(79, 70, 229, 0.3);
    }
    .dark-card {
      background: var(--bg-panel);
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: var(--radius-lg);
      padding: 30px;
      transition: var(--transition-smooth);
      color: var(--text-light);
    }
    .dark-card:hover {
      transform: translateY(-6px);
      border-color: var(--secondary);
      box-shadow: 0 15px 35px -5px rgba(6, 182, 212, 0.15);
    }

    .badge-capsule {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 5px 14px;
      border-radius: var(--radius-pill);
      font-size: 0.8125rem;
      font-weight: 600;
      background: rgba(79, 70, 229, 0.08);
      color: var(--primary);
      border: 1px solid rgba(79, 70, 229, 0.15);
    }
    .badge-capsule.badge-cyan {
      background: rgba(6, 182, 212, 0.12);
      color: #0891B2;
      border-color: rgba(6, 182, 212, 0.25);
    }
    .badge-capsule.badge-dark {
      background: rgba(255, 255, 255, 0.1);
      color: #A5F3FC;
      border-color: rgba(255, 255, 255, 0.15);
    }

    .btn-gradient {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 13px 28px;
      border-radius: var(--radius-pill);
      font-weight: 600;
      font-size: 0.95rem;
      background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
      color: var(--white);
      box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
      border: none;
      cursor: pointer;
      min-height: 48px;
      min-width: 48px;
      transition: var(--transition-smooth);
    }
    .btn-gradient:hover {
      box-shadow: 0 6px 20px rgba(79, 70, 229, 0.5);
      filter: brightness(1.06);
      color: var(--white);
    }
    .btn-outline {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 12px 26px;
      border-radius: var(--radius-pill);
      font-weight: 600;
      font-size: 0.95rem;
      color: var(--white);
      background: rgba(255, 255, 255, 0.08);
      border: 1px solid rgba(255, 255, 255, 0.25);
      min-height: 48px;
      transition: var(--transition-smooth);
    }
    .btn-outline:hover {
      background: rgba(255, 255, 255, 0.15);
      border-color: var(--white);
      color: var(--white);
    }

    .section-head { margin-bottom: 55px; }
    .section-head h2 {
      font-size: 2.1rem;
      font-weight: 800;
      letter-spacing: -0.02em;
      margin-bottom: 12px;
      color: var(--text-main);
    }
    .section-head p {
      font-size: 1.05rem;
      color: var(--text-muted);
      max-width: 760px;
      margin: 0 auto;
    }
    .bg-dark-mesh .section-head h2 { color: var(--white); }
    .bg-dark-mesh .section-head p { color: #94A3B8; }

    /* 顶部双行导航 */
    .site-header { position: sticky; top: 0; z-index: 1000; background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border-color); }
    .top-sub-bar {
      background: var(--bg-dark);
      color: #94A3B8;
      font-size: 0.78rem;
      padding: 6px 0;
      border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }
    .top-sub-bar .sub-inner { display: flex; justify-content: space-between; align-items: center; }
    .top-sub-bar a { color: #CBD5E1; }
    .top-sub-bar a:hover { color: var(--secondary); }

    .main-nav { padding: 12px 0; }
    .nav-flex { display: flex; align-items: center; justify-content: space-between; }
    .nav-group { display: flex; align-items: center; gap: 24px; list-style: none; margin: 0; }
    .nav-group a {
      font-size: 0.92rem;
      font-weight: 600;
      color: #334155;
      padding: 6px 4px;
      position: relative;
    }
    .nav-group a:hover { color: var(--primary); }
    .nav-brand-logo {
      font-size: 1.35rem;
      font-weight: 800;
      letter-spacing: -0.02em;
      background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      display: inline-flex;
      align-items: center;
      gap: 8px;
    }
    .mobile-nav-toggle { display: none; background: none; border: none; font-size: 1.4rem; color: var(--text-main); cursor: pointer; }
    .mobile-menu-drawer { display: none; background: var(--white); padding: 20px; border-bottom: 1px solid var(--border-color); }
    .mobile-menu-drawer a { display: block; padding: 10px 0; font-weight: 600; color: #334155; border-bottom: 1px solid #F1F5F9; }

    /* Hero API 开发者舞台 */
    .hero-section {
      background: radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.15) 0%, transparent 40%),
                  radial-gradient(circle at 20% 80%, rgba(79, 70, 229, 0.25) 0%, transparent 50%),
                  var(--bg-dark);
      color: var(--white);
      padding: 95px 0 105px;
      position: relative;
      overflow: hidden;
    }
    .hero-section::before {
      content: "";
      position: absolute;
      inset: 0;
      background: url('/assets/images/d25c1fd9e73ff225.webp') center/cover no-repeat;
      opacity: 0.18;
      mix-blend-mode: overlay;
      pointer-events: none;
    }
    .hero-title {
      font-size: 2.75rem;
      line-height: 1.25;
      font-weight: 800;
      margin-bottom: 20px;
    }
    .hero-desc {
      font-size: 1.08rem;
      line-height: 1.7;
      color: #CBD5E1;
      margin-bottom: 30px;
      max-width: 620px;
    }
    .code-console {
      background: #060911;
      border: 1px solid rgba(255, 255, 255, 0.12);
      border-radius: var(--radius-lg);
      padding: 22px;
      font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
      font-size: 0.85rem;
      box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
      position: relative;
    }
    .console-dots { display: flex; gap: 6px; margin-bottom: 16px; }
    .console-dots span { width: 10px; height: 10px; border-radius: 50%; }
    .dot-red { background: #EF4444; }
    .dot-yellow { background: #F59E0B; }
    .dot-green { background: #10B981; }
    .code-line { margin-bottom: 6px; }
    .code-keyword { color: #F43F5E; }
    .code-string { color: #34D399; }
    .code-prop { color: #38BDF8; }
    .code-comment { color: #64748B; font-style: italic; }

    /* 指标看板与呼吸灯 */
    .metric-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: var(--success);
      display: inline-block;
      margin-right: 6px;
      box-shadow: 0 0 8px var(--success);
      animation: pulseGlow 2s infinite;
    }
    @keyframes pulseGlow {
      0%, 100% { opacity: 1; transform: scale(1); }
      50% { opacity: 0.4; transform: scale(0.85); }
    }
    .metric-val { font-size: 2.3rem; font-weight: 800; color: var(--text-main); line-height: 1.2; margin: 12px 0 6px; }

    /* 对比表格大卡 */
    .contrast-wrapper {
      background: var(--white);
      border-radius: var(--radius-lg);
      border: 1px solid var(--border-color);
      box-shadow: var(--shadow-card);
      overflow: hidden;
    }
    .contrast-row {
      display: grid;
      grid-template-columns: 1.2fr 2fr 2fr;
      padding: 18px 24px;
      border-bottom: 1px solid #F1F5F9;
      align-items: center;
    }
    .contrast-row:last-child { border-bottom: none; }
    .contrast-header {
      background: #F8FAFC;
      font-weight: 700;
      color: #334155;
    }
    .contrast-bad { color: #64748B; }
    .contrast-good { color: var(--primary); font-weight: 600; }

    /* 时间轴 */
    .timeline-container { position: relative; padding: 20px 0; }
    .timeline-container::before {
      content: "";
      position: absolute;
      top: 0;
      bottom: 0;
      left: 50%;
      width: 2px;
      background: #E2E8F0;
      transform: translateX(-50%);
    }
    .timeline-item { position: relative; margin-bottom: 45px; }
    .timeline-item:last-child { margin-bottom: 0; }
    .timeline-node {
      position: absolute;
      left: 50%;
      top: 20px;
      width: 18px;
      height: 18px;
      border-radius: 50%;
      background: linear-gradient(135deg, var(--primary), var(--secondary));
      transform: translateX(-50%);
      border: 4px solid var(--white);
      box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
    }
    .timeline-content {
      width: 44%;
      background: var(--white);
      border-radius: var(--radius-md);
      padding: 22px;
      border: 1px solid var(--border-color);
      box-shadow: var(--shadow-card);
    }
    .timeline-left { margin-right: auto; text-align: right; }
    .timeline-right { margin-left: auto; }

    /* 资讯左图右文横向卡 */
    .news-horizontal-card {
      display: flex;
      background: var(--white);
      border-radius: var(--radius-lg);
      border: 1px solid var(--border-color);
      overflow: hidden;
      box-shadow: var(--shadow-card);
      transition: var(--transition-smooth);
      height: 100%;
    }
    .news-horizontal-card:hover {
      transform: translateY(-5px);
      box-shadow: var(--shadow-hover);
      border-color: rgba(79, 70, 229, 0.3);
    }
    .news-horizontal-img { width: 38%; min-height: 180px; object-fit: cover; }
    .news-horizontal-body { width: 62%; padding: 22px; display: flex; flex-direction: column; justify-content: space-between; }

    /* FAQ 手风琴样式定制 */
    .accordion-item {
      background: var(--white);
      border: 1px solid var(--border-color);
      border-radius: var(--radius-md) !important;
      margin-bottom: 12px;
      overflow: hidden;
    }
    .accordion-title {
      font-size: 1.05rem;
      font-weight: 700;
      color: var(--text-main);
      padding: 20px 24px;
      border-bottom: none;
      transition: var(--transition-smooth);
    }
    .accordion-title:hover { background-color: #F8FAFC; color: var(--primary); }
    .is-active > .accordion-title { background: #F8FAFC; color: var(--primary); }
    .accordion-content {
      padding: 20px 24px;
      font-size: 0.95rem;
      color: var(--text-muted);
      line-height: 1.7;
      border-top: 1px solid var(--border-color);
    }

    /* 预约转化表单 */
    .form-control-site {
      width: 100%;
      height: 48px;
      border-radius: 8px;
      border: 1px solid var(--border-color);
      padding: 0 16px;
      font-size: 0.95rem;
      background: #F8FAFC;
      margin-bottom: 16px;
      outline: none;
      transition: var(--transition-smooth);
    }
    .form-control-site:focus {
      border-color: var(--primary);
      background: var(--white);
      box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
    }

    /* 页脚 */
    .site-footer {
      background: var(--bg-dark);
      color: #94A3B8;
      padding: 70px 0 30px;
      border-top: 1px solid rgba(255, 255, 255, 0.08);
      font-size: 0.9rem;
    }
    .site-footer h4 { color: var(--white); font-size: 1rem; font-weight: 700; margin-bottom: 20px; }
    .site-footer ul { list-style: none; margin: 0; }
    .site-footer ul li { margin-bottom: 10px; }
    .site-footer a { color: #94A3B8; }
    .site-footer a:hover { color: var(--secondary); }
    .footer-bottom {
      margin-top: 50px;
      padding-top: 25px;
      border-top: 1px solid rgba(255, 255, 255, 0.06);
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 15px;
    }

    /* 响应式断点控制 */
    @media (max-width: 1024px) {
      .nav-group { display: none; }
      .mobile-nav-toggle { display: block; }
      .timeline-container::before { left: 24px; }
      .timeline-node { left: 24px; }
      .timeline-content { width: calc(100% - 60px); margin-left: 60px !important; text-align: left !important; }
    }
    @media (max-width: 768px) {
      .section-wrap { padding: 60px 0; }
      .hero-title { font-size: 2rem; }
      .contrast-row { grid-template-columns: 1fr; gap: 8px; }
      .news-horizontal-card { flex-direction: column; }
      .news-horizontal-img { width: 100%; height: 160px; }
      .news-horizontal-body { width: 100%; }
      .site-card, .dark-card { padding: 20px; border-radius: 1rem; }
    }
