/* ============================================
   小虎牙口腔 - 全局样式表
   汉中专业口腔医疗机构
   ============================================ */

/* CSS Variables */
:root {
  /* 品牌色彩 */
  --primary: #2E86AB;
  --primary-dark: #1E6A8F;
  --primary-light: #4AA3C5;
  --accent: #F6511D;
  --accent-dark: #D94415;
  --accent-light: #FF7A4D;
  
  /* 中性色 */
  --text-dark: #333333;
  --text-medium: #666666;
  --text-light: #999999;
  --bg-light: #F5F5F5;
  --bg-white: #FFFFFF;
  --border: #E0E0E0;
  
  /* 间距系统 */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-xxl: 4rem;
  
  /* 圆角 */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  /* 阴影 */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  
  /* 过渡 */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* 字体 */
  --font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-size-base: clamp(14px, 1.6vw, 16px);
  --line-height: 1.7;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: var(--line-height);
  color: var(--text-dark);
  background-color: var(--bg-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: clamp(1.1rem, 2.5vw, 1.25rem); }

p {
  margin-bottom: var(--space-sm);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-dark);
}

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

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

@media (min-width: 768px) {
  .container {
    padding: 0 var(--space-md);
  }
}

/* Section */
.section {
  padding: var(--space-xl) 0;
}

