/* ===================== 广州华厦维尔视眼科 原型站样式 ===================== */
:root {
  /* --brand: #1e6fd9;
  --brand-dark: #0b3d91;
  --brand-light: #2b8aff; */
  --brand: #20a7ff;
  --brand-dark: #1c85be;
  --brand-light: #46bbff;
  --accent: #ff8a3c;
  --text: #2b2f36;
  --muted: #7a828f;
  --bg: #f5f8fc;
  --card: #ffffff;
  --line: #e6ecf3;
  --radius: 12px;
  --shadow: 0 6px 22px rgba(20, 60, 130, 0.08);
  --header-h: 64px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-light); }
img { max-width: 100%; display: block; }
.muted { color: var(--muted); }
.app-loading { padding: 80px; text-align: center; color: var(--muted); }

/* ---------- 顶部导航 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 1000;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 10px rgba(20, 60, 130, 0.05);
}
.topbar-inner { display: flex; align-items: center; height: var(--header-h); position: relative; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--brand-dark); }
.brand-logo { width: auto; height: 36px; border-radius: 8px; }
.brand-name { font-size: 18px; white-space: nowrap; }
.mainnav { margin-left: auto; display: flex; gap: 6px; }
.nav-link {
  padding: 8px 14px; border-radius: 8px; color: var(--text);
  font-size: 15px; transition: all .2s;
}
.nav-link:hover { background: var(--bg); color: var(--brand); }
.nav-link.active { background: var(--brand); color: #fff; }
.menu-toggle {
  margin-left: auto; display: none; width: 42px; height: 42px;
  border: none; background: transparent; font-size: 24px; color: var(--brand);
  cursor: pointer;
}

/* ---------- 主体 ---------- */
.page-main { min-height: calc(100vh - var(--header-h) - 200px); padding-top: 0; }
.section { padding: 36px 0 12px; }
.intro-text { font-size: 16px; color: #445; max-width: 920px; margin: 0 auto 22px; text-align: left; }
.section-title { text-align: center; font-size: 26px; margin: 8px 0 24px; color: var(--brand-dark); position: relative; }
.section-title::after {
  content: ""; display: block; width: 48px; height: 4px; border-radius: 4px;
  background: var(--accent); margin: 12px auto 0;
}
.sub-title { font-size: 20px; text-align: center; margin: 28px 0 14px; color: var(--brand-dark); }

/* ---------- 首页 Hero ---------- */
.hero { position: relative; min-height: 420px; display: flex; align-items: center; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-mask {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(6, 28, 68, .88) 0%, rgba(11, 61, 145, .72) 40%, rgba(30, 111, 217, .35) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  color: #fff;
  padding: 36px 0;
  max-width: 560px;
}
.hero-content h1 {
  font-size: 38px;
  margin: 0 0 10px;
  font-weight: 800;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .45);
}
.hero-slogan {
  font-size: 18px;
  opacity: .95;
  margin: 0 0 24px;
  letter-spacing: 2px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .35);
}
.hero-actions .layui-btn { margin-right: 12px; }

/* ---------- 首页 banner ---------- */
.banner{
  width:100%;
	min-width: 1200px;
  height:450px; 
  margin-left: auto;
  margin-right: auto;
  position:relative; 
	overflow: hidden;
	background: (var(--bg));
}
.banner .swiper-container-banner{
  height: 100%;
}
.banner .swiper-container-banner img{
  width: 1920px;
  max-width: 1920px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  -ms-flex-transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
}
.swiper-slide {
  text-align: center;
  font-size: 18px;
  background: #fff;

  /* Center slide text vertically */
  display: -webkit-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  -webkit-align-items: center;
  align-items: center;
}
.banner-wap{
  display: none;
}


@media only screen and (max-width: 768px) {
  .banner{
    display: none;
  }
  .banner-wap{
    display: block;
    width:100%;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    position:relative; 
    overflow: hidden;
    background: (var(--bg));
  }
  .banner-wap .swiper-banner-wap{
    height: 100%;
  }
}

