/* 鼎钧官网 · 深色编辑风（对标 Origin Financial，2026-11-02 起）
   层次靠底色深浅区分，卡片不加阴影；标题细衬线、界面无衬线、标签等宽大写，三种字各管一摊。 */

:root {
  --canvas: #0f1011;
  --abyss: #090a0b;
  --graphite: #2e2e2e;
  --steel: #3f4041;
  --fog: #6a6b6b;
  --ash: #9f9fa0;
  --silver: #cacaca;
  --cloud: #f5f5f7;
  --pure: #ffffff;
  --void: #000000;

  --dj-blue: #00448b;      /* 鼎钧蓝 */
  --dj-blue-mid: #3a6fb8;
  --dj-sky: #90b8f0;
  --dj-mist: #d3e2f7;
  --dj-red: #c6142e;       /* 鼎钧红：只做极小点缀 */

  --serif: "Iowan Old Style", "Songti SC", "STSong", "Source Han Serif SC", "Noto Serif SC", "Noto Serif CJK SC", Georgia, serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "SF Mono", "Roboto Mono", Menlo, Consolas, "PingFang SC", monospace;

  --r-btn: 8px;
  --r-card: 16px;
  --r-tile: 30px;
  --max: 1200px;
  --gutter: 24px;
  --ease: 0.2s ease;
  --reveal: 1.6s cubic-bezier(0.455, 0.03, 0.515, 0.955);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ash);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--dj-sky); outline-offset: 3px; border-radius: 4px; }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: var(--r-btn); background: var(--pure); color: var(--void); }
.skip-link:focus { top: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.shell { width: min(var(--max), calc(100% - var(--gutter) * 2)); margin: 0 auto; }
.narrow { max-width: 860px; text-align: center; }

/* ---------- 字体三种声音 ---------- */
.label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 2;
  color: var(--fog);
}
.display {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(40px, 7vw, 88px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--cloud);
}
.display-sm { font-size: clamp(34px, 5.4vw, 68px); }
.display .soft { color: var(--silver); }
.display, .heading, .service-card h3, .article-card h3 { text-wrap: balance; }
p, li, small { text-wrap: pretty; }
.heading {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.2;
  color: var(--cloud);
}
.sub { font-size: 18px; font-weight: 300; line-height: 1.7; color: var(--ash); max-width: 640px; }

/* ---------- 按钮 ---------- */
.button {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px;
  border-radius: var(--r-btn);
  font-size: 16px; font-weight: 500; line-height: 1.3;
  transition: background-color var(--ease), color var(--ease), opacity var(--ease), border-color var(--ease);
}
.button-primary { background: var(--pure); color: var(--void); box-shadow: rgba(0, 0, 0, 0.2) 0 18px 20px 0; }
.button-primary:hover { background: var(--cloud); }
.button-ghost { border: 1px solid rgba(255, 255, 255, 0.6); color: var(--pure); }
.button-ghost:hover { background: rgba(255, 255, 255, 0.1); }
.button-dark { background: var(--void); color: var(--pure); }

