/* ============================================================
   关于页（/about）样式 2026-11-13
   电脑端：左目录 + 右内容，选中项绿色方块圈住
   手机端：左抽屉占屏 1/2，右内容虚化后移变灰
   ============================================================ */

.about-wrap {
  display: block;
  margin-top: 4px;
}

/* ---------- 手机端顶部目录按钮 ---------- */
.about-mobile-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.about-menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 14px;
  font-family: inherit;
  color: #266b43;
  background: #f2f8f4;
  border: 1px solid #d7e9de;
  border-radius: 10px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background .18s ease, transform .18s ease;
}

.about-menu-btn:active { background: #e7f2eb; transform: scale(.97); }

.about-menu-btn svg { width: 16px; height: 16px; }

.about-cur {
  font-size: 13px;
  color: #6b7280;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- 电脑端左侧目录 ---------- */
.about-nav { display: none; }

/* ---------- 右侧内容舞台 ---------- */
.about-stage {
  transition: filter .34s ease, opacity .34s ease,
              transform .46s cubic-bezier(.16, 1, .3, 1);
  will-change: transform, filter, opacity;
}

.about-panel {
  position: relative;
  min-height: 300px;
  background: #ffffff;
  border: 1px solid #eef2f1;
  border-radius: 14px;
  padding: 24px 22px;
  overflow: hidden;
}

.about-body {
  transition: opacity .26s ease, transform .34s cubic-bezier(.16, 1, .3, 1);
}

.about-body.enter {
  animation: aboutBodyIn .42s cubic-bezier(.16, 1, .3, 1) both;
}

@keyframes aboutBodyIn {
  from { opacity: 0; transform: translateY(12px) scale(.988); }
  to   { opacity: 1; transform: none; }
}

/* 加载层：原地转圈 */
.about-loading {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .74);
  z-index: 3;
}

.about-panel.loading .about-loading { display: flex; }

.about-panel.loading .about-body {
  opacity: .26;
  transform: translateY(6px) scale(.994);
}

.aspin {
  width: 30px;
  height: 30px;
  border: 3px solid #d7e9de;
  border-top-color: #2f7a4f;
  border-radius: 50%;
  animation: aspinRot .72s linear infinite;
}

@keyframes aspinRot { to { transform: rotate(360deg); } }

/* ---------- 内容排版 ---------- */
.about-body h2 {
  font-size: 19px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 6px;
  letter-spacing: -.3px;
}

.about-body .ab-lead {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px dashed #eef2f1;
}

.about-body h3 {
  font-size: 15px;
  font-weight: 600;
  color: #266b43;
  margin: 18px 0 8px;
}

.about-body p {
  font-size: 14px;
  color: #374151;
  line-height: 1.85;
  margin-bottom: 10px;
}

.about-body ul {
  list-style: none;
  margin: 0 0 10px;
}

.about-body li {
  position: relative;
  font-size: 14px;
  color: #374151;
  line-height: 1.8;
  padding-left: 16px;
  margin-bottom: 7px;
}

.about-body li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #b7d7c2;
}

.about-body strong { color: #1f2937; font-weight: 600; }

.about-body .ab-note {
  margin-top: 16px;
  padding: 12px 14px;
  font-size: 12.5px;
  color: #6b7280;
  background: #f7fbf9;
  border: 1px solid #e7f2eb;
  border-radius: 10px;
  line-height: 1.7;
}

/* ---------- 抽屉（手机端） ---------- */
.about-mask {
  position: fixed;
  top: var(--ab-drawer-top, 0px);   /* 遮罩也不越过标题栏 */
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(17, 24, 39, .34);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
  z-index: 70;
}

.about-drawer {
  position: fixed;
  top: var(--ab-drawer-top, 0px);   /* 从标题栏下方开始，不压标题 */
  left: 0;
  bottom: 0;
  width: 50vw;
  min-width: 168px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 12px;
  background: #ffffff;
  box-shadow: 8px 0 32px rgba(17, 24, 39, .16);
  transform: translateX(-104%);
  transition: transform .46s cubic-bezier(.22, 1.16, .36, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  z-index: 71;
}

.about-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  padding: 0 6px 10px;
  border-bottom: 1px solid #eef2f1;
  margin-bottom: 4px;
}

.about-drawer-close {
  border: none;
  background: transparent;
  font-size: 20px;
  line-height: 1;
  color: #9ca3af;
  cursor: pointer;
  padding: 2px 4px;
  -webkit-tap-highlight-color: transparent;
}

/* 抽屉打开：遮罩浮现 + 右侧内容虚化后移变灰 */
body.about-drawer-open .about-mask { opacity: 1; pointer-events: auto; }
body.about-drawer-open .about-drawer { transform: translateX(0); }

/* 抽屉打开时锁住背景滚动，避免遮罩下方页面跟着动 */
body.about-drawer-open { overflow: hidden; }

body.about-drawer-open .about-stage {
  filter: blur(2.6px) grayscale(.55) brightness(.96);
  opacity: .66;
  transform: translateX(18px) scale(.972);
}

/* ---------- 选项（目录项） ---------- */
.about-opt {
  display: block;
  width: 100%;
  text-align: left;
  padding: 11px 14px;
  font-size: 14.5px;
  font-family: inherit;
  color: #374151;
  background: transparent;
  border: 2px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background .18s ease, color .18s ease, border-color .18s ease,
              transform .2s cubic-bezier(.16, 1, .3, 1);
}

.about-opt:hover { background: #f6faf8; color: #266b43; }
.about-opt:active { transform: scale(.976); }

/* 选中：绿色方块圈住 */
.about-opt.active {
  color: #266b43;
  font-weight: 600;
  border-color: #2f7a4f;
  background: #f2f8f4;
  box-shadow: 0 2px 10px rgba(47, 122, 79, .10);
}

@media (min-width: 900px) {
  .about-wrap {
    display: grid;
    grid-template-columns: 232px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
  }

  .about-mobile-bar { display: none; }

  .about-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: sticky;
    top: 16px;
  }

  .about-panel { padding: 28px 30px; min-height: 380px; }
  .about-body h2 { font-size: 21px; }
  .about-panel .about-loading { border-radius: 14px; }
}

@media (max-width: 899px) {
  .about-panel { padding: 20px 18px; border-radius: 14px; min-height: 260px; }
  .about-body h2 { font-size: 18px; }
  .about-body p, .about-body li { font-size: 13.5px; line-height: 1.8; }
}

/* 手机端：标题字号随屏宽自适应，压缩顶部留白
   抽屉/遮罩的起始位置由 JS 写入 --ab-drawer-top（= 标题栏下沿），
   保证抽屉只出现在标题下方，任何屏宽下都不越界。 */
@media (max-width: 767px) {
  .container { padding-top: 0; }

  header {
    padding-top: 8px;
    padding-bottom: 8px;
    margin-bottom: 14px;
    row-gap: 4px;
  }

  header h1 {
    font-size: clamp(18px, 5.8vw, 22px);
    line-height: 1.25;
    letter-spacing: -0.2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  header .subtitle { margin-top: 0; font-size: 12px; }

  .about-mobile-bar { margin-bottom: 12px; }
  .about-opt { padding: 10px 12px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .about-stage, .about-body, .about-opt, .about-drawer, .about-mask { transition: none !important; }
  .about-body.enter { animation: none !important; }
  .aspin { animation-duration: 1.2s; }
}
