/* ============================================================
 * 关于单页样式（仅 about 模板按需加载）v7.2
 * v7.2：按用户要求——删除「二十年之约 / 站点数据」；建站历程排整页最下；
 *       故事 / 宗旨 / 联系方式改纯白背景（去掉网格底纹）；
 *       头像框、宗旨三卡、联系条目各自独立白底卡片（边框 + 阴影区分）。
 * 暗色自动适配，颜色全部走主题变量。
 * ============================================================ */

.yz-about {
  --yz-about-accent: var(--yz-primary, #000000);
  --yz-about-accent-soft: var(--yz-primary-dark, #333333);
  --yz-about-ink: var(--yz-text);
  --yz-about-muted: var(--yz-text-2);
  --yz-about-card: var(--yz-card);
  --yz-about-inner: var(--yz-card);
  --yz-about-line: var(--yz-border);
  --yz-about-soft: var(--yz-primary-bg);
  --yz-about-shadow: var(--yz-shadow);
  color: var(--yz-about-ink);
  font-size: .92rem;
  line-height: 1.75;
}
html.dark .yz-about {
  --yz-about-accent: var(--yz-primary, #000000);
  --yz-about-accent-soft: var(--yz-primary-dark, #ffffff);
  --yz-about-ink: var(--yz-text);
  --yz-about-muted: var(--yz-text-2);
  --yz-about-card: var(--yz-card);
  --yz-about-inner: var(--yz-card);
  --yz-about-line: var(--yz-border);
  --yz-about-soft: var(--yz-primary-bg);
  --yz-about-shadow: var(--yz-shadow);
}

/* 大模块卡片：纯白底、细边框、轻阴影，彼此留间距区分 */
.yz-about-card {
  position: relative;
  margin: 0 0 16px;
  padding: 20px 24px;
  border: 1px solid var(--yz-about-line);
  border-radius: var(--yz-radius-lg);
  background: var(--yz-about-card);
  box-shadow: var(--yz-about-shadow);
}
.yz-about-tip { font-size: .86rem; color: var(--yz-about-muted); }
.yz-about-tip strong { color: var(--yz-about-accent); }
.yz-about-tip pre {
  padding: .7rem .9rem; border-radius: var(--yz-radius-md);
  background: var(--yz-about-soft); color: var(--yz-about-ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .76rem; line-height: 1.65;
}

/* ---- 板块标题 ---- */
.yz-about-section-title {
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  margin: 0 0 14px; padding-bottom: 12px;
  border-bottom: 1px dashed var(--yz-about-line);
}
.yz-about-sec-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: var(--yz-radius-md);
  background: var(--yz-about-soft); font-size: 1rem;
}
.yz-about-section-title h2 {
  margin: 0; font-size: 1.06rem; font-weight: 700; color: var(--yz-about-ink);
}
.yz-about-sec-sub { font-size: .78rem; color: var(--yz-about-muted); }
.yz-about-section-body p { margin: 0 0 .85em; text-align: justify; }
.yz-about-section-body p:last-child { margin-bottom: 0; }
.yz-about-section-body a { color: var(--yz-about-accent); text-decoration: underline; }
.yz-about-section-body strong { color: var(--yz-about-ink); }
.yz-about-section-body img { max-width: 100%; height: auto; border-radius: var(--yz-radius-md); }
.yz-about .markdown-body { background: transparent !important; color: inherit; }

/* ---- 建站历程时间线（位置由短代码顺序决定） ---- */
.yz-about-history { position: relative; }
.yz-about-history::before {
  content: ''; position: absolute; left: 80px; top: 10px; bottom: 10px;
  width: 1px; background: var(--yz-about-line);
}
.yz-about-history-item {
  position: relative; display: grid; grid-template-columns: 68px minmax(0, 1fr);
  gap: 26px; align-items: baseline; padding: 6px 0;
}
.yz-about-history-dot {
  position: absolute; left: 75px; top: 14px;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--yz-about-inner); border: 2px solid var(--yz-about-accent-soft);
}
.yz-about-history:first-child .yz-about-history-dot { background: var(--yz-about-accent); }
.yz-about-history-date {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .74rem; color: var(--yz-about-accent); white-space: nowrap;
}
.yz-about-history-text { font-size: .86rem; color: var(--yz-about-ink); }

/* ============================================================
 * 故事 / 宗旨 / 联系方式：纯白底，去掉网格；内部元素独立卡片
 * ============================================================ */
.yz-about-eyebrow {
  display: block; margin-bottom: 3px;
  font-size: .66rem; font-weight: 800; letter-spacing: 2px;
  text-transform: uppercase; color: var(--yz-about-accent);
}
.yz-about-module-title {
  margin: 0 0 16px; font-size: 1.3rem; font-weight: 800; color: var(--yz-about-ink);
}

/* ---- 我们的故事：左侧头像独立卡 + 右侧正文 ---- */
.yz-about-story-grid {
  display: grid; grid-template-columns: 190px minmax(0, 1fr);
  gap: 18px; align-items: start;
}
/* v7.3：正文自身决定高度，头像框无论右侧多少行都与之垂直居中 */
.yz-about-story-body { align-self: start; }
.yz-about-story-fig {
  align-self: center;
  padding: 20px 14px; border: 1px solid var(--yz-about-line); border-radius: var(--yz-radius-lg);
  background: var(--yz-about-inner); box-shadow: var(--yz-about-shadow);
  text-align: center;
}
.yz-about-story-avatars { display: flex; align-items: center; justify-content: center; gap: 10px; }
.yz-about-story-avatars img {
  width: 64px; height: 64px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--yz-about-accent-soft); box-shadow: 0 0 0 4px var(--yz-about-card);
}
.yz-about-heart { color: #e07a91; font-size: 1.1rem; }
.yz-about-story-names { margin-top: 14px; font-size: .86rem; font-weight: 700; color: var(--yz-about-ink); }
.yz-about-story-body p { margin: 0 0 .9em; text-align: justify; }
.yz-about-story-body p:last-child { margin-bottom: 0; }

/* ---- 我们的宗旨：标语 + 三张彼此独立的白卡 ---- */
.yz-about-mission { text-align: center; }
.yz-about-mission-slogan {
  margin: 0 0 18px; font-size: 1.05rem; font-weight: 700; color: var(--yz-about-ink);
}
.yz-about-mission-slogan em { font-style: normal; color: var(--yz-primary, #000000); }
.yz-about-mission-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.yz-about-mission-item {
  padding: 18px 10px; border: 1px solid var(--yz-about-line); border-radius: var(--yz-radius-md);
  background: var(--yz-about-inner); box-shadow: var(--yz-about-shadow);
  transition: transform .2s, box-shadow .2s;
}
.yz-about-mission-item:hover { transform: translateY(-2px); }
.yz-about-mission-icon { display: block; font-size: 1.6rem; line-height: 1.4; }
.yz-about-mission-item strong { display: block; margin-top: 6px; font-size: .95rem; color: var(--yz-about-ink); }

/* ---- 联系方式：头像独立卡 + 每个条目独立白卡 ---- */
.yz-about-contact-top {
  display: grid; grid-template-columns: 190px minmax(0, 1fr);
  gap: 18px; align-items: center;
}
.yz-about-contact-figure {
  display: flex; align-items: center; justify-content: center;
  min-height: 190px; border-radius: var(--yz-radius-lg); overflow: hidden;
  background: var(--yz-about-inner);
  border: 1px solid var(--yz-about-line); box-shadow: var(--yz-about-shadow);
}
.yz-about-contact-figure img { width: 100%; height: 100%; object-fit: cover; }
.yz-about-contact-figure-icon { font-size: 3.6rem; }
.yz-about-contact-group + .yz-about-contact-group { margin-top: 16px; }
.yz-about-contact-group-head {
  display: flex; align-items: center; gap: 8px;
  margin: 0 0 9px; padding-bottom: 5px;
  border-bottom: 1px solid var(--yz-about-line);
  font-size: .78rem; color: var(--yz-about-accent);
}
.yz-about-contact-group-head strong { font-weight: 700; color: var(--yz-about-ink); }
.yz-about-contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.yz-about-contact-item {
  display: flex; align-items: center; gap: 9px; min-width: 0;
  padding: 10px 11px; border: 1px solid var(--yz-about-line); border-radius: 10px;
  background: var(--yz-about-inner); box-shadow: var(--yz-about-shadow);
  color: inherit; text-decoration: none;
  transition: border-color .2s, transform .2s;
}
a.yz-about-contact-item:hover { border-color: var(--yz-about-accent); transform: translateY(-2px); }
.yz-about-contact-icon {
  flex: 0 0 34px; width: 34px; height: 34px; border-radius: var(--yz-radius-md);
  display: grid; place-items: center; font-size: 1.05rem; background: var(--yz-about-soft);
}
.yz-about-contact-meta { min-width: 0; }
.yz-about-contact-proto,
.yz-about-contact-label,
.yz-about-contact-value { display: block; line-height: 1.45; }
.yz-about-contact-proto { font-size: .62rem; letter-spacing: .4px; color: var(--yz-about-accent); }
.yz-about-contact-label { font-size: .68rem; color: var(--yz-about-muted); }
.yz-about-contact-value { font-size: .82rem; font-weight: 700; word-break: break-all; color: var(--yz-about-ink); }

/* ---- 窄屏 ---- */
@media (max-width: 820px) {
  .yz-about-card { padding: 16px; }
  .yz-about-story-grid,
  .yz-about-contact-top { grid-template-columns: 1fr; gap: 14px; }
  .yz-about-story-fig,
  .yz-about-contact-figure { min-height: 0; padding: 16px; }
  .yz-about-contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .yz-about-mission-grid { gap: 8px; }
  .yz-about-mission-item { padding: 14px 6px; }
  .yz-about-history::before { left: 66px; }
  .yz-about-history-item { grid-template-columns: 58px minmax(0, 1fr); gap: 22px; }
  .yz-about-history-dot { left: 61px; }
}
