/* Chengdu Dental Guide — Western clinic-directory UX: calm teal/blues, generous whitespace */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

:root {
  --teal-900: #0f3d3a;
  --teal-800: #0f766e;
  --teal-700: #0d9488;
  --teal-600: #14b8a6;
  --teal-100: #ccfbf1;
  --teal-50: #f0fdfa;
  --blue-50: #eff6ff;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #fff;
  --amber-50: #fffbeb;
  --amber-700: #b45309;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .06);
  --shadow-lg: 0 4px 16px rgba(15, 23, 42, .08), 0 20px 48px rgba(15, 23, 42, .08);
  --max: 1120px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-zh: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--slate-900);
  background: var(--slate-50);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
}
html[lang^="zh"] body,
body:lang(zh),
html[lang="zh-CN"] body { font-family: var(--font-zh), var(--font); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-800); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--teal-700); }
h1, h2, h3, h4 { line-height: 1.22; letter-spacing: -0.025em; margin: 0 0 .55em; color: var(--slate-900); font-weight: 700; }
h1 { font-size: clamp(1.85rem, 4.2vw, 2.65rem); }
h2 { font-size: clamp(1.35rem, 2.8vw, 1.85rem); }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; color: var(--slate-700); }
ul { margin: 0 0 1em; padding-left: 1.2em; color: var(--slate-700); }
.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--teal-800); color: #fff; padding: .5rem 1rem;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--slate-200);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 1rem 0; flex-wrap: wrap;
}
.brand {
  display: flex; align-items: center; gap: .7rem;
  text-decoration: none; color: var(--slate-900); font-weight: 700;
}
.brand img { width: 36px; height: 36px; }
.brand small {
  display: block; font-weight: 500; font-size: .72rem;
  color: var(--slate-500); letter-spacing: 0;
}
.nav {
  display: flex; align-items: center; gap: .4rem 1.1rem; flex-wrap: wrap;
  font-size: .92rem;
}
.nav a {
  text-decoration: none; color: var(--slate-700); font-weight: 500;
  padding: .35rem .15rem;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--teal-800); }
.nav-cta {
  background: var(--teal-800) !important; color: #fff !important;
  padding: .5rem 1.05rem !important; border-radius: 999px;
  text-decoration: none !important;
}
.nav-cta:hover { background: var(--teal-700) !important; }

.lang-switch { position: relative; font-size: .85rem; }
.lang-switch summary {
  list-style: none; cursor: pointer; padding: .4rem .75rem;
  border: 1px solid var(--slate-200); border-radius: 999px;
  background: var(--white); color: var(--slate-700); font-weight: 500;
}
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch[open] summary { border-color: var(--teal-700); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + .35rem);
  background: var(--white); border: 1px solid var(--slate-200);
  border-radius: var(--radius); box-shadow: var(--shadow);
  min-width: 148px; padding: .4rem; z-index: 60;
}
[dir="rtl"] .lang-menu { right: auto; left: 0; }
.lang-menu a {
  display: block; padding: .45rem .65rem; border-radius: 8px;
  text-decoration: none; color: var(--slate-700);
}
.lang-menu a:hover, .lang-menu a[aria-current="true"] {
  background: var(--teal-50); color: var(--teal-800);
}

