/* ============================================================
   跨境来华医疗陪诊网站 - 主样式表
   品牌：Premium Medical Escort Shanghai
   设计标准：欧美高端医疗极简风 | 深海蓝主调 | 高留白
   ============================================================ */

/* --- CSS Variables --- */
:root {
  --primary: #193F67;
  --primary-light: #1F4F7F;
  --primary-dark: #122D4A;
  --accent: #3674D9;
  --accent-hover: #2B5FC0;
  --bg-light: #F5F7FA;
  --bg-white: #FFFFFF;
  --text-dark: #1A1A2E;
  --text-body: #333333;
  --text-muted: #6B7280;
  --text-light: #9CA3AF;
  --border: #E5E7EB;
  --border-light: #F3F4F6;
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.08);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --transition: 0.2s ease;
  --max-width: 1280px;
  --header-height: 80px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-body);
  background: var(--bg-white);
  min-height: 100vh;
}

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

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

ul, ol { list-style: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-dark);
  font-weight: 600;
  line-height: 1.3;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

.section-title {
  font-size: 2rem;
  color: var(--text-dark);
  margin-bottom: 8px;
  font-weight: 700;
}
.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 48px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  font-family: var(--font);
  white-space: nowrap;
}

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

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

.btn-white {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
}
.btn-white:hover {
  background: var(--bg-light);
  color: var(--primary-dark);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.1rem;
}

/* --- Header / Navigation --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: all var(--transition);
}
.header.scrolled {
  box-shadow: var(--shadow-md);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 200px;
}
.logo .logo-icon {
  height: 56px;
  width: auto;
  max-height: 60px;
  border-radius: 8px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}
.nav-links a {
  padding: 8px 14px;
  color: var(--text-body);
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 6px;
  transition: all var(--transition);
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  background: var(--bg-light);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switch {
  position: relative;
}
.lang-switch select {
  appearance: none;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 28px 6px 10px;
  font-size: 0.85rem;
  color: var(--text-body);
  cursor: pointer;
  font-family: var(--font);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text-body);
  z-index: 1001;
  position: relative;
}
.mobile-menu-btn:focus {
  outline: none;
}

/* --- Hero Section --- */
.hero {
  padding: calc(var(--header-height) + 80px) 0 80px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(54,116,217,0.2) 0%, transparent 70%);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
  border-radius: 50%;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content h1 {
  font-size: 2.75rem;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 20px;
  font-weight: 700;
}
.hero-content p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 32px;
  max-width: 520px;
  line-height: 1.7;
}
.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 48px;
}
.hero-stat {
  text-align: center;
}
.hero-stat .stat-num {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
}
.hero-stat .stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-image img {
  width: 100%;
  max-width: 520px;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: var(--shadow-lg);
}

/* --- Section Common --- */
.section {
  padding: 80px 0;
}
.section-gray {
  background: var(--bg-light);
}
.section-header {
  text-align: center;
  margin-bottom: 56px;
}

/* --- Advantages Grid --- */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.advantage-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: all var(--transition);
}
.advantage-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.advantage-icon {
  width: 72px;
  height: 72px;
  background: var(--bg-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2rem;
  color: var(--primary);
}
.advantage-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}
.advantage-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- Service Cards --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.service-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}
.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.service-card-image {
  height: 260px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  font-size: 6rem;
}
.service-card-body {
  padding: 28px;
}
.service-card-body h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}
.service-card-body p {
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.6;
}
.service-card-body .btn {
  width: 100%;
}

