/* roulang page: index */
:root {
      --primary: #0F3E7D;
      --primary-hover: #1A56A6;
      --primary-light: #EBF3FC;
      --accent: #00A3C4;
      --accent-deep: #0284C7;
      --dark-navy: #0B192C;
      --text-main: #0F172A;
      --text-muted: #475569;
      --text-light: #94A3B8;
      --bg-white: #FFFFFF;
      --bg-soft: #F8FAFC;
      --border-color: #E2E8F0;
      --border-focus: #93C5FD;
      --radius-sm: 6px;
      --radius-md: 12px;
      --radius-lg: 16px;
      --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
      --shadow-md: 0 6px 20px -2px rgba(15, 23, 42, 0.06);
      --shadow-hover: 0 14px 30px -4px rgba(15, 62, 125, 0.12);
      --transition: all 0.25s ease-in-out;
      --max-width: 1240px;
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
      -webkit-font-smoothing: antialiased;
    }

    html {
      scroll-behavior: smooth;
      font-size: 16px;
    }

    body {
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
      color: var(--text-main);
      background-color: var(--bg-white);
      line-height: 1.6;
      overflow-x: hidden;
    }

    a {
      color: inherit;
      text-decoration: none;
      transition: var(--transition);
    }

    img {
      max-width: 100%;
      height: auto;
      display: block;
    }

    ul, ol {
      list-style: none;
    }

    .container {
      width: 100%;
      max-width: var(--max-width);
      margin: 0 auto;
      padding: 0 24px;
    }

    /* 顶部微型栏与导航 */
    .site-header {
      position: sticky;
      top: 0;
      z-index: 1000;
      background: rgba(255, 255, 255, 0.95);
      backdrop-filter: blur(10px);
      border-bottom: 1px solid var(--border-color);
      box-shadow: var(--shadow-sm);
    }

    .top-bar {
      background-color: #F1F5F9;
      border-bottom: 1px solid var(--border-color);
      font-size: 12px;
      color: var(--text-muted);
      padding: 6px 0;
    }

    .top-bar-inner {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .status-indicator {
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }

    .status-dot {
      width: 8px;
      height: 8px;
      background-color: #10B981;
      border-radius: 50%;
      box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
    }

    .nav-main {
      padding: 14px 0;
    }

    .nav-inner {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .brand-logo {
      display: flex;
      align-items: center;
      gap: 10px;
      font-size: 19px;
      font-weight: 700;
      color: var(--primary);
      letter-spacing: -0.3px;
    }

    .brand-logo-icon {
      width: 32px;
      height: 32px;
      background: linear-gradient(135deg, var(--primary), var(--accent));
      border-radius: var(--radius-sm);
      display: flex;
      align-items: center;
      justify-content: center;
      color: #fff;
      font-weight: 800;
      font-size: 16px;
    }

    .nav-menu {
      display: flex;
      align-items: center;
      gap: 28px;
    }

    .nav-link {
      font-size: 15px;
      font-weight: 500;
      color: var(--text-muted);
    }

    .nav-link:hover, .nav-link.active {
      color: var(--primary);
    }

    .nav-actions {
      display: flex;
      align-items: center;
      gap: 14px;
    }

    .mobile-toggle {
      display: none;
      background: none;
      border: none;
      font-size: 22px;
      color: var(--text-main);
      cursor: pointer;
    }

    /* 按钮与徽章 */
    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 10px 22px;
      font-size: 14px;
      font-weight: 600;
      border-radius: var(--radius-sm);
      cursor: pointer;
      transition: var(--transition);
      border: 1px solid transparent;
      white-space: nowrap;
    }

    .btn-primary {
      background-color: var(--primary);
      color: #FFFFFF;
    }

    .btn-primary:hover {
      background-color: var(--primary-hover);
      box-shadow: 0 4px 14px rgba(15, 62, 125, 0.25);
    }

    .btn-outline {
      background-color: transparent;
      border-color: var(--border-color);
      color: var(--text-main);
    }

    .btn-outline:hover {
      border-color: var(--primary);
      color: var(--primary);
      background-color: var(--primary-light);
    }

    .btn-accent {
      background-color: var(--accent);
      color: #FFFFFF;
    }

    .btn-accent:hover {
      background-color: var(--accent-deep);
    }

    .badge {
      display: inline-block;
      padding: 4px 10px;
      font-size: 12px;
      font-weight: 600;
      border-radius: 99px;
      background-color: var(--primary-light);
      color: var(--primary);
      margin-bottom: 12px;
    }

    /* 通用 Section 框架 */
    section {
      padding: 85px 0;
      position: relative;
    }

    .section-alt {
      background-color: var(--bg-soft);
      border-top: 1px solid var(--border-color);
      border-bottom: 1px solid var(--border-color);
    }

    .section-header {
      margin-bottom: 50px;
      max-width: 760px;
    }

    .section-header.center {
      margin-left: auto;
      margin-right: auto;
      text-align: center;
    }

    .section-title {
      font-size: 32px;
      font-weight: 700;
      line-height: 1.3;
      color: var(--text-main);
      margin-bottom: 14px;
      letter-spacing: -0.5px;
    }

    .section-desc {
      font-size: 16px;
      color: var(--text-muted);
      line-height: 1.7;
    }

    /* 首屏 Hero Section (API / 开发者驱动蓝图) */
    .hero-section {
      padding: 70px 0 90px;
      background: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 100%);
      border-bottom: 1px solid var(--border-color);
      position: relative;
    }

    .hero-grid {
      display: grid;
      grid-template-columns: 1.15fr 0.85fr;
      gap: 48px;
      align-items: center;
    }

    .hero-content h1 {
      font-size: 40px;
      line-height: 1.25;
      font-weight: 800;
      color: var(--text-main);
      margin-bottom: 18px;
      letter-spacing: -0.8px;
    }

    .hero-content p {
      font-size: 16px;
      color: var(--text-muted);
      margin-bottom: 28px;
      line-height: 1.75;
    }

    .hero-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 14px;
      margin-bottom: 36px;
    }

    .hero-meta-strip {
      display: flex;
      gap: 28px;
      border-top: 1px solid var(--border-color);
      padding-top: 20px;
    }

    .meta-item-title {
      font-size: 12px;
      color: var(--text-light);
      text-transform: uppercase;
      font-weight: 600;
      margin-bottom: 4px;
    }

    .meta-item-val {
      font-size: 14px;
      font-weight: 700;
      color: var(--text-main);
    }

    .code-console-card {
      background-color: #0F172A;
      border-radius: var(--radius-md);
      box-shadow: 0 20px 40px rgba(15, 23, 42, 0.2);
      border: 1px solid #1E293B;
      overflow: hidden;
      color: #E2E8F0;
      font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    }

    .console-header {
      background-color: #1E293B;
      padding: 10px 16px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      border-bottom: 1px solid #334155;
    }

    .console-dots {
      display: flex;
      gap: 6px;
    }

    .dot {
      width: 10px;
      height: 10px;
      border-radius: 50%;
    }
    .dot-red { background: #EF4444; }
    .dot-yellow { background: #F59E0B; }
    .dot-green { background: #10B981; }

    .console-title {
      font-size: 12px;
      color: #94A3B8;
    }

    .console-body {
      padding: 20px;
      font-size: 13px;
      line-height: 1.65;
    }

    .code-line {
      display: block;
      margin-bottom: 4px;
    }
    .code-comment { color: #64748B; }
    .code-keyword { color: #38BDF8; font-weight: 600; }
    .code-string { color: #A7F3D0; }
    .code-fn { color: #FCD34D; }

    /* 卖点三连 */
    .trio-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 28px;
    }

    .trio-card {
      background: var(--bg-white);
      border: 1px solid var(--border-color);
      border-radius: var(--radius-md);
      padding: 32px 28px;
      box-shadow: var(--shadow-sm);
      transition: var(--transition);
      position: relative;
    }

    .trio-card:hover {
      transform: translateY(-4px);
      box-shadow: var(--shadow-hover);
      border-color: var(--primary);
    }

    .trio-icon-wrap {
      width: 52px;
      height: 52px;
      border-radius: var(--radius-sm);
      background-color: var(--primary-light);
      color: var(--primary);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 24px;
      margin-bottom: 20px;
    }

    .trio-card h3 {
      font-size: 19px;
      font-weight: 700;
      margin-bottom: 12px;
      color: var(--text-main);
    }

    .trio-card p {
      font-size: 14px;
      color: var(--text-muted);
      line-height: 1.65;
    }

    /* 入口矩阵 (Matrix Cards) */
    .matrix-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 20px;
    }

    .matrix-card {
      background: var(--bg-white);
      border: 1px solid var(--border-color);
      border-radius: var(--radius-md);
      padding: 24px 20px;
      transition: var(--transition);
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }

    .matrix-card:hover {
      border-color: var(--accent);
      box-shadow: var(--shadow-md);
    }

    .matrix-head {
      margin-bottom: 16px;
    }

    .matrix-tag {
      font-size: 11px;
      font-weight: 700;
      color: var(--accent-deep);
      text-transform: uppercase;
      letter-spacing: 0.5px;
      margin-bottom: 8px;
      display: block;
    }

    .matrix-head h3 {
      font-size: 17px;
      font-weight: 700;
      color: var(--text-main);
    }

    .matrix-card p {
      font-size: 13px;
      color: var(--text-muted);
      line-height: 1.6;
      margin-bottom: 16px;
    }

    .matrix-link {
      font-size: 13px;
      font-weight: 600;
      color: var(--primary);
      display: inline-flex;
      align-items: center;
      gap: 4px;
    }

    /* 架构图文解构 */
    .split-layout {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 50px;
      align-items: center;
    }

    .feature-img-card {
      border-radius: var(--radius-md);
      overflow: hidden;
      border: 1px solid var(--border-color);
      box-shadow: var(--shadow-md);
      background-color: var(--bg-white);
    }

    .feature-img-card img {
      width: 100%;
      height: 380px;
      object-fit: cover;
    }

    .param-list {
      margin-top: 24px;
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 16px;
    }

    .param-box {
      background: var(--bg-soft);
      padding: 14px 18px;
      border-radius: var(--radius-sm);
      border: 1px solid var(--border-color);
    }

    .param-box strong {
      display: block;
      font-size: 20px;
      color: var(--primary);
      font-weight: 800;
    }

    .param-box span {
      font-size: 12px;
      color: var(--text-muted);
    }

    /* 最新发布与版本日志 (Latest Release) */
    .release-table {
      background: var(--bg-white);
      border-radius: var(--radius-md);
      border: 1px solid var(--border-color);
      overflow: hidden;
      box-shadow: var(--shadow-sm);
    }

    .release-item {
      padding: 22px 28px;
      display: grid;
      grid-template-columns: 160px 1.5fr 1fr 120px;
      align-items: center;
      border-bottom: 1px solid var(--border-color);
    }

    .release-item:last-child {
      border-bottom: none;
    }

    .release-ver {
      font-weight: 700;
      font-size: 15px;
      color: var(--primary);
    }

    .release-desc {
      font-size: 14px;
      color: var(--text-main);
      font-weight: 500;
    }

    .release-scope {
      font-size: 13px;
      color: var(--text-muted);
    }

    .release-date {
      font-size: 13px;
      color: var(--text-light);
      text-align: right;
    }

    /* 热门专题板块 (Hot Topics) */
    .topics-wrap {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 24px;
    }

    .topic-card {
      border: 1px solid var(--border-color);
      border-radius: var(--radius-md);
      background: var(--bg-white);
      overflow: hidden;
      box-shadow: var(--shadow-sm);
      transition: var(--transition);
    }

    .topic-card:hover {
      box-shadow: var(--shadow-hover);
      transform: translateY(-3px);
    }

    .topic-thumb {
      height: 180px;
      overflow: hidden;
    }

    .topic-thumb img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.35s ease;
    }

    .topic-card:hover .topic-thumb img {
      transform: scale(1.04);
    }

    .topic-body {
      padding: 22px;
    }

    .topic-body h3 {
      font-size: 17px;
      font-weight: 700;
      margin-bottom: 8px;
      color: var(--text-main);
    }

    .topic-body p {
      font-size: 13px;
      color: var(--text-muted);
      line-height: 1.6;
    }

    /* 资讯列表区 (Articles & Insights) */
    .news-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 28px;
    }

    .news-card {
      background: var(--bg-white);
      border-radius: var(--radius-md);
      border: 1px solid var(--border-color);
      padding: 26px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      transition: var(--transition);
    }

    .news-card:hover {
      border-color: var(--primary-hover);
      box-shadow: var(--shadow-md);
    }

    .news-date-tag {
      font-size: 12px;
      color: var(--accent-deep);
      font-weight: 600;
      margin-bottom: 10px;
    }

    .news-card h3 {
      font-size: 18px;
      font-weight: 700;
      line-height: 1.4;
      margin-bottom: 12px;
      color: var(--text-main);
    }

    .news-card p {
      font-size: 14px;
      color: var(--text-muted);
      line-height: 1.65;
      margin-bottom: 20px;
    }

    .news-author-bar {
      display: flex;
      align-items: center;
      gap: 10px;
      border-top: 1px solid var(--border-color);
      padding-top: 14px;
      font-size: 13px;
      color: var(--text-light);
    }

    /* 行业场景卡片 (Scenarios) */
    .scenario-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 20px;
    }

    .scenario-item {
      background: var(--bg-white);
      border: 1px solid var(--border-color);
      border-radius: var(--radius-md);
      padding: 26px 20px;
      transition: var(--transition);
    }

    .scenario-item:hover {
      border-color: var(--primary);
      box-shadow: var(--shadow-sm);
    }

    .scenario-num {
      font-size: 24px;
      font-weight: 800;
      color: var(--accent);
      margin-bottom: 12px;
      line-height: 1;
    }

    .scenario-item h3 {
      font-size: 16px;
      font-weight: 700;
      margin-bottom: 8px;
      color: var(--text-main);
    }

    .scenario-item p {
      font-size: 13px;
      color: var(--text-muted);
      line-height: 1.6;
    }

    /* 深色对比度板块：分布式渲染理念 */
    .dark-zone {
      background-color: var(--dark-navy);
      color: #FFFFFF;
      padding: 85px 0;
    }

    .dark-zone .section-title {
      color: #FFFFFF;
    }

    .dark-zone .section-desc {
      color: #94A3B8;
    }

    .dark-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 28px;
      margin-top: 40px;
    }

    .dark-card {
      background: #132238;
      border: 1px solid #1E3352;
      border-radius: var(--radius-md);
      padding: 30px;
      transition: var(--transition);
    }

    .dark-card:hover {
      border-color: var(--accent);
      background: #172B47;
    }

    .dark-card h3 {
      font-size: 18px;
      font-weight: 700;
      margin-bottom: 12px;
      color: #E2E8F0;
    }

    .dark-card p {
      font-size: 14px;
      color: #94A3B8;
      line-height: 1.65;
    }

    /* 运行指标数据栏 (Metrics Bar) */
    .metrics-section {
      padding: 55px 0;
      background: var(--primary);
      color: #FFFFFF;
    }

    .metrics-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 24px;
      text-align: center;
    }

    .metric-value {
      font-size: 42px;
      font-weight: 800;
      line-height: 1.1;
      margin-bottom: 6px;
      font-feature-settings: "tnum";
    }

    .metric-unit {
      font-size: 18px;
      font-weight: 600;
      color: var(--accent);
    }

    .metric-label {
      font-size: 14px;
      color: #D1E4FA;
    }

    /* 用户口碑墙 (Testimonials) */
    .reviews-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 24px;
    }

    .review-card {
      background: var(--bg-white);
      border: 1px solid var(--border-color);
      border-radius: var(--radius-md);
      padding: 28px;
      box-shadow: var(--shadow-sm);
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }

    .review-text {
      font-size: 14px;
      color: var(--text-muted);
      line-height: 1.7;
      margin-bottom: 20px;
      position: relative;
    }

    .review-author {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .author-avatar {
      width: 44px;
      height: 44px;
      border-radius: 50%;
      background: var(--primary-light);
      color: var(--primary);
      font-weight: 700;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 15px;
    }

    .author-info h4 {
      font-size: 14px;
      font-weight: 700;
      color: var(--text-main);
    }

    .author-info span {
      font-size: 12px;
      color: var(--text-light);
    }

    /* 裂变邀请机制专属板块 */
    .referral-card {
      background: linear-gradient(135deg, #F8FAFC 0%, #EDF4FB 100%);
      border: 1px solid var(--border-color);
      border-radius: var(--radius-lg);
      padding: 44px 40px;
      box-shadow: var(--shadow-sm);
    }

    .referral-inner {
      display: grid;
      grid-template-columns: 1.2fr 0.8fr;
      gap: 40px;
      align-items: center;
    }

    .progress-outer {
      background: #E2E8F0;
      height: 12px;
      border-radius: 99px;
      overflow: hidden;
      margin: 18px 0 10px;
    }

    .progress-bar-fill {
      width: 68%;
      height: 100%;
      background: linear-gradient(90deg, var(--primary), var(--accent));
      border-radius: 99px;
    }

    .rank-list {
      background: var(--bg-white);
      border-radius: var(--radius-md);
      padding: 20px;
      border: 1px solid var(--border-color);
    }

    .rank-title {
      font-size: 14px;
      font-weight: 700;
      margin-bottom: 12px;
      color: var(--text-main);
    }

    .rank-row {
      display: flex;
      justify-content: space-between;
      padding: 8px 0;
      font-size: 13px;
      border-bottom: 1px dashed var(--border-color);
    }

    .rank-row:last-child {
      border-bottom: none;
    }

    /* 快速技术问答手风琴 (FAQ) */
    .faq-container {
      max-width: 860px;
      margin: 0 auto;
    }

    .faq-item {
      border: 1px solid var(--border-color);
      border-radius: var(--radius-md);
      margin-bottom: 14px;
      background: var(--bg-white);
      overflow: hidden;
      transition: var(--transition);
    }

    .faq-header {
      padding: 20px 24px;
      cursor: pointer;
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 16px;
      font-weight: 600;
      color: var(--text-main);
      user-select: none;
    }

    .faq-icon {
      font-size: 18px;
      transition: transform 0.25s ease;
      color: var(--text-light);
    }

    .faq-body {
      padding: 0 24px 20px;
      font-size: 14px;
      color: var(--text-muted);
      line-height: 1.7;
      display: none;
    }

    .faq-item.active {
      border-color: var(--primary);
    }

    .faq-item.active .faq-body {
      display: block;
    }

    .faq-item.active .faq-icon {
      transform: rotate(45deg);
      color: var(--primary);
    }

    /* 联系接入入口收口 CTA */
    .final-cta {
      background: linear-gradient(135deg, var(--dark-navy) 0%, var(--primary) 100%);
      color: #FFFFFF;
      text-align: center;
      padding: 80px 0;
    }

    .final-cta h2 {
      font-size: 34px;
      font-weight: 800;
      margin-bottom: 16px;
    }

    .final-cta p {
      font-size: 16px;
      color: #D1E4FA;
      max-width: 680px;
      margin: 0 auto 32px;
      line-height: 1.7;
    }

    .cta-button-group {
      display: flex;
      justify-content: center;
      gap: 16px;
      flex-wrap: wrap;
    }

    /* 页脚 */
    .site-footer {
      background-color: #07101E;
      color: #94A3B8;
      font-size: 14px;
      padding: 70px 0 30px;
      border-top: 1px solid #1E293B;
    }

    .footer-grid {
      display: grid;
      grid-template-columns: 1.5fr 1fr 1fr 1fr;
      gap: 40px;
      margin-bottom: 50px;
    }

    .footer-col h4 {
      font-size: 15px;
      font-weight: 700;
      color: #FFFFFF;
      margin-bottom: 20px;
    }

    .footer-col p {
      line-height: 1.7;
      margin-bottom: 16px;
    }

    .footer-links li {
      margin-bottom: 10px;
    }

    .footer-links a:hover {
      color: #FFFFFF;
    }

    .footer-bottom {
      border-top: 1px solid #1E293B;
      padding-top: 28px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 13px;
    }

    /* 移动端适配 */
    @media (max-width: 1024px) {
      .hero-grid, .split-layout, .referral-inner {
        grid-template-columns: 1fr;
        gap: 36px;
      }
      .trio-grid, .topics-wrap, .news-grid, .reviews-grid, .dark-grid {
        grid-template-columns: repeat(2, 1fr);
      }
      .matrix-grid, .scenario-grid, .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
      }
      .release-item {
        grid-template-columns: 120px 1.5fr 1fr;
      }
      .release-date { display: none; }
      .footer-grid {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    @media (max-width: 768px) {
      .top-bar { display: none; }
      .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #FFFFFF;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        border-bottom: 1px solid var(--border-color);
        gap: 16px;
      }
      .nav-menu.show { display: flex; }
      .mobile-toggle { display: block; }
      .nav-actions .btn { display: none; }
      
      .hero-content h1 { font-size: 28px; }
      .section-title { font-size: 25px; }
      
      .trio-grid, .matrix-grid, .scenario-grid, .topics-wrap, .news-grid, .reviews-grid, .dark-grid, .metrics-grid {
        grid-template-columns: 1fr;
      }
      .release-item {
        grid-template-columns: 1fr;
        gap: 6px;
      }
      .footer-grid {
        grid-template-columns: 1fr;
      }
      .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
      }
    }
