/* ===========================================
   铁人的机械检测手记 - 全站共享样式
   深蓝/钢灰/安全橙 工业风设计系统
   =========================================== */

:root {
  /* 主题色 - 深蓝工业风 */
  --primary: #1e3a5f;
  --primary-dark: #14283f;
  --primary-light: #2c5382;

  /* 辅助色 - 钢灰 */
  --steel: #6b7c8c;
  --steel-light: #95a3b0;
  --steel-bg: #eef1f4;

  /* 强调色 - 安全橙 */
  --accent: #d97706;
  --accent-light: #f59e0b;
  --accent-bg: #fef3e6;

  /* 文本 */
  --text: #1f2937;
  --text-light: #6b7280;
  --text-lighter: #9ca3af;

  /* 背景与边框 */
  --bg: #f7f8fa;
  --surface: #ffffff;
  --border: #e5e7eb;
  --border-dark: #d1d5db;

  /* 阴影 */
  --shadow-sm: 0 1px 3px rgba(30, 58, 95, 0.06);
  --shadow-md: 0 4px 12px rgba(30, 58, 95, 0.08);
  --shadow-lg: 0 10px 24px rgba(30, 58, 95, 0.12);
}

/* 重置与基础 */
* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', 'Source Han Sans CN', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.15s;
}
a:hover { color: var(--accent); }

img { max-width: 100%; height: auto; display: block; }

/* ===== 顶部导航栏 ===== */
.site-header {
  background: var(--primary);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-md);
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.site-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-logo {
  width: 36px;
  height: 36px;
  background: var(--accent);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  color: #fff;
}
.brand-text {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #fff;
}
.brand-text:hover { color: #fff; }
.brand-sub {
  font-size: 12px;
  color: var(--steel-light);
  margin-left: 8px;
}
.nav-menu {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-menu a {
  display: block;
  padding: 8px 16px;
  color: #fff;
  font-size: 14.5px;
  font-weight: 500;
  border-radius: 4px;
  transition: background 0.15s;
}
.nav-menu a:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}
.nav-menu a.active {
  background: var(--accent);
  color: #fff;
}
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

/* ===== 容器 ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.article-container {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Hero区 ===== */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(217,119,6,0.15) 0%, transparent 70%);
}
.hero-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}
.hero h1 {
  font-size: 42px;
  font-weight: 700;
  margin: 0 0 16px;
  letter-spacing: 2px;
}
.hero p {
  font-size: 17px;
  color: rgba(255,255,255,0.85);
  margin: 0 auto;
  max-width: 600px;
  line-height: 1.7;
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.hero-stat {
  text-align: center;
}
.hero-stat .num {
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
  display: block;
  line-height: 1.2;
}
.hero-stat .label {
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  margin-top: 6px;
}

/* ===== 页面标题（子页面用）===== */
.page-header {
  background: var(--steel-bg);
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
}
.page-header h1 {
  font-size: 32px;
  margin: 0 0 8px;
  color: var(--primary);
  letter-spacing: 1px;
}
.page-header p {
  color: var(--text-light);
  font-size: 16px;
  margin: 0;
}

/* ===== 卡片网格 ===== */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
  padding: 48px 0;
}
.post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.post-card .cover {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--steel-bg);
}
.post-card .cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.post-card:hover .cover img { transform: scale(1.04); }
.post-card .body {
  padding: 22px 24px 26px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.post-card .meta {
  display: flex;
  gap: 8px;
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 10px;
  letter-spacing: 1px;
  flex-wrap: wrap;
}
.post-card .meta .tag {
  background: var(--accent-bg);
  color: var(--accent);
  padding: 2px 8px;
  border-radius: 3px;
  font-weight: 500;
}
.post-card h2 {
  font-size: 18px;
  margin: 0 0 10px;
  color: var(--primary);
  line-height: 1.4;
}
.post-card h2 a { color: var(--primary); }
.post-card h2 a:hover { color: var(--accent); }
.post-card .excerpt {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.65;
  margin: 0 0 14px;
  flex: 1;
}
.post-card .more {
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
}

/* ===== 区块 ===== */
.section {
  padding: 56px 0;
}
.section-title {
  font-size: 24px;
  margin: 0 0 8px;
  color: var(--primary);
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-title::before {
  content: '';
  width: 4px;
  height: 22px;
  background: var(--accent);
  border-radius: 2px;
}
.section-subtitle {
  color: var(--text-light);
  margin: 0 0 32px;
  font-size: 14.5px;
}

/* ===== 关于区 ===== */
.about-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 36px 40px;
  margin: 48px 0;
}
.about-section p {
  font-size: 15.5px;
  line-height: 1.85;
  margin: 0 0 16px;
  color: var(--text);
}
.about-section p:last-child { margin-bottom: 0; }

/* 关于页 - 形象照（右浮，文字环绕） */
.about-portrait {
  float: right;
  width: 320px;
  height: auto;
  margin: 0 0 16px 28px;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  border: 3px solid var(--surface);
  shape-outside: margin-box;
}
.portrait-caption {
  clear: both;
  text-align: right;
  color: var(--text-light);
  font-size: 13px;
  margin-top: -8px;
  padding-top: 8px;
  border-top: 1px dashed var(--border);
}

/* ===== 文章详情 ===== */
.article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 48px 56px;
  margin: 48px 0 32px;
}
.article .meta {
  font-size: 13px;
  color: var(--text-light);
  letter-spacing: 1px;
  margin-bottom: 12px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.article .meta .tag {
  background: var(--accent-bg);
  color: var(--accent);
  padding: 2px 10px;
  border-radius: 3px;
  font-weight: 500;
}
.article h1 {
  font-size: 30px;
  color: var(--primary);
  margin: 0 0 28px;
  line-height: 1.4;
  border-bottom: 2px solid var(--border);
  padding-bottom: 18px;
}
.article h2 {
  font-size: 20px;
  color: var(--primary);
  margin: 36px 0 14px;
  padding-left: 12px;
  border-left: 4px solid var(--accent);
}
.article h3 {
  font-size: 17px;
  color: var(--primary-light);
  margin: 28px 0 10px;
  font-weight: 600;
}
.article p {
  margin: 0 0 16px;
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--text);
  text-align: justify;
}
.article ul, .article ol {
  padding-left: 24px;
  margin: 0 0 16px;
}
.article li {
  margin-bottom: 6px;
  font-size: 15.5px;
}
.article figure {
  margin: 28px 0;
  padding: 0;
}
.article figure img {
  border-radius: 6px;
  border: 1px solid var(--border);
}
.article figcaption {
  color: var(--text-light);
  font-size: 13px;
  margin-top: 10px;
  text-align: center;
  line-height: 1.6;
}
.article blockquote {
  border-left: 3px solid var(--accent);
  background: var(--accent-bg);
  padding: 14px 18px;
  margin: 20px 0;
  border-radius: 0 6px 6px 0;
  font-size: 15px;
  color: var(--text);
}
.article table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14.5px;
}
.article th, .article td {
  border: 1px solid var(--border);
  padding: 10px 14px;
  text-align: left;
}
.article th {
  background: var(--steel-bg);
  color: var(--primary);
  font-weight: 600;
}
.article .back {
  display: inline-block;
  margin: 28px 0 48px;
  font-size: 14px;
  color: var(--accent);
  font-weight: 600;
}
.article .back::before { content: '← '; }

