/* Clean static site - design tokens from original WP/Elementor */
:root {
  --color-primary: #7456f1;
  --color-primary-dark: #5e3fde;
  --color-text: #4d5d6d;
  --color-heading: #102136;
  --color-border: #E7EBEE;
  --color-bg-light: #F3F5F7;
  --color-bg-lighter: #FBFBFC;
  --color-white: #ffffff;
  --color-footer-bg: #eff1f1;
  --color-hero-bg: #F7F8F8;
  --font-heading: 'Merriweather', Georgia, serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --container-max: 1290px;
  --section-spacing: 60px;
  --header-height: 90px;
  --radius-button: 50px;
  --radius-card: 10px;
  --shadow-card: 0 0 45px 0 rgba(225, 225, 225, 0.5);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-white);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-primary-dark); }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-heading);
  margin: 0 0 0.5em;
  line-height: 1.5;
}
h1 { font-size: 2.5rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.9rem; }
h4 { font-size: 1.6rem; }
p { margin: 0 0 1em; }

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

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  z-index: 100;
  padding: 8px 16px;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: 4px;
}
.skip-link:focus { top: 20px; }

/* Header - match original: logo 90px, logo + nav left-aligned, 70px between logo and nav, 78px between nav items */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-height);
  background: var(--color-white);
  box-shadow: 0 10px 20px rgba(44, 62, 80, 0.05);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
  gap: 0;
}
.site-logo {
  flex-shrink: 0;
}
.site-logo img {
  max-height: 72px;
  width: auto;
  height: auto;
}
.nav-menu {
  display: flex;
  list-style: none;
  margin: 0 0 0 70px;
  padding: 0;
  gap: 78px;
}
.nav-menu a {
  color: var(--color-heading);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.3;
}
.nav-menu a:hover { color: var(--color-primary); }

/* 当前激活页面的导航项：高亮 + 底部短横线 */
.nav-menu a.is-active {
  position: relative;
  color: var(--color-primary);
}
.nav-menu a.is-active::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -12px;
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
}
.menu-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: var(--color-heading);
}

/* Hero */
.section-hero {
  background: var(--color-hero-bg);
  padding: 50px 0 50px;
  margin-bottom: 50px;
}
.hero-inner {
  display: flex;
  align-items: center;
  gap: 35px;
  flex-wrap: wrap;
  background-image: url("../images/flower.svg");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: contain;
}
.hero-content { flex: 1 1 400px; max-width: 55%; }
.hero-title {
  font-family: 'Merriweather', sans-serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 28px;
  letter-spacing: normal;
}
.hero-subtitle { font-size: 19px; line-height: 1.6; margin-bottom: 50px; max-width: 28em; font-weight: 500; }
.btn {
  display: inline-block;
  padding: 20px 40px;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 18px;
  font-weight: 500;
  border-radius: var(--radius-button);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}
.btn:hover { background: var(--color-primary-dark); color: var(--color-white); }
.hero-image { flex: 1 1 400px; text-align: right; }
.hero-image img { max-width: 100%; border-radius: 50px; opacity: 0.95; margin-left: auto; }

/* Section divider */
.section-divider {
  width: 5%;
  margin: 40px auto 16px;
  border: 0;
  border-top: 4px solid var(--color-primary-dark);
}

/* Section titles */
.section-header { text-align: center; margin-bottom: 30px; }
.section-header h2 { margin-bottom: 20px; }
.section-header p { margin: 0; }

