/* 优斐拉 · ufira.com.cn 公司主页
   颜色取自 logo：青色 #7AD7E6 打底，右上角薰衣草紫的光，左下角一团白蓝色的光晕。 */

:root {
  --canvas: #F6F5F1;
  --surface: #FFFFFF;
  --surface-2: #FBFAF7;
  --sunken: #EFEDE7;
  --ink: #26221E;
  --ink-2: #5E5750;
  --ink-3: #7A736B;
  --line: rgba(38, 34, 30, .09);
  --line-2: rgba(38, 34, 30, .16);

  --cyan: #7AD7E6;
  --cyan-soft: #E3F6F9;
  --cyan-ink: #167A8E;
  --lav: #AE93F5;
  --lav-soft: #EEE8FD;
  --lav-ink: #6A4FD0;
  --ok: #1F8A5B;
  --ok-soft: #E2F3EA;
  --on-light: #26221E;

  --btn: #26221E;
  --btn-ink: #FFFFFF;

  --shadow-1: 0 1px 2px rgba(60, 45, 30, .05), 0 6px 20px rgba(60, 45, 30, .06);
  --shadow-2: 0 2px 8px rgba(60, 45, 30, .06), 0 24px 60px rgba(60, 45, 30, .12);

  --r-xl: 32px;
  --r-lg: 24px;
  --r-md: 16px;
  --r-sm: 12px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "HarmonyOS Sans SC", "MiSans",
    "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);

  --wrap: 1180px;
  --gutter: 24px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #111316;
    --surface: #181B1F;
    --surface-2: #1D2126;
    --sunken: #0C0E10;
    --ink: #F1EFEA;
    --ink-2: #BDB8B0;
    --ink-3: #8F8A83;
    --line: rgba(255, 255, 255, .08);
    --line-2: rgba(255, 255, 255, .15);
    --cyan-soft: rgba(122, 215, 230, .12);
    --cyan-ink: #8FE3F0;
    --lav-soft: rgba(174, 147, 245, .15);
    --lav-ink: #C3B1FF;
    --ok: #6FD3A1;
    --ok-soft: rgba(111, 211, 161, .13);
    --btn: #F1EFEA;
    --btn-ink: #15171A;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .25);
    --shadow-2: 0 2px 8px rgba(0, 0, 0, .3), 0 24px 60px rgba(0, 0, 0, .45);
  }
}

/* ---------- 基础 ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 400 17px/1.75 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--cyan-ink); outline-offset: 3px; border-radius: 6px; }

.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- 文字 ---------- */

.h1 { font-size: clamp(42px, 6.2vw, 76px); line-height: 1.12; font-weight: 600; letter-spacing: -.02em; }
.h2 { font-size: clamp(30px, 3.8vw, 46px); line-height: 1.22; font-weight: 600; letter-spacing: -.015em; }
.h3 { font-size: 22px; line-height: 1.45; font-weight: 600; }
.lead { font-size: clamp(17px, 1.5vw, 19px); line-height: 1.85; color: var(--ink-2); }
.muted { color: var(--ink-2); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; line-height: 1; font-weight: 500; letter-spacing: .06em;
  color: var(--cyan-ink);
}
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--cyan), var(--lav)); }

/* 荧光笔式的高亮：颜色只在字下方，不影响可读性 */
.hl {
  background: linear-gradient(90deg, rgba(122, 215, 230, .6), rgba(174, 147, 245, .55)) no-repeat 0 92% / 100% .3em;
  padding: 0 .04em;
}
@media (prefers-color-scheme: dark) {
  .hl { background-image: linear-gradient(90deg, rgba(122, 215, 230, .42), rgba(174, 147, 245, .42)); }
}

