:root {
  --bg-top: #eef5ff;
  --bg-bottom: #fff4ea;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-strong: rgba(255, 255, 255, 0.98);
  --line: rgba(84, 102, 132, 0.12);
  --text: #172033;
  --muted: #72809a;
  --blue: #2f80ed;
  --blue-deep: #1256c8;
  --orange: #ff9752;
  --orange-deep: #dc6e31;
  --green: #2bc48a;
  --purple: #6c63ff;
  --shadow-lg: 0 24px 60px rgba(34, 58, 95, 0.14);
  --shadow-md: 0 16px 36px rgba(34, 58, 95, 0.1);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(47, 128, 237, 0.12), transparent 28%),
    radial-gradient(circle at bottom right, rgba(255, 151, 82, 0.14), transparent 32%),
    linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.app-shell {
  width: min(1180px, calc(100% - 24px));
  margin: 0 auto;
  padding: 20px 0 116px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.topbar-brand {
  min-width: 0;
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}

.topbar-kicker {
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--muted);
}

.topbar-title {
  font-size: 28px;
  font-weight: 700;
}

.topbar-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.topbar-menu-toggle {
  display: none;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--blue);
  border: 1px solid rgba(47, 128, 237, 0.14);
}

.topbar-links a,
.site-footer a,
.content-nav a,
.article-list a,
.cta-link {
  color: var(--blue);
  text-decoration: none;
}

.topbar-links a:hover,
.site-footer a:hover,
.content-nav a:hover,
.article-list a:hover,
.cta-link:hover {
  text-decoration: underline;
}

.page-host {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.card {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-xl);
}

.hero-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 18px;
  padding: 30px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.28), transparent 24%),
    radial-gradient(circle at bottom right, rgba(255, 214, 171, 0.22), transparent 30%),
    linear-gradient(145deg, #6aaeff 0%, #2f80ed 42%, #53b7f4 70%, #ffa765 100%);
  box-shadow: 0 30px 70px rgba(41, 90, 172, 0.24);
  color: #fff;
}

.hero-copy,
.hero-media,
.hero-stats {
  position: relative;
  z-index: 1;
}

.hero-copy {
  display: flex;
  flex-direction: column;
}

.hero-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hero-label {
  font-size: 12px;
  letter-spacing: 0.24em;
  color: rgba(255, 255, 255, 0.82);
}

.hero-pill {
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 13px;
  font-weight: 600;
}

.hero-title {
  margin-top: 22px;
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.15;
  font-weight: 800;
}

.hero-sub {
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.9);
  max-width: 540px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.btn-primary,
.btn-secondary,
.btn-light,
.btn-ghost,
.btn-plain {
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-light:hover,
.btn-ghost:hover,
.btn-plain:hover,
.nav-item:hover,
.chip:hover,
.question-card:hover,
.action-card:hover,
.insight-card:hover,
.bank-card:hover,
.wrong-card:hover,
.review-card:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue-deep), var(--blue));
  box-shadow: 0 14px 28px rgba(47, 128, 237, 0.24);
}

