/* ============================================
   心理咨询师网站 — 高端科技感设计系统
   Design tokens: 深空导航蓝 × 神经连接
   ============================================ */

:root {
  /* Color — 浅色空灵 × 暖色治愈 × 未来科技：奶油白底 + 琥珀金/晚霞玫瑰光晕 */
  --bg: #FBF7F1;
  --bg-secondary: #F4ECE1;
  --surface: #FFFFFF;
  --surface-hover: #FFFCF8;
  --border: rgba(180, 130, 90, 0.16);
  --border-strong: rgba(180, 130, 90, 0.34);
  --accent-cyan: #C4903E;
  --accent-violet: #CD7F8A;
  --accent-glow: rgba(196, 144, 62, 0.28);
  --text-primary: #2B241D;
  --text-secondary: #6C5E51;
  --text-tertiary: #9C8D7C;
  --shadow-soft: 0 24px 60px -28px rgba(180, 130, 90, 0.35);

  /* Type
     --font-heading is the single swap point for h1-h4 only.
     Everything else (logo, manifesto quote, blockquote, faq "+") keeps
     --font-display (Space Grotesk) untouched. */
  --font-heading: 'Lora', 'Noto Serif SC', serif;
  --font-display: 'Space Grotesk', 'Noto Sans SC', sans-serif;
  --font-body: 'Noto Sans SC', 'Inter', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  /* Layout */
  --container: 1120px;
  --radius: 14px;
  --radius-sm: 8px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 12px var(--accent-cyan);
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

section { position: relative; padding: 120px 0; }
@media (max-width: 768px) { section { padding: 80px 0; } }

.section-head {
  max-width: 640px;
  margin-bottom: 64px;
}
.section-head h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 16px; }
.section-head p { color: var(--text-secondary); font-size: 17px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(251, 247, 241, 0.78);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-mark {
  width: 28px; height: 28px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 20px var(--accent-glow);
  border: 1px solid var(--border-strong);
}
.nav-links {
  display: flex;
  gap: 36px;
  font-size: 14px;
  color: var(--text-secondary);
}
.nav-links a:hover { color: var(--text-primary); }
.nav-lang {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
  border: 1px solid var(--border-strong);
  padding: 6px 14px;
  border-radius: 20px;
  transition: all 0.2s;
}
.nav-lang:hover { border-color: var(--accent-cyan); color: var(--accent-cyan); }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-lang { display: none !important; }
  .nav-toggle {
    display: block;
    background: none; border: none; color: var(--text-primary);
    font-size: 22px; cursor: pointer;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  overflow: hidden;
  background-image: url('hero-bg.jpg');
  background-size: cover;
  background-position: center 30%;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, var(--bg) 0%, var(--bg) 18%, rgba(251,247,241,0.82) 42%, rgba(251,247,241,0.4) 66%, rgba(251,247,241,0.12) 100%);
  z-index: 1;
  pointer-events: none;
}
#neural-canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1;
  opacity: 0.4;
}
.ambient-glow {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  will-change: transform;
}
.ambient-glow-1 {
  width: 480px; height: 480px;
  top: -120px; left: -80px;
  background: radial-gradient(circle, var(--accent-cyan) 0%, transparent 70%);
  opacity: 0.2;
  animation: float-a 22s ease-in-out infinite;
}
.ambient-glow-2 {
  width: 420px; height: 420px;
  top: 60px; right: -100px;
  background: radial-gradient(circle, var(--accent-violet) 0%, transparent 70%);
  opacity: 0.18;
  animation: float-b 26s ease-in-out infinite;
}
.ambient-glow-3 {
  width: 320px; height: 320px;
  bottom: -140px; left: 38%;
  background: radial-gradient(circle, var(--accent-cyan) 0%, transparent 70%);
  opacity: 0.14;
  animation: float-a 30s ease-in-out infinite reverse;
}
@keyframes float-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, 40px) scale(1.08); }
}
@keyframes float-b {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-40px, 25px) scale(1.05); }
}
@media (prefers-reduced-motion: reduce) {
  .ambient-glow { animation: none; }
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, transparent 0%, var(--bg) 78%);
  z-index: 1;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}
