/* ==========================================================================
   FlamingoTechs - English Typography System (三剑客字体方案)
   
   1. 视觉冲击层 (Visual Impact Layer):
      H1 / H2 / H3 / 价格大数字
      - Apple 端: SF Pro Display
      - Windows / Android 端最佳回退: Inter (需开启 -0.02em ~ -0.03em 负字间距)
      - 特征: 笔画紧凑锋利，配合负字间距，打造硅谷 SaaS 与 Apple 式的雕塑感

   2. 阅读与交互层 (Reading & Interaction Layer):
      Body / H4~H6 / 导航栏 / 按钮 / Bento卡片 / FAQ
      - Apple 端: SF Pro Text
      - Windows / Android 端最佳回退: Inter / Segoe UI
      - 特征: 开口更大、x-height 更高，在 16px~17px 下保证极致的清晰度与转化阅读体验

   3. 科技与数据点缀层 (Tech & Data Accent Layer):
      Eyebrow 眉题 / 技术标签 / 徽章 / 周期与数据指标
      - Apple 端: SF Mono
      - Windows / Android 端最佳回退: JetBrains Mono / Fira Code
      - 特征: 用等宽字体做小号大写胶囊标签 (Pill Badge) 和数据指标，瞬间拉满科技开发公司的专业度
   ========================================================================== */

