/* ========================================
   MediChina — 全球就医 MVP 网站
   通用样式表
   ======================================== */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', 'Noto Sans', 'Noto Sans SC', 'Noto Sans JP', 'Noto Sans KR', sans-serif;
  color: #1E293B;
  background: #ffffff;
  line-height: 1.7;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }

/* ---------- CSS Variables ---------- */
:root {
  --blue:   #1E88E5;
  --blue-d: #1565C0;
  --blue-l: #E3F2FD;
  --green:  #43A047;
  --green-l:#E8F5E9;
  --white:  #FFFFFF;
  --off:    #F8FAFC;
  --gray:   #64748B;
  --gray-l: #E2E8F0;
  --dark:   #1E293B;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,.08);
}

/* ---------- Utility ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
}
.section-subtitle {
  text-align: center;
  color: var(--gray);
  max-width: 640px;
  margin: 0 auto 48px;
  font-size: 1.05rem;
}
.btn-primary {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  transition: background .2s, transform .15s;
}
.btn-primary:hover { background: var(--blue-d); transform: translateY(-2px); }
.btn-outline {
  display: inline-block;
  border: 2px solid var(--blue);
  color: var(--blue);
  background: transparent;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: background .2s, color .2s;
}
.btn-outline:hover { background: var(--blue); color: #fff; }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 8px rgba(0,0,0,.06);
  transition: box-shadow .2s;
}
.navbar .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.nav-logo {
  font-size: 1.35rem; font-weight: 800; color: var(--blue);
  display: flex; align-items: center; gap: 8px;
}
.nav-logo span { color: var(--green); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  font-size: .95rem; font-weight: 500; color: var(--dark);
  transition: color .2s; position: relative;
}
.nav-links a:hover { color: var(--blue); }
.nav-links a::after {
  content:''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--blue); transform: scaleX(0);
  transition: transform .2s;
}
.nav-links a:hover::after { transform: scaleX(1); }

/* Language Selector */
.lang-select {
  padding: 6px 10px; border-radius: 6px;
  border: 1px solid var(--gray-l); background: #fff;
  font-size: .88rem; color: var(--dark); cursor: pointer;
}

/* Mobile menu */
.nav-links.open {
  display: flex; flex-direction: column; position: absolute;
  top: 68px; left: 0; right: 0; background: #fff;
  padding: 20px 24px; box-shadow: 0 8px 24px rgba(0,0,0,.1);
  gap: 16px;
}
@media (max-width: 600px) {
  .nav-links { display: none; }
  .menu-toggle { display: block; }
}
.hero {
  padding: 140px 0 80px;
  background: linear-gradient(135deg, var(--blue) 0%, #0D47A1 100%);
  color: #fff; text-align: center;
}
.hero h1 { font-size: 3rem; font-weight: 800; margin-bottom: 20px; line-height: 1.2; }
.hero p { font-size: 1.2rem; max-width: 640px; margin: 0 auto 36px; opacity: .92; }
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero .btn-primary { background: #fff; color: var(--blue); }
.hero .btn-primary:hover { background: var(--blue-l); }
.hero .btn-outline { border-color: #fff; color: #fff; }
.hero .btn-outline:hover { background: #fff; color: var(--blue); }

/* ---------- Advantage Cards ---------- */
.advantages-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
.advantage-card {
  background: var(--off); border-radius: var(--radius); padding: 36px 28px;
  text-align: center; transition: transform .2s, box-shadow .2s;
}
.advantage-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.advantage-card .icon {
  width: 64px; height: 64px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px; font-size: 1.8rem;
}
.advantage-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; }
.advantage-card p { color: var(--gray); font-size: .95rem; }

/* ---------- Process Steps ---------- */
.process-steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
.process-step { text-align: center; position: relative; }
.process-step .step-num {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--blue); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.1rem; margin: 0 auto 16px;
}
.process-step h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.process-step p { color: var(--gray); font-size: .92rem; }

/* ---------- Department Cards ---------- */
.dept-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.dept-card {
  border-radius: var(--radius); padding: 28px; text-align: center;
  background: #fff; border: 1px solid var(--gray-l);
  transition: transform .2s, box-shadow .2s; cursor: pointer;
}
.dept-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.dept-card .icon { font-size: 2.2rem; margin-bottom: 12px; }
.dept-card h4 { font-size: 1.05rem; font-weight: 700; }

/* ---------- Testimonials ---------- */
.testimonial-card {
  background: var(--off); border-radius: var(--radius); padding: 32px;
  font-style: italic; color: var(--dark); position: relative;
}
.testimonial-card::before {
  content: '\201C'; font-size: 4rem; color: var(--blue); opacity: .25;
  position: absolute; top: 12px; left: 20px; font-style: normal;
}
.testimonial-card .author { margin-top: 16px; font-style: normal; font-weight: 600; color: var(--blue); }

/* ---------- Stats ---------- */
.stats-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; text-align: center;
}
.stat-item h3 { font-size: 2.8rem; font-weight: 800; color: var(--blue); }
.stat-item p { color: var(--gray); font-size: 1rem; margin-top: 4px; }

/* ---------- Comparison Table ---------- */
.compare-table {
  width: 100%; border-collapse: collapse; margin: 32px 0;
}
.compare-table th, .compare-table td {
  padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--gray-l);
}
.compare-table th { background: var(--blue); color: #fff; font-weight: 600; }
.compare-table tr:nth-child(even) { background: var(--off); }
.check { color: var(--green); font-weight: 700; }
.cross { color: #EF4444; font-weight: 700; }

/* ---------- Cost Table ---------- */
.cost-table {
  width: 100%; border-collapse: collapse; margin: 32px 0;
  box-shadow: var(--shadow); border-radius: var(--radius); overflow: hidden;
}
.cost-table th, .cost-table td {
  padding: 16px 20px; text-align: left;
}
.cost-table th { background: var(--blue); color: #fff; }
.cost-table tr:nth-child(even) { background: var(--off); }
.cost-highlight { color: var(--green); font-weight: 700; font-size: 1.1rem; }

/* ---------- Timeline / Process Vertical ---------- */
.timeline {
  position: relative; padding-left: 40px;
}
.timeline::before {
  content: ''; position: absolute; left: 15px; top: 0; bottom: 0;
  width: 3px; background: var(--blue-l);
}
.timeline-item { position: relative; margin-bottom: 40px; }
.timeline-item .dot {
  position: absolute; left: -33px; top: 4px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--blue); border: 3px solid var(--blue-l);
}
.timeline-item h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; color: var(--blue); }
.timeline-item p { color: var(--gray); font-size: .95rem; }

/* ---------- Hotel Cards ---------- */
.hotel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.hotel-card {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--gray-l); transition: transform .2s, box-shadow .2s;
}
.hotel-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.hotel-card .img-placeholder {
  height: 180px; background: var(--blue-l); display: flex;
  align-items: center; justify-content: center; font-size: 3rem;
}
.hotel-card .body { padding: 20px; }
.hotel-card h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.hotel-card .price { color: var(--green); font-weight: 700; font-size: 1.05rem; margin-top: 8px; }

