/* roulang page: index */
:root {
      --bg-dark: #0D1117;
      --bg-surface: #0F172A;
      --bg-card: #1E293B;
      --bg-card-hover: #27354E;
      --brand-primary: #6366F1;
      --brand-cyan: #06B6D4;
      --brand-gradient: linear-gradient(135deg, #6366F1 0%, #06B6D4 100%);
      --accent-green: #10B981;
      --text-main: #F8FAFC;
      --text-muted: #94A3B8;
      --text-dim: #64748B;
      --border-subtle: rgba(255, 255, 255, 0.08);
      --border-highlight: rgba(99, 102, 241, 0.4);
      --radius-sm: 8px;
      --radius-md: 14px;
      --radius-lg: 20px;
      --radius-xl: 26px;
      --shadow-soft: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
      --shadow-glow: 0 20px 40px -15px rgba(99, 102, 241, 0.25);
    }
    *, *::before, *::after {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }
    html {
      scroll-behavior: smooth;
      font-size: 16px;
    }
    body {
      background-color: var(--bg-dark);
      color: var(--text-main);
      font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
      line-height: 1.6;
      -webkit-font-smoothing: antialiased;
      overflow-x: hidden;
    }
    a {
      color: inherit;
      text-decoration: none;
      transition: all 0.25s ease;
    }
    ul, ol {
      list-style: none;
    }
    img {
      max-width: 100%;
      height: auto;
      display: block;
    }
    button, input {
      font-family: inherit;
      border: none;
      outline: none;
    }

    /* 容器体系 */
    .container {
      width: 100%;
      max-width: 1240px;
      margin: 0 auto;
      padding: 0 24px;
    }

    /* 徽章与标签 */
    .badge-pill {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      background: rgba(6, 182, 212, 0.12);
      color: #22D3EE;
      border: 1px solid rgba(6, 182, 212, 0.3);
      border-radius: 9999px;
      font-size: 0.8125rem;
      font-weight: 600;
      padding: 4px 14px;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }
    .badge-green {
      background: rgba(16, 185, 129, 0.12);
      color: var(--accent-green);
      border-color: rgba(16, 185, 129, 0.3);
    }
    .badge-alert {
      background: rgba(244, 63, 94, 0.12);
      color: #FB7185;
      border-color: rgba(244, 63, 94, 0.3);
      border-radius: 6px;
      padding: 2px 8px;
      font-size: 0.75rem;
      font-weight: 700;
    }

    /* 按钮规范 */
    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 12px 28px;
      border-radius: var(--radius-md);
      font-size: 0.95rem;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      min-height: 46px;
    }
    .btn-gradient {
      background: var(--brand-gradient);
      color: #FFFFFF;
      box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
    }
    .btn-gradient:hover {
      box-shadow: 0 8px 24px rgba(6, 182, 212, 0.5);
      transform: translateY(-2px);
    }
    .btn-outline {
      background: rgba(255, 255, 255, 0.04);
      color: var(--text-main);
      border: 1px solid var(--border-subtle);
    }
    .btn-outline:hover {
      background: rgba(255, 255, 255, 0.08);
      border-color: var(--brand-cyan);
    }

    /* 导航 Header */
    .site-header {
      position: sticky;
      top: 0;
      z-index: 1000;
      background: rgba(13, 17, 23, 0.85);
      backdrop-filter: blur(16px);
      border-bottom: 1px solid var(--border-subtle);
    }
    .header-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      height: 72px;
    }
    .brand-logo {
      display: flex;
      align-items: center;
      gap: 12px;
      font-size: 1.25rem;
      font-weight: 800;
      letter-spacing: -0.5px;
      color: var(--text-main);
    }
    .brand-icon {
      width: 36px;
      height: 36px;
      background: var(--brand-gradient);
      border-radius: var(--radius-sm);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.1rem;
      font-weight: 900;
      color: #fff;
    }
    .nav-links {
      display: flex;
      align-items: center;
      gap: 28px;
    }
    .nav-link {
      color: var(--text-muted);
      font-size: 0.95rem;
      font-weight: 500;
    }
    .nav-link:hover, .nav-link.active {
      color: #FFFFFF;
    }
    .nav-cta-box {
      display: flex;
      align-items: center;
      gap: 16px;
    }

    /* 板块结构化通用样式 */
    .section-wrap {
      padding: 90px 0;
      position: relative;
    }
    .section-wrap.alt-bg {
      background-color: var(--bg-surface);
      border-top: 1px solid var(--border-subtle);
      border-bottom: 1px solid var(--border-subtle);
    }
    .section-head {
      margin-bottom: 50px;
      max-width: 800px;
    }
    .section-head.center {
      text-align: center;
      margin-left: auto;
      margin-right: auto;
    }
    .section-head h2 {
      font-size: 2.25rem;
      line-height: 1.3;
      margin: 12px 0;
      font-weight: 700;
      letter-spacing: -0.5px;
    }
    .section-head p {
      color: var(--text-muted);
      font-size: 1.0625rem;
      line-height: 1.7;
    }

    /* 板块1：Hero 首屏促销主视觉 */
    .hero-section {
      padding: 100px 0 110px;
      position: relative;
      overflow: hidden;
      background: radial-gradient(circle at 80% 20%, rgba(99, 102, 241, 0.15) 0%, rgba(13, 17, 23, 0) 60%),
                  radial-gradient(circle at 10% 80%, rgba(6, 182, 212, 0.1) 0%, rgba(13, 17, 23, 0) 50%);
    }
    .hero-grid {
      display: grid;
      grid-template-columns: 1.15fr 0.85fr;
      gap: 48px;
      align-items: center;
    }
    .hero-content h1 {
      font-size: 3.25rem;
      line-height: 1.2;
      font-weight: 800;
      margin: 18px 0;
      background: linear-gradient(135deg, #FFFFFF 30%, #A5B4FC 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }
    .hero-lead {
      color: var(--text-muted);
      font-size: 1.125rem;
      line-height: 1.8;
      margin-bottom: 32px;
    }
    .hero-action-bar {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 18px;
      margin-bottom: 40px;
    }
    .hero-specs-strip {
      display: flex;
      gap: 24px;
      border-top: 1px solid var(--border-subtle);
      padding-top: 24px;
    }
    .spec-item {
      display: flex;
      flex-direction: column;
    }
    .spec-value {
      font-size: 1.4rem;
      font-weight: 700;
      color: var(--text-main);
    }
    .spec-label {
      font-size: 0.8125rem;
      color: var(--text-dim);
    }
    .hero-stage-card {
      position: relative;
      border-radius: var(--radius-xl);
      overflow: hidden;
      border: 1px solid var(--border-highlight);
      box-shadow: var(--shadow-glow);
      background: var(--bg-card);
    }
    .hero-stage-card img {
      width: 100%;
      height: 380px;
      object-fit: cover;
      filter: brightness(0.9);
      transition: transform 0.6s ease;
    }
    .hero-stage-card:hover img {
      transform: scale(1.03);
    }
    .stage-burst-tag {
      position: absolute;
      top: 20px;
      right: 20px;
      background: #EF4444;
      color: #fff;
      font-size: 0.8rem;
      font-weight: 800;
      padding: 6px 14px;
      border-radius: 999px;
      box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
    }

    /* 板块2：优惠券墙 */
    .coupon-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 24px;
    }
    .coupon-ticket {
      background: var(--bg-card);
      border: 1px dashed rgba(99, 102, 241, 0.5);
      border-radius: var(--radius-lg);
      padding: 30px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      position: relative;
      overflow: hidden;
      transition: all 0.3s ease;
    }
    .coupon-ticket:hover {
      border-color: var(--brand-cyan);
      transform: translateY(-4px);
      box-shadow: var(--shadow-glow);
    }
    .coupon-amount {
      font-size: 2.5rem;
      font-weight: 800;
      color: #38BDF8;
      line-height: 1;
      margin-bottom: 8px;
    }
    .coupon-title {
      font-size: 1.15rem;
      font-weight: 700;
      margin-bottom: 6px;
    }
    .coupon-condition {
      font-size: 0.875rem;
      color: var(--text-muted);
      margin-bottom: 20px;
    }

    /* 板块3：搜索与快速入口 */
    .search-bar-wrap {
      background: var(--bg-card);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-lg);
      padding: 24px;
      display: flex;
      flex-direction: column;
      gap: 20px;
    }
    .search-input-group {
      display: flex;
      gap: 12px;
      background: rgba(13, 17, 23, 0.6);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-md);
      padding: 6px 12px;
    }
    .search-input-group input {
      flex: 1;
      background: transparent;
      color: #fff;
      font-size: 1rem;
      padding: 10px;
    }
    .hot-tags-row {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      align-items: center;
      font-size: 0.875rem;
    }

    /* 板块4：核心分类矩阵 */
    .matrix-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 28px;
    }
    .matrix-card {
      background: var(--bg-card);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-lg);
      padding: 36px;
      transition: all 0.3s ease;
      position: relative;
    }
    .matrix-card:hover {
      border-color: rgba(99, 102, 241, 0.5);
      transform: translateY(-4px);
      box-shadow: var(--shadow-soft);
    }
    .matrix-card h3 {
      font-size: 1.35rem;
      font-weight: 700;
      margin: 16px 0 10px;
    }
    .matrix-card p {
      color: var(--text-muted);
      font-size: 0.95rem;
      line-height: 1.7;
    }

    /* 板块5：精选开发工具清单 */
    .tools-list {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
      gap: 24px;
    }
    .tool-item {
      background: var(--bg-card);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-md);
      padding: 24px;
      display: flex;
      align-items: flex-start;
      gap: 20px;
    }
    .tool-icon {
      width: 48px;
      height: 48px;
      border-radius: var(--radius-sm);
      background: rgba(99, 102, 241, 0.15);
      color: #818CF8;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 800;
      flex-shrink: 0;
    }
    .tool-info h4 {
      font-size: 1.1rem;
      margin-bottom: 6px;
    }
    .tool-info p {
      font-size: 0.875rem;
      color: var(--text-muted);
      line-height: 1.6;
    }

    /* 板块6：开发套件版本更新 */
    .timeline-wrap {
      display: flex;
      flex-direction: column;
      gap: 20px;
      position: relative;
      padding-left: 28px;
      border-left: 2px solid rgba(255, 255, 255, 0.08);
    }
    .timeline-node {
      position: relative;
    }
    .timeline-node::before {
      content: '';
      position: absolute;
      left: -35px;
      top: 6px;
      width: 12px;
      height: 12px;
      border-radius: 50%;
      background: var(--brand-cyan);
      box-shadow: 0 0 10px var(--brand-cyan);
    }
    .timeline-box {
      background: var(--bg-card);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-md);
      padding: 24px;
    }
    .timeline-head {
      display: flex;
      align-items: center;
      gap: 16px;
      margin-bottom: 12px;
    }

    /* 板块7：开发者热门排行 */
    .rank-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 30px;
    }
    .rank-list {
      background: var(--bg-card);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-lg);
      padding: 24px;
    }
    .rank-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 16px 0;
      border-bottom: 1px solid var(--border-subtle);
    }
    .rank-row:last-child {
      border-bottom: none;
    }
    .rank-idx {
      width: 28px;
      font-size: 1.1rem;
      font-weight: 800;
      color: var(--text-dim);
    }
    .rank-idx.top {
      color: #F59E0B;
    }

    /* 板块8：快速配置起步 */
    .quickstart-box {
      background: #000000;
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-lg);
      padding: 32px;
      position: relative;
    }
    .code-line {
      font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
      color: #38BDF8;
      font-size: 0.95rem;
      margin: 8px 0;
      display: flex;
      align-items: center;
      gap: 12px;
    }
    .code-prompt {
      color: var(--text-dim);
      user-select: none;
    }

    /* 板块9：技术资源中心与 SDK 下载 */
    .resource-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 20px;
    }
    .resource-card {
      background: var(--bg-card);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-md);
      padding: 24px;
      text-align: center;
    }
    .resource-card h4 {
      margin: 12px 0 8px;
      font-size: 1.1rem;
    }

    /* 板块10：适用研发群体分析 */
    .persona-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 30px;
    }
    .persona-col {
      background: var(--bg-card);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-xl);
      padding: 36px;
    }
    .persona-col.pro {
      border-color: rgba(16, 185, 129, 0.4);
    }
    .persona-item {
      display: flex;
      gap: 12px;
      margin: 16px 0;
      color: var(--text-muted);
      font-size: 0.95rem;
    }

    /* 板块11：行业资讯与架构解读 */
    .news-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 28px;
    }
    .news-card {
      background: var(--bg-card);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-lg);
      overflow: hidden;
      border: 1px solid var(--border-subtle);
      transition: all 0.3s ease;
    }
    .news-card:hover {
      transform: translateY(-4px);
      border-color: var(--brand-cyan);
    }
    .news-thumb {
      height: 180px;
      overflow: hidden;
    }
    .news-thumb img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.4s ease;
    }
    .news-card:hover .news-thumb img {
      transform: scale(1.05);
    }
    .news-body {
      padding: 24px;
    }
    .news-body h3 {
      font-size: 1.15rem;
      margin-bottom: 10px;
      line-height: 1.4;
    }
    .news-body p {
      font-size: 0.875rem;
      color: var(--text-muted);
      line-height: 1.6;
    }

    /* 板块12：多端部署矩阵 */
    .multiplatform-row {
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      gap: 16px;
    }
    .platform-pill {
      background: var(--bg-card);
      border: 1px solid var(--border-subtle);
      padding: 20px;
      border-radius: var(--radius-md);
      text-align: center;
      transition: all 0.25s ease;
    }
    .platform-pill:hover {
      background: rgba(99, 102, 241, 0.1);
      border-color: var(--brand-primary);
    }

    /* 板块13：高并发指标与全链路保障 */
    .metrics-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 24px;
    }
    .metric-card {
      background: var(--bg-card);
      border-radius: var(--radius-lg);
      padding: 32px 24px;
      text-align: center;
      border: 1px solid var(--border-subtle);
    }
    .metric-num {
      font-size: 2.8rem;
      font-weight: 800;
      color: #38BDF8;
      line-height: 1.2;
      margin-bottom: 8px;
    }

    /* 板块14：商业方案与传统方案对比 */
    .comparison-table-wrap {
      overflow-x: auto;
      background: var(--bg-card);
      border-radius: var(--radius-lg);
      border: 1px solid var(--border-subtle);
    }
    .comp-table {
      width: 100%;
      border-collapse: collapse;
      text-align: left;
    }
    .comp-table th, .comp-table td {
      padding: 20px 24px;
      border-bottom: 1px solid var(--border-subtle);
      font-size: 0.95rem;
    }
    .comp-table th {
      background: rgba(255, 255, 255, 0.02);
      font-weight: 700;
    }

    /* 板块15：客户故事与落地背书 */
    .stories-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 30px;
    }
    .story-card {
      background: var(--bg-card);
      border-radius: var(--radius-lg);
      padding: 36px;
      border: 1px solid var(--border-subtle);
    }
    .story-quote {
      font-size: 1.05rem;
      color: var(--text-muted);
      line-height: 1.7;
      margin-bottom: 24px;
    }
    .story-author {
      display: flex;
      align-items: center;
      gap: 14px;
    }

    /* 板块16：常见技术解答与答疑 */
    .faq-container {
      max-width: 860px;
      margin: 0 auto;
      display: flex;
      flex-direction: column;
      gap: 16px;
    }
    details.faq-item {
      background: var(--bg-card);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-md);
      overflow: hidden;
      transition: all 0.3s ease;
    }
    details.faq-item[open] {
      border-color: var(--brand-primary);
    }
    summary.faq-q {
      padding: 20px 24px;
      font-weight: 600;
      cursor: pointer;
      list-style: none;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    summary.faq-q::-webkit-details-marker {
      display: none;
    }
    summary.faq-q::after {
      content: '+';
      font-size: 1.4rem;
      color: var(--text-dim);
    }
    details.faq-item[open] summary.faq-q::after {
      content: '−';
      color: var(--brand-cyan);
    }
    .faq-a {
      padding: 0 24px 20px;
      color: var(--text-muted);
      font-size: 0.95rem;
      line-height: 1.7;
    }

    /* 板块17：快捷收藏与接入收口 */
    .cta-banner-wrap {
      background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(6, 182, 212, 0.15) 100%);
      border: 1px solid var(--border-highlight);
      border-radius: var(--radius-xl);
      padding: 60px 48px;
      text-align: center;
      position: relative;
    }
    .cta-banner-wrap h2 {
      font-size: 2.25rem;
      font-weight: 800;
      margin-bottom: 16px;
    }
    .cta-banner-wrap p {
      max-width: 680px;
      margin: 0 auto 32px;
      color: var(--text-muted);
      font-size: 1.1rem;
    }

    /* 页脚 Footer */
    .site-footer {
      background: #0A0D12;
      border-top: 1px solid var(--border-subtle);
      padding: 70px 0 36px;
      color: var(--text-dim);
      font-size: 0.9rem;
    }
    .footer-grid {
      display: grid;
      grid-template-columns: 1.5fr repeat(3, 1fr);
      gap: 40px;
      margin-bottom: 50px;
    }
    .footer-col h4 {
      color: var(--text-main);
      font-size: 1rem;
      margin-bottom: 20px;
    }
    .footer-links li {
      margin-bottom: 12px;
    }
    .footer-links a:hover {
      color: var(--brand-cyan);
    }
    .footer-bottom {
      border-top: 1px solid var(--border-subtle);
      padding-top: 30px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 16px;
    }

    /* 响应式断点 */
    @media (max-width: 1024px) {
      .hero-grid {
        grid-template-columns: 1fr;
      }
      .matrix-grid, .news-grid {
        grid-template-columns: repeat(2, 1fr);
      }
      .resource-grid, .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
      }
      .multiplatform-row {
        grid-template-columns: repeat(3, 1fr);
      }
      .footer-grid {
        grid-template-columns: repeat(2, 1fr);
      }
    }
    @media (max-width: 768px) {
      .nav-links {
        display: none;
      }
      .hero-content h1 {
        font-size: 2.35rem;
      }
      .matrix-grid, .news-grid, .rank-grid, .persona-grid, .stories-grid {
        grid-template-columns: 1fr;
      }
      .multiplatform-row {
        grid-template-columns: repeat(2, 1fr);
      }
      .footer-grid {
        grid-template-columns: 1fr;
      }
      .section-wrap {
        padding: 60px 0;
      }
    }