/* 现场日志专用：双图并排 */
.article .photo-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 20px 0 24px;
}
.article .photo-pair img {
  border-radius: 6px;
  border: 1px solid var(--border);
}

/* ===== 标签云（分类筛选）===== */
.filter-bar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px 24px;
  margin: 32px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.filter-bar .label {
  font-size: 14px;
  color: var(--text-light);
  margin-right: 4px;
}
.filter-tag {
  display: inline-block;
  padding: 6px 14px;
  background: var(--steel-bg);
  color: var(--text);
  font-size: 13px;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.15s;
  border: 1px solid transparent;
}
.filter-tag:hover { background: var(--accent-bg); color: var(--accent); }
.filter-tag.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ===== 多维筛选面板（现场日志：环境 / 设备 / 手段 三行）===== */
.filter-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px 22px;
  margin: 32px 0;
}
.filter-dim {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
}
.filter-dim:last-of-type { border-bottom: none; }
.filter-dim-label {
  flex-shrink: 0;
  width: 48px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  padding-top: 6px;
  letter-spacing: 1px;
}
.filter-dim-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1;
}
.filter-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 12px;
  margin-top: 4px;
  border-top: 1px solid var(--border);
  font-size: 13px;
}
.filter-clear {
  color: var(--accent);
  text-decoration: none;
  font-size: 13px;
}
.filter-clear:hover { text-decoration: underline; }
.filter-result-count {
  color: var(--text-light);
  font-size: 13px;
  margin-left: auto;
}