/* Services grid */
.section-services {
  padding: 0 0 30px;
  margin-bottom: 30px;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px 20px;
}
.service-card {
  min-height: 250px;
  padding: 20px;
  background: var(--color-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  transition: background 0.3s, border 0.3s, border-radius 0.3s;
  text-align: center;
}
.service-card:hover {
  background: var(--color-border);
  border-bottom: 4px solid var(--color-primary);
  border-radius: 3px;
}
.service-card .icon {
  font-size: 60px;
  color: var(--color-primary);
  margin-bottom: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.service-card .icon svg { width: 1em; height: 1em; fill: currentColor; }
.service-card h4 { margin-bottom: 13px; font-size: 25px; }
.service-card p { font-size: 15px; margin: 0; line-height: 1.5; }

/* Vertical model section */
.section-vertical {
  margin-bottom: 100px;
}
.vertical-architecture {
  min-height: 600px;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 30px;
}
.vertical-architecture img {
  width: 100%;
  height: 100%;
  min-height: 600px;
  object-fit: contain;
  object-position: center;
  display: block;
}
.vertical-inner {
  display: flex;
  align-items: center;
  gap: 35px;
  flex-wrap: wrap;
  margin-top: 100px;
}
.vertical-content {
  flex: 1 1 400px;
  background-image: url("../images/flower-2.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  padding: 40px 0;
}
.vertical-content h3 { font-size: 60px; line-height: 1.2; margin-bottom: 30px; }
.vertical-content .btn { margin-bottom: 0; }
.vertical-text { flex: 1 1 400px; font-size: 18px; }

/* Smart apps (3 cards) */
.section-apps {
  margin-bottom: 120px;
}
.apps-grid {
  display: flex;
  gap: 35px;
  flex-wrap: wrap;
  justify-content: center;
}
.app-card {
  flex: 1 1 280px;
  max-width: 32%;
  background: var(--color-hero-bg);
  border-radius: 20px;
  padding: 10px;
  text-align: center;
}
.app-card img { height: 600px; object-fit: cover; width: 100%; border-radius: 8px; }
.app-card h4 { margin-top: 10px; }

/* Our advantages */
.section-advantages { padding: 50px 0 80px; }
.advantages-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 40px;
  justify-content: center;
}
.advantage-card {
  flex: 1 1 300px;
  max-width: 32%;
  padding: 20px;
}
.advantage-card img { width: 100%; height: 260px; object-fit: cover; border-radius: 7px; }
.advantage-card h4 { margin: 10px 0 0; }
.advantage-card p { margin: 8px 0 0; font-size: 15px; }

/* Full scene */
.section-fullscene {
  background: var(--section-fullscene-bg, var(--color-primary));
  padding: 50px 0 100px;
  margin-bottom: 0;
}
.fullscene-inner {
  display: flex;
  align-items: center;
  gap: 35px;
  flex-wrap: wrap;
}
.fullscene-image {
  flex: 1 1 50%;
  background: rgba(247, 244, 255, 0.9);
  padding: 16px 16px 24px;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}
.fullscene-image img { width: 100%; height: 396px; object-fit: cover; border-radius: 8px; display: block; }
.fullscene-content { flex: 1 1 45%; color: var(--color-white); }
.fullscene-content h2 { color: var(--color-white); margin-bottom: 20px; }
.fullscene-content p { color: rgba(255,255,255,0.9); margin-bottom: 50px; }

/* Customers */
.section-customers { margin-bottom: 100px; }
.customers-grid {
  display: flex;
  gap: 35px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0;
}
.customer-card {
  flex: 1 1 280px;
  max-width: 32%;
  text-align: center;
}
.customer-card img { height: 494px; object-fit: cover; width: 100%; border-radius: 20px; margin-bottom: 40px; }
.customer-card h5 { margin: 0; font-size: 20px; }

/* Contact section */
.section-contact {
  margin-bottom: 100px;
}
.contact-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  background: var(--color-hero-bg);
  background-image: url("../images/美女医生接待患者.png");
  background-size: cover;
  background-position: center;
  border-radius: 20px;
  padding: 30px;
  position: relative;
}
.contact-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(38, 58, 59, 0.45);
  border-radius: 20px;
}
.contact-form-wrap {
  position: relative;
  z-index: 1;
  flex: 0 1 420px;
  max-width: 45%;
  margin-left: 18%;
}
.contact-form-wrap h2 { color: var(--color-border); text-align: center; margin-bottom: 8px; }
.contact-form-wrap > p { color: #CACACA; text-align: center; margin-bottom: 10px; }
.contact-form label { display: block; margin-bottom: 4px; color: var(--color-bg-lighter); }
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 18px;
  margin-bottom: 12px;
  border: 1px solid var(--color-border);
  border-radius: 25px;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(2px);
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form button[type="submit"] { margin-top: 8px; }
.contact-success-message {
  margin-top: 10px;
  font-size: 14px;
  color: #16a34a;
}

/* Footer */
.site-footer {
  background: var(--color-footer-bg);
  background-image: url("../images/flower.svg");
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: contain;
  padding: 70px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 120px;
  padding-bottom: 70px;
}
.footer-title {
  font-size: 20px;
  color: #6c8181;
  margin-bottom: 1em;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.5em; }
.site-footer a { color: var(--color-text); }
.site-footer a:hover { color: var(--color-primary); }
.footer-bottom {
  padding: 25px 0;
  border-top: none;
}
.footer-copyright {
  font-size: 15px;
  color: var(--color-text);
  margin: 0;
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 40;
}
.back-to-top.visible { display: flex; }
.back-to-top:hover { background: var(--color-primary-dark); color: var(--color-white); }

/* Responsive */
@media (max-width: 1024px) {
  .hero-title { font-size: 40px; }
  .hero-inner { gap: 35px; margin-bottom: 70px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .vertical-architecture { min-height: 400px; }
  .vertical-architecture img { min-height: 400px; }
  .vertical-content h3 { font-size: 40px; }
  .vertical-inner { margin-top: 0; margin-bottom: 70px; }
  .app-card { max-width: 48%; }
  .app-card img { height: 400px; }
  .advantage-card { max-width: 48%; }
  .fullscene-inner { flex-direction: column; }
  .fullscene-image, .fullscene-content { flex: 1 1 100%; }
  .customer-card { max-width: 48%; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 50px; }
  .contact-form-wrap { max-width: 80%; margin-left: 8%; }
}

@media (max-width: 768px) {
  :root { --header-height: 70px; }
  .site-logo img { max-height: 30px; }
  .menu-toggle { display: block; }
  .nav-menu {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    padding: 20px;
    gap: 12px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
  }
  .nav-menu.is-open { display: flex; }
  .hero-inner { padding-top: 20px; padding-bottom: 30px; text-align: center; background-size: 60%; background-position: center bottom; }
  .hero-content { text-align: center; max-width: none; }
  .hero-subtitle { margin-bottom: 24px; margin-left: auto; margin-right: auto; }
  .hero-image { text-align: center; }
  .hero-image img { margin-left: auto; margin-right: auto; }
  .section-header h2 { font-size: 25px; }
  .services-grid {
    grid-template-columns: 1fr;
    padding: 0 0 50px;
  }
  .service-card {
    padding: 30px;
    text-align: center;
  }
  .service-card .icon { margin-left: auto; margin-right: auto; }
  .vertical-content { text-align: center; }
  .vertical-content h3 { font-size: 25px; }
  .vertical-text { text-align: center; }
  .apps-grid { gap: 25px; margin-bottom: 70px; }
  .app-card { max-width: 100%; padding: 50px 25px; }
  .app-card img { height: 300px; }
  .advantages-grid { padding: 0 20px; }
  .advantage-card { max-width: 100%; }
  .fullscene-inner { flex-direction: column; gap: 0; }
  .fullscene-content { text-align: center; }
  .fullscene-content p { margin-bottom: 50px; }
  .customers-grid { margin-bottom: 70px; }
  .customer-card { max-width: 100%; }
  .contact-inner { padding: 50px 50px 30px; }
  .contact-form-wrap { max-width: 100%; margin-left: 0; }
  .contact-form-wrap h2 { font-size: 25px; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; padding-bottom: 40px; }
}

/* Page hero (about / inner pages) */
.page-hero .hero-title { margin-bottom: 24px; }
.page-hero .section-header { text-align: center; padding: 60px 0; }

/* About us page */
.about-hero .hero-inner {
  padding: 50px 0;
  background-image: none;
}
.about-hero-highlights {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  font-size: 15px;
  color: var(--color-text);
}
.about-hero-highlights li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 6px;
}
.about-hero-highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
}
.section-about-content { margin-bottom: 80px; }
.about-intro {
  max-width: 720px;
  margin: 0 auto 40px;
  font-size: 18px;
  line-height: 1.7;
  color: var(--color-text);
}
.about-list {
  list-style: none;
  margin: 0 auto 40px;
  padding: 0;
  max-width: 480px;
  text-align: left;
}
.about-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 17px;
}
.about-list li:last-child { border-bottom: none; }
.about-cta { text-align: center; }

