/* 圆方智谷 · 企业版首页
   Apple 式：中性黑白灰、大字、大留白、圆角大卡片；品牌橙只用在标志、按钮和链接上。
   深浅色：默认跟系统，页眉按钮可手动切换（html[data-theme]）。 */

:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --tile: #ffffff;
  --ink: #1d1d1f;
  --ink-2: #424245;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --hair: rgba(0, 0, 0, .08);
  --nav-bg: rgba(255, 255, 255, .78);
  --brand: #ff5a1f;          /* 品牌橙：标志 */
  --btn: #e8430d;            /* 按钮底：比品牌橙深一点，白字才看得清 */
  --btn-hover: #f4521a;
  --link: #c2410c;           /* 正文里的橙色链接，浅底上够对比度 */
  --dark-bg: #000000;        /* 案例区：浅色模式下的黑色整屏 */
  --dark-ink: #f5f5f7;
  --dark-muted: #86868b;
  --dark-hair: rgba(255, 255, 255, .16);

  --glass: rgba(255, 255, 255, .56);
  --glass-solid: rgba(255, 255, 255, .82);
  --glass-edge: rgba(255, 255, 255, .7);
  --glass-hi: rgba(255, 255, 255, .9);
  --dot-ink: 29, 29, 31;      /* 粒子里少量的墨点 */

  --max: 1024px;
  --gutter: max(16px, min(5vw, 40px));
  --pill-h: 54px;
  --nav-h: 64px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro SC", "SF Pro Display", "PingFang SC", "Helvetica Neue", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --ease: cubic-bezier(.25, .1, .25, 1);
  color-scheme: light;
}

