/* 海南博鳌乐城先行港医院管理有限公司 - 企业官网 */
:root {
  --primary: #0a4d8c;
  --primary-dark: #063a6b;
  --primary-light: #1a6bb5;
  --accent: #2b8fd9;
  --sky: #e8f4fc;
  --sky-mid: #d0e8f7;
  --white: #ffffff;
  --text: #1a2b3c;
  --text-muted: #5a6a7a;
  --border: #d4e4f0;
  --shadow: 0 8px 32px rgba(10, 77, 140, 0.1);
  --shadow-sm: 0 2px 12px rgba(10, 77, 140, 0.08);
  --radius: 12px;
  --header-h: 72px;
  --font: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

/* ========== Header ========== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.3s, border-color 0.3s;
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo img {
  height: 48px;
  width: auto;
  /* 白底黑字 logo 在白底导航上：用滤镜转成品牌蓝 */
  filter: brightness(0) saturate(100%) invert(22%) sepia(78%) saturate(1200%) hue-rotate(185deg) brightness(0.85);
}

.logo-text {
  display: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav a {
  padding: 8px 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.nav a:hover,
.nav a.active {
  color: var(--primary);
  background: var(--sky);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
  transition: 0.3s;
}

/* ========== Hero ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 40px) 0 80px;
  background:
    linear-gradient(135deg, rgba(6, 58, 107, 0.92) 0%, rgba(10, 77, 140, 0.88) 45%, rgba(26, 107, 181, 0.85) 100%),
    radial-gradient(ellipse at 70% 30%, rgba(43, 143, 217, 0.35) 0%, transparent 55%),
    linear-gradient(180deg, #063a6b 0%, #0a4d8c 100%);
  color: var(--white);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 80%, rgba(255, 255, 255, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 35%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 80px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath fill='%23ffffff' d='M0,40 C360,80 720,0 1080,40 C1260,60 1380,50 1440,40 L1440,80 L0,80 Z'/%3E%3C/svg%3E") no-repeat bottom center / 100% 100%;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  font-size: 13px;
  letter-spacing: 1px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.hero-slogan {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 400;
  opacity: 0.95;
  margin-bottom: 12px;
}

.hero-desc {
  font-size: 1.05rem;
  opacity: 0.85;
  margin-bottom: 36px;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s;
}

.btn-primary {
  background: var(--white);
  color: var(--primary);
}

.btn-primary:hover {
  background: var(--sky);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--white);
}

.btn-blue {
  background: var(--primary);
  color: var(--white);
}

.btn-blue:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* ========== Sections ========== */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--sky);
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header .eyebrow {
  display: inline-block;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-header h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--primary-dark);
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
  font-size: 15px;
}

.section-header .divider {
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  margin: 16px auto 0;
  border-radius: 2px;
}

/* ========== About ========== */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 56px;
}

.about-text h3 {
  font-size: 1.35rem;
  color: var(--primary-dark);
  margin-bottom: 16px;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 14px;
  font-size: 15px;
}

.about-highlights {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border-left: 3px solid var(--accent);
}

.highlight-item .dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-top: 8px;
  background: var(--accent);
  border-radius: 50%;
}

.highlight-item span {
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 56px;
}

.mission-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--primary);
  transition: transform 0.25s, box-shadow 0.25s;
}

