/* ═══════════════════════════════════════════════════════════
   JORAN 觉然 — 全站共享样式 joran.css
   深海靛黑主题为默认（官网整体为深色）。
   Token 来源：_design/ds/tokens/*.css（Studio 品牌规范）
   动效硬约束：缓动 cubic-bezier(0.25,0.1,0.25,1)；淡入 600–800ms；
   translateY ≤ 10px；呼吸 scale(1.02)/7s，origin 50% 40%；
   光晕 0.03–0.06/5.5s；禁止触须独立运动/粒子/弹跳/3D。
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=Newsreader:opsz,wght@6..72,300..700&family=Noto+Serif+SC:wght@300;400;500;600;700&family=Noto+Sans+SC:wght@400;500;700&display=swap');

/* ── Tokens ── */
:root {
  color-scheme: dark;

  /* 深海靛黑（默认） */
  --bg:        #0B1126;
  --surface:   #10182C;
  --ink:       #E8E4DC;
  --ink-soft:  rgba(232, 228, 220, 0.60);
  --ink-faint: rgba(232, 228, 220, 0.40);
  --line:      rgba(126, 155, 214, 0.16);
  --accent:    #7E9BD6;
  --accent-ink:#0B1126;
  --accent-dim:rgba(126, 155, 214, 0.40);
  --hover:     rgba(126, 155, 214, 0.10);
  --gold:      rgba(240, 214, 156, 0.72);
  --shadow:    0 24px 64px -16px rgba(0, 0, 0, 0.60);

  /* 浅色（备用，页面可局部取用） */
  --light-bg:      #E7E1D5;
  --light-surface: #F7F4ED;
  --light-ink:     #10182C;
  --light-ink-soft:rgba(16, 24, 44, 0.64);
  --light-line:    rgba(16, 24, 44, 0.12);
  --light-accent:  #3E5480;
  --ochre:         #7A3B26;

  /* 字体 */
  --font-serif: "Newsreader", "Noto Serif SC", "Songti SC", "STSong", serif;
  --font-sans:  "Manrope", "Noto Sans SC", "PingFang SC", sans-serif;
  --font-mono:  ui-monospace, "SF Mono", "Menlo", monospace;

  /* 动效 */
  --ease-brand: cubic-bezier(0.25, 0.1, 0.25, 1);
  --dur-fade:   700ms;

  /* 布局 */
  --container:  1100px;
  --pad-x:      clamp(24px, 5vw, 64px);
  --radius-sm:  8px;
  --radius-md:  10px;
  --radius-lg:  14px;
  --radius-pill:999px;
  --header-h:   64px;
}