/* --- Pricing Table --- */
.pricing-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-white);
  min-width: 700px;
}
.pricing-table thead {
  background: var(--primary);
  color: #fff;
}
.pricing-table th {
  padding: 16px 20px;
  text-align: left;
  font-weight: 600;
  font-size: 0.95rem;
}
.pricing-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.pricing-table tbody tr:hover {
  background: var(--bg-light);
}
.pricing-table .price {
  font-weight: 700;
  color: var(--primary);
}
.pricing-table-simple thead th {
  text-align: center;
  background: var(--primary);
  color: #fff;
  font-size: 0.95rem;
  line-height: 1.3;
  padding: 14px 12px;
}
.pricing-table-simple thead th:nth-child(1),
.pricing-table-simple thead th:nth-child(2) {
  text-align: left;
}
.pricing-table-simple thead th:nth-child(3) {
  background: var(--success);
}
.pricing-table-simple thead th:nth-child(4) {
  background: var(--primary-light);
}
.pricing-table-simple thead th:nth-child(5) {
  background: var(--primary-dark);
}
.pricing-table-simple td {
  text-align: center;
  font-size: 0.95rem;
}
.pricing-table-simple td:nth-child(1),
.pricing-table-simple td:nth-child(2) {
  text-align: left;
}
.pricing-table-simple td.price {
  font-size: 1.15rem;
  font-weight: 700;
}
.pricing-table-simple tbody tr:hover {
  background: rgba(245,247,250,0.6);
}
.pricing-note {
  margin-top: 16px;
  padding: 16px 20px;
  background: var(--bg-light);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

/* --- Comparison Section --- */
.comparison-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  justify-content: center;
}
.comparison-tab {
  padding: 10px 24px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 50px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-body);
  transition: all var(--transition);
  font-family: var(--font);
}
.comparison-tab.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.comparison-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-white);
  min-width: 800px;
}
.comparison-table th {
  background: var(--primary);
  color: #fff;
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 0.9rem;
}
.comparison-table th:first-child {
  background: var(--primary-dark);
}
.comparison-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.comparison-table .highlight {
  color: var(--success);
  font-weight: 600;
}
.comparison-note {
  margin-top: 20px;
  padding: 16px 20px;
  background: var(--bg-light);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-body);
}

/* --- Hospital Cards --- */
.hospitals-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.hospital-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition);
}
.hospital-card:hover {
  box-shadow: var(--shadow-md);
}
.hospital-card .hospital-level {
  display: inline-block;
  padding: 4px 12px;
  background: var(--primary);
  color: #fff;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 16px;
}
.hospital-card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}
.hospital-card .hospital-dept {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 12px;
}
.hospital-card .hospital-features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.hospital-tag {
  display: inline-block;
  padding: 4px 10px;
  background: var(--bg-light);
  border-radius: 4px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --- FAQ --- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}
.faq-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
  justify-content: center;
}
.faq-category {
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-white);
  color: var(--text-body);
  font-family: var(--font);
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition);
}
.faq-category:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.faq-category.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.faq-category-section {
  display: none;
}
.faq-category-section.active {
  display: block;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: var(--bg-white);
  border: none;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  font-family: var(--font);
  transition: background var(--transition);
}
.faq-question:hover {
  background: var(--bg-light);
}
.faq-question .faq-icon {
  font-size: 1.2rem;
  transition: transform var(--transition);
  color: var(--primary);
}
.faq-item.active .faq-question .faq-icon {
  transform: rotate(45deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 24px 20px;
}
.faq-answer p {
  color: var(--text-muted);
  line-height: 1.7;
}

/* --- Contact Section --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.contact-info h3 {
  margin-bottom: 16px;
}
.contact-info p {
  color: var(--text-muted);
  margin-bottom: 24px;
}
.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-method {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--bg-light);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
}
.contact-method .method-icon {
  width: 50px;
  height: 50px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.contact-form {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.contact-form h3 {
  margin-bottom: 24px;
}
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dark);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-family: var(--font);
  color: var(--text-body);
  transition: border-color var(--transition);
  background: var(--bg-white);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(54,116,217,0.1);
}
.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* --- Testimonials --- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.testimonial-stars {
  color: #F59E0B;
  font-size: 0.9rem;
  margin-bottom: 16px;
}
.testimonial-text {
  color: var(--text-body);
  font-style: italic;
  margin-bottom: 20px;
  line-height: 1.7;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
}
.testimonial-name {
  font-weight: 600;
  font-size: 0.95rem;
}
.testimonial-country {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --- Service Process Flow --- */
.process-flow {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin: 40px 0;
  position: relative;
}
.process-flow::before {
  content: '';
  position: absolute;
  top: 32px;
  left: 48px;
  right: 48px;
  height: 2px;
  background: var(--border);
  z-index: 0;
}
.process-step {
  text-align: center;
  position: relative;
  z-index: 1;
  flex: 1;
}
.process-step .step-num {
  width: 64px;
  height: 64px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 auto 16px;
}
.process-step h4 {
  font-size: 1rem;
  margin-bottom: 8px;
}
.process-step p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  padding: 60px 0;
  text-align: center;
  border-radius: var(--radius-lg);
  margin: 0 24px;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}
