/* =========================================================
   星晔文化科技 · 官网
   设计基调：墨黑 / 宣纸白 / 星晔金；衬线标题 + 无衬线正文
   ========================================================= */
:root {
  --ink: #0d0e10;
  --ink-soft: #16181b;
  --paper: #f4f1ea;
  --paper-warm: #ece7dd;
  --white: #ffffff;
  --gold: #c9a05a;
  --gold-bright: #e0b877;
  --text: #17181b;
  --muted: #6f7075;
  --line: rgba(23, 24, 27, 0.12);
  --line-dark: rgba(255, 255, 255, 0.14);
  --wrap: min(1360px, 91vw);
  --serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", serif;
  --sans: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --nav-h: 84px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
::selection { background: var(--gold); color: var(--ink); }

/* ---------- 通用 ---------- */
.wrap { width: var(--wrap); margin: 0 auto; }
.section-tag {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-transform: uppercase;
}
.section-tag span:first-child {
  font-variant-numeric: tabular-nums;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.08em;
}
.section-tag::after {
  content: "";
  width: 46px;
  height: 1px;
  background: currentColor;
  opacity: 0.4;
}
.section-tag.light { color: rgba(255, 255, 255, 0.55); }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; }
h2 { font-size: clamp(34px, 4.2vw, 62px); line-height: 1.18; }
h3 { font-size: clamp(26px, 2.4vw, 38px); line-height: 1.25; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 52px;
  padding: 0 30px;
  font-size: 14px;
  letter-spacing: 0.06em;
  border: 1px solid transparent;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.btn .arrow { font-size: 15px; transition: transform 0.35s var(--ease); }
.btn:hover .arrow { transform: translate(3px, -3px); }
.btn-solid { background: var(--gold); color: var(--ink); }
.btn-solid:hover { background: var(--gold-bright); transform: translateY(-2px); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.35); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.08); }

/* ---------- 导航 ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 64px);
  color: var(--white);
  transition: background 0.45s var(--ease), height 0.45s var(--ease), color 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.nav.scrolled {
  height: 72px;
  background: rgba(13, 14, 16, 0.86);
  backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-mark path { fill: var(--gold); }
.brand-core { fill: var(--ink); }
.brand-name {
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: 0.12em;
  white-space: nowrap;
}
.nav-links { display: flex; align-items: center; gap: clamp(24px, 3vw, 46px); }
.nav-links a {
  position: relative;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.82);
  padding: 6px 0;
  transition: color 0.3s var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-right { display: flex; align-items: center; gap: 18px; }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  letter-spacing: 0.1em;
  padding: 11px 20px;
  border: 1px solid rgba(201, 160, 90, 0.6);
  color: var(--gold-bright);
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
}
.nav-cta:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.menu-btn { display: none; background: none; border: 0; width: 36px; height: 36px; cursor: pointer; }
.menu-btn span { display: block; width: 22px; height: 1px; background: var(--white); margin: 7px auto; transition: transform 0.3s var(--ease); }
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 0 8vw;
  background: rgba(13, 14, 16, 0.97);
  backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
.mobile-menu a {
  font-family: var(--serif);
  font-size: 34px;
  color: var(--white);
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100svh;
  min-height: 680px;
  color: var(--white);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background: var(--ink);
}
.hero-media { position: absolute; inset: 0; overflow: hidden; }
.hero-media img {
  position: absolute;
  left: 0; right: 0;
  top: -2%;
  width: 100%; height: 107%;
  object-fit: cover;
  object-position: center 60%;
  animation: heroZoom 8s var(--ease) both;
}
/* 仅做边缘融合，不叠加色罩 */
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(13, 14, 16, 0.72) 0%, rgba(13, 14, 16, 0.18) 34%, rgba(13, 14, 16, 0.82) 100%),
    linear-gradient(90deg, rgba(13, 14, 16, 0.55) 0%, rgba(13, 14, 16, 0) 58%);
  z-index: 1;
}
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-inner {
  position: relative;
  z-index: 2;
  width: var(--wrap);
  margin: 0 auto;
  padding-bottom: clamp(130px, 18vh, 220px);
}
.hero-title {
  font-size: clamp(45px, 6.6vw, 104px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.hero-sub {
  margin-top: 30px;
  max-width: 640px;
  font-size: clamp(14px, 1.15vw, 17px);
  line-height: 1.95;
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: 0.02em;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 44px; }
.hero-foot {
  position: absolute;
  left: 50%; bottom: 0;
  transform: translateX(-50%);
  width: var(--wrap);
  z-index: 2;
  padding-bottom: 34px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 22px;
}
.hero-dispatch {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.56);
  text-transform: uppercase;
}
.hero-dispatch i { width: 4px; height: 4px; background: var(--gold); border-radius: 50%; }
.scroll-hint { display: inline-flex; align-items: center; gap: 10px; font-size: 11px; letter-spacing: 0.14em; color: rgba(255, 255, 255, 0.5); }
.scroll-hint i { display: block; width: 1px; height: 34px; background: rgba(255, 255, 255, 0.35); animation: scrollPulse 2.4s infinite; }
@keyframes scrollPulse { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }

/* ---------- 宣言 ---------- */
.manifesto {
  width: var(--wrap);
  margin: 0 auto;
  padding: clamp(96px, 12vw, 170px) 0 clamp(80px, 9vw, 130px);
}
.manifesto-body {
  margin-top: clamp(40px, 5vw, 76px);
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: clamp(40px, 6vw, 110px);
  align-items: start;
}
.manifesto-body h2 { font-size: clamp(36px, 4.6vw, 70px); }
.manifesto-side p { font-size: 15px; line-height: 2.05; color: var(--muted); }
.capability-list { list-style: none; margin-top: 38px; border-top: 1px solid var(--line); }
.capability-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: 0.04em;
}
.capability-list li span { font-family: var(--sans); font-size: 11px; color: var(--gold); letter-spacing: 0.14em; }

