/*
  文件：static/css/about.css
  作用：关于我页面 V2.1（精简版）
  时间：2026-09-17
  作者：大军 + 小军

  改动（vs v2.0）：
  - max-width 720 → 880（更宽敞的桌面体验）
  - 段距 64 → 48（减少滚动负担）
  - 背景块精简：只保留 hero 卡 / 免责声明黄 / 联系卡
  - Hero：标签在头像上方，引言去掉（去重）
  - 无 .about-author-block（删末尾品牌宣言）
  - 无 .about-cta（CTA 区已改为纯文字）

  设计：
  - max-width 880px（信息密度优先）
  - 段距 48px（紧凑）
  - 背景块只用在 3 个特殊场景
  - Hero 内边距 24px（紧凑）
*/

.about-page {
  --about-text-color: #1f2937;
  --about-text-soft: #4b5563;
  --about-text-mute: #6b7280;
  --about-bg-card: #ffffff;
  --about-bg-soft: #f9fafb;
  --about-accent: #4f46e5;
  --about-accent-soft: #818cf8;
  --about-divider: #e5e7eb;
  --about-border-radius: 12px;
  --about-section-gap: 48px;  /* 64 → 48 */

  max-width: 880px;  /* 720 → 880 */
  margin: 0 auto;
  padding: 40px 24px 80px;
  color: var(--about-text-color);
  line-height: 1.7;
  font-size: 16px;
}

/* ============================================
   Hero：标签 + 头像 + 元信息
   ============================================ */

.about-hero {
  margin-bottom: var(--about-section-gap);
}

.about-hero-inner {
  display: flex;
  gap: 24px;  /* 32 → 24 */
  align-items: flex-end;
  padding: 24px;  /* 32 → 24 */
  background: var(--about-bg-soft);
  border-radius: var(--about-border-radius);
}

/* 左侧：头像 + 大字"大军"（v2 · 2026-10-13 跟首页 .hero-identity 同款）*/
.about-hero-identity {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.about-hero-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 30%;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 2px solid var(--color-bg-primary);
  display: block;
  transition: transform 0.3s, box-shadow 0.3s;
}

.about-hero-avatar:hover {
  transform: scale(1.05) rotate(3deg);
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.3);
}

.about-hero-title {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--about-text-color);
  letter-spacing: -0.02em;
  margin: 0;
}

/* 右侧：元信息卡片 */
.about-meta-card {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 16px;
  padding: 16px;
  background: var(--about-bg-card);
  border-radius: var(--about-border-radius);
  border: 1px solid var(--about-divider);
}

.about-meta-row {
  display: contents;
}

.about-meta-label {
  font-size: 13px;
  color: var(--about-text-mute);
  font-weight: 500;
}

.about-meta-value {
  font-size: 14px;
  color: var(--about-text-color);
  font-weight: 500;
}

/* ============================================
   开篇段落（lead block - 纯文字，无背景）
   ============================================ */

.about-lead-block {
  margin-bottom: var(--about-section-gap);
  /* 去除背景块，简化为纯文字 */
}

.about-lead {
  font-size: 18px;
  font-weight: 500;
  margin: 0 0 12px 0;
  color: var(--about-text-color);
  line-height: 1.6;
}

.about-lead-soft {
  font-size: 15px;
  margin: 0 0 10px 0;
  color: var(--about-text-soft);
  line-height: 1.7;
  text-indent: 2em;  /* 开篇正文也缩进两格(2026-10-15 大军拍板) */
}

.about-lead-soft:last-child {
  margin-bottom: 0;
}

/* ==== 段落首行缩进统一设置(2026-10-15 大军拍板)====
   规则:
   - 正文段落(.about-section p / .about-lead-soft)统一 text-indent: 2em
   - 标题性段落(居中/强调/特殊样式)不缩进,显式 text-indent: 0
   - 单段灵活取消:在 <p> 上加 class="no-indent"
*/
.about-quote-call,
.cta-call,
.about-finale p,
.contact-line {
  text-indent: 0;
}

.about-section p.no-indent,
.about-lead-soft.no-indent {
  text-indent: 0;
}

/* ============================================
   通用 section（标题 + 段落）
   ============================================ */

.about-section {
  margin-bottom: var(--about-section-gap);
}