/* ---------- 按钮 ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 50px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent;
  font-size: 16px; font-weight: 500; line-height: 1; white-space: nowrap; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s var(--ease), border-color .25s;
}
.btn .i { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover .i { transform: translateX(2px); }
.btn-primary { background: var(--btn); color: var(--btn-ink); box-shadow: 0 6px 18px rgba(38, 34, 30, .18); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(38, 34, 30, .22); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink-3); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 15px; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; color: var(--cyan-ink); }
.link-arrow .i { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.link-arrow:hover .i { transform: translate(2px, -2px); }

/* ---------- 顶栏 ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--canvas) 78%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(18px);
  backdrop-filter: saturate(1.4) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 32px; height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 600; letter-spacing: .04em; }
.brand img { width: 32px; height: auto; }

.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { padding: 8px 14px; border-radius: 999px; font-size: 15px; color: var(--ink-2); transition: color .2s, background-color .2s; }
.nav a:hover { color: var(--ink); background: var(--sunken); }

/* ---------- 光：logo 的颜色组成的装饰面，不放正文 ---------- */

.light {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: var(--r-xl);
  background:
    radial-gradient(55% 50% at 30% 70%, rgba(241, 250, 255, .95) 0%, rgba(191, 227, 255, .62) 26%, rgba(121, 190, 255, 0) 62%),
    radial-gradient(60% 62% at 96% 0%, rgba(210, 190, 255, .95) 0%, rgba(174, 147, 245, .72) 24%, rgba(143, 120, 232, .26) 52%, rgba(143, 120, 232, 0) 76%),
    linear-gradient(160deg, #92DEEA 0%, #7AD7E6 36%, #84CCEC 66%, #A3A8F1 100%);
}
.light::before {
  /* 缓慢漂移的光晕 */
  content: ""; position: absolute; z-index: -1; inset: -20%;
  background: radial-gradient(28% 26% at 50% 50%, rgba(255, 255, 255, .7), rgba(255, 255, 255, 0) 70%);
  animation: drift 16s ease-in-out infinite alternate;
}
.light::after {
  /* 一道很淡的棱镜光 */
  content: ""; position: absolute; z-index: -1; inset: 0;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, .28) 46%, rgba(220, 210, 255, .18) 50%, transparent 58%);
  mix-blend-mode: screen;
}
@keyframes drift {
  from { transform: translate(-14%, 10%) scale(1); }
  to { transform: translate(12%, -8%) scale(1.15); }
}
@media (prefers-color-scheme: dark) {
  .light { filter: brightness(.86) saturate(1.06); }
}

.glass {
  background: rgba(255, 255, 255, .74);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, .7);
  color: var(--on-light);
  box-shadow: 0 8px 24px rgba(40, 70, 110, .12);
}

/* ---------- 首屏 ---------- */

.hero { padding: 64px 0 112px; }
.hero .wrap { display: grid; grid-template-columns: 1.02fr .98fr; gap: 64px; align-items: center; }