/* 卡片底部标签按维度上色 */
.scene-chip {
  display: inline-block;
  padding: 3px 9px;
  font-size: 12px;
  border-radius: 3px;
  margin: 0 4px 4px 0;
  text-decoration: none;
  transition: opacity 0.15s;
}
.scene-chip:hover { opacity: 0.75; }
.scene-chip.scene-tag-scene  { background: #e3f0fb; color: #1e3a5f; }
.scene-chip.scene-tag-device { background: #fff1e0; color: #b04a00; }
.scene-chip.scene-tag-method { background: #e8f5e9; color: #2e7d32; }
.scene-chip.active {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}

/* 移动端：筛选维度堆叠 */
@media (max-width: 640px) {
  .filter-dim {
    flex-direction: column;
    gap: 6px;
  }
  .filter-dim-label {
    width: auto;
    padding-top: 0;
  }
}

/* ===== 分页 ===== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 24px 0 56px;
}
.pagination a, .pagination span {
  display: inline-block;
  min-width: 36px;
  height: 36px;
  line-height: 36px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  font-size: 14px;
  background: var(--surface);
  padding: 0 10px;
}
.pagination a:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.pagination .current {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.pagination .disabled {
  color: var(--text-lighter);
  cursor: not-allowed;
}

/* ===== 法规标准表 ===== */
.regulation-group {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px 32px;
  margin-bottom: 24px;
}
.regulation-group h3 {
  margin: 0 0 16px;
  color: var(--primary);
  font-size: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}
.regulation-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.regulation-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.regulation-list li:last-child { border-bottom: 0; }
.regulation-list .code {
  font-family: 'Menlo', 'Monaco', monospace;
  background: var(--steel-bg);
  color: var(--primary);
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 600;
  min-width: 110px;
  text-align: center;
  flex-shrink: 0;
}
.regulation-list .info h4 {
  margin: 0 0 4px;
  font-size: 15px;
  color: var(--text);
}
.regulation-list .info p {
  margin: 0;
  font-size: 13px;
  color: var(--text-light);
}

/* ===== 联系交流 ===== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 32px 0;
}
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px 28px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.contact-card .icon {
  width: 56px;
  height: 56px;
  background: var(--accent-bg);
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin: 0 auto 16px;
}
.contact-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  color: var(--primary);
}
.contact-card p {
  margin: 0;
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.7;
}
.contact-card .qr-placeholder {
  width: 160px;
  height: 160px;
  margin: 12px auto 12px;
  background: var(--steel-bg);
  border: 2px dashed var(--border-dark);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 13px;
}
.contact-card .email-text {
  font-family: 'Menlo', 'Monaco', monospace;
  font-size: 15px;
  color: var(--primary);
  font-weight: 600;
  margin-top: 8px;
}

/* 评论提示 */
.comment-notice {
  background: var(--accent-bg);
  border-left: 4px solid var(--accent);
  padding: 18px 24px;
  border-radius: 0 6px 6px 0;
  margin: 32px 0;
  font-size: 14.5px;
  color: var(--text);
}
.comment-notice strong { color: var(--accent); }

/* ===== 关于页标签 ===== */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}
.tag-item {
  display: inline-block;
  padding: 6px 14px;
  background: var(--steel-bg);
  color: var(--text);
  font-size: 13.5px;
  border-radius: 16px;
  border: 1px solid transparent;
}
.tag-item.orange { background: var(--accent-bg); color: var(--accent); }
.tag-item.blue { background: #e6f1fb; color: var(--primary-light); }

/* 数据统计 */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin: 24px 0;
}
.stat-box {
  background: var(--primary);
  color: #fff;
  padding: 24px 16px;
  border-radius: 6px;
  text-align: center;
}
.stat-box .v {
  font-size: 30px;
  font-weight: 700;
  color: var(--accent);
  display: block;
  line-height: 1.1;
}
.stat-box .k {
  font-size: 13px;
  color: rgba(255,255,255,0.8);
  margin-top: 8px;
}

/* 资质列表 */
.cert-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.cert-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 16px;
  align-items: center;
}
.cert-list li:last-child { border-bottom: 0; }
.cert-list .icon {
  width: 40px;
  height: 40px;
  background: var(--accent-bg);
  color: var(--accent);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}
.cert-list .text .name {
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 2px;
}
.cert-list .text .detail {
  font-size: 13px;
  color: var(--text-light);
}

/* ===== 声明 ===== */
.disclaimer {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 20px 24px;
  margin: 32px 0;
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.7;
}
.disclaimer strong { color: var(--text); }

/* ===== 评论区 ===== */
.comments-section {
  max-width: 820px;
  margin: 40px auto 0;
  padding: 32px 0 0;
  border-top: 2px solid var(--border);
}
.comments-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.comments-icon { font-size: 1.4rem; }
.comments-count {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--steel);
  background: var(--steel-bg);
  padding: 2px 10px;
  border-radius: 12px;
  margin-left: 4px;
}