.about-h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 20px 0;
  color: var(--about-text-color);
  display: flex;
  align-items: center;
  gap: 10px;
}

.about-h2-icon {
  font-size: 24px;
  line-height: 1;
}

.about-h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 28px 0 14px 0;
  color: var(--about-text-color);
}

.about-section p {
  margin: 0 0 14px 0;
  color: var(--about-text-soft);
  line-height: 1.75;
  text-indent: 2em;  /* 段落首行缩进两格(2026-10-15 大军拍板) */
}

.about-section strong {
  color: var(--about-text-color);
  font-weight: 600;
}

/* 列表样式 */
.about-ol,
.about-ul {
  margin: 14px 0;
  padding-left: 24px;
}

.about-ol li,
.about-ul li {
  margin-bottom: 8px;
  color: var(--about-text-soft);
  line-height: 1.7;
}

/* 强调引言 */
.about-quote-call {
  font-size: 17px;
  font-weight: 600;
  color: var(--about-accent);
  text-align: center;
  padding: 16px 0;
  margin-top: 20px !important;
  letter-spacing: 0.05em;
}

/* CTA 强调句（脱离 .about-cta 容器） */
.cta-call {
  margin: 16px 0 0 0;
  font-size: 15px;
  color: var(--about-text-color);
  font-weight: 500;
}

/* ============================================
   特殊区块
   ============================================ */

/* 免责声明 */
.about-disclaimer {
  padding: 20px 24px;
  background: #fef3c7;
  border-radius: var(--about-border-radius);
  border-left: 4px solid #f59e0b;
}

.about-disclaimer p {
  margin: 0;
  color: #78350f;
  font-size: 14px;
}

/* 边界声明：左右两栏 */
.about-boundary .boundary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.boundary-accept,
.boundary-reject {
  padding: 20px;
  border-radius: var(--about-border-radius);
  border: 1px solid var(--about-divider);
}

.boundary-accept {
  background: rgba(34, 197, 94, 0.04);
  border-color: rgba(34, 197, 94, 0.3);
}

.boundary-reject {
  background: rgba(239, 68, 68, 0.04);
  border-color: rgba(239, 68, 68, 0.3);
}

.boundary-h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 14px 0;
}

.boundary-accept .boundary-h3 {
  color: #16a34a;
}

.boundary-reject .boundary-h3 {
  color: #dc2626;
}

.boundary-accept .about-ul,
.boundary-reject .about-ul {
  margin: 0;
  padding-left: 20px;
}

.boundary-accept .about-ul li,
.boundary-reject .about-ul li {
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--about-text-color);
}

.boundary-note {
  margin: 12px 0 0 0 !important;
  padding-top: 12px;
  border-top: 1px dashed var(--about-divider);
  font-size: 13px !important;
  color: var(--about-text-mute) !important;
  font-style: italic;
}

/* 联系邮箱 */
.about-contact {
  text-align: center;
  padding: 24px;
  background: var(--about-bg-card);
  border: 1px solid var(--about-divider);
  border-radius: var(--about-border-radius);
}