.cta-banner h2 {
  color: #fff;
  font-size: 2rem;
  margin-bottom: 12px;
}
.cta-banner p {
  color: rgba(255,255,255,0.85);
  margin-bottom: 28px;
  font-size: 1.1rem;
}

/* --- Footer --- */
.footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-col h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 20px;
}
.footer-col p {
  font-size: 0.9rem;
  line-height: 1.7;
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  padding: 4px 0;
  transition: color var(--transition);
}
.footer-col a:hover {
  color: #fff;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
}
.footer-bottom a {
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
}
.footer-bottom a:hover {
  color: #fff;
}

/* --- Chat Widget --- */
.chat-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.chat-window {
  width: 400px;
  height: 560px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.18);
  overflow: hidden;
  transform: translateY(150%) scale(0.9);
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  margin-bottom: 16px;
  z-index: 10000;
}
.chat-window.active {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}
.chat-bubble {
  width: 56px;
  height: 56px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(54,116,217,0.4);
  transition: all var(--transition);
  position: relative;
  z-index: 10001;
}
.chat-bubble:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 24px rgba(54,116,217,0.5);
}
.chat-tooltip {
  position: absolute;
  right: 68px;
  background: var(--text-dark);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.chat-bubble:hover .chat-tooltip {
  opacity: 1;
}
.chat-tooltip::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border-left: 6px solid var(--text-dark);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}
.chat-header {
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: #fff;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
}
.chat-title {
  font-weight: 600;
  font-size: 1rem;
}
.chat-close {
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.chat-close:hover {
  background: rgba(255,255,255,0.25);
  transform: rotate(90deg);
}
.chat-iframe {
  width: 100%;
  height: calc(100% - 52px);
  border: none;
}
@media (max-width: 480px) {
  .chat-window {
    width: calc(100vw - 32px);
    height: 75vh;
    right: 16px;
  }
}

/* --- Page Banner --- */
.page-banner {
  padding: calc(var(--header-height) + 60px) 0 60px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  text-align: center;
}
.page-banner h1 {
  color: #fff;
  font-size: 2.25rem;
  margin-bottom: 12px;
}
.page-banner p {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}
.breadcrumb {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 16px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
}
.breadcrumb a {
  color: rgba(255,255,255,0.8);
}
.breadcrumb a:hover {
  color: #fff;
}

/* --- Service Detail --- */
.service-detail-section {
  padding: 60px 0;
}
.service-detail-section:nth-child(even) {
  background: var(--bg-light);
}
.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.service-detail-grid.reverse {
  direction: ltr;
}
.service-detail-grid.reverse > :first-child {
  order: 2;
}
.service-detail-grid.reverse > :last-child {
  order: 1;
}
.service-detail-content h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}
.service-detail-content p {
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.7;
}
.service-detail-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.service-detail-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text-body);
}
.service-detail-list li::before {
  content: '✓';
  color: var(--success);
  font-weight: 700;
  flex-shrink: 0;
}
.service-detail-image {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  border-radius: var(--radius-lg);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.3);
  font-size: 7rem;
}

/* --- Scope Tags --- */
.scope-section {
  margin-top: 24px;
  padding: 20px 24px;
  background: var(--bg-light);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--primary);
}
.scope-section h4 {
  font-size: 0.95rem;
  margin-bottom: 8px;
  color: var(--primary);
}
.scope-section p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .advantages-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .hero .container { grid-template-columns: 1fr; }
  .hero-image { display: none; }
  .hero-content { text-align: center; }
  .hero-content p { max-width: 100%; }
  .hero-buttons { justify-content: center; }
  .hero-stats { justify-content: center; }
  .contact-grid { grid-template-columns: 1fr; }
  .service-detail-grid { grid-template-columns: 1fr; }
  .service-detail-grid.reverse > :first-child { order: 0; }
  .service-detail-grid.reverse > :last-child { order: 0; }
  .hospitals-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --header-height: 64px; }
  .logo .logo-icon { height: 40px; max-height: 44px; }
  .logo { gap: 6px; font-size: 1rem; }
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  .section { padding: 56px 0; }
  .section-title { font-size: 1.5rem; }
  .section-subtitle { font-size: 1rem; margin-bottom: 32px; }
  
  .nav-links { display: none; }
  .mobile-menu-btn { display: block; }
  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    padding: 12px;
    box-shadow: var(--shadow-lg);
  }
  
  .advantages-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .process-flow { flex-direction: column; align-items: center; }
  .process-flow::before { display: none; }
  .hero-stats { flex-direction: column; gap: 20px; }
  .hero-content h1 { font-size: 2rem; }
  .cta-banner { margin: 0 16px; }
  .cta-banner h2 { font-size: 1.5rem; }
  .comparison-tabs { flex-wrap: wrap; }
  .comparison-table th,
  .comparison-table td {
    padding: 10px 8px;
    font-size: 0.8rem;
    white-space: nowrap;
  }
  .comparison-table-wrapper {
    border-radius: var(--radius-sm);
    margin: 0 -8px;
  }
  .comparison-note {
    margin: 12px 8px 0;
    padding: 12px 14px;
    font-size: 0.85rem;
  }
}

