:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --text: #1a1d26;
  --text-muted: #5c6370;
  --accent: #1a5f5a;
  --accent-hover: #144a46;
  --accent-soft: #e8f3f2;
  --border: #e4e7ec;
  --shadow: 0 1px 2px rgba(26, 29, 38, 0.04), 0 8px 24px rgba(26, 29, 38, 0.06);
  --radius: 12px;
  --max: 1080px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 4.5rem;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

img { max-width: 100%; display: block; }

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 248, 250, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 3.75rem;
  gap: 1rem;
}

.logo {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.logo span {
  color: var(--accent);
  font-weight: 500;
  font-size: 0.85rem;
  margin-left: 0.35rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav a {
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 0.4rem 0.65rem;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}

.nav a:hover {
  color: var(--accent);
  background: var(--accent-soft);
}

.nav-cta {
  display: none;
  margin-left: 0.5rem;
  background: var(--accent) !important;
  color: #fff !important;
  padding: 0.45rem 0.9rem !important;
  border-radius: 8px !important;
  font-weight: 500;
}

.nav-cta:hover { background: var(--accent-hover) !important; }

.menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 2.5rem;
  height: 2.5rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
}

.menu-btn span {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

.menu-btn[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.5rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
  box-shadow: 0 4px 14px rgba(26, 95, 90, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.btn-ghost:hover {
  background: var(--accent-soft);
  color: var(--accent-hover);
}

/* Sections */
section { padding: 3.5rem 0; }

.section-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.4rem, 3vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}

.section-desc {
  color: var(--text-muted);
  max-width: 36em;
  margin-bottom: 2rem;
}

/* Services cards */
.services {
  background: var(--surface);
  border-block: 1px solid var(--border);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.35rem;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.services .card { background: var(--surface); }

.card:hover {
  border-color: #c5ddd9;
  box-shadow: var(--shadow);
}

a.card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  height: 100%;
}

a.card-link:hover { color: inherit; }

a.card-link .card { height: 100%; cursor: pointer; }

a.card-link:hover .card {
  border-color: #c5ddd9;
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.card-more {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.85rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
}

a.card-link:hover .card-more { color: var(--accent-hover); }

.card-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.9rem;
}

.card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
}

.card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Scenarios */
.scenario-groups {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.scenario-group {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
}

.scenario-group h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.75rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--border);
}

.scenario-group ul { list-style: none; }

.scenario-group li {
  font-size: 0.92rem;
  color: var(--text);
  padding: 0;
  position: relative;
  line-height: 1.55;
}

.scenario-group li a {
  display: block;
  padding: 0.45rem 0.35rem 0.45rem 1rem;
  margin: 0 -0.35rem;
  border-radius: 6px;
  color: var(--text);
  text-decoration: none;
  position: relative;
  transition: background 0.15s, color 0.15s;
  cursor: pointer;
}

.scenario-group li a::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.45;
}

.scenario-group li a:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.scenario-group li a:hover::before { opacity: 1; }

/* About */
.about {
  background: var(--surface);
  border-block: 1px solid var(--border);
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 720px) {
  .about-layout {
    grid-template-columns: 1fr 1.4fr;
    gap: 3rem;
    align-items: start;
  }
}

.about-aside {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  text-align: center;
}