/* ---------- 数据统计卡片 ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 8px;
}
.stat {
  text-align: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 12px;
  box-shadow: var(--shadow);
}
.stat-num { font-size: 34px; font-weight: 800; color: var(--brand); }
.stat-unit { font-size: 16px; margin-left: 2px; color: var(--accent); }
.stat-label { color: var(--muted); margin-top: 4px; }

/* 服务能力卡片（替代数字统计） */
.stat-service { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.stat-service .stat-num {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  width: 72px; height: 72px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
  box-shadow: 0 4px 14px rgba(30, 111, 217, .3);
}
.stat-service .stat-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  text-align: center;
}

/* ---------- 卡片通用 ---------- */
.feature-card, .dept-card, .doctor-card, .news-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow); height: 100%; transition: transform .2s, box-shadow .2s;
}
.feature-card:hover, .dept-card:hover, .doctor-card:hover, .news-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(20,60,130,.14); }
.feat-icon, .dept-icon { font-size: 34px; color: var(--brand); display: inline-block; margin-bottom: 8px; }
.feature-card h3, .dept-card h3, .doctor-card h3 { margin: 6px 0; font-size: 18px; }
.tags { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.tags .layui-badge { margin: 0; }

/* 诊疗/专家网格卡片 */
.dept-card { height: 280px; display: flex; flex-direction: column; overflow: hidden; }
.dept-card .dept-desc {
  flex: 1;
  display: -webkit-box; -webkit-box-orient: vertical;
  -webkit-line-clamp: 3; overflow: hidden;
  line-height: 1.6; font-size: 14px; color: var(--muted);
}
.dept-card .tags { margin-top: auto; flex-shrink: 0; }
.doctor-avatar { width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 10px; object-fit: cover; border: 3px solid var(--bg); }
.doctor-card { text-align: center; }
.doctor-title { color: var(--brand); font-size: 14px; margin: 2px 0 8px; }

/* 资讯 */
.news-card { display: block; color: var(--text); padding: 0; overflow: hidden; max-width: 365px;}
.news-card img { width: 100%; height: 180px; object-fit: contain; background-color: var(--brand); }
.news-body { padding: 16px; }
.news-body h3 { font-size: 17px; margin: 8px 0; line-height: 1.4; }
.news-date { color: var(--muted); font-size: 13px; margin: 8px 0 0; }
/* 资讯列表（横排三列 → 列表项：左缩略图 + 右标题/描述/日期） */
.news-list { display: flex; flex-direction: column; gap: 16px; margin-top: 4px; }
.news-item {
  display: flex; gap: 18px; align-items: stretch;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow);
  color: var(--text); transition: transform .2s, box-shadow .2s;
}
.news-item:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(20,60,130,.12); }
.news-thumb { flex: 0 0 200px; width: 200px; }
.news-thumb img { width: 200px; height: 140px; object-fit: cover; border-radius: 10px; }
.news-info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.news-info .layui-badge { align-self: flex-start; margin-bottom: 6px; }
.news-item-title { font-size: 18px; margin: 2px 0 8px; line-height: 1.4; }
.news-item-desc { font-size: 14px; line-height: 1.7; margin: 0 0 8px; }
.news-item .news-date { margin-top: auto; align-self: flex-start; }
.news-cover { width: 100%; max-height: 360px; object-fit: cover; border-radius: var(--radius); margin: 12px 0; }
.news-content p { margin: 12px 0; font-size: 16px; }
.back-link { display: inline-block; margin-bottom: 14px; color: var(--muted); }

