
/* ===== 设计变量 ===== */
:root {
  /* 品牌色（渐变蓝，贴近主页图片） */
  --brand: #0B6BA8;
  --brand-grad: linear-gradient(135deg, #1C8AD2 0%, #06599E 100%);

  /* 文本 / 面 */
  --ink: #143243;
  --muted: #476478;
  --line: #D3E2EC;
  --surface: #FFFFFF;
  --page: #FFFFFF;

  /* 统一字号：全站仅 4 档 */
  --fs-sm: 0.85rem;   /* 次要文字 / 占位 / 小按钮 / 元信息 */
  --fs-base: 1rem;    /* 正文 / 导航 / 标签 / 输入 / 列表 */
  --fs-lg: 1.1rem;    /* 主按钮 */
  --fs-xl: 1.35rem;   /* 热线号码 */

  --radius-btn: 12px; /* 圆角仅用于按钮 */
}

/* ===== 重置 ===== */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  background: var(--page);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: var(--fs-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  max-width: 640px;
  margin: 0 auto;
}
a { text-decoration: none; color: inherit; outline: none; }
img { border: 0; max-width: 100%; height: auto; display: block; }
ul { list-style: none; padding: 0; margin: 0; }
h1, h2, h3, p, dl, dd { margin: 0; }
button { border: none; font-family: inherit; cursor: pointer; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); border: 0;
}

/* 通栏：确保各区块随视口自适应，不被遗留固定宽度撑破 */
header, footer, main, section, article, .sx_ban { width: 100%; max-width: 640px; }

/* ===== 顶部 Logo ===== */
.nlogo { background: var(--surface); padding: 10px 16px; border-bottom: 1px solid var(--line); }

/* ===== 顶部主导航（渐变蓝 + 白字） ===== */
#nav {
  position: sticky; top: 0; z-index: 100;
  height: 3.1rem; width: 100%;
  background: var(--brand-grad);
  box-shadow: 0 2px 10px rgba(11, 107, 168, 0.25);
  overflow: hidden;
}
#nav ul { display: flex; height: 100%; }
#nav ul li { flex: 1; display: flex; align-items: center; justify-content: center; height: 100%; }
#nav ul li a {
  position: relative; display: flex; align-items: center; justify-content: center;
  height: 100%; width: 100%;
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--fs-base); font-weight: 500; letter-spacing: 0.02em;
  transition: color 0.2s ease;
}
#nav ul li a:hover { color: #fff; }
#nav ul li a.active { color: #fff; font-weight: 600; }
#nav ul li a.active::after {
  content: ""; position: absolute; bottom: 5px; left: 50%;
  transform: translateX(-50%); width: 34%; height: 3px; background: #fff;
}

