/* ============================================================
   内页样式：教学列表页 / 教程详情页
   ============================================================ */

/* ---------- 阅读进度条 ---------- */
.reading-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 120;
  pointer-events: none;
}

.reading-bar span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #5eead4, #4f83f7 55%, #8f7bfb);
  transition: width .1s linear;
}

/* ---------- 列表页头部 ---------- */
.page-hero {
  padding: 38px 0 30px;
  background:
    radial-gradient(760px 260px at 8% -10%, rgba(109, 92, 246, .09), transparent 70%),
    linear-gradient(180deg, #fbfbff, #ffffff);
  border-bottom: 1px solid var(--line);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--muted-2);
}

.breadcrumb a { transition: color .18s var(--ease); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span:last-child { color: var(--muted); }

.page-title {
  margin-top: 14px;
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.2;
}

.page-lead {
  margin-top: 10px;
  max-width: 620px;
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.75;
}

.page-stats {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
  font-size: 12.5px;
  color: var(--muted-2);
}

.page-stats strong { color: var(--ink); font-weight: 700; }
.stat-sep { width: 3px; height: 3px; border-radius: 50%; background: #d5d9e0; }

/* ---------- 工具栏 ---------- */
.section-tight { padding-top: 30px; padding-bottom: 0; }

.toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: 18px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

/* 工具栏右侧的分页组：页码 + 计数，推到最右 */
.toolbar-pager {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
}

.filters {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.filter {
  padding: 7px 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #f5f6f8;
  color: var(--ink-soft);
  font-size: 13px;
  cursor: pointer;
  transition: background-color .18s var(--ease), color .18s var(--ease), transform .18s var(--ease);
}

.filter:hover { background: #eceef2; }
.filter:active { transform: translateY(1px); }

.filter.is-active {
  background: var(--ink);
  color: #fff;
}

.search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 268px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--muted-2);
  background: #fff;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}

.search:focus-within {
  border-color: #c9c2ff;
  box-shadow: 0 0 0 3px rgba(109, 92, 246, .1);
}

.search svg { width: 16px; height: 16px; flex: 0 0 16px; }

.search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 13px;
  color: var(--ink);
  font-family: inherit;
}

.search input::placeholder { color: var(--muted-2); }

/* 内容类型筛选：全部 / 图文 / 视频（工具栏最左侧） */
.typetabs {
  display: flex;
  align-items: center;
  gap: 7px;
}

.tut-grid { padding-bottom: 0; }
.tut-grid .card { display: flex; flex-direction: column; }
.tut-grid .card-body { flex: 1; display: flex; flex-direction: column; }
.tut-grid .card-meta { margin-top: auto; padding-top: 12px; }
.tut-grid .card[hidden] { display: none; }

.empty-state {
  padding: 64px 0;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- 分页 ---------- */
.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 0 56px;
}

/* ============== AI资讯页：简讯区块 ============== */
.nw-flash { margin-bottom: 26px; }

.nw-flash-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.nw-flash-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.01em;
}

.nw-flash-sub {
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
}

.nw-flash-more {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  transition: color .16s var(--ease);
}

.nw-flash-more:hover { color: var(--ink); }

/* 简讯列表：日期 / 标题+摘要 / 标签 三栏 */
.nw-flash-list {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
}

.nf-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.nf-date {
  flex: 0 0 auto;
  min-width: 76px;
  padding-top: 1px;
  font-size: 12.5px;
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
}

.nf-body { flex: 1; min-width: 0; }

.nf-title {
  display: inline-block;
  margin: 0;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink);
  text-decoration: none;
  transition: color .16s var(--ease);
}

.nf-title:hover { color: var(--accent); }

.nf-summary {
  margin: 5px 0 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
}

.nf-tag {
  flex: 0 0 auto;
  align-self: center;
  font-size: 11.5px;
  color: var(--ink-soft);
  background: #f2f3f7;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 11px;
  white-space: nowrap;
}

.pager[hidden] { display: none; }