/* --- 字体变量定义 --- */
:root {
  /* 视觉冲击层字体栈 */
  --ft-en-font-display: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  
  /* 阅读与交互层字体栈 */
  --ft-en-font-text: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  
  /* 科技与数据点缀层字体栈 */
  --ft-en-font-mono: "SF Mono", "JetBrains Mono", "Fira Code", ui-monospace, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

/* ==========================================================================
   ROLE 2: 阅读与交互层 (Reading & Interaction Layer) - 全局基底
   ========================================================================== */
html[lang="en"],
html[lang="en"] body,
html[lang="en"] body *:not([class*="fa-"]):not(.fas):not(.far):not(.fab):not(.fa):not(i),
html[lang="en"] input,
html[lang="en"] button,
html[lang="en"] select,
html[lang="en"] textarea,
html[lang="en"] optgroup {
  font-family: var(--ft-en-font-text) !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  text-rendering: optimizeLegibility;
}

/* 正文段落与说明文字：优化英文字偶间距与易读行高 */
html[lang="en"] body {
  letter-spacing: -0.011em;
  color: #4E4E5E;
}

html[lang="en"] p,
html[lang="en"] .ft-hero-desc,
html[lang="en"] .ft-faq-answer p {
  letter-spacing: -0.011em;
  line-height: 1.62;
}

html[lang="en"] .ft-hero-desc {
  font-size: 1.125rem;
  max-width: 620px;
  color: #4E4E5E;
  margin-bottom: 36px;
}

/* Bento 服务卡片正文与列表：15px~16px 极致舒适转化排版 */
html[lang="en"] .ft-service-card-title {
  font-family: var(--ft-en-font-text) !important;
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.018em !important;
  line-height: 1.3 !important;
  color: #0D0D16 !important;
  margin-bottom: 12px !important;
}

html[lang="en"] .ft-service-card-desc p {
  font-size: 0.94rem !important;
  line-height: 1.55 !important;
  color: #5D5D6E !important;
  margin-bottom: 20px !important;
}

html[lang="en"] .ft-service-card-list li {
  font-size: 0.92rem !important;
  line-height: 1.45 !important;
  letter-spacing: -0.008em;
  color: #3F3F4E !important;
  font-weight: 450;
}

/* 顶部导航栏与下拉项：高可读性西文交互排版 */
html[lang="en"] .ft-nav-link {
  font-family: var(--ft-en-font-text) !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  letter-spacing: -0.01em !important;
}

html[lang="en"] .ft-logo-name {
  font-family: var(--ft-en-font-display) !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
}

html[lang="en"] .ft-lang-switch {
  font-family: var(--ft-en-font-text) !important;
  font-weight: 500 !important;
  letter-spacing: -0.005em !important;
}

/* 交互按钮层：紧凑自信的 CTA 触感 */
html[lang="en"] .ft-standalone-btn,
html[lang="en"] .ft-btn,
html[lang="en"] .ft-html-btn-secondary,
html[lang="en"] .ft-header-cta,
html[lang="en"] .form-submit-btn {
  font-family: var(--ft-en-font-text) !important;
  font-weight: 600 !important;
  letter-spacing: -0.012em !important;
}

/* ==========================================================================
   ROLE 1: 视觉冲击层 (Visual Impact Layer)
   大标题 (H1 / H2 / H3) 与 价格大数字
   ========================================================================== */
html[lang="en"] h1,
html[lang="en"] h2,
html[lang="en"] h3,
html[lang="en"] .ft-hero-title,
html[lang="en"] .ft-hero-subtitle,
html[lang="en"] .ft-section-title-white,
html[lang="en"] .ft-section-title-dark,
html[lang="en"] .ft-section-subtitle-white,
html[lang="en"] .ft-section-subtitle-dark,
html[lang="en"] .ft-faq-question {
  font-family: var(--ft-en-font-display) !important;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

/* 1. Hero 主标题与副标题统一字号与雕塑感 (黑色与彩色字号完全一致) */
html[lang="en"] .ft-hero-title,
html[lang="en"] .ft-hero-subtitle {
  font-size: clamp(2.25rem, 3.8vw, 3.45rem) !important;
  font-weight: 800 !important;
  line-height: 1.12 !important;
  letter-spacing: -0.028em !important;
  text-wrap: balance;
}

html[lang="en"] .ft-hero-title {
  color: #0D0D16 !important;
  margin-bottom: 8px !important;
}

html[lang="en"] .ft-hero-subtitle {
  white-space: normal !important;
  margin-bottom: 28px !important;
}

/* 3. 各板块主大标题 (White & Dark) - 适配单行展示与高级雕塑感 */
html[lang="en"] .ft-section-title-white,
html[lang="en"] .ft-section-title-dark {
  font-size: clamp(2rem, 3.2vw, 3.15rem) !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  letter-spacing: -0.028em !important;
  text-wrap: balance;
  margin-top: 10px !important;
  margin-bottom: 30px !important;
}

/* 4. 各板块副标题 / 导语大字 */
html[lang="en"] .ft-section-subtitle-white,
html[lang="en"] .ft-section-subtitle-dark {
  font-size: clamp(1.4rem, 2vw, 1.85rem) !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  letter-spacing: -0.02em !important;
  text-wrap: balance;
}

/* 5. FAQ 问题标题 */
html[lang="en"] .ft-faq-question {
  font-size: 1.12rem !important;
  font-weight: 600 !important;
  letter-spacing: -0.018em !important;
  line-height: 1.4 !important;
  color: #1A1A24 !important;
}

/* 6. 核心价格数字雕塑感 ($599 等大数字) */
html[lang="en"] .ft-price-wrapper {
  font-family: var(--ft-en-font-display) !important;
}

html[lang="en"] .ft-currency {
  font-family: var(--ft-en-font-display) !important;
  font-size: 26px !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
}

html[lang="en"] .ft-price {
  font-family: var(--ft-en-font-display) !important;
  font-size: 64px !important;
  font-weight: 800 !important;
  line-height: 0.95 !important;
  letter-spacing: -0.038em !important; /* 锋利、极简硅谷风 */
}

/* ==========================================================================
   ROLE 3: 科技与数据点缀层 (Tech & Data Accent Layer)
   等宽字体 (SF Mono / JetBrains Mono) + 小号大写胶囊标签 + 呼吸感字距
   ========================================================================== */
html[lang="en"] .hero-subtitle-long,
html[lang="en"] .ft-badge,
html[lang="en"] .ft-delivery,
html[lang="en"] .ft-tax,
html[lang="en"] code,
html[lang="en"] pre,
html[lang="en"] .ft-code-tag,
html[lang="en"] .ft-mono-badge {
  font-family: var(--ft-en-font-mono) !important;
  font-feature-settings: "liga" 1, "calt" 1, "zero" 1;
}

/* Hero 顶部胶囊眉题 (Pill Badge) */
html[lang="en"] .hero-subtitle-long {
  font-family: var(--ft-en-font-mono) !important;
  font-size: 0.8125rem !important; /* 13px */
  font-weight: 600 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  color: #6C52F5 !important;
  background: rgba(123, 97, 255, 0.08) !important;
  border: 1px solid rgba(123, 97, 255, 0.22) !important;
  padding: 8px 18px !important;
  border-radius: 9999px !important;
  box-shadow: 0 2px 10px rgba(123, 97, 255, 0.06) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-top: 40px !important;
  margin-bottom: 20px !important;
  white-space: nowrap !important;
}

html[lang="en"] .hero-subtitle-long .pill-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #7B61FF;
  box-shadow: 0 0 8px #7B61FF;
  margin: 0 4px;
}

/* 定价卡片顶部科技胶囊徽章 (POPULAR CHOICE / FAST TRACK) */
html[lang="en"] .ft-badge {
  font-family: var(--ft-en-font-mono) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  padding: 6px 18px !important;
  border-radius: 9999px !important;
}

/* 交付时间周期参数标签 (5-DAY FAST TURNAROUND) */
html[lang="en"] .ft-delivery {
  font-family: var(--ft-en-font-mono) !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  color: #718096 !important;
}

/* 价格后缀 (+TAX) */
html[lang="en"] .ft-tax {
  font-family: var(--ft-en-font-mono) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
}

/* 代码与行内参数标签 (如 FAQ 中的 <code>) */
html[lang="en"] code {
  font-family: var(--ft-en-font-mono) !important;
  font-size: 0.88em !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em !important;
  color: #6C52F5 !important;
  background: rgba(123, 97, 255, 0.08) !important;
  padding: 3px 7px !important;
  border-radius: 5px !important;
  border: 1px solid rgba(123, 97, 255, 0.15) !important;
}

/* ==========================================================================
   移动端响应式微调 (Mobile Optimization < 768px)
   ========================================================================== */
@media (max-width: 767px) {
  html[lang="en"] .hero-subtitle-long {
    font-size: 0.72rem !important;
    padding: 6px 14px !important;
    letter-spacing: 0.04em !important;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  html[lang="en"] .hero-subtitle-long .pill-dot {
    display: none !important;
  }

  html[lang="en"] .hero-subtitle-long .en-content {
    display: none !important;
  }

  html[lang="en"] .ft-hero-title,
  html[lang="en"] .ft-hero-subtitle {
    font-size: clamp(1.85rem, 6.8vw, 2.2rem) !important;
    line-height: 1.14 !important;
    letter-spacing: -0.025em !important;
  }

  html[lang="en"] .ft-hero-title {
    margin-bottom: 6px !important;
  }

  html[lang="en"] .ft-hero-subtitle {
    margin-bottom: 20px !important;
  }

  html[lang="en"] .ft-section-title-white,
  html[lang="en"] .ft-section-title-dark {
    font-size: clamp(1.55rem, 6.2vw, 2.15rem) !important;
    line-height: 1.18 !important;
    word-break: normal;
    overflow-wrap: break-word;
    margin-bottom: 24px !important;
  }

  html[lang="en"] .ft-section-subtitle-white,
  html[lang="en"] .ft-section-subtitle-dark {
    font-size: clamp(1.1rem, 4vw, 1.35rem) !important;
    line-height: 1.3 !important;
    margin-top: 50px !important;
  }

  html[lang="en"] .ft-service-card-title {
    font-size: 1.18rem !important;
  }
}

