/*
 * 官网统一字体与字号体系
 * 目标：中文优先、正文 15px、标题层级清晰，接近主流云厂商官网阅读体验。
 * 该文件必须在各页面原有样式之后加载。
 */

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-sans: "Manrope", "MiSans", "HarmonyOS Sans SC", "PingFang SC",
    "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --font-display: "MiSans", "Manrope", "HarmonyOS Sans SC", "PingFang SC",
    "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  /* 兼容旧样式文件中使用的变量 */
  --body: var(--font-sans);
  --display: var(--font-display);
  --fs-body: 15px;
  --fs-small: 13px;
  --fs-nav: 14px;
  --fs-h1: clamp(30px, 3vw, 38px);
  --fs-h2: clamp(22px, 2vw, 27px);
  --fs-h3: 17px;
  --lh-body: 1.72;
}

html {
  overflow-x: hidden;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans) !important;
  font-size: var(--fs-body) !important;
  line-height: var(--lh-body) !important;
  letter-spacing: normal !important;
  color: #243447;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button,
input,
textarea,
select {
  font-family: var(--font-sans) !important;
}

/* ---------- 标题层级 ---------- */
h1,
h2,
h3,
h4,
h5,
h6,
.display {
  font-family: var(--font-display) !important;
  font-weight: 600 !important;
  letter-spacing: -0.015em !important;
  color: #10243c !important;
  text-wrap: balance;
}

h1,
.hero-copy h1,
.hero-v7 h1,
.hero h1 {
  font-size: var(--fs-h1) !important;
  line-height: 1.18 !important;
}

h2,
.section-title,
.cta-band h2,
.split h2,
.suite-head h2,
.closing h2 {
  font-size: var(--fs-h2) !important;
  line-height: 1.28 !important;
}

h3,
.feature-card h3,
.product h3,
.use-card b,
.plan-card h3,
.form-card h3 {
  font-size: var(--fs-h3) !important;
  line-height: 1.4 !important;
  font-weight: 600 !important;
}

h4,
.footer-col h4 {
  font-size: 14px !important;
  line-height: 1.45 !important;
  letter-spacing: 0 !important;
  font-weight: 600 !important;
}

/* ---------- 正文与辅助文字 ---------- */
p,
li,
dd,
dt,
td,
th,
label,
.lead,
.sub,
.hero-copy .lead,
.hero-v7 .sub,
.section-head p,
.learn-intro p,
.learn-intro .read-guide {
  font-size: var(--fs-body) !important;
  line-height: var(--lh-body) !important;
}

p,
.lead,
.sub,
.section-head p {
  color: #4b6075;
}

.hero-copy .lead,
.hero-v7 .sub {
  max-width: 640px;
  color: #53687e !important;
}

.kicker {
  font-size: 12px !important;
  line-height: 1.5 !important;
  letter-spacing: 0.08em !important;
  font-weight: 500 !important;
}

.kicker b {
  font-weight: 600 !important;
}

.breadcrumbs {
  font-size: 13px !important;
  line-height: 1.6 !important;
}

.muted,
.meta-text,
.hero-metrics span,
.footer-loc,
.footer-brand p {
  font-size: var(--fs-small) !important;
  line-height: 1.65 !important;
}

/* ---------- 导航 ---------- */
.main-nav > a,
.nav a {
  font-size: var(--fs-nav) !important;
  font-weight: 500 !important;
}

.header-login,
.head-login {
  font-size: 14px !important;
}

.header-search,
.search {
  font-size: 13px !important;
}

.main-nav .tag,
.nav .new,
.nav .soon,
.promo-tag {
  font-size: 10px !important;
  letter-spacing: 0.04em !important;
}

.promo,
.utility {
  font-size: 13px !important;
}

.phone-panel a {
  font-size: 15px !important;
}

/* ---------- 按钮 ---------- */
.btn,
.btn-dark,
.btn--primary,
.btn--dark,
.btn--ghost,
.btn--light,
.hero-actions .btn,
.hero-actions .btn-dark,
.learn-page .page-hero .hero-actions .btn {
  font-size: 14px !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
}

