/* ═══ 北民大新生指南 - Neo-Brutalism 动态内容块样式 ═══
 * 被 7 个 page 引用，配合 page-renderer.js 渲染 AdminDB 中的 blocks
 * v3: 2026-07-30 Neo-Brutalism 全项目统一
 * 零渐变、零毛玻璃、零光晕
 */

/* ── 动态段落容器 ── */
.dynamic-section {
  margin-bottom: 1.25rem;
  animation: block-fade-in 0.4s ease-out;
}
@keyframes block-fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── 页面导语 ── */
.page-intro {
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.7;
  color: var(--ink-dim);
  margin-bottom: 1.25rem;
  padding: 0.75rem 1rem;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
}

/* ── 标题 — 黄色荧光笔效果 ── */
.section-title {
  font-family: var(--font);
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1.3;
  color: var(--ink);
  margin: 1.5rem 0 0.75rem;
  padding-left: 0;
  position: relative;
  display: inline-block;
}
.section-title::before { content: none; }
.section-title::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: -2px;
  right: -2px;
  height: 10px;
  background: rgba(250,204,21,0.45);
  z-index: -1;
  border-radius: 2px;
  transform: rotate(-1deg);
}

/* ── 段落 ── */
.section-paragraph {
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--ink-dim);
  line-height: 1.7;
  margin: 0 0 1rem;
}
.section-paragraph strong { font-weight: 700; color: var(--ink); }
.section-paragraph em { color: var(--ink-dim); font-style: normal; }

/* ── 列表 — 纯色圆点 ── */
.section-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.section-list li {
  position: relative;
  padding: 0.5rem 0.5rem 0.5rem 1.5rem;
  font-size: 0.875rem;
  color: var(--ink-dim);
  line-height: 1.7;
  border-radius: 6px;
  transition: background-color 0.2s;
}
.section-list li:nth-child(even) {
  background: rgba(26,26,46,0.02);
}
.section-list li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 0.65em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  border: 1.5px solid var(--ink);
}
.section-list li strong { font-weight: 700; color: var(--ink); }

/* 方形列表 */
.section-list.style-square li::before {
  border-radius: 2px;
  width: 7px; height: 7px;
  top: 0.7em;
}

/* 数字列表 */
.section-list.style-number,
.section-list.style-num {
  counter-reset: section-ol;
  padding-left: 0;
}
.section-list.style-number li,
.section-list.style-num li {
  counter-increment: section-ol;
  padding-left: 2rem;
}
.section-list.style-number li::before,
.section-list.style-num li::before {
  content: counter(section-ol);
  background: var(--blue);
  color: #fff;
  width: 20px; height: 20px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  top: 5px; left: 0;
  border: 2px solid var(--ink);
  box-shadow: 1px 1px 0 var(--ink);
}

/* check 样式 */
.section-list.style-check li::before {
  content: '';
  background: var(--green);
  color: #fff;
  font-weight: 900;
  font-size: 12px;
  width: 18px; height: 18px;
  border-radius: 4px;
  border: 2px solid var(--ink);
  top: 0.5em;
  left: 2px;
}
.section-list.style-check li::after {
  content: '';
  position: absolute;
  left: 7px;
  top: 0.65em;
  width: 6px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* ── 小贴士（Tips）— 纯色背景 + 左边框 ── */
.section-tips {
  list-style: none;
  padding: 0.75rem 1rem;
  margin: 0 0 1.25rem;
  background: #fff;
  border-left: 4px solid var(--ink);
  border-radius: 0 8px 8px 0;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.section-tips li {
  position: relative;
  padding: 0.25rem 0 0.25rem 1.25rem;
  font-size: 0.875rem;
  color: var(--ink-dim);
  line-height: 1.7;
}
.section-tips li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--yellow);
  border: 1.5px solid var(--ink);
}

/* ── 表格 — 纯色表头 ── */
.section-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1.25rem;
  border: var(--bd);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.section-table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.section-table th {
  background: var(--blue);
  color: #fff;
  font-weight: 900;
  text-align: left;
  padding: 0.75rem 1rem;
  white-space: nowrap;
  letter-spacing: 0.02em;
}
.section-table td {
  padding: 0.75rem 1rem;
  border-bottom: 2px solid rgba(26,26,46,0.1);
  color: var(--ink-dim);
  line-height: 1.5;
  background: #fff;
}
.section-table tbody tr:last-child td { border-bottom: none; }
.section-table tbody tr:nth-child(even) td { background: rgba(26,26,46,0.02); }

