@charset "utf-8";

/* =============================================
   毕建文心理咨询工作室 — 温暖简约风格
   参考 Julia Jarrold 设计语言
   ============================================= */

/* ===== CSS Variables ===== */
:root {
  /* 递进士色阶 — 从上到下逐步加深 */
  --white: #FDFBF7;       /* 最顶层：纯净暖白 */
  --cream: #F0EAD6;       /* 第2层：温暖奶油 */
  --beige: #E6DECC;       /* 第3层：浅米色 */
  --soft-beige: #DBCFB8;  /* 第4层：中米色 */
  --warm-sand: #D0C2A5;   /* 第5层：暖沙色 */
  --deep-sand: #C5B593;   /* 第6层：深沙色 */
  --darker-sand: #B9A781; /* 第7层：最深沙色 */
  --footer-bg: #5C5545;   /* 底部：暖深棕 */
  --footer-text: #C8BFA8; /* 底部浅色文字 */

  --charcoal: #2F2D26;
  --warm-brown: #8B5E30;
  --light-brown: #CDA87A;
  --text-secondary: #5C5A54;
  --text-muted: #8A867C;
  --border-light: #D0C5AE;
  --shadow: 0 2px 20px rgba(0,0,0,0.06);
  --shadow-hover: 0 8px 40px rgba(0,0,0,0.10);
  --max-width: 880px;
  --transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: var(--charcoal);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border: none;
}

a {
  color: var(--warm-brown);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--light-brown); }

/* ===== Typography ===== */
h1, h2, h3, h4 {
  font-family: "Noto Serif SC", "Source Han Serif SC", "STSong", "SimSun", "Georgia", serif;
  font-weight: 400;
  line-height: 1.4;
  color: var(--charcoal);
}

h1 { font-size: 2.6rem; margin-bottom: 1.2rem; }
h2 { font-size: 2rem; margin-bottom: 1rem; }
h3 { font-size: 1.4rem; margin-bottom: 0.6rem; }

.section-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--warm-brown);
  margin-bottom: 0.8rem;
  font-family: "Noto Sans SC", sans-serif;
  font-weight: 500;
}

.section-title {
  font-size: 2.2rem;
  margin-bottom: 2rem;
  color: var(--charcoal);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.8;
}

/* ===== Container ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.container-wide {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ===== Header / Navigation ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(240, 234, 214, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  transition: background var(--transition);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.site-logo {
  font-family: "Noto Serif SC", "Source Han Serif SC", serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--charcoal);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.site-logo:hover { color: var(--warm-brown); }

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--warm-brown);
  border-bottom-color: var(--warm-brown);
}

/* Mobile menu button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== Hero Section ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 2rem 80px;
  position: relative;
  background: linear-gradient(180deg, var(--white) 0%, var(--cream) 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 50% 30%, rgba(181, 131, 74, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero-eyebrow {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--warm-brown);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.hero-title {
  font-size: 3.2rem;
  line-height: 1.3;
  margin-bottom: 1.5rem;
  color: var(--charcoal);
  font-weight: 400;
}

.hero-title span.accent {
  color: var(--warm-brown);
  font-style: italic;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 2.5rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2.2rem;
  background: var(--warm-brown);
  color: var(--white);
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  letter-spacing: 0.03em;
}

.hero-cta:hover {
  background: var(--light-brown);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(181, 131, 74, 0.3);
}

/* ===== Section Spacing ===== */
.section {
  padding: 100px 0;
  position: relative;
}

.section-cream {
  background-color: var(--cream);
}

.section-beige {
  background-color: var(--beige);
}

.section-sand {
  background-color: var(--warm-sand);
}

.section-deeper {
  background-color: var(--deep-sand);
}

.section-darkest {
  background-color: var(--darker-sand);
}

/* ===== About Section ===== */
.about-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 3rem;
  align-items: start;
}

