/* ==========================================================
   沧州胃畅肛畅医院 - 全站共用样式表
   ========================================================== */
:root {
  --primary: #0a8f8f;
  --primary-dark: #066;
  --accent: #e63946;
  --bg: #f5f8f8;
  --text: #2b3a3a;
  --muted: #6b7c7c;
  --white: #fff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}
a { text-decoration: none; color: inherit; }

/* ===================== 顶部导航 ===================== */
header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.nav {
  max-width: 1180px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo .mark {
  width: 42px; height: 42px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; font-size: 22px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.logo .name { font-size: 19px; font-weight: 700; }
.logo .name small { display: block; font-size: 11px; color: var(--muted); font-weight: 400; letter-spacing: 1px; }
nav ul { display: flex; gap: 26px; list-style: none; }
nav ul a { font-size: 15px; color: var(--text); transition: color .2s; padding: 6px 2px; }
nav ul a:hover { color: var(--primary); }
nav ul a.active { color: var(--primary); font-weight: 700; border-bottom: 3px solid var(--primary); }
.nav-cta {
  background: var(--accent); color: #fff; padding: 9px 20px;
  border-radius: 24px; font-size: 14px; font-weight: 600;
}
.menu-btn { display: none; font-size: 24px; background: none; border: none; cursor: pointer; }

/* ===================== 首页 Hero ===================== */
.hero {
  background:
    linear-gradient(135deg, rgba(0,72,72,.92) 0%, rgba(6,116,116,.8) 40%, rgba(20,184,184,.58) 100%),
    url("../images/hero-bg.webp") center / cover no-repeat;
  color: #fff; padding: 90px 20px 100px;
  position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -80px; top: -80px;
  width: 360px; height: 360px; border-radius: 50%;
  background: rgba(255,255,255,.08);
}
.hero-inner { max-width: 1180px; margin: 0 auto; position: relative; z-index: 2; }
.hero h1 { font-size: 44px; font-weight: 800; margin-bottom: 18px; letter-spacing: 1px; }
.hero p { font-size: 18px; max-width: 620px; opacity: .95; margin-bottom: 32px; }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  padding: 14px 32px; border-radius: 30px; font-size: 16px; font-weight: 600;
  display: inline-block; transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.18); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-ghost { background: rgba(255,255,255,.15); color: #fff; border: 1px solid rgba(255,255,255,.5); }

/* ===================== 数据概览 ===================== */
.stats {
  max-width: 1180px; margin: -50px auto 0; padding: 0 20px;
  position: relative; z-index: 5;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.stat-card {
  background: var(--white); border-radius: 14px; padding: 26px 18px; text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
}
.stat-card .num { font-size: 34px; font-weight: 800; color: var(--primary); }
.stat-card .label { font-size: 14px; color: var(--muted); margin-top: 6px; }

/* ===================== 通用区块 ===================== */
.section { padding: 80px 20px; }
.section-inner { max-width: 1180px; margin: 0 auto; }
.section-head { text-align: center; margin-bottom: 50px; }
.section-head h2 { font-size: 32px; font-weight: 800; }
.section-head h2 span { color: var(--primary); }
.section-head p { color: var(--muted); margin-top: 10px; font-size: 16px; }
.bg-white { background: var(--white); }

/* ===================== 特色科室 ===================== */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--white); border-radius: 16px; padding: 32px 26px;
  box-shadow: 0 6px 20px rgba(0,0,0,.05); transition: transform .2s, box-shadow .2s;
  border-top: 4px solid var(--primary);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 16px 36px rgba(0,0,0,.1); }
.card .icon { font-size: 38px; margin-bottom: 14px; }
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; }

/* ===================== 医院简介 ===================== */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-img {
  background: linear-gradient(135deg, #0a8f8f, #064);
  border-radius: 18px; height: 380px; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.about-img .cross {
  width: 90px; height: 90px; border: 4px solid rgba(255,255,255,.7); border-radius: 16px;
  display: flex; align-items: center; justify-content: center; font-size: 50px; font-weight: 300;
}
.about-text h2 { font-size: 30px; margin-bottom: 18px; }
.about-text p { color: var(--muted); margin-bottom: 16px; }
.about-list { list-style: none; margin-top: 10px; }
.about-list li { padding: 8px 0 8px 28px; position: relative; }
.about-list li::before {
  content: "✓"; color: var(--primary); font-weight: 700; position: absolute; left: 0;
}

/* ===================== 专家团队 ===================== */
.doc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.doc {
  background: var(--white); border-radius: 16px; overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,.05); text-align: center;
}
.doc .avatar {
  height: 180px; background: linear-gradient(135deg, #14b8b8, #0a8f8f);
  display: flex; align-items: flex-end; justify-content: center; color: #fff; font-size: 72px;
}
.doc .info { padding: 18px; }
.doc .info h4 { font-size: 18px; }
.doc .info .title { color: var(--accent); font-size: 13px; margin: 4px 0 8px; }
.doc .info p { color: var(--muted); font-size: 13px; }

/* ===================== 新闻动态 ===================== */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card {
  background: var(--white); border-radius: 16px; overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,.05); transition: transform .2s, box-shadow .2s;
  display: flex; flex-direction: column;
}
.news-card:hover { transform: translateY(-6px); box-shadow: 0 16px 36px rgba(0,0,0,.1); }
.news-thumb {
  height: 250px; display: flex; align-items: center; justify-content: center;
  font-size: 46px; color: #fff;
}
.news-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.news-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.news-tag {
  background: rgba(10,143,143,.12); color: var(--primary); font-size: 12px;
  padding: 3px 10px; border-radius: 20px; font-weight: 600;
}
.news-date { color: var(--muted); font-size: 13px; }
.news-body h3 { font-size: 17px; line-height: 1.5; margin-bottom: 10px; }
.news-body p { color: var(--muted); font-size: 14px; flex: 1; }
.news-more { color: var(--accent); font-size: 14px; font-weight: 600; margin-top: 14px; }
.news-more:hover { text-decoration: underline; }
.news-all { text-align: center; margin-top: 40px; }
.news-all a {
  display: inline-block; border: 1.5px solid var(--primary); color: var(--primary);
  padding: 11px 30px; border-radius: 30px; font-weight: 600; transition: background .2s, color .2s;
}
.news-all a:hover { background: var(--primary); color: #fff; }

/* ===================== 分页条 ===================== */
.pagination {
  display: flex; justify-content: center; align-items: center;
  gap: 10px; margin-top: 46px; flex-wrap: wrap;
}
.pagination a, .pagination .page-item {
  min-width: 44px; height: 44px; line-height: 44px; text-align: center;
  border-radius: 10px; border: 1px solid #d5e2e2; background: var(--white);
  color: var(--text); font-size: 15px; padding: 0 6px;
  transition: border-color .2s, color .2s, background .2s;
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .current {
  background: var(--primary); border-color: var(--primary);
  color: #fff; font-weight: 700; cursor: default;
}
.pagination .disabled {
  color: #b9c6c6; background: #f0f4f4; border-color: #e3eaea; cursor: not-allowed;
}
.pagination .total { font-size: 14px; color: var(--muted); margin-left: 6px; }

/* ===================== 在线预约 ===================== */
.appointment {
  background: linear-gradient(135deg, #064, #0a8f8f);
  color: #fff; border-radius: 20px; padding: 56px 40px; text-align: center;
}
.appointment h2 { font-size: 30px; margin-bottom: 12px; }
.appointment p { opacity: .9; margin-bottom: 28px; }
.appt-form { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.appt-form input {
  padding: 14px 18px; border-radius: 30px; border: none; width: 240px; font-size: 15px;
}
.appt-form .btn { border: none; cursor: pointer; }

/* ===================== 内页横幅（子页面头部） ===================== */
.page-banner {
  background: linear-gradient(135deg, #064 0%, #0a8f8f 60%, #14b8b8 100%);
  color: #fff; text-align: center; padding: 70px 20px;
  position: relative; overflow: hidden;
}
.page-banner::after {
  content: ""; position: absolute; left: -60px; bottom: -100px;
  width: 300px; height: 300px; border-radius: 50%;
  background: rgba(255,255,255,.07);
}
.page-banner h1 { font-size: 36px; font-weight: 800; position: relative; z-index: 2; }
.page-banner p { font-size: 16px; opacity: .9; margin-top: 10px; position: relative; z-index: 2; }

/* ===================== 面包屑 ===================== */
.crumb {
  max-width: 1180px; margin: 0 auto; padding: 18px 20px 0;
  font-size: 14px; color: var(--muted);
}
.crumb a:hover { color: var(--primary); }
.crumb .sep { margin: 0 8px; color: #b9c6c6; }

/* ===================== 联系我们 ===================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-card {
  background: var(--white); border-radius: 16px; padding: 30px;
  box-shadow: 0 6px 20px rgba(0,0,0,.05);
}
.contact-card h3 { font-size: 20px; margin-bottom: 18px; color: var(--primary); }
.contact-card .item { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px dashed #e3ecec; }
.contact-card .item:last-child { border-bottom: none; }
.contact-card .item .ico { font-size: 22px; flex-shrink: 0; }
.contact-card .item b { display: block; font-size: 15px; }
.contact-card .item span { color: var(--muted); font-size: 14px; }
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%; padding: 13px 16px; border: 1px solid #d5e2e2; border-radius: 10px;
  font-size: 15px; font-family: inherit; background: var(--white); color: var(--text);
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
  outline: none; border-color: var(--primary);
}
.map-box {
  margin-top: 60px; background: var(--white); border-radius: 16px; overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,.05); text-align: center;
}
.map-placeholder {
  height: 320px; background: linear-gradient(135deg, #eaf4f4, #d9ecec);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--muted); font-size: 48px;
}
.map-placeholder p { font-size: 14px; margin-top: 10px; }

/* ===================== 新闻详情页 ===================== */
.article {
  background: var(--white); border-radius: 16px; padding: 44px 46px;
  box-shadow: 0 6px 20px rgba(0,0,0,.05); max-width: 880px; margin: 0 auto;
}
.article-head { text-align: center; margin-bottom: 28px; }
.article-head h1 { font-size: 27px; line-height: 1.5; }
.article-meta {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin-bottom: 14px; color: var(--muted); font-size: 14px; flex-wrap: wrap;
}
.article-body p {
  color: var(--text); font-size: 16px; line-height: 2.05;
  margin-bottom: 18px; text-indent: 2em;
}
.article-body h4 { font-size: 19px; margin: 26px 0 12px; color: var(--primary-dark); }
.article-body a { color: var(--primary); font-weight: 600; }
.article-body a:hover { text-decoration: underline; }
.article-nav {
  display: flex; justify-content: space-between; gap: 24px; margin-top: 36px;
  padding-top: 22px; border-top: 1px dashed #d5e2e2; font-size: 14px;
}
.article-nav a { color: var(--primary); max-width: 46%; line-height: 1.6; }
.article-nav a:hover { text-decoration: underline; }
.article-nav .none { color: #b9c6c6; }
.article-foot { text-align: center; margin-top: 32px; }
.article-empty {
  background: var(--white); border-radius: 16px; padding: 70px 30px; text-align: center;
  box-shadow: 0 6px 20px rgba(0,0,0,.05); max-width: 880px; margin: 0 auto;
}
.article-empty .ico { font-size: 52px; margin-bottom: 16px; }
.article-empty p { color: var(--muted); margin-bottom: 22px; }

/* ===================== 页脚 ===================== */
footer { background: #07352f; color: #cfe6e2; padding: 50px 20px 24px; }
.footer-inner { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; }
.footer-inner h4 { color: #fff; margin-bottom: 16px; font-size: 16px; }
.footer-inner p, .footer-inner li { font-size: 14px; line-height: 2; list-style: none; }
.footer-inner a:hover { color: #fff; }
.footer-bottom { text-align: center; padding-top: 24px; margin-top: 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; color: #9fbdb8; }

/* ===================== 响应式 ===================== */
@media (max-width: 920px) {
  nav ul { display: none; }
  .menu-btn { display: block; }
  .stats, .cards, .doc-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
  .about, .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 32px; }
  .page-banner h1 { font-size: 28px; }
}
@media (max-width: 520px) {
  .stats, .cards, .doc-grid, .news-grid, .footer-inner { grid-template-columns: 1fr; }
  .appointment { padding: 40px 20px; }
}