/* ── Callout 提示框 — 纯色块 + 左边框 ── */
.section-callout {
  border-left: 4px solid var(--ink);
  border-radius: 0 8px 8px 0;
  background: #fff;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--ink-dim);
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
}
.section-callout.level-info {
  border-left-color: var(--blue);
  background: #eff6ff;
}
.section-callout.level-warn {
  border-left-color: var(--orange);
  background: #fff7ed;
}
.section-callout.level-success {
  border-left-color: var(--green);
  background: #f0fdf4;
}
.section-callout.level-danger {
  border-left-color: var(--coral);
  background: #fef2f2;
}

/* ── 通用卡片 — Neo-Brutalism ── */
.section-card {
  background: #fff;
  border: var(--bd);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}
.section-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow);
}
.section-card:active {
  transform: translate(1px, 1px);
  box-shadow: var(--shadow-xs);
}
.section-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.section-card-emoji {
  font-size: 1.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  background: #fff;
  border-radius: 8px;
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-xs);
}
.section-card-title {
  font-family: var(--font);
  font-size: 1.125rem;
  font-weight: 900;
  color: var(--ink);
  margin: 0;
}
.section-card-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 0.75rem;
}
.section-card-tag {
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--yellow);
  color: var(--ink);
  padding: 3px 10px;
  border-radius: var(--radius-xs);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-xs);
}
.section-card-body {
  font-family: var(--font);
  font-size: 0.875rem;
  color: var(--ink-dim);
  line-height: 1.7;
}
.section-card-body p { margin: 0 0 0.5rem; }
.section-card-body p:last-child { margin-bottom: 0; }
.section-card-body strong { font-weight: 700; color: var(--ink); }

/* 路线卡片「地图导航」按钮：浏览器跳 uri.amap.com，微信内自动切腾讯地图 */
.section-card-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 900;
  color: #fff;
  background: var(--blue);
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: transform 0.15s, box-shadow 0.15s;
}
.section-card-nav svg {
  width: 15px;
  height: 15px;
}
.section-card-nav:active {
  transform: translate(1px, 1px);
  box-shadow: 0 0 0 var(--ink);
}

/* ── 餐厅卡片（food 页面专用） ── */
.section-dining {
  background: #fff;
  border: var(--bd);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}
.section-dining:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow);
}
.section-dining:active {
  transform: translate(1px, 1px);
  box-shadow: var(--shadow-xs);
}
.section-dining-header {
  display: flex; align-items: center; gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.section-dining-icon {
  font-size: 1.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  background: #fff;
  border-radius: 8px;
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-xs);
}
.section-dining-title {
  font-family: var(--font);
  font-size: 1.125rem;
  font-weight: 900;
  color: var(--ink);
  margin: 0;
}
.section-dining-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 0.75rem; }
.section-dining-tag {
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--yellow);
  color: var(--ink);
  padding: 3px 10px;
  border-radius: var(--radius-xs);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-xs);
}
.section-dining-body {
  font-family: var(--font);
  font-size: 0.875rem;
  color: var(--ink-dim);
  line-height: 1.7;
}
.section-dining-body p { margin: 0 0 0.5rem; }
.section-dining-must { color: var(--green); font-weight: 700; }
.section-dining-must strong { color: var(--green); }
.section-dining-avoid { color: var(--coral); font-weight: 700; }
.section-dining-avoid strong { color: var(--coral); }

/* ── 步骤（steps） ── */
.section-steps {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 1.25rem;
}
.section-step {
  display: flex; align-items: flex-start; gap: 0.75rem;
  padding: 0.75rem;
  border-bottom: 2px solid rgba(26,26,46,0.08);
  border-radius: 6px;
  transition: background-color 0.2s;
}
.section-step:hover {
  background: rgba(26,26,46,0.02);
}
.section-step:last-child { border-bottom: none; }
.section-step-num {
  flex-shrink: 0;
  width: 28px; height: 28px;
  background: var(--blue);
  color: #fff;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900;
  font-size: 0.875rem;
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-xs);
}
.section-step-body {
  flex: 1;
  font-family: var(--font);
  font-size: 0.875rem;
  color: var(--ink-dim);
  line-height: 1.7;
  padding-top: 3px;
}
.section-step-body strong { font-weight: 700; color: var(--ink); }