.hero-scroll-cue {
  display: inline-flex;
  margin-top: 56px;
  font-size: 20px;
  color: var(--accent-cyan);
  animation: bounce-down 2.4s ease-in-out infinite;
}
@keyframes bounce-down {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(8px); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-scroll-cue { animation: none; }
}
.hero h1 {
  font-size: clamp(38px, 6vw, 64px);
  margin-bottom: 24px;
}
.hero h1 .accent {
  background: linear-gradient(120deg, var(--accent-cyan), var(--accent-violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 540px;
  margin-bottom: 40px;
}
.hero-lead {
  font-family: var(--font-heading);
  font-size: 21px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--text-primary);
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 1px solid transparent;
}
.btn-primary {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(20px);
  border-color: var(--border-strong);
  color: var(--accent-cyan);
  animation: pulse-glow 4s ease-in-out infinite;
}
.btn-primary:hover { border-color: var(--accent-cyan); transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text-primary);
}
.btn-ghost:hover { border-color: var(--accent-cyan); color: var(--accent-cyan); }

.hero-meta {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 48px;
  margin-top: 72px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  max-width: 720px;
}
.hero-meta div { font-family: var(--font-mono); }
.hero-meta .num { font-size: 26px; color: var(--accent-cyan); display: block; }
.hero-meta .label { font-size: 12px; color: var(--text-tertiary); letter-spacing: 0.05em; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
.about-portrait {
  aspect-ratio: 4/5;
  border-radius: var(--radius);
  background: linear-gradient(150deg, var(--surface), var(--bg-secondary));
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  font-size: 13px;
  position: relative;
  overflow: hidden;
}
.about-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.about-portrait::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 60px rgba(23, 18, 14, 0.35);
  pointer-events: none;
}
.about-credentials {
  margin-top: 28px;
  display: grid;
  gap: 14px;
}
.credential {
  display: flex;
  gap: 14px;
  align-items: baseline;
  font-size: 15px;
  color: var(--text-secondary);
  border-left: 2px solid var(--border-strong);
  padding-left: 16px;
}
.credential strong { color: var(--text-primary); font-weight: 500; }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 860px) { .services-grid { grid-template-columns: 1fr; } }
.service-card {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
  position: relative;
}
.service-card:hover {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.92);
  transform: translateY(-4px);
}
.service-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-violet));
  opacity: 0.9;
  margin-bottom: 24px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.service-card h3 { font-size: 19px; margin-bottom: 10px; }
.service-card p { color: var(--text-secondary); font-size: 14.5px; margin-bottom: 20px; }
.service-price {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-cyan);
}

/* ---------- Process timeline ---------- */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}
@media (max-width: 860px) { .timeline { grid-template-columns: 1fr; } }
.timeline-item { position: relative; padding-top: 8px; }
.timeline-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-cyan);
  display: block;
  margin-bottom: 16px;
}
.timeline-item h4 { font-size: 17px; margin-bottom: 8px; }
.timeline-item p { color: var(--text-secondary); font-size: 14px; }
.timeline-line {
  position: absolute;
  top: 0; left: 0;
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-violet), transparent);
  opacity: 0.4;
}

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 40px;
}
.footer-col h4 {
  font-size: 13px;
  font-family: var(--font-mono);
  color: var(--text-tertiary);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.footer-col a, .footer-col p {
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.footer-col a:hover { color: var(--accent-cyan); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-tertiary);
}

@media (max-width: 640px) {
  footer { padding: 48px 0 100px; }
  .footer-grid {
    flex-direction: column;
    gap: 36px;
    margin-bottom: 32px;
  }
  .footer-col h4 { margin-bottom: 12px; }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding-right: 72px;
  }
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Mobile nav drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  background: rgba(251, 247, 241, 0.98);
  z-index: 200;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  font-size: 20px;
}
.mobile-drawer.open { display: flex; }
.mobile-drawer a { color: var(--text-primary); }
.mobile-close {
  position: absolute;
  top: 24px; right: 32px;
  font-size: 28px;
  color: var(--text-secondary);
  cursor: pointer;
  background: none;
  border: none;
}

/* ---------- Nav CTA ---------- */
.nav-cta {
  padding: 9px 20px;
  font-size: 13px;
  white-space: nowrap;
}