/* 简介 */
/* 关于我们 - 列表横栏（与介绍部分等宽） */
.about-col { max-width: 920px; margin: 0 auto; }
.sub-text { color: #445; font-size: 16px; margin: 0 0 22px; }
.expert-list { display: flex; flex-direction: column; gap: 20px; margin-top: 8px; }
.expert-row {
  display: flex; gap: 22px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow);
}
.expert-avatar { flex: 0 0 180px; width: 180px; }
.expert-avatar img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 10px; display: block; margin: 0; }
.expert-info { flex: 1; min-width: 0; }
.expert-info h3 { font-size: 18px; margin: 0 0 10px; color: var(--text); line-height: 1.4; }
.expert-info .muted { margin: 0; font-size: 15px; line-height: 1.8; }
.honor-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; }
.honor-list li { color: var(--text); }
.honor-list .layui-icon { color: var(--brand); margin-right: 6px; }

/* 预约 / 联系 */
.tip-card { background: #fff7ef; border: 1px solid #ffe2c4; color: #9a5b1e; margin-bottom: 18px; }
.appointment-form { max-width: 640px; margin: 0 auto; }
.appointment-form .layui-form-label {
  width: 90px;
  white-space: nowrap;
  text-align: right;
  padding: 9px 12px 9px 0;
}
.appointment-form .layui-input-block {
  margin-left: 100px;
}
.err-tip { color: #d84315; margin-top: 10px; }
.ok-card { background: #effaf1; border: 1px solid #c7eccd; color: #1f7a35; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: 12px 0; border-bottom: 1px dashed var(--line); }
.contact-list .layui-icon { color: var(--brand); font-size: 18px; margin-right: 8px; vertical-align: middle; }
.map-img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); }
/* 高德地图容器（必须有显式高度，否则地图不渲染） */
#container_map, .contact-map {
  width: 100%; height: 420px;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: #eef2f7;
}
/* 高德自定义信息窗体 */
.info { border: solid 1px silver; border-radius: 6px; overflow: hidden; }
.info-top { position: relative; background: #20a7f6; border-bottom: 1px solid #ccc; border-radius: 5px 5px 0 0; }
.info-top div { display: inline-block; color: #fff; font-size: 14px; font-weight: bold; line-height: 31px; padding: 0 10px; }
.info-top img { position: absolute; top: 10px; right: 10px; cursor: pointer; }
.info-top img:hover { box-shadow: 0 0 5px #000; }
.info-middle { font-size: 12px; padding: 6px; line-height: 20px; }
.info-middle img { float: left; margin-right: 6px; }
.info-bottom { height: 0; width: 100%; clear: both; text-align: center; }
.info-bottom img { position: relative; z-index: 104; }
.amap-info-content { font-size: 12px; }

/* 首页 CTA */
.home-cta {
  text-align: center;
  background: linear-gradient(120deg, #eef4ff, #f5f9ff);
  border-radius: var(--radius);
  padding: 44px 24px;
  margin: 28px auto;
  max-width: 720px;
}
.home-cta .section-title { margin-bottom: 14px; }
.home-cta p { max-width: 480px; margin: 0 auto 18px; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--brand-dark); color: #cdd9ee; margin-top: 40px; padding: 32px 0 0; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-grid > div { flex: 1 1 220px; }
.site-footer h4 { color: #fff; margin: 0 0 12px; }
.site-footer a { color: #9fc0ff; }
.site-footer .muted { color: #aebcd6; }
.copyright { text-align: center; padding: 16px; margin-top: 24px; border-top: 1px solid rgba(255,255,255,.12); color: #9fb0d0; font-size: 13px; }

/* ===================== 响应式 ===================== */
@media (max-width: 768px) {
  /* 移动端全局左右缩进 */
  .page-main { padding: 0 12px; }
  .section { padding: 24px 0 8px; }

  .brand-name { font-size: 16px; }
  .menu-toggle { display: block; }
  .mainnav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; gap: 0; background: #fff;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    display: none; padding: 6px 0;
  }
  .mainnav.open { display: flex; }
  .nav-link { border-radius: 0; padding: 14px 18px; }
  .nav-link.active { background: var(--brand); }

  /* Hero */
  .hero-content h1 { font-size: 26px; text-shadow: 0 2px 8px rgba(0,0,0,.4); }
  .hero-slogan { font-size: 14px; letter-spacing: 1px; }
  .hero-actions .layui-btn { display: block; width: 100%; margin: 0 0 12px; }

  /* 统计卡片：移动端 2x2 */
  .stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stat { padding: 16px 8px; }
  .stat-num { font-size: 26px; }

  /* 标题 */
  .section-title { font-size: 22px; }

  /* CTA */
  .home-cta { padding: 28px 16px; margin: 16px 0; max-width: 100%; }

  /* 预约表单：标签在上 */
  .appointment-form .layui-form-label {
    width: auto;
    text-align: left;
    float: none;
    padding: 4px 0;
  }
  .appointment-form .layui-input-block {
    margin-left: 0;
  }

  /* 联系页 */
  .contact-list li { padding: 10px 0; font-size: 14px; }

  /* 资讯列表：移动端缩略图在上 */
  .news-item { flex-direction: column; gap: 12px; padding: 14px; }
  .news-thumb, .news-thumb img { width: 100%; }
  .news-thumb img { height: 180px; }
  .news-item .news-date { margin-top: 6px; }

  /* 地图容器移动端高度 */
  #container_map, .contact-map { height: 300px; }

  /* 关于我们：专家列表移动端竖排，头像居中 */
  .expert-row { flex-direction: column; align-items: stretch; }
  .expert-avatar { flex: none; width: 100%; max-width: 220px; margin: 0 auto; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .hero-content h1 { font-size: 32px; }
}

/* ===================== PbootCMS 专属样式 ===================== */

/* 面包屑 */
.breadcrumb { color: var(--muted); font-size: 14px; margin: 0 0 16px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb .sep { margin: 0 6px; color: #c2cad6; }

/* 详情正文（富文本） */
.article { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.article-head { text-align: center; border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 20px; }
.article-head h1 { font-size: 26px; margin: 0 0 10px; color: var(--brand-dark); }
.article-meta { color: var(--muted); font-size: 13px; }
.article-meta span { margin: 0 10px; }
.article-cover { width: 100%; max-height: 380px; object-fit: cover; border-radius: var(--radius); margin: 16px 0; }
.article-content { font-size: 16px; line-height: 1.9; color: #333; }
.article-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 12px 0; }
.article-content p { margin: 14px 0; }
.article-content h2, .article-content h3 { margin: 22px 0 12px; color: var(--brand-dark); }
.back-link { display: inline-block; margin-bottom: 16px; color: var(--muted); }
.back-link:hover { color: var(--brand); }

/* 列表项缩略图（栏目封面图） */
.card-cover { width: 100%; height: 180px; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; }
.dept-card .dept-ico { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; margin-bottom: 10px; }
.doctor-avatar { width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 10px; object-fit: cover; border: 3px solid var(--bg); }

/* 搜索 */
.search-bar { display: flex; gap: 10px; max-width: 560px; margin: 0 auto 24px; }
.search-bar input { flex: 1; }
.search-item { display: block; padding: 16px 0; border-bottom: 1px dashed var(--line); color: var(--text); }
.search-item h3 { font-size: 17px; margin: 0 0 6px; }
.search-item:hover h3 { color: var(--brand); }
.search-item .muted { font-size: 14px; }
.search-empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* 分页 */
.pagebar { text-align: center; margin: 30px 0 10px; }
.pagebar a, .pagebar span { display: inline-block; min-width: 34px; padding: 6px 12px; margin: 0 3px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); font-size: 14px; }
.pagebar a:hover { border-color: var(--brand); color: var(--brand); }
.pagebar span.active { background: var(--brand); color: #fff; border-color: var(--brand); }

/* 列表页工具条 */
.list-toolbar { text-align: center; margin-bottom: 18px; }
.list-toolbar .layui-badge { margin: 0 4px; }
