/*
  Dr. Li Feng | Premium Medical Aesthetic Styles
  Primary: #0A2540 (Deep Navy)
  Secondary: #B89C7D (Champagne Gold)
  Accent: #E8F1F8 (Soft Azure)
  Text: #1A1E2B
*/

:root {
  --primary: #0A2540;
  --primary-light: #15395B;
  --secondary: #B89C7D;
  --secondary-light: #D4C1AC;
  --accent: #E8F1F8;
  --text-main: #1A1E2B;
  --text-muted: #5A6874;
  --bg-light: #F9FAFB;
  --white: #FFFFFF;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.08);
  --radius-lg: 32px;
  --radius-md: 16px;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--white);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

/* Typography Overrides */
h1,
h2,
h3 {
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--primary);
}

h1 {
  font-size: clamp(32px, 8vw, 56px);
  line-height: 1.1;
  margin-bottom: 20px;
}

h2 {
  font-size: clamp(28px, 6vw, 40px);
  margin-bottom: 40px;
  text-align: center;
  position: relative;
}

h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--secondary);
  margin: 16px auto 0;
  border-radius: 2px;
}

.section-sub {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 700px;
  margin: -24px auto 60px;
  text-align: center;
}

/* Base Components */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 100px 0;
  border-bottom: 1px solid #F0F2F5;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background-color: var(--primary);
  color: var(--white);
  font-weight: 600;
  font-size: 18px;
  padding: 18px 36px;
  border-radius: 60px;
  text-decoration: none;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(10, 37, 64, 0.15);
}

.btn-primary:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(10, 37, 64, 0.2);
}

.btn-secondary {
  background-color: var(--secondary);
  box-shadow: 0 10px 20px rgba(184, 156, 125, 0.2);
}

.btn-secondary:hover {
  background-color: var(--secondary-light);
}

/* Treatment Cards */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.treatment-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  border: 1px solid #EEF2F4;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.treatment-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-md);
  border-color: var(--secondary-light);
}

.badge {
  font-size: 13px;
  font-weight: 700;
  color: var(--secondary);
  background: rgba(184, 156, 125, 0.1);
  display: inline-block;
  padding: 8px 16px;
  border-radius: 40px;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 24px 0;
  background: var(--bg-light);
  padding: 20px;
  border-radius: var(--radius-md);
}

.stat-item {
  flex: 1;
}

.stat-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 4px;
  display: block;
}

.stat-value {
  font-weight: 700;
  color: var(--primary);
  font-size: 16px;
}

/* Results & Reviews */
.carousel-h {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.carousel-item {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid #EEF2F4;
  transition: var(--transition);
}

.before-after-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--bg-light);
}

.review-card {
  padding: 40px;
}

.review-card p {
  font-style: italic;
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* Step Flow */
.flow-steps {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.flow-steps::before {
  content: '';
  position: absolute;
  left: 31px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--secondary), transparent);
}

.step-item {
  display: flex;
  gap: 32px;
  padding: 40px 0;
  position: relative;
}

.step-icon {
  width: 64px;
  height: 64px;
  background: var(--white);
  color: var(--secondary);
  border: 2px solid var(--secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.step-item:hover .step-icon {
  background: var(--secondary);
  color: var(--white);
  transform: scale(1.1);
}

.step-content strong {
  font-size: 20px;
  display: block;
  margin-bottom: 8px;
}

/* Support Stats */
.support-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

@media (max-width: 992px) {
  .support-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .support-grid {
    grid-template-columns: 1fr;
  }
}

.support-card {
  background: var(--white);
  padding: 40px 24px;
  border-radius: var(--radius-lg);
  text-align: center;
  transition: var(--transition);
  border: 1px solid #EEF2F4;
  box-shadow: var(--shadow-sm);
}

.support-card:hover {
  background: var(--white);
  border-color: var(--secondary-light);
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.support-card i {
  font-size: 48px;
  color: var(--secondary);
  margin-bottom: 20px;
  display: block;
}

/* FAQ */
.faq-item {
  border-bottom: 1px solid #EEF2F4;
  padding: 32px 0;
}

.faq-question {
  font-size: 20px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, margin-top 0.4s ease;
  color: var(--text-muted);
}

.faq-item.active .faq-answer {
  max-height: 200px;
  margin-top: 20px;
}

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

/* Floating Elements */
.floating-wa {
  position: fixed;
  bottom: 40px;
  right: 40px;
  background: #25D366;
  color: var(--white);
  border-radius: 60px;
  padding: 16px 28px;
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 12px 24px rgba(37, 211, 102, 0.3);
  z-index: 1000;
  transition: var(--transition);
}

.floating-wa:hover {
  transform: scale(1.05);
  box-shadow: 0 16px 32px rgba(37, 211, 102, 0.4);
}

/* Form Styles */
input,
select,
textarea {
  width: 100%;
  padding: 20px 28px;
  border-radius: 40px;
  border: 1px solid #DFE6E9;
  font-size: 16px;
  background: var(--bg-light);
  transition: var(--transition);
  margin-bottom: 20px;
}

input:focus,
select:focus,
textarea:focus {
  background: var(--white);
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 4px rgba(10, 37, 64, 0.05);
}

/* Footer */
footer {
  background: var(--primary);
  color: #A3B8C2;
  padding: 100px 0 50px;
  text-align: center;
}

footer a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  margin: 0 20px;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
  section {
    padding: 60px 0;
  }

  .grid-cards {
    grid-template-columns: 1fr;
  }

  .floating-wa {
    bottom: 20px;
    right: 20px;
    padding: 12px 20px;
    font-size: 14px;
  }

  .step-item {
    gap: 20px;
  }

  .step-icon {
    width: 48px;
    height: 48px;
    font-size: 18px;
  }

  .flow-steps::before {
    left: 23px;
  }
}

/* High-end decorative elements */
.glass {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Lightbox Modal Simplified */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.5);
  /* 简洁灰色半透明 */
  display: none;
  /* Initial state */
  align-items: center;
  /* 垂直居中 */
  justify-content: center;
  /* 水平居中 */
}

/* Override display for JS toggle */
.modal[style*="display: block"] {
  display: flex !important;
}

.modal-content {
  margin: auto;
  display: block;
  width: 95%;
  max-width: 900px;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 20px;
  color: white;
  font-size: 32px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  cursor: pointer;
  transition: 0.2s;
}

.close-modal:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--secondary);
}

/* Review Card Enhancements */
.review-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 20px;
  border-top: 1px solid #EEE;
  padding-top: 20px;
}

.review-author img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}