/* ── Base ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.02em;
  line-break: strict;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-break: strict; }

a { color: var(--accent); text-decoration: none; transition: color 0.18s; }
a:hover { color: var(--ink); }

img, svg, video { max-width: 100%; height: auto; }
svg { height: auto; }

::selection { background: var(--accent); color: var(--accent-ink); }

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

main { display: block; }

/* ── Keyframes（品牌动效，全站唯一定义处） ── */
@keyframes jr-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.02); } }
@keyframes jr-halo    { 0%, 100% { opacity: 0.03; } 50% { opacity: 0.06; } }
@keyframes jr-fade    { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes jr-track   { from { opacity: 0; letter-spacing: 0.74em; } to { opacity: 1; letter-spacing: 0.5em; } }
@keyframes jr-sweep   { 0% { transform: translateX(-110%); } 60%, 100% { transform: translateX(285%); } }
@keyframes jr-float   { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ── 入场动画工具类（页面内容用；Loading 覆盖层不用这套） ── */
.fade-in  { animation: jr-fade var(--dur-fade) var(--ease-brand) both; }
.fade-in.d1 { animation-delay: 150ms; }
.fade-in.d2 { animation-delay: 300ms; }
.fade-in.d3 { animation-delay: 450ms; }
.fade-in.d4 { animation-delay: 600ms; }
.fade-in.d5 { animation-delay: 750ms; }
.track-in { animation: jr-track 800ms var(--ease-brand) 250ms both; }

/* Loading 播放期间，页面入场动画暂停；揭幕（移除 html.jr-boot）后接续播放 */
html.jr-boot .fade-in,
html.jr-boot .track-in,
html.jr-boot .jelly-breathe,
html.jr-boot .jelly-float { animation-play-state: paused; }

/* 滚动淡入 */
.reveal { opacity: 0; transform: translateY(10px); transition: opacity var(--dur-fade) var(--ease-brand), transform var(--dur-fade) var(--ease-brand); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── 水母 Logo ── */
.jelly { display: block; }
.jelly-breathe {
  animation: jr-fade var(--dur-fade) var(--ease-brand) both,
             jr-breathe 7s ease-in-out 700ms infinite;
  transform-origin: 50% 40%;
}
.jelly-float { animation: jr-float 9s ease-in-out 1.2s infinite; }

.halo {
  position: absolute; left: 50%; top: 44%;
  width: 280px; height: 280px;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side,
    rgba(126,155,214,1) 0%, rgba(126,155,214,0.55) 30%,
    rgba(126,155,214,0.22) 52%, rgba(126,155,214,0.07) 72%,
    rgba(126,155,214,0) 90%);
  opacity: 0.04;
  animation: jr-halo 5.5s ease-in-out infinite;
  pointer-events: none;
}

/* ── Loading 开场覆盖层 ──
   默认不显示；joran.js 在首绘前给 <html> 加 .jr-boot 才显示。
   时间线：0ms 水母淡入 → 250ms 字标收束 → 550ms 细线 →
   1600ms 整层淡出（700ms）→ 2400ms 移除。 */
.jr-loading {
  position: fixed; inset: 0; z-index: 200;
  display: none;
  flex-direction: column; align-items: center; justify-content: center;
  background:
    radial-gradient(circle at 78% 14%, rgba(240,214,156,0.16), transparent 55%),
    radial-gradient(circle at 12% 8%, rgba(126,155,214,0.10), transparent 45%),
    linear-gradient(180deg, #1F2A45 0%, #10182C 55%, #0D1224 100%);
  opacity: 1;
  transition: opacity var(--dur-fade) var(--ease-brand);
  pointer-events: none;
}
html.jr-boot .jr-loading { display: flex; }
.jr-loading.is-fading { opacity: 0; }

.jr-loading .jrl-logo {
  display: block;
  animation: jr-fade var(--dur-fade) var(--ease-brand) both,
             jr-breathe 7s ease-in-out 700ms infinite;
  transform-origin: 50% 40%;
}
.jr-loading .jrl-word {
  margin-top: 20px;
  font-family: var(--font-sans);
  font-size: 13px; font-weight: 500;
  color: var(--ink-soft);
  animation: jr-track 800ms var(--ease-brand) 250ms both;
}
.jr-loading .jrl-line {
  margin-top: 24px;
  width: 120px; height: 1px; overflow: hidden;
  background: var(--line);
  animation: jr-fade var(--dur-fade) var(--ease-brand) 550ms both;
}
.jr-loading .jrl-sweep {
  width: 34px; height: 100%;
  background: var(--accent);
  animation: jr-sweep 2.8s var(--ease-brand) 900ms infinite;
}

/* ── 页头 ── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  height: var(--header-h);
  padding: 0 var(--pad-x);
  background: rgba(16, 24, 44, 0.85);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: center; gap: 11px; min-height: 44px; }
.brand .brand-word {
  font-family: var(--font-sans);
  font-size: 12px; font-weight: 600;
  color: var(--ink-soft);
}
.brand .brand-sep { width: 1px; height: 14px; background: var(--line); }
.brand .brand-cn { font-size: 13px; letter-spacing: 0.3em; color: var(--ink-soft); }
.brand:hover .brand-word, .brand:hover .brand-cn { color: var(--ink); }

.site-nav {
  display: none;
  position: absolute; top: var(--header-h); left: 0; right: 0;
  flex-direction: column; align-items: stretch;
  padding: 6px var(--pad-x) 20px;
  background: rgba(16, 24, 44, 0.97);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-sans);
  font-size: 14px; font-weight: 500;
}
.site-nav.open { display: flex; }
/* 移动端菜单默认 display:none，入场动画会挂起到首次展开才播放，
   造成打开后短暂不可见——小屏直接禁用入场动画 */
@media (max-width: 879.98px) {
  .site-nav.fade-in { animation: none; opacity: 1; }
}
.site-nav a:not(.btn) {
  display: flex; align-items: center;
  min-height: 48px;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}
.site-nav a:not(.btn):hover { color: var(--accent); }
.site-nav a.active { color: var(--accent); }
.site-nav .btn { margin-top: 16px; justify-content: center; }

.nav-toggle {
  display: inline-flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 5px;
  width: 44px; height: 44px;
  margin-right: -8px;
  background: none; border: 0; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle .bar {
  width: 20px; height: 1.5px;
  background: var(--ink-soft);
  transition: transform 0.25s var(--ease-brand), opacity 0.25s;
}
.nav-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(3.25px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { transform: translateY(-3.25px) rotate(-45deg); }

@media (min-width: 880px) {
  .nav-toggle { display: none; }
  .site-nav {
    display: flex;
    position: static;
    flex-direction: row; align-items: center;
    gap: 28px;
    padding: 0; background: none; border: 0;
    -webkit-backdrop-filter: none; backdrop-filter: none;
    font-size: 13px;
  }
  .site-nav a:not(.btn) { min-height: 44px; border-bottom: 0; }
  .site-nav .btn { margin-top: 0; }
}

/* ── 按钮 ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px;
  padding: 10px 24px;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 14px; font-weight: 500;
  line-height: 1.4;
  border: 1px solid transparent;
  cursor: pointer;
  transition: filter 0.18s, color 0.18s, border-color 0.18s, transform 0.18s;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
}
.btn-primary:hover { filter: brightness(1.08); color: var(--accent-ink); }
.btn-ghost {
  background: transparent;
  border-color: var(--accent-dim);
  color: var(--ink-soft);
}
.btn-ghost:hover { color: var(--accent); border-color: var(--accent); }
.btn-sm { min-height: 40px; padding: 8px 18px; font-size: 13px; }

/* ── Hero（品牌首屏：文案 + 水母；≥900px 两栏） ── */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 82% 0%, rgba(240,214,156,0.20), transparent 52%),
    radial-gradient(circle at 6% 18%, rgba(126,155,214,0.10), transparent 50%),
    linear-gradient(180deg, #1F2A45 0%, #10182C 55%, #0D1224 100%);
}
.hero-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(64px, 9vw, 140px) var(--pad-x) clamp(56px, 8vw, 120px);
  display: grid; grid-template-columns: 1fr;
  gap: 48px; align-items: center;
}
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.15fr 0.85fr; } }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.hero-kicker { letter-spacing: 0.4em; }
.hero-title {
  font-family: var(--font-sans);
  font-size: clamp(36px, 4.6vw, 58px);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.35;
  color: var(--ink);
}
.hero-lead { max-width: 480px; font-size: 17px; line-height: 1.9; color: var(--ink-soft); }
.hero-tagline {
  font-family: var(--font-sans);
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.24em;
  color: var(--ink-soft);
}
.hero-art {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  min-height: 240px;
}
@media (min-width: 900px) { .hero-art { min-height: 360px; } }
.hero-art .halo { width: min(360px, 80vw); height: min(360px, 80vw); top: 46%; }
.hero-art .jelly { width: clamp(150px, 22vw, 220px); animation-delay: 200ms, 1s; }

/* ── 版面骨架 ── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(72px, 9vw, 110px) var(--pad-x);
}

section[id], div[id] { scroll-margin-top: calc(var(--header-h) + 20px); }

.section { border-top: 1px solid var(--line); }

/* 交替深色底：a = 偏亮起、暖金光；b = 沉向页底、幽蓝光 */
.section-a {
  background:
    radial-gradient(circle at 85% 4%, rgba(240,214,156,0.08), transparent 55%),
    linear-gradient(180deg, #10182C 0%, #0D1428 100%);
}
.section-b {
  background:
    radial-gradient(circle at 10% 0%, rgba(126,155,214,0.08), transparent 50%),
    linear-gradient(180deg, #0D1428 0%, #0B1126 100%);
}

.kicker {
  font-family: var(--font-sans);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.32em;
  color: var(--accent);
  text-transform: uppercase;
}
.section-title {
  margin: 18px 0 0;
  font-family: var(--font-sans);
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.5;
  color: var(--ink);
}
.section-lead {
  margin: 20px 0 0;
  max-width: 560px;
  font-size: 17px; line-height: 1.9;
  color: var(--ink-soft);
}

/* 左右分栏（≥900px 生效） */
.split { display: grid; grid-template-columns: 1fr; gap: clamp(40px, 6vw, 88px); }
@media (min-width: 900px) {
  .split-wide-right { grid-template-columns: 0.85fr 1.15fr; }
  .split-half { grid-template-columns: 1fr 1fr; }
}

/* ── 卡片（服务三卡等） ── */
.grid-3 { margin-top: 48px; display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 640px) and (max-width: 899px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  display: flex; flex-direction: column; gap: 16px;
  padding: 32px 28px;
  background: linear-gradient(180deg, #1C2540 0%, #141C33 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.card-no {
  font-size: 15px; font-weight: 300;
  letter-spacing: 0.32em;
  color: var(--accent);
}
.card-title {
  font-family: var(--font-sans);
  font-size: 22px; font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink);
}
.card-desc { flex: 1; font-size: 15px; line-height: 1.9; color: var(--ink-soft); }
.card-note {
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 13px; line-height: 1.8;
  color: var(--gold);
}

/* ── 胶囊标签（能力覆盖） ── */
.chips { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.chips-label {
  font-family: var(--font-sans);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--ink-soft);
  margin-right: 8px;
}
.chip {
  font-family: var(--font-sans);
  font-size: 12px; font-weight: 500;
  padding: 5px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--ink-soft);
}

/* ── 步骤列表（五步流程） ── */
.steps { display: flex; flex-direction: column; }
.step {
  display: grid; grid-template-columns: 56px 1fr; gap: 20px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step-num { font-size: 26px; font-weight: 300; letter-spacing: 0.08em; line-height: 1.5; color: var(--accent); }
.step-body { display: flex; flex-direction: column; gap: 8px; }
.step-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.step-title {
  font-family: var(--font-sans);
  font-size: 19px; font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink);
}
.step-tag { font-size: 12px; letter-spacing: 0.06em; color: var(--gold); }
.step-desc { font-size: 15px; line-height: 1.9; color: var(--ink-soft); }

/* ── 原则条目（两列） ── */
.principles { margin-top: 48px; display: grid; grid-template-columns: 1fr; gap: 0 clamp(40px, 6vw, 80px); }
@media (min-width: 720px) { .principles { grid-template-columns: repeat(2, 1fr); } }
.principle {
  display: flex; flex-direction: column; gap: 10px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.principle-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.principle-no { font-size: 14px; font-weight: 300; letter-spacing: 0.2em; color: var(--accent); }
.principle-title {
  font-family: var(--font-sans);
  font-size: 19px; font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink);
}
.principle-desc { font-size: 15px; line-height: 1.9; color: var(--ink-soft); }

/* ── 链接行（「从这里继续」等目录式入口） ── */
.link-rows { display: flex; flex-direction: column; justify-content: flex-end; }
.link-rows-label {
  font-family: var(--font-sans);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--ink-soft);
  padding-bottom: 14px;
}
.link-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 20px 4px;
  min-height: 44px;
  border-top: 1px solid var(--line);
  color: var(--ink);
}
.link-row:last-child { border-bottom: 1px solid var(--line); }
.link-row:hover { color: var(--accent); }
.link-row .link-row-title { font-size: 18px; letter-spacing: 0.08em; }
.link-row .link-row-go {
  font-family: var(--font-sans);
  font-size: 13px; font-weight: 500;
  color: var(--accent);
  white-space: nowrap;
}