/* 深色：跟系统（没手动选浅色时） */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000;
    --bg-alt: #101011;
    --tile: #1c1c1e;
    --ink: #f5f5f7;
    --ink-2: #d2d2d7;
    --muted: #98989d;
    --line: #424245;
    --hair: rgba(255, 255, 255, .1);
    --nav-bg: rgba(22, 22, 23, .78);
    --btn: #e8430d;
    --btn-hover: #ff5a1f;
    --link: #ff7a45;
    --dark-bg: #1c1c1e;
    --glass: rgba(40, 40, 42, .5);
    --glass-solid: rgba(28, 28, 30, .82);
    --glass-edge: rgba(255, 255, 255, .12);
    --glass-hi: rgba(255, 255, 255, .1);
    --dot-ink: 245, 245, 247;
    color-scheme: dark;
  }
}
/* 深色：手动选的 */
:root[data-theme="dark"] {
  --bg: #000000;
  --bg-alt: #101011;
  --tile: #1c1c1e;
  --ink: #f5f5f7;
  --ink-2: #d2d2d7;
  --muted: #98989d;
  --line: #424245;
  --hair: rgba(255, 255, 255, .1);
  --nav-bg: rgba(22, 22, 23, .78);
  --btn: #e8430d;
  --btn-hover: #ff5a1f;
  --link: #ff7a45;
  --dark-bg: #1c1c1e;
  --glass: rgba(40, 40, 42, .5);
  --glass-solid: rgba(28, 28, 30, .82);
  --glass-edge: rgba(255, 255, 255, .12);
  --glass-hi: rgba(255, 255, 255, .1);
  --dot-ink: 245, 245, 247;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
a { color: inherit; text-decoration: none; }
svg { display: block; }
h1, h2, h3, h4, p, ol, ul, dl, dd { margin: 0; padding: 0; }
ol, ul { list-style: none; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
br.sm { display: none; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

/* ---------- 页眉：悬浮的液态玻璃条 ----------
   外层只占位、不挡点击；里面一条圆角玻璃。首屏的粒子标志会从玻璃底下流过去。 */
.gn {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  padding: 10px var(--gutter) 0; pointer-events: none;
}
.gn__in {
  position: relative; pointer-events: auto;
  max-width: 1120px; height: var(--pill-h); margin: 0 auto; padding: 0 10px 0 18px;
  display: flex; align-items: center; gap: 20px;
  border-radius: 18px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid var(--glass-edge);
  box-shadow: inset 0 1px 0 var(--glass-hi), 0 8px 28px -14px rgba(0, 0, 0, .22);
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease);
}
.gn.is-scrolled .gn__in { background: var(--glass-solid); box-shadow: inset 0 1px 0 var(--glass-hi), 0 10px 30px -14px rgba(0, 0, 0, .28); }
.gn__brand { display: flex; align-items: center; gap: 8px; flex: none; font-size: 15px; font-weight: 600; letter-spacing: .02em; }
.gn__brand svg { width: 30px; height: auto; color: var(--brand); }
.gn__nav { display: flex; gap: 2px; margin: 0 auto; }
.gn__nav a { padding: 6px 12px; font-size: 13px; color: var(--ink-2); opacity: .88; transition: opacity .2s; }
.gn__nav a:hover { opacity: 1; color: var(--ink); }
.gn__right { display: flex; align-items: center; gap: 8px; flex: none; }

.seg { display: inline-flex; padding: 2px; border-radius: 999px; background: var(--hair); font-size: 12px; line-height: 1; }
.seg a { padding: 6px 11px; border-radius: 999px; color: var(--muted); transition: color .2s, background-color .2s; }
.seg a:hover { color: var(--ink); }
.seg a[aria-current] { background: var(--tile); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }

.icon-btn {
  width: 32px; height: 32px; display: grid; place-items: center; padding: 0;
  border: 0; border-radius: 50%; background: transparent; color: var(--ink-2); cursor: pointer;
  transition: background-color .2s;
}
.icon-btn:hover { background: var(--hair); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.i-moon { display: none !important; }
:root[data-theme="dark"] .i-sun { display: none !important; }
:root[data-theme="dark"] .i-moon { display: block !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .i-sun { display: none !important; }
  :root:not([data-theme="light"]) .i-moon { display: block !important; }
}
.gn__menu { display: none; }

/* ---------- 按钮 / 链接 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 22px; border-radius: 999px;
  background: var(--btn); color: #fff; font-size: 17px; font-weight: 500; white-space: nowrap;
  transition: background-color .2s var(--ease);
}
.btn:hover { background: var(--btn-hover); }
.btn--sm { min-height: 28px; padding: 0 12px; font-size: 12px; }
.more { color: var(--link); font-size: 17px; white-space: nowrap; }
.more::after { content: ""; display: inline-block; width: .42em; height: .42em; margin-left: .3em; border: solid currentColor; border-width: 1.5px 1.5px 0 0; transform: translateY(-.08em) rotate(45deg); }
.more:hover { text-decoration: underline; text-underline-offset: 3px; }
.cta { display: flex; align-items: center; justify-content: center; gap: 28px; flex-wrap: wrap; }

/* ---------- 通用排版 ---------- */
.eyebrow { font-size: 17px; font-weight: 600; color: var(--muted); margin-bottom: 10px; }
h1 { font-size: clamp(44px, 8.4vw, 88px); line-height: 1.08; font-weight: 600; letter-spacing: -.005em; }
h2 { font-size: clamp(32px, 5.2vw, 56px); line-height: 1.12; font-weight: 600; letter-spacing: -.005em; }
h3 { font-size: 24px; line-height: 1.25; font-weight: 600; }
.lead { margin-top: 18px; font-size: clamp(17px, 2vw, 21px); line-height: 1.5; color: var(--muted); max-width: 40em; }
.head--c .lead, .end .lead { margin-left: auto; margin-right: auto; }
/* 全角句号右半格是空白，居中时会显得往左偏；收掉这半格 */
.pp { margin-right: -.5em; }
h1, h2, h3, .hero__sub, .head--c .lead, .end .lead { text-wrap: balance; }
.lead { text-wrap: pretty; }
.sec { padding: clamp(80px, 12vw, 140px) 0; background: var(--bg); }
.sec--alt { background: var(--bg-alt); }
/* 区块标题左对齐，和下面卡片的左边缘对齐；只有案例屏、首屏、收尾居中 */
.head { text-align: left; margin-bottom: clamp(48px, 7vw, 80px); }
.head--c { text-align: center; }

.tile { background: var(--tile); border-radius: 28px; padding: 40px 36px; }
.tile__k { font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }

/* ---------- 首屏 ---------- */
/* 首屏：纯文字，占满一屏，内容居中，最近一场贴在底部 */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center; text-align: center;
  margin-top: calc(-1 * var(--nav-h));
  min-height: max(600px, 100svh); padding: calc(var(--nav-h) + 48px) 0 120px;
}
.hero > .wrap { width: 100%; }
/* 粒子标志：铺在首屏背后（首屏自己是一层，-1 不会掉到页面底下），沿标志慢慢流，鼠标靠近轻轻让开 */
.hero__mark { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
/* 标题背后垫一层和底色一样的柔光，保证字压在粒子上也读得清 */
.hero::after {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 50%; width: min(900px, 100%); height: 64%;
  transform: translate(-50%, -50%); pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--bg) 86%, transparent) 40%, transparent);
}
.hero .eyebrow { color: var(--brand); font-size: clamp(17px, 2vw, 21px); }
.hero__sub { margin: 22px auto 34px; max-width: 34em; font-size: clamp(19px, 2.4vw, 24px); line-height: 1.45; color: var(--muted); }
/* 首屏不等滚动监听，加载后依次淡入 */
.up { animation: up 1s var(--ease) both; }
.up:nth-child(2) { animation-delay: .08s; }
.up:nth-child(3) { animation-delay: .16s; }
.up:nth-child(4) { animation-delay: .24s; }
.up:nth-child(5) { animation-delay: .32s; }
.proof.up { animation: fade 1.2s var(--ease) .6s both; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.proof { position: absolute; left: 50%; bottom: 40px; transform: translateX(-50%); width: max-content; max-width: calc(100% - 2 * var(--gutter)); display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; font-size: 14px; color: var(--muted); }
.proof__go { color: var(--link); }
.proof__go::after { content: ""; display: inline-block; width: .42em; height: .42em; margin-left: .3em; border: solid currentColor; border-width: 1.5px 1.5px 0 0; transform: translateY(-.08em) rotate(45deg); }
.proof:hover .proof__go { text-decoration: underline; text-underline-offset: 3px; }
.proof__n { color: var(--ink); }
.proof:hover .proof__t { color: var(--ink); }

/* ---------- 服务 ---------- */
.phases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.phases h3 { font-size: 28px; line-height: 1.2; margin-bottom: 32px; }
.phases ol { display: grid; gap: 22px; }
.phases li { padding-top: 20px; border-top: 1px solid var(--hair); }
.phases li b { display: block; font-size: 16px; font-weight: 600; line-height: 22px; }
.phases li small { display: block; margin-top: 4px; font-size: 14px; line-height: 1.45; color: var(--muted); }

/* ---------- 案例（整屏黑） ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--hair); }
.stats div { display: flex; flex-direction: column-reverse; gap: 8px; padding: 28px 20px 0 0; }
.stats dd { font-size: clamp(44px, 6vw, 64px); line-height: 1; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stats dt { font-size: 15px; color: var(--muted); }
.case__foot { margin-top: clamp(40px, 6vw, 56px); }
.case__foot p { max-width: 36em; margin: 0 0 18px; font-size: 17px; line-height: 1.6; color: var(--muted); }

/* ---------- 关于 ---------- */
.values { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--hair); }
.values li { padding: 28px 20px 0 0; }
.values b { display: block; font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.values span { display: block; font-size: 14px; line-height: 1.5; color: var(--muted); }

/* ---------- 社区 ---------- */
.libs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.lib { display: flex; flex-direction: column; min-height: 280px; }
.lib h3 { font-size: 28px; line-height: 1.2; }
.lib > p:not(.tile__k) { margin-top: 12px; font-size: 15px; color: var(--muted); }
.lib .more { margin-top: auto; padding-top: 28px; font-size: 15px; }
.lib:hover .more { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 合作伙伴 ---------- */
.partners { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 40px; }
.partners li { display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; min-height: 140px; padding: 24px 28px; border-radius: 20px; background: var(--bg-alt); }
.partners b { font-size: 21px; font-weight: 600; }
.partners small { font-size: 13px; color: var(--muted); }
.partners .open { background: transparent; border: 1px dashed var(--line); }
.partners .open b { color: var(--muted); font-weight: 500; }

/* ---------- 收尾 ---------- */
.end { text-align: center; }
.end .lead { margin-bottom: 36px; }

/* ---------- 页脚 ---------- */
.ft { background: var(--bg-alt); color: var(--muted); font-size: 12px; line-height: 1.4; padding: 0 0 24px; }
.ft .wrap { border-top: 1px solid var(--hair); padding-top: 32px; }
.ft__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-bottom: 28px; }
.ft h4 { font-size: 12px; font-weight: 600; color: var(--ink); margin-bottom: 10px; }
.ft__cols a { display: block; margin-bottom: 8px; color: var(--muted); }
.ft__cols a:hover { color: var(--ink); text-decoration: underline; }
.ft__bot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 16px; border-top: 1px solid var(--hair); }