.hero {
  background:
    radial-gradient(ellipse 70% 55% at 8% 0%, rgba(13,148,136,.14), transparent),
    radial-gradient(ellipse 50% 45% at 92% 15%, rgba(59,130,246,.08), transparent),
    linear-gradient(180deg, var(--white) 0%, var(--teal-50) 100%);
  padding: 3rem 0 3.25rem;
  border-bottom: 1px solid var(--slate-200);
}
.hero-grid { display: grid; gap: 2.25rem; align-items: center; }
@media (min-width: 860px) {
  .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 2.75rem; }
}
.eyebrow {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .78rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .07em; color: var(--teal-800);
  background: var(--teal-100); padding: .35rem .8rem; border-radius: 999px;
  margin-bottom: 1.1rem;
}
.hero .lead {
  font-size: 1.12rem; color: var(--slate-600); max-width: 38rem;
  margin-bottom: .35rem;
}
.hero-support {
  font-size: 1.05rem; color: var(--slate-600); max-width: 38rem;
  margin: 0 0 1.1rem;
}
.direct-answer {
  background: var(--white); border: 1px solid var(--slate-200);
  border-left: 4px solid var(--teal-800); border-radius: var(--radius);
  padding: 1.05rem 1.2rem; margin: 1.35rem 0; box-shadow: var(--shadow);
}
[dir="rtl"] .direct-answer { border-left: 1px solid var(--slate-200); border-right: 4px solid var(--teal-800); }
.direct-answer strong { color: var(--slate-900); }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.6rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .75rem 1.35rem; border-radius: 999px; font-weight: 600;
  font-size: .95rem; text-decoration: none; border: 2px solid transparent;
  cursor: pointer; transition: .15s ease;
}
.btn-primary { background: var(--teal-800); color: #fff; }
.btn-primary:hover { background: var(--teal-700); color: #fff; }
.btn-secondary {
  background: var(--white); color: var(--teal-800);
  border-color: var(--teal-800);
}
.btn-secondary:hover { background: var(--teal-50); color: var(--teal-800); }
.btn-ghost {
  background: transparent; color: var(--slate-700);
  border-color: var(--slate-300);
}
.btn-ghost:hover { border-color: var(--teal-700); color: var(--teal-800); }

.hero-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 1.65rem; box-shadow: var(--shadow-lg);
  border: 1px solid var(--slate-200);
}
.hero-card h2 { font-size: 1.08rem; margin-bottom: .9rem; }
.hero-card ol { margin: 0; padding-left: 1.2em; color: var(--slate-700); }
.hero-card li { margin-bottom: .6rem; }
[dir="rtl"] .hero-card ol { padding-left: 0; padding-right: 1.2em; }

.trust-strip {
  background: var(--white); border-bottom: 1px solid var(--slate-200);
  padding: 1.4rem 0;
}
.trust-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem;
  text-align: center;
}
@media (min-width: 700px) {
  .trust-grid { grid-template-columns: repeat(4, 1fr); }
}
.trust-item strong { display: block; color: var(--teal-800); font-size: .95rem; }
.trust-item span { font-size: .8rem; color: var(--slate-500); }

.section { padding: 3.25rem 0; }
.section-alt { background: var(--white); border-block: 1px solid var(--slate-200); }
.section-head { margin-bottom: 1.85rem; max-width: 42rem; }
.section-head p { margin-bottom: 0; }

/* Map */
.map-wrap {
  background: var(--white); border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow);
}
#clinic-map {
  width: 100%; height: min(52vw, 420px); min-height: 280px;
  background: var(--slate-100);
}
.map-legend {
  display: flex; flex-wrap: wrap; gap: .65rem 1.25rem;
  padding: .9rem 1.15rem; font-size: .85rem; color: var(--slate-600);
  border-top: 1px solid var(--slate-100);
}
.map-legend .dot {
  display: inline-block; width: .7rem; height: .7rem; border-radius: 50%;
  margin-right: .35rem; vertical-align: middle;
}
.map-legend .dot-clinic { background: var(--teal-800); }
.map-legend .dot-you { background: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.25); }
.map-note { font-size: .8rem; color: var(--slate-500); margin: .75rem 0 0; }
.leaflet-popup-content { margin: .65rem .85rem; font-size: .9rem; line-height: 1.4; }
.leaflet-popup-content strong { display: block; margin-bottom: .2rem; }