.about-photo {
  width: 200px;
  height: 260px;
  border-radius: 4px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.about-photo-placeholder {
  width: 200px;
  height: 260px;
  border-radius: 4px;
  background: var(--beige);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.about-text h3 {
  font-size: 1.6rem;
  margin-bottom: 0.3rem;
}

.about-text .subtitle {
  color: var(--warm-brown);
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.9;
}

.credentials {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.credential-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.credential-item .icon {
  width: 20px;
  height: 20px;
  color: var(--warm-brown);
}

/* ===== Services Grid ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.service-card {
  background: var(--white);
  border-radius: 8px;
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  text-decoration: none;
  color: inherit;
  display: block;
  border: 1px solid transparent;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border-light);
}

.service-card .card-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--soft-beige);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  font-size: 1.3rem;
  color: var(--warm-brown);
}

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
  font-family: "Noto Sans SC", sans-serif;
  font-weight: 600;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== Quote Section ===== */
.quote-section {
  padding: 80px 0;
  text-align: center;
  background: var(--soft-beige);
  position: relative;
}

.quote-section blockquote {
  max-width: 680px;
  margin: 0 auto;
  font-family: "Noto Serif SC", serif;
  font-size: 1.5rem;
  line-height: 1.8;
  color: var(--charcoal);
  font-style: italic;
  position: relative;
}

.quote-section blockquote::before {
  content: '"';
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 5rem;
  color: var(--beige);
  line-height: 1;
  font-style: normal;
}

.quote-author {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: var(--warm-brown);
}

/* ===== Approach Section ===== */
.approach-points {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}

.approach-point {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.approach-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--beige);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Noto Serif SC", serif;
  font-size: 1.1rem;
  color: var(--warm-brown);
}

.approach-point h3 {
  font-family: "Noto Sans SC", sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.approach-point p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== Contact Section ===== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2.5rem;
}

.contact-info h3 {
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.8rem;
}

.contact-item .contact-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--beige);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--warm-brown);
  font-size: 1rem;
}

.contact-item .label {
  font-size: 0.8rem;
  color: var(--charcoal);
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.2rem;
}

.contact-item .value {
  font-size: 1.05rem;
  color: var(--charcoal);
}

.contact-item .value a {
  color: var(--warm-brown);
}

/* --- 深色区块文字高对比度覆写 --- */
.section-darkest .contact-item .label {
  color: rgba(47,45,38,0.85);
}
.section-darkest .contact-item .value a,
.section-darkest a[href^="tel"] {
  color: #2F2D26;
}

.map-wrapper {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 420px;
}

#map-container {
  width: 100%;
  height: 100%;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--footer-bg);
  padding: 3rem 0 2rem;
  text-align: center;
  border-top: none;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--footer-text);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--light-brown);
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--footer-text);
  opacity: 0.7;
  line-height: 1.8;
}

.footer-copy a {
  color: var(--footer-text);
}

.footer-copy a:hover {
  color: var(--light-brown);
}

/* ===== Page Header (for sub-pages) ===== */
.page-header {
  padding: 140px 0 60px;
  text-align: center;
  background: linear-gradient(180deg, var(--white) 0%, var(--cream) 100%);
}

.page-header h1 {
  font-size: 2.2rem;
  margin-bottom: 0.8rem;
}

.page-header p {
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
}

/* ===== Content Page ===== */
.content-page {
  padding: 60px 0 100px;
}

.content-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 2rem;
}

.content-body p {
  margin-bottom: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.9;
  text-indent: 2em;
}

.content-body h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.content-body h3 {
  margin-top: 2rem;
  margin-bottom: 0.8rem;
  font-size: 1.2rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--warm-brown);
  font-size: 0.95rem;
  margin-top: 3rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--border-light);
  transition: all var(--transition);
}

.back-link:hover {
  border-bottom-color: var(--warm-brown);
}

/* ===== Animations ===== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media screen and (max-width: 800px) {
  :root { --max-width: 100%; }

  .site-header { background: rgba(240, 234, 214, 0.98); }

  .menu-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transform: translateX(100%);
    transition: transform var(--transition);
    z-index: 999;
  }

  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.2rem; }

  .hero { min-height: auto; padding: 120px 1.5rem 60px; }
  .hero-title { font-size: 2rem; }
  .hero-desc { font-size: 1rem; }

  .about-layout {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .about-photo, .about-photo-placeholder {
    margin: 0 auto;
  }

  .services-grid { grid-template-columns: 1fr; }
  .approach-points { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .map-wrapper { height: 300px; }

  .section { padding: 60px 0; }
  .section-title { font-size: 1.6rem; }

  .content-page { padding: 40px 0 60px; }
  .page-header { padding: 110px 0 40px; }
  .page-header h1 { font-size: 1.6rem; }
}

@media screen and (min-width: 801px) and (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