/* ---------- 进场：轻轻上浮 ---------- */
.js .rv { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rv { opacity: 1; transform: none; transition: none; }
  .up, .proof.up { animation: none; }
}

/* ---------- 窄屏 ---------- */
@media (max-width: 900px) {
  .phases, .libs { grid-template-columns: 1fr; }
  .lib { min-height: 0; }
  .values { grid-template-columns: repeat(2, 1fr); gap: 0 20px; }
  .partners { gap: 12px; }
  .partners li { min-height: 120px; padding: 20px 12px; }
}
@media (max-width: 760px) {
  .gn__in { padding: 0 6px 0 14px; gap: 10px; }
  .gn__nav {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0;
    display: none; flex-direction: column; gap: 0; margin: 0;
    padding: 4px 20px 8px; border-radius: 18px;
    background: var(--glass-solid); border: 1px solid var(--glass-edge);
    -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%);
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .3);
  }
  .gn.open .gn__nav { display: flex; }
  .gn__nav a:last-child { border-bottom: 0; }
  .gn__nav a { padding: 14px 0; font-size: 21px; font-weight: 600; opacity: 1; color: var(--ink); border-bottom: 1px solid var(--hair); }
  .gn__menu { display: grid; }
  .gn__right { margin-left: auto; gap: 4px; }
  .gn__right .btn--sm { display: none; }
  br.lg { display: none; }
  br.sm { display: inline; }
  .tile { padding: 32px 26px; border-radius: 22px; }
  .stats { grid-template-columns: 1fr; }
  .stats div { flex-direction: row-reverse; justify-content: flex-end; align-items: baseline; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--hair); }
  .partners { grid-template-columns: 1fr; }
  .ft__cols { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 380px) {
  .seg a { padding: 6px 8px; }
  .values { grid-template-columns: 1fr; }
}

