/* roulang page: index */
:root {
      --primary: #00D084;
      --primary-hover: #00b371;
      --accent: #0066FF;
      --accent-hover: #0052cc;
      --dark-surface: #0F141C;
      --dark-card: #161D27;
      --light-surface: #F8FAFC;
      --white: #FFFFFF;
      --text-main: #0F172A;
      --text-muted: #475569;
      --text-light: #94A3B8;
      --border-color: #E2E8F0;
      --border-dark: #273142;
      --radius-sm: 6px;
      --radius-md: 10px;
      --radius-lg: 16px;
      --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
      --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
      --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
      --font-stack: system-ui, -apple-system, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    body {
      font-family: var(--font-stack);
      background-color: var(--light-surface);
      color: var(--text-main);
      line-height: 1.75;
      font-size: 15px;
      -webkit-font-smoothing: antialiased;
    }

    a {
      color: inherit;
      text-decoration: none;
      transition: all 0.2s ease;
    }

    img {
      max-width: 100%;
      height: auto;
      display: block;
    }

    button, input, textarea {
      font-family: inherit;
    }

    .container {
      width: 100%;
      max-width: 1240px;
      margin-left: auto;
      margin-right: auto;
      padding-left: 20px;
      padding-right: 20px;
    }

    /* 顶部双行导航 */
    .top-status-bar {
      background-color: #0B0F15;
      color: #94A3B8;
      font-size: 12px;
      padding: 8px 0;
      border-bottom: 1px solid rgba(255,255,255,0.08);
    }
    .top-status-content {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    .status-left {
      display: flex;
      align-items: center;
      gap: 16px;
    }
    .status-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      color: #E2E8F0;
    }
    .dot-pulse {
      width: 8px;
      height: 8px;
      background-color: var(--primary);
      border-radius: 50%;
      box-shadow: 0 0 8px var(--primary);
    }
    .status-right a {
      color: #CBD5E1;
      margin-left: 14px;
    }
    .status-right a:hover {
      color: var(--primary);
    }

    .main-nav-bar {
      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);
    }
    .nav-content {
      display: flex;
      align-items: center;
      justify-content: space-between;
      height: 72px;
    }
    .brand-logo {
      display: flex;
      align-items: center;
      gap: 10px;
      font-weight: 800;
      font-size: 22px;
      color: #0F172A;
      letter-spacing: -0.5px;
    }
    .brand-logo-icon {
      width: 34px;
      height: 34px;
      background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
      border-radius: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #fff;
      font-size: 18px;
      font-weight: 900;
    }
    .nav-links {
      display: flex;
      align-items: center;
      list-style: none;
      gap: 28px;
    }
    .nav-links a {
      font-size: 15px;
      font-weight: 500;
      color: var(--text-muted);
    }
    .nav-links a:hover, .nav-links a.active {
      color: var(--primary);
    }
    .nav-cta-btn {
      background: var(--primary);
      color: #0B0F15;
      font-weight: 600;
      padding: 10px 22px;
      border-radius: var(--radius-sm);
      display: inline-flex;
      align-items: center;
      gap: 8px;
    }
    .nav-cta-btn:hover {
      background: var(--primary-hover);
      box-shadow: 0 4px 12px rgba(0, 208, 132, 0.35);
    }

    .mobile-menu-btn {
      display: none;
      background: none;
      border: 1px solid var(--border-color);
      padding: 6px 10px;
      border-radius: 6px;
      font-size: 18px;
      cursor: pointer;
    }

    /* 板块通用 */
    section {
      padding: 85px 0;
      position: relative;
    }
    .section-light {
      background-color: var(--light-surface);
    }
    .section-white {
      background-color: var(--white);
    }
    .section-dark {
      background-color: var(--dark-surface);
      color: #F8FAFC;
    }
    .section-head {
      margin-bottom: 50px;
      text-align: center;
    }
    .section-tag {
      display: inline-block;
      font-size: 13px;
      font-weight: 600;
      text-transform: uppercase;
      padding: 4px 12px;
      border-radius: 20px;
      background: rgba(0, 208, 132, 0.12);
      color: #008a54;
      margin-bottom: 12px;
    }
    .section-dark .section-tag {
      background: rgba(0, 208, 132, 0.2);
      color: var(--primary);
    }
    .section-title {
      font-size: 32px;
      font-weight: 700;
      line-height: 1.3;
      margin-bottom: 16px;
      color: inherit;
    }
    .section-desc {
      font-size: 16px;
      color: var(--text-muted);
      max-width: 780px;
      margin: 0 auto;
      line-height: 1.8;
    }
    .section-dark .section-desc {
      color: var(--text-light);
    }

    /* 1. Hero 优惠券墙入口版式 */
    .hero-coupon-section {
      background: linear-gradient(rgba(15, 20, 28, 0.88), rgba(15, 20, 28, 0.94)), url('/assets/images/3f2512a4721cb2b8.jpg') center/cover no-repeat;
      color: #fff;
      padding: 90px 0 110px;
    }
    .hero-grid {
      display: grid;
      grid-template-columns: 1.15fr 0.85fr;
      gap: 40px;
      align-items: center;
    }
    .hero-h1 {
      font-size: 44px;
      font-weight: 800;
      line-height: 1.25;
      margin-bottom: 22px;
      letter-spacing: -0.5px;
    }
    .hero-h1 span {
      color: var(--primary);
    }
    .hero-lead {
      font-size: 16px;
      color: #CBD5E1;
      line-height: 1.8;
      margin-bottom: 30px;
    }
    .hero-coupon-card {
      background: #1A2230;
      border: 2px dashed #00D084;
      border-radius: var(--radius-lg);
      padding: 34px;
      box-shadow: 0 16px 40px rgba(0,0,0,0.5);
      position: relative;
    }
    .coupon-badge {
      position: absolute;
      top: -14px;
      right: 24px;
      background: #0066FF;
      color: #fff;
      font-size: 12px;
      padding: 4px 14px;
      border-radius: 20px;
      font-weight: 700;
      letter-spacing: 0.5px;
    }
    .coupon-val {
      font-size: 38px;
      font-weight: 800;
      color: var(--primary);
      margin-bottom: 8px;
      display: flex;
      align-items: baseline;
      gap: 6px;
    }
    .coupon-val span {
      font-size: 16px;
      color: #94A3B8;
      font-weight: normal;
    }
    .coupon-title {
      font-size: 20px;
      font-weight: 700;
      margin-bottom: 12px;
      color: #fff;
    }
    .coupon-rules {
      font-size: 14px;
      color: #94A3B8;
      line-height: 1.6;
      margin-bottom: 24px;
    }
    .btn-claim {
      display: block;
      width: 100%;
      text-align: center;
      background: var(--primary);
      color: #0B0F15;
      font-size: 16px;
      font-weight: 700;
      padding: 14px 20px;
      border-radius: var(--radius-sm);
      border: none;
      cursor: pointer;
      box-shadow: 0 6px 20px rgba(0, 208, 132, 0.4);
    }
    .btn-claim:hover {
      background: var(--primary-hover);
    }
    .coupon-sub-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
      margin-top: 18px;
    }
    .sub-coupon-box {
      background: #111722;
      border: 1px solid var(--border-dark);
      border-radius: var(--radius-sm);
      padding: 12px;
      font-size: 12px;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    .sub-coupon-box strong {
      color: #38BDF8;
      display: block;
      font-size: 14px;
    }

    /* 2. 卖点三连 */
    .feature-three-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 28px;
    }
    .feature-point-card {
      background: #FFFFFF;
      padding: 34px 28px;
      border-radius: var(--radius-md);
      border: 1px solid var(--border-color);
      box-shadow: var(--shadow-sm);
      position: relative;
      transition: all 0.3s;
    }
    .feature-point-card:hover {
      transform: translateY(-4px);
      box-shadow: var(--shadow-lg);
      border-color: rgba(0, 208, 132, 0.5);
    }
    .point-num {
      font-size: 32px;
      font-weight: 900;
      color: #E2E8F0;
      position: absolute;
      top: 20px;
      right: 24px;
      line-height: 1;
    }
    .point-icon {
      width: 48px;
      height: 48px;
      background: rgba(0, 208, 132, 0.1);
      color: #008a54;
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 22px;
      margin-bottom: 20px;
    }
    .point-title {
      font-size: 19px;
      font-weight: 700;
      margin-bottom: 12px;
      color: var(--text-main);
    }
    .point-desc {
      color: var(--text-muted);
      font-size: 14px;
      line-height: 1.7;
    }

    /* 3. 入口矩阵 */
    .portal-matrix-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 20px;
    }
    .portal-card {
      background: var(--white);
      padding: 24px;
      border-radius: var(--radius-md);
      border: 1px solid var(--border-color);
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      height: 100%;
      transition: all 0.25s;
    }
    .portal-card:hover {
      border-color: var(--accent);
      box-shadow: var(--shadow-md);
    }
    .portal-badge {
      display: inline-block;
      font-size: 11px;
      font-weight: 600;
      padding: 3px 8px;
      border-radius: 4px;
      background: #F1F5F9;
      color: #475569;
      align-self: flex-start;
      margin-bottom: 12px;
    }
    .portal-title {
      font-size: 17px;
      font-weight: 700;
      margin-bottom: 8px;
    }
    .portal-text {
      font-size: 13px;
      color: var(--text-muted);
      line-height: 1.6;
      margin-bottom: 16px;
    }
    .portal-meta {
      font-size: 12px;
      color: var(--accent);
      font-weight: 600;
      display: flex;
      align-items: center;
      gap: 4px;
    }

    /* 4. 最新发布 (发布日志与接口迭代) */
    .release-timeline {
      max-width: 860px;
      margin: 0 auto;
      border-left: 2px solid var(--border-color);
      padding-left: 28px;
      position: relative;
    }
    .release-item {
      position: relative;
      margin-bottom: 36px;
    }
    .release-item:last-child {
      margin-bottom: 0;
    }
    .release-dot {
      width: 14px;
      height: 14px;
      background: var(--primary);
      border-radius: 50%;
      position: absolute;
      left: -36px;
      top: 6px;
      border: 3px solid #fff;
      box-shadow: 0 0 0 2px var(--border-color);
    }
    .release-date {
      font-size: 13px;
      font-weight: 600;
      color: var(--accent);
      margin-bottom: 6px;
    }
    .release-name {
      font-size: 18px;
      font-weight: 700;
      margin-bottom: 8px;
    }
    .release-desc {
      font-size: 14px;
      color: var(--text-muted);
      line-height: 1.7;
    }

    /* 5. 热门专题 (三大核心API协议) */
    .topic-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 26px;
    }
    .topic-card {
      background: var(--white);
      border-radius: var(--radius-lg);
      border: 1px solid var(--border-color);
      overflow: hidden;
      display: flex;
      flex-direction: column;
    }
    .topic-img-wrapper {
      height: 180px;
      overflow: hidden;
      background: #0F141C;
    }
    .topic-img-wrapper img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.4s ease;
    }
    .topic-card:hover .topic-img-wrapper img {
      transform: scale(1.05);
    }
    .topic-body {
      padding: 24px;
      flex: 1;
      display: flex;
      flex-direction: column;
    }
    .topic-title {
      font-size: 18px;
      font-weight: 700;
      margin-bottom: 10px;
    }
    .topic-desc {
      font-size: 14px;
      color: var(--text-muted);
      line-height: 1.7;
      margin-bottom: 16px;
      flex: 1;
    }
    .topic-specs {
      background: #F8FAFC;
      padding: 12px;
      border-radius: var(--radius-sm);
      font-size: 12px;
      color: #64748B;
      font-family: monospace;
      line-height: 1.6;
      margin-bottom: 18px;
    }
    .topic-action {
      display: inline-block;
      text-align: center;
      background: #0F172A;
      color: #fff;
      font-size: 13px;
      font-weight: 600;
      padding: 10px;
      border-radius: var(--radius-sm);
    }
    .topic-action:hover {
      background: var(--accent);
    }

    /* 6. 核心技术底座 (深色高对比) */
    .tech-core-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 40px;
      align-items: center;
    }
    .terminal-box {
      background: #05080C;
      border: 1px solid var(--border-dark);
      border-radius: var(--radius-md);
      overflow: hidden;
      box-shadow: 0 12px 30px rgba(0,0,0,0.4);
    }
    .terminal-header {
      background: #111722;
      padding: 10px 16px;
      display: flex;
      align-items: center;
      gap: 8px;
      border-bottom: 1px solid var(--border-dark);
    }
    .term-dot {
      width: 10px;
      height: 10px;
      border-radius: 50%;
      display: inline-block;
    }
    .term-red { background: #EF4444; }
    .term-yellow { background: #F59E0B; }
    .term-green { background: #10B981; }
    .term-title {
      font-size: 12px;
      color: #94A3B8;
      margin-left: 8px;
      font-family: monospace;
    }
    .terminal-code {
      padding: 20px;
      color: #38BDF8;
      font-family: monospace;
      font-size: 13px;
      line-height: 1.7;
      overflow-x: auto;
    }
    .terminal-code .comment { color: #64748B; }
    .terminal-code .kw { color: #F43F5E; }
    .terminal-code .str { color: #A7F3D0; }
    .terminal-code .val { color: #FBBF24; }

    /* 7. 方法步骤 (叙事接入流程) */
    .steps-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 20px;
      position: relative;
    }
    .step-item {
      background: var(--white);
      border: 1px solid var(--border-color);
      border-radius: var(--radius-md);
      padding: 28px 20px;
      position: relative;
    }
    .step-index {
      font-size: 14px;
      font-weight: 800;
      color: #fff;
      background: var(--accent);
      width: 28px;
      height: 28px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 16px;
    }
    .step-title {
      font-size: 16px;
      font-weight: 700;
      margin-bottom: 8px;
    }
    .step-desc {
      font-size: 13px;
      color: var(--text-muted);
      line-height: 1.6;
    }

    /* 8. 数据指标条 */
    .metrics-bar {
      background: #0B0F15;
      border-top: 1px solid var(--border-dark);
      border-bottom: 1px solid var(--border-dark);
      padding: 60px 0;
      color: #fff;
    }
    .metrics-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 20px;
      text-align: center;
    }
    .metric-item {
      padding: 0 10px;
    }
    .metric-value {
      font-size: 44px;
      font-weight: 800;
      color: var(--primary);
      line-height: 1.1;
      margin-bottom: 8px;
      font-feature-settings: "tnum";
    }
    .metric-label {
      font-size: 15px;
      font-weight: 600;
      color: #F8FAFC;
      margin-bottom: 4px;
    }
    .metric-sub {
      font-size: 12px;
      color: #94A3B8;
    }

    /* 9. 解决方案与客户案例 (行业落地) */
    .solution-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 30px;
    }
    .solution-card {
      background: var(--white);
      border: 1px solid var(--border-color);
      border-radius: var(--radius-md);
      padding: 30px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }
    .solution-head {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 14px;
    }
    .solution-tag {
      font-size: 12px;
      background: #EFF6FF;
      color: var(--accent);
      padding: 3px 8px;
      border-radius: 4px;
      font-weight: 600;
    }
    .solution-title {
      font-size: 18px;
      font-weight: 700;
    }
    .solution-p {
      font-size: 14px;
      color: var(--text-muted);
      line-height: 1.7;
      margin-bottom: 20px;
    }
    .solution-kpi {
      border-top: 1px solid var(--border-color);
      padding-top: 14px;
      display: flex;
      gap: 24px;
      font-size: 12px;
      color: #64748B;
    }
    .solution-kpi span strong {
      color: var(--text-main);
      font-size: 14px;
    }

    /* 10. 口碑与证言 */
    .testimonial-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 24px;
    }
    .testi-card {
      background: var(--white);
      border: 1px solid var(--border-color);
      border-radius: var(--radius-md);
      padding: 26px;
      position: relative;
    }
    .testi-quote {
      font-size: 14px;
      color: var(--text-muted);
      line-height: 1.75;
      margin-bottom: 20px;
    }
    .testi-author {
      display: flex;
      align-items: center;
      gap: 12px;
    }
    .author-avatar {
      width: 42px;
      height: 42px;
      border-radius: 50%;
      background: #E2E8F0;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 700;
      color: #475569;
    }
    .author-name {
      font-size: 14px;
      font-weight: 700;
      color: var(--text-main);
    }
    .author-role {
      font-size: 12px;
      color: #94A3B8;
    }

    /* 11. 资讯列表 (技术动态与前沿) */
    .news-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 24px;
    }
    .news-card {
      background: var(--white);
      border: 1px solid var(--border-color);
      border-radius: var(--radius-md);
      overflow: hidden;
      display: flex;
      flex-direction: column;
    }
    .news-img {
      height: 160px;
      background: #1E293B;
      overflow: hidden;
    }
    .news-img img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    .news-content {
      padding: 20px;
      flex: 1;
      display: flex;
      flex-direction: column;
    }
    .news-meta {
      font-size: 12px;
      color: #94A3B8;
      margin-bottom: 8px;
      display: flex;
      justify-content: space-between;
    }
    .news-title {
      font-size: 16px;
      font-weight: 700;
      line-height: 1.4;
      margin-bottom: 10px;
    }
    .news-summary {
      font-size: 13px;
      color: var(--text-muted);
      line-height: 1.6;
      margin-bottom: 14px;
      flex: 1;
    }
    .news-link {
      font-size: 13px;
      color: var(--accent);
      font-weight: 600;
    }

    /* 12. 联系入口与开发者转化 */
    .contact-cta-section {
      background: linear-gradient(135deg, #0F141C 0%, #16202E 100%);
      color: #fff;
      padding: 80px 0;
      border-top: 1px solid var(--border-dark);
    }
    .contact-box {
      max-width: 820px;
      margin: 0 auto;
      background: rgba(255, 255, 255, 0.03);
      border: 1px solid var(--border-dark);
      border-radius: var(--radius-lg);
      padding: 40px;
    }
    .contact-form {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px;
      margin-top: 24px;
    }
    .form-full {
      grid-column: span 2;
    }
    .form-group label {
      display: block;
      font-size: 13px;
      font-weight: 500;
      color: #CBD5E1;
      margin-bottom: 6px;
    }
    .form-control {
      width: 100%;
      background: #0B0F15;
      border: 1px solid var(--border-dark);
      color: #fff;
      padding: 12px 14px;
      border-radius: var(--radius-sm);
      font-size: 14px;
    }
    .form-control:focus {
      outline: none;
      border-color: var(--primary);
    }
    .btn-submit {
      background: var(--primary);
      color: #0B0F15;
      font-size: 16px;
      font-weight: 700;
      padding: 14px;
      border-radius: var(--radius-sm);
      border: none;
      cursor: pointer;
      width: 100%;
      margin-top: 8px;
    }
    .btn-submit:hover {
      background: var(--primary-hover);
    }

    /* 页脚统一 */
    footer {
      background-color: #080B10;
      color: #94A3B8;
      padding: 70px 0 30px;
      border-top: 1px solid rgba(255,255,255,0.06);
      font-size: 14px;
    }
    .footer-grid {
      display: grid;
      grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
      gap: 36px;
      margin-bottom: 50px;
    }
    .footer-brand-title {
      color: #fff;
      font-size: 20px;
      font-weight: 800;
      margin-bottom: 14px;
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .footer-brand-desc {
      font-size: 13px;
      line-height: 1.7;
      color: #64748B;
      margin-bottom: 20px;
    }
    .footer-col-title {
      color: #E2E8F0;
      font-size: 15px;
      font-weight: 700;
      margin-bottom: 18px;
    }
    .footer-links {
      list-style: none;
    }
    .footer-links li {
      margin-bottom: 10px;
    }
    .footer-links a {
      color: #94A3B8;
    }
    .footer-links a:hover {
      color: var(--primary);
    }
    .footer-contact-info p {
      font-size: 13px;
      line-height: 1.8;
      color: #64748B;
      margin-bottom: 8px;
    }
    .footer-bottom {
      border-top: 1px solid rgba(255,255,255,0.06);
      padding-top: 26px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 12px;
      color: #64748B;
    }

    /* 响应式断点 */
    @media (max-width: 1024px) {
      .hero-grid {
        grid-template-columns: 1fr;
      }
      .portal-matrix-grid {
        grid-template-columns: repeat(2, 1fr);
      }
      .steps-grid {
        grid-template-columns: repeat(2, 1fr);
      }
      .footer-grid {
        grid-template-columns: repeat(2, 1fr);
      }
      .tech-core-grid {
        grid-template-columns: 1fr;
      }
    }

    @media (max-width: 768px) {
      .nav-links, .nav-cta-btn {
        display: none;
      }
      .mobile-menu-btn {
        display: block;
      }
      .feature-three-grid, .topic-grid, .testimonial-grid, .news-grid, .metrics-grid {
        grid-template-columns: 1fr;
      }
      .solution-grid {
        grid-template-columns: 1fr;
      }
      .hero-h1 {
        font-size: 32px;
      }
      .section-title {
        font-size: 26px;
      }
      .contact-form {
        grid-template-columns: 1fr;
      }
      .form-full {
        grid-column: span 1;
      }
      .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
      }
      .status-right {
        display: none;
      }
    }