/* ── 时间线（timeline） ── */
.section-timeline {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}
.section-timeline::before {
  content: '';
  position: absolute;
  left: 7px; top: 6px; bottom: 6px;
  width: 3px;
  background: var(--ink);
  border-radius: 3px;
}
.section-timeline-item {
  position: relative;
  padding-bottom: 1rem;
}
.section-timeline-item:last-child { padding-bottom: 0; }
.section-timeline-item::before {
  content: '';
  position: absolute;
  left: -22px; top: 6px;
  width: 12px; height: 12px;
  border-radius: 3px;
  background: var(--blue);
  border: 2.5px solid var(--ink);
}
.section-timeline-label {
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 900;
  color: var(--blue);
  margin-bottom: 2px;
}
.section-timeline-desc {
  font-family: var(--font);
  font-size: 0.875rem;
  color: var(--ink-dim);
  line-height: 1.7;
}

/* ── 清单（checklist）— Neo 卡片化 ── */
.section-checklist {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.section-checklist-item {
  display: flex; align-items: flex-start; gap: 0.75rem;
  padding: 0.75rem;
  background: #fff;
  border: var(--bd);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}
.section-checklist-item:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow);
}
.section-checklist-item:active {
  transform: translate(1px, 1px);
  box-shadow: var(--shadow-xs);
}
.section-checklist-icon {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 6px;
  background: var(--blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-xs);
}
.section-checklist-text {
  font-size: 0.875rem;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.5;
}
.section-checklist-note {
  font-size: 0.75rem;
  color: var(--ink-dim);
  font-style: normal;
  font-weight: 400;
  display: block;
  margin-top: 2px;
}

/* ── 地址框（address） ── */
.section-address {
  background: #fff;
  border: var(--bd);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}
.section-address:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow);
}
.section-address-label {
  font-size: 0.75rem;
  color: var(--ink-dim);
  letter-spacing: 0.08em;
  margin-bottom: 0.25rem;
  font-weight: 700;
}
.section-address-text {
  font-size: 1rem;
  font-weight: 900;
  color: var(--ink);
  margin-bottom: 0.25rem;
  line-height: 1.5;
}
.section-address-zip {
  font-size: 0.875rem;
  color: var(--ink-dim);
  margin-top: 0.25rem;
}

/* ── 截断提示（truncate） ── */
.section-truncate {
  text-align: center;
  margin: 1.5rem 0 1rem;
  font-size: 0.875rem;
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-xs);
  background: #fff;
  border: 2px solid var(--ink);
  display: inline-block;
  width: 100%;
  box-shadow: var(--shadow-xs);
}
.section-truncate:hover {
  background: var(--yellow);
}

/* ── 底部 CTA — Neo 纯色块 ── */
.section-cta {
  border: var(--bd);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  background: var(--blue);
  color: #fff;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.section-cta:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--ink);
}
.section-cta:active {
  transform: translate(1px, 1px);
  box-shadow: var(--shadow-sm);
}
.section-cta-title {
  font-family: var(--font);
  font-size: 1.125rem;
  font-weight: 900;
  color: #fff;
  margin: 0 0 0.5rem;
}
.section-cta-desc {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.85);
  font-weight: 600;
  margin: 0 0 1rem;
  line-height: 1.5;
}
.section-cta-qr {
  width: 140px; height: 140px;
  margin: 0 auto 0.75rem;
  background: rgba(255,255,255,0.15);
  border: 2px dashed rgba(255,255,255,0.4);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 0.75rem;
  font-weight: 600;
}
.section-cta-hint {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.7);
  font-weight: 600;
}

/* ── 空状态 ── */
.content-empty {
  text-align: center;
  padding: 60px 1rem;
  color: var(--ink-dim);
  font-size: 0.875rem;
  background: #fff;
  border-radius: var(--radius);
  border: 2px dashed rgba(26,26,46,0.2);
}
.content-empty-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

/* ── 图片容器 ── */
.section-image {
  border-radius: 12px;
  overflow: hidden;
  border: var(--bd);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.section-image:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow);
}
.section-image img {
  width: 100%;
  display: block;
  border-radius: 0;
}
.section-figure {
  margin-bottom: 1.25rem;
  text-align: center;
}
.section-figure img {
  border-radius: 12px;
  border: var(--bd);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}
.section-figure img:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow);
}
.section-figure-caption {
  font-size: 0.75rem;
  color: var(--ink-dim);
  margin-top: 0.5rem;
}