.hero-copy .pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 8px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: 14px; color: var(--ink-2); box-shadow: var(--shadow-1);
}
.hero-copy .pill b {
  font-weight: 500; color: var(--on-light);
  padding: 3px 10px; border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), #B9AAF7);
}
.hero-copy .h1 { margin: 26px 0 24px; }
.hero-copy .lead { max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.assurances { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 36px; font-size: 14px; color: var(--ink-3); }
.assurances li { display: inline-flex; align-items: center; gap: 7px; }
.assurances .i { width: 16px; height: 16px; color: var(--cyan-ink); stroke-width: 2.2; }

.hero-visual { min-height: 580px; padding: 34px; display: flex; flex-direction: column; justify-content: center; gap: 16px; }

.trigger {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px; font-size: 14px; line-height: 1.2;
}
.trigger .i { width: 16px; height: 16px; color: #6A4FD0; }

/* 智能体运行卡片 */
.agent {
  position: relative; background: var(--surface); color: var(--ink);
  border-radius: 24px; padding: 22px 22px 18px;
  box-shadow: var(--shadow-2); border: 1px solid var(--line);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.agent.swap { opacity: 0; transform: translateY(8px) scale(.985); }

.agent-head { display: flex; align-items: center; gap: 12px; }
.agent-avatar {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none;
  background: linear-gradient(150deg, #EAF9FB, #EFEAFE);
}
.agent-avatar img { width: 26px; height: auto; }
.agent-name { font-size: 15px; font-weight: 600; line-height: 1.3; }
.agent-sub { font-size: 13px; color: var(--ink-3); line-height: 1.3; }

.status {
  margin-left: auto; display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 11px; border-radius: 999px; font-size: 13px; line-height: 1.2; font-weight: 500;
  background: var(--cyan-soft); color: var(--cyan-ink);
}
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status[data-state="running"]::before { animation: pulse 1.2s ease-in-out infinite; }
.status[data-state="await"] { background: var(--lav-soft); color: var(--lav-ink); }
.status[data-state="done"] { background: var(--ok-soft); color: var(--ok); }
@keyframes pulse { 50% { opacity: .3; } }

.agent-title { margin: 18px 0 12px; font-size: 19px; font-weight: 600; line-height: 1.4; }

.progress { height: 4px; border-radius: 4px; background: var(--sunken); overflow: hidden; }
.progress span {
  display: block; height: 100%; width: var(--p, 0%); border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--lav));
  transition: width .6s var(--ease);
}

.steps { margin-top: 8px; }
.steps li { display: flex; align-items: center; gap: 12px; padding: 11px 0; font-size: 15px; line-height: 1.5; color: var(--ink-3); transition: color .3s; }
.steps li + li { border-top: 1px solid var(--line); }
.steps li[data-state="running"], .steps li[data-state="done"], .steps li[data-state="await"] { color: var(--ink); }

.step-ico { position: relative; width: 22px; height: 22px; flex: none; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--line-2); }
.step-ico .i { width: 13px; height: 13px; stroke-width: 2.6; opacity: 0; }
li[data-state="running"] .step-ico { border-color: var(--cyan-soft); border-top-color: var(--cyan-ink); animation: spin .8s linear infinite; }
li[data-state="done"] .step-ico { border: 0; background: linear-gradient(140deg, var(--cyan), var(--lav)); color: #FFFFFF; }
li[data-state="done"] .step-ico .i-check { opacity: 1; }
li[data-state="await"] .step-ico { border: 0; background: var(--lav-soft); color: var(--lav-ink); }
li[data-state="await"] .step-ico .i-clock { opacity: 1; }
.step-ico .i-clock { position: absolute; }
@keyframes spin { to { transform: rotate(360deg); } }

.step-action {
  margin-left: auto; padding: 5px 12px; border-radius: 999px; border: 0;
  background: var(--btn); color: var(--btn-ink); font-size: 13px; line-height: 1.3; font-weight: 500; white-space: nowrap;
  opacity: 0; transform: scale(.9); transition: opacity .3s, transform .3s var(--ease);
}
li[data-state="await"] .step-action { opacity: 1; transform: none; }

.tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; padding-top: 14px; border-top: 1px dashed var(--line-2); font-size: 13px; color: var(--ink-3); }
.tools span:not(:first-child) { padding: 3px 10px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); }
.tools span:first-child { margin-right: 4px; }

.result {
  align-self: flex-end; display: flex; align-items: center; gap: 12px;
  min-width: 250px; margin-right: -6px; padding: 12px 18px 12px 12px; border-radius: 18px;
  opacity: 0; transform: translateY(10px); transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.result.show { opacity: 1; transform: none; }
.result-ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: #FFFFFF; background: linear-gradient(140deg, #5FC6D8, #9C86EE); flex: none; }
.result-ico .i { width: 19px; height: 19px; }
.result-name { font-size: 15px; font-weight: 600; line-height: 1.35; }
.result-meta { font-size: 13px; line-height: 1.35; color: #5E5750; }

/* ---------- 区块 ---------- */

.section { padding: 112px 0; }
.section-tight { padding-top: 0; }
.sec-head { max-width: 760px; margin-bottom: 56px; }
.sec-head .h2 { margin-top: 18px; }
.sec-head .lead { margin-top: 18px; }

/* 服务 */
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.svc {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line);
  border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-1);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.svc:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.svc-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--sunken); }