.btn-secondary {
  color: var(--blue-deep);
  background: linear-gradient(135deg, #ffffff, #fff3df);
  box-shadow: 0 14px 28px rgba(27, 60, 121, 0.14);
}

.btn-light {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.btn-ghost {
  background: rgba(47, 128, 237, 0.1);
  color: var(--blue);
}

.btn-plain {
  background: rgba(255, 255, 255, 0.85);
  color: var(--text);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.hero-stat-card {
  padding: 18px 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.hero-stat-card.warm {
  background: rgba(255, 243, 230, 0.2);
}

.hero-stat-num {
  display: block;
  font-size: 32px;
  font-weight: 700;
}

.hero-stat-label {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
}

.hero-media {
  align-self: stretch;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero-photo {
  width: min(100%, 360px);
  height: 100%;
  min-height: 280px;
  border-radius: 28px;
  object-fit: cover;
  object-position: center;
  box-shadow: 0 24px 44px rgba(23, 57, 114, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.section-grid,
.bank-grid,
.stats-grid,
.mine-grid,
.action-grid {
  display: grid;
  gap: 18px;
}

.action-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.action-card {
  padding: 24px;
  border-radius: var(--radius-xl);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.action-card.blue {
  background: linear-gradient(135deg, #5fbbff, #2f80ed);
}

.action-card.orange {
  background: linear-gradient(135deg, #ffb26b, #ff7b57);
}

.action-card.cyan {
  background: linear-gradient(135deg, #89daff, #49a8f8);
}

.action-kicker,
.panel-kicker,
.list-kicker,
.quiz-kicker,
.result-kicker,
.mine-kicker {
  font-size: 12px;
  letter-spacing: 0.18em;
  color: inherit;
  opacity: 0.78;
}

.action-title,
.panel-title,
.result-title,
.mine-title,
.section-title {
  margin-top: 10px;
  font-size: 28px;
  font-weight: 700;
}

.action-desc,
.insight-text,
.panel-desc,
.support-copy,
.empty-desc,
.quiz-explain,
.result-desc,
.mine-desc,
.muted {
  line-height: 1.7;
  color: var(--muted);
}

.action-desc {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.86);
}

.action-meta {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.action-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  height: 64px;
  padding: 0 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 28px;
  font-weight: 700;
}

.action-link {
  font-weight: 600;
}

.section-grid {
  grid-template-columns: 1.1fr 0.9fr;
}

.recommendation-panel {
  overflow: hidden;
}

.recommendation-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 18px;
}

.recommendation-main {
  display: flex;
  flex-direction: column;
}

.recommendation-side {
  display: grid;
  gap: 12px;
}

.recommendation-signals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.signal-chip {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 255, 0.95));
}

.signal-chip.blue {
  background: linear-gradient(180deg, rgba(243, 248, 255, 0.98), rgba(232, 241, 255, 0.92));
}

.signal-chip.orange {
  background: linear-gradient(180deg, rgba(255, 248, 242, 0.98), rgba(255, 238, 225, 0.92));
}

.signal-chip.green {
  background: linear-gradient(180deg, rgba(244, 252, 247, 0.98), rgba(233, 247, 238, 0.92));
}

.signal-value {
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
}

.signal-label {
  font-size: 13px;
  color: var(--muted);
}

.recommendation-actions {
  margin-top: 20px;
}

.route-card {
  padding: 18px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 255, 0.94));
}

.route-card-title,
.topic-title {
  font-size: 20px;
  font-weight: 700;
}

.route-card-desc,
.topic-desc {
  margin-top: 8px;
  line-height: 1.7;
  color: var(--muted);
}

.route-card-action {
  margin-top: 14px;
}

.section-card,
.library-panel,
.quiz-panel,
.result-panel,
.mine-panel,
.support-card {
  padding: 26px;
}

.insight-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.insight-card {
  padding: 22px;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 251, 255, 0.94));
}

.insight-card.highlight {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(255, 246, 239, 0.95));
}

.insight-title {
  font-size: 22px;
  font-weight: 700;
}

.insight-action {
  margin-top: 14px;
  color: var(--blue);
  font-weight: 600;
}

.countdown-stat {
  margin-top: 12px;
  font-size: 30px;
  font-weight: 800;
  color: var(--blue-deep);
}

.countdown-sub {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}

.countdown-form {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.bank-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bank-card {
  padding: 22px;
  border-radius: 28px;
  border: 1px solid var(--line);
}

.bank-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bank-badge {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
}

.bank-chip,
.tag,
.chip,
.inline-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  line-height: 1;
}

.bank-chip {
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
}

.bank-name {
  margin-top: 18px;
  font-size: 22px;
  font-weight: 700;
}

.bank-entry {
  margin-top: 10px;
  font-weight: 600;
}

.support-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.support-copy {
  margin-top: 10px;
}

.filters-grid {
  display: grid;
  gap: 18px;
}

.filter-block {
  padding: 20px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.96), rgba(255, 255, 255, 0.98));
  border: 1px solid rgba(110, 145, 199, 0.1);
}

.filter-head,
.list-head,
.panel-head,
.result-actions,
.mine-actions,
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.filter-title,
.list-title,
.quiz-question,
.result-score,
.mine-metric-value {
  font-weight: 700;
}