/* ===== 底部导航（与顶部同款渐变蓝） ===== */
.end { height: 3rem; width: 100%; background: var(--brand-grad); overflow: hidden; }
.end ul { display: flex; height: 100%; }
.end ul li { flex: 1; display: flex; align-items: center; justify-content: center; height: 100%; border-right: 1px solid rgba(255, 255, 255, 0.18); }
.end ul li:last-child { border-right: 0; }
.end ul li a {
  display: flex; align-items: center; justify-content: center; height: 100%; width: 100%;
  color: rgba(255, 255, 255, 0.90); font-size: var(--fs-base); font-weight: 500;
  letter-spacing: 0.02em; transition: color 0.2s ease;
}
.end ul li a:hover { color: #fff; }

/* ===== 页脚信息 ===== */
.site-footer { clear: both; background: var(--surface); }
.site-footer .foot { padding: 0.9rem 1rem 4.8rem; font-size: var(--fs-sm); text-align: center; color: var(--muted); }
.site-footer .foot p { text-align: center; line-height: 2em; }
.site-footer .foot a:not(.hotline) { color: var(--muted); }
.site-footer .foot a:hover { color: var(--brand); }

/* 热线号码（页脚 + 路线页共用） */
.hotline {
  display: inline-block;
  font-size: var(--fs-xl); font-weight: 700; letter-spacing: 0.02em;
  color: var(--brand); font-variant-numeric: tabular-nums;
}

/* 就诊时间（页脚）：仅加粗 + 大一号，沿用页脚文字颜色 */
.clinic-hours { font-size: var(--fs-base); font-weight: 700; }

/* ===== 首页：横幅 / 简介 / 图文 ===== */
.sx_ban { clear: both; margin: 0; }
.sx_ban a { display: block; }
.sx_ban img { width: 100%; }

.dy {
  display: flex; align-items: flex-start; gap: 10px;
  width: 100%; margin: 0; padding: 12px 14px 12px 0;
  background: var(--surface); border-bottom: 1px solid var(--line); overflow: hidden;
}
.dy .i { width: 40px; flex-shrink: 0; margin: 2px 0 0; }
.dy .i img { width: 40px; }
.dy span { flex: 1; font-size: var(--fs-base); color: var(--ink); line-height: 1.8; }

.site-main { clear: both; }
.home-features { padding: 0; }
.home-features img { width: 100%; margin-bottom: 0; }

/* ===== 首页：预约表单 ===== */
.yuyue-form { width: 100%; margin: 0; padding: 16px 14px; background: var(--surface); border-top: 3px solid var(--brand); }
.yuyue-form-item { display: flex; align-items: center; margin-bottom: 1rem; }
.yuyue-form-item label {
  width: 140px; flex-shrink: 0; white-space: nowrap; text-align: right;
  font-weight: 600; font-size: var(--fs-base); color: var(--ink); padding-right: 12px;
}
.yuyue-form-item label .required { color: #E11D48; margin-right: 4px; }
.yuyue-form-item input[type="text"],
.yuyue-form-item input[type="tel"],
.yuyue-form-item input[type="date"] {
  flex: 1; min-width: 0; height: 42px;
  font-size: var(--fs-base); color: var(--ink); padding: 0 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 0; outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.yuyue-form-item input[type="text"]:focus,
.yuyue-form-item input[type="tel"]:focus,
.yuyue-form-item input[type="date"]:focus {
  background: #fff; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(11, 107, 168, 0.14);
}
.yuyue-form-item input::placeholder { font-size: var(--fs-sm); color: #AAB8C4; opacity: 1; }

.captcha-group { flex: 1; min-width: 0; display: flex; gap: 10px; }
.captcha-group input {
  flex: 1; min-width: 0; text-align: center; height: 42px;
  font-size: var(--fs-base); letter-spacing: 1px; color: var(--ink);
  background: #fff; padding: 0 6px; border: 1px solid var(--line); border-radius: 0; outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.captcha-group input:focus { background: #fff; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(11, 107, 168, 0.14); }
.captcha-group button {
  width: 96px; height: 42px; flex-shrink: 0;
  background: var(--brand-grad); color: #fff; border-radius: var(--radius-btn);
  font-size: var(--fs-sm); font-weight: 500; white-space: nowrap;
  box-shadow: 0 4px 12px rgba(11, 107, 168, 0.22); transition: filter 0.2s ease;
}
.captcha-group button:active { filter: brightness(0.95); }
.captcha-group button:disabled { background: #C4CFD8; color: #6B7A88; cursor: not-allowed; box-shadow: none; }

.yuyue-form-tips { text-align: center; color: var(--muted); font-size: var(--fs-sm); margin: 0.8rem 0 0; }
.yuyue-form-actions { display: flex; justify-content: center; gap: 16px; margin-top: 1.3rem; }
.yuyue-form-actions button,
.yuyue-form-actions .btn-call {
  flex: 1; max-width: 190px; height: 46px; border: none; border-radius: var(--radius-btn);
  color: #fff; font-size: var(--fs-lg); font-weight: 600; letter-spacing: 0.03em;
  background: var(--brand-grad); box-shadow: 0 8px 20px rgba(11, 107, 168, 0.30);
  transition: transform 0.12s ease, filter 0.2s ease;
}
.yuyue-form-actions .btn-call { display: flex; align-items: center; justify-content: center; text-align: center; }
.yuyue-form-actions button:active,
.yuyue-form-actions .btn-call:active { transform: translateY(1px); filter: brightness(0.97); }

/* 预约日期：原生 date 作为可见控件，隐藏空 yyyy/mm/日，显示中文占位 */
.date-wrap { position: relative; flex: 1; min-width: 0; }
.date-wrap input[type="date"] { width: 100%; }
.date-wrap input[type="date"]:invalid::-webkit-datetime-edit { color: transparent; }
.date-ph { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: #AAB8C4; font-size: var(--fs-sm); pointer-events: none; }
.date-wrap input[type="date"]:valid + .date-ph { display: none; }

/* ===== 医生团队 ===== */
.card-container { padding: 2px; margin-bottom: 5px; -webkit-tap-highlight-color: transparent; }
.doctor-card {
  display: flex; align-items: center; background: #fff; border-radius: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06); margin-bottom: 5px; padding: 12px;
}
.avatar { width: 60px; height: 60px; border-radius: 50%; margin-right: 10px; flex-shrink: 0; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06); }
.info-box { flex: 1; display: flex; flex-direction: column; justify-content: center; margin-right: 10px; overflow: hidden; }
.title-row { margin-bottom: 6px; white-space: nowrap; }
.name { font-size: var(--fs-base); font-weight: 700; color: var(--ink); }
.role { font-size: var(--fs-sm); color: var(--brand); margin-left: 6px; }
.desc {
  font-size: var(--fs-sm); color: var(--muted); line-height: 1.5;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  overflow: hidden; max-height: 2.6em; text-overflow: ellipsis;
}
.btn-appoint {
  display: inline-block; background: var(--brand-grad); color: #fff;
  font-size: var(--fs-sm); font-weight: 500; padding: 8px 18px; border-radius: 20px;
  flex-shrink: 0; text-align: center; box-shadow: 0 4px 12px rgba(11, 107, 168, 0.24);
  -webkit-tap-highlight-color: transparent;
}
.btn-appoint:active { filter: brightness(0.95); }

/* ===== 联系方式 / 到院路线 ===== */
.contact-info { margin-top: 16px; padding-bottom: 2rem; }
.contact-info > img { width: 98%; margin: 0 1%; border-radius: 0; }
.contact-list { margin: 16px 4% 0; font-size: var(--fs-base); }
.contact-list dt { font-weight: 700; color: var(--ink); margin-top: 12px; }
.contact-list dd { margin: 4px 0 0; color: var(--muted); line-height: 1.8; }

/* ===== 手机端：仅调整布局尺寸，字号保持统一 ===== */
@media (max-width: 480px) {
  .dy { padding: 10px 12px 10px 0; }
  .yuyue-form { padding: 14px 12px; }
  .yuyue-form-item { margin-bottom: 0.8rem; }
  .yuyue-form-item label { width: 100px; padding-right: 8px; }
  .yuyue-form-item input[type="text"],
  .yuyue-form-item input[type="tel"],
  .yuyue-form-item input[type="date"] { height: 40px; }
  .captcha-group input { height: 40px; }
  .captcha-group button { width: 84px; height: 40px; }
  .yuyue-form-actions { margin-top: 1.1rem; gap: 12px; }
  .yuyue-form-actions button,
  .yuyue-form-actions .btn-call { max-width: 155px; height: 44px; }
}
