/* 圆方智谷 · 企业端官网
   颜色、字体、标志用法全部按《无限 LOOP · 橙色版使用规范》：
   暖橙 #FF5A1F 只做图形和大字；橙底上的字一律墨黑；亮橙只在深底上；暖白只做大面积衬底。 */
:root {
  --orange: #ff5a1f;
  --orange-bright: #ff7a3d;
  --ink: #0c0e0c;
  --dark: #14110f;
  --warm: #fff1ea;
  --white: #ffffff;
  --paper: #f4f2ee;
  --line: #e7e4de;
  --muted: #4a4d4a;
  --muted-2: #8a8d89;
  --on-dark-muted: #b9b5ad;
  --a: 8px;
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --font: "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img, svg { display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- 页眉 ---------- */
.hd { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.hd.is-scrolled { border-bottom-color: var(--line); }
.hd__in { height: 64px; display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; text-decoration: none; flex: none; }
.brand svg { height: 22px; width: auto; }
.nav { display: flex; gap: 4px; margin-left: 12px; }
.nav a { padding: 8px 12px; font-size: 15px; font-weight: 500; text-decoration: none; color: var(--muted); border-radius: 2px; transition: color .15s, background .15s; }
.nav a:hover { color: var(--ink); background: var(--paper); }
.hd__right { margin-left: auto; display: flex; align-items: center; gap: 12px; }

/* 企业 | 开发者 切换：两端共用同一个形状 */
.switch { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); font-size: 13px; font-weight: 600; line-height: 1; }
.switch a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; text-decoration: none; color: var(--muted); white-space: nowrap; }
.switch a:hover { color: var(--ink); }
.switch a[aria-current] { background: var(--ink); color: var(--white); }
.switch i { width: 7px; height: 7px; flex: none; border: 1.6px solid currentColor; }
.switch .s-biz i { transform: rotate(45deg); border-radius: 1px; }
.switch .s-dev i { border-radius: 50%; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 22px; border: 1.5px solid var(--ink); border-radius: 2px; font: 600 15px/1 var(--font); text-decoration: none; cursor: pointer; transition: transform .15s, background .15s, color .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.btn--primary:hover { background: #ff6c36; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--white); }
.btn--ink { background: var(--ink); color: var(--white); }
.btn--ink:hover { background: #262826; border-color: #262826; }
.btn--sm { min-height: 36px; padding: 0 16px; font-size: 14px; }
.btn .arr { transition: transform .15s; }
.btn:hover .arr { transform: translateX(3px); }

.menu-btn { display: none; width: 40px; height: 40px; border: 0; background: none; padding: 8px; cursor: pointer; }
.menu-btn span { display: block; height: 2px; background: var(--ink); margin: 6px 0; transition: transform .2s, opacity .2s; }

/* ---------- 首屏 ---------- */
.hero { padding: clamp(48px, 9vh, 96px) 0 clamp(56px, 10vh, 112px); }
.hero__in { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.eyebrow { font: 600 13px/1 var(--font); letter-spacing: .14em; color: var(--muted); display: flex; align-items: center; gap: 10px; margin: 0 0 28px; }
.eyebrow b { font-family: var(--mono); color: var(--ink); font-weight: 600; letter-spacing: .04em; }
.hero h1 { margin: 0; font-size: clamp(48px, 7.4vw, 104px); line-height: 1.06; font-weight: 700; letter-spacing: -.01em; }
.hero h1 .dot { color: var(--orange); }
.hero__sub { margin: 28px 0 0; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.35; font-weight: 600; }
.hero__sub em { font-style: normal; box-shadow: inset 0 -.32em 0 rgba(255, 90, 31, .28); }
.hero__p { margin: 18px 0 0; max-width: 30em; color: var(--muted); font-size: 17px; }
.hero__cta { margin-top: 36px; display: flex; gap: 12px; flex-wrap: wrap; }

.hero { position: relative; }
.hero__in > :first-child { position: relative; z-index: 1; }
.loop-card { background: transparent; aspect-ratio: 1 / .86; display: grid; place-items: center; cursor: crosshair; }

/* 粒子环流：画布铺满整个首屏（不再被卡片边框裁剪），粒子沿标志路径流动、呼吸，可被鼠标拨动 */
.loop-card .flow { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; z-index: 0; }

/* ---------- 通用分节 ---------- */
.sec { padding: clamp(72px, 11vw, 136px) 0; }
/* 每一节当一页：桌面端至少占满一屏，内容垂直居中 */
@media (min-width: 900px) and (min-height: 600px) {
  .hero, .sec { min-height: calc(100vh - 64px); min-height: calc(100svh - 64px); display: flex; flex-direction: column; justify-content: center; }
  .hero > .wrap, .sec > .wrap { width: 100%; }
}
.sec--warm { background: var(--warm); }
.sec--dark { background: var(--dark); color: var(--white); }
.sec--orange { background: var(--orange); color: var(--ink); }
.sec-hd { display: grid; grid-template-columns: 220px 1fr; gap: 32px; margin-bottom: clamp(40px, 6vw, 72px); }
.sec-no { font: 600 13px/1.6 var(--mono); letter-spacing: .08em; color: var(--muted); padding-top: 14px; display: flex; gap: 12px; }
.sec--dark .sec-no { color: var(--on-dark-muted); }
.sec-no::before { content: ""; width: 24px; height: 1.5px; background: currentColor; margin-top: 10px; }
.sec h2 { margin: 0; font-size: clamp(32px, 4.4vw, 56px); line-height: 1.18; font-weight: 700; letter-spacing: -.005em; }
.sec-lead { margin: 16px 0 0; color: var(--muted); font-size: 18px; max-width: 36em; }
.sec--dark .sec-lead { color: var(--on-dark-muted); }

/* 01 我们是谁 */
.who { display: grid; grid-template-columns: 220px 1fr 1fr; gap: 32px; align-items: start; }
.who__text p { margin: 0 0 16px; font-size: 18px; color: var(--muted); }
.who__text p strong { color: var(--ink); font-weight: 600; }
.legend { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); }
.legend li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: center; }
.legend svg { width: 44px; height: 44px; }
.legend b { display: block; font-size: 17px; }
.legend span { color: var(--muted); font-size: 15px; }
.values { margin-top: clamp(48px, 7vw, 88px); display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.values div { padding: 28px 24px 0 0; }
.values div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.values b { display: block; font-size: 19px; margin-bottom: 6px; }
.values span { color: var(--muted); font-size: 15px; }

/* 02 服务包 */
.pack { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1.5px solid var(--ink); }
.pack article { padding: 32px 28px 36px 0; border-bottom: 1px solid var(--line); position: relative; }
.pack article:not(:nth-child(3n + 1)) { padding-left: 28px; border-left: 1px solid var(--line); }
.pack .n { font: 700 44px/1 var(--font); color: var(--orange); letter-spacing: -.02em; }
.pack h3 { margin: 20px 0 6px; font-size: 19px; line-height: 1.4; }
.pack p { margin: 0; color: var(--muted); font-size: 15px; }
.pack-foot { margin-top: 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.pack-foot p { margin: 0; font-size: 18px; font-weight: 600; }

/* 03 方法 */

/* 04 案例（深底：亮橙 + 白字） */
.case { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.case__who { font-size: 18px; font-weight: 600; margin: 0 0 8px; }
.case__who span { color: var(--orange-bright); padding: 0 6px; }
.case h3 { margin: 0; font-size: clamp(34px, 4.6vw, 60px); line-height: 1.12; }
.case__meta { margin: 18px 0 0; color: var(--on-dark-muted); font: 500 14px/1.6 var(--mono); letter-spacing: .02em; }
.case__note { margin: 36px 0 0; padding-top: 24px; border-top: 1px solid #3a3531; color: var(--on-dark-muted); font-size: 16px; max-width: 30em; }
.nums { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid #3a3531; }
.nums div { padding: 26px 0 24px; border-bottom: 1px solid #3a3531; }
.nums div:nth-child(2n) { padding-left: 32px; border-left: 1px solid #3a3531; }
.nums b { display: block; font: 700 clamp(44px, 5.4vw, 72px)/1 var(--font); color: var(--orange-bright); letter-spacing: -.02em; }
.nums span { display: block; margin-top: 10px; font-size: 15px; color: var(--white); }

/* 05 战略伙伴 */
.partners { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.partners > * { background: var(--white); min-height: 148px; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; }
.partners b { font-size: 22px; }
.partners small { color: var(--muted); font-size: 13px; }
.partners .slot { background: var(--paper); color: var(--muted-2); align-items: center; justify-content: center; text-align: center; font-size: 14px; }
.partners .slot svg { width: 36px; height: auto; opacity: .35; margin-bottom: 10px; }
.partner-cta { margin-top: 24px; font-size: 15px; color: var(--muted); }
.partner-cta a { color: var(--ink); font-weight: 600; text-underline-offset: 4px; }

/* 06 社区 */
.dev { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; background: var(--dark); color: var(--white); }
.dev__l { padding: clamp(32px, 5vw, 64px); }
.dev__l h3 { margin: 0; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.2; }
.dev__l p { color: var(--on-dark-muted); margin: 16px 0 32px; font-size: 17px; max-width: 26em; }
.dev__l .btn--primary { background: var(--orange-bright); border-color: var(--orange-bright); }
.dev__l .btn--ghost { color: var(--white); border-color: #57514b; }
.dev__l .btn--ghost:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.dev__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.dev__r { border-left: 1px solid #2c2724; display: grid; }
.dev__r a { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px; padding: 24px clamp(24px, 4vw, 48px); border-bottom: 1px solid #2c2724; text-decoration: none; transition: background .15s; }
.dev__r a:last-child { border-bottom: 0; }
.dev__r a:hover { background: #1d1916; }
.dev__r b { display: block; font-size: 19px; }
.dev__r small { color: var(--on-dark-muted); font-size: 14px; }
.dev__r .cnt { font: 700 40px/1 var(--font); color: var(--orange-bright); min-width: 2ch; text-align: right; font-variant-numeric: tabular-nums; }
.term { font: 500 13px/1 var(--mono); color: var(--on-dark-muted); margin: 0 0 24px; display: flex; gap: 8px; align-items: center; }
.term::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #3ecf6e; box-shadow: 0 0 0 4px rgba(62, 207, 110, .15); }

/* 加入我们（暖橙底，只配墨黑） */
.join h2 { font-size: clamp(40px, 6vw, 80px); }
.join__cols { margin-top: clamp(40px, 6vw, 64px); display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1.5px solid var(--ink); }
.join__cols div { padding: 28px 28px 0 0; }
.join__cols div + div { padding-left: 28px; border-left: 1.5px solid rgba(12, 14, 12, .28); }
.join__cols b { font-size: 21px; display: block; }
.join__cols p { margin: 8px 0 24px; font-size: 16px; }
.join .bg-mark { position: absolute; right: -6%; top: 50%; width: min(60vw, 760px); transform: translateY(-50%); opacity: .22; pointer-events: none; }
.join { position: relative; overflow: hidden; }
.join .wrap { position: relative; }

/* 页脚 */
.ft { background: var(--ink); color: var(--white); padding: 56px 0 32px; }
.ft__top { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; align-items: flex-end; padding-bottom: 40px; border-bottom: 1px solid #2a2c2a; }
.ft__logo svg { height: 52px; width: auto; }
.ft__slogan { margin: 18px 0 0; font-size: 20px; font-weight: 600; }
.ft__links { display: grid; grid-template-columns: repeat(3, auto); gap: 8px 40px; font-size: 15px; }
.ft__links a { color: var(--on-dark-muted); text-decoration: none; }
.ft__links a:hover { color: var(--white); }
.ft__bot { padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: #8a8d89; font-size: 13px; }

/* 进场动画 */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); }
.rv.in { opacity: 1; transform: none; }

/* ---------- 表单页 ---------- */
.form-page { background: var(--paper); min-height: 100vh; }
.fp { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 96px); padding: clamp(40px, 7vw, 96px) 0; align-items: start; }
.fp__aside h1 { margin: 0; font-size: clamp(36px, 4.6vw, 60px); line-height: 1.12; }
.fp__aside p { color: var(--muted); font-size: 17px; margin: 20px 0 0; max-width: 24em; }
.fp__aside ul { list-style: none; padding: 0; margin: 32px 0 0; border-top: 1px solid var(--line); }
.fp__aside li { padding: 16px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 36px 1fr; gap: 12px; font-size: 15px; }
.fp__aside li b { font-family: var(--mono); color: var(--orange); font-size: 14px; }
.fp__aside .other { margin-top: 28px; font-size: 14px; color: var(--muted); }
.fp__aside .other a { color: var(--ink); font-weight: 600; text-underline-offset: 4px; }
.card { background: var(--white); border: 1px solid var(--line); padding: clamp(24px, 4vw, 44px); }
.f { display: grid; gap: 20px; }
.f .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.f label { display: grid; gap: 8px; font-size: 14px; font-weight: 600; }
.f label em { font-style: normal; color: var(--orange); margin-left: 2px; }
.f label small { font-weight: 400; color: var(--muted-2); }
.f input, .f select, .f textarea { width: 100%; font: 400 16px/1.5 var(--font); color: var(--ink); background: var(--white); border: 1.5px solid #d6d2cb; border-radius: 2px; padding: 11px 14px; transition: border-color .15s, box-shadow .15s; }
.f textarea { min-height: 132px; resize: vertical; }
.f input:focus, .f select:focus, .f textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(255, 90, 31, .25); }
.f .opts { display: flex; flex-wrap: wrap; gap: 8px; }
.f .opts label { display: inline-flex; font-weight: 500; }
.f .opts input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.f .opts span { padding: 8px 16px; border: 1.5px solid #d6d2cb; border-radius: 999px; cursor: pointer; font-size: 14px; transition: all .15s; }
.f .opts input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--white); }
.f .opts input:focus-visible + span { box-shadow: 0 0 0 3px rgba(255, 90, 31, .35); }
.f .hp { position: absolute; left: -9999px; }
.f .foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 4px; }
.f .foot small { color: var(--muted-2); font-size: 13px; }
.f .err { color: #c2410c; font-size: 14px; min-height: 1.2em; margin: 0; }
.done { text-align: left; }
.done svg { width: 72px; margin-bottom: 20px; }
.done h2 { margin: 0 0 8px; font-size: 28px; }
.done p { margin: 0 0 24px; color: var(--muted); }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .nav a { padding: 8px 8px; font-size: 14px; }
  .partners { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; background: var(--white); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 16px; margin: 0; }
  .hd.open .nav { display: flex; }
  .nav a { padding: 14px 0; font-size: 17px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a:hover { background: none; }
  .menu-btn { display: block; }
  .hd.open .menu-btn span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .hd.open .menu-btn span:nth-child(2) { opacity: 0; }
  .hd.open .menu-btn span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .hero__in, .case, .dev, .fp { grid-template-columns: 1fr; }
  .sec-hd, .who { grid-template-columns: 1fr; gap: 16px; }
  .sec-no { padding-top: 0; }
  .who .sec-no { display: flex; }
  .pack { grid-template-columns: 1fr 1fr; }
  .pack article:not(:nth-child(3n + 1)) { padding-left: 0; border-left: 0; }
  .pack article:nth-child(2n) { padding-left: 20px; border-left: 1px solid var(--line); }
  .values { grid-template-columns: 1fr 1fr; }
  .values div + div { padding-left: 0; border-left: 0; }
  .values div:nth-child(2n) { padding-left: 20px; border-left: 1px solid var(--line); }
  .join__cols { grid-template-columns: 1fr; }
  .join__cols div + div { padding-left: 0; border-left: 0; border-top: 1.5px solid rgba(12, 14, 12, .28); }
  .dev__r { border-left: 0; border-top: 1px solid #2c2724; }
}
@media (max-width: 600px) {
  .hd__in { gap: 10px; }
  .brand svg { height: 20px; }
  .hd__right .btn { display: none; }
  .switch a { padding: 7px 10px; }
  .hero h1 { font-size: clamp(44px, 13vw, 60px); }
  .pack { grid-template-columns: 1fr; }
  .pack article:nth-child(2n) { padding-left: 0; border-left: 0; }
  .values { grid-template-columns: 1fr; }
  .values div:nth-child(2n) { padding-left: 0; border-left: 0; }
  .nums div:nth-child(2n) { padding-left: 20px; }
  .partners { grid-template-columns: 1fr; }
  .f .row2 { grid-template-columns: 1fr; }
  .ft__links { grid-template-columns: repeat(2, auto); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
}

/* 标题断行更匀 */
h1, h2, h3, .sec-hd h2 { text-wrap: balance; }
p { text-wrap: pretty; }
/* 数字还很小时只显示箭头 */
.cnt.is-arrow { font-size: 22px; opacity: .9; }
.case__link { margin-top: 28px; }
.case__link a { color: #fff; font-weight: 600; border-bottom: 1px solid var(--orange-bright); padding-bottom: 2px; }
.case__link a:hover { color: var(--orange-bright); }
