@font-face{
  font-family: "BrandFont";
  src: url("fonts/PingFangSC-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face{
  font-family: "BrandFont";
  src: url("fonts/PingFangSC-Semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root{
  /* Brand */
  --brand: #3850A2;
  --brand2:#4b6cff;

  /* Page */
  --pageA: #ffffff;
  --pageB: #f3f6ff;            /* 用于分区的浅底色（更接近品牌蓝） */

  /* Text */
  --text: #0b1220;
  --muted:#475569;

  /* Card */
  --cardL: rgba(255,255,255,.92);
  --cardD: rgba(56,80,162,.92);
  --line: rgba(11,18,32,.08);
  --shadow: 0 10px 26px rgba(11,18,32,.10);

  /* Layout */
  --radius: 18px;
  --pad: 18px;
  --max: 980px;
  --safeL: env(safe-area-inset-left);
  --safeR: env(safe-area-inset-right);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: "BrandFont", -apple-system, BlinkMacSystemFont, "PingFang SC",
               "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  color: var(--text);
  background: var(--pageA);
  font-weight: 400;
}


/* Links */
a{ color: var(--brand); text-decoration:none; }
a:hover{ text-decoration:underline; }

/* ============ HERO ============ */
.hero{
  position: relative;
  min-height: 62vh;
  display:flex;
  align-items:flex-end;
  padding: calc(22px + var(--safeL)) calc(var(--pad) + var(--safeR)) 26px calc(var(--pad) + var(--safeL));
  background: url("img/hero.png") center/cover no-repeat;
}
.hero__overlay{
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.55) 55%, rgba(0,0,0,.78));
}
.hero__content{
  position:relative;
  width: min(var(--max), 100%);
  margin: 0 auto;
}
.pill{
  display:inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 12px;
  letter-spacing: .6px;
  text-transform: uppercase;
}
.hero__title{
  margin: 12px 0 6px;
  font-size: clamp(30px, 6vw, 44px);
  line-height: 1.06;
  letter-spacing: -.5px;
  color:#fff;
}
.hero__subtitle{
  margin:0;
  max-width: 40ch;
  color: rgba(255,255,255,.82);
  font-size: 15px;
  line-height: 1.6;
}

/* ============ SECTION BACKGROUNDS (分隔在 section 层做，不卡片里做) ============ */
.section{
  padding: 18px calc(var(--pad) + var(--safeR)) 18px calc(var(--pad) + var(--safeL));
  background: var(--pageA);
}
.section.section--alt{
  background: var(--pageB);
}
.section.section--number{
  background: var(--pageA);
}
.section.section--contact{
  background: var(--pageB);
  padding-top: 26px;
  padding-bottom: 26px;
}

/* ============ CARD CONTAINER (关键修复：所有内容都包进统一卡片) ============ */
.section__inner{
  width: min(var(--max), 100%);
  margin: 0 auto;

  /* ✅ 默认就是卡片：修复“文字跑到卡片外” */
  background: var(--cardL);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 16px;

  display:grid;
  gap: 14px;
}
.section__inner--dark{
  width: min(var(--max), 100%);
  margin: 0 auto;

  /* ✅ 默认就是卡片：修复“文字跑到卡片外” */
  background: var(--cardD);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 16px;

  display:grid;
  gap: 14px;
}


/* number 区块的卡片更“品牌感”一点 */
.section--number .section__inner{
  background: linear-gradient(135deg, rgba(56,80,162,.08), rgba(255,255,255,.95));
  border: 1px solid rgba(56,80,162,.16);
}

/* contact 区块卡片稍微强调 */
.section--contact .section__inner{
  border: 1px solid rgba(56,80,162,.18);
}

/* Tight variant (如果你 HTML 里有 section__inner--tight) */
.section__inner--tight{ gap: 10px; }

/* Typography */
.text{ padding: 4px 2px; }
.h2{
  margin: 0 0 8px;
  font-size: 32px;
  letter-spacing: -.3px;
  color: var(--brand);
  font-weight: 600;
}
.p{
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}
.p--muted{ opacity:.9; margin-top: 10px; }

/* 多段落时有间距（可选但很实用） */
.p + .p{ margin-top: 10px; }

.bullets{
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
}
.bullets li{ margin: 8px 0; }

/* Media */
.media{
  margin: 0;
  border-radius: calc(var(--radius) - 2px);
  overflow: hidden;
  border: 1px solid rgba(11,18,32,.08);
  background: #fff;
}
.media img{
  width: 100%;
  height: auto;
  display:block;
}

/* Big number */
.big-number{
  display:flex;
  align-items: baseline;
  gap: 10px;
  padding: 6px 0 0;
  justify-content: center;   /* 水平居中（flex） */
  text-align: center;
}
.big-number__value{
  font-size: clamp(80px, 12vw, 120px);
  line-height: .95;
  font-weight: 900;
  letter-spacing: -1.2px;
  background: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
  color: #ff3b30 !important;   /* 红色：也可以换成橙色 */
}
.big-number__unit{
  color: var(--text);
  opacity: .85;
  font-size: 14px;
  text-align: center;
}

/* ============ FORM ============ */
.form{
  margin-top: 10px;
  display:grid;
  gap: 12px;
}
.field label{
  display:block;
  font-size: 13px;
  color: var(--text);
  opacity: .9;
  margin: 0 0 6px;
}
.req{ color: #d12b2b; font-weight: 700; }

.field input, .field textarea{
  width: 100%;
  font-size: 16px; /* 防 iOS 自动放大 */
  color: var(--text);
  background: rgba(56,80,162,.04);
  border: 1px solid rgba(56,80,162,.18);
  border-radius: 14px;
  padding: 12px 12px;
  outline: none;
}
.field textarea{ min-height: 130px; resize: vertical; }

.field input:focus, .field textarea:focus{
  border-color: rgba(56,80,162,.55);
  box-shadow: 0 0 0 3px rgba(56,80,162,.16);
}

.btn{
  width: 100%;
  border: none;
  border-radius: 999px;
  padding: 14px 16px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #fff;
  background: linear-gradient(90deg, var(--brand), var(--brand2));
  box-shadow: 0 14px 22px rgba(56,80,162,.18);
}
.btn:active{ transform: translateY(1px); }
.btn[disabled]{ opacity:.6; cursor:not-allowed; }

.fineprint{
  margin: 2px 2px 0;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(11,18,32,.65);
}

.toast{
  margin-top: 6px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(56,80,162,.18);
  background: rgba(56,80,162,.06);
  color: var(--text);
  font-size: 13px;
}

/* ============ FOOTER ============ */
.footer{
  padding: 22px calc(var(--pad) + var(--safeR)) 26px calc(var(--pad) + var(--safeL));
  background: var(--pageA);
}
.footer__inner{
  width: min(var(--max), 100%);
  margin: 0 auto;
  display:flex;
  justify-content: space-between;
  align-items:center;
  gap: 14px;
  border-top: 1px solid rgba(11,18,32,.08);
  padding-top: 14px;
  font-size: 12px;
  color: rgba(11,18,32,.65);
}
.footer__inner a{ color: var(--brand); }

/* Desktop enhancement */
@media (min-width: 860px){
  .section__inner{
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: 18px;
    padding: 18px;
  }
  .section__inner--dark{
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: 18px;
    padding: 18px;
  }
  .section__inner--tight{
    grid-template-columns: 1.05fr .95fr;
  }
  .h2{ font-size: 26px; }
  .p{ font-size: 16px; }
}
