/* ==========================================================================
   如意约 · 页面公共章节样式
   供「常见问题」「服务品类」等内页复用，沿用 guides.css 的设计语言：
   浅色渐变底 + 白色卡片 + 品牌绿点缀，与站点其他页面保持一致。
   请勿在此写页面专属样式，专属样式放各自 css 文件。
   ========================================================================== */

/* ---------- 页面章节容器 ---------- */
.page-section {
  padding: 3rem 0 4rem;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

.page-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

.page-container--wide {
  max-width: 1040px;
}

/* ---------- 章节标题（页面级） ---------- */
.page-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.page-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: #1a1a2e;
  margin: 0 0 0.5rem;
  letter-spacing: 0.02em;
}

.page-subtitle {
  font-size: 0.95rem;
  color: #8c8c9e;
  margin: 0;
  line-height: 1.7;
}

/* ---------- 引导说明块 ---------- */
.page-lead {
  background: #fff;
  border: 1px solid #e8ecf1;
  border-left: 4px solid var(--color-brand, #B4EF4E);
  border-radius: 12px;
  padding: 18px 22px;
  margin-bottom: 2.5rem;
  font-size: 0.9rem;
  line-height: 1.9;
  color: #5a6c7d;
}

.page-lead strong {
  color: #1a1a2e;
  font-weight: 700;
}

/* ---------- 小节 ---------- */
.page-group {
  margin-bottom: 2.75rem;
}

/* 分组之间靠"上方留白"区分，比单纯加大下方间距更清晰 */
.page-group + .page-group {
  margin-top: 3.25rem;
}

/* 标题与它上方内容的间距 = 3.25rem，明显大于标题下方（1.25rem），
   这样标题才"归属"于它下面的内容，而不是被上面的内容吸走。 */
.page-group-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 1.25rem;
  padding-left: 0.75rem;
  border-left: 4px solid var(--color-brand, #B4EF4E);
  line-height: 1.5;
  letter-spacing: 0.01em;
}

/* 标题描述：与标题左对齐（4px 竖线 + 0.75rem 内边距 = 16px），
   紧跟标题之下、贴住它所属的内容。原实现用负边距硬凑，会把描述拉得
   离标题过近、距内容过远，整体观感失衡。 */
.page-group-desc {
  font-size: 0.85rem;
  color: #8c8c9e;
  margin: 0 0 1.25rem;
  padding-left: calc(4px + 0.75rem);
  line-height: 1.7;
}

/* ---------- 通用卡片 ---------- */
.site-card {
  background: #fff;
  border: 1px solid #e8ecf1;
  border-radius: 16px;
  padding: 22px 24px;
  margin-bottom: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.site-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.1);
  border-color: #d9e2ec;
}

/* ---------- 标签（chip） ---------- */
.site-chip-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
}

.site-chip {
  font-size: 0.83rem;
  color: #5a6c7d;
  background: #f4f7fa;
  border: 1px solid #e8ecf1;
  border-radius: 20px;
  padding: 6px 15px;
  line-height: 1.45;
  white-space: nowrap;
}

.site-chip--muted {
  color: #a0aab5;
  background: transparent;
  border-style: dashed;
  border-color: #dde3ea;
}

.site-chip-label {
  font-size: 0.76rem;
  color: #a0aab5;
  margin: 12px 0 7px;
}

/* ---------- 提示条 ---------- */
.site-callout {
  background: rgba(180, 239, 78, 0.1);
  border: 1px solid rgba(180, 239, 78, 0.45);
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 2rem;
  font-size: 0.88rem;
  line-height: 1.85;
  color: #5a6c7d;
}

.site-callout h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 10px;
}

.site-callout ul {
  margin: 0 0 12px;
  padding-left: 1.1rem;
}

.site-callout li {
  margin-bottom: 5px;
}

.site-callout p:last-child {
  margin-bottom: 0;
}

.site-callout a {
  color: #0070D6;
  text-decoration: none;
  font-weight: 600;
}

.site-callout a:hover {
  text-decoration: underline;
}

/* ---------- 关键数据列表（key / value 对照） ---------- */
.stat-list {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
}

.stat-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  padding: 9px 0;
  border-bottom: 1px dashed rgba(148, 163, 184, 0.22);
}

.stat-list li:last-child {
  border-bottom: none;
}

.stat-key {
  flex: 0 0 8.5rem;
  font-size: 0.86rem;
  color: #7c8899;
}

.stat-val {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: #1a1a2e;
}

.stat-val em {
  display: block;
  margin-top: 2px;
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 400;
  color: #8c8c9e;
}

/* ---------- 底部说明 ---------- */
.site-note {
  background: #fff;
  border: 1px solid #e8ecf1;
  border-radius: 12px;
  padding: 18px 22px;
  font-size: 0.84rem;
  line-height: 1.85;
  color: #7c8899;
}

.site-note strong {
  color: #5a6c7d;
}

/* ---------- 表格 ---------- */
.site-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid #e8ecf1;
  border-radius: 14px;
  overflow: hidden;
  font-size: 0.87rem;
}

.site-table th,
.site-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid #eef2f7;
  vertical-align: top;
  line-height: 1.7;
}

.site-table th {
  width: 9.5rem;
  font-weight: 600;
  color: #7c8899;
  background: #f8fafc;
  white-space: nowrap;
}

.site-table td {
  color: #2c3e50;
}

.site-table tr:last-child th,
.site-table tr:last-child td {
  border-bottom: none;
}

/* ---------- 响应式 ---------- */
@media (max-width: 768px) {
  .page-section { padding: 2rem 0 3rem; }
  .page-container { padding: 0 18px; }
  .page-title { font-size: 1.35rem; }
  .page-group-title { font-size: 1.05rem; }
  .site-card { padding: 18px; border-radius: 14px; }
  .site-table th { width: 7rem; padding: 11px 13px; }
  .site-table td { padding: 11px 13px; }
}

@media (max-width: 480px) {
  .page-section { padding: 1.5rem 0 2.5rem; }
  .page-title { font-size: 1.25rem; }
  .page-subtitle { font-size: 0.85rem; }
  /* 窄屏上 chip 会换成很多行，适当放大内边距让排布更疏朗 */
  .site-chip { font-size: 0.8rem; padding: 6px 14px; }
  .site-chip-list { gap: 9px; }
}