.filter-title,
.list-title {
  font-size: 18px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.chip {
  background: #fff;
  color: #4d5b75;
  border: 1px solid rgba(92, 110, 140, 0.1);
  box-shadow: 0 8px 18px rgba(37, 55, 88, 0.04);
}

.chip.active {
  background: rgba(47, 128, 237, 0.12);
  color: var(--blue);
  border-color: rgba(47, 128, 237, 0.14);
}

.search-row,
.select-row {
  display: grid;
  gap: 12px;
}

.search-row {
  grid-template-columns: minmax(0, 1fr) 160px;
}

.select-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field,
.select {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  border-radius: 18px;
  border: 1px solid rgba(104, 129, 166, 0.12);
  background: rgba(255, 255, 255, 0.96);
}

.summary-card,
.focus-card,
.question-card,
.wrong-card,
.review-card,
.result-callout {
  padding: 22px;
  border-radius: 26px;
}

.summary-card {
  background: linear-gradient(135deg, rgba(17, 61, 139, 0.96), rgba(48, 128, 232, 0.94), rgba(255, 155, 87, 0.9));
  color: #fff;
  box-shadow: 0 24px 36px rgba(29, 78, 168, 0.18);
}

.summary-copy {
  margin-top: 10px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.84);
}

.focus-card {
  background: linear-gradient(135deg, rgba(18, 57, 126, 0.98), rgba(47, 128, 237, 0.94), rgba(255, 163, 98, 0.92));
  color: #fff;
  box-shadow: 0 24px 40px rgba(28, 77, 162, 0.2);
}

.focus-desc {
  margin-top: 12px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
}

.focus-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.question-list {
  display: grid;
  gap: 14px;
}

.question-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.94));
}

.question-top,
.question-meta,
.option-row,
.quiz-top,
.quiz-footer,
.result-meta,
.wrong-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.question-top,
.quiz-top,
.wrong-top {
  margin-bottom: 14px;
}

.question-index,
.inline-chip,
.result-grade {
  color: var(--muted);
}

.tag.blue,
.inline-chip.blue {
  background: rgba(47, 128, 237, 0.12);
  color: var(--blue);
}

.tag.green,
.inline-chip.green {
  background: rgba(43, 196, 138, 0.14);
  color: #1b9f6c;
}

.tag.orange,
.inline-chip.orange {
  background: rgba(255, 159, 10, 0.14);
  color: #ff9f0a;
}

.tag.gray,
.inline-chip.gray {
  background: rgba(110, 127, 154, 0.12);
  color: var(--muted);
}

.tag-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.question-title,
.quiz-question {
  font-size: 22px;
  line-height: 1.7;
}

.question-title {
  margin-bottom: 16px;
}

.option-list,
.wrong-option-list {
  display: grid;
  gap: 10px;
}

.option-row {
  justify-content: flex-start;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(247, 250, 255, 0.96);
  color: #5b677d;
}

.option-badge {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--blue);
  background: rgba(47, 128, 237, 0.12);
}

.quiz-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 18px;
}

.quiz-stage {
  padding: 22px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(17, 61, 139, 0.96), rgba(48, 128, 232, 0.94), rgba(255, 155, 87, 0.9));
  color: #fff;
}

.progress-track {
  width: 100%;
  height: 10px;
  margin-top: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #fff6dd, #ffffff);
}

.quiz-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.96));
}

.quiz-options {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.mode-tip {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.7;
}

.quiz-option {
  width: 100%;
  padding: 16px 18px;
  border-radius: 18px;
  text-align: left;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: rgba(247, 250, 255, 0.96);
  color: var(--text);
  border: 1px solid transparent;
}

.quiz-option.correct {
  background: rgba(43, 196, 138, 0.12);
  border-color: rgba(43, 196, 138, 0.18);
}

.quiz-option.wrong {
  background: rgba(255, 151, 82, 0.12);
  border-color: rgba(255, 151, 82, 0.18);
}

.quiz-option.selected {
  border-color: rgba(47, 128, 237, 0.18);
}

.quiz-explain {
  margin-top: 16px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 248, 241, 0.92);
  white-space: pre-wrap;
}

.quiz-actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.quiz-actions button[disabled] {
  opacity: 0.52;
  cursor: not-allowed;
  transform: none;
}

.result-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.96));
}

.result-score {
  font-size: clamp(46px, 7vw, 72px);
  color: var(--blue-deep);
}

.result-grade {
  font-size: 16px;
  margin-top: 10px;
}

.result-callout {
  margin-top: 18px;
  background: linear-gradient(135deg, rgba(116, 191, 255, 0.12), rgba(255, 182, 105, 0.12));
}

.review-list,
.mine-list,
.wrong-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.review-card,
.wrong-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
}

.stats-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mine-grid {
  grid-template-columns: 1.2fr 0.8fr;
}