.section-about-partners {
  margin-bottom: 120px;
}
.about-partner-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}
.about-partner-card {
  background: var(--color-white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.about-partner-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.about-partner-card h4 {
  margin: 16px 20px 8px;
  font-size: 18px;
}
.about-partner-card p {
  margin: 0 20px 20px 20px;
  font-size: 14px;
  color: var(--color-text);
}

/* Contact standalone page */
.standalone-contact {
  margin-bottom: 80px;
  background: radial-gradient(circle at 0% 0%, rgba(255,255,255,0.7) 0, transparent 45%),
              radial-gradient(circle at 100% 0%, rgba(255,255,255,0.7) 0, transparent 45%),
              var(--color-hero-bg);
  background-image:
    url("../images/flower.svg"),
    radial-gradient(circle at 0% 0%, rgba(255,255,255,0.7) 0, transparent 45%),
    radial-gradient(circle at 100% 0%, rgba(255,255,255,0.7) 0, transparent 45%),
    var(--color-hero-bg);
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
  background-position: center bottom, left top, right top, center;
  background-size: 480px auto, 260px 260px, 260px 260px, auto;
  padding-top: 40px;
  padding-bottom: 80px;
}
.contact-standalone-inner {
  max-width: 560px;
  margin: 40px auto 0;
  padding: 40px;
  background: var(--color-bg-lighter);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
}
.contact-standalone-inner .section-header { margin-bottom: 24px; }
.contact-form-standalone label { color: var(--color-heading); }
.contact-form-standalone input,
.contact-form-standalone textarea { background: var(--color-white); }

@media (max-width: 480px) {
  .hero-title { font-size: 32px; }
  .btn { padding: 16px 32px; font-size: 16px; }
}