.svc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.svc:hover .svc-media img { transform: scale(1.035); }
.svc-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 30, 45, 0) 55%, rgba(20, 30, 45, .22)); }
.svc-chip {
  position: absolute; z-index: 1; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px 8px 10px; border-radius: 999px; font-size: 14px; line-height: 1.2; font-weight: 500;
}
.svc-chip .i { width: 16px; height: 16px; color: #6A4FD0; }
.svc-body { padding: 28px 30px 30px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.svc-title { display: flex; align-items: center; gap: 12px; }
.badge-ico {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none;
  background: linear-gradient(150deg, var(--cyan-soft), var(--lav-soft)); color: var(--cyan-ink);
}
.badge-ico .i { width: 21px; height: 21px; }
.svc-body p { color: var(--ink-2); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 8px; }
.tags li { padding: 5px 12px; border-radius: 999px; font-size: 14px; line-height: 1.4; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); }

/* 合作方式 */
.process { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; counter-reset: step; }
.process li { position: relative; padding-top: 30px; }
.process li::before {
  content: ""; position: absolute; top: 9px; left: 0; right: -22px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--lav)); opacity: .45;
}
.process li:last-child::before { right: 0; }
.process li::after {
  content: ""; position: absolute; top: 2px; left: 0; width: 16px; height: 16px; border-radius: 50%;
  background: var(--canvas); border: 3px solid var(--cyan);
}
.process li:nth-child(2)::after { border-color: #8EC3F0; }
.process li:nth-child(3)::after { border-color: #9FAFF2; }
.process li:nth-child(4)::after { border-color: var(--lav); }
.step-no { font-family: var(--mono); font-size: 14px; color: var(--ink-3); letter-spacing: .04em; }
.process h3 { margin: 6px 0 10px; }
.process p { color: var(--ink-2); font-size: 16px; }

.principles {
  margin-top: 72px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--surface); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow-1);
}
.principles li { padding: 30px 28px; }
.principles li + li { border-left: 1px solid var(--line); }
.principles h3 { font-size: 18px; margin: 16px 0 8px; }
.principles p { font-size: 15px; line-height: 1.75; color: var(--ink-2); }

/* 产品与案例 */
.work { display: grid; grid-template-columns: 1.45fr 1fr; gap: 22px; }
.work-side { display: grid; gap: 22px; grid-template-rows: auto 1fr; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow-1); overflow: hidden; }

.case-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--sunken); }
.case-media > img { width: 100%; height: 100%; object-fit: cover; }
.case-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15, 30, 50, 0) 40%, rgba(15, 30, 50, .28)); }