.mine-metric {
  padding: 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
}

.mine-metric-value {
  font-size: 34px;
}

.mine-metric-label {
  margin-top: 8px;
  color: var(--muted);
}

.mine-stat-action {
  margin-top: 16px;
}

.empty-card {
  padding: 28px;
  text-align: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(249, 251, 255, 0.94));
}

.highlight {
  background: rgba(255, 214, 10, 0.26);
  border-radius: 6px;
  padding: 0 2px;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  width: min(680px, calc(100% - 24px));
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 10px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.88);
  box-shadow: 0 20px 44px rgba(68, 89, 135, 0.18);
  z-index: 10;
}

.nav-item {
  min-height: 52px;
  border-radius: 20px;
  background: transparent;
  color: #55657f;
}

.nav-item-active {
  color: var(--blue);
  background: rgba(47, 128, 237, 0.1);
}

.nav-label {
  font-size: 15px;
  font-weight: 600;
}

.site-footer {
  margin-top: 18px;
  padding: 22px 24px;
}

.site-footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 18px;
  align-items: start;
}

.site-footer-title {
  font-size: 18px;
  font-weight: 700;
}

.site-footer-copy {
  margin-top: 8px;
  line-height: 1.6;
  font-size: 14px;
  color: var(--muted);
}

.site-footer-head {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
}

.site-footer a {
  display: block;
  margin-top: 6px;
  font-size: 14px;
}

.site-footer-brand {
  max-width: 340px;
}

.content-shell {
  width: min(1080px, calc(100% - 24px));
  margin: 0 auto;
  padding: 24px 0 64px;
}

.content-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.content-kicker {
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--muted);
}

.content-title {
  margin-top: 8px;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
}

.content-sub {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.8;
}

.content-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.content-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(47, 128, 237, 0.08);
}

.article-hero,
.article-card,
.article-sidebar,
.content-footer {
  padding: 26px;
  border-radius: var(--radius-xl);
  background: var(--surface-strong);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

.article-hero {
  background: linear-gradient(145deg, rgba(255,255,255,0.98), rgba(247,251,255,0.96));
}

.article-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 18px;
  margin-top: 18px;
}

.article-card h2,
.article-card h3,
.article-sidebar h3,
.content-footer h3 {
  margin: 0 0 14px;
  font-size: 22px;
}

.article-card p,
.article-card li,
.article-sidebar p,
.article-sidebar li,
.content-footer p,
.content-footer li {
  color: var(--muted);
  line-height: 1.8;
}

.article-card ul,
.article-card ol,
.article-sidebar ul,
.content-footer ul {
  margin: 0;
  padding-left: 20px;
}

.article-stack {
  display: grid;
  gap: 18px;
}

.article-list {
  display: grid;
  gap: 10px;
}

.topics-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.topics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.topic-card {
  padding: 24px;
  border-radius: 28px;
  border: 1px solid rgba(110, 145, 199, 0.12);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 255, 0.94));
}

.topic-kicker {
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--blue);
}

.topic-link-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.topic-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(110, 145, 199, 0.1);
}

.topic-link-arrow {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.wrong-book-head {
  align-items: flex-start;
}

.bank-library-head {
  align-items: flex-start;
}

.wrong-book-head > div {
  min-width: 0;
}

.bank-library-head > div {
  min-width: 0;
}

.wrong-book-head .panel-title,
.wrong-book-head .btn-ghost {
  white-space: nowrap;
}

.wrong-book-head .btn-ghost {
  min-height: 42px;
  min-width: 64px;
  padding: 0 18px;
  flex: 0 0 auto;
  border-radius: 16px;
}

.bank-library-head .panel-title,
.bank-library-head .btn-ghost {
  white-space: nowrap;
}

.article-list a {
  display: block;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(247, 250, 255, 0.96);
  border: 1px solid rgba(110, 145, 199, 0.1);
}

.article-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(47, 128, 237, 0.1);
  color: var(--blue);
}

.info-table {
  width: 100%;
  border-collapse: collapse;
}

.info-table th,
.info-table td {
  text-align: left;
  padding: 14px 0;
  border-bottom: 1px solid rgba(110, 145, 199, 0.1);
  vertical-align: top;
}