.clinic-grid {
  display: grid; gap: 1.35rem;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .clinic-grid { grid-template-columns: repeat(3, 1fr); }
}
.clinic-card {
  background: var(--white); border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg); padding: 1.45rem; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: .7rem;
  transition: transform .15s ease, box-shadow .15s ease;
}
.clinic-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.clinic-card .badge {
  align-self: flex-start; font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em;
  background: var(--teal-50); color: var(--teal-800);
  padding: .28rem .6rem; border-radius: 999px;
}
.clinic-card h3 { margin: 0; font-size: 1.12rem; }
.clinic-card .zh-name { color: var(--slate-500); font-size: .9rem; margin: 0; }
.clinic-card .meta { font-size: .88rem; color: var(--slate-600); margin: 0; }
.clinic-card .card-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: .5rem; padding-top: .35rem; }

.tag-list {
  display: flex; flex-wrap: wrap; gap: .4rem; margin: .15rem 0 .25rem;
  list-style: none; padding: 0;
}
.tag-list li {
  font-size: .72rem; font-weight: 600; line-height: 1.35;
  color: var(--teal-900); background: var(--teal-50);
  border: 1px solid var(--teal-100); padding: .3rem .55rem;
  border-radius: 8px; max-width: 100%;
}

.steps {
  display: grid; gap: 1.1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}
.step {
  background: var(--white); border: 1px solid var(--slate-200);
  border-radius: var(--radius); padding: 1.35rem;
}
.step-num {
  width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--teal-800); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .9rem; margin-bottom: .75rem;
}

.faq-list { display: grid; gap: .75rem; max-width: 48rem; }
.faq-item {
  background: var(--white); border: 1px solid var(--slate-200);
  border-radius: var(--radius); padding: 0; overflow: hidden;
}
.faq-item summary {
  cursor: pointer; font-weight: 600; padding: 1.05rem 1.2rem;
  list-style: none; color: var(--slate-900);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; float: right; color: var(--teal-800); font-weight: 700;
}
[dir="rtl"] .faq-item summary::after { float: left; }
.faq-item[open] summary::after { content: "−"; }
.faq-item .faq-a {
  padding: 0 1.2rem 1.15rem; color: var(--slate-700); margin: 0;
  border-top: 1px solid var(--slate-100); padding-top: .9rem;
}

.notice {
  background: var(--amber-50); border: 1px solid #fde68a;
  color: var(--amber-700); border-radius: var(--radius);
  padding: .85rem 1rem; font-size: .9rem; margin: 1rem 0;
}
.tbd {
  display: inline-block; background: var(--slate-100); color: var(--slate-500);
  font-size: .75rem; font-weight: 600; padding: .1rem .4rem;
  border-radius: 4px; vertical-align: middle;
}

.page-header {
  background: linear-gradient(180deg, var(--white), var(--teal-50));
  padding: 2.15rem 0 1.65rem; border-bottom: 1px solid var(--slate-200);
}
.breadcrumb { font-size: .85rem; color: var(--slate-500); margin-bottom: .75rem; }
.breadcrumb a { text-decoration: none; color: var(--slate-600); }
.breadcrumb a:hover { color: var(--teal-800); }

.prose { max-width: 44rem; }
.prose h2 { margin-top: 1.85rem; }
.prose h3 { margin-top: 1.25rem; }
.entity-box {
  background: var(--white); border: 1px solid var(--slate-200);
  border-radius: var(--radius); padding: 1.35rem; margin: 1.25rem 0;
}
.entity-box dl { margin: 0; display: grid; gap: .7rem; }
.entity-box dt {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .04em;
  color: var(--slate-500); font-weight: 700; margin: 0;
}
.entity-box dd { margin: .15rem 0 0; color: var(--slate-800); }