/* ---------- 业务 ---------- */
.services { background: var(--white); padding: clamp(90px, 11vw, 160px) 0 clamp(70px, 8vw, 120px); }
.section-head { width: var(--wrap); margin: 0 auto; }
.section-head h2 { margin-top: clamp(30px, 4vw, 54px); }
.service-row {
  width: var(--wrap);
  margin: clamp(64px, 7vw, 110px) auto 0;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}
.service-row.reverse .service-media { order: 2; }
.service-media { overflow: hidden; aspect-ratio: 4 / 3; }
.service-media img {
  width: 100%;
  height: 106%;
  object-fit: cover;
  object-position: center 44%;
  transition: transform 0.9s var(--ease);
}
.service-media:hover img { transform: scale(1.04); }
.service-copy { max-width: 560px; }
.service-no { font-size: 12px; letter-spacing: 0.18em; color: var(--gold); }
.service-copy h3 { margin-top: 14px; }
.service-summary {
  margin-top: 18px;
  font-family: var(--serif);
  font-size: clamp(18px, 1.5vw, 22px);
  color: var(--ink);
  line-height: 1.7;
}
.service-desc { margin-top: 16px; font-size: 14px; line-height: 2; color: var(--muted); }
.service-tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin-top: 28px; }
.service-tags li {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 7px 14px;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.service-tags li:hover { border-color: var(--gold); color: var(--ink); }

/* ---------- 案例 ---------- */
.work { background: var(--ink); color: var(--white); padding: clamp(96px, 11vw, 160px) 0 clamp(90px, 10vw, 150px); }
.work .section-head h2 { color: var(--white); }
.case-grid {
  width: var(--wrap);
  margin: clamp(54px, 7vw, 100px) auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 2.6vw, 40px);
}
.case-card { cursor: pointer; color: var(--white); }
.case-media { position: relative; overflow: hidden; background: var(--ink-soft); aspect-ratio: 4 / 3; }
.case-media img {
  width: 100%;
  height: 113%;
  object-fit: cover;
  object-position: center 34%;
  transition: transform 0.9s var(--ease), opacity 0.6s var(--ease);
}
.case-card:hover .case-media img { transform: scale(1.05); opacity: 0.72; }
.case-view {
  position: absolute;
  right: 18px; bottom: 18px;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 8px 13px;
  background: rgba(13, 14, 16, 0.45);
  backdrop-filter: blur(8px);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.case-card:hover .case-view { opacity: 1; transform: translateY(0); }
.case-meta { display: flex; gap: 12px; margin-top: 20px; font-size: 11px; letter-spacing: 0.12em; color: rgba(255, 255, 255, 0.48); }
.case-meta span:first-child { color: var(--gold); }
.case-card h3 { margin-top: 12px; font-size: clamp(20px, 1.7vw, 25px); }
.case-card p { margin-top: 12px; font-size: 13px; line-height: 1.85; color: rgba(255, 255, 255, 0.6); }

/* ---------- 流程 ---------- */
.process { padding: clamp(90px, 11vw, 150px) 0; width: var(--wrap); margin: 0 auto; }
.process-grid {
  margin-top: clamp(44px, 5vw, 72px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 3vw, 48px);
}
.step { border-top: 1px solid var(--line); padding-top: 22px; }
.step-no { font-size: 11px; letter-spacing: 0.16em; color: var(--gold); }
.step h3 { margin-top: 26px; font-size: 24px; }
.step p { margin-top: 14px; font-size: 13px; line-height: 1.95; color: var(--muted); }

/* ---------- 关于 ---------- */
.about {
  width: var(--wrap);
  margin: 0 auto;
  padding: clamp(40px, 5vw, 80px) 0 clamp(100px, 12vw, 170px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}
.about-media { overflow: hidden; aspect-ratio: 4 / 3; }
.about-media img { width: 100%; height: 106%; object-fit: cover; object-position: center 44%; }
.about-copy h2 { margin-top: clamp(28px, 3.5vw, 48px); font-size: clamp(32px, 3.8vw, 58px); }
.about-copy p { margin-top: 26px; font-size: 14px; line-height: 2.05; color: var(--muted); max-width: 540px; }
.about-facts { display: flex; gap: clamp(30px, 4vw, 64px); margin-top: 48px; border-top: 1px solid var(--line); padding-top: 28px; }
.about-facts div { display: flex; flex-direction: column; gap: 6px; }
.about-facts strong { font-family: var(--serif); font-size: 34px; color: var(--ink); font-weight: 500; }
.about-facts span { font-size: 11px; letter-spacing: 0.12em; color: var(--muted); }

/* ---------- 动态 ---------- */
.journal { background: var(--paper-warm); padding: clamp(90px, 11vw, 150px) 0 clamp(100px, 12vw, 160px); }
.journal-list { width: var(--wrap); margin: clamp(44px, 5vw, 72px) auto 0; border-top: 1px solid rgba(23, 24, 27, 0.18); }
.journal-item {
  display: grid;
  grid-template-columns: 130px 110px 1fr 40px;
  align-items: center;
  gap: 20px;
  padding: 30px 0;
  border-bottom: 1px solid rgba(23, 24, 27, 0.14);
  transition: padding 0.4s var(--ease), color 0.4s var(--ease);
}
.journal-item:hover { padding-left: 14px; }
.journal-date { font-size: 12px; letter-spacing: 0.1em; color: var(--muted); font-variant-numeric: tabular-nums; }
.journal-cat { font-size: 11px; letter-spacing: 0.12em; color: var(--gold); }
.journal-title { font-family: var(--serif); font-size: clamp(18px, 1.6vw, 24px); }
.journal-arrow { font-size: 18px; color: var(--muted); text-align: right; transition: color 0.3s var(--ease), transform 0.3s var(--ease); }
.journal-item:hover .journal-arrow { color: var(--ink); transform: translate(3px, -3px); }

/* ---------- 联系 ---------- */
.contact {
  background: var(--ink);
  color: var(--white);
  padding: clamp(90px, 11vw, 160px) 0;
}
.contact-inner { width: var(--wrap); margin: 0 auto; }
.contact-head { width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(30px, 5vw, 80px); }
.contact-head h2 { color: var(--white); margin-top: clamp(28px, 3.5vw, 48px); font-size: clamp(38px, 4.6vw, 72px); }
.contact-note { margin-top: 26px; font-size: 14px; line-height: 1.95; color: rgba(255, 255, 255, 0.58); }
.contact-info { margin-top: 46px; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 30px; max-width: 560px; }
.contact-info div { display: flex; flex-direction: column; gap: 7px; }
.contact-info span:first-child { font-size: 11px; letter-spacing: 0.14em; color: rgba(255, 255, 255, 0.42); }
.contact-info a, .contact-info span:last-child { font-size: 14px; color: rgba(255, 255, 255, 0.86); }
.contact-info a:hover { color: var(--gold-bright); }
.contact-form { width: var(--wrap); margin: clamp(54px, 6vw, 90px) auto 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 3vw, 48px); }
.field { display: flex; flex-direction: column; gap: 10px; margin-bottom: 26px; }
.field span { font-size: 11px; letter-spacing: 0.14em; color: rgba(255, 255, 255, 0.46); }
.field input, .field select, .field textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  font-family: var(--sans);
  font-size: 15px;
  padding: 10px 0 14px;
  outline: none;
  transition: border-color 0.3s var(--ease);
  border-radius: 0;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(255, 255, 255, 0.4); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); }