.form-grid {
  display: grid;
  gap: 16px;
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-label {
  font-size: 14px;
  font-weight: 600;
}

.input-control,
.textarea-control {
  width: 100%;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(110, 145, 199, 0.16);
  background: rgba(248, 251, 255, 0.96);
  color: var(--text);
  outline: none;
}

.input-control:focus,
.textarea-control:focus {
  border-color: rgba(47, 128, 237, 0.38);
  box-shadow: 0 0 0 4px rgba(47, 128, 237, 0.08);
}

.textarea-control {
  min-height: 160px;
  resize: vertical;
}

.form-help {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

.form-submit-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

@media (max-width: 960px) {
  .app-shell {
    width: calc(100% - 24px);
  }

  .hero-card,
  .recommendation-layout,
  .section-grid,
  .mine-grid,
  .quiz-layout,
  .action-grid,
  .bank-grid,
  .stats-grid,
  .topics-grid,
  .search-row,
  .select-row,
  .site-footer-grid,
  .article-grid {
    grid-template-columns: 1fr;
  }

  .hero-photo {
    min-height: 220px;
  }

  .hero-stats,
  .recommendation-signals {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .topbar {
    align-items: center;
    flex-direction: row;
  }

  .topbar-brand {
    flex: 1;
  }

  .topbar-nav {
    position: relative;
    display: block;
    flex: 0 0 auto;
  }

  .topbar-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .topbar-links {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 12;
    min-width: 148px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(47, 128, 237, 0.1);
    box-shadow: 0 18px 40px rgba(34, 58, 95, 0.16);
  }

  .topbar-nav.open .topbar-links {
    display: flex;
  }

  .topbar-links a {
    display: block;
    padding: 12px 14px;
    border-radius: 14px;
    text-decoration: none;
  }

  .topbar-links a:hover {
    text-decoration: none;
    background: rgba(47, 128, 237, 0.08);
  }

  .content-header {
    flex-direction: column;
  }

  .hero-card,
  .section-card,
  .library-panel,
  .quiz-panel,
  .result-panel,
  .mine-panel,
  .support-card,
  .action-card,
  .bank-card,
  .summary-card,
  .focus-card,
  .question-card,
  .wrong-card,
  .review-card,
  .result-callout {
    border-radius: 24px;
  }

  .recommendation-signals,
  .hero-stats,
  .site-footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-card {
    padding: 22px;
  }

  .site-footer {
    padding: 18px 18px 20px;
    border-radius: 24px;
  }

  .site-footer-grid {
    gap: 14px 12px;
  }

  .wrong-book-head {
    align-items: center;
    gap: 14px;
  }

  .bank-library-head {
    align-items: center;
    gap: 10px;
  }

  .wrong-book-head .panel-title {
    margin-top: 6px;
    font-size: 22px;
  }

  .bank-library-head .panel-title {
    margin-top: 6px;
    font-size: 22px;
  }

  .wrong-book-head .btn-ghost {
    min-height: 42px;
    min-width: 64px;
    padding: 0 18px;
    flex: 0 0 auto;
    border-radius: 16px;
  }

  .bank-library-head .btn-ghost {
    min-height: 40px;
    padding: 0 14px;
    flex: 0 0 auto;
  }

  .site-footer-brand {
    grid-column: 1 / -1;
    max-width: none;
  }

  .site-footer-title {
    font-size: 17px;
  }

  .site-footer-copy {
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.55;
  }

  .site-footer-head {
    margin-bottom: 6px;
    font-size: 13px;
  }

  .site-footer a {
    margin-top: 4px;
    font-size: 13px;
  }

  .hero-title {
    font-size: 30px;
  }

  .hero-sub,
  .action-desc,
  .support-copy,
  .focus-desc,
  .quiz-explain,
  .empty-desc,
  .result-desc,
  .mine-desc {
    font-size: 14px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .focus-actions,
  .quiz-actions,
  .result-actions,
  .mine-actions {
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary,
  .btn-light,
  .btn-ghost,
  .btn-plain {
    width: 100%;
  }

  .wrong-book-head .btn-ghost,
  .bank-library-head .btn-ghost {
    width: auto;
    min-width: 0;
    align-self: center;
    justify-content: center;
  }

  .wrong-book-head .btn-ghost {
    min-width: 64px;
    padding: 0 18px;
    border-radius: 16px;
  }

  .bottom-nav {
    bottom: 12px;
    padding: 8px;
    gap: 8px;
  }

  .nav-item {
    min-height: 48px;
  }
}