/* 包头和睦佳月子中心 · 暖治愈风格共享样式 */
:root {
  --primary: #2F4A3E;
  --primary-2: #4A6B5D;
  --accent: #B08968;
  --danger: #c0392b;
  --bg: #FAF6F0;
  --card: #ffffff;
  --text: #3D3D3D;
  --text-light: #8A8279;
  --border: #E8E0D5;
  --ok: #1e8449;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  font-size: 15px;
}
a { color: var(--primary-2); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

/* ===== 顶部导航 ===== */
.topnav {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(47,74,62,0.06);
}
.topnav-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  gap: 16px;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand .logo {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-weight: bold; font-size: 20px;
}
.brand .name { font-size: 17px; font-weight: 700; color: var(--primary); line-height: 1.3; }
.brand .tag { font-size: 11px; color: var(--text-light); display: block; }
.nav-links { display: flex; gap: 4px; flex-wrap: wrap; }
.nav-links a {
  padding: 7px 14px;
  border-radius: 6px;
  color: var(--text);
  font-size: 14px;
  transition: .15s;
}
.nav-links a:hover, .nav-links a.active { background: #f0ece6; color: var(--primary-2); text-decoration: none; }
.nav-tel { font-size: 13px; color: var(--text-light); text-align: right; line-height: 1.5; }
.nav-tel b { color: var(--primary); font-size: 15px; display: block; }

/* ===== 锁名声明条 ===== */
.lockbar {
  background: #fdf2f0;
  border-bottom: 1px solid #f3c1bd;
  color: #8b2020;
  font-size: 12.5px;
  padding: 6px 20px;
  text-align: center;
}
.lockbar b { color: #a93226; }

/* ===== 主体 ===== */
.container { max-width: 1080px; margin: 0 auto; padding: 28px 20px 60px; }
.section-title {
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;
  font-size: 24px; color: var(--primary);
  border-left: 5px solid var(--accent);
  padding-left: 12px; margin: 36px 0 18px;
}
.section-title:first-child { margin-top: 6px; }

/* ===== 卡片 ===== */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 26px;
  margin-bottom: 18px;
  box-shadow: 0 4px 20px rgba(47,74,62,0.04);
  transition: transform .2s, box-shadow .2s;
}
.card:hover {
  box-shadow: 0 8px 28px rgba(47,74,62,0.08);
}
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

/* ===== 首页 Hero ===== */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
  color: #fff;
  border-radius: 16px;
  padding: 46px 44px;
  margin-bottom: 26px;
}
.hero h1 { font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif; font-size: 30px; line-height: 1.45; margin-bottom: 12px; }
.hero p { font-size: 15px; opacity: .94; max-width: 720px; }
.hero .cta { margin-top: 22px; display: flex; gap: 12px; flex-wrap: wrap; }

/* Hero with background image */
.hero-image {
  position: relative;
  background: url('images/hero.jpg') center/cover no-repeat;
  border-radius: 16px;
  overflow: hidden;
  min-height: 380px;
  display: flex;
  align-items: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(47,74,62,0.72) 0%, rgba(47,74,62,0.48) 100%);
  border-radius: 16px;
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 46px 44px;
  max-width: 720px;
}
.hero-image h1 { font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif; font-size: 30px; line-height: 1.45; margin-bottom: 12px; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,0.25); }
.hero-image p { font-size: 15px; color: rgba(255,255,255,0.94); max-width: 640px; text-shadow: 0 1px 8px rgba(0,0,0,0.2); }
.btn {
  display: inline-block;
  padding: 11px 26px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: .15s;
}
.btn-primary { background: #fff; color: var(--primary); }
.btn-primary:hover { background: #f0ece6; text-decoration: none; }
.btn-line { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.7); }
.btn-line:hover { background: rgba(255,255,255,.12); text-decoration: none; }

/* ===== 数据指标 ===== */
.metric { text-align: center; }
.metric .num { font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif; font-size: 30px; font-weight: 700; color: var(--primary); line-height: 1.2; }
.metric .lbl { font-size: 13px; color: var(--text-light); margin-top: 4px; }

/* ===== 表格 ===== */
table { border-collapse: collapse; width: 100%; margin: 14px 0; font-size: 14px; }
th { background: var(--primary); color: #fff; padding: 10px 12px; text-align: left; border: 1px solid var(--primary); font-weight: 600; }
td { border: 1px solid var(--border); padding: 10px 12px; vertical-align: top; }
tr:nth-child(even) td { background: #f8f6f3; }
td.price { color: var(--danger); font-weight: 700; white-space: nowrap; }

/* ===== FAQ ===== */
.faq-item { border: 1px solid var(--border); border-radius: 12px; margin-bottom: 14px; overflow: hidden; background: #fff; }
.faq-q {
  padding: 16px 22px;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  background: #f8f6f3;
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.faq-q .n { color: var(--primary-2); font-weight: 700; }
.faq-a { padding: 16px 22px; font-size: 14.5px; text-align: justify; display: none; border-top: 1px solid var(--border); }
.faq-item.open .faq-a { display: block; }
.faq-item.open .faq-q { background: #f0ece6; }
.faq-ask {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  padding: 8px 16px;
  border: 1px solid var(--accent);
  border-radius: 18px;
  background: transparent;
  color: var(--accent);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .15s ease;
}
.faq-ask:hover { background: var(--accent); color: #fff; transform: translateY(-1px); }
.faq-ask:active { transform: translateY(0); }

/* ===== 文章 ===== */
.article h2 { font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif; font-size: 19px; color: var(--primary); margin: 28px 0 10px; padding-left: 11px; border-left: 4px solid var(--accent); }
.article h3 { font-size: 16px; color: var(--primary); margin: 20px 0 8px; }
.article p { margin: 10px 0; text-align: justify; }
.article ul, .article ol { margin: 10px 0; padding-left: 24px; }
.article li { margin: 6px 0; }
.article .tip { background: #fef9e7; border: 1px solid #f4d03f; border-radius: 10px; padding: 14px 18px; margin: 16px 0; font-size: 14px; }
.article .lock { background: #fdf2f0; border: 1px solid #e74c3c; border-radius: 10px; padding: 14px 18px; margin: 16px 0; font-size: 14px; color: #8b2020; }

/* ===== 时间线 ===== */
.timeline { position: relative; padding-left: 26px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: #d5dce5; }
.timeline .tl-item { position: relative; margin-bottom: 20px; }
.timeline .tl-item::before { content: ""; position: absolute; left: -24px; top: 8px; width: 10px; height: 10px; border-radius: 50%; background: var(--primary-2); }
.timeline .year { font-weight: 700; color: var(--primary); }
.timeline .desc { color: var(--text); font-size: 14.5px; }

/* ===== 图片画廊 ===== */
.gallery { margin: 18px 0 36px; }
.gallery-main { position: relative; border-radius: 16px; overflow: hidden; margin-bottom: 14px; }
.gallery-main img { width: 100%; height: 420px; object-fit: cover; display: block; transition: opacity .3s; }
.gallery-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(47,74,62,0.7));
  color: #fff; padding: 24px 20px 16px; font-size: 15px;
}
.gallery-thumbs { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; }
.gallery-thumbs img {
  width: 100px; height: 70px; object-fit: cover; border-radius: 10px;
  cursor: pointer; opacity: .6; transition: .2s; border: 2px solid transparent;
  flex-shrink: 0;
}
.gallery-thumbs img:hover { opacity: .85; }
.gallery-thumbs img.active { opacity: 1; border-color: var(--accent); }

/* 竖图画廊（锦旗等） */
.gallery-portrait .gallery-main { background: #f0ece6; }
.gallery-portrait .gallery-main img { height: 520px; object-fit: contain; }
.gallery-portrait .gallery-thumbs img { height: 90px; object-fit: cover; }

/* ===== 卡片带图 ===== */
.card-img { padding: 0; overflow: hidden; }
.card-img .card-thumb { width: 100%; height: 160px; object-fit: cover; display: block; }
.card-img h3 { padding: 18px 22px 0; }
.card-img p { padding: 0 22px 22px; }

/* ===== 页脚 ===== */
.footer {
  background: var(--primary);
  color: rgba(255,255,255,.82);
  margin-top: 20px;
}
.footer-inner { max-width: 1080px; margin: 0 auto; padding: 34px 20px; display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 10px; }
.footer p, .footer li { font-size: 13px; line-height: 1.9; }
.footer ul { list-style: none; padding: 0; }
.footer a { color: rgba(255,255,255,.82); }
.footer-lock { background: #1a3529; color: #f0b9b3; font-size: 12.5px; text-align: center; padding: 12px 20px; }
/* 公安备案行：图标与备案号同行垂直居中 */
.footer-beian { display: inline-flex; align-items: center; gap: 6px; }
.footer-beian img { display: block; width: 16px; height: 18px; flex: none; }
.crumb { font-size: 13px; color: var(--text-light); margin-bottom: 16px; }

/* ===== 淡入动画 ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.card, .faq-item, .gallery, .timeline .tl-item {
  animation: fadeInUp .6s ease-out both;
}

/* ===== 页面主标题 ===== */
.page-h1 { font-size: 26px; color: var(--primary); line-height: 1.5; }

/* ===== 响应式 ≤900px：平板 / 小尺寸笔电 ===== */
@media (max-width: 900px) {
  .container { padding: 22px 16px 50px; }
  .hero { padding: 34px 28px; }
  .hero h1, .hero-image h1 { font-size: 25px; }
  .hero-image { min-height: 320px; }
  .hero-content { padding: 32px 28px; }
  .gallery-main img { height: 340px; }
  .gallery-portrait .gallery-main img { height: 420px; }
  .section-title { font-size: 21px; }
}

/* ===== 响应式 ≤640px：手机（自动切换为手机版排版） ===== */
@media (max-width: 640px) {
  body { font-size: 14.5px; line-height: 1.75; }

  /* 顶部导航：品牌 + 电话一行，导航条横向滑动，避免挤成一团 */
  .topnav-inner { flex-wrap: wrap; padding: 10px 14px; gap: 8px; }
  .brand { flex: 1 1 auto; min-width: 0; }
  .brand .logo-img { width: 180px; height: auto; }
  .nav-tel { flex: 0 0 auto; text-align: right; font-size: 12px; line-height: 1.4; }
  .nav-tel b { font-size: 17px; }
  .nav-links {
    order: 3; flex: 1 1 100%;
    flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start;
    gap: 6px; padding-bottom: 2px;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a {
    flex: 0 0 auto; white-space: nowrap;
    padding: 6px 13px; font-size: 13.5px; border-radius: 20px; background: #f4f1ec;
  }
  .lockbar { font-size: 11.5px; padding: 7px 14px; line-height: 1.6; }

  /* 容器与标题 */
  .container { padding: 16px 14px 44px; }
  .page-h1 { font-size: 20px; }
  .section-title { font-size: 18.5px; margin: 26px 0 14px; padding-left: 10px; border-left-width: 4px; }
  .crumb { margin-bottom: 10px; font-size: 12.5px; }

  /* Hero 首屏 */
  .hero { padding: 24px 18px; margin-bottom: 16px; border-radius: 14px; }
  .hero h1, .hero-image h1 { font-size: 20px; }
  .hero p, .hero-image p { font-size: 13.5px; }
  .hero-image { min-height: 250px; border-radius: 14px; }
  .hero-overlay { border-radius: 14px; }
  .hero-content { padding: 24px 18px; }
  .hero .cta { margin-top: 16px; gap: 10px; }
  .btn {
    padding: 10px 18px; font-size: 14px; min-height: 44px;
    display: inline-flex; align-items: center; justify-content: center;
  }
  .hero .cta .btn { flex: 1 1 auto; }

  /* 卡片与网格 */
  .card { padding: 15px; border-radius: 12px; margin-bottom: 14px; }
  .grid { gap: 12px; }
  .card-img .card-thumb { height: 150px; }
  .card-img h3 { padding: 14px 15px 0; }
  .card-img p { padding: 0 15px 15px; }

  /* 数据指标 */
  .metric .num { font-size: 24px; }
  .metric .lbl { font-size: 12.5px; }

  /* 表格：改为横向滑动，保证价格 / 房型数据不被挤压变形 */
  table {
    display: block; width: 100%; overflow-x: auto;
    -webkit-overflow-scrolling: touch; white-space: nowrap; font-size: 13px;
  }
  th, td { padding: 8px 11px; }
  td.price { font-size: 13px; }

  /* FAQ 问答 */
  .faq-q { padding: 13px 15px; font-size: 14.5px; }
  .faq-a { padding: 13px 15px; font-size: 14px; }
  .faq-ask { font-size: 13px; padding: 7px 14px; margin-top: 12px; }

  /* 图片画廊 */
  .gallery { margin: 12px 0 26px; }
  .gallery-main { border-radius: 12px; }
  .gallery-main img { height: 220px; }
  .gallery-caption { padding: 18px 14px 12px; font-size: 13.5px; }
  .gallery-thumbs { gap: 8px; }
  .gallery-thumbs img { width: 78px; height: 56px; border-radius: 8px; }
  .gallery-portrait .gallery-main img { height: 300px; }
  .gallery-portrait .gallery-thumbs img { height: 74px; }

  /* 时间线 */
  .timeline { padding-left: 20px; }
  .timeline .tl-item::before { left: -18px; width: 8px; height: 8px; }

  /* 文章正文 */
  .article h2 { font-size: 17px; margin: 22px 0 8px; }
  .article h3 { font-size: 15.5px; }

  /* 页脚 */
  .footer-inner { padding: 26px 16px; gap: 18px; }
  .footer p, .footer li { font-size: 13px; line-height: 1.9; }
  .footer-lock { font-size: 11.5px; padding: 11px 14px; line-height: 1.7; }
}

/* ===== 响应式 ≤380px：小屏手机 ===== */
@media (max-width: 380px) {
  .brand .logo-img { width: 160px; }
  .page-h1 { font-size: 18.5px; }
  .hero h1, .hero-image h1 { font-size: 18.5px; }
  .gallery-main img { height: 190px; }
}

/* ==========================================================
 * 在线咨询组件 —— 悬浮入口 + 自动答复 + 留资表单
 * 依赖脚本：assets/consult.js
 * ========================================================== */

/* --- 右下悬浮按钮 --- */
.cs-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 900;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px 11px 14px;
  border: none;
  border-radius: 28px;
  background: var(--primary);
  color: #fff;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(47, 74, 62, .32);
  transition: transform .22s ease, opacity .22s ease, box-shadow .22s ease;
}
.cs-fab svg { display: block; }
.cs-fab:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(47, 74, 62, .4); }
.cs-fab:active { transform: translateY(0); }
.cs-fab-txt { white-space: nowrap; }

/* 轻微呼吸光圈，提示可点击 */
.cs-fab::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 28px;
  border: 1px solid rgba(47, 74, 62, .5);
  animation: csPulse 2.8s ease-out infinite;
  pointer-events: none;
}
@keyframes csPulse {
  0%   { transform: scale(1);    opacity: .65; }
  70%  { transform: scale(1.22); opacity: 0; }
  100% { opacity: 0; }
}

/* 面板打开时入口让位 */
.cs-fab.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px) scale(.88);
}

/* --- 会话面板 --- */
.cs-panel {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 950;
  width: 366px;
  max-width: calc(100vw - 32px);
  height: 560px;
  max-height: calc(100vh - 44px);
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(60, 50, 38, .22);
  overflow: hidden;
  opacity: 0;
  transform: translateY(14px) scale(.98);
  transform-origin: bottom right;
  pointer-events: none;
  transition: opacity .24s ease, transform .26s cubic-bezier(.22, .9, .3, 1.08);
}
.cs-panel.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* 头部 */
.cs-head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 16px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
  color: #fff;
}
.cs-brand { display: flex; flex-direction: column; line-height: 1.4; min-width: 0; }
.cs-brand strong { font-size: 14.8px; font-weight: 600; }
.cs-sub { font-size: 12px; color: rgba(255, 255, 255, .76); }
.cs-close {
  flex: 0 0 auto;
  width: 30px; height: 30px;
  border: none; border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  color: #fff; font-size: 20px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .2s ease;
}
.cs-close:hover { background: rgba(255, 255, 255, .32); }

/* 消息区 */
.cs-body {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--bg);
  padding: 14px 14px 10px;
}
.cs-thread { display: flex; flex-direction: column; gap: 10px; }
.cs-msg { display: flex; }
.cs-msg--bot  { justify-content: flex-start; }
.cs-msg--user { justify-content: flex-end; }

.cs-bubble {
  max-width: 84%;
  padding: 10px 13px;
  font-size: 13.8px;
  line-height: 1.78;
  border-radius: 14px;
  word-break: break-word;
}
.cs-msg--bot .cs-bubble {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
  border-bottom-left-radius: 5px;
}
.cs-msg--user .cs-bubble {
  background: var(--primary);
  color: #fff;
  border-bottom-right-radius: 5px;
}

/* 打字指示 */
.cs-typing { display: inline-flex; align-items: center; gap: 4px; padding: 13px; }
.cs-typing i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--text-light);
  animation: csBlink 1.2s infinite ease-in-out;
}
.cs-typing i:nth-child(2) { animation-delay: .18s; }
.cs-typing i:nth-child(3) { animation-delay: .36s; }
@keyframes csBlink {
  0%, 60%, 100% { opacity: .28; transform: translateY(0); }
  30%           { opacity: 1;   transform: translateY(-3px); }
}

/* 问题胶囊 */
.cs-chips { display: flex; flex-wrap: wrap; gap: 7px; padding: 2px 0 4px; }
.cs-chip {
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  color: var(--primary);
  font-family: inherit;
  font-size: 13px;
  line-height: 1.45;
  text-align: left;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, transform .15s ease;
}
.cs-chip:hover {
  border-color: var(--accent);
  background: #FBF7F2;
  transform: translateY(-1px);
}

/* 留资引导卡 */
.cs-leadcard {
  margin: 2px 0 4px;
  padding: 13px 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(60, 50, 38, .05);
}
.cs-leadcard-t { font-size: 13.8px; font-weight: 600; color: var(--primary); margin-bottom: 4px; }
.cs-leadcard-s { font-size: 12.5px; color: var(--text-light); line-height: 1.72; margin-bottom: 10px; }

/* 通用按钮 */
.cs-btnprimary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  padding: 9px 16px;
  border: none;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background .2s ease, transform .15s ease;
}
.cs-btnprimary:hover { background: #9C7555; }
.cs-btnprimary:active { transform: scale(.99); }
.cs-btnprimary:disabled { opacity: .62; cursor: not-allowed; }

.cs-btntext {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 7px;
  border: none;
  background: none;
  color: var(--text-light);
  font-family: inherit;
  font-size: 12.8px;
  cursor: pointer;
}
.cs-btntext:hover { color: var(--primary); text-decoration: underline; }

/* 留资表单 */
.cs-formbox {
  margin: 2px 0 4px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
}
.cs-formtitle { font-size: 13.5px; font-weight: 600; color: var(--primary); margin-bottom: 10px; }
.cs-form { display: block; }
.cs-field { margin-bottom: 10px; }
.cs-field label { display: block; font-size: 12.5px; color: var(--text-light); margin-bottom: 4px; }
.cs-req { color: var(--danger); }
.cs-input {
  width: 100%;
  min-height: 40px;
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  transition: border-color .2s ease, background .2s ease;
}
.cs-input:focus { outline: none; border-color: var(--accent); background: #fff; }
.cs-hint { min-height: 18px; margin: 2px 0 8px; font-size: 12.5px; color: var(--danger); }
.cs-submit { margin-top: 4px; }
.cs-privacy { margin-top: 10px; font-size: 11.8px; line-height: 1.66; color: var(--text-light); }

/* 提交成功提示 */
.cs-done {
  align-self: center;
  max-width: 90%;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(30, 132, 73, .09);
  color: var(--ok);
  font-size: 12.8px;
  line-height: 1.7;
  text-align: center;
}

/* 提交成功后的续聊提示 */
.cs-more {
  align-self: flex-start;
  margin-top: 2px;
  padding: 0 2px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--text-light);
}

/* 底部免责说明 */
.cs-foot {
  flex: 0 0 auto;
  padding: 9px 14px;
  background: #fff;
  border-top: 1px solid var(--border);
}
.cs-disclaimer { font-size: 11.5px; line-height: 1.62; color: var(--text-light); text-align: center; }

/* --- 手机端：入口收成圆形图标，面板改为底部抽屉 --- */
@media (max-width: 640px) {
  .cs-fab {
    right: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    width: 54px;
    height: 54px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }
  .cs-fab-txt { display: none; }
  .cs-fab::after { border-radius: 50%; }

  .cs-panel {
    right: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    max-width: none;
    height: 84vh;
    max-height: 84vh;
    border-radius: 16px 16px 0 0;
    border-bottom: none;
    transform: translateY(100%);
    transform-origin: bottom center;
  }
  .cs-panel.is-open { transform: translateY(0); }

  .cs-head { padding: 12px 15px; }
  .cs-body { padding: 12px 12px 10px; }
  .cs-bubble { max-width: 88%; font-size: 14px; }
  .cs-chip { min-height: 38px; padding: 9px 13px; font-size: 13.2px; }
  .cs-input { font-size: 16px; }          /* ≥16px 防止 iOS 聚焦时页面自动放大 */
  .cs-btnprimary { min-height: 44px; }    /* 触控区标准 */
  .cs-close { width: 34px; height: 34px; }
  .cs-foot { padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px)); }
}