.field select option { background: var(--ink-soft); color: var(--white); }
.field textarea { resize: vertical; min-height: 100px; }
.form-foot { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.form-status { font-size: 12px; color: rgba(255, 255, 255, 0.42); }
.form-status.error { color: #e08a7a; }
.form-status.ok { color: var(--gold-bright); }

/* ---------- 页脚 ---------- */
.footer { background: var(--ink); color: var(--white); border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 52px 0 30px; }
.footer-top { width: var(--wrap); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.footer-nav { display: flex; gap: clamp(20px, 3vw, 40px); }
.footer-nav a { font-size: 12px; letter-spacing: 0.12em; color: rgba(255, 255, 255, 0.55); }
.footer-nav a:hover { color: var(--white); }
.footer-bottom {
  width: var(--wrap); margin: 44px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  font-size: 11px; letter-spacing: 0.06em; color: rgba(255, 255, 255, 0.34);
}

/* ---------- 弹窗 ---------- */
.modal { position: fixed; inset: 0; z-index: 80; display: none; }
.modal.open { display: block; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(8, 9, 10, 0.74); backdrop-filter: blur(8px); }
.modal-panel {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: min(760px, 92vw);
  max-height: 84vh;
  overflow-y: auto;
  background: var(--paper);
  color: var(--text);
  padding: clamp(32px, 5vw, 60px);
}
.modal-close { position: absolute; right: 20px; top: 14px; background: none; border: 0; font-size: 26px; color: var(--muted); cursor: pointer; }
.modal-close:hover { color: var(--ink); }
.modal-tag { font-size: 11px; letter-spacing: 0.14em; color: var(--gold); }
.modal h3 { margin-top: 16px; font-size: clamp(24px, 3vw, 36px); }
.modal-summary { margin-top: 18px; font-family: var(--serif); font-size: 17px; line-height: 1.8; color: var(--ink); }
.modal-content { margin-top: 20px; font-size: 14px; line-height: 2; color: var(--muted); white-space: pre-line; }

/* ---------- 动效 ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-media img { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .menu-btn { display: block; }
  .manifesto-body, .contact-head { grid-template-columns: 1fr; }
  .service-row, .service-row.reverse { grid-template-columns: 1fr; gap: 34px; }
  .service-row.reverse .service-media { order: 0; }
  .service-copy { max-width: none; }
  .case-grid { grid-template-columns: 1fr; }
  .case-card { margin-bottom: 20px; }
  .process-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .about { grid-template-columns: 1fr; }
  .about-media { order: 2; }
  .journal-item { grid-template-columns: 92px 82px 1fr; }
  .journal-arrow { display: none; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 640px) {
  :root { --nav-h: 68px; }
  .brand-name { font-size: 16px; letter-spacing: 0.08em; }
  .header, .nav { padding: 0 20px; }
  .hero { min-height: 620px; }
  .hero-inner { padding-bottom: 150px; }
  .hero-sub br { display: none; }
  .hero-foot { padding-top: 16px; padding-bottom: 22px; }
  .scroll-hint { display: none; }
  .manifesto, .services, .work, .process, .journal, .contact { padding-top: 72px; padding-bottom: 72px; }
  .service-row { margin-top: 48px; }
  .process-grid { grid-template-columns: 1fr; }
  .about-facts { gap: 22px; }
  .journal-item { grid-template-columns: 1fr; gap: 8px; padding: 22px 0; }
  .journal-date, .journal-cat { font-size: 11px; }
  .footer-top { flex-direction: column; align-items: flex-start; }
  .footer-nav { flex-wrap: wrap; }
  .modal-panel { padding: 34px 22px; max-height: 88vh; }
}

/* =========================================================
   AI 智能客服
   ========================================================= */
.chat-widget { position: fixed; right: 26px; bottom: 26px; z-index: 900; font-family: var(--sans); }

.chat-fab {
  display: flex; align-items: center; gap: 10px;
  height: 56px; padding: 0 20px 0 16px;
  border: none; border-radius: 999px; cursor: pointer;
  background: var(--ink); color: var(--gold-bright);
  box-shadow: 0 14px 34px rgba(13, 14, 16, 0.28);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease);
}
.chat-fab:hover { transform: translateY(-3px); box-shadow: 0 20px 44px rgba(13, 14, 16, 0.36); background: #17181b; }
.chat-fab-icon { width: 26px; height: 26px; }
.chat-fab-label { font-size: 14px; letter-spacing: 0.06em; }
.chat-widget.open .chat-fab { opacity: 0; pointer-events: none; transform: translateY(8px); }

.chat-panel {
  position: absolute; right: 0; bottom: 0;
  width: 372px; max-width: calc(100vw - 32px);
  height: 560px; max-height: calc(100vh - 90px);
  display: flex; flex-direction: column;
  background: var(--paper); border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 28px 70px rgba(13, 14, 16, 0.32);
  opacity: 0; transform: translateY(16px) scale(0.97); transform-origin: bottom right;
  pointer-events: none;
  transition: opacity 0.32s var(--ease), transform 0.32s var(--ease);
}
.chat-widget.open .chat-panel { opacity: 1; transform: none; pointer-events: auto; }

.chat-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; background: var(--ink); color: var(--paper);
}
.chat-head-title { display: flex; align-items: center; gap: 10px; }
.chat-avatar { width: 34px; height: 34px; border-radius: 50%; background: rgba(224, 184, 119, 0.14); display: grid; place-items: center; }
.chat-avatar svg { width: 20px; height: 20px; fill: var(--gold-bright); }
.chat-avatar-core { fill: var(--ink); }
.chat-head strong { display: block; font-size: 14px; font-weight: 600; letter-spacing: 0.04em; }
.chat-status { display: flex; align-items: center; gap: 6px; font-size: 11px; color: rgba(244, 241, 234, 0.66); margin-top: 2px; }
.chat-status i { width: 6px; height: 6px; border-radius: 50%; background: #63c78a; box-shadow: 0 0 0 3px rgba(99, 199, 138, 0.18); }
.chat-close {
  width: 30px; height: 30px; border: none; border-radius: 50%;
  background: transparent; color: rgba(244, 241, 234, 0.7);
  font-size: 20px; line-height: 1; cursor: pointer;
  transition: background 0.25s, color 0.25s;
}
.chat-close:hover { background: rgba(255, 255, 255, 0.1); color: var(--paper); }

.chat-body {
  flex: 1; overflow-y: auto; padding: 16px 14px 10px;
  display: flex; flex-direction: column; gap: 10px;
  scroll-behavior: smooth;
}
.chat-body::-webkit-scrollbar { width: 5px; }
.chat-body::-webkit-scrollbar-thumb { background: rgba(23, 24, 27, 0.16); border-radius: 4px; }

.chat-msg { max-width: 82%; padding: 10px 13px; border-radius: 14px; font-size: 13.5px; line-height: 1.65; white-space: pre-line; word-break: break-word; animation: chatIn 0.3s var(--ease); }
.chat-msg.bot { align-self: flex-start; background: var(--white); border: 1px solid var(--line); border-bottom-left-radius: 4px; color: var(--text); }
.chat-msg.user { align-self: flex-end; background: var(--ink); color: var(--paper); border-bottom-right-radius: 4px; }
.chat-msg.typing { display: flex; gap: 5px; padding: 13px 16px; }
.chat-msg.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: chatDot 1.2s infinite; }
.chat-msg.typing i:nth-child(2) { animation-delay: 0.18s; }
.chat-msg.typing i:nth-child(3) { animation-delay: 0.36s; }
@keyframes chatIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes chatDot { 0%, 60%, 100% { opacity: 0.35; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }

.chat-quick {
  display: flex; gap: 8px; padding: 8px 14px 10px;
  overflow-x: auto; scrollbar-width: none;
  border-top: 1px solid var(--line);
}
.chat-quick::-webkit-scrollbar { display: none; }
.chat-quick button {
  flex: none; padding: 7px 13px; font-size: 12px; letter-spacing: 0.03em;
  border: 1px solid var(--line); border-radius: 999px; background: var(--white);
  color: var(--text); cursor: pointer;
  transition: border-color 0.25s, color 0.25s, background 0.25s;
}
.chat-quick button:hover { border-color: var(--gold); color: var(--ink); background: rgba(201, 160, 90, 0.08); }

.chat-input {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; border-top: 1px solid var(--line); background: var(--paper-warm);
}
.chat-input input {
  flex: 1; height: 40px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--white); color: var(--text); font-size: 13.5px; font-family: inherit;
  outline: none; transition: border-color 0.25s;
}
.chat-input input:focus { border-color: var(--gold); }
.chat-send {
  flex: none; width: 40px; height: 40px; border: none; border-radius: 50%;
  background: var(--ink); color: var(--gold-bright); cursor: pointer;
  display: grid; place-items: center;
  transition: transform 0.25s var(--ease), background 0.25s;
}
.chat-send:hover { transform: scale(1.06); background: #17181b; }
.chat-send:disabled { opacity: 0.45; cursor: default; transform: none; }
.chat-send svg { width: 17px; height: 17px; }

@media (max-width: 640px) {
  .chat-widget { right: 16px; bottom: 16px; }
  .chat-fab { height: 50px; padding: 0 16px 0 13px; }
  .chat-fab-label { display: none; }
  .chat-panel {
    position: fixed; inset: auto 0 0 0;
    width: 100%; max-width: none; height: 74vh; max-height: none;
    border-radius: 18px 18px 0 0;
  }
}

/* ---------- 详情页（业务 / 案例） ---------- */
/* 内页不引 app.js，因此导航固定为深色底，避免滚动到浅色正文后白字不可读 */
.nav-sub { height: 72px; background: rgba(13, 14, 16, 0.96); backdrop-filter: blur(18px); }

.detail-head {
  background: var(--ink);
  color: var(--white);
  padding: calc(72px + clamp(52px, 7vw, 96px)) max(24px, calc((100vw - var(--wrap)) / 2)) clamp(48px, 6vw, 80px);
}
.detail-head .section-tag { color: rgba(255, 255, 255, 0.45); }
.detail-head h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.18;
  letter-spacing: 0.01em;
  margin: 20px 0 22px;
}
.detail-lead { font-size: clamp(16px, 1.5vw, 20px); line-height: 1.8; color: var(--gold-bright); max-width: 860px; }
.detail-intro { margin-top: 20px; font-size: 15px; line-height: 2; color: rgba(255, 255, 255, 0.6); max-width: 760px; }

.crumbs { margin-bottom: clamp(36px, 5vw, 64px); }
.crumbs ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; font-size: 11px; letter-spacing: 0.1em; }
.crumbs li { display: flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, 0.42); }
.crumbs li:not(:last-child)::after { content: "/"; color: rgba(255, 255, 255, 0.22); }
.crumbs a { color: rgba(255, 255, 255, 0.52); transition: color 0.3s var(--ease); }
.crumbs a:hover { color: var(--gold); }
.crumbs [aria-current] { color: rgba(255, 255, 255, 0.8); }

