/* 安桥诺血液透析中心 官网样式（亮色主题 / 移动优先） */
:root {
  --primary: #5fa52a;
  --primary-dark: #487f1e;
  --primary-darker: #2f5e1c;
  --primary-light: #e9f6db;
  --accent: #f59e0b;
  --ink: #1f2937;
  --ink-soft: #4b5563;
  --ink-faint: #6b7280;
  --line: #e5e7eb;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-tint: #eef7e3;
  --danger: #dc2626;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(72, 127, 30, 0.12);
  --shadow-lg: 0 18px 50px rgba(72, 127, 30, 0.18);
  --maxw: 1080px;
  --grad-primary: linear-gradient(135deg, #6cb733 0%, #5fa52a 45%, #487f1e 100%);
  --grad-deep: linear-gradient(120deg, #2f5e1c 0%, #487f1e 55%, #5fa52a 100%);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ===== 顶部导航 ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-img {
  height: 44px; width: auto; max-width: 46vw; object-fit: contain;
  display: block;
}
.brand-badge {
  font-size: 12px; color: var(--primary-dark); background: var(--primary-light);
  padding: 3px 10px; border-radius: 999px; white-space: nowrap;
}
@media (max-width: 640px) {
  .nav { height: 56px; }
  .brand-img { height: 34px; }
}
/* 登录方式切换 */
.login-tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.login-tab {
  flex: 1; padding: 9px 0; border-radius: 10px; font-size: 15px; cursor: pointer;
  background: var(--bg-soft); color: var(--ink-soft); border: 1px solid var(--line);
}
.login-tab.active { background: var(--primary-light); color: var(--primary-dark); border-color: var(--primary); font-weight: 600; }
.login-links { margin-top: 12px; font-size: 14px; }

.brand-name { font-size: 17px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.brand-sub { font-size: 12px; color: var(--ink-faint); white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 8px 14px; border-radius: 999px; color: var(--ink-soft);
  font-size: 15px; white-space: nowrap;
}
.nav-links a:hover { background: var(--bg-soft); color: var(--primary); }
.nav-links a.active { color: var(--primary); font-weight: 600; }
.nav-phone {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--primary); color: #fff !important;
  padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: 15px;
}
.nav-phone:hover { background: var(--primary-dark); }
.nav-toggle {
  display: none; border: 1px solid var(--line); background: #fff;
  border-radius: 8px; padding: 8px 10px; cursor: pointer; font-size: 18px; color: var(--ink);
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; background: #fff;
    border-bottom: 1px solid var(--line); padding: 10px 16px 16px; gap: 2px;
  }
  .nav-links.open { display: flex; }
  .nav-phone { justify-content: center; margin-top: 6px; }
  .brand-sub { display: none; }
}

/* ===== Hero：全幅 Banner 轮播 ===== */
.hero-banner {
  position: relative;
  height: min(72vh, 600px);
  min-height: 440px;
  overflow: hidden;
  background: var(--grad-deep);
}
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center 60%;
  opacity: 0; transition: opacity 1.1s ease;
  transform: scale(1.04);
}
.hero-slide.active { opacity: 1; transform: scale(1); transition: opacity 1.1s ease, transform 6s ease; }
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg,
    rgba(28, 58, 16, 0.85) 0%, rgba(28, 58, 16, 0.6) 42%,
    rgba(28, 58, 16, 0.2) 72%, rgba(28, 58, 16, 0) 100%);
}
.hero-content {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; justify-content: center;
}
.hero-tag {
  display: inline-block; background: rgba(255, 255, 255, 0.16); color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.32); backdrop-filter: blur(4px);
  padding: 6px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; margin-bottom: 18px;
  width: fit-content;
}
.hero h1 { font-size: 40px; line-height: 1.32; color: #fff; margin-bottom: 16px; max-width: 15em; text-shadow: 0 2px 14px rgba(0,0,0,0.25); }
.hero h1 em { font-style: normal; color: #c8f08a; }
.hero p.lead { font-size: 17px; color: rgba(255, 255, 255, 0.92); margin-bottom: 28px; max-width: 32em; text-shadow: 0 1px 8px rgba(0,0,0,0.2); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 26px; border-radius: 999px; font-size: 16px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; transition: all 0.15s ease;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-outline { background: #fff; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--bg-tint); }
.btn-sm { padding: 7px 16px; font-size: 14px; }
.doc-actions { display: flex; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.hero-dots {
  position: absolute; z-index: 3; left: 50%; bottom: 22px; transform: translateX(-50%);
  display: flex; gap: 8px;
}
.hero-dots button {
  width: 26px; height: 4px; border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(95, 165, 42, 0.25); transition: all 0.3s ease; padding: 0;
}
.hero-dots button.active { background: var(--primary); width: 40px; }
@media (max-width: 860px) {
  .hero-banner { height: auto; min-height: 0; }
  .hero-slide { position: absolute; }
  .hero-overlay {
    background: linear-gradient(180deg,
      rgba(28, 58, 16, 0.4) 0%, rgba(28, 58, 16, 0.72) 55%, rgba(28, 58, 16, 0.9) 100%);
  }
  .hero-content { padding: 140px 20px 64px; height: auto; }
  .hero h1 { font-size: 28px; }
  .hero p.lead { font-size: 15.5px; }
}

/* 快捷信息条 */
.quick-bar { background: #fff; border-bottom: 1px solid var(--line); margin-top: -44px; position: relative; z-index: 5; }
.quick-bar-inner {
  background: linear-gradient(180deg, #ffffff 0%, #f3fae9 100%);
  border: 1px solid #d7ecbd; border-radius: 18px;
  box-shadow: var(--shadow-lg); padding: 22px 28px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.quick-item { display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
.quick-item svg { flex: 0 0 auto; margin-top: 2px; }
.quick-item .qt { font-size: 14px; color: var(--ink-faint); }
.quick-item .qv { font-size: 15px; font-weight: 600; color: var(--ink); word-break: break-all; }
.quick-item a.qv:hover { color: var(--primary); }
@media (max-width: 960px) { .quick-bar-inner { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .quick-bar { margin-top: 0; }
  .quick-bar-inner { grid-template-columns: 1fr; border-radius: 0; border-left: 0; border-right: 0; }
}

/* ===== 通用区块 ===== */
.section { padding: 64px 0; }
.section-soft {
  background-color: var(--bg-tint);
  background-image: radial-gradient(rgba(95, 165, 42, 0.07) 1.2px, transparent 1.2px);
  background-size: 24px 24px;
}
.section-head { text-align: center; margin-bottom: 40px; }
.section-head .kicker { color: var(--primary); font-weight: 700; font-size: 14px; letter-spacing: 2px; }
.section-head h2 {
  font-size: 30px; margin: 8px 0 14px; position: relative; display: inline-block;
}
.section-head h2::after {
  content: ""; display: block; width: 52px; height: 4px; border-radius: 2px;
  margin: 14px auto 0; background: var(--grad-primary);
}
.section-head p { color: var(--ink-faint); font-size: 16px; }

/* ===== 服务卡片 ===== */
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 960px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .svc-grid { grid-template-columns: 1fr; } }
.svc-grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .svc-grid-3 { grid-template-columns: 1fr; } }
.svc-card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 24px; overflow: hidden;
  transition: box-shadow 0.22s ease, transform 0.22s ease, border-color 0.22s ease;
}
.svc-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--grad-primary); opacity: 0; transition: opacity 0.22s ease;
}
.svc-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-5px); border-color: #cdebad; }
.svc-card:hover::before { opacity: 1; }
.svc-icon {
  width: 56px; height: 56px; border-radius: 16px;
  background: linear-gradient(135deg, #eaf8da, #d4efb9);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
  box-shadow: inset 0 0 0 1px rgba(95, 165, 42, 0.18);
}
.svc-card h3 { font-size: 18px; margin-bottom: 8px; }
.svc-card p { font-size: 14.5px; color: var(--ink-soft); }

/* ===== 推文卡片 ===== */
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 960px) { .article-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .article-grid { grid-template-columns: 1fr; } }
.article-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow 0.22s ease, transform 0.22s ease, border-color 0.22s ease;
}
.article-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-5px); border-color: #cdebad; }
.article-cover {
  aspect-ratio: 16 / 9; background: linear-gradient(135deg, #d9f0c0, #b9e48f);
  display: flex; align-items: center; justify-content: center; color: var(--primary-dark);
}
.article-cover svg { width: 56px; height: 56px; opacity: 0.7; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.article-meta { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--ink-faint); }
.article-tag {
  background: var(--primary-light); color: var(--primary-dark);
  padding: 2px 10px; border-radius: 999px; font-weight: 600;
}
.article-body h3 { font-size: 17.5px; line-height: 1.5; }
.article-body h3 a { color: var(--ink); }
.article-body h3 a:hover { color: var(--primary); }
.article-body p { font-size: 14.5px; color: var(--ink-soft); flex: 1; }
.article-more { text-align: center; margin-top: 36px; }

/* 空状态 */
.empty-state {
  text-align: center; padding: 56px 20px; color: var(--ink-faint);
  background: #fff; border: 1px dashed var(--line); border-radius: var(--radius);
}
.empty-state svg { width: 48px; height: 48px; margin: 0 auto 12px; opacity: 0.5; }

/* ===== 关于/数字 ===== */
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 44px; align-items: center; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
.about-grid h2 { font-size: 28px; margin-bottom: 16px; }
.about-grid p { color: var(--ink-soft); margin-bottom: 14px; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat {
  background: linear-gradient(160deg, #ffffff 0%, #f1f9e6 100%);
  border: 1px solid #d7ecbd; border-radius: var(--radius);
  padding: 26px 20px; text-align: center;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.stat:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.stat b { display: block; font-size: 30px; color: var(--primary-dark); }
.stat span { font-size: 14px; color: var(--ink-faint); }

/* 中心环境照片墙 */
.gallery-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  margin-top: 40px;
}
@media (max-width: 760px) { .gallery-grid { grid-template-columns: 1fr; } }
.gallery-item {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 16 / 10; box-shadow: var(--shadow);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 24px 16px 12px; font-size: 14px; color: #fff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(17, 94, 89, 0.75));
}

/* ===== 联系 ===== */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-item {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; text-align: center; overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.contact-item::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--grad-primary); opacity: 0; transition: opacity 0.2s ease;
}
.contact-item:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: #cdebad; }
.contact-item:hover::before { opacity: 1; }
.contact-item svg { width: 34px; height: 34px; margin: 0 auto 10px; }
.contact-item h4 { font-size: 16px; margin-bottom: 6px; }
.contact-item p { font-size: 14.5px; color: var(--ink-soft); word-break: break-all; }
.contact-qr { display: block; width: 132px; height: 132px; margin: 14px auto 0; padding: 6px; border: 1px solid var(--line); border-radius: 10px; background: #fff; object-fit: contain; box-shadow: 0 2px 10px rgba(0,0,0,.10); }

/* ===== 行动召唤条 CTA ===== */
.cta-band { background: var(--grad-deep); color: #fff; position: relative; overflow: hidden; }
.cta-band::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 70%);
}
.cta-inner {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 46px 0; flex-wrap: wrap; position: relative; z-index: 1;
}
.cta-inner h2 { font-size: 24px; margin-bottom: 8px; }
.cta-inner p { color: rgba(255, 255, 255, 0.9); font-size: 15.5px; }
.cta-band .btn-light { background: #fff; color: var(--primary-darker); border: 0; }
.cta-band .btn-light:hover { background: #eef7e3; }
@media (max-width: 640px) { .cta-inner { flex-direction: column; text-align: center; } }

/* ===== 页脚 ===== */
.site-footer { background: var(--primary-dark); color: #d1fae5; padding: 40px 0 28px; margin-top: 20px; }
.footer-grid { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-footer h4 { color: #fff; font-size: 16px; margin-bottom: 10px; }
.site-footer p, .site-footer a { color: #a7f3d0; font-size: 14px; }
.site-footer a:hover { color: #fff; }
.footer-links { display: flex; flex-direction: column; gap: 6px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15); margin-top: 26px; padding-top: 18px;
  font-size: 13px; color: #99e9d9; text-align: center;
}

/* ===== 页面横幅（子页） ===== */
.page-banner {
  background: var(--grad-deep); color: #fff;
  padding: 56px 0; text-align: center;
}
.page-banner h1 { font-size: 30px; margin-bottom: 8px; color: #fff; }
.page-banner p { color: rgba(255, 255, 255, 0.9); }

/* ===== 文章详情 ===== */
.article-detail { max-width: 760px; margin: 0 auto; padding: 48px 20px 72px; }
.article-detail .article-meta { margin-bottom: 14px; }
.article-detail h1 { font-size: 30px; line-height: 1.4; margin-bottom: 20px; }
.article-detail .cover { border-radius: var(--radius); overflow: hidden; margin-bottom: 28px; }
.article-content { font-size: 16.5px; color: var(--ink); line-height: 1.9; }
.article-content p { margin-bottom: 1.2em; }
/* 字体层级：大标题 / 节标题 / 小标题（参考客户公众号文档排版） */
.article-content .at-h1 { font-size: 26px; line-height: 1.35; margin: 1.5em 0 0.8em; font-weight: 700; }
.article-content .at-h2 { font-size: 20px; line-height: 1.4; margin: 1.6em 0 0.7em; font-weight: 700; }
.article-content .at-h3 { font-size: 17.5px; line-height: 1.45; margin: 1.4em 0 0.6em; font-weight: 700; }
.article-content ul, .article-content ol { margin: 0 0 1.2em 1.4em; }
.article-content img { border-radius: 10px; max-width: 100%; }
.article-content figure.article-img { margin: 0 0 1.4em; }
.article-content figure.article-img img { width: 100%; display: block; }
/* 图片说明（figcaption）：居中灰色小字 */
.article-content figure.article-img figcaption {
  font-size: 13px; color: var(--ink-faint); text-align: center; margin-top: 8px;
}
/* 小字注释/脚注：<small>整行 或 行内小字 */
.article-content .asmall { font-size: 13px; color: var(--ink-faint); line-height: 1.75; margin-bottom: 1em; }
.article-content .asmall-inline { font-size: 0.82em; color: var(--ink-faint); }
.article-content blockquote {
  border-left: 4px solid var(--primary); background: var(--bg-tint);
  padding: 12px 18px; border-radius: 0 10px 10px 0; margin-bottom: 1.2em; color: var(--ink-soft);
}
.back-link { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 20px; font-size: 14.5px; }

/* ===== 后台：发布前预览弹窗 ===== */
.preview-mask {
  position: fixed; inset: 0; z-index: 100; background: rgba(17, 24, 39, 0.55);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.preview-box {
  background: #fff; border-radius: 16px; width: 100%; max-width: 820px;
  max-height: 90vh; overflow-y: auto; box-shadow: 0 24px 64px rgba(0, 0, 0, 0.25);
}
.preview-bar {
  position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center;
  padding: 12px 20px; background: var(--bg-soft); border-bottom: 1px solid var(--line);
  font-size: 14px; color: var(--ink-soft);
}
.preview-body { max-width: 680px; margin: 0 auto; padding: 32px 24px 56px; }
.preview-body .article-meta { margin-bottom: 14px; }
.preview-body h1 { font-size: 28px; line-height: 1.4; margin-bottom: 20px; }
.preview-body .cover { border-radius: var(--radius); overflow: hidden; margin-bottom: 24px; }
.preview-body .cover img { width: 100%; display: block; }

/* ===== 后台管理 ===== */
.admin-shell { max-width: 820px; margin: 0 auto; padding: 48px 20px 72px; }
.admin-tabs { display: flex; gap: 8px; margin-bottom: 28px; border-bottom: 2px solid var(--line); }
.admin-tab {
  padding: 10px 20px; border: 0; background: none; font-size: 16px; cursor: pointer;
  color: var(--ink-faint); border-bottom: 2px solid transparent; margin-bottom: -2px; font-weight: 600;
}
.admin-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.form-card h2 { font-size: 22px; margin-bottom: 6px; }
.form-card .sub { color: var(--ink-faint); font-size: 14px; margin-bottom: 22px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14.5px; font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; border: 1px solid var(--line); border-radius: 10px;
  padding: 11px 14px; font-size: 15px; font-family: inherit; color: var(--ink);
  background: #fff;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 2px solid var(--primary-light); border-color: var(--primary);
}
.field textarea { min-height: 220px; resize: vertical; line-height: 1.8; }
.field .hint { font-size: 12.5px; color: var(--ink-faint); margin-top: 5px; }
.form-msg { font-size: 14.5px; margin: 12px 0; padding: 10px 14px; border-radius: 10px; display: none; }
.form-msg.ok { display: block; background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.form-msg.err { display: block; background: #fef2f2; color: var(--danger); border: 1px solid #fecaca; }
.form-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.cover-preview { margin-top: 10px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); display: none; max-width: 320px; }
.admin-note {
  margin-top: 24px; background: #fffbeb; border: 1px solid #fde68a; color: #92400e;
  padding: 14px 18px; border-radius: 12px; font-size: 14px;
}
.admin-list { display: flex; flex-direction: column; gap: 12px; }
.admin-list-item {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px;
}
.admin-list-item .t { font-weight: 600; }
.admin-list-item .d { font-size: 13px; color: var(--ink-faint); }
.link-btn {
  border: 0; background: none; color: var(--primary); cursor: pointer; font-size: 14px; padding: 4px 6px;
}
.link-btn.danger { color: var(--danger); }
