/* ============================================================
   MedChina Voyage — International Medical Travel to China
   Global Stylesheet (EN / RU / AR, RTL-aware)
   ============================================================ */

:root {
  --teal-900: #083f45;
  --teal-800: #0b525a;
  --teal-700: #0e636c;
  --teal-600: #13757f;
  --teal-100: #dceef0;
  --teal-50:  #eff7f8;
  --gold-600: #b8842b;
  --gold-500: #d9a441;
  --gold-100: #f7ecd6;
  --ink-900: #14252a;
  --ink-700: #33474d;
  --ink-500: #5d7278;
  --ink-300: #93a5aa;
  --paper:   #f6f8f8;
  --white:   #ffffff;
  --line:    #e2eaeb;
  --shadow-sm: 0 2px 10px rgba(11, 82, 90, .07);
  --shadow-md: 0 10px 30px rgba(11, 82, 90, .12);
  --shadow-lg: 0 24px 60px rgba(11, 82, 90, .16);
  --radius: 16px;
  --radius-lg: 24px;
  --font-ui: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", "PingFang SC", "Noto Sans", "Noto Sans Arabic", Arial, sans-serif;
  --font-display: Georgia, "Times New Roman", "Noto Serif", serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-ui);
  color: var(--ink-900);
  background: var(--paper);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--teal-700); text-decoration: none; }
a:hover { color: var(--teal-900); }

h1, h2, h3 {
  line-height: 1.25;
  font-weight: 700;
  color: var(--ink-900);
}
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.15rem; }

.container { width: min(1180px, 92%); margin-inline: auto; }

.section { padding-block: 72px; }
.section.tint { background: var(--teal-50); }
.section.white { background: var(--white); }

.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 10px;
}
.section-head p { color: var(--ink-500); margin-top: 12px; font-size: 1.02rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--teal-700); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--teal-800); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-gold { background: var(--gold-500); color: #fff; }
.btn-gold:hover { background: var(--gold-600); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--teal-700); border-color: var(--teal-700); }
.btn-ghost:hover { background: var(--teal-700); color: #fff; }
.btn-white { background: #fff; color: var(--teal-800); }
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--teal-800);
  white-space: nowrap;
  flex-shrink: 0;
}
/* 品牌图形标记（内联 SVG：定位针 + 经纬 + 医疗十字） */
.brand-mark { width: 38px; height: 38px; flex-shrink: 0; display: block; }
/* 品牌字标（矢量轮廓，不依赖访客本地字体） */
.brand-word { display: block; height: auto; flex-shrink: 0; }
.nav-links {
  display: flex;
  gap: 4px;
  margin-inline-start: auto;
  list-style: none;
  flex-wrap: nowrap;
}
.nav-links a {
  display: block;
  padding: 9px 14px;
  border-radius: 10px;
  color: var(--ink-700);
  font-weight: 600;
  font-size: .95rem;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { background: var(--teal-100); color: var(--teal-900); }

.lang-switch {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}
.lang-switch button {
  border: 0;
  background: transparent;
  padding: 8px 12px;
  font-size: .85rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--ink-500);
  text-transform: uppercase;
}
.lang-switch button.on { background: var(--teal-700); color: #fff; }

.nav-toggle {
  display: none;
  border: 0;
  background: var(--teal-100);
  color: var(--teal-900);
  width: 42px; height: 42px;
  border-radius: 10px;
  font-size: 1.2rem;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  background:
    linear-gradient(105deg, rgba(8,63,69,.93) 0%, rgba(8,63,69,.78) 45%, rgba(8,63,69,.35) 100%),
    url("../img/hero.jpg") center/cover no-repeat;
  min-height: 640px;
  display: flex;
  align-items: center;
  padding-block: 90px;
}
.hero-inner { max-width: 660px; }
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--gold-500); }
.hero p.lead { font-size: 1.12rem; color: rgba(255,255,255,.88); margin-bottom: 30px; max-width: 560px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trust {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  font-size: .88rem;
  color: rgba(255,255,255,.85);
}
.hero-trust span::before {
  content: ""; display: inline-block; width: 14px; height: 14px;
  background: url('data:image/svg+xml;utf8,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23d9a441%22 stroke-width=%223%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M20 6 9 17l-5-5%22/%3E%3C/svg%3E') no-repeat center/contain;
  margin-inline-end: 7px; vertical-align: -2px;
}

/* ---------- Stats ---------- */
.stats {
  background: var(--teal-800);
  color: #fff;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  text-align: center;
}
.stat b { display: block; font-size: clamp(1.7rem, 3vw, 2.4rem); color: var(--gold-500); }
.stat span { color: rgba(255,255,255,.85); font-size: .95rem; }

/* ---------- Cards grid ---------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.card .card-media { aspect-ratio: 16/10; overflow: hidden; }
.card .card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card-media img { transform: scale(1.05); }
.card .card-icon {
  width: 42px; height: 42px; border-radius: 12px; background: var(--teal-100);
  display: grid; place-items: center; margin-bottom: 13px; color: var(--teal-700);
}
.card-icon svg { width: 22px; height: 22px; display: block; }
.card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card .card-body p { color: var(--ink-500); font-size: .95rem; flex: 1; }
.card .tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--teal-100);
  color: var(--teal-800);
}
.tag.gold { background: var(--gold-100); color: #8a6219; }
.tag.plain { background: #eef1f2; color: var(--ink-500); }

/* ---------- City cards ---------- */
.city-card { position: relative; min-height: 300px; color: #fff; display: flex; align-items: flex-end; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .18s ease; }
.city-card:hover { transform: translateY(-5px); }
.city-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.city-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,40,45,0) 30%, rgba(8,40,45,.85) 100%); }
.city-card .city-info { position: relative; z-index: 2; padding: 24px; }
.city-card h3 { color: #fff; font-size: 1.45rem; }
.city-card p { color: rgba(255,255,255,.85); font-size: .9rem; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; }
.steps-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; }
.step-icon {
  width: 40px; height: 40px; border-radius: 11px; background: var(--teal-100);
  display: grid; place-items: center; margin-bottom: 12px; color: var(--teal-700);
}
.step-icon svg { width: 21px; height: 21px; display: block; }
.step {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  width: 44px; height: 44px;
  margin: 0 auto 14px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--teal-700);
  color: #fff;
  font-weight: 800;
  font-size: 1.15rem;
}
.step h3 { font-size: 1rem; margin-bottom: 6px; }
.step p { color: var(--ink-500); font-size: .88rem; }