.about-aside .name {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.about-aside .role {
  color: var(--accent);
  font-weight: 500;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.about-meta {
  list-style: none;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.about-meta li {
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--border);
}

.about-meta li:last-child { border-bottom: none; }

.about-body p {
  margin-bottom: 1rem;
  color: var(--text);
  font-size: 0.98rem;
}

.about-body p:last-child { margin-bottom: 0; }

.principle {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  padding: 1rem 1.15rem;
  border-radius: 0 8px 8px 0;
  font-size: 0.95rem;
  margin-top: 0.5rem;
}

/* Cases */
.cases-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.case-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.case-item:hover {
  border-color: #c5ddd9;
  box-shadow: var(--shadow);
}

.case-num {
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.case-item h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.case-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Contact */
.contact {
  background: var(--surface);
  border-block: 1px solid var(--border);
}

.contact-box {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem 1.75rem;
}

@media (min-width: 640px) {
  .contact-box {
    grid-template-columns: 1fr auto;
    padding: 2.5rem;
    gap: 2.5rem;
  }
}

.contact-box h2 {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.contact-box p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  max-width: 28em;
}

.qr-wrap {
  flex-shrink: 0;
  margin-inline: auto;
  text-align: center;
}

.qr-wrap img {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border, #d8e0de);
  background: #fff;
  display: block;
  margin-inline: auto;
}

@media (max-width: 640px) {
  .qr-wrap img {
    width: min(260px, 72vw);
    height: min(260px, 72vw);
  }
}

.qr-caption {
  margin-top: 0.65rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
}

.qr-hint {
  margin-top: 0.2rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin-top: 0.25rem;
}

.contact-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1rem;
  font-weight: 600;
  color: var(--accent, #1a5f5a);
  text-decoration: none;
  font-size: 1.05rem;
}

.contact-phone:hover { text-decoration: underline; }

.site-footer .phone {
  margin: 0.35rem 0 0.75rem;
  font-size: 0.95rem;
}

.site-footer .phone a {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}

.site-footer .phone a:hover { text-decoration: underline; }

.site-footer {
  padding: 2.5rem 0 2rem;
  text-align: center;
}

.site-footer .brand {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.site-footer .disclaimer {
  font-size: 0.8rem;
  color: var(--text-muted);
  max-width: 32em;
  margin: 0 auto 1rem;
  line-height: 1.6;
}

.site-footer .copy {
  font-size: 0.8rem;
  color: #9aa0a8;
}

/* Mobile nav */
@media (max-width: 860px) {
  .menu-btn { display: flex; }

  .nav {
    display: none;
    position: absolute;
    top: 3.75rem;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1rem 1rem;
    gap: 0.15rem;
    box-shadow: 0 12px 24px rgba(0,0,0,0.06);
  }

  .nav.open { display: flex; }

  .nav a {
    padding: 0.7rem 0.85rem;
    font-size: 1rem;
  }

  .nav-cta {
    display: block;
    text-align: center;
    margin: 0.5rem 0 0;
  }
}

@media (min-width: 861px) {
  .nav-cta { display: inline-flex; }
}

/* Hero */
.hero { padding: 4.5rem 0 3.5rem; }

.hero-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}

.hero h1 {
  font-size: clamp(1.75rem, 4.5vw, 2.35rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
  max-width: 16em;
  margin-bottom: 1rem;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.hero-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 800px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2.5rem;
  }
  .hero { padding: 3.5rem 0 3rem; }
}

.hero-photo {
  position: relative;
  margin-inline: auto;
  width: min(100%, 340px);
}

@media (min-width: 800px) {
  .hero-photo { width: 100%; max-width: 400px; margin-inline: 0 0 auto; }
}

.hero-photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  background: #e8ecef;
}

.hero-photo-caption {
  margin-top: 0.65rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

.about-portrait {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px var(--border), var(--shadow);
  margin-bottom: 1rem;
}

@media (min-width: 720px) {
  .about-aside { text-align: left; }
  .about-portrait { margin-inline: 0; }
}

.gallery { background: var(--bg); }

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

.gallery-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.gallery-item:hover {
  border-color: #c5ddd9;
  box-shadow: var(--shadow);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: #e8ecef;
}

.gallery-item .gallery-caption {
  padding: 0.75rem 0.9rem 0.95rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.gallery-item .gallery-caption strong {
  display: block;
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.15rem;
}

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

/* —— Service detail pages —— */
.page-hero {
  padding: 2.5rem 0 2rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { margin: 0 0.35rem; color: #c0c4cc; }

.page-hero h1 {
  font-size: clamp(1.5rem, 3.5vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.65rem;
}

.page-hero .lead {
  color: var(--text-muted);
  max-width: 40em;
  font-size: 1.02rem;
}

.detail-section { padding: 2.25rem 0; }

.detail-section h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text);
}

.pain-list, .do-list, .faq-list, .for-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.pain-list li, .do-list li, .for-list li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  font-size: 0.95rem;
  position: relative;
  padding-left: 2.5rem;
}

.pain-list li::before,
.do-list li::before,
.for-list li::before {
  position: absolute;
  left: 1rem;
  top: 0.95rem;
  font-weight: 700;
  color: var(--accent);
  font-size: 0.85rem;
}

.pain-list li::before { content: "!"; }
.do-list li::before { content: "✓"; }
.for-list li::before { content: "·"; font-size: 1.2rem; line-height: 1; }

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  scroll-margin-top: 5rem;
}

.faq-item + .faq-item { margin-top: 0.75rem; }

.faq-item h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
  color: var(--text);
}

.faq-item p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.detail-cta-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.related-services {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.related-services a {
  display: inline-flex;
  padding: 0.4rem 0.85rem;
  background: var(--accent-soft);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
}

.related-services a:hover {
  background: var(--accent);
  color: #fff;
}

.back-row {
  margin-top: 1.5rem;
  font-size: 0.9rem;
}

/* Mobile sticky CTA — hidden on desktop */
.mobile-cta-bar { display: none; }

@media (max-width: 860px) {
  body.has-mobile-cta { padding-bottom: 4.5rem; }
  .mobile-cta-bar {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 90;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--border);
    padding: 0.55rem 0.75rem calc(0.55rem + env(safe-area-inset-bottom, 0px));
    gap: 0.5rem;
    box-shadow: 0 -6px 20px rgba(26, 29, 38, 0.08);
  }
  .mobile-cta-bar a {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.72rem 0.5rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
  }
  .mobile-cta-wechat { background: var(--accent); color: #fff !important; }
  .mobile-cta-wechat:hover { background: var(--accent-hover); color: #fff !important; }
  .mobile-cta-phone {
    background: var(--accent-soft);
    color: var(--accent) !important;
    border: 1px solid #c5ddd9;
  }
}

.page-404 {
  padding: 5rem 0;
  text-align: center;
}

.page-404 h1 {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.page-404 p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