.detail-layout {
  display: grid; gap: 1.5rem; max-width: 52rem;
}
.detail-section {
  background: var(--white); border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg); padding: 1.45rem 1.5rem; box-shadow: var(--shadow);
}
.detail-section h2 { font-size: 1.2rem; margin-bottom: .85rem; }
.source-note {
  font-size: .8rem; color: var(--slate-500); margin-top: 1rem;
  padding-top: .75rem; border-top: 1px solid var(--slate-100);
}
.news-list, .honor-list, .doctor-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.news-item, .doctor-card-sm {
  padding: .85rem 0; border-bottom: 1px solid var(--slate-100);
}
.news-item:last-child, .doctor-card-sm:last-child { border-bottom: 0; padding-bottom: 0; }
.news-item a { font-weight: 600; text-decoration: none; color: var(--slate-900); }
.news-item a:hover { color: var(--teal-800); }
.news-meta { font-size: .8rem; color: var(--slate-500); margin-top: .25rem; }
.news-badge {
  display: inline-block; font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .03em;
  background: var(--blue-50); color: #1d4ed8;
  padding: .15rem .45rem; border-radius: 6px; margin-right: .35rem;
}
.honor-list li {
  position: relative; padding-left: 1.1rem; color: var(--slate-700); font-size: .95rem;
}
.honor-list li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: .45rem; height: .45rem; border-radius: 50%; background: var(--teal-700);
}
.doctor-card-sm h3 { margin: 0 0 .25rem; font-size: 1.02rem; }
.doctor-card-sm .role { font-size: .85rem; color: var(--teal-800); font-weight: 600; margin: 0 0 .35rem; }
.doctor-card-sm p { font-size: .9rem; margin: 0; }

.contact-grid { display: grid; gap: 2rem; }
@media (min-width: 800px) {
  .contact-grid { grid-template-columns: 1.1fr .9fr; }
}
.form-card, .contact-side {
  background: var(--white); border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg); padding: 1.55rem; box-shadow: var(--shadow);
}
.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block; font-weight: 600; font-size: .88rem; margin-bottom: .35rem;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: .7rem .85rem; border: 1px solid var(--slate-300);
  border-radius: 10px; font: inherit; background: var(--slate-50);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: 2px solid var(--teal-700); outline-offset: 1px; background: #fff;
}
.form-note { font-size: .85rem; color: var(--slate-500); margin-top: .75rem; }
.channel-list { list-style: none; padding: 0; margin: 0; }
.channel-list li {
  padding: .9rem 0; border-bottom: 1px solid var(--slate-100);
}
.channel-list li:last-child { border-bottom: 0; }
.channel-list strong { display: block; color: var(--slate-900); }
.channel-list span, .channel-list a { font-size: .92rem; }