@media (min-width: 768px) {
  .section {
    padding: var(--space-xxl) 0;
  }
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-title {
  position: relative;
  display: inline-block;
  margin-bottom: var(--space-sm);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
}

.section-subtitle {
  color: var(--text-medium);
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  max-width: 600px;
  margin: var(--space-md) auto 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: 0 4px 14px rgba(46, 134, 171, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(46, 134, 171, 0.45);
  color: white;
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: white;
  box-shadow: 0 4px 14px rgba(246, 81, 29, 0.35);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(246, 81, 29, 0.45);
  color: white;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.125rem;
}

/* ============================================
   Header & Navigation
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  transition: all var(--transition-fast);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

@media (min-width: 768px) {
  .header-inner {
    height: 80px;
  }
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
}

/* Desktop Navigation */
.nav-desktop {
  display: none;
}

@media (min-width: 1024px) {
  .nav-desktop {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
  }
}

.nav-link {
  position: relative;
  color: var(--text-dark);
  font-weight: 500;
  padding: 8px 0;
  transition: color var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.header-cta {
  margin-left: var(--space-md);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

@media (min-width: 1024px) {
  .menu-toggle {
    display: none;
  }
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  transition: all var(--transition-fast);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Navigation */
.nav-mobile {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  z-index: 999;
}

.nav-mobile.active {
  opacity: 1;
  visibility: visible;
}

.nav-mobile a {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-dark);
  padding: 12px 24px;
}

.nav-mobile a:hover {
  color: var(--primary);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  background: linear-gradient(135deg, #f8fcfd 0%, #e8f4f8 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 70%;
  height: 150%;
  background: radial-gradient(circle, rgba(46, 134, 171, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-container {
  display: grid;
  gap: var(--space-xl);
  align-items: center;
}

@media (min-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xxl);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(46, 134, 171, 0.1);
  border-radius: 50px;
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: var(--space-md);
}

.hero-title {
  font-size: clamp(2rem, 6vw, 3.5rem);
  line-height: 1.2;
  margin-bottom: var(--space-md);
}

.hero-title span {
  color: var(--primary);
}

.hero-description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-medium);
  margin-bottom: var(--space-lg);
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
}

.stat-item {
  text-align: center;
}

@media (min-width: 768px) {
  .stat-item {
    text-align: left;
  }
}

.stat-number {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-medium);
  margin-top: 4px;
}

.hero-image {
  display: none;
  position: relative;
}

@media (min-width: 992px) {
  .hero-image {
    display: block;
  }
}

.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-image-placeholder {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
}

/* ============================================
   Departments Section
   ============================================ */
.departments-grid {
  display: grid;
  gap: var(--space-md);
}

@media (min-width: 576px) {
  .departments-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .departments-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.department-card {
  position: relative;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

.department-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transition: transform var(--transition-normal);
}

.department-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.department-card:hover::before {
  transform: scaleX(1);
}

.department-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-md);
  background: linear-gradient(135deg, rgba(46, 134, 171, 0.1), rgba(46, 134, 171, 0.2));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  transition: all var(--transition-normal);
}

.department-card:hover .department-icon {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  transform: scale(1.1);
}

.department-card:hover .department-icon svg {
  color: white;
}

.department-name {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.department-desc {
  font-size: 0.875rem;
  color: var(--text-medium);
}

/* ============================================
   Services Section
   ============================================ */
.services-grid {
  display: grid;
  gap: var(--space-md);
}

@media (min-width: 576px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.service-image {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--bg-light), #e0e8ec);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 3rem;
}

.service-content {
  padding: var(--space-md);
}

.service-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.service-desc {
  font-size: 0.875rem;
  color: var(--text-medium);
  margin-bottom: var(--space-sm);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.service-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.service-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
}

.service-price span {
  font-size: 0.875rem;
  font-weight: 400;
}

/* ============================================
   Doctors Section
   ============================================ */
.doctors-grid {
  display: grid;
  gap: var(--space-md);
}

@media (min-width: 576px) {
  .doctors-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .doctors-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.doctor-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.doctor-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.doctor-image {
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 3rem;
}

.doctor-info {
  padding: var(--space-md);
}

.doctor-name {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.doctor-title {
  font-size: 0.875rem;
  color: var(--text-medium);
  margin-bottom: var(--space-xs);
}

.doctor-dept {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(46, 134, 171, 0.1);
  border-radius: 50px;
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 500;
}

/* ============================================
   Articles Section
   ============================================ */
.articles-grid {
  display: grid;
  gap: var(--space-md);
}

@media (min-width: 576px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .articles-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.article-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.article-image {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2.5rem;
}

.article-content {
  padding: var(--space-md);
}

.article-category {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(246, 81, 29, 0.1);
  border-radius: 4px;
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: var(--space-xs);
}

.article-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-date {
  font-size: 0.75rem;
  color: var(--text-light);
}

/* ============================================
   Testimonials Section
   ============================================ */
.testimonials-slider {
  display: grid;
  gap: var(--space-md);
}

@media (min-width: 768px) {
  .testimonials-slider {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 16px;
  left: 20px;
  font-size: 4rem;
  color: rgba(46, 134, 171, 0.15);
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-content {
  position: relative;
  z-index: 1;
  font-size: 0.9375rem;
  color: var(--text-medium);
  margin-bottom: var(--space-md);
  line-height: 1.8;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
}

.testimonial-name {
  font-weight: 600;
  font-size: 0.9375rem;
}

.testimonial-service {
  font-size: 0.8125rem;
  color: var(--text-light);
}

/* ============================================
   About Section
   ============================================ */
.about-grid {
  display: grid;
  gap: var(--space-xl);
  align-items: center;
}

@media (min-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.about-features {
  display: grid;
  gap: var(--space-md);
}

@media (min-width: 576px) {
  .about-features {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-item {
  text-align: center;
  padding: var(--space-md);
  background: var(--bg-light);
  border-radius: var(--radius-md);
}

.feature-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-sm);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
}

.feature-title {
  font-weight: 600;
  margin-bottom: 4px;
}

.feature-desc {
  font-size: 0.875rem;
  color: var(--text-medium);
}

/* ============================================
   Booking Section
   ============================================ */
.booking-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
}

.booking-section .section-title {
  color: white;
}

.booking-section .section-title::after {
  background: rgba(255, 255, 255, 0.5);
}

.booking-section .section-subtitle {
  color: rgba(255, 255, 255, 0.85);
}

.booking-grid {
  display: grid;
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .booking-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.booking-form {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  font-weight: 500;
  margin-bottom: var(--space-xs);
  color: var(--text-dark);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  transition: all var(--transition-fast);
  background: var(--bg-white);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(46, 134, 171, 0.15);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-row {
  display: grid;
  gap: var(--space-sm);
}

@media (min-width: 576px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.booking-info {
  color: white;
}

.booking-info h3 {
  color: white;
  margin-bottom: var(--space-md);
}

.booking-info-list {
  list-style: none;
}

.booking-info-list li {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  font-size: 0.9375rem;
}

.booking-info-list svg {
  flex-shrink: 0;
  margin-top: 4px;
}

.booking-note {
  margin-top: var(--space-lg);
  padding: var(--space-md);
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.9);
}

/* ============================================
   Page Header
   ============================================ */
.page-header {
  padding: 120px 0 60px;
  background: linear-gradient(135deg, #f8fcfd 0%, #e8f4f8 100%);
  text-align: center;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-medium);
  margin-bottom: var(--space-md);
}

.breadcrumb a {
  color: var(--text-medium);
}

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb-separator {
  color: var(--text-light);
}

/* ============================================
   Detail Pages
   ============================================ */
.detail-layout {
  display: grid;
  gap: var(--space-xl);
}

@media (min-width: 992px) {
  .detail-layout {
    grid-template-columns: 1fr 340px;
    align-items: start;
  }
}

.detail-content {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
}

.detail-header {
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border);
}

.detail-title {
  margin-bottom: var(--space-sm);
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  font-size: 0.875rem;
  color: var(--text-medium);
}

.detail-section {
  margin-bottom: var(--space-lg);
}

.detail-section h3 {
  margin-bottom: var(--space-sm);
}

.detail-section p {
  color: var(--text-medium);
}

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.sidebar-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  box-shadow: var(--shadow-sm);
}

.sidebar-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--primary);
}

/* FAQ Section */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-light);
  border: none;
  text-align: left;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  transition: all var(--transition-fast);
}

.faq-question:hover {
  background: #e8e8e8;
}

.faq-icon {
  transition: transform var(--transition-fast);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 var(--space-md);
  max-height: 0;
  overflow: hidden;
  transition: all var(--transition-normal);
}

.faq-item.active .faq-answer {
  padding: var(--space-md);
  max-height: 500px;
}

.faq-answer p {
  color: var(--text-medium);
  font-size: 0.9375rem;
}

/* ============================================
   Lists (Services, Doctors, Articles)
   ============================================ */
.list-grid {
  display: grid;
  gap: var(--space-md);
}

@media (min-width: 576px) {
  .list-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .list-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================================
   Contact Page
   ============================================ */
.contact-grid {
  display: grid;
  gap: var(--space-xl);
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1.5fr;
  }
}

.contact-info {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
}

.contact-item {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.contact-item:last-child {
  margin-bottom: 0;
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.contact-text h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.contact-text p {
  color: var(--text-medium);
  font-size: 0.9375rem;
}

.contact-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-light);
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--text-dark);
  color: rgba(255, 255, 255, 0.85);
  padding-top: var(--space-xxl);
}

.footer-grid {
  display: grid;
  gap: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 576px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  margin-bottom: var(--space-md);
}

.footer-brand .logo-icon {
  width: 40px;
  height: 40px;
}

.footer-desc {
  font-size: 0.9375rem;
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

.footer-social {
  display: flex;
  gap: var(--space-sm);
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  background: var(--primary);
  transform: translateY(-2px);
}

.footer-column h4 {
  color: white;
  font-size: 1rem;
  margin-bottom: var(--space-md);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: var(--space-sm);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: white;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
  font-size: 0.9375rem;
}

.footer-contact svg {
  flex-shrink: 0;
  margin-top: 4px;
  color: var(--primary-light);
}

.footer-bottom {
  padding: var(--space-md) 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-legal {
  display: flex;
  gap: var(--space-md);
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.6);
}

.footer-legal a:hover {
  color: white;
}

/* ============================================
   Components
   ============================================ */

/* Tags */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--bg-light);
  border-radius: 50px;
  font-size: 0.8125rem;
  color: var(--text-medium);
}

/* Price Table */
.price-table {
  width: 100%;
  border-collapse: collapse;
}

.price-table th,
.price-table td {
  padding: var(--space-sm);
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.price-table th {
  background: var(--bg-light);
  font-weight: 600;
  font-size: 0.875rem;
}

.price-table td {
  font-size: 0.9375rem;
}

.price-table .price {
  color: var(--accent);
  font-weight: 600;
  white-space: nowrap;
}

/* Qualifications */
.qualifications {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.qualification-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--bg-light);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
}

.qualification-badge svg {
  color: var(--primary);
}

/* Loading */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xxl);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: var(--space-xxl);
  color: var(--text-medium);
}

.empty-state svg {
  width: 64px;
  height: 64px;
  color: var(--text-light);
  margin-bottom: var(--space-md);
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: var(--space-sm) var(--space-md);
  background: var(--text-dark);
  color: white;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  transform: translateY(100px);
  opacity: 0;
  transition: all var(--transition-normal);
  z-index: 9999;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast.success {
  background: #28a745;
}

.toast.error {
  background: #dc3545;
}

/* ============================================
   Utilities
   ============================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.text-medium { color: var(--text-medium); }
.text-light { color: var(--text-light); }

.bg-light { background: var(--bg-light); }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }

.hidden { display: none !important; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Image Placeholder */
.img-placeholder {
  background: linear-gradient(135deg, var(--bg-light), #e0e8ec);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 2rem;
}

/* Accessibility */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .header, .footer, .btn, .booking-form {
    display: none !important;
  }
  
  .hero {
    min-height: auto;
    padding: 20px 0;
  }
  
  body {
    font-size: 12pt;
  }
}

/* ===== 服务购买弹窗样式 ===== */

/* 购买弹窗遮罩层 */
.purchase-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
  box-sizing: border-box;
}

/* 购买弹窗 */
.purchase-modal {
  background: #fff;
  border-radius: 12px;
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.purchase-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.purchase-modal-header h3 {
  margin: 0;
  font-size: 18px;
  color: var(--text);
}

.purchase-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-light);
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.purchase-modal-close:hover {
  color: var(--text);
}

/* 购买弹窗内容 */
.purchase-modal-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

/* 价格信息 */
.purchase-price-info {
  background: var(--bg-light);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 20px;
  text-align: center;
}

.purchase-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  margin-bottom: 4px;
}