.score-panel {
  position: absolute; z-index: 1; right: 22px; top: 22px; bottom: 22px; width: min(46%, 290px);
  display: flex; flex-direction: column; padding: 16px 16px 14px; border-radius: 20px; font-size: 13px; line-height: 1.4;
  background: rgba(255, 255, 255, .9);
}
.score-head { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; }
.score-head img { width: 22px; height: 22px; border-radius: 6px; }
.score-head span { margin-left: auto; font-weight: 400; font-size: 12px; color: #7A736B; }
.score-rows { margin: 10px 0 0; flex: 1; display: flex; flex-direction: column; justify-content: space-evenly; }
.score-rows li { display: grid; grid-template-columns: 66px minmax(0, 1fr) auto; gap: 8px; align-items: baseline; padding: 4px 0; }
.score-rows li + li { border-top: 1px solid rgba(38, 34, 30, .07); }
.score-rows .q { color: #7A736B; font-size: 12px; white-space: nowrap; }
.score-rows .a { font-family: "Kaiti SC", STKaiti, KaiTi, "楷体", serif; font-size: 15px; color: #2B4C9B; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.score-rows .s { font-family: var(--mono); font-size: 12px; font-weight: 600; color: #1F8A5B; }
.score-rows .s.x { color: #C2453F; }
.score-total { display: flex; align-items: baseline; justify-content: space-between; margin-top: 8px; padding-top: 10px; border-top: 1px solid rgba(38, 34, 30, .12); font-weight: 600; }
.score-total b { font-family: var(--mono); font-size: 20px; }
.score-total b small { font-size: 13px; color: #7A736B; font-weight: 400; }

.case-body { padding: 30px 32px 34px; }
.case-tag { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-3); }
.case-tag img { width: 28px; height: 28px; border-radius: 8px; }
.case-body .h3 { margin: 14px 0 10px; font-size: 24px; }
.case-body > p { color: var(--ink-2); }
.checks { display: grid; gap: 10px; margin-top: 20px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; line-height: 1.65; }
.checks .i { width: 18px; height: 18px; margin-top: 4px; color: var(--cyan-ink); stroke-width: 2.4; }
.case-more { margin-top: 22px; }

.mini { padding: 30px 30px 32px; display: flex; flex-direction: column; gap: 12px; }
.mini .h3 { font-size: 21px; }
.mini p { color: var(--ink-2); font-size: 16px; }
.mini .link-arrow { margin-top: auto; padding-top: 6px; }
.mini-logo { width: 44px; height: 44px; border-radius: 12px; box-shadow: var(--shadow-1); }
.mini-yours {
  background: transparent; box-shadow: none; border: 1.5px dashed var(--line-2);
  transition: border-color .3s, background-color .3s;
}
.mini-yours:hover { border-color: var(--cyan-ink); background: var(--surface); }
.mini-yours .plus { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--sunken); color: var(--ink-2); }

/* 关于 */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-copy .h2 { margin: 18px 0 22px; }
.about-copy p + p { margin-top: 16px; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin-top: 36px; border-top: 1px solid var(--line); }
.facts div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: 13px; color: var(--ink-3); }
.facts dd { margin: 4px 0 0; font-size: 16px; font-weight: 500; }

.about-visual { position: relative; aspect-ratio: 5 / 4.4; border-radius: var(--r-xl); overflow: hidden; background: #6E7CF0; }
.about-visual > img { width: 100%; height: 100%; object-fit: cover; }
.about-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(200deg, rgba(122, 215, 230, .35), rgba(174, 147, 245, .15) 60%, rgba(20, 20, 60, .25)); mix-blend-mode: soft-light; }
.about-mark {
  position: absolute; z-index: 1; left: 26px; bottom: 26px; display: flex; align-items: center; gap: 14px;
  padding: 14px 20px 14px 14px; border-radius: 20px;
}
.about-mark img { width: 52px; height: 52px; border-radius: 14px; }
.about-mark b { display: block; font-size: 17px; font-weight: 600; line-height: 1.3; }
.about-mark span { font-size: 13px; color: #5E5750; }

/* 联系 */
.contact { padding: 72px 64px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.contact-copy { color: var(--on-light); }
.contact-copy .h2 { margin-bottom: 18px; }
.contact-copy p { color: #3D4650; font-size: 18px; line-height: 1.85; max-width: 26em; }
.contact-card { border-radius: 24px; padding: 10px 26px; background: rgba(255, 255, 255, .84); }
.contact-card li { display: flex; align-items: center; gap: 14px; padding: 18px 0; }
.contact-card li + li { border-top: 1px solid rgba(38, 34, 30, .09); }
.contact-card .badge-ico { background: linear-gradient(150deg, #E3F6F9, #EEE8FD); color: #167A8E; }
.contact-card .k { display: block; font-size: 13px; color: #7A736B; line-height: 1.4; }
.contact-card .v { display: block; margin-top: 2px; font-size: 17px; font-weight: 500; line-height: 1.4; color: var(--on-light); }
.contact-card a.v { color: #167A8E; }
.contact-card a.v:hover { text-decoration: underline; text-underline-offset: 3px; }
.contact-card .qr-row > div { flex: 1; min-width: 0; }
.contact-card .qr-link { flex: none; display: block; border-radius: 12px; }
.contact-card .qr {
  width: 112px; height: 112px; flex: none; padding: 6px; border-radius: 12px;
  background: #FFFFFF; border: 1px solid rgba(38, 34, 30, .1);
}
.contact-copy .btn { margin-top: 28px; }
.contact-copy .btn-primary { background: #26221E; color: #FFFFFF; }
.foot-brand .foot-mail { color: var(--cyan-ink); }
.foot-brand .foot-mail:hover { text-decoration: underline; text-underline-offset: 3px; }

/* 页脚 */
.site-footer { padding: 72px 0 40px; border-top: 1px solid var(--line); }
.foot-top { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 40px; }
.foot-brand p { margin-top: 14px; color: var(--ink-2); font-size: 15px; }
.foot-col h4 { font-size: 14px; font-weight: 500; color: var(--ink-3); margin-bottom: 14px; }
.foot-col li + li { margin-top: 10px; }
.foot-col a { font-size: 15px; color: var(--ink-2); transition: color .2s; }
.foot-col a:hover { color: var(--ink); }
.foot-legal { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); }
.foot-legal a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.foot-legal .credit { margin-left: auto; }

/* ---------- 进场动画 ----------
   首屏在第一次绘制时就淡入，不等脚本；脚本把首屏以下的部分先藏起来（.later），滚到时再淡入（.in）。 */

@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
[data-reveal] { animation: rise .6s var(--ease) both; }
[data-reveal="2"] { animation-delay: .08s; }
[data-reveal="3"] { animation-delay: .16s; }
[data-reveal="4"] { animation-delay: .24s; }
[data-reveal].later { animation: none; opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-reveal="2"].later { transition-delay: .08s; }
[data-reveal="3"].later { transition-delay: .16s; }
[data-reveal="4"].later { transition-delay: .24s; }
[data-reveal].later.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  [data-reveal], [data-reveal].later { opacity: 1; transform: none; }
}

/* ---------- 窄屏 ---------- */

@media (max-width: 1080px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 48px; }
  .hero-copy { max-width: 720px; }
  .hero-visual { min-height: 0; }
  .work { grid-template-columns: 1fr; }
  .work-side { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .principles li:nth-child(3) { border-left: 0; }
  .principles li:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .about { grid-template-columns: 1fr; gap: 40px; }
  .contact { grid-template-columns: 1fr; padding: 56px 40px; }
  .foot-top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .process { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .process li:nth-child(2)::before { right: 0; }
}

@media (max-width: 760px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .nav { display: none; }
  .site-header .wrap { justify-content: space-between; height: 60px; }
  .hero { padding: 40px 0 80px; }
  .hero-copy .h1 { margin: 22px 0 18px; }
  .hero-actions { margin-top: 28px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .hero-visual { padding: 18px; border-radius: 26px; }
  .agent { padding: 18px 16px 14px; border-radius: 20px; }
  .agent-title { font-size: 17px; }
  .steps li { font-size: 14px; gap: 10px; }
  .result { min-width: 0; margin-right: 0; }
  .section { padding: 80px 0; }
  .sec-head { margin-bottom: 40px; }
  .services { grid-template-columns: 1fr; gap: 18px; }
  .svc-body { padding: 24px 22px 26px; }
  .process { grid-template-columns: 1fr; row-gap: 32px; }
  .process li::before { display: none; }
  .principles { grid-template-columns: 1fr; margin-top: 56px; }
  .principles li + li { border-left: 0; border-top: 1px solid var(--line); }
  .principles li { padding: 24px 22px; }
  .work-side { grid-template-columns: 1fr; }
  .case-media { aspect-ratio: auto; display: flex; flex-direction: column; background: transparent; }
  .case-media > img { aspect-ratio: 16 / 10; height: auto; }
  .case-media::after { display: none; }
  .score-panel { position: relative; inset: auto; width: auto; margin: -56px 14px 0; box-shadow: var(--shadow-2); }
  .case-body { padding: 24px 22px 28px; }
  .facts { grid-template-columns: 1fr; }
  .facts div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; }
  .facts dd { margin: 0; text-align: right; }
  .about-mark { left: 14px; bottom: 14px; right: 14px; }
  .contact { padding: 40px 20px 20px; gap: 32px; border-radius: 26px; }
  .contact-card { padding: 4px 18px; }
  .site-footer { padding-top: 56px; }
  .foot-top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
  .foot-legal .credit { margin-left: 0; }
}

/* ---------- 价格页（/pricing/）和优斐拉阅卷产品页（/grader/） ---------- */

.page-hero { padding: 72px 0 56px; }
.page-hero .h1 { margin: 22px 0 20px; font-size: clamp(38px, 5vw, 60px); }
.page-hero .lead { max-width: 38em; }

.nav a[aria-current="page"] { color: var(--ink); background: var(--sunken); }

.prices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: stretch; }
.price {
  display: flex; flex-direction: column; gap: 10px; padding: 30px 30px 28px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow-1);
}
.price.featured {
  border: 1.5px solid transparent;
  background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(140deg, var(--cyan), var(--lav)) border-box;
  box-shadow: var(--shadow-2);
}
.price-amount { font-size: 46px; line-height: 1.1; font-weight: 600; letter-spacing: -.01em; }
.price-amount small { font-size: 22px; font-weight: 500; margin-right: 2px; }
.price-points { font-size: 20px; font-weight: 600; line-height: 1.4; }
.price-sub { font-size: 15px; color: var(--ink-2); }
.bonus {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 999px; font-size: 13px; line-height: 1.4; font-weight: 500;
  background: var(--lav-soft); color: var(--lav-ink);
}
.bonus.none { visibility: hidden; }
.price .btn { margin-top: 14px; align-self: stretch; }
.price-note { margin-top: 24px; font-size: 15px; color: var(--ink-3); }
.price-note a { color: var(--cyan-ink); }
.price-note a:hover { text-decoration: underline; text-underline-offset: 3px; }

.rates { display: grid; gap: 22px; }
.rate { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 22px; align-items: center; padding: 26px 30px; }
.rate-logo { width: 52px; height: 52px; border-radius: 14px; box-shadow: var(--shadow-1); }
.rate h3 { font-size: 20px; }
.rate p { color: var(--ink-2); font-size: 16px; }
.rate-eq { font-size: 22px; font-weight: 600; white-space: nowrap; }
.rate-links { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: 8px 24px; }

.rules { max-width: 46em; }
.rules a { color: var(--cyan-ink); }
.rules a:hover { text-decoration: underline; text-underline-offset: 3px; }

.product-hero { padding: 64px 0 96px; }
.product-hero .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.product-visual { position: relative; aspect-ratio: 5 / 4.6; border-radius: var(--r-xl); overflow: hidden; background: var(--sunken); box-shadow: var(--shadow-2); }
.product-visual > img { width: 100%; height: 100%; object-fit: cover; }
.product-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15, 30, 50, 0) 30%, rgba(15, 30, 50, .3)); }
.product-visual .score-panel { top: auto; bottom: 24px; right: 24px; width: min(62%, 320px); }
.score-rows.parts { flex: none; justify-content: flex-start; }
.score-rows.parts li { grid-template-columns: 52px minmax(0, 1fr) auto; }
.case-media .score-panel:has(.score-rows.parts) { top: auto; }
.score-rows.parts .a { white-space: normal; overflow: visible; }

@media (max-width: 1080px) {
  .product-hero .wrap { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 860px) {
  .prices { grid-template-columns: 1fr; }
  .bonus.none { display: none; }
}

@media (max-width: 760px) {
  .page-hero { padding: 40px 0 32px; }
  .product-hero { padding: 40px 0 72px; }
  .rate { grid-template-columns: auto minmax(0, 1fr); padding: 22px 20px; gap: 14px 16px; }
  .rate-eq { grid-column: 1 / -1; }
  .product-visual { aspect-ratio: auto; display: flex; flex-direction: column; background: transparent; box-shadow: none; overflow: visible; }
  .product-visual > img { aspect-ratio: 16 / 11; height: auto; border-radius: 24px; }
  .product-visual::after { display: none; }
  .product-visual .score-panel { position: relative; inset: auto; width: auto; margin: -64px 14px 0; box-shadow: var(--shadow-2); }
}

/* 新手指南 and 常见问题 (grader/start, grader/help) */
/* 常见问题：左边标题和联系客服，右边按组排的问题；每组一张卡片，行间细线，展开的问题变成青色，箭头转过来。 */
.faq-layout { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); grid-template-rows: auto 1fr; grid-template-areas: "intro groups" "contact groups"; column-gap: 64px; row-gap: 28px; align-items: start; }
.faq-intro { grid-area: intro; }
.faq-groups { grid-area: groups; }
.faq-contact { grid-area: contact; }
.faq-intro .h2 { margin-top: 18px; }
.faq-contact { padding: 20px 22px; border-radius: var(--r-md); background: var(--lav-soft); }
.faq-contact h3 { font-size: 16px; font-weight: 600; color: var(--lav-ink); }
.faq-contact p { margin-top: 6px; color: var(--ink-2); font-size: 15px; line-height: 1.7; }
.faq-groups { display: grid; gap: 36px; }
.faq-label { margin-bottom: 12px; font-size: 13px; font-weight: 600; letter-spacing: .06em; color: var(--ink-3); }
.faq { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-1); overflow: hidden; }
/* An open answer and its question are one tinted block; while it grows or shrinks (D28) nothing spills out of it. */
.faq-item { transition: background .2s var(--ease); }
.faq-item + .faq-item { border-top: 1px solid var(--line); }
.faq-item.faq-moving { overflow: hidden; }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 24px; cursor: pointer; list-style: none; font-size: 17px; font-weight: 600; line-height: 1.5; transition: color .2s var(--ease); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item:not([open]):hover, .faq-item[data-open="false"]:hover { background: var(--surface-2); }
.faq-item summary:focus-visible { outline: 2px solid var(--lav); outline-offset: -2px; }
.faq-chev { flex: none; width: 28px; height: 28px; padding: 6px; border-radius: 50%; background: var(--cyan-soft); color: var(--cyan-ink); stroke-width: 2.2; transition: transform .25s var(--ease), background .2s var(--ease), color .2s var(--ease); }
/* Open (the details' own state, or the script's while it animates): the question in cyan, the chevron turned. */
.faq-item[open]:not([data-open="false"]) { background: var(--surface-2); }
.faq-item[open]:not([data-open="false"]) summary { color: var(--cyan-ink); }
.faq-item[open]:not([data-open="false"]) .faq-chev { transform: rotate(180deg); background: var(--lav-soft); color: var(--lav-ink); }
/* The answer: under the question, aligned with it, paragraphs and steps spaced to read. */
.faq-a { padding: 0 64px 24px 24px; color: var(--ink-2); font-size: 16px; line-height: 1.8; }
.faq-a > * + * { margin-top: 10px; }
.faq-a ol { list-style: decimal; padding-left: 1.4em; }
.faq-a ul { list-style: disc; padding-left: 1.4em; }
.faq-a li + li { margin-top: 6px; }
.faq-a li::marker { color: var(--cyan-ink); font-weight: 600; }
:root { --faq-motion: 320ms; }
.faq-a a, .faq-contact a, .sec-head .lead a, .process a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 860px) {
  .faq-layout { grid-template-columns: 1fr; grid-template-rows: none; grid-template-areas: "intro" "groups" "contact"; }
  .faq-item summary { padding: 16px 18px; font-size: 16px; }
  .faq-a { padding: 0 18px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .faq-item, .faq-item summary, .faq-chev { transition: none; }
}
/* 帮助文章（/help/invite/）：一列，标题、小标题、要点，和常见问题一样宽。 */
.article-page { padding-top: 56px; }
.article { max-width: 46em; }
.article .h2 { margin-top: 18px; }
.article h2 { margin: 36px 0 10px; font-size: 22px; line-height: 1.45; font-weight: 600; }
.article ul { padding-left: 1.2em; list-style: disc; color: var(--ink-2); line-height: 1.8; }
.article li + li { margin-top: 6px; }
.article a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
/* 行内图标：重置把 img、svg 设成了块，这里改回行内，图标才和文字在同一行。 */
.i-inline { display: inline-block; width: 1.15em; height: 1.15em; vertical-align: -0.22em; margin: 0 0.1em; }
img.i-inline { border-radius: 4px; }
.i-fill { fill: currentColor; stroke: none; }
.process .aside { margin-left: 0.5em; white-space: nowrap; }
.video-cover { position: relative; display: block; margin: 0 0 40px; border-radius: 24px; overflow: hidden; background: var(--sunk); }
.video-cover img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.video-play { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; display: grid; place-items: center; border-radius: 50%; background: rgba(17, 19, 22, 0.72); color: #fff; transition: transform .2s ease, background .2s ease; }
.video-play .i { width: 34px; height: 34px; margin-left: 4px; }
.video-cover:hover .video-play { transform: scale(1.06); background: rgba(17, 19, 22, 0.85); }
.video-label { position: absolute; left: 20px; bottom: 18px; padding: 6px 14px; border-radius: 999px; background: rgba(17, 19, 22, 0.6); color: #fff; font-size: 15px; }