/* ---------- Contact Form ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 14px; border-radius: 8px;
  border: 1px solid var(--gray-l); font-size: 1rem; font-family: inherit;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(30,136,229,.15);
}
.contact-info h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 12px; }
.contact-info p { margin-bottom: 10px; color: var(--gray); }

/* ---------- FAQ Accordion ---------- */
.faq-categories { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; justify-content: center; }
.faq-cat-btn {
  padding: 8px 20px; border-radius: 20px; border: 1px solid var(--gray-l);
  background: #fff; font-size: .95rem; cursor: pointer; transition: all .2s;
}
.faq-cat-btn.active, .faq-cat-btn:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.faq-item { border-bottom: 1px solid var(--gray-l); }
.faq-question {
  width: 100%; text-align: left; background: none; border: none;
  padding: 18px 0; font-size: 1.05rem; font-weight: 600; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-answer.open { max-height: 400px; }
.faq-answer p { padding: 0 0 18px; color: var(--gray); }

/* ---------- CTA Section ---------- */
.cta-section {
  background: linear-gradient(135deg, var(--blue) 0%, #0D47A1 100%);
  color: #fff; text-align: center; padding: 80px 0;
}
.cta-section h2 { font-size: 2.2rem; font-weight: 800; margin-bottom: 16px; }
.cta-section p { font-size: 1.1rem; max-width: 560px; margin: 0 auto 32px; opacity: .9; }

/* ---------- Footer ---------- */
.footer {
  background: var(--dark); color: rgba(255,255,255,.8); padding: 48px 0 24px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 32px;
}
.footer h4 { color: #fff; font-size: 1rem; font-weight: 700; margin-bottom: 16px; }
.footer a { display: block; color: rgba(255,255,255,.7); margin-bottom: 8px; font-size: .92rem; transition: color .2s; }
.footer a:hover { color: #fff; }
.footer-bottom { text-align: center; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .advantages-grid, .process-steps, .dept-grid, .stats-grid, .hotel-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.2rem; }
}
@media (max-width: 600px) {
  .nav-links { display: none; }
  .menu-toggle { display: block; }
  .advantages-grid, .process-steps, .dept-grid, .stats-grid, .hotel-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.8rem; }
  .section { padding: 56px 0; }
}

/* ---------- Animations ---------- */
.fade-up {
  opacity: 0; transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