.btn--sm {
  font-size: 13px !important;
}

.btn--lg {
  font-size: 15px !important;
}

.link-arrow,
.text-link {
  font-size: 14px !important;
}

/* ---------- 卡片与内容区 ---------- */
.feature-card p,
.product p,
.use-card span,
.plan-card .desc,
.plan-card li,
.faq-item p,
.learn-page .feature-card p {
  font-size: 14px !important;
  line-height: 1.72 !important;
  color: #52687f !important;
}

.feature-card .num,
.feature-card .meta,
.product .meta,
.product .tag,
.plan-card .kind {
  font-size: 12px !important;
  line-height: 1.5 !important;
  letter-spacing: 0.04em !important;
}

.plan-card h3 {
  font-size: 19px !important;
}

.plan-price b,
.pv-big,
.side-big {
  font-size: 32px !important;
  font-weight: 600 !important;
}

.plan-price small,
.pv-big small {
  font-size: 12px !important;
}

/* ---------- 表单 ---------- */
.field label {
  font-size: 13px !important;
  line-height: 1.5 !important;
  color: #4b6075 !important;
}

.field input,
.field select,
.field textarea {
  font-size: 14px !important;
  line-height: 1.5 !important;
}

.form-note,
.form-success {
  font-size: 13px !important;
  line-height: 1.7 !important;
}

/* ---------- 表格 ---------- */
.spec-table th,
.spec-table td {
  font-size: 14px !important;
  line-height: 1.6 !important;
}

/* ---------- 页脚 ---------- */
.footer-brand p,
.footer-contact,
.footer-phone,
.footer-col a,
.footer-col span,
.footer-bottom,
.foot {
  font-size: 13px !important;
  line-height: 1.75 !important;
}

.footer-phone {
  font-size: 20px !important;
  font-weight: 600 !important;
}

.footer-col h4 {
  font-size: 13px !important;
  margin-bottom: 12px !important;
}

/* ---------- 知识库 ---------- */
.learn-page .page-hero h1 {
  font-size: clamp(28px, 2.6vw, 32px) !important;
  line-height: 1.2 !important;
}

.learn-page .page-hero .lead,
.learn-page .learn-intro p,
.learn-page article.doc-content p,
.learn-page article.doc-content li {
  font-size: 15px !important;
  line-height: 1.85 !important;
}

.learn-page article.doc-content h2 {
  font-size: 21px !important;
  line-height: 1.45 !important;
}

.learn-page article.doc-content h3 {
  font-size: 16px !important;
  line-height: 1.6 !important;
}

.learn-page .feature-card h3 {
  font-size: 16px !important;
}

.learn-page .feature-card p {
  font-size: 14px !important;
}

/* ---------- 数据可视化内的小字 ---------- */
.pv-bar,
.pv-label,
.pv-row,
.pv-foot,
.stage-head,
.side-label,
.side-delta,
.side-rows div,
.panel-foot span,
.float span,
.float small,
.rail {
  font-size: 10px !important;
  line-height: 1.5 !important;
  letter-spacing: 0.06em !important;
}

.pv-row b,
.side-rows b {
  font-size: 11px !important;
}

.float b,
.side-big small {
  font-size: 12px !important;
}

@media (max-width: 900px) {
  :root {
    --fs-body: 14.5px;
    --fs-h1: clamp(26px, 6.6vw, 32px);
    --fs-h2: clamp(20px, 4.6vw, 24px);
    --fs-h3: 16px;
  }

  h1,
  .hero-copy h1,
  .hero-v7 h1,
  .hero h1 {
    letter-spacing: -0.01em !important;
  }

  .main-nav > a,
  .nav a {
    font-size: 14px !important;
  }

  .hero-copy .lead,
  .hero-v7 .sub {
    font-size: 15px !important;
    line-height: 1.75 !important;
  }

  .feature-card h3,
  .product h3 {
    font-size: 18px !important;
  }
}