/* ---------- 顶部导航：玻璃条 ---------- */
.site-header { position: fixed; inset: 16px 16px auto; z-index: 50; }
.header-inner {
  max-width: 1440px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 10px 10px 10px 12px;
  border-radius: 14px;
  background: rgba(15, 16, 17, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  transition: background-color var(--ease);
}
.site-header.is-scrolled .header-inner { background: rgba(15, 16, 17, 0.72); }
/* 深色底用反白版 logo（IP资料库/视觉资产/logo/png/dingjun-logo-reverse-v1.png），不再垫白底块 */
.brand { display: block; padding: 4px 8px; }
.brand img { width: 112px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a {
  padding: 9px 14px; border-radius: var(--r-btn);
  font-size: 15px; color: var(--silver);
  transition: background-color var(--ease), color var(--ease);
}
.site-nav a:hover, .site-nav a.is-current { color: var(--pure); background: rgba(255, 255, 255, 0.08); }
.site-nav .nav-cta { margin-left: 10px; background: var(--pure); color: var(--void); font-weight: 500; }
.site-nav .nav-cta:hover { background: var(--cloud); color: var(--void); }
.menu-toggle { display: none; }

/* ---------- 首屏 ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; overflow: hidden; isolation: isolate; }
/* 天空图整体下移，云层落在文字下方；上方空出的部分用图顶同色 #041e35 补齐 */
.hero { background: linear-gradient(180deg, #03182b 0%, #041e35 40%, var(--canvas) 100%); }
.hero-sky {
  position: absolute; inset: 30% 0 0; z-index: -1;
  background:
    linear-gradient(180deg, #041e35 0%, rgba(4, 30, 53, 0) 22%, rgba(15, 16, 17, 0) 62%, rgba(15, 16, 17, 0.8) 88%, var(--canvas) 100%),
    url("assets/hero-sky.webp") center top / cover no-repeat;
}
.hero-inner { text-shadow: 0 1px 24px rgba(3, 20, 38, 0.6); }
.hero-inner {
  width: min(960px, calc(100% - var(--gutter) * 2));
  padding: 140px 0 90px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; margin-bottom: 28px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.12em;
  color: var(--cloud);
}
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--dj-red); }
.hero-lede { margin: 28px 0 32px; max-width: 560px; font-size: 18px; font-weight: 300; line-height: 1.7; color: rgba(245, 245, 247, 0.72); }
.hero-lede strong { font-weight: 500; color: var(--pure); }
.ask-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: min(580px, 100%);
  margin-top: 40px; padding: 10px 10px 10px 26px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  color: var(--cloud); font-size: 16px; text-align: left;
  transition: background-color var(--ease);
}
.ask-bar:hover { background: rgba(255, 255, 255, 0.2); }
.ask-text { transition: opacity 0.4s ease; }
.ask-text.is-fading { opacity: 0; }
.ask-go { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, 0.22); font-size: 18px; }
.hero-foot { margin-top: 28px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; color: rgba(245, 245, 247, 0.6); }

/* ---------- 通用分区 ---------- */
.section { padding: 80px 0; }
.section-head { display: grid; justify-items: center; gap: 16px; text-align: center; margin-bottom: 48px; }
.section-head .sub { margin: 0 auto; }

/* 业务目录：统一一种卡片，业务再多也只是多几张卡 */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.service-card {
  display: flex; flex-direction: column; gap: 12px;
  min-height: 260px; padding: 32px;
  border-radius: var(--r-card);
  background: var(--graphite);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: background-color var(--ease), border-color var(--ease);
}
.service-card:hover { background: var(--steel); border-color: rgba(144, 184, 240, 0.4); }
.service-card .label { color: var(--dj-sky); }
.service-card h3 { font-family: var(--serif); font-weight: 300; font-size: 30px; line-height: 1.2; color: var(--cloud); }
.service-card p { font-size: 15px; line-height: 1.7; color: var(--ash); }
.service-card-more { margin-top: auto; padding-top: 12px; font-size: 14px; color: var(--cloud); }
.service-card:hover .service-card-more span { transform: translateX(3px); }
.service-card-more span { display: inline-block; transition: transform var(--ease); }

/* 浅色反白块 */
.inverted { padding: 48px; border-radius: var(--r-tile); background: var(--silver); color: var(--void); }
.inverted .label { color: rgba(0, 0, 0, 0.55); }
.inverted .heading { color: var(--void); }
.inverted-head { display: grid; gap: 12px; margin-bottom: 32px; }
.signal-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 32px; }
.signal-list li { display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: 12px; padding: 20px 0; border-top: 1px solid rgba(0, 0, 0, 0.16); font-size: 18px; }
.signal-list li > span:last-child { color: rgba(0, 0, 0, 0.45); }