.cta-band {
  background: var(--teal-900); color: #fff; padding: 2.75rem 0;
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.85); max-width: 34rem; margin-inline: auto; }
.cta-band .btn-primary { background: #fff; color: var(--teal-900); }
.cta-band .btn-primary:hover { background: var(--teal-100); color: var(--teal-900); }
.cta-band .btn-secondary {
  background: transparent; color: #fff; border-color: rgba(255,255,255,.5);
}
.cta-band .btn-secondary:hover { border-color: #fff; background: rgba(255,255,255,.08); color: #fff; }

.site-footer {
  background: var(--slate-900); color: var(--slate-300);
  padding: 2.75rem 0 1.6rem; font-size: .9rem;
}
.footer-grid {
  display: grid; gap: 1.5rem; grid-template-columns: 1fr; margin-bottom: 2rem;
}
@media (min-width: 700px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}
.site-footer a { color: var(--slate-300); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer h3 { color: #fff; font-size: .95rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .4rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1rem; font-size: .8rem; color: var(--slate-500);
}
.disclaimer {
  font-size: .8rem; color: var(--slate-500); max-width: 48rem; margin-top: 1rem;
}

.mobile-cta {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
  background: rgba(255,255,255,.97); backdrop-filter: blur(10px);
  border-top: 1px solid var(--slate-200);
  padding: .7rem 1rem; gap: .55rem;
  padding-bottom: max(.7rem, env(safe-area-inset-bottom));
}
@media (max-width: 699px) {
  .mobile-cta { display: flex; }
  body { padding-bottom: 4.75rem; }
  .mobile-cta .btn { flex: 1; padding: .7rem .5rem; font-size: .9rem; }
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.muted { color: var(--slate-500); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }

/* Priority concerns — foreigner top answers (home) */
.priority-band {
  background: linear-gradient(180deg, var(--teal-50) 0%, var(--white) 100%);
  border-bottom: 1px solid var(--teal-100);
  padding: 2.75rem 0 3rem;
}
.priority-band .section-head { max-width: 40rem; }
.priority-band .section-head .eyebrow {
  display: inline-block; margin-bottom: .55rem;
  font-size: .75rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--teal-800);
}
.priority-grid {
  display: grid; gap: 1.15rem;
  grid-template-columns: 1fr;
}
@media (min-width: 800px) {
  .priority-grid { grid-template-columns: repeat(3, 1fr); }
}
.priority-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-top: 4px solid var(--teal-700);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.4rem 1.45rem;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: .65rem;
}
.priority-card .priority-num {
  width: 1.85rem; height: 1.85rem; border-radius: 50%;
  background: var(--teal-800); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .85rem; flex-shrink: 0;
}
.priority-card h3 {
  margin: 0; font-size: 1.08rem; display: flex; align-items: center; gap: .65rem;
}
.priority-card p { margin: 0; font-size: .92rem; color: var(--slate-700); }
.priority-card .ask-label {
  font-size: .78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; color: var(--teal-800); margin: 0;
}
.priority-card .ask-list {
  margin: .15rem 0 0; padding-left: 1.1em; font-size: .88rem; color: var(--slate-600);
}
.priority-card .ask-list li { margin-bottom: .25rem; }
.priority-foot {
  margin-top: 1.35rem; font-size: .9rem; color: var(--slate-600);
  display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center;
}
.priority-foot a { font-weight: 600; }

/* Guide checklist blocks */
.checklist-block {
  background: var(--white); border: 1px solid var(--slate-200);
  border-radius: var(--radius); padding: 1.15rem 1.25rem; margin: 1rem 0;
}
.checklist-block h3 { margin: 0 0 .55rem; font-size: 1.05rem; }
.checklist-block .ask-label {
  font-size: .78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; color: var(--teal-800); margin: .65rem 0 .3rem;
}
.audience-split {
  display: grid; gap: 1rem; margin: 1.25rem 0;
}
@media (min-width: 700px) {
  .audience-split { grid-template-columns: 1fr 1fr; }
}
.audience-card {
  background: var(--teal-50); border: 1px solid var(--teal-100);
  border-radius: var(--radius); padding: 1.1rem 1.2rem;
}
.audience-card h3 { margin: 0 0 .45rem; font-size: 1rem; color: var(--teal-900); }
.audience-card ul { margin-bottom: 0; }

/* Clinic detail — locations + map */
.location-list {
  list-style: none; padding: 0; margin: 0 0 1.25rem;
  display: grid; gap: .85rem;
}
.location-card {
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  background: var(--slate-50);
}
.location-card h3 {
  font-size: 1.02rem; margin: 0 0 .55rem; color: var(--slate-900);
}
.location-card dl {
  margin: 0; display: grid; gap: .35rem;
}
.location-card dl > div {
  display: grid; grid-template-columns: 4.5rem 1fr; gap: .35rem .6rem;
  align-items: start; font-size: .92rem;
}
.location-card dt {
  margin: 0; color: var(--slate-500); font-weight: 600; font-size: .78rem;
  text-transform: uppercase; letter-spacing: .03em; padding-top: .12rem;
}
.location-card dd { margin: 0; color: var(--slate-800); }
.detail-section .map-wrap { margin-top: .25rem; }
.detail-section #clinic-map {
  height: min(48vw, 360px); min-height: 240px;
}

.clinic-group-title{font-size:1.15rem;margin:1.75rem 0 0.25rem;}
.clinic-group-title+.zh-name{margin-bottom:0.75rem;}
