/* roulang page: index */
:root {
      --primary: #0F172A;
      --primary-light: #1E293B;
      --indigo: #1E40AF;
      --accent: #10B981;
      --cyan: #06B6D4;
      --bg-base: #F8FAFC;
      --bg-white: #FFFFFF;
      --bg-dark: #0B0F19;
      --bg-dark-card: #131B2E;
      --text-main: #0F172A;
      --text-body: #334155;
      --text-muted: #64748B;
      --text-light: #E2E8F0;
      --border-light: #E2E8F0;
      --border-dark: rgba(255, 255, 255, 0.08);
      --radius-sm: 6px;
      --radius-md: 10px;
      --radius-lg: 16px;
      --radius-full: 9999px;
      --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
      --shadow-md: 0 8px 24px -4px rgba(15, 23, 42, 0.06);
      --shadow-hover: 0 16px 32px -6px rgba(15, 23, 42, 0.12);
      --transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    }
    *, *::before, *::after { 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", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
      background-color: var(--bg-base);
      color: var(--text-body);
      line-height: 1.75;
      -webkit-font-smoothing: antialiased;
    }
    a { color: inherit; text-decoration: none; transition: var(--transition); }
    img { max-width: 100%; height: auto; display: block; }
    button, input, select, textarea { font: inherit; }
    
    .container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
    .section-header { text-align: center; max-width: 780px; margin: 0 auto 52px; }
    .section-badge {
      display: inline-flex; align-items: center; gap: 6px;
      padding: 4px 14px; background: rgba(30, 64, 175, 0.08); color: var(--indigo);
      border-radius: var(--radius-full); font-size: 0.82rem; font-weight: 600;
      letter-spacing: 0.02em; margin-bottom: 12px;
    }
    .section-title { font-size: 2.1rem; color: var(--text-main); font-weight: 700; line-height: 1.3; margin-bottom: 14px; }
    .section-desc { font-size: 1.02rem; color: var(--text-muted); line-height: 1.8; }
    
    .btn {
      display: inline-flex; align-items: center; justify-content: center; gap: 8px;
      padding: 11px 24px; border-radius: var(--radius-sm); font-size: 0.95rem; font-weight: 600;
      cursor: pointer; border: 1px solid transparent; transition: var(--transition);
    }
    .btn-primary { background: var(--indigo); color: #fff; box-shadow: 0 4px 12px rgba(30, 64, 175, 0.25); }
    .btn-primary:hover { background: #172554; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(30, 64, 175, 0.35); }
    .btn-accent { background: var(--accent); color: #fff; }
    .btn-accent:hover { background: #059669; transform: translateY(-1px); }
    .btn-outline { background: transparent; color: var(--text-main); border-color: var(--border-light); }
    .btn-outline:hover { background: var(--bg-white); border-color: var(--indigo); color: var(--indigo); }
    .btn-code { background: #1E293B; color: #38BDF8; border-color: #334155; }
    .btn-code:hover { background: #334155; color: #fff; }

    /* Top Bar */
    .top-bar { background: var(--primary); color: #94A3B8; font-size: 0.8rem; padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
    .top-bar-inner { display: flex; justify-content: space-between; align-items: center; }
    .top-bar-meta { display: flex; gap: 20px; }
    .top-bar-tag { color: var(--accent); font-weight: 600; }

    /* Nav */
    .site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border-light); }
    .nav-container { display: flex; align-items: center; justify-content: space-between; height: 72px; }
    .brand-logo { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; font-weight: 800; color: var(--primary); }
    .logo-badge { width: 34px; height: 34px; background: linear-gradient(135deg, var(--indigo), var(--cyan)); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.1rem; }
    .nav-links { display: flex; align-items: center; gap: 28px; }
    .nav-link { font-size: 0.94rem; font-weight: 500; color: var(--text-body); }
    .nav-link:hover, .nav-link.active { color: var(--indigo); font-weight: 600; }
    .nav-cta { display: flex; align-items: center; gap: 12px; }

    /* Hero */
    .hero-section {
      background: radial-gradient(circle at 80% 20%, #1E293B 0%, #0B0F19 100%);
      color: #fff; padding: 75px 0 90px; position: relative; overflow: hidden;
    }
    .hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; }
    .hero-pill { display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px; background: rgba(6, 182, 212, 0.12); border: 1px solid rgba(6, 182, 212, 0.3); border-radius: var(--radius-full); color: var(--cyan); font-size: 0.84rem; font-weight: 600; margin-bottom: 20px; }
    .hero-title { font-size: 2.75rem; font-weight: 800; line-height: 1.22; margin-bottom: 20px; letter-spacing: -0.01em; }
    .hero-title span { color: var(--cyan); }
    .hero-desc { font-size: 1.04rem; color: #94A3B8; line-height: 1.8; margin-bottom: 30px; }
    .hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 32px; }
    .hero-specs { display: flex; gap: 28px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 22px; }
    .spec-item-num { font-size: 1.4rem; font-weight: 800; color: #fff; }
    .spec-item-label { font-size: 0.8rem; color: #64748B; }

    .code-console-card {
      background: #0F172A; border: 1px solid #1E293B; border-radius: var(--radius-md);
      box-shadow: 0 20px 40px rgba(0,0,0,0.5); overflow: hidden;
    }
    .console-bar { background: #1E293B; padding: 10px 14px; display: flex; align-items: center; justify-content: space-between; font-size: 0.78rem; color: #94A3B8; }
    .console-dots { display: flex; gap: 6px; }
    .console-dot { width: 10px; height: 10px; border-radius: 50%; background: #475569; }
    .console-dot:nth-child(1) { background: #EF4444; }
    .console-dot:nth-child(2) { background: #F59E0B; }
    .console-dot:nth-child(3) { background: #10B981; }
    .console-body { padding: 18px; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 0.84rem; line-height: 1.65; color: #E2E8F0; overflow-x: auto; }
    .code-kwd { color: #F43F5E; }
    .code-str { color: #34D399; }
    .code-prop { color: #38BDF8; }
    .code-num { color: #FBBF24; }
    .console-footer { background: #131E35; padding: 10px 16px; display: flex; justify-content: space-between; align-items: center; font-size: 0.78rem; color: #38BDF8; border-top: 1px solid #1E293B; }

    /* Section Styles */
    .section-py { padding: 88px 0; }
    .section-alt { background: var(--bg-white); }
    .section-dark { background: var(--bg-dark); color: #fff; }
    .section-dark .section-title { color: #fff; }
    .section-dark .section-desc { color: #94A3B8; }

    /* Fast Entry Bar */
    .entry-search-bar { background: var(--bg-white); margin-top: -36px; position: relative; z-index: 10; border-radius: var(--radius-md); box-shadow: var(--shadow-md); border: 1px solid var(--border-light); padding: 22px 28px; }
    .entry-flex { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; }
    .entry-input-wrap { display: flex; gap: 12px; align-items: center; }
    .entry-input { flex: 1; padding: 12px 18px; border: 1px solid var(--border-light); border-radius: var(--radius-sm); font-size: 0.92rem; outline: none; transition: var(--transition); }
    .entry-input:focus { border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(30,64,175,0.1); }
    .entry-chips { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; font-size: 0.82rem; color: var(--text-muted); }
    .entry-chip { background: var(--bg-base); padding: 3px 10px; border-radius: var(--radius-full); cursor: pointer; transition: var(--transition); }
    .entry-chip:hover { background: #E2E8F0; color: var(--text-main); }

    /* Category Grid */
    .cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
    .cat-card { background: var(--bg-white); border: 1px solid var(--border-light); border-radius: var(--radius-md); padding: 28px; box-shadow: var(--shadow-sm); transition: var(--transition); display: flex; flex-direction: column; justify-content: space-between; }
    .cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: #CBD5E1; }
    .cat-card-icon { width: 44px; height: 44px; border-radius: var(--radius-sm); background: rgba(30,64,175,0.08); color: var(--indigo); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: 16px; font-weight: 700; }
    .cat-card-title { font-size: 1.2rem; font-weight: 700; color: var(--text-main); margin-bottom: 10px; }
    .cat-card-desc { font-size: 0.92rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 18px; }
    .cat-card-list { list-style: none; font-size: 0.86rem; color: var(--text-body); margin-bottom: 20px; }
    .cat-card-list li { margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
    .cat-card-list li::before { content: "✓"; color: var(--accent); font-weight: bold; }

    /* Selection List / Bento */
    .selection-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
    .select-box { background: var(--bg-white); border: 1px solid var(--border-light); border-radius: var(--radius-md); padding: 32px; box-shadow: var(--shadow-sm); }
    .select-box-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; }
    .select-tag { background: #ECFDF5; color: #047857; padding: 4px 10px; border-radius: var(--radius-full); font-size: 0.78rem; font-weight: 600; }
    .select-title { font-size: 1.35rem; font-weight: 700; color: var(--text-main); margin-bottom: 10px; }
    .select-desc { font-size: 0.94rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 20px; }
    .metric-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; background: var(--bg-base); padding: 14px; border-radius: var(--radius-sm); margin-bottom: 20px; text-align: center; }
    .metric-val { font-size: 1.15rem; font-weight: 800; color: var(--indigo); }
    .metric-lbl { font-size: 0.75rem; color: var(--text-muted); }

    /* Dark Analysis & Topology */
    .topo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; }
    .dark-card { background: var(--bg-dark-card); border: 1px solid var(--border-dark); border-radius: var(--radius-md); padding: 30px; }
    .dark-flow-step { display: flex; gap: 16px; margin-bottom: 22px; }
    .flow-num { width: 32px; height: 32px; border-radius: 50%; background: var(--cyan); color: var(--primary); font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
    .flow-content h4 { font-size: 1.05rem; color: #fff; margin-bottom: 4px; }
    .flow-content p { font-size: 0.88rem; color: #94A3B8; line-height: 1.6; }

    /* Ranking & Metrics */
    .ranking-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
    .rank-card { background: var(--bg-white); border: 1px solid var(--border-light); border-radius: var(--radius-md); padding: 22px; text-align: center; }
    .rank-num { font-size: 2.2rem; font-weight: 800; color: var(--indigo); margin-bottom: 6px; }
    .rank-label { font-size: 0.96rem; font-weight: 700; color: var(--text-main); margin-bottom: 4px; }
    .rank-sub { font-size: 0.82rem; color: var(--text-muted); }

    /* Resource Center */
    .res-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
    .res-card { background: var(--bg-white); border: 1px solid var(--border-light); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
    .res-card-img { height: 180px; width: 100%; object-fit: cover; background: #CBD5E1; }
    .res-card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
    .res-tag { display: inline-block; font-size: 0.76rem; font-weight: 600; color: var(--indigo); margin-bottom: 8px; }
    .res-title { font-size: 1.1rem; font-weight: 700; color: var(--text-main); margin-bottom: 10px; line-height: 1.4; }
    .res-summary { font-size: 0.88rem; color: var(--text-muted); line-height: 1.65; margin-bottom: 16px; }
    .res-meta { font-size: 0.78rem; color: #94A3B8; display: flex; justify-content: space-between; border-top: 1px solid var(--border-light); padding-top: 12px; }

    /* User Stories / Reviews */
    .story-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
    .story-card { background: var(--bg-white); border: 1px solid var(--border-light); border-radius: var(--radius-md); padding: 26px; box-shadow: var(--shadow-sm); }
    .story-stars { color: #F59E0B; margin-bottom: 12px; font-size: 0.9rem; }
    .story-quote { font-size: 0.92rem; color: var(--text-body); line-height: 1.7; margin-bottom: 18px; font-style: normal; }
    .story-user { display: flex; align-items: center; gap: 12px; }
    .story-avatar { width: 40px; height: 40px; border-radius: 50%; background: #E2E8F0; display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--indigo); }
    .story-meta h5 { font-size: 0.92rem; font-weight: 700; color: var(--text-main); }
    .story-meta p { font-size: 0.78rem; color: var(--text-muted); }

    /* Parameter Specs Table */
    .specs-table-wrap { background: var(--bg-white); border: 1px solid var(--border-light); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); }
    .specs-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 0.92rem; }
    .specs-table th { background: #F1F5F9; padding: 14px 20px; font-weight: 700; color: var(--text-main); border-bottom: 1px solid var(--border-light); }
    .specs-table td { padding: 14px 20px; border-bottom: 1px solid var(--border-light); color: var(--text-body); }
    .specs-table tr:last-child td { border-bottom: none; }
    .specs-table tr:hover { background: #F8FAFC; }

    /* Workflow 4 Steps */
    .workflow-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
    .wf-card { background: var(--bg-white); border: 1px solid var(--border-light); border-radius: var(--radius-md); padding: 24px; position: relative; }
    .wf-step-tag { font-size: 0.8rem; font-weight: 800; color: var(--cyan); background: var(--bg-dark); padding: 2px 8px; border-radius: var(--radius-sm); display: inline-block; margin-bottom: 12px; }
    .wf-title { font-size: 1.05rem; font-weight: 700; color: var(--text-main); margin-bottom: 8px; }
    .wf-desc { font-size: 0.86rem; color: var(--text-muted); line-height: 1.65; }

    /* Security & SLA Guarantee */
    .guarantee-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
    .g-item { display: flex; gap: 14px; align-items: flex-start; }
    .g-icon { width: 36px; height: 36px; border-radius: var(--radius-sm); background: rgba(16,185,129,0.1); color: var(--accent); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.1rem; flex-shrink: 0; }
    .g-title { font-size: 0.98rem; font-weight: 700; color: var(--text-main); margin-bottom: 4px; }
    .g-desc { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; }

    /* FAQ Accordion */
    .faq-list { max-width: 840px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
    .faq-item { background: var(--bg-white); border: 1px solid var(--border-light); border-radius: var(--radius-md); overflow: hidden; transition: var(--transition); }
    .faq-question { padding: 18px 22px; font-size: 1.02rem; font-weight: 600; color: var(--text-main); display: flex; justify-content: space-between; align-items: center; cursor: pointer; user-select: none; }
    .faq-icon { font-size: 1.2rem; color: var(--indigo); transition: transform 0.28s ease; }
    .faq-answer { padding: 0 22px 18px; font-size: 0.92rem; color: var(--text-muted); line-height: 1.75; display: none; }
    .faq-item.active .faq-answer { display: block; }
    .faq-item.active .faq-icon { transform: rotate(45deg); }

    /* Collection Matrix */
    .collection-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
    .col-card { background: var(--bg-white); border: 1px solid var(--border-light); border-radius: var(--radius-md); padding: 24px; position: relative; }
    .col-count { position: absolute; top: 20px; right: 20px; background: #EEF2FF; color: var(--indigo); font-size: 0.78rem; font-weight: 700; padding: 2px 8px; border-radius: var(--radius-full); }
    .col-title { font-size: 1.12rem; font-weight: 700; color: var(--text-main); margin-bottom: 8px; }
    .col-desc { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 14px; }
    .col-link { font-size: 0.86rem; font-weight: 600; color: var(--indigo); display: inline-flex; align-items: center; gap: 4px; }

    /* Footer CTA Banner */
    .cta-banner { background: linear-gradient(135deg, #0F172A 0%, #1E40AF 100%); color: #fff; padding: 70px 0; border-radius: var(--radius-lg); text-align: center; }
    .cta-banner h2 { font-size: 2.2rem; font-weight: 800; margin-bottom: 16px; }
    .cta-banner p { font-size: 1.05rem; color: #CBD5E1; max-width: 680px; margin: 0 auto 28px; line-height: 1.8; }
    .cta-form { display: flex; gap: 12px; justify-content: center; max-width: 520px; margin: 0 auto; }
    .cta-form input { flex: 1; padding: 12px 18px; border-radius: var(--radius-sm); border: 1px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.1); color: #fff; outline: none; }
    .cta-form input::placeholder { color: #94A3B8; }

    /* Footer */
    .site-footer { background: #0B0F19; color: #94A3B8; padding: 70px 0 30px; font-size: 0.88rem; border-top: 1px solid rgba(255,255,255,0.08); }
    .footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; margin-bottom: 50px; }
    .footer-brand h4 { font-size: 1.2rem; color: #fff; font-weight: 700; margin-bottom: 12px; }
    .footer-brand p { line-height: 1.7; color: #64748B; margin-bottom: 18px; }
    .footer-col h5 { font-size: 0.98rem; color: #fff; font-weight: 600; margin-bottom: 16px; }
    .footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
    .footer-links a:hover { color: #fff; }
    .footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.08); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; color: #64748B; flex-wrap: wrap; gap: 12px; }

    /* Responsive */
    @media (max-width: 1024px) {
      .cat-grid, .selection-grid, .res-grid, .story-grid, .collection-grid { grid-template-columns: repeat(2, 1fr); }
      .ranking-grid, .workflow-grid, .guarantee-bar { grid-template-columns: repeat(2, 1fr); gap: 16px; }
      .footer-grid { grid-template-columns: 1fr 1fr; }
      .hero-grid { grid-template-columns: 1fr; }
    }
    @media (max-width: 768px) {
      .nav-links { display: none; }
      .hero-title { font-size: 2rem; }
      .cat-grid, .selection-grid, .res-grid, .story-grid, .collection-grid, .ranking-grid, .workflow-grid, .guarantee-bar, .topo-grid { grid-template-columns: 1fr; }
      .footer-grid { grid-template-columns: 1fr; }
      .cta-form { flex-direction: column; }
      .entry-flex { grid-template-columns: 1fr; }
      .top-bar-inner { flex-direction: column; gap: 4px; text-align: center; }
    }