/* ---------- 表单页：业务咨询 / 战略合作 ---------- */
.fp__hd { padding: clamp(64px, 10vw, 112px) 0 clamp(40px, 6vw, 64px); text-align: center; }
.fp__hd .eyebrow { color: var(--brand); font-size: clamp(17px, 2vw, 21px); }
.fp__hd h1 { font-size: clamp(40px, 7vw, 72px); }
.fp__hd .lead { margin-left: auto; margin-right: auto; max-width: 32em; text-wrap: balance; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 760px; margin: clamp(40px, 6vw, 56px) auto 0; text-align: left; }
.steps li { padding-top: 14px; border-top: 1px solid var(--line); }
.steps span { display: block; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; margin-bottom: 4px; }
.steps p { font-size: 15px; line-height: 1.45; color: var(--ink); }

.fp__body { padding: 0 0 clamp(80px, 12vw, 140px); }
.fcard { max-width: 680px; margin: 0 auto; padding: clamp(28px, 5vw, 48px); border-radius: 28px; background: var(--bg-alt); }
.fp__other { max-width: 680px; margin: 28px auto 0; text-align: center; font-size: 15px; color: var(--muted); }
.fp__other .more { font-size: 15px; margin-left: 4px; }

.f { display: grid; gap: 22px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fld { display: block; min-width: 0; margin: 0; padding: 0; border: 0; }
.fld > span, .fld > legend { display: block; padding: 0; margin-bottom: 8px; font-size: 14px; font-weight: 600; color: var(--ink); }
.fld em { margin-left: 3px; font-style: normal; color: var(--brand); }
.fld > small { display: block; margin: -4px 0 8px; font-size: 13px; color: var(--muted); }
.fld input, .fld textarea {
  display: block; width: 100%; padding: 12px 14px;
  font: 400 17px/1.4 var(--font); color: var(--ink);
  background: var(--tile); border: 1px solid var(--line); border-radius: 12px;
  -webkit-appearance: none; appearance: none;
  transition: border-color .2s, box-shadow .2s;
}
.fld textarea { resize: vertical; min-height: 128px; }
.fld input:focus, .fld textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }
.fld input[aria-invalid="true"], .fld textarea[aria-invalid="true"] { border-color: #e30000; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opts label { position: relative; cursor: pointer; }
.opts input { position: absolute; opacity: 0; pointer-events: none; }
.opts span {
  display: inline-flex; align-items: center; min-height: 38px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--tile);
  font-size: 15px; color: var(--ink-2); transition: border-color .2s, color .2s, background-color .2s;
}
.opts label:hover span { border-color: var(--muted); }
.opts input:checked + span { border-color: var(--brand); color: var(--link); background: color-mix(in srgb, var(--brand) 8%, var(--tile)); }
.opts input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }

