/* ============================================================
   ChinaMed Access — global stylesheet
   Extracted from the approved homepage prototype.
   Light, readable, AdSense-friendly. No external font deps.
   ============================================================ */

:root {
  --bg: #f7f9fc;
  --card: #ffffff;
  --text: #1a2332;
  --muted: #5f6b7a;
  --accent: #0d6e6e;
  --accent-light: #e6f4f4;
  --accent-hover: #0a5a5a;
  --border: #e2e8f0;
  --radius: 14px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 4px 24px rgba(0, 0, 0, 0.08);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }

.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* ===== NAV ===== */
.nav {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}
.logo {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}
.logo:hover { color: var(--accent); }
.logo span { color: var(--text); font-weight: 500; }
.nav-links { display: flex; gap: 22px; list-style: none; align-items: center; }
.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--accent); }
.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--border); border-radius: 8px;
  padding: 8px 11px; cursor: pointer; color: var(--text); font-size: 14px;
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, #0d6e6e 0%, #0a4f4f 100%);
  color: #fff;
  padding: 64px 0 56px;
}
.hero h1 {
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.03em;
  max-width: 640px;
  margin-bottom: 16px;
}
.hero p {
  font-size: 1.05rem;
  opacity: 0.9;
  max-width: 560px;
  margin-bottom: 32px;
  line-height: 1.7;
}
.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; margin-top: 8px; }
.hero-stat .num { font-size: 1.8rem; font-weight: 800; letter-spacing: -0.02em; }
.hero-stat .label { font-size: 0.8rem; opacity: 0.75; margin-top: 2px; }

/* ===== QUICK NAV ===== */
.quick-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: -36px;
  position: relative;
  z-index: 10;
}
.quick-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 18px;
  text-decoration: none;
  color: var(--text);
  transition: box-shadow 0.2s, transform 0.2s;
  display: block;
}
.quick-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); color: var(--text); }
.quick-card .icon {
  width: 36px; height: 36px; border-radius: 9px;
  background: var(--accent-light); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; margin-bottom: 12px;
}
.quick-card h3 { font-size: 0.9rem; font-weight: 700; margin-bottom: 4px; }
.quick-card p { font-size: 0.78rem; color: var(--muted); line-height: 1.5; }

/* ===== SECTION ===== */
.section { padding: 56px 0; }
.section-alt { background: #fff; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 24px; gap: 16px; }
.section-head h2 { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; }
.section-head a { font-size: 0.85rem; color: var(--accent); text-decoration: none; font-weight: 600; white-space: nowrap; }
.section-head a:hover { text-decoration: underline; }

/* ===== CARDS / GRID ===== */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.info-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px; display: flex; flex-direction: column;
  transition: box-shadow 0.2s;
}
.info-card:hover { box-shadow: var(--shadow-lg); }
.info-card .city-tag {
  display: inline-block; align-self: flex-start;
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--accent); background: var(--accent-light); padding: 3px 8px; border-radius: 4px;
  margin-bottom: 10px; text-decoration: none;
}
.info-card h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 6px; line-height: 1.35; }
.info-card h3 a { color: var(--text); text-decoration: none; }
.info-card h3 a:hover { color: var(--accent); }
.info-card .meta { font-size: 0.78rem; color: var(--muted); line-height: 1.6; margin-bottom: 8px; }
.info-card .meta strong { color: var(--text); font-weight: 600; }
.info-card .langs { display: flex; flex-wrap: wrap; gap: 4px; margin-top: auto; padding-top: 10px; }
.lang-tag {
  font-size: 0.68rem; padding: 2px 7px; border-radius: 4px;
  background: #f1f5f9; color: var(--muted); font-weight: 500;
}

/* ===== TABLE ===== */
.table-wrap { overflow-x: auto; }
.cost-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  font-size: 0.875rem;
  border: 1px solid var(--border);
}
.cost-table thead { background: #f1f5f9; }
.cost-table th {
  padding: 14px 16px; text-align: left; font-weight: 700;
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--muted);
}
.cost-table td { padding: 13px 16px; border-top: 1px solid var(--border); }
.cost-table .cn { color: var(--accent); font-weight: 700; }
.cost-table .us { color: var(--muted); }
.table-note { font-size: 0.75rem; color: var(--muted); margin-top: 10px; line-height: 1.5; }

