﻿/* 公共字体与基础重置 */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: #333;
  font-family: "PingFang SC", "Microsoft YaHei", "Source Han Sans SC", Arial, sans-serif;
  background: #fff;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font-family: inherit;
}

button {
  cursor: pointer;
}

img {
  max-width: 100%;
  vertical-align: middle;
}

/* 公共版心 */
.layout {
  width: 1500px;
  max-width: calc(100% - 40px);
  margin: 0 auto;
}

/* 公共二级页当前位置 */
.page-crumb {
  padding: 56px 0 58px;
}

.crumb-inner {
  display: grid;
  grid-template-columns: 170px 1fr;
  align-items: end;
  gap: 18px;
}

.crumb-title {
  position: relative;
  display: flex;
  width: 170px;
  height: 70px;
  align-items: flex-start;
  padding: 18px 0 0 20px;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  background: var(--primary-blue);
  border-radius: 0 0 22px 0;
}

.crumb-title::after {
  position: absolute;
  left: 20px;
  bottom: 22px;
  width: 42px;
  height: 3px;
  content: "";
  background: #fff;
}

.crumb-right {
  padding-bottom: 6px;
}

.crumb-links {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 36px;
  color: #333;
  font-size: 18px;
  border-bottom: 2px solid #2f6db6;
}

.crumb-links a {
  height: 30px;
  padding: 4px 12px 0;
  line-height: 26px;
}

.crumb-links a.active,
.crumb-links a:hover {
  color: #fff;
  background: var(--primary-blue);
}

.crumb-position {
  margin-top: 4px;
  color: #315d93;
  font-size: 12px;
  line-height: 1;
}

/* 公共子页 banner */
.sub-banner {
  position: relative;
  height: 400px;
  overflow: hidden;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.sub-banner-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transition: opacity .5s ease;
}

.sub-banner-slide.active {
  opacity: 1;
}

.sub-banner-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.sub-banner-dots button {
  width: 13px;
  height: 13px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

.sub-banner-dots button.active {
  background: #00a4e4;
}

.sub-banner.party {
  background-image: linear-gradient(rgba(255,255,255,.08), rgba(255,255,255,.08)), url('../首页.png');
}

.sub-banner.gallery {
  background-image: linear-gradient(rgba(255,255,255,.02), rgba(255,255,255,.02)), url('../医院概况/医院概况.png');
}

/* 公共颜色变量 */
:root {
  --primary-blue: #00499a;
  --text-blue: #0759b2;
  --light-blue-bg: #eaf4ff;
  --text-main: #333;
  --text-muted: #555;
  --section-padding: 72px;
  --section-padding-mobile: 56px;
  --section-title-gap: 52px;
  --section-title-gap-large: 56px;
  --card-shadow: 0 0 16px rgba(0, 0, 0, .12);
  --soft-shadow: 0 0 18px rgba(0, 0, 0, .14);
  --radius-pill: 999px;
}

/* 公共模块标题 */
.section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: var(--section-title-gap);
  color: var(--text-blue);
}

.section-title h2 {
  margin: 0;
  font-size: 32px;
  font-weight: 400;
  letter-spacing: 3px;
}

/* 公共按钮 */
.btn-primary {
  display: inline-block;
  padding: 7px 18px;
  color: #fff;
  font-size: 12px;
  border-radius: var(--radius-pill);
  background: var(--primary-blue);
}

/* 公共卡片 */
.card-shadow {
  background: #fff;
  box-shadow: var(--card-shadow);
}
