/* 灵知AI 培训系列 · 独立样式,不依赖 center.css */
:root {
  --s-bg: #F6F4F2;
  --s-surface: #FFFFFF;
  --s-ink: #222222;
  --s-soft: #696969;
  --s-line: #DFD5EA;
  --s-deep: #6B5487;
  --s-soft-bg: #EBE4F3;
  --s-warn-bg: #F3E6CF;
  --s-warn-ink: #8A6D2F;
  --s-pine: #1F5A2C;
  --s-pine-bg: #E8F0EA;
  --s-peach: #F6D9CF;
  --s-sage: #DCE8D7;
  --s-cream: #F3E6CF;
  --s-serif: "Noto Serif SC", "Songti SC", "STSong", serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--s-bg);
  color: var(--s-ink);
  font-family: -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

.series-app {
  max-width: 560px;
  margin: 0 auto;
  padding: 20px 16px 32px;
}

.series-kicker {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--s-soft);
  text-transform: uppercase;
}

.series-title {
  font-family: var(--s-serif);
  font-size: 26px;
  font-weight: 900;
  margin: 4px 0 6px;
}

.series-sub {
  font-size: 13px;
  color: var(--s-soft);
  margin: 0 0 10px;
}

.series-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--s-deep);
  background: var(--s-soft-bg);
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 14px;
}

.series-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--s-surface);
  border: 1px solid var(--s-line);
  border-radius: 12px;
  padding: 8px 12px;
}

.series-search input {
  flex: 1;
  border: 0;
  outline: 0;
  font-size: 14px;
  background: transparent;
  color: var(--s-ink);
}

.series-search button {
  display: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--s-soft);
  font-size: 14px;
}

.series-search button.is-visible { display: block; }

.series-tabs {
  display: flex;
  gap: 8px;
  margin: 14px 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.series-tabs::-webkit-scrollbar { display: none; }

.series-tab {
  flex: 1 0 auto;
  border: 1px solid var(--s-line);
  background: var(--s-surface);
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 13px;
  cursor: pointer;
  color: var(--s-ink);
  white-space: nowrap;
}

.series-tab.is-active {
  background: var(--s-ink);
  color: #fff;
  border-color: var(--s-ink);
}

.series-tab small {
  display: block;
  font-size: 11px;
  opacity: 0.65;
}

.series-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.series-card {
  background: var(--s-surface);
  border: 1px solid var(--s-line);
  border-radius: 14px;
  padding: 12px 14px;
  cursor: pointer;
  text-align: left;
  width: 100%;
  font: inherit;
  color: inherit;
}

.series-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.series-card-title {
  font-family: var(--s-serif);
  font-size: 16px;
  font-weight: 700;
}

.series-card-meta {
  font-size: 12px;
  color: var(--s-soft);
}

.series-pill {
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  padding: 3px 10px;
  background: var(--s-warn-bg);
  color: var(--s-warn-ink);
  white-space: nowrap;
}

.series-pill.is-ready {
  background: var(--s-soft-bg);
  color: var(--s-deep);
}

.series-foot {
  margin-top: 18px;
  font-size: 11px;
  color: var(--s-soft);
  line-height: 1.7;
}

.series-sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(43, 38, 32, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s;
}

.series-sheet-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.series-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0 auto;
  max-width: 560px;
  max-height: 78%;
  overflow-y: auto;
  background: var(--s-surface);
  border-radius: 20px 20px 0 0;
  padding: 10px 20px 28px;
  transform: translateY(100%);
  transition: transform 0.25s ease;
}

.series-sheet.is-open { transform: translateY(0); }

.series-sheet-pill {
  width: 40px;
  height: 4px;
  border-radius: 999px;
  background: var(--s-line);
  margin: 4px auto 14px;
}

.series-sheet h2 {
  font-family: var(--s-serif);
  font-size: 18px;
  margin: 0 0 6px;
}

.series-sheet dl {
  font-size: 13px;
  line-height: 1.8;
  margin: 12px 0;
}

.series-sheet dt {
  float: left;
  color: var(--s-soft);
  margin-right: 8px;
}

.series-sheet dd { margin: 0 0 4px; }

.series-sheet-note {
  font-size: 13px;
  background: var(--s-warn-bg);
  color: var(--s-warn-ink);
  border-radius: 10px;
  padding: 10px 12px;
  line-height: 1.7;
}

/* 品牌锁标 · 分组洗色 · 收束 */
.series-brand { display: flex; align-items: center; gap: 10px; }
.series-brand-name { font-family: var(--s-serif); font-size: 20px; font-weight: 900; }
.series-brand-rule { flex: none; width: 56px; height: 1px; background: var(--s-deep); opacity: 0.45; }
.series-brand-sub { font-size: 10px; letter-spacing: 0.18em; color: var(--s-soft); }
.series-tab.tab-camp:not(.is-active) { background: #FBEBE2; }
.series-tab.tab-lesson:not(.is-active) { background: #E9EFE4; }
.series-tab.tab-asset:not(.is-active) { background: #F6ECD9; }
.search-svg { flex: none; color: var(--s-soft); }
.series-foot-brand { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.series-foot-brand .series-brand-name { font-size: 16px; }
.series-foot-tag { font-family: var(--s-serif); font-size: 13px; color: var(--s-ink); }

.wiki-chips { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 10px; scrollbar-width: none; }
.wiki-chips::-webkit-scrollbar { display: none; }
.wiki-chip { flex: none; border: 1px solid var(--s-line); background: var(--s-surface); border-radius: 999px; padding: 6px 12px; font-size: 12px; cursor: pointer; color: inherit; font-family: inherit; }
.wiki-chip.is-active { background: var(--s-ink); color: #fff; border-color: var(--s-ink); }