.contact-line {
  margin: 0 !important;
  font-size: 15px;
  color: var(--about-text-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.contact-email {
  font-size: 18px;
  font-weight: 600;
  color: var(--about-accent);
  text-decoration: none;
}

.contact-email:hover {
  text-decoration: underline;
}

.contact-note {
  font-size: 13px;
  color: var(--about-text-mute);
}

/* ============================================
   响应式（移动端）
   ============================================ */

@media (max-width: 640px) {
  .about-page {
    padding: 24px 16px 60px;
  }

  .about-hero-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px;
  }

  .about-meta-card {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .about-hero-avatar {
    width: 80px;
    height: 80px;
  }

  .about-h2 {
    font-size: 20px;
  }
}

/* ============================================
   暗色模式覆盖（v2026-10-13 添加，跟 contact.css 一致设计语言）
   - 保持 :root 不变（白天模式稳定）
   - 暗色用半透明色块保留语义色相
   ============================================ */
[data-theme="dark"] .about-page {
  --about-text-color: #F5F5F7;   /* 主文字：深灰 → 浅白 */
  --about-text-soft: #D1D5DB;    /* 次文字：深灰 → 浅灰 */
  --about-text-mute: #9CA3AF;    /* 弱文字：深灰 → 更浅 */
  --about-bg-card: #1D1D1F;      /* 卡片背景：白 → 深灰 */
  --about-bg-soft: #2A2A2C;      /* 软背景：浅灰 → 略亮一档深灰 */
  --about-accent-soft: #A5B4FC;  /* 强调：浅紫 → 亮紫（深底上醒目）*/
  --about-divider: #38383A;      /* 分割线：浅灰 → 暗灰 */
}


/* 边界 accept：极浅绿 → 半透明绿（暗色下能看见）*/
[data-theme="dark"] .boundary-accept {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.4);
}
[data-theme="dark"] .boundary-accept .boundary-h3 {
  color: #4ADE80;   /* 亮绿（深底上醒目）*/
}

/* 边界 reject：极浅红 → 半透明红 */
[data-theme="dark"] .boundary-reject {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
}
[data-theme="dark"] .boundary-reject .boundary-h3 {
  color: #F87171;   /* 亮红（深底上醒目）*/
}

/* 免责声明黄块：浅黄 → 半透明黄 + 亮黄文字 */
[data-theme="dark"] .about-disclaimer {
  background: rgba(234, 179, 8, 0.15);
  border-left-color: #FBBF24;
}
[data-theme="dark"] .about-disclaimer,
[data-theme="dark"] .about-disclaimer strong,
[data-theme="dark"] .about-disclaimer p {
  color: #FBBF24;   /* 亮黄文字 */
}

/* 最后的坦白 · blockquote 引用块（v2 · 2026-10-13 大军新增）*/
/* 重要声明提示框（v3 · 2026-10-14 大军重调）*/
.about-callout {
  margin: 16px 0;
  padding: 12px 16px;
  background: var(--about-bg-soft);
  border-left: 3px solid var(--about-accent);
  border-radius: 0 var(--about-border-radius) var(--about-border-radius) 0;
  color: var(--about-text-soft);
}
.about-callout strong {
  color: var(--about-accent);
}

/* 深色模式适配 */
[data-theme="dark"] .about-callout {
  background: rgba(79, 70, 229, 0.08);
}
[data-theme="dark"] .about-callout strong {
  color: var(--about-accent-soft);
}

.about-finale {
  margin: 24px auto 16px;
  padding: 18px 24px;
  max-width: 560px;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  color: var(--about-accent);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(168, 85, 247, 0.08));
  border-left: none;
  border-radius: 12px;
  letter-spacing: 0.05em;
}
.about-finale p {
  margin: 0 0 6px;
}
.about-finale footer {
  font-size: 14px;
  font-weight: 400;
  color: var(--about-text-soft);
  letter-spacing: 0.02em;
}

/* 暗色模式适配 */
[data-theme="dark"] .about-finale {
  background: linear-gradient(135deg, rgba(129, 140, 248, 0.15), rgba(192, 132, 252, 0.15));
  color: #C4B5FD;
}
[data-theme="dark"] .about-finale footer {
  color: #94A3B8;
}

/* 重要声明 callout(融合稿 v2 新增 · 2026-10-14)
   风格:左侧紫竖线(类首页 hover)+ 浅紫底 + 紫色强调
   不张扬 + 跟 about.html 其他段颜色一致 */
.about-callout {
  margin: 20px 0;
  padding: 16px 20px;
  background: rgba(79, 70, 229, 0.05);  /* about-accent 5% 透明 */
  border-left: 3px solid var(--about-accent);  /* 跟首页 .category-strip:hover 同款 */
  border-radius: 0 var(--about-border-radius) var(--about-border-radius) 0;
  text-align: left;  /* 显式左对齐 */
}
.about-callout p {
  margin: 0;
  color: var(--about-text-soft);  /* 中灰色,不张扬 */
  font-size: 15px;
  line-height: 1.7;
}
.about-callout strong {
  color: var(--about-accent);  /* 强调用主紫 */
  font-weight: 600;
}

/* 暗色模式 */
[data-theme="dark"] .about-callout {
  background: rgba(129, 140, 248, 0.08);  /* about-accent-soft 8% 透明 */
  border-left-color: var(--about-accent-soft);
}
[data-theme="dark"] .about-callout p {
  color: #CBD5E1;  /* 浅灰 */
}
[data-theme="dark"] .about-callout strong {
  color: var(--about-accent-soft);
}