.price-current {
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
}

.price-original {
  font-size: 16px;
  color: var(--text-light);
  text-decoration: line-through;
}

.purchase-unit {
  font-size: 14px;
  color: var(--text-light);
}

/* 购买表单 */
.purchase-modal-body .form-group {
  margin-bottom: 16px;
}

.purchase-modal-body .form-label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: var(--text);
}

.purchase-modal-body .form-label.required::after {
  content: ' *';
  color: #e74c3c;
}

.purchase-modal-body .form-control {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.2s;
}

.purchase-modal-body .form-control:focus {
  border-color: var(--primary);
  outline: none;
}

/* 购买须知 */
.purchase-notes {
  background: #fff8e6;
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 16px;
  font-size: 13px;
  color: #856404;
  line-height: 1.6;
}

/* 支付方式 */
.pay-method-section {
  margin-top: 20px;
}

.pay-methods {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.pay-method-option {
  flex: 1;
  cursor: pointer;
}

.pay-method-option input {
  display: none;
}

.pay-method-label {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border: 2px solid var(--border);
  border-radius: 8px;
  transition: all 0.2s;
}

.pay-method-option input:checked + .pay-method-label {
  border-color: var(--accent);
  background: rgba(255, 138, 0, 0.05);
}

.pay-icon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
}