/* 放进工具栏时的内联变体：去掉底部留白与居中，改为靠右紧凑排列 */
.toolbar .pager--inline {
  padding: 0;
  justify-content: flex-end;
}

.pager-info {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted-2);
  white-space: nowrap;
}

.pager-num,
.pager-btn {
  display: grid;
  place-items: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  font-size: 13px;
  color: var(--ink-soft);
  transition: border-color .18s var(--ease), color .18s var(--ease), background-color .18s var(--ease);
}

.pager-num:hover,
.pager-btn:hover { border-color: var(--line-strong); background: #fafbfc; }

.pager-num.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.pager-btn.is-disabled {
  color: #c9ced8;
  background: #fbfbfc;
  pointer-events: none;
}

/* ---------- 新增卡片封面配色 ---------- */
.media-g { background: linear-gradient(140deg, #101b2b, #1c4b6e 58%, #2fa3c7); }
.media-h { background: linear-gradient(140deg, #1a1526, #4a2f6b 58%, #9a6bd1); }

/* ============================================================
   详情页
   ============================================================ */

.article { padding-top: 26px; }

.topic-chip {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 7px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
}

.article-title {
  margin-top: 14px;
  font-size: clamp(25px, 2.8vw, 37px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -.024em;
}

.article-lead {
  margin-top: 14px;
  max-width: 760px;
  font-size: 15px;
  line-height: 1.85;
  color: #4b5563;
}

.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  font-size: 12.5px;
  color: var(--muted-2);
}

.author {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font-weight: 500;
}

.author-avatar {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffb347, #ff6b8b 46%, #8b7bff);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.meta-dot { width: 3px; height: 3px; border-radius: 50%; background: #d5d9e0; }

.article-cover {
  position: relative;
  display: grid;
  place-items: center;
  height: 268px;
  margin: 26px 0 0;
  border-radius: 20px;
  overflow: hidden;
}

.article-cover .media-glyph {
  position: static;
  width: 214px;
  opacity: .55;
}

.article-cover figcaption {
  position: absolute;
  left: 22px;
  bottom: 16px;
  font-size: 12px;
  color: rgba(255, 255, 255, .78);
  letter-spacing: .01em;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 258px;
  gap: 44px;
  align-items: start;
  margin-top: 42px;
}

/* ---------- 正文排版 ---------- */
.article-body {
  max-width: none;
  font-size: 15.5px;
  line-height: 1.9;
  color: #374151;
}

.article-body h2 {
  margin: 38px 0 14px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.015em;
  color: var(--ink);
  scroll-margin-top: 86px;
}

.article-body > section:first-child h2 { margin-top: 0; }

.article-body h3 {
  margin: 22px 0 6px;
  font-size: 16.5px;
  font-weight: 600;
  color: var(--ink);
}

.article-body p { margin: 0 0 16px; }
.article-body p:last-child { margin-bottom: 0; }

.article-body ul,
.article-body ol {
  margin: 0 0 16px;
  padding-left: 20px;
}

/* 全局 ul 重置了 list-style，正文里要把标记还回来 */
.article-body ul { list-style: disc; }
.article-body ul ul { list-style: circle; margin-bottom: 0; }
.article-body ol { list-style: decimal; }
.article-body .check-list { list-style: none; }

.article-body li { margin: 7px 0; }
.article-body li::marker { color: #b3bac7; }

.article-body strong { color: var(--ink); font-weight: 600; }

.check-list { list-style: none; padding-left: 0 !important; }

.check-list li {
  position: relative;
  padding-left: 26px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #e9f8f4;
}

.check-list li::after {
  content: "";
  position: absolute;
  left: 3.5px;
  top: 11.5px;
  width: 7px;
  height: 4px;
  border-left: 1.6px solid #0d9488;
  border-bottom: 1.6px solid #0d9488;
  transform: rotate(-45deg);
}

.article-body code {
  padding: 1.5px 6px;
  border: 1px solid #e6e8ef;
  border-radius: 5px;
  background: #f5f6f9;
  color: #4536b8;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
}

/* callout */
.callout {
  margin: 20px 0;
  padding: 15px 18px;
  border-radius: 12px;
}

.callout p { margin: 0; font-size: 14px; line-height: 1.8; }

.callout-tag {
  display: inline-block;
  margin-bottom: 5px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .08em;
}

.callout-tip { background: #f4fbf9; border: 1px solid #d7f0e9; }
.callout-tip .callout-tag { color: #0d9488; }

.callout-warn { background: #fffaf1; border: 1px solid #fae6c6; }
.callout-warn .callout-tag { color: #b45309; }

/* 键值行 */
.kv {
  margin: 20px 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.kv-row {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 16px;
  padding: 13px 18px;
  border-top: 1px solid var(--line);
}

.kv-row:first-child { border-top: 0; }
.kv-row span { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.kv-row p { margin: 0; font-size: 14px; color: var(--ink-soft); line-height: 1.75; }

/* 步骤 */
.steps {
  list-style: none;
  margin: 20px 0;
  padding: 0 !important;
}

.steps li {
  display: flex;
  gap: 14px;
  margin: 0 0 18px;
}

.step-no {
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 700;
}

.step-body p { margin: 0; font-size: 14.5px; color: #4b5563; line-height: 1.8; }

/* 代码块 */
.code-block {
  margin: 20px 0;
  border-radius: 14px;
  background: #0f172a;
  border: 1px solid #1c2740;
  overflow: hidden;
}

.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px;
  background: #131d31;
  border-bottom: 1px solid #1c2740;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11.5px;
  color: #788aa8;
}

.code-copy {
  padding: 3px 9px;
  border: 1px solid #2b3a56;
  border-radius: 6px;
  background: transparent;
  color: #9db0cc;
  font-size: 11.5px;
  cursor: pointer;
  transition: color .16s var(--ease), border-color .16s var(--ease);
}

.code-copy:hover { color: #fff; border-color: #3f5074; }

.code-block pre {
  margin: 0;
  padding: 15px 18px;
  overflow-x: auto;
}

.code-block pre code {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: #cfe0f5;
  font-size: 12.8px;
  line-height: 1.78;
  white-space: pre;
}

/* 表格 */
.table-wrap {
  margin: 20px 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow-x: auto;
}

.table-wrap table { width: 100%; border-collapse: collapse; font-size: 14px; }

.table-wrap th {
  padding: 14px 18px;
  background: #f5f6f8;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
  text-align: left;
  white-space: nowrap;
}

.table-wrap td {
  padding: 16px 18px;
  border-top: 1px solid var(--line);
  color: #4b5563;
  line-height: 1.75;
  vertical-align: middle;
}

/* 文章内 Markdown 表格：服务端渲染为 .article-body 里的裸 <table>，不包 .table-wrap，单独兜底 */
.article-body table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
  margin: 20px 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.article-body th {
  padding: 14px 18px;
  background: #f5f6f8;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
  text-align: left;
  white-space: nowrap;
}

.article-body td {
  padding: 16px 18px;
  border-top: 1px solid var(--line);
  color: #4b5563;
  line-height: 1.75;
  vertical-align: middle;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 24px;
}

.article-tags a {
  padding: 5px 10px;
  border-radius: 7px;
  background: #f4f5f7;
  font-size: 12.5px;
  color: var(--muted);
  transition: background-color .16s var(--ease), color .16s var(--ease);
}

.article-tags a:hover { background: var(--accent-soft); color: var(--accent); }

/* ---------- 右侧目录 ---------- */
.article-aside {
  position: sticky;
  top: 86px;
}

.toc { padding-left: 20px; border-left: 1px solid var(--line); }

.toc-title {
  margin-bottom: 10px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.toc nav { display: flex; flex-direction: column; }

.toc a {
  padding: 5px 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
  transition: color .18s var(--ease);
}

.toc a:hover { color: var(--ink); }

.toc a.toc-h3 { padding-left: 12px; font-size: 12.5px; }

/* 正文内嵌视频（详情页按文章渲染） */
.article-video {
  margin: 0 0 28px;
}

.article-video .video-facade {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 0;
  border-radius: 16px;
  cursor: pointer;
  background:
    radial-gradient(120% 120% at 20% 15%, rgba(124, 92, 255, .55), transparent 60%),
    linear-gradient(135deg, #1a1e28, #221a33 60%, #2f2450);
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}

.article-video .video-facade:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.article-video .video-facade-play {
  width: 66px;
  height: 66px;
  display: block;
  transition: transform .25s var(--ease);
}

.article-video .video-facade:hover .video-facade-play { transform: scale(1.06); }

.article-video .video-facade-play svg {
  width: 100%;
  height: 100%;
  display: block;
}

.article-video .video-facade-text {
  font-size: 13px;
  color: rgba(255, 255, 255, .88);
  letter-spacing: .02em;
}

.article-video .video-frame {
  position: relative;
  padding-top: 56.25%;
  border-radius: 16px;
  overflow: hidden;
  background: #0f1319;
  box-shadow: var(--shadow-sm);
}

.article-video .video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.article-video figcaption {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--muted);
}

.article-video-link { margin: 0 0 26px; }
.toc a.is-active { color: var(--accent); font-weight: 600; }

.aside-card {
  margin-top: 24px;
  padding: 18px;
  border: 1px solid #ecebf8;
  border-radius: 14px;
  background: linear-gradient(160deg, #f8f7ff, #f2f9ff);
}

.aside-card-title { font-size: 13.5px; font-weight: 700; }

.aside-card-text {
  margin: 8px 0 14px;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--muted);
}

.btn-block { width: 100%; }

/* ---------- 上一篇 / 下一篇 ---------- */
.prevnext {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 46px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.prevnext-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}

.prevnext-item:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.prevnext-item.is-next { text-align: right; align-items: flex-end; }

.prevnext-label { font-size: 12px; color: var(--muted-2); }

.prevnext-title {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.5;
}

/* ---------- 相关教程 ---------- */
.related { margin-top: 54px; margin-bottom: 56px; }
.related .section-head { margin-bottom: 22px; }
.related-grid { padding-bottom: 0; }
.related-grid .card-meta { padding-top: 0; margin-top: 12px; }

/* ============================================================
   内页响应式
   ============================================================ */

@media (max-width: 1024px) {
  .article-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }

  .article-aside { position: static; }
  .toc { display: none; }
  .article-body { max-width: none; }
  .article-cover { height: 240px; }
  .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .page-hero { padding: 26px 0 24px; }
  .page-title { font-size: 27px; }
  .page-lead { font-size: 13.5px; }
  .page-stats { gap: 10px; font-size: 12px; }

  .section-tight { padding-top: 22px; }
  .toolbar { gap: 14px; margin-bottom: 20px; }

  .filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    width: 100%;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .filters::-webkit-scrollbar { display: none; }

  .search { width: 100%; }
  .filter { flex: 0 0 auto; font-size: 12.5px; padding: 6px 12px; }

  .typetabs {
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .typetabs::-webkit-scrollbar { display: none; }

  .pager { padding: 28px 0 44px; flex-wrap: wrap; }

  .article { padding-top: 18px; }
  .article-title { font-size: 24px; }
  .article-lead { font-size: 14px; }
  .article-cover { height: 168px; border-radius: 16px; }
  .article-cover .media-glyph { width: 120px; }
  .article-cover figcaption { left: 16px; bottom: 12px; font-size: 11.5px; }
  .article-layout { margin-top: 30px; gap: 24px; }

  .article-body { font-size: 15px; line-height: 1.85; }
  .article-body h2 { font-size: 19px; margin-top: 32px; }
  .article-body code { font-size: 12.5px; }
  .code-block pre code { font-size: 12px; }

  .kv-row { grid-template-columns: 1fr; gap: 2px; padding: 12px 15px; }
  .callout { padding: 13px 15px; }

  .prevnext { grid-template-columns: 1fr; gap: 12px; margin-top: 34px; }
  .prevnext-item.is-next { text-align: left; align-items: flex-start; }

  .related { margin-top: 40px; margin-bottom: 44px; }
  .related-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   关于我
   ============================================================ */

.about-hero {
  padding: 38px 0 44px;
  background:
    radial-gradient(720px 300px at 10% -20%, rgba(109, 92, 246, .10), transparent 70%),
    radial-gradient(620px 280px at 92% -14%, rgba(79, 195, 247, .10), transparent 70%),
    linear-gradient(180deg, #fbfbff, #ffffff);
  border-bottom: 1px solid var(--line);
}

.about-top {
  display: grid;
  grid-template-columns: 316px minmax(0, 1fr);
  gap: 46px;
  align-items: start;
  margin-top: 24px;
}

/* ---------- 左侧档案卡 ---------- */
.about-card {
  padding: 26px 22px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.about-avatar {
  width: 84px;
  height: 84px;
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 14px 28px -14px rgba(109, 92, 246, .55);
}

.about-avatar svg { display: block; width: 100%; height: 100%; }

.about-name {
  margin-top: 16px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.02em;
}

.about-role {
  margin-top: 5px;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--muted);
}

.about-tags {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 14px;
}

.about-tag {
  padding: 4px 8px;
  border-radius: 999px;
  background: #f4f2ff;
  color: #5b4bd6;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
}

.about-links {
  display: flex;
  gap: 8px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.about-link {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
  transition: background-color .18s var(--ease), border-color .18s var(--ease);
}

.about-link:hover { background: #fafbfc; border-color: var(--line-strong); }

.about-link.is-primary {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.about-link.is-primary:hover { background: #1c2430; }

/* ---------- 右侧自我介绍 ---------- */
.about-lede {
  margin-top: 14px;
  max-width: none;
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.75;
  letter-spacing: -.01em;
  color: var(--ink);
}

.about-text {
  margin-top: 13px;
  max-width: none;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--muted);
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 24px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .72);
}

.about-stat b {
  display: block;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ink);
}

.about-stat span {
  font-size: 11.5px;
  color: var(--muted);
}

/* ---------- 我在做什么 ---------- */
.about-doing {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.about-do {
  padding: 20px 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}

.about-do:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.about-do-ico {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
}

.about-do-ico svg { width: 19px; height: 19px; }

.about-do h3 { font-size: 14.5px; font-weight: 700; }
.about-do p { margin-top: 7px; font-size: 13px; line-height: 1.72; color: var(--muted); }

/* ---------- 阶段经历 ---------- */
.about-steps {
  border-top: 1px solid var(--line);
}

.about-step {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 28px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.about-step-k {
  padding-top: 2px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--accent);
}

.about-step h3 { font-size: 14.5px; font-weight: 700; }
.about-step p { margin-top: 6px; max-width: 730px; font-size: 13.5px; line-height: 1.78; color: var(--muted); }

/* ---------- 底部行动区 ---------- */
.about-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 8px;
  padding: 32px 36px;
  border-radius: var(--radius-lg);
  background: linear-gradient(118deg, #161d2c 0%, #1b2233 52%, #232b45 100%);
  color: #fff;
}

.about-cta h2 { font-size: 21px; font-weight: 700; letter-spacing: -.015em; }
.about-cta p { margin-top: 8px; font-size: 13.5px; line-height: 1.7; color: rgba(255, 255, 255, .68); }

.about-cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.about-cta .about-link {
  flex: 0 0 auto;
  height: 40px;
  padding: 0 20px;
  border-color: rgba(255, 255, 255, .22);
  color: #fff;
  font-size: 13px;
  white-space: nowrap;
}

.about-cta .about-link:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .34); }

.about-cta .about-link.is-primary {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
}

.about-cta .about-link.is-primary:hover { background: #eef0f4; }

.about-last { padding-bottom: 72px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .about-top { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .about-card { max-width: 440px; text-align: left; }
  .about-avatar { margin: 0; }
  .about-tags { display: flex; flex-wrap: wrap; justify-content: flex-start; }
  .about-doing { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .about-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}

@media (max-width: 720px) {
  .about-hero { padding: 28px 0 34px; }
  .about-top { margin-top: 18px; }
  .about-card { max-width: none; padding: 22px 18px 18px; border-radius: 16px; }
  .about-avatar { width: 72px; height: 72px; border-radius: 20px; }
  .about-lede { font-size: 15.5px; }
  .about-text { font-size: 14px; }
  .about-stats { margin-top: 20px; padding: 16px; }
  .about-stat b { font-size: 19px; }
  .about-step { grid-template-columns: minmax(0, 1fr); gap: 5px; padding: 16px 0; }
  .about-cta { padding: 24px 22px; border-radius: 16px; gap: 20px; }
  .about-cta h2 { font-size: 18px; }
  .about-cta .about-link { flex: 1; }
  .about-last { padding-bottom: 48px; }
}

/* ============================================================
   AIGC 互动课件展（aigc.html）
   ============================================================ */
.aigc-hero { padding: 34px 0 24px; border-bottom: 1px solid var(--line); }
.aigc-hero h1 { margin-top: 12px; font-size: 34px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.aigc-sub { margin-top: 10px; max-width: 760px; font-size: 15px; line-height: 1.8; color: var(--muted); }
.aigc-meta { margin-top: 14px; display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted-2); }
.aigc-meta b { color: var(--ink); font-weight: 700; }

.aigc-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 22px 0 18px; }
.aigc-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.aigc-tab {
  padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff;
  font-size: 13px; font-weight: 600; color: var(--ink-soft); cursor: pointer;
  transition: all .18s var(--ease);
}
.aigc-tab:hover { border-color: var(--line-strong); }
.aigc-tab.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.aigc-count { margin-left: auto; font-size: 13px; color: var(--muted-2); }

.aigc-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; padding-bottom: 56px;
}
.aigc-card {
  display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: #fff; box-shadow: var(--shadow-md); overflow: hidden; text-decoration: none; color: inherit;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.aigc-card:hover { transform: translateY(-4px); box-shadow: 0 18px 36px -18px rgba(60,50,120,.35); }
.aigc-cover {
  position: relative; aspect-ratio: 2 / 1; display: flex; align-items: flex-end; padding: 14px;
  color: #fff; overflow: hidden; background: #000;
}
.aigc-cover::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.04), rgba(0,0,0,.44));
}
.aigc-subject {
  position: absolute; top: 14px; left: 14px; z-index: 2; padding: 4px 10px; border-radius: 999px;
  background: rgba(255,255,255,.22); backdrop-filter: blur(4px); font-size: 12px; font-weight: 600;
}
.aigc-emoji {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -58%); z-index: 1;
  font-size: 50px; opacity: .92; filter: drop-shadow(0 6px 14px rgba(0,0,0,.25));
}
.aigc-cta { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; }
.aigc-cta .arrow {
  display: inline-flex; width: 22px; height: 22px; align-items: center; justify-content: center;
  border-radius: 50%; background: rgba(255,255,255,.92); color: #222; font-size: 12px;
}
.aigc-body { padding: 12px 14px 14px; }
.aigc-title { font-size: 15px; font-weight: 700; line-height: 1.45; color: var(--ink); letter-spacing: -.01em; }
.aigc-desc {
  margin-top: 5px; font-size: 12.5px; line-height: 1.65; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.aigc-foot {
  margin-top: 9px; padding-top: 9px; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--muted-2);
}

/* 封面背景统一为纯黑，去除彩色渐变（contain 缩放后两侧留白即黑色，与深色课件预览统一） */
.aigc-g1, .aigc-g2, .aigc-g3, .aigc-g4, .aigc-g5, .aigc-g6 { background: #000; }

@media (max-width: 980px) { .aigc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .aigc-grid { grid-template-columns: minmax(0, 1fr); }
  .aigc-hero h1 { font-size: 27px; }
  .aigc-count { margin-left: 0; width: 100%; }
}

/* ===== AIGC 详情弹窗 ===== */
body.aigc-lock { overflow: hidden; }
.aigc-modal { position: fixed; inset: 0; z-index: 1200; display: flex; align-items: center; justify-content: center; padding: 24px; }
.aigc-modal[hidden] { display: none; }
.aigc-modal-backdrop { position: absolute; inset: 0; background: rgba(22, 18, 40, .55); backdrop-filter: blur(3px); }
.aigc-modal-panel {
  position: relative; z-index: 1; width: min(860px, 100%); max-height: 90vh; overflow: auto;
  background: #fff; border-radius: 20px; box-shadow: 0 30px 80px -28px rgba(40, 30, 90, .5);
  display: grid; grid-template-columns: 300px 1fr;
}
.aigc-modal-close {
  position: absolute; top: 12px; right: 14px; z-index: 3; width: 34px; height: 34px; border-radius: 50%;
  border: none; background: rgba(255, 255, 255, .85); color: #333; font-size: 22px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.aigc-modal-close:hover { background: #fff; }
.aigc-detail-cover {
  position: relative; min-height: 260px; border-radius: 20px 0 0 20px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.aigc-detail-cover::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 80% at 30% 20%, rgba(255,255,255,.18), transparent 60%); }
.aigc-detail-emoji { font-size: 84px; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .25)); }
.aigc-detail-main { padding: 30px 30px 26px; }
.aigc-detail-subject {
  display: inline-block; font-size: 12px; font-weight: 700; color: var(--brand, #8B5CF6);
  background: rgba(139, 92, 246, .1); padding: 4px 11px; border-radius: 999px;
}
.aigc-detail-title { margin-top: 12px; font-size: 26px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); line-height: 1.3; }
.aigc-detail-desc { margin-top: 12px; font-size: 14.5px; line-height: 1.85; color: var(--muted); }
.aigc-detail-info { margin-top: 16px; display: flex; gap: 10px; flex-wrap: wrap; }
.aigc-info-pill {
  font-size: 12.5px; color: var(--muted-2); background: #f4f5f8; border: 1px solid var(--line);
  padding: 5px 12px; border-radius: 999px;
}
.aigc-detail-actions { margin-top: 22px; display: flex; gap: 12px; flex-wrap: wrap; }
.aigc-btn-primary {
  appearance: none; border: none; cursor: pointer; font-size: 15px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #FF6B8B, #8B7BFF); padding: 13px 24px; border-radius: 13px;
  box-shadow: 0 12px 26px -12px rgba(139, 92, 246, .7); transition: transform .15s ease, box-shadow .15s ease;
}
.aigc-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 32px -12px rgba(139, 92, 246, .8); }
.aigc-btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; color: var(--ink);
  background: #fff; border: 1px solid var(--line-strong); padding: 13px 22px; border-radius: 13px; text-decoration: none;
}
.aigc-btn-ghost:hover { border-color: var(--ink); }
.aigc-detail-tip { margin-top: 16px; font-size: 12.5px; line-height: 1.7; color: var(--muted-2); }

/* ===== AIGC 全屏预览弹窗 ===== */
.aigc-preview { position: fixed; inset: 0; z-index: 1300; display: flex; flex-direction: column; background: #0f1020; }
.aigc-preview[hidden] { display: none; }
.aigc-preview-bar {
  flex: 0 0 auto; height: 52px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px; background: rgba(255, 255, 255, .06); color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.aigc-preview-name { font-size: 14px; font-weight: 600; opacity: .9; }
.aigc-preview-close {
  appearance: none; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .08); color: #fff;
  font-size: 14px; font-weight: 600; padding: 8px 16px; border-radius: 10px; cursor: pointer;
}
.aigc-preview-close:hover { background: rgba(255, 255, 255, .16); }
.aigc-preview-frame { flex: 1 1 auto; width: 100%; border: 0; background: #fff; }

@media (max-width: 720px) {
  .aigc-modal-panel { grid-template-columns: 1fr; max-height: 92vh; }
  .aigc-detail-cover { border-radius: 20px 20px 0 0; min-height: 180px; }
  .aigc-detail-emoji { font-size: 64px; }
  .aigc-detail-main { padding: 22px 20px 22px; }
}

/* ===== AIGC 卡片封面：静态截图（替代实时 iframe，避免一屏 15 个重预览卡顿） ===== */
/* 截图本身为 16:9，卡片封面为 2:1；用 contain 完整显示并在两侧留黑边，与黑色底统一 */
.aigc-cover-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; background: #000;
}
.aigc-cover::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  /* 仅底部轻微压暗，保证 CTA 文字可读；上部完全透明，HTML 预览不被遮暗 */
  background: linear-gradient(180deg, rgba(0,0,0,0) 58%, rgba(0,0,0,.55) 100%);
}
.aigc-subject { z-index: 2; }
.aigc-cta { z-index: 2; }

/* ===== AIGC 详情页（独立页面，参考课程详情布局） ===== */
.detail-hero { padding: 34px 0 22px; border-bottom: 1px solid var(--line); }
.detail-hero h1 { margin-top: 12px; font-size: 32px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.detail-sub { margin-top: 10px; max-width: 880px; font-size: 15px; line-height: 1.8; color: var(--muted); }

.detail-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px;
  align-items: start; padding: 30px 0 64px;
}
.detail-preview {
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  background: #0c1024; box-shadow: var(--shadow-md);
}
.detail-preview-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 14px; background: #f6f7fa; border-bottom: 1px solid var(--line);
}
.detail-preview-name { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.detail-fs-btn {
  appearance: none; border: 1px solid var(--line-strong); background: #fff; color: var(--ink);
  font-size: 13px; font-weight: 700; padding: 7px 14px; border-radius: 10px; cursor: pointer;
  transition: border-color .15s ease;
}
.detail-fs-btn:hover { border-color: var(--ink); }
.detail-iframe-wrap {
  position: relative; container-type: inline-size; aspect-ratio: 16 / 10;
  background: #fff; overflow: hidden;
}
.detail-iframe {
  position: absolute; top: 0; left: 0; width: 1280px; height: 800px; border: 0;
  background: #fff; transform-origin: top left; transform: scale(0.4); pointer-events: none;
}

.detail-info {
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff;
  box-shadow: var(--shadow-md); padding: 22px 22px 24px; position: sticky; top: 20px;
}
.detail-subject {
  display: inline-block; font-size: 12px; font-weight: 700; color: #8B5CF6;
  background: rgba(139, 92, 246, .1); padding: 4px 11px; border-radius: 999px;
}
.detail-info-title { margin-top: 14px; font-size: 17px; font-weight: 800; color: var(--ink); }
.detail-pills { margin-top: 12px; display: flex; gap: 10px; flex-wrap: wrap; }
.detail-pills span {
  font-size: 12.5px; color: var(--muted-2); background: #f4f5f8; border: 1px solid var(--line);
  padding: 5px 12px; border-radius: 999px;
}
.detail-note { margin-top: 14px; font-size: 13.5px; line-height: 1.8; color: var(--muted); }
.detail-actions { margin-top: 20px; display: flex; gap: 12px; flex-wrap: wrap; }
.detail-tip { margin-top: 16px; font-size: 12.5px; line-height: 1.7; color: var(--muted-2); }

@media (max-width: 980px) {
  .detail-layout { grid-template-columns: minmax(0, 1fr); }
  .detail-info { position: static; }
}
@media (max-width: 600px) {
  .detail-hero h1 { font-size: 25px; }
}