/* ============================================================
   RTL Support (Arabic)
   ============================================================ */
[dir="rtl"] {
  direction: rtl;
  text-align: right;
}
[dir="rtl"] .header .container { flex-direction: row-reverse; }
[dir="rtl"] .nav-links { flex-direction: row-reverse; }
[dir="rtl"] .hero-content { text-align: right; }
[dir="rtl"] .hero-content p { margin-left: 0; margin-right: 0; }
[dir="rtl"] .hero-buttons { justify-content: flex-start; }
[dir="rtl"] .hero-stats { justify-content: flex-start; }
[dir="rtl"] .service-detail-list li::before { margin-left: 10px; margin-right: 0; }
[dir="rtl"] .contact-method { flex-direction: row-reverse; }
[dir="rtl"] .chat-widget { right: auto; left: 24px; }
[dir="rtl"] .chat-tooltip { right: auto; left: 68px; }
[dir="rtl"] .chat-tooltip::after {
  right: auto; left: -6px;
  border-left: none;
  border-right: 6px solid var(--text-dark);
}
[dir="rtl"] .pricing-table th,
[dir="rtl"] .pricing-table td,
[dir="rtl"] .comparison-table th,
[dir="rtl"] .comparison-table td { text-align: right; }
[dir="rtl"] .faq-question { text-align: right; }
[dir="rtl"] .scope-section { border-left: none; border-right: 4px solid var(--primary); }
[dir="rtl"] .footer-bottom { flex-direction: row-reverse; }
[dir="rtl"] .breadcrumb { flex-direction: row-reverse; }
[dir="rtl"] .section-header { text-align: right; }

/* ============================================================
   Social Share Widget
   ============================================================ */
.share-widget {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 998;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.share-panel {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.18);
  padding: 16px;
  transform: translateY(150%) scale(0.9);
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  margin-bottom: 16px;
  min-width: 200px;
}
.share-panel.active {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}
.share-panel-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 12px;
  text-align: center;
}
.share-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.share-btn {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  color: #fff;
  font-size: 1.2rem;
}
.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.share-btn-whatsapp { background: #25D366; }
.share-btn-telegram { background: #0088cc; }
.share-btn-facebook { background: #1877F2; }
.share-btn-twitter { background: #000000; }
.share-btn-linkedin { background: #0A66C2; }
.share-btn-wechat { background: #07C160; }
.share-btn-wechat:hover .share-wechat-qrcode {
  display: block;
}
.share-wechat-qrcode {
  display: none;
  position: absolute;
  bottom: 60px;
  left: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  padding: 12px;
  text-align: center;
  z-index: 10001;
}
.share-wechat-qrcode img {
  width: 160px;
  height: 160px;
  border-radius: 8px;
}
.share-wechat-qrcode p {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 6px;
}
.share-btn-copy { background: var(--text-muted); }
.share-btn-email { background: var(--primary); }
.share-bubble {
  width: 48px;
  height: 48px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(25,63,103,0.4);
  transition: all var(--transition);
  position: relative;
  z-index: 10000;
}
.share-bubble:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 24px rgba(25,63,103,0.5);
}
.share-bubble svg {
  transition: transform var(--transition);
}
.share-bubble.active svg {
  transform: rotate(45deg);
}
[dir="rtl"] .share-widget { left: auto; right: 24px; }
@media (max-width: 768px) {
  .share-widget { bottom: 20px; left: 20px; }
  .share-bubble { width: 44px; height: 44px; }
  .share-panel { min-width: 180px; padding: 12px; }
}