/* ==========================================================
 * 资讯中心（近期动态）：主体双栏 + 侧栏 + 列表 + 详情
 * ========================================================== */

/* ===== 主体双栏（内容 + 侧栏近期动态） ===== */
.site-body { display: flex; gap: 28px; align-items: flex-start; }
.site-main { flex: 1 1 auto; min-width: 0; }
.site-sidebar { flex: 0 0 300px; width: 300px; position: sticky; top: 96px; }

/* ===== 侧栏：近期动态 ===== */
.recent-news {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 18px 8px;
  box-shadow: 0 4px 20px rgba(47,74,62,0.04);
}
.recent-news-head {
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 2px solid var(--accent); padding-bottom: 10px; margin-bottom: 12px;
}
.recent-news-head h3 {
  font-family: "Noto Serif SC","Source Han Serif SC","Songti SC",serif;
  font-size: 18px; color: var(--primary); margin: 0;
}
.rn-more { font-size: 13px; color: var(--primary-2); }
.rn-more:hover { text-decoration: underline; }
.recent-news-list { list-style: none; padding: 0; margin: 0; }
.recent-news-list li { padding: 11px 0; border-bottom: 1px dashed var(--border); }
.recent-news-list li:last-child { border-bottom: none; }
.rn-title {
  display: block; font-size: 14.5px; color: var(--text); line-height: 1.55; font-weight: 500;
}
.rn-title:hover { color: var(--primary-2); text-decoration: none; }
.rn-meta { display: flex; align-items: center; gap: 8px; margin-top: 5px; }
.rn-cat { font-size: 11px; padding: 1px 8px; border-radius: 10px; color: #fff; }
.rn-cat-article { background: var(--primary-2); }
.rn-cat-announcement { background: #c9893f; }
.rn-date { font-size: 12px; color: var(--text-light); }
.rn-empty { font-size: 13px; color: var(--text-light); padding: 8px 0 14px; }

/* ===== 资讯中心列表页 ===== */
.news-page-head { margin-bottom: 6px; }
.news-page-head h1 {
  font-family: "Noto Serif SC","Source Han Serif SC","Songti SC",serif;
  font-size: 28px; color: var(--primary); margin: 0;
}
.news-sub { color: var(--text-light); font-size: 14px; margin: 6px 0 18px; }
.news-cats { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.news-cats a {
  padding: 7px 18px; border-radius: 20px; background: #fff; border: 1px solid var(--border);
  font-size: 14px; color: var(--text);
}
.news-cats a.active, .news-cats a:hover {
  background: var(--primary); color: #fff; text-decoration: none; border-color: var(--primary);
}
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.news-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px; overflow: hidden;
  display: flex; flex-direction: column; box-shadow: 0 4px 20px rgba(47,74,62,0.04);
  transition: transform .2s, box-shadow .2s;
}
.news-card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(47,74,62,0.1); text-decoration: none; }
.news-card-cover { height: 150px; background-size: cover; background-position: center; background-color: #e8e2d8; }
.news-card-cover--empty {
  display: flex; align-items: center; justify-content: center;
  color: var(--primary-2); font-size: 22px; font-weight: 700; letter-spacing: 4px;
}
.news-card-body { padding: 14px 16px 18px; flex: 1; display: flex; flex-direction: column; }
.news-card-cat { font-size: 11px; padding: 1px 9px; border-radius: 10px; color: #fff; align-self: flex-start; margin-bottom: 8px; }
.news-card-cat-article { background: var(--primary-2); }
.news-card-cat-announcement { background: #c9893f; }
.news-card-title { font-size: 16.5px; color: var(--text); line-height: 1.5; margin: 0 0 8px; }
.news-card-summary { font-size: 13px; color: var(--text-light); line-height: 1.7; margin: 0 0 12px; flex: 1; }
.news-card-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-light); }
.news-pager { margin-top: 24px; text-align: center; }
.news-pager a, .news-pager span {
  display: inline-block; padding: 6px 12px; margin: 0 3px; border-radius: 8px;
  border: 1px solid var(--border); color: var(--primary-2); font-size: 13px;
}
.news-pager a:hover { background: #f0ece6; text-decoration: none; }
.news-pager .active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ===== 资讯详情页 ===== */
.news-detail {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  padding: 30px 34px; box-shadow: 0 4px 20px rgba(47,74,62,0.04);
}
.news-back { font-size: 13.5px; color: var(--primary-2); }
.news-back:hover { text-decoration: underline; }
.news-detail-cat { display: inline-block; margin: 14px 0 8px; }
.news-detail-title {
  font-family: "Noto Serif SC","Source Han Serif SC","Songti SC",serif;
  font-size: 26px; color: var(--primary); line-height: 1.5; margin: 0 0 12px;
}
.news-detail-meta {
  font-size: 13px; color: var(--text-light); display: flex; gap: 18px;
  margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--border);
}
.news-detail-cover {
  height: 280px; border-radius: 12px; background-size: cover; background-position: center;
  background-color: #e8e2d8; margin-bottom: 18px;
}
.news-detail-summary {
  font-size: 15px; color: var(--text); background: #f8f6f3; border-left: 4px solid var(--accent);
  padding: 12px 16px; border-radius: 8px; margin-bottom: 18px;
}
.news-detail-body { font-size: 15px; line-height: 1.85; }
.news-detail-body p { margin: 12px 0; text-align: justify; }
.news-detail-body img { max-width: 100%; border-radius: 8px; }

/* ===== 响应式：窄屏收起侧栏到内容下方 ===== */
@media (max-width: 900px) {
  .site-body { flex-direction: column; }
  .site-sidebar { width: 100%; position: static; flex: none; }
}