/* ---------- Package cards ---------- */
.pkg {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  transition: transform .18s ease, box-shadow .18s ease;
}
.pkg:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.pkg.featured { border: 2px solid var(--gold-500); }
.pkg .pkg-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.pkg .pkg-city { font-size: .82rem; font-weight: 800; color: var(--gold-600); text-transform: uppercase; letter-spacing: .1em; }
.pkg h3 { font-size: 1.2rem; }
.pkg .price { text-align: end; }
.pkg .price b { font-size: 1.45rem; color: var(--teal-700); }
.pkg .price span { display: block; font-size: .78rem; color: var(--ink-500); }
.pkg ul { list-style: none; display: grid; gap: 8px; font-size: .93rem; color: var(--ink-700); }
.pkg ul li { padding-inline-start: 24px; position: relative; }
.pkg ul li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: .28em;
  width: 15px; height: 15px;
  background: url('data:image/svg+xml;utf8,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%2313757f%22 stroke-width=%223%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M20 6 9 17l-5-5%22/%3E%3C/svg%3E') no-repeat center/contain;
}
.pkg .pkg-foot { margin-top: auto; display: flex; gap: 12px; align-items: center; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { padding: 14px 16px; text-align: start; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--teal-50); color: var(--teal-900); font-weight: 700; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }

/* ---------- Hospital cards ---------- */
.hosp {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hosp h3 { font-size: 1.05rem; }
.hosp .hosp-dept { color: var(--teal-700); font-weight: 600; font-size: .92rem; }
.hosp .hosp-note { color: var(--ink-500); font-size: .86rem; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.filter-bar button {
  border: 1px solid var(--line);
  background: #fff;
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  color: var(--ink-700);
}
.filter-bar button.on { background: var(--teal-700); border-color: var(--teal-700); color: #fff; }

/* ---------- Forms ---------- */
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 7px; color: var(--ink-700); }
input, select, textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font: inherit;
  color: var(--ink-900);
  background: #fff;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal-600); box-shadow: 0 0 0 3px rgba(19,117,127,.15); }
textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: .85rem; color: var(--ink-500); margin-top: 14px; }

/* ---------- FAQ ---------- */
.faq-item { border: 1px solid var(--line); border-radius: 14px; background: #fff; margin-bottom: 12px; overflow: hidden; }
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 700;
  text-align: start;
  cursor: pointer;
  color: var(--ink-900);
  font-size: 1rem;
}
.faq-q::after { content: "+"; font-size: 1.4rem; color: var(--teal-600); font-weight: 400; line-height: 1; }
.faq-item.open .faq-q::after { content: "−"; }
.faq-a { display: none; padding: 0 22px 20px; color: var(--ink-500); font-size: .95rem; }
.faq-item.open .faq-a { display: block; }

/* ---------- Contact strip ---------- */
.contact-strip { background: var(--teal-800); color: #fff; padding: 26px; border-radius: var(--radius-lg); display: flex; flex-wrap: wrap; gap: 22px; align-items: center; justify-content: space-between; }
.contact-strip a { color: var(--gold-500); font-weight: 700; }
.contact-strip a:hover { color: #f2cf8a; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(120deg, var(--teal-900), var(--teal-700));
  color: #fff;
  padding-block: 64px;
}
.page-hero h1 { color: #fff; }
.page-hero p { color: rgba(255,255,255,.85); max-width: 720px; margin-top: 10px; }
.breadcrumb { font-size: .85rem; color: rgba(255,255,255,.7); margin-bottom: 12px; }
.breadcrumb a { color: rgba(255,255,255,.9); }

/* ---------- Footer ---------- */
.site-footer { background: #062e33; color: rgba(255,255,255,.78); padding-block: 56px 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 34px; }
.site-footer h4 { color: #fff; margin-bottom: 14px; font-size: 1rem; }
.site-footer ul { list-style: none; display: grid; gap: 9px; font-size: .92rem; }
.site-footer a { color: rgba(255,255,255,.78); }
.site-footer a:hover { color: var(--gold-500); }
/* 页脚品牌字标 */
.site-footer .footer-brand { display: inline-block; margin-bottom: 16px; }
.site-footer .footer-brand svg { display: block; height: auto; }
.site-footer .footer-brand:hover { opacity: .88; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); margin-top: 40px; padding-top: 22px; font-size: .82rem; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }

/* ---------- Misc ---------- */
.callout {
  background: var(--gold-100);
  border-inline-start: 4px solid var(--gold-500);
  padding: 18px 22px;
  border-radius: 12px;
  font-size: .95rem;
  color: #6b4a13;
}
.callout.teal { background: var(--teal-100); border-color: var(--teal-600); color: var(--teal-900); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.split img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.icon-badge {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: grid; place-items: center;
  font-size: 1.5rem;
  background: var(--teal-100);
  margin-bottom: 14px;
}
.fade-in { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.fade-in.visible { opacity: 1; transform: none; }

/* ---------- RTL ---------- */
html[dir="rtl"] body { text-align: right; }
html[dir="rtl"] .hero { background-position: 30% center; }

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
  .nav { gap: 16px; }
  .nav-links { gap: 1px; }
  .nav-links a { padding: 9px 10px; font-size: .88rem; }
  .lang-switch button { padding: 7px 10px; font-size: .8rem; }
}
@media (max-width: 1024px) {
  .grid-4, .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
}
/* 平板区间导航仍为横排，隐藏字标仅保留图形标记，避免页头挤压溢出 */
@media (max-width: 960px) {
  .brand-word { display: none; }
}
@media (max-width: 820px) {
  .nav-toggle { display: grid; place-items: center; margin-inline-start: auto; }
  .nav-links {
    position: absolute;
    top: 72px;
    inset-inline: 0;
    background: #fff;
    flex-direction: column;
    padding: 14px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav-links.open { display: flex; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding-block: 54px; }
  .hero { min-height: 560px; }
}
@media (max-width: 480px) {
  .grid-4, .steps-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .lang-switch button { padding: 7px 9px; font-size: .78rem; }
}

/* ---------- Inline SVG icons ---------- */
.icon-badge { color: var(--teal-800); font-size: 1rem; }
svg.icon { width: 28px; height: 28px; display: block; }
svg.icon-sm { width: 18px; height: 18px; vertical-align: -4px; margin-inline-end: 7px; }
.nav-toggle svg { width: 26px; height: 26px; display: block; margin: auto; }

svg.tick { width: 16px; height: 16px; vertical-align: -3px; margin-inline-end: 8px; }
svg.tick-in { color: var(--teal-600); }
svg.tick-out { color: #c2544a; }