/* ── CTA 段 ── */
.cta-section {
  position: relative; overflow: hidden;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(circle at 80% 0%, rgba(240,214,156,0.14), transparent 55%),
    radial-gradient(circle at 10% 30%, rgba(126,155,214,0.08), transparent 50%),
    linear-gradient(180deg, #0B1126 0%, #070A18 100%);
}
.cta-watermark {
  position: absolute; left: 50%; bottom: max(-300px, -47vw);
  transform: translateX(-50%);
  width: min(640px, 100vw);
  opacity: 0.10;
  pointer-events: none;
}
.cta-inner {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(80px, 10vw, 130px) var(--pad-x);
  display: flex; flex-direction: column; align-items: center; gap: 28px;
  text-align: center;
}
.cta-title {
  font-family: var(--font-sans);
  font-size: clamp(30px, 3.4vw, 42px);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.6;
  color: var(--ink);
}
.btn-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; }

/* ── 页脚 ── */
.site-footer {
  background: linear-gradient(180deg, #0A0F20 0%, #070A18 100%);
  border-top: 1px solid var(--line);
}
.site-footer .footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 48px var(--pad-x);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 24px;
}
.footer-brand { display: flex; align-items: center; gap: 11px; }
.footer-brand .brand-word {
  font-family: var(--font-sans);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.5em;
  color: var(--ink-soft);
}
.footer-brand .brand-cn { font-size: 12px; letter-spacing: 0.3em; color: var(--ink-soft); }
.footer-links {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px;
  font-family: var(--font-sans);
  font-size: 13px; font-weight: 500;
}
.footer-links a {
  display: inline-flex; align-items: center;
  min-height: 44px;
  color: var(--ink-soft);
}
.footer-links a:hover { color: var(--accent); }
.footer-copy {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
}

/* ── 无障碍：减弱动效 ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .fade-in, .track-in { animation: none; opacity: 1; }
}