.mission-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.mission-card .label {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.mission-card h4 {
  font-size: 1.05rem;
  color: var(--primary-dark);
  margin-bottom: 10px;
}

.mission-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* 四大特许 */
.policy-title {
  text-align: center;
  margin-bottom: 32px;
}

.policy-title h3 {
  font-size: 1.35rem;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.policy-title p {
  color: var(--text-muted);
  font-size: 14px;
}

.policy-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.policy-card {
  text-align: center;
  padding: 32px 20px;
  background: linear-gradient(160deg, var(--primary-dark) 0%, var(--primary-light) 100%);
  color: var(--white);
  border-radius: var(--radius);
  transition: transform 0.25s;
}

.policy-card:hover {
  transform: translateY(-4px);
}

.policy-card .num {
  font-size: 2rem;
  font-weight: 700;
  opacity: 0.4;
  margin-bottom: 8px;
}

.policy-card h4 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.policy-card p {
  font-size: 13px;
  opacity: 0.85;
  line-height: 1.5;
}

/* ========== Achievements ========== */
.achieve-banner {
  text-align: center;
  padding: 28px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
  color: var(--white);
  border-radius: var(--radius);
  margin-bottom: 40px;
}

.achieve-banner h3 {
  font-size: 1.25rem;
  margin-bottom: 6px;
}

.achieve-banner p {
  opacity: 0.85;
  font-size: 14px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform 0.25s, box-shadow 0.25s;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.stat-card .stat-num {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: 4px;
}

.stat-card .stat-num span {
  font-size: 1.1rem;
  font-weight: 600;
}

.stat-card .stat-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 10px;
}

.stat-card .stat-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
}

.policy-support {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.policy-support h3 {
  font-size: 1.2rem;
  color: var(--primary-dark);
  margin-bottom: 8px;
  text-align: center;
}

.policy-support > p {
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 28px;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.support-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  background: var(--sky);
  border-radius: 8px;
}

.support-item .icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: var(--white);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
}

.support-item strong {
  display: block;
  font-size: 14px;
  color: var(--primary-dark);
  margin-bottom: 2px;
}

.support-item span {
  font-size: 13px;
  color: var(--text-muted);
}

/* ========== Services ========== */
.service-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 40px;
}

.service-tab {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  background: var(--white);
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 24px;
  cursor: pointer;
  transition: all 0.25s;
  font-family: inherit;
}

.service-tab:hover {
  border-color: var(--accent);
  color: var(--primary);
}

.service-tab.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.service-panel {
  display: none;
  animation: fadeIn 0.35s ease;
}

.service-panel.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.service-block {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  margin-bottom: 24px;
}

.service-block:last-child {
  margin-bottom: 0;
}

.service-block .svc-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.svc-num {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--white);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
}

.svc-header h3 {
  font-size: 1.25rem;
  color: var(--primary-dark);
  margin-bottom: 4px;
}

.svc-header .svc-sub {
  font-size: 14px;
  color: var(--accent);
}

.svc-core {
  background: var(--sky);
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--text);
  border-left: 3px solid var(--primary);
}

.svc-core strong {
  color: var(--primary-dark);
}

.feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.feature-item {
  padding: 18px 20px;
  background: var(--sky);
  border-radius: 8px;
}

.feature-item.full {
  grid-column: 1 / -1;
}

.feature-item h4 {
  font-size: 15px;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.feature-item p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.feature-item ul {
  margin-top: 6px;
}

.feature-item li {
  font-size: 13px;
  color: var(--text-muted);
  padding-left: 14px;
  position: relative;
  margin-bottom: 4px;
  line-height: 1.55;
}

.feature-item li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

/* 服务总览卡片（首页） */
.svc-overview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.svc-overview-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}

.svc-overview-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.svc-overview-card .ico {
  width: 48px;
  height: 48px;
  background: var(--sky);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--primary);
  font-size: 22px;
  font-weight: 700;
}

.svc-overview-card h3 {
  font-size: 1.05rem;
  color: var(--primary-dark);
  margin-bottom: 10px;
}

.svc-overview-card p {
  font-size: 13px;
  color: var(--text-muted);
  flex: 1;
  margin-bottom: 16px;
  line-height: 1.6;
}

.svc-overview-card .link {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}

.svc-overview-card .link:hover {
  color: var(--accent);
}