/* ---------- Manifesto (宣言式金句区块) ---------- */
.manifesto {
  padding: 100px 0;
}
.manifesto-inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  padding: 0 32px;
}
.manifesto-mark {
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-violet));
  margin: 0 auto 32px;
}
.manifesto p {
  font-family: var(--font-display);
  font-size: clamp(22px, 3.4vw, 32px);
  font-weight: 500;
  line-height: 1.5;
  color: var(--text-primary);
  font-style: italic;
}
.manifesto p .accent {
  background: linear-gradient(120deg, var(--accent-cyan), var(--accent-violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: normal;
}

/* ---------- Long-form prose (About / Approach 长文排版) ---------- */
.prose {
  max-width: 700px;
  margin: 0 auto;
}
.prose p {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 26px;
}
.prose blockquote {
  margin: 40px 0;
  padding: 4px 0 4px 24px;
  border-left: 2px solid var(--border-strong);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 19px;
  color: var(--text-primary);
  line-height: 1.6;
}
.story-block { margin-bottom: 56px; }
.story-block:last-child { margin-bottom: 0; }
.story-block h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.prose p.story-lead {
  font-style: italic;
  color: var(--text-tertiary);
  font-size: 16px;
  margin-bottom: 20px;
}
.approach-block { margin-bottom: 56px; }
.approach-block:last-child { margin-bottom: 0; }
.approach-block h3 {
  font-size: 21px;
  margin-bottom: 16px;
  color: var(--text-primary);
}
.approach-block p { font-size: 16.5px; color: var(--text-secondary); margin-bottom: 0; }
.prose p.approach-lead {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: 20px;
}

/* ---------- Focus reasons (适合人群自查) ---------- */
.focus-reasons {
  max-width: 700px;
  margin: 0 auto;
  display: grid;
  gap: 28px;
}
.focus-reason h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--accent-cyan);
  margin-bottom: 8px;
}
.focus-reason p {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.7;
}

/* ---------- Focus tags (服务人群 / 关注议题) ---------- */
.focus-block { margin-top: 56px; }
.focus-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 16px; margin-bottom: 24px; }
.focus-row:last-child { margin-bottom: 0; }
.focus-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  min-width: 120px;
}
.focus-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.focus-tag {
  font-size: 13.5px;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 16px;
}

/* ---------- FAQ accordion ---------- */
.faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px 24px;
}
.faq-item summary {
  padding: 18px 0;
  cursor: pointer;
  font-weight: 500;
  color: var(--text-primary);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--accent-cyan);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  color: var(--text-secondary);
  font-size: 15px;
  padding-bottom: 20px;
  margin: 0;
}

/* ---------- Shared glow animation (used by primary buttons & chat toggle) ---------- */
@keyframes pulse-glow {
  0%, 100% { box-shadow: var(--shadow-soft), 0 0 14px var(--accent-glow); }
  50% { box-shadow: var(--shadow-soft), 0 0 30px var(--accent-glow); }
}
@media (prefers-reduced-motion: reduce) {
  .chat-toggle { animation: none; }
}

/* ---------- Chat widget (规则问答助手) ---------- */
.chat-widget { position: fixed; right: 24px; bottom: 24px; z-index: 150; }
.chat-toggle {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(24px);
  color: var(--accent-cyan);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse-glow 4s ease-in-out infinite;
}
.chat-panel {
  position: absolute;
  right: 0;
  bottom: 72px;
  width: 320px;
  max-height: 440px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(24px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.chat-panel.open { display: flex; }
.chat-header {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--text-tertiary);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.chat-close { background: none; border: none; font-size: 16px; color: var(--text-tertiary); cursor: pointer; }
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.chat-message {
  font-size: 14px;
  line-height: 1.55;
  padding: 10px 14px;
  border-radius: 12px;
  max-width: 85%;
}
.chat-message.bot {
  background: var(--bg-secondary);
  color: var(--text-primary);
  align-self: flex-start;
}
.chat-message.user {
  background: linear-gradient(120deg, var(--accent-cyan), var(--accent-violet));
  color: #2B241D;
  align-self: flex-end;
}
.chat-quick-replies {
  padding: 0 18px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chat-quick-reply {
  font-size: 12.5px;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  padding: 6px 12px;
  cursor: pointer;
}
.chat-quick-reply:hover { border-color: var(--accent-cyan); color: var(--accent-cyan); }
@media (max-width: 600px) {
  .chat-panel { width: calc(100vw - 32px); right: -8px; }
}

/* ---------- Photo break (纯视觉呼吸带,无文字叠加) ---------- */
/* ---------- Ambient section photography (融入背景的氛围图层，不是独立图片块) ---------- */
.section-ambient-photo {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-size: cover;
  background-position: center;
  opacity: 0.16;
  filter: saturate(0.9);
  pointer-events: none;
}
.section-ambient-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 0%, var(--bg) 88%);
}

/* ---------- Small-screen spacing (placed last so it wins the cascade) ---------- */
@media (max-width: 480px) {
  .container { padding: 0 20px; }
  .nav-inner { padding: 16px 20px; }
  section { padding: 64px 0; }
  .manifesto { padding: 72px 0; }
  .section-head { margin-bottom: 40px; }
}