.wechat-icon::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 18px;
  background: #07c160;
  border-radius: 4px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8.5 12.5a1.5 1.5 0 100-3 1.5 1.5 0 000 3zM15.5 12.5a1.5 1.5 0 100-3 1.5 1.5 0 000 3z'/%3E%3Cpath d='M12 2C6.477 2 2 6.477 2 12c0 1.89.525 3.66 1.438 5.168L2 22l4.832-1.438A9.955 9.955 0 0012 22c5.523 0 10-4.477 10-10S17.523 2 12 2z'/%3E%3C/svg%3E");
  background-size: contain;
}

.alipay-icon::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 18px;
  background: #1677ff;
  border-radius: 4px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 2L2 12l10 10 10-10L12 2zm0 3.5L18.5 12 12 18.5 5.5 12 12 5.5z'/%3E%3C/svg%3E");
  background-size: contain;
}

/* 购买弹窗底部 */
.purchase-modal-footer {
  display: flex;
  gap: 12px;
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  background: var(--bg-light);
}

.purchase-modal-footer .btn {
  flex: 1;
  padding: 12px;
  border-radius: 6px;
  font-size: 15px;
}

/* 购买成功弹窗 */
.purchase-success-modal .purchase-modal-body {
  text-align: center;
  padding: 30px 20px;
}

.success-icon {
  width: 64px;
  height: 64px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto 16px;
}

.success-message {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
}

.order-info {
  background: var(--bg-light);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
  text-align: left;
}

.order-info p {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--text);
}

.order-info p:last-child {
  margin-bottom: 0;
}

.booking-hint {
  color: var(--text-light);
  font-size: 14px;
  margin: 0;
}

/* 服务卡片购买按钮 */
.service-purchase {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.service-price-display {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.service-price-display .price-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
}

.service-price-display .price-original {
  font-size: 14px;
  text-decoration: line-through;
}

.btn-buy {
  padding: 8px 16px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-buy:hover {
  background: #e67a00;
}

/* 详情页购买区域 */
.detail-purchase-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  margin-bottom: 20px;
}

.detail-purchase-price {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
}

.detail-purchase-price .price-current {
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
}

.detail-purchase-price .price-original {
  font-size: 16px;
  color: var(--text-light);
  text-decoration: line-through;
}

.detail-purchase-notes {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 16px;
  line-height: 1.6;
}

/* 移动端适配 */
@media (max-width: 480px) {
  .purchase-modal {
    max-height: 85vh;
    border-radius: 12px 12px 0 0;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 100%;
  }
  
  .purchase-modal-overlay {
    align-items: flex-end;
    padding: 0;
  }
}