/* ========== Contact ========== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-info h3 {
  font-size: 1.35rem;
  color: var(--primary-dark);
  margin-bottom: 12px;
}

.contact-info > p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 28px;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-item .ci-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--white);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.contact-item strong {
  display: block;
  font-size: 14px;
  color: var(--primary-dark);
  margin-bottom: 4px;
}

.contact-item span,
.contact-item a {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
}

.contact-item a:hover {
  color: var(--primary);
}

.contact-map {
  background: var(--sky);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  border: 1px solid var(--border);
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.contact-map .map-pin {
  width: 64px;
  height: 64px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 20px;
}

.contact-map h4 {
  font-size: 1.1rem;
  color: var(--primary-dark);
  margin-bottom: 10px;
}

.contact-map p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 360px;
}

/* ========== Page Banner ========== */
.page-banner {
  padding: calc(var(--header-h) + 48px) 0 56px;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
  color: var(--white);
  text-align: center;
  position: relative;
}

.page-banner::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 40px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 40' preserveAspectRatio='none'%3E%3Cpath fill='%23ffffff' d='M0,20 C480,40 960,0 1440,20 L1440,40 L0,40 Z'/%3E%3C/svg%3E") no-repeat bottom / 100% 100%;
}

.page-banner.sky-wave::after {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 40' preserveAspectRatio='none'%3E%3Cpath fill='%23e8f4fc' d='M0,20 C480,40 960,0 1440,20 L1440,40 L0,40 Z'/%3E%3C/svg%3E") no-repeat bottom / 100% 100%;
}

.page-banner h1 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin-bottom: 10px;
}

.page-banner p {
  opacity: 0.85;
  font-size: 15px;
}

/* ========== Footer ========== */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 48px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand .logo img {
  height: 42px;
  filter: brightness(0) invert(1);
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 13px;
  line-height: 1.65;
  opacity: 0.8;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 15px;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 13px;
  opacity: 0.75;
  margin-bottom: 10px;
  transition: opacity 0.2s;
}

.footer-col a:hover {
  opacity: 1;
}

.footer-col p {
  font-size: 13px;
  opacity: 0.75;
  margin-bottom: 8px;
  line-height: 1.55;
}

.footer-bottom {
  padding: 20px 0;
  text-align: center;
  font-size: 12px;
  opacity: 0.6;
}

.footer-bottom a {
  color: inherit;
  text-decoration: none;
}

.footer-bottom a:hover {
  text-decoration: underline;
  opacity: 1;
}

/* ========== Home extras ========== */
.cta-section {
  padding: 64px 0;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
  color: var(--white);
  text-align: center;
}

.cta-section h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  margin-bottom: 12px;
}

.cta-section p {
  opacity: 0.85;
  margin-bottom: 28px;
  font-size: 15px;
}

/* ========== Responsive ========== */
@media (max-width: 960px) {
  .about-intro,
  .mission-grid,
  .policy-grid,
  .stats-grid,
  .svc-overview,
  .contact-grid,
  .footer-grid,
  .feature-list,
  .support-grid {
    grid-template-columns: 1fr 1fr;
  }

  .policy-grid {
    grid-template-columns: 1fr 1fr;
  }

  .mission-grid {
    grid-template-columns: 1fr;
  }

  .svc-overview {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 64px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px;
    gap: 4px;
    box-shadow: var(--shadow);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s, opacity 0.3s;
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav a {
    width: 100%;
    padding: 14px 16px;
    text-align: center;
  }

  .logo img {
    height: 40px;
  }

  .hero {
    min-height: auto;
    padding: calc(var(--header-h) + 48px) 0 100px;
  }

  .section {
    padding: 56px 0;
  }

  .about-intro,
  .stats-grid,
  .svc-overview,
  .contact-grid,
  .footer-grid,
  .feature-list,
  .support-grid,
  .policy-grid {
    grid-template-columns: 1fr;
  }

  .service-block {
    padding: 24px 20px;
  }

  .svc-header {
    flex-direction: column;
  }

  .policy-support {
    padding: 24px 20px;
  }

  .footer-grid {
    gap: 28px;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .stat-card .stat-num {
    font-size: 2rem;
  }

  .service-tabs {
    gap: 6px;
  }

  .service-tab {
    padding: 8px 14px;
    font-size: 13px;
  }
}