/* 工作方式：深灰卡片 */
.card { padding: 32px; border-radius: var(--r-card); background: var(--graphite); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.steps .card { display: grid; gap: 12px; align-content: start; min-height: 220px; }
.steps h3 { margin-top: 40px; font-family: var(--serif); font-weight: 300; font-size: 30px; color: var(--cloud); }

/* 知识库预览 */
.knowledge-preview { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding: 48px; background: var(--abyss); border: 1px solid rgba(255, 255, 255, 0.06); }
.knowledge-preview-copy { display: grid; gap: 18px; justify-items: start; }
.knowledge-feed { display: grid; gap: 10px; }
.feed-empty { display: grid; gap: 6px; padding: 32px; border-radius: var(--r-card); background: var(--graphite); }
.feed-empty p { font-family: var(--serif); font-size: 24px; font-weight: 300; color: var(--cloud); }
.feed-empty small { font-size: 14px; color: var(--ash); }
.feed-empty-index { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; color: var(--fog); }
.article-card { display: flex; flex-direction: column; gap: 8px; padding: 24px 26px; border-radius: var(--r-card); background: var(--graphite); transition: background-color var(--ease); }
.article-card:hover { background: var(--steel); }
.article-card h3 { font-family: var(--serif); font-weight: 300; font-size: 22px; line-height: 1.35; color: var(--cloud); }
.article-card p { font-size: 14px; line-height: 1.7; color: var(--ash); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.article-card-foot { display: flex; justify-content: space-between; margin-top: 6px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--fog); }

/* 关于 */
.about { padding: 120px 0; }
.about .label { margin-bottom: 24px; }
.about-copy { display: grid; gap: 16px; margin: 36px auto 0; max-width: 640px; font-size: 18px; font-weight: 300; line-height: 1.8; }

/* 联系 */
.contact { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: end; }
.contact .heading { margin-top: 12px; font-size: clamp(30px, 3.6vw, 44px); }
.contact-sub { margin-top: 18px; font-size: 17px; line-height: 1.7; color: rgba(0, 0, 0, 0.66); }
.contact-side { display: grid; gap: 14px; }
.contact-phone { display: grid; gap: 6px; justify-items: start; padding: 28px; border-radius: var(--r-card); background: var(--pure); transition: background-color var(--ease); }
.contact-phone:hover { background: var(--cloud); }
.contact-phone strong { font-family: var(--serif); font-size: 36px; font-weight: 300; letter-spacing: 0.02em; color: var(--void); }
.contact-phone .button { margin-top: 10px; }
.contact-address { display: grid; gap: 4px; padding: 0 4px; font-size: 14px; line-height: 1.7; color: rgba(0, 0, 0, 0.66); }

/* 页脚 */
.site-footer { padding: 40px 0 48px; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: var(--fog); }
.footer-inner span { margin-right: auto; }
.footer-inner a { transition: color var(--ease); }
.footer-inner a:hover { color: var(--cloud); }

/* ---------- 知识库页 / 文章页 ---------- */
.page-hero { padding: 180px 0 64px; text-align: center; background: linear-gradient(180deg, #13243a 0%, var(--canvas) 100%); }
.page-hero .display { margin: 20px auto 0; max-width: 900px; font-size: clamp(36px, 5.6vw, 72px); }
.page-hero .sub { margin: 24px auto 0; }
.knowledge-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.knowledge-controls { display: flex; gap: 10px; flex-wrap: wrap; }
.knowledge-controls input, .knowledge-controls select {
  min-width: 200px; padding: 11px 16px;
  border-radius: var(--r-btn); border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--void); color: #fafafa; font: inherit; font-size: 15px;
}
.knowledge-controls input::placeholder { color: var(--fog); }
.article-hero-inner { max-width: 820px; text-align: left; }
.back-link { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; color: var(--ash); }
.back-link:hover { color: var(--pure); }
.article-kicker { display: flex; gap: 8px; margin-top: 28px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; color: var(--fog); }
.article-hero-inner h1 { margin-top: 16px; font-family: var(--serif); font-weight: 300; font-size: clamp(32px, 4.6vw, 56px); line-height: 1.15; color: var(--cloud); }
.article-summary { margin-top: 20px; font-size: 18px; font-weight: 300; line-height: 1.75; }
.article-byline { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 28px; font-size: 14px; color: var(--fog); }
.article-byline strong, .article-byline time { color: var(--silver); font-weight: 400; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 56px; padding: 24px 0 96px; }
.article-body { display: grid; gap: 36px; font-size: 17px; line-height: 1.9; }
.article-body h2 { line-height: 1.35; text-wrap: balance; margin-bottom: 12px; font-family: var(--serif); font-weight: 300; font-size: 28px; color: var(--cloud); }
/* 文章正文新格式（类名给 4. 工具区/GEO发布/官网知识库同步.py 用，别改名） */
.article-answer { padding: 28px 32px; border-radius: var(--r-card); background: var(--graphite); border: 1px solid rgba(144, 184, 240, 0.35); }
.article-answer-label { display: block; margin-bottom: 10px; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.18em; color: var(--dj-sky); }
.article-answer p { font-size: 18px; line-height: 1.8; color: var(--cloud); }
.article-section { display: grid; gap: 16px; }
.article-section h2 { display: flex; align-items: baseline; gap: 14px; margin-bottom: 0; }
.article-section-index { flex: none; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.12em; color: var(--fog); }
.article-section p { color: var(--ash); }
.article-figure { margin: 8px 0; }
.article-figure img { width: 100%; border-radius: var(--r-card); background: var(--graphite); }
.article-figure.is-portrait { width: 100%; max-width: 420px; justify-self: center; }
.article-figure.is-portrait figcaption { text-align: center; }
.article-figure figcaption { margin-top: 10px; font-size: 13px; line-height: 1.6; color: var(--fog); }
.article-missing { display: grid; gap: 10px; padding: 32px; border-radius: var(--r-card); background: var(--graphite); }
.article-aside { display: grid; gap: 12px; align-content: start; }
.article-aside a { padding: 16px 18px; border-radius: var(--r-card); background: var(--graphite); color: var(--cloud); transition: background-color var(--ease); }
.article-aside a:hover { background: var(--steel); }

/* 业务详情页 */
.service-hero .back-link { display: block; width: fit-content; margin: 0 auto 24px; }
.service-hero .chip::before { display: none; }
.service-notice { padding: 20px 24px; border-radius: var(--r-card); background: var(--graphite); color: var(--cloud); }
.service-others { display: grid; gap: 8px; }
.service-others .label { margin-bottom: 4px; }
.service-others a { padding: 14px 18px; border-radius: var(--r-card); background: var(--graphite); color: var(--cloud); font-size: 15px; transition: background-color var(--ease); }
.service-others a:hover { background: var(--steel); }

/* ---------- 进入视口淡入 ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity var(--reveal), transform var(--reveal); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .site-header { inset: 10px 10px auto; }
  .menu-toggle {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 9px 14px; border-radius: var(--r-btn);
    border: 1px solid rgba(255, 255, 255, 0.5); background: rgba(255, 255, 255, 0.1);
    color: var(--pure); font: inherit; font-size: 15px; cursor: pointer;
  }
  .menu-icon { display: grid; gap: 4px; }
  .menu-icon i { display: block; width: 16px; height: 1.5px; background: currentColor; }
  .site-nav {
    position: fixed; inset: 82px 10px auto; display: none;
    flex-direction: column; align-items: stretch; gap: 4px; padding: 12px;
    border-radius: 14px; background: rgba(15, 16, 17, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.08);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 14px 16px; font-size: 17px; }
  .site-nav .nav-cta { margin: 6px 0 0; text-align: center; justify-content: center; }
  .service-grid, .steps, .signal-list, .knowledge-preview, .contact, .article-layout { grid-template-columns: 1fr; }
  .service-card { min-height: 0; }
  .inverted, .knowledge-preview { padding: 32px 24px; }
  .contact { gap: 28px; }
}
@media (max-width: 560px) {
  :root { --gutter: 16px; }
  .section { padding: 56px 0; }
  .hero-inner { padding: 120px 0 64px; }
  .hero .display { font-size: clamp(30px, 8.6vw, 40px); }
  .hero-lede { font-size: 16px; }
  .ask-bar { font-size: 14px; padding-left: 18px; }
  .service-card { padding: 26px; }
  .inverted { border-radius: 24px; }
  .contact-phone strong { font-size: 30px; }
  .article-body h2 { font-size: 22px; }
  .article-section h2 { gap: 10px; }
  .knowledge-controls, .knowledge-controls label, .knowledge-controls input, .knowledge-controls select { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0.01ms !important; }
}