.err { min-height: 0; font-size: 14px; color: #e30000; }
.err:empty { display: none; }
.foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 6px; }
.foot small { font-size: 13px; color: var(--muted); }
.foot .btn[disabled] { opacity: .6; cursor: default; }

.done { padding: 24px 0 8px; text-align: center; }
.done svg { width: 56px; height: 56px; margin: 0 auto 20px; fill: none; stroke: var(--brand); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.done h2 { font-size: 32px; margin-bottom: 10px; }
.done p { color: var(--muted); margin-bottom: 20px; }
.done:focus { outline: none; }

@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; gap: 0; max-width: 420px; }
  .steps li { display: flex; gap: 12px; align-items: baseline; padding: 12px 0; }
  .steps span { margin: 0; }
  .row2 { grid-template-columns: 1fr; }
  .fcard { border-radius: 22px; }
  .foot .btn { width: 100%; }
}
.fcard.up { animation-delay: .4s; }

/* ---------- 开发者首页 ---------- */
.phases .tile__p { font-size: 17px; line-height: 1.55; color: var(--muted); margin-top: -12px; }
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: none; }
.flow li { padding-top: 22px; border-top: 1px solid var(--hair); }
.flow span { display: block; margin-bottom: 14px; font-size: 13px; color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.flow b { display: block; font-size: 21px; font-weight: 600; margin-bottom: 8px; }
.flow p { font-size: 15px; line-height: 1.55; color: var(--muted); }
@media (max-width: 900px) { .flow { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; } }
@media (max-width: 480px) { .flow { grid-template-columns: 1fr; gap: 28px; } }