/* ===== STEPS ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  counter-reset: step;
}
.step { position: relative; padding: 0 20px 0 0; counter-increment: step; }
.step::before {
  content: counter(step);
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 800; font-size: 0.95rem;
  margin-bottom: 14px;
}
.step h3 { font-size: 0.9rem; font-weight: 700; margin-bottom: 6px; }
.step p { font-size: 0.8rem; color: var(--muted); line-height: 1.6; }
.step-connector {
  position: absolute; top: 20px; right: 0; width: calc(100% - 52px);
  height: 2px; background: var(--border); left: 52px;
}
.step:last-child .step-connector { display: none; }

/* ===== ARTICLE / CONTENT PAGE ===== */
.page-header { padding: 40px 0 8px; }
.breadcrumb { font-size: 0.8rem; color: var(--muted); margin-bottom: 12px; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.page-header h1 { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.2; margin-bottom: 10px; }
.page-header .lede { color: var(--muted); font-size: 1rem; max-width: 720px; }
.page-body { padding: 24px 0 48px; }
.page-body h2 { font-size: 1.3rem; font-weight: 800; margin: 40px 0 14px; letter-spacing: -0.02em; }
.page-body h3 { font-size: 1.05rem; font-weight: 700; margin: 28px 0 10px; }
.page-body p { margin-bottom: 18px; }
.page-body ul, .page-body ol { margin-bottom: 20px; padding-left: 26px; }
.page-body li { margin-bottom: 8px; }
.page-body strong { font-weight: 700; }
.page-body blockquote {
  margin: 0 0 22px; padding: 4px 0 4px 18px;
  border-left: 4px solid var(--accent); color: var(--muted); font-style: italic;
}
.page-body code {
  background: #f1f5f9; border: 1px solid var(--border); border-radius: 6px;
  padding: 2px 7px; font-size: 0.9em;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}
.page-body pre {
  background: #1a2332; color: #e2e8f0; border-radius: 10px;
  padding: 18px 20px; overflow-x: auto; margin-bottom: 22px; font-size: 0.85rem; line-height: 1.6;
}
.page-body pre code { background: none; border: none; color: inherit; padding: 0; }
.tip {
  background: var(--accent-light); border: 1px solid #b5e3e3; border-radius: 10px;
  padding: 16px 18px; margin-bottom: 22px; font-size: 0.9rem;
}
.tip strong { color: var(--accent-hover); }

.faq-item { border: 1px solid var(--border); border-radius: 10px; padding: 16px 18px; margin-bottom: 14px; background: var(--card); }
.faq-item h3 { margin: 0 0 8px; font-size: 0.95rem; }
.faq-item p { margin: 0; color: var(--muted); font-size: 0.9rem; }

.related { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 22px; margin-top: 36px; }
.related h2 { margin: 0 0 12px; font-size: 1.05rem; }
.related ul { margin: 0; padding-left: 22px; }
.related li { margin-bottom: 8px; font-size: 0.9rem; }

/* ===== AD SLOT ===== */
/* 过审前不渲染任何可见占位：仓库里只保留注释标记，避免空广告框被判定为低质量排版 */
.ad-slot {
  background: #f1f5f9; border: 1px dashed #cbd5e1; border-radius: 8px;
  padding: 20px; text-align: center; color: #94a3b8;
  font-size: 0.75rem; letter-spacing: 0.05em; text-transform: uppercase;
  margin: 32px 0;
}

/* ===== MEDICAL DISCLAIMER (YMYL) ===== */
/* 全站顶部免责横幅：仅首页使用，nav 之下、hero 之前，全宽浅琥珀底 */
.notice-bar {
  background: #fffbea;
  border-bottom: 1px solid #f2d999;
  padding: 10px 0;
  font-size: 0.8rem;
  line-height: 1.7;
  color: #6b5a1e;
}
.notice-bar p { margin: 0; }
.notice-bar strong { color: #5c4a12; }
.notice-bar a { color: #0d6e6e; white-space: nowrap; }
.notice-bar .verify-note { color: #8a7a45 !important; }

.notice {
  background: #fff8e6;
  border: 1px solid #f2d999;
  border-left: 4px solid #e0a800;
  border-radius: 8px;
  padding: 14px 18px;
  margin: 0 0 26px;
}
.notice p {
  margin: 0 0 8px;
  font-size: 0.86rem;
  line-height: 1.75;
  color: #5c4a12;
}
.notice p:last-child { margin-bottom: 0; }
.verify-note {
  font-size: 0.78rem !important;
  color: #7a6a3a !important;
}

/* ===== CTA BANNER ===== */
.cta-banner {
  background: linear-gradient(135deg, #0d6e6e 0%, #0a4f4f 100%);
  border-radius: var(--radius);
  padding: 36px 32px;
  color: #fff;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.cta-banner h2 { font-size: 1.25rem; font-weight: 800; margin-bottom: 6px; }
.cta-banner p { font-size: 0.9rem; opacity: 0.85; max-width: 480px; }
.cta-btn {
  display: inline-block; padding: 13px 28px;
  background: #fff; color: var(--accent);
  border-radius: 10px; text-decoration: none; font-weight: 700; font-size: 0.9rem;
  white-space: nowrap; transition: transform 0.15s;
}
.cta-btn:hover { transform: scale(1.03); color: var(--accent-hover); }

/* ===== FOOTER ===== */
footer {
  background: #1a2332; color: #94a3b8;
  padding: 40px 0 32px; font-size: 0.8rem; line-height: 1.7; margin-top: 16px;
}
footer .footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 28px; }
footer h4 { color: #fff; font-size: 0.8rem; font-weight: 700; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.04em; }
footer a { color: #94a3b8; text-decoration: none; display: block; margin-bottom: 7px; font-size: 0.8rem; }
footer a:hover { color: #fff; }
footer .disclaimer { border-top: 1px solid #2d3a4a; padding-top: 20px; font-size: 0.75rem; color: #64748b; }
footer .disclaimer p { margin-bottom: 8px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 820px) {
  .quick-nav { grid-template-columns: repeat(2, 1fr); }
  .hospital-grid, .card-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr 1fr; gap: 24px 0; }
  .step-connector { display: none; }
  .hero h1 { font-size: 1.6rem; }
  .hero-stats { gap: 24px; }
  footer .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .nav-toggle { display: inline-block; }
  .nav-links.open { display: flex; flex-direction: column; gap: 2px; position: absolute; top: 64px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--border); padding: 12px 20px; }
  .nav-links.open a { padding: 10px 0; display: block; }
}
@media (max-width: 520px) {
  .quick-nav { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .card-grid, .card-grid-2 { grid-template-columns: 1fr; }
  .cost-table { font-size: 0.8rem; }
  .cost-table th, .cost-table td { padding: 10px 10px; }
  .page-header h1 { font-size: 1.6rem; }
}

/* ===== ALERT ===== */
.alert {
  background: var(--accent-light);
  border: 1px solid #b5e3e3;
  border-radius: 10px;
  padding: 16px 18px;
  margin: 0 0 22px;
  font-size: 0.9rem;
  line-height: 1.6;
}
.alert strong { color: var(--accent-hover); }
.alert.warn { background: #fff8e6; border-color: #f2dfa8; }
.alert.warn strong { color: #9a6b00; }

/* ===== GUIDE LIST (section landing pages) ===== */
.guide-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.guide-list li { margin: 0; }
.guide-list a {
  display: block;
  background: var(--card); border: 1px solid var(--border); border-radius: 10px;
  padding: 16px 18px; text-decoration: none; color: var(--text);
  box-shadow: var(--shadow); transition: box-shadow 0.15s, transform 0.15s; height: 100%;
}
.guide-list a:hover { box-shadow: var(--shadow-lg); transform: translateY(-1px); color: var(--text); }
.guide-list strong { display: block; font-size: 0.95rem; margin-bottom: 4px; color: var(--text); }
.guide-list span { font-size: 0.8rem; color: var(--muted); line-height: 1.5; display: block; }

@media (max-width: 520px) {
  .guide-list { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .quick-card:hover, .hospital-card:hover, .info-card:hover { transform: none; }
}