.detail-cover { line-height: 0; }
.detail-cover img { width: 100%; max-height: 62vh; object-fit: cover; }

.detail-body { padding: clamp(56px, 7vw, 92px) max(24px, calc((100vw - var(--wrap)) / 2)); }
.detail-block { max-width: 820px; margin: 0 auto clamp(44px, 6vw, 68px); }
.detail-block h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(21px, 2.4vw, 29px);
  padding-bottom: 14px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.detail-block > p { font-size: 15px; line-height: 2.05; color: var(--muted); }

.detail-tags { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.detail-tags li {
  font-size: 12px;
  letter-spacing: 0.1em;
  padding: 8px 16px;
  border: 1px solid var(--line);
  color: var(--text);
}

.detail-steps { list-style: none; display: grid; gap: 28px; }
.detail-steps li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: start; }
.detail-steps .step-no {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--gold);
  font-weight: 600;
  padding-top: 3px;
}
.detail-steps h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.detail-steps p { font-size: 14px; line-height: 1.95; color: var(--muted); }

.detail-cases { display: grid; gap: 16px; }
.detail-case {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.detail-case:hover { border-color: var(--gold); transform: translateY(-2px); }
.detail-case img { width: 100%; height: 104px; object-fit: cover; }
.detail-case span { font-size: 11px; letter-spacing: 0.12em; color: var(--gold); }
.detail-case h3 { font-size: 16px; font-weight: 600; margin: 6px 0 4px; }
.detail-case p { font-size: 13px; line-height: 1.8; color: var(--muted); }

.detail-links { display: grid; gap: 1px; background: var(--line); }
.detail-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  background: var(--paper);
  font-size: 14px;
  letter-spacing: 0.06em;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.detail-links a:hover { background: var(--ink); color: var(--white); }
.detail-links a span { color: var(--gold); }

.detail-facts { display: flex; flex-wrap: wrap; gap: 40px; max-width: 820px; margin: 0 auto clamp(44px, 6vw, 68px); padding: 26px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.detail-facts dt { font-size: 11px; letter-spacing: 0.12em; color: var(--muted); margin-bottom: 6px; }
.detail-facts dd { font-size: 15px; }

.detail-cta {
  background: var(--ink);
  color: var(--white);
  text-align: center;
  padding: clamp(56px, 7vw, 88px) 24px;
}
.detail-cta h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(24px, 3.2vw, 38px); }
.detail-cta p { margin: 16px auto 30px; font-size: 14px; line-height: 1.95; color: rgba(255, 255, 255, 0.58); max-width: 560px; }

@media (max-width: 720px) {
  .detail-case { grid-template-columns: 1fr; }
  .detail-case img { height: 168px; }
  .detail-steps li { grid-template-columns: 40px 1fr; gap: 12px; }
  .nav-links { display: none; }
  .crumbs { margin-bottom: 32px; }
}

/* 首页服务区：指向详情页的内链 */
.service-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--gold);
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.35s var(--ease), gap 0.35s var(--ease);
}
.service-more:hover { border-bottom-color: var(--gold); gap: 12px; }
.service-more span { font-size: 13px; }