/* 提交反馈提示 */
.comment-alert {
  padding: 12px 18px;
  border-radius: 6px;
  margin-bottom: 20px;
  font-size: 0.9rem;
}
.alert-success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}
.alert-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

/* 评论表单 */
.comment-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 32px;
}
.form-row {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}
.form-row .form-field { flex: 1; }
.form-field {
  margin-bottom: 16px;
}
.form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.form-field .required { color: #dc2626; }
.form-field .optional { color: var(--steel); font-weight: 400; font-size: 0.8rem; }
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(44, 83, 130, 0.1);
}
.form-field textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
}
.char-count {
  text-align: right;
  font-size: 0.78rem;
  color: var(--steel);
  margin-top: 4px;
}
.form-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.btn-submit-comment {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 10px 28px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-submit-comment:hover {
  background: var(--primary-light);
}
.form-hint {
  font-size: 0.78rem;
  color: var(--steel);
}

/* 评论列表 */
.comments-list {
  margin-top: 8px;
}
.no-comments {
  text-align: center;
  padding: 40px 20px;
  color: var(--steel);
  font-size: 0.9rem;
  background: var(--surface);
  border-radius: 8px;
  border: 1px dashed var(--border);
}
.comment-item {
  display: flex;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.comment-item:last-child { border-bottom: none; }
.comment-avatar {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
}
.comment-body { flex: 1; min-width: 0; }
.comment-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.comment-author {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
}
.comment-floor {
  font-size: 0.75rem;
  color: var(--steel);
  background: var(--steel-bg);
  padding: 1px 8px;
  border-radius: 3px;
}
.comment-time {
  font-size: 0.78rem;
  color: var(--steel);
}
.comment-text {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text);
  word-wrap: break-word;
  white-space: pre-wrap;
}

/* 手机端评论区适配 */
@media (max-width: 768px) {
  .form-row { flex-direction: column; gap: 0; }
  .comment-form { padding: 18px; }
  .form-hint { width: 100%; }
  .comment-item { gap: 10px; }
  .comment-avatar { width: 34px; height: 34px; font-size: 0.85rem; }
}


/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .nav-menu { display: none; }
  .nav-menu.open {
    display: flex;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--primary);
    flex-direction: column;
    padding: 12px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .nav-toggle { display: block; }
  .brand-sub { display: none; }

  .hero h1 { font-size: 30px; }
  .hero-stats { gap: 24px; }
  .hero-stat .num { font-size: 26px; }

  .container, .article-container { padding: 0 16px; }
  .article { padding: 28px 20px; }
  .article .photo-pair { grid-template-columns: 1fr; }
  .article h1 { font-size: 24px; }

  .about-section { padding: 24px 20px; }
  .about-portrait {
    float: none;
    display: block;
    margin: 0 auto 16px;
    width: 80%;
    max-width: 360px;
  }
  .portrait-caption { text-align: center; }
  .regulation-group { padding: 20px; }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 24px 32px;
  }
  .footer-brand-bar {
    flex-direction: column;
    gap: 6px;
  }
}

@media (max-width: 480px) {
  .hero { padding: 56px 0 40px; }
  .page-header { padding: 32px 0; }
  .page-header h1 { font-size: 24px; }
  .section { padding: 40px 0; }
}


/* ===== 页脚 ===== */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.7);
  padding: 40px 0 0;
  margin-top: 64px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.footer-col {
  display: flex;
  flex-direction: column;
}
.footer-col h4 {
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 16px;
  padding-bottom: 10px;
  letter-spacing: 1px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-col li {
  padding: 6px 0;
  font-size: 13.5px;
  color: rgba(255,255,255,0.65);
  line-height: 1.5;
}
.footer-col a {
  color: rgba(255,255,255,0.65);
  font-size: 13.5px;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col a:hover {
  color: var(--accent);
}
.footer-brand-bar {
  max-width: 1200px;
  margin: 32px auto 0;
  padding: 20px 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-brand-name {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
}
.footer-brand-tag {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px 24px;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
}
.footer-bottom p { margin: 0; }
.footer-bottom a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
}
.footer-bottom a:hover { color: var(--accent); }
