/* ========================================
   广州人社局招聘资讯网 — 政务风格样式
   ======================================== */

:root {
  --primary: #1a5fb4;
  --primary-dark: #0d47a1;
  --primary-light: #e8f0fe;
  --accent: #c62828;
  --text: #333333;
  --text-light: #666666;
  --text-muted: #999999;
  --border: #d9e2ef;
  --bg: #f5f7fa;
  --white: #ffffff;
  --header-height: 120px;
  --max-width: 1200px;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
}

/* ---------- 顶部栏 ---------- */
.site-header {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: var(--white);
  box-shadow: var(--shadow);
}

.header-top {
  background: rgba(0, 0, 0, 0.15);
  padding: 6px 0;
  font-size: 0.85rem;
}

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

.header-top a {
  color: rgba(255, 255, 255, 0.9);
}

.header-top a:hover {
  color: var(--white);
}

.header-main {
  padding: 20px 0;
}

.header-main .container {
  display: flex;
  align-items: center;
  gap: 20px;
}

.site-title h1 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 4px;
}

.site-title p {
  font-size: 0.9rem;
  opacity: 0.85;
}

/* ---------- 主导航 ---------- */
.main-nav {
  background: var(--primary-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.main-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  margin: 8px 0;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.92rem;
  line-height: 1;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  outline: none;
}

.nav-toggle-bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

.main-nav.is-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.main-nav.is-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.main-nav.is-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-list {
  display: flex;
  list-style: none;
  flex: 1;
}

.nav-list li a {
  display: block;
  padding: 14px 32px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  font-weight: 500;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
}

.nav-list li a:hover,
.nav-list li a.active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-bottom-color: #ffd54f;
}

/* ---------- 容器 ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  font-size: 0.875rem;
  color: var(--text-light);
}

.breadcrumb a {
  color: var(--text-light);
}

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb .separator {
  margin: 0 8px;
  color: var(--text-muted);
}

/* ---------- 主内容区 ---------- */
.main-content {
  flex: 1;
  padding: 24px 0 40px;
}

.page-layout {
  display: block;
  width: 100%;
}

.content-area {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  box-shadow: var(--shadow);
  overflow: hidden;
  width: 100%;
}

/* ---------- 板块标题 ---------- */
.section-header {
  padding: 16px 24px;
  border-bottom: 2px solid var(--primary);
  background: linear-gradient(to right, var(--primary-light), var(--white));
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-header h2 {
  font-size: 1.25rem;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-header h2::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 20px;
  background: var(--primary);
  border-radius: 2px;
}

/* ---------- 搜索栏 ---------- */
.search-bar {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 12px;
}

.search-bar input {
  flex: 1;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.9rem;
  outline: none;
}

.search-bar input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(26, 95, 180, 0.15);
}

.search-bar button {
  padding: 8px 24px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.search-bar button:hover {
  background: var(--primary-dark);
}

/* ---------- 文章列表 ---------- */
.article-list {
  list-style: none;
}

.article-item {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: background 0.15s;
}

.article-item:last-child {
  border-bottom: none;
}

.article-item:hover {
  background: var(--primary-light);
}

.article-item .date {
  flex-shrink: 0;
  width: 90px;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding-top: 2px;
}

.article-item .info {
  flex: 1;
  min-width: 0;
}

.article-item .title {
  font-size: 1rem;
  color: var(--text);
  display: block;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.article-item .title:hover {
  color: var(--primary);
}

.article-item .summary {
  font-size: 0.85rem;
  color: var(--text-light);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.article-item .badge-top {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  font-size: 0.75rem;
  padding: 1px 6px;
  border-radius: 2px;
  margin-right: 6px;
  vertical-align: middle;
}

/* ---------- 分页 ---------- */
.pagination {
  padding: 20px 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--border);
}

.pagination button,
.pagination span {
  padding: 6px 14px;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 4px;
  font-size: 0.875rem;
  cursor: pointer;
  color: var(--text);
}

.pagination button:hover:not(:disabled) {
  border-color: var(--primary);
  color: var(--primary);
}

.pagination button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination .current {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* ---------- 详情页 ---------- */
.article-detail {
  padding: 32px 40px;
}

.article-detail .detail-title {
  font-size: 1.5rem;
  color: var(--text);
  text-align: center;
  margin-bottom: 16px;
  line-height: 1.4;
}

.article-detail .detail-meta {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.article-detail .detail-meta span {
  margin: 0 12px;
}

.article-detail .detail-content {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text);
}

.article-detail .detail-content p {
  margin-bottom: 16px;
}

/* ---------- 最新动态 · 网页公告样式 ---------- */
.site-notice {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 8px 12px;
}

.site-notice-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  margin-bottom: 28px;
  background: linear-gradient(90deg, #8b1a1a 0%, #c62828 45%, #8b1a1a 100%);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.55em;
  text-indent: 0.55em;
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(139, 26, 26, 0.25);
}

.site-notice-header {
  text-align: center;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e5e9ef;
}

.site-notice-type {
  margin: 0 0 10px;
  font-size: 0.9rem;
  color: #c62828;
  letter-spacing: 0.2em;
}

.site-notice-title {
  margin: 0 0 14px;
  font-size: 1.55rem;
  font-weight: 700;
  color: #1f2a37;
  letter-spacing: 0.12em;
  line-height: 1.4;
}

.site-notice-meta {
  font-size: 0.88rem;
  color: var(--text-muted, #7a8694);
}

.site-notice-meta span {
  margin: 0 10px;
}

.site-notice-body {
  font-size: 1.05rem;
  line-height: 2;
  color: #2c3a4a;
  text-align: justify;
  padding: 8px 4px 24px;
}

.site-notice-body .notice-salute {
  margin: 0 0 18px;
  font-weight: 600;
  text-indent: 0;
}

.site-notice-body .notice-para {
  margin: 0 0 16px;
  text-indent: 2em;
}

.site-notice-footer {
  margin-top: 12px;
  padding-top: 18px;
  border-top: 1px dashed #d5dde8;
  text-align: right;
  color: #5a6a7a;
  font-size: 0.95rem;
  line-height: 1.8;
}

.site-notice-footer p {
  margin: 0;
}

@media (max-width: 768px) {
  .site-notice-title {
    font-size: 1.3rem;
    letter-spacing: 0.06em;
  }

  .site-notice-meta span {
    display: block;
    margin: 4px 0;
  }
}

/* ---------- 侧边栏组件 ---------- */
.side-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.side-box .side-title {
  padding: 12px 16px;
  background: var(--primary);
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 600;
}

.side-box .side-body {
  padding: 12px 16px;
}

.side-links {
  list-style: none;
}

.side-links li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
}

.side-links li:last-child {
  border-bottom: none;
}

.side-links a {
  font-size: 0.9rem;
  color: var(--text);
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-links a:hover {
  color: var(--primary);
}

.side-links a::before {
  content: "▸ ";
  color: var(--primary);
}

/* ---------- 首页板块卡片 ---------- */
.home-banner {
  background: linear-gradient(135deg, var(--primary) 0%, #1565c0 100%);
  color: var(--white);
  padding: 48px 0;
  text-align: center;
  margin-bottom: 32px;
}

.home-banner h2 {
  font-size: 1.75rem;
  margin-bottom: 12px;
}

.home-banner p {
  font-size: 1rem;
  opacity: 0.9;
}

.section-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.section-cards.section-cards-4 {
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 1100px) {
  .section-cards.section-cards-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.section-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.section-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.section-card .card-header {
  padding: 20px;
  text-align: center;
  color: var(--white);
}

.section-card.written .card-header { background: #1565c0; }
.section-card.interview .card-header { background: #2e7d32; }
.section-card.announcements .card-header { background: #c62828; }
.section-card.profile .card-header { background: #455a64; }

.section-card .card-icon {
  font-size: 2.5rem;
  margin-bottom: 8px;
}

.section-card .card-header h3 {
  font-size: 1.15rem;
}

.section-card .card-body {
  padding: 20px;
}

.section-card .card-body p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 16px;
  min-height: 60px;
}

.section-card .card-body .btn-enter {
  display: block;
  text-align: center;
  padding: 10px;
  border-radius: 4px;
  font-weight: 500;
  transition: all 0.2s;
  color: var(--white);
}

.section-card.written .card-body .btn-enter {
  background: #0d47a1;
}

.section-card.interview .card-body .btn-enter {
  background: #1b5e20;
}

.section-card.announcements .card-body .btn-enter {
  background: #b71c1c;
}

.section-card.profile .card-body .btn-enter {
  background: #37474f;
}

.section-card.written .card-body .btn-enter:hover {
  background: #08306b;
}

.section-card.interview .card-body .btn-enter:hover {
  background: #0d3d12;
}

.section-card.announcements .card-body .btn-enter:hover {
  background: #8e0000;
}

.section-card.profile .card-body .btn-enter:hover {
  background: #263238;
}

/* ---------- 最新动态 ---------- */
.latest-news {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  box-shadow: var(--shadow);
}

/* ---------- 页脚 ---------- */
.site-footer {
  background: #2c3e50;
  color: rgba(255, 255, 255, 0.8);
  padding: 32px 0 20px;
  margin-top: auto;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.footer-info h4 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--white);
}

.footer-info p {
  font-size: 0.85rem;
  line-height: 1.8;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 16px;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom .beian-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 16px;
  margin-top: 10px;
}

.footer-bottom .beian-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  line-height: 1.4;
}

.footer-bottom .beian-link:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-bottom .beian-icon {
  width: 16px;
  height: 16px;
  display: block;
  flex-shrink: 0;
}

/* ---------- 消息红点 ---------- */
.msg-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.1em;
  height: 1.1em;
  margin-left: 4px;
  padding: 0 4px;
  border-radius: 8px;
  background: #e53935;
  color: #fff !important;
  font-size: 0.72em;
  font-weight: 700;
  line-height: 1;
  vertical-align: super;
}

.nav-list a .msg-badge {
  vertical-align: middle;
}

.module-tab .msg-badge {
  margin-left: 6px;
}

/* ---------- 在线情况 ---------- */
.online-status-panel {
  padding: 8px 0 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.online-summary-card .admin-hint {
  margin: 14px 0 0;
}

.online-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.online-stat {
  padding: 14px 16px;
  border-radius: 8px;
  background: #f5f8fb;
  border: 1px solid #e6eef5;
  text-align: center;
}

.online-stat-num {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary-dark);
}

.online-stat-num small {
  font-size: 0.95rem;
  font-weight: 600;
  color: #78909c;
}

.online-stat-label {
  display: block;
  margin-top: 4px;
  font-size: 0.85rem;
  color: #607d8b;
}

.online-stat-trial .online-progress-summary {
  margin-top: 10px;
}

.online-card-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.online-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  padding: 16px 18px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.online-card.is-online {
  border-color: #c8e6c9;
  box-shadow: 0 1px 0 rgba(46, 125, 50, 0.06);
}

.online-card.is-trial {
  background: linear-gradient(180deg, #fffdf8 0%, #fff 48%);
}

.online-card-main {
  display: flex;
  align-items: center;
  gap: 14px;
}

.online-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #e3f2fd;
  color: #1565c0;
  font-weight: 700;
  font-size: 1.05rem;
}

.online-card.is-offline .online-avatar {
  background: #eceff1;
  color: #78909c;
}

.online-card-info {
  flex: 1;
  min-width: 0;
}

.online-card-name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.online-username {
  font-size: 1.05rem;
  font-weight: 700;
  color: #263238;
}

.online-card-meta {
  font-size: 0.86rem;
  color: #78909c;
}

.online-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
}

.online-status-pill.is-online {
  background: #e8f5e9;
  color: #2e7d32;
}

.online-status-pill.is-offline {
  background: #eceff1;
  color: #757575;
}

.online-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.online-dot.is-online {
  background: #2e7d32;
  box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.18);
}

.online-dot.is-offline {
  background: #9e9e9e;
}

.online-text { color: #2e7d32; font-weight: 700; }
.offline-text { color: #757575; font-weight: 700; }

.online-trial-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: #fff3e0;
  color: #ef6c00;
  font-size: 0.75rem;
  font-weight: 600;
}

.online-card-trial {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed #ffe0b2;
}

.online-card-trial-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 0.88rem;
  color: #8d6e63;
}

.online-card-trial-top strong {
  color: #ef6c00;
  font-size: 1.15rem;
}

.online-card-trial-top small {
  font-size: 0.85rem;
  color: #a1887f;
  font-weight: 600;
}

.online-progress {
  height: 8px;
  border-radius: 999px;
  background: #ffe0b2;
  overflow: hidden;
}

.online-progress > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #fb8c00, #ef6c00);
  min-width: 0;
  transition: width 0.25s ease;
}

.online-progress-summary {
  background: #dce7f0;
}

.online-progress-summary > span {
  background: linear-gradient(90deg, #42a5f5, #1a5fb4);
}

@media (max-width: 720px) {
  .online-summary {
    grid-template-columns: 1fr;
  }

  .online-card-main {
    flex-wrap: wrap;
  }

  .online-status-pill {
    margin-left: auto;
  }
}

/* ---------- 岗位职责模块 ---------- */
.job-duties-module {
  border-bottom: 1px solid var(--border);
  padding: 16px 12px 24px;
}

.job-duties-toolbar {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.job-duties-toolbar input {
  flex: 1;
  min-width: 200px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.9rem;
  outline: none;
}

.job-duties-toolbar input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(26, 95, 180, 0.15);
}

.job-duties-toolbar button {
  padding: 8px 24px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
}

.job-duties-toolbar button:hover {
  background: var(--primary-dark);
}

.job-position-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.job-duties-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  min-height: 420px;
}

.job-position-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  background: #f4f7fb;
  border: 1px solid var(--border);
  border-radius: 8px;
  position: sticky;
  top: 12px;
  max-height: calc(100vh - 180px);
  overflow-y: auto;
}

.job-position-nav-btn {
  text-align: left;
  padding: 11px 14px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #456;
  font-size: 0.92rem;
  line-height: 1.4;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.job-position-nav-btn:hover {
  background: rgba(21, 101, 192, 0.08);
  color: var(--primary-dark);
}

.job-position-nav-btn.active {
  background: var(--white);
  color: var(--primary-dark);
  font-weight: 700;
  border-color: #c5d8ef;
  box-shadow: 0 1px 4px rgba(21, 101, 192, 0.12);
  border-left: 3px solid var(--primary);
}

.job-duties-panel {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  padding: 20px 22px 24px;
  min-height: 400px;
}

.job-duty-detail-title {
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e3eaf3;
  font-size: 1.15rem;
  color: var(--primary-dark);
  line-height: 1.45;
}

.duty-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.duty-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
  background: #f7f9fc;
  border-radius: 6px;
  border: 1px solid #e8eef5;
}

.duty-index {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

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

.duty-item .duty-name {
  font-weight: 700;
  color: #243447;
  font-size: 0.98rem;
  margin-bottom: 6px;
}

.duty-item .duty-content {
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.75;
  text-align: justify;
}

@media (max-width: 768px) {
  .job-duties-layout {
    grid-template-columns: 1fr;
  }

  .job-position-nav {
    position: static;
    max-height: none;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .job-position-nav-btn {
    flex: 1 1 auto;
    min-width: calc(50% - 6px);
  }

  .job-position-nav-btn.active {
    border-left-width: 1px;
    border-bottom: 3px solid var(--primary);
  }
}

.module-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 12px 0;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #f4f7fb 0%, #eef2f7 100%);
}

.module-tab {
  position: relative;
  padding: 11px 20px;
  font-size: 0.95rem;
  color: #5a6a7a;
  cursor: pointer;
  border: 1px solid transparent;
  border-bottom: none;
  margin-bottom: -1px;
  border-radius: 8px 8px 0 0;
  transition: color 0.2s, background 0.2s, box-shadow 0.2s, border-color 0.2s;
  background: transparent;
  font-family: inherit;
  line-height: 1.3;
}

.module-tab:hover {
  color: var(--primary);
  background: rgba(21, 101, 192, 0.06);
}

.module-tab.active {
  color: var(--primary-dark);
  font-weight: 700;
  background: var(--white);
  border-color: var(--border);
  border-bottom-color: var(--white);
  box-shadow: 0 -2px 8px rgba(21, 101, 192, 0.08);
}

.module-tab.active::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--primary);
}

.module-panel {
  display: none;
}

.module-panel.active {
  display: block;
}

/* 模拟面试工具嵌入 */
.mock-interview-frame-wrap {
  margin-top: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: #f5f7fa;
  min-height: 520px;
}

.mock-interview-frame-wrap iframe {
  display: block;
  width: 100%;
  min-height: 520px;
  height: calc(100vh - 200px);
  border: 0;
  background: #f5f7fa;
}

.core-textbook-panel {
  padding: 28px 8px 40px;
}

.core-textbook-panel .empty-state {
  padding: 48px 24px;
  text-align: center;
  color: var(--text-light);
  line-height: 1.8;
}

.interview-tutoring-panel {
  padding: 28px 32px 40px;
  box-sizing: border-box;
}

.interview-tutoring-copy {
  max-width: 820px;
  margin: 0 auto;
  padding: 24px 28px;
  background: #f7f9fc;
  border: 1px solid #e8eef5;
  border-radius: 8px;
}

.interview-tutoring-copy p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.9;
  color: var(--text);
  text-align: justify;
}

.interview-inline-link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.interview-inline-link:hover {
  color: var(--primary-dark);
}

/* ---------- 面试资料（子板块） ---------- */
.interview-articles-module {
  padding: 16px 28px 28px;
  box-sizing: border-box;
}

.interview-subtabs {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.interview-subtab {
  padding: 8px 18px;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.95rem;
  font-family: inherit;
  color: #456;
  transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}

.interview-subtab:hover {
  border-color: #90caf9;
  color: var(--primary-dark);
}

.interview-subtab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(21, 101, 192, 0.25);
}

.interview-subpanel {
  display: none;
}

.interview-subpanel.active {
  display: block;
}

/* ---------- 面试真题回忆 ---------- */
.interview-past-module {
  box-sizing: border-box;
}

.interview-past-layout {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  min-height: 420px;
}

.interview-past-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  background: #f4f7fb;
  border: 1px solid var(--border);
  border-radius: 8px;
  position: sticky;
  top: 12px;
  max-height: calc(100vh - 180px);
  overflow-y: auto;
}

.interview-past-nav-btn {
  text-align: left;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #456;
  font-size: 0.9rem;
  line-height: 1.4;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.interview-past-nav-btn:hover {
  background: rgba(21, 101, 192, 0.08);
  color: var(--primary-dark);
}

.interview-past-nav-btn.active {
  background: var(--white);
  color: var(--primary-dark);
  font-weight: 700;
  border-color: #c5d8ef;
  box-shadow: 0 1px 4px rgba(21, 101, 192, 0.12);
  border-left: 3px solid var(--primary);
}

.interview-past-panel {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  padding: 20px 24px 28px;
  min-height: 400px;
}

.interview-past-year-title {
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e3eaf3;
  font-size: 1.12rem;
  color: var(--primary-dark);
  line-height: 1.45;
}

.interview-past-positions {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.interview-past-card {
  padding: 16px 18px;
  background: #f7f9fc;
  border: 1px solid #e8eef5;
  border-radius: 6px;
}

.interview-past-pos-title {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 12px;
  font-size: 1rem;
  color: #243447;
  line-height: 1.45;
}

.past-pos-index {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.interview-past-content {
  padding-left: 4px;
}

.past-q-line {
  margin: 0 0 8px;
  font-size: 0.94rem;
  line-height: 1.7;
  color: var(--text);
}

.past-q-line:last-child {
  margin-bottom: 0;
}

.past-q-subhead {
  margin: 10px 0 8px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.past-q-spacer {
  height: 0.45em;
}

@media (max-width: 860px) {
  .interview-articles-module {
    padding: 14px 16px 24px;
  }

  .interview-past-layout {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .interview-past-nav {
    position: static;
    max-height: none;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .interview-past-nav-btn {
    flex: 1 1 auto;
    min-width: 72px;
    text-align: center;
  }

  .interview-past-panel {
    padding: 16px 14px 22px;
  }
}

/* ---------- 面试一对一 ---------- */
.interview-ooo-module {
  padding: 16px 28px 28px;
  box-sizing: border-box;
}

.interview-ooo-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  min-height: 420px;
}

.interview-ooo-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  background: #f4f7fb;
  border: 1px solid var(--border);
  border-radius: 8px;
  position: sticky;
  top: 12px;
  max-height: calc(100vh - 180px);
  overflow-y: auto;
}

.interview-ooo-nav-btn {
  text-align: left;
  padding: 11px 14px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #456;
  font-size: 0.9rem;
  line-height: 1.45;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.interview-ooo-nav-btn:hover {
  background: rgba(21, 101, 192, 0.08);
  color: var(--primary-dark);
}

.interview-ooo-nav-btn.active {
  background: var(--white);
  color: var(--primary-dark);
  font-weight: 700;
  border-color: #c5d8ef;
  box-shadow: 0 1px 4px rgba(21, 101, 192, 0.12);
  border-left: 3px solid var(--primary);
}

.interview-ooo-panel {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  padding: 20px 24px 28px;
  min-height: 400px;
}

.interview-ooo-pos-title {
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e3eaf3;
  font-size: 1.12rem;
  color: var(--primary-dark);
  line-height: 1.45;
}

.interview-ooo-questions {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.interview-ooo-card {
  padding: 16px 18px;
  background: #f7f9fc;
  border: 1px solid #e8eef5;
  border-radius: 6px;
}

.interview-ooo-q-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-size: 1rem;
  color: #243447;
}

.ooo-q-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  padding: 3px 10px;
  border-radius: 4px;
  background: var(--primary);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
}

.ooo-q-type {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--primary-dark);
}

.ooo-block {
  margin-top: 12px;
  padding: 12px 14px;
  background: var(--white);
  border: 1px solid #e8eef5;
  border-radius: 6px;
}

.ooo-block.ooo-answer {
  background: #f3f8ff;
  border-color: #d4e4f7;
}

.ooo-block-muted {
  background: #fafbfc;
}

.ooo-block-label {
  display: inline-block;
  margin-bottom: 8px;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  background: #e8eef5;
  color: #37474f;
}

.ooo-answer .ooo-block-label {
  background: rgba(21, 101, 192, 0.12);
  color: var(--primary-dark);
}

.ooo-line {
  margin: 0 0 8px;
  font-size: 0.94rem;
  line-height: 1.75;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
}

.ooo-line:last-child {
  margin-bottom: 0;
}

.ooo-emphasis {
  font-weight: 600;
  color: #243447;
}

.ooo-spacer {
  height: 0.4em;
}

.interview-ooo-consult {
  padding: 28px 8px 40px;
}

.interview-ooo-consult-text {
  max-width: 720px;
  margin: 0 auto;
  padding: 28px 32px;
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--text);
  background: #f7f9fc;
  border: 1px solid #e8eef5;
  border-radius: 8px;
}

@media (max-width: 860px) {
  .interview-ooo-module {
    padding: 14px 16px 24px;
  }

  .interview-ooo-layout {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .interview-ooo-nav {
    position: static;
    max-height: none;
  }

  .interview-ooo-panel {
    padding: 16px 14px 22px;
  }
}

/* ---------- 历年面试预测 ---------- */
.interview-forecast-module {
  padding: 20px 28px 32px;
  box-sizing: border-box;
}

.interview-forecast-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  min-height: 420px;
}

.interview-forecast-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  background: #f4f7fb;
  border: 1px solid var(--border);
  border-radius: 8px;
  position: sticky;
  top: 12px;
  max-height: calc(100vh - 180px);
  overflow-y: auto;
}

.interview-forecast-nav-btn {
  text-align: left;
  padding: 11px 14px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #456;
  font-size: 0.9rem;
  line-height: 1.45;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.interview-forecast-nav-btn:hover {
  background: rgba(21, 101, 192, 0.08);
  color: var(--primary-dark);
}

.interview-forecast-nav-btn.active {
  background: var(--white);
  color: var(--primary-dark);
  font-weight: 700;
  border-color: #c5d8ef;
  box-shadow: 0 1px 4px rgba(21, 101, 192, 0.12);
  border-left: 3px solid var(--primary);
}

/* ---------- 面试课程 ---------- */
.interview-course-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  min-height: 420px;
}

.interview-course-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  background: #f4f7fb;
  border: 1px solid var(--border);
  border-radius: 8px;
  position: sticky;
  top: 12px;
  max-height: calc(100vh - 180px);
  overflow-y: auto;
}

.interview-course-nav-btn {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  text-align: left;
  padding: 11px 14px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #456;
  font-size: 0.9rem;
  line-height: 1.45;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.interview-course-nav-btn:hover {
  background: rgba(21, 101, 192, 0.08);
  color: var(--primary-dark);
}

.interview-course-nav-btn.active {
  background: var(--white);
  color: var(--primary-dark);
  font-weight: 700;
  border-color: #c5d8ef;
  box-shadow: 0 1px 4px rgba(21, 101, 192, 0.12);
  border-left: 3px solid var(--primary);
}

.interview-course-nav-seq {
  flex-shrink: 0;
  width: 22px;
  color: var(--primary);
  font-weight: 700;
}

.interview-course-nav-btn.active .interview-course-nav-seq {
  color: var(--primary-dark);
}

.interview-course-nav-title {
  flex: 1;
}

.interview-course-panel {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  padding: 22px 26px 28px;
  min-height: 400px;
}

.interview-course-title {
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e3eaf3;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 1.15rem;
  color: var(--primary-dark);
  line-height: 1.45;
}

.interview-course-seq {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
}

.interview-course-video-wrap {
  margin: 18px 0 0;
  border-radius: 8px;
  overflow: hidden;
  background: #0b1220;
  border: 1px solid #d7e0ea;
}

.interview-course-video-wrap .course-video-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: none;
  background: #000;
}

.interview-course-video-wrap.is-placeholder {
  background: linear-gradient(160deg, #0f2744 0%, #1a3a5c 55%, #243b55 100%);
}

.interview-course-video-placeholder {
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px 16px;
  text-align: center;
  color: rgba(255, 255, 255, 0.92);
}

.interview-course-video-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  line-height: 1;
  padding-left: 3px;
  background: rgba(255, 255, 255, 0.08);
}

.interview-course-video-title {
  margin: 6px 0 0;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.interview-course-video-hint {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.72);
}

.btn-unlock-content {
  margin-top: 14px;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 0.9rem;
  cursor: pointer;
}

.btn-unlock-content:hover {
  background: rgba(255, 255, 255, 0.22);
}

.membership-preview-locked {
  padding: 36px 28px;
  text-align: center;
  background: #f7f9fc;
  border: 1px dashed #c5d0de;
  border-radius: 8px;
}

.membership-preview-locked .membership-preview-tip {
  margin: 0 0 16px;
  color: var(--text-light, #5a6a7a);
  line-height: 1.7;
  font-size: 0.95rem;
}

.membership-preview-locked .btn-unlock-content {
  border-color: var(--primary, #1a5fb4);
  background: var(--primary, #1a5fb4);
  color: #fff;
}

.membership-preview-locked .btn-unlock-content:hover {
  filter: brightness(1.05);
}

.job-position-nav-btn.is-preview-locked {
  opacity: 0.85;
}

.interview-course-intro {
  margin: 0;
}

.interview-course-section-title {
  margin: 0 0 12px;
  font-size: 1rem;
  color: var(--primary-dark);
  font-weight: 700;
}

.interview-course-block {
  margin-bottom: 14px;
  padding: 16px 18px;
  background: #f7f9fc;
  border: 1px solid #e8eef5;
  border-radius: 6px;
}

.interview-course-block.advantage {
  margin-bottom: 0;
  background: #f3f8f4;
  border-color: #d7e8db;
}

.interview-course-label {
  margin: 0 0 10px;
  font-size: 0.92rem;
  color: var(--primary-dark);
  font-weight: 700;
}

.interview-course-content-list {
  margin: 0;
  padding-left: 1.2em;
  color: var(--text, #1f2937);
  line-height: 1.75;
}

.interview-course-content-list li {
  margin-bottom: 8px;
}

.interview-course-content-list li:last-child {
  margin-bottom: 0;
}

.interview-course-advantage {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.8;
  color: var(--text, #1f2937);
  text-align: justify;
}

.interview-course-empty {
  margin: 0;
  color: var(--text-muted, #667085);
}

@media (max-width: 900px) {
  .interview-course-layout {
    grid-template-columns: 1fr;
  }

  .interview-course-nav {
    position: static;
    max-height: 260px;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .interview-course-nav-btn {
    flex: 1 1 100%;
  }
}

.interview-forecast-panel {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  padding: 22px 26px 28px;
  min-height: 400px;
}

.interview-forecast-title {
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e3eaf3;
  font-size: 1.15rem;
  color: var(--primary-dark);
  line-height: 1.45;
}

.forecast-block {
  margin-bottom: 18px;
  padding: 16px 18px;
  background: #f7f9fc;
  border: 1px solid #e8eef5;
  border-radius: 6px;
}

.forecast-block:last-child {
  margin-bottom: 0;
}

.forecast-block.predicted {
  background: #f3f8ff;
  border-color: #d4e4f7;
}

.forecast-label {
  display: inline-block;
  margin-bottom: 10px;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.forecast-block .forecast-label {
  background: #e8eef5;
  color: #37474f;
}

.forecast-block.predicted .forecast-label {
  background: rgba(21, 101, 192, 0.12);
  color: var(--primary-dark);
}

.forecast-text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
}

@media (max-width: 860px) {
  .interview-forecast-module {
    padding: 16px 16px 28px;
  }

  .interview-forecast-layout {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .interview-forecast-nav {
    position: static;
    max-height: none;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .interview-forecast-nav-btn {
    flex: 1 1 auto;
    min-width: 140px;
  }

  .interview-forecast-panel {
    padding: 18px 16px 22px;
  }
}

/* ---------- 招聘公告卡片 ---------- */
.announce-filter {
  display: flex;
  gap: 8px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.year-filter {
  padding: 6px 18px;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 20px;
  font-size: 0.875rem;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.2s;
}

.year-filter:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.year-filter.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.year-group {
  padding: 20px 24px 8px;
}

.year-group-title {
  font-size: 1.1rem;
  color: var(--primary-dark);
  font-weight: 600;
  margin-bottom: 16px;
  padding-left: 12px;
  border-left: 4px solid var(--primary);
}

.announce-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 20px 24px;
  margin-bottom: 16px;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.announce-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(26, 95, 180, 0.12);
}

.announce-card .card-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.5;
}

.announce-card .card-title a {
  color: var(--text);
}

.announce-card .card-title a:hover {
  color: var(--primary);
}

.announce-card .card-summary {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 14px;
}

.announce-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 14px;
}

.announce-meta .meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-light);
}

.announce-meta .meta-item .meta-label {
  color: var(--text-muted);
}

.announce-meta .meta-item .meta-value {
  color: var(--primary-dark);
  font-weight: 500;
}

.announce-meta .meta-item.highlight .meta-value {
  color: var(--accent);
  font-weight: 600;
}

.announce-card .card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
}

.announce-card .publish-date {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.announce-card .btn-view {
  display: inline-block;
  padding: 6px 20px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s;
}

.announce-card .btn-view:hover {
  background: var(--primary);
  color: var(--white);
}

.empty-state,
.loading-state {
  padding: 60px 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.loading-state::after {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-left: 8px;
  vertical-align: middle;
}

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

/* ---------- 响应式 ---------- */
@media (max-width: 992px) {
  .section-cards {
    grid-template-columns: 1fr;
  }
}

/* 详细手机端规则见文末「手机端全局适配」 */

/* ---------- 笔试板块 ---------- */
.quiz-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  border-bottom: 1px solid var(--border);
  background: #f8f9fb;
  flex-wrap: wrap;
  gap: 12px;
}

.mode-switch, .page-size-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-light);
}

.mode-btn {
  padding: 6px 16px;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.875rem;
}

.mode-btn.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.page-size-switch select {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
}

.material-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  padding: 20px 24px;
}

.material-card {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 20px;
  background: var(--white);
  transition: all 0.2s;
}

.material-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(26, 95, 180, 0.1);
}

.material-card h3 {
  font-size: 1rem;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.material-sub { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 10px; }

.material-meta {
  display: flex;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 14px;
}

.badge-pdf {
  background: #fff3e0;
  color: #e65100;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 0.75rem;
}

/* ---------- 课程视频 ---------- */
.video-course-layout {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
  min-height: min(70vh, 640px);
}

.video-catalog-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: min(70vh, 640px);
  overflow-y: auto;
}

.video-catalog-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 16px;
  border-bottom: 1px solid #eef2f7;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.video-catalog-item:hover,
.video-catalog-item:focus-visible {
  background: #f5f8fc;
  outline: none;
}

.video-catalog-item.is-active {
  background: var(--primary-light, #e8f1fb);
  box-shadow: inset 3px 0 0 var(--primary, #1a5fb4);
}

.video-catalog-item.is-active .video-seq {
  background: var(--primary, #1a5fb4);
  color: #fff;
}

.video-catalog-item.is-active .video-item-title {
  color: var(--primary-dark, #0f3d7a);
  font-weight: 600;
}

.video-catalog-item.is-locked {
  opacity: 0.72;
}

.video-catalog-item .video-item-title {
  flex: 1;
  line-height: 1.45;
  color: var(--text, #1f2937);
}

.video-intro-pane {
  min-width: 0;
}

.video-intro-panel {
  height: 100%;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.video-intro-header {
  padding: 16px 20px 14px;
  background: #f3f7fc;
  border-bottom: 1px solid var(--border);
}

.video-intro-body {
  padding: 18px 20px 22px;
  overflow-y: auto;
  flex: 1;
}

.video-intro-body .interview-course-video-wrap {
  margin-top: 16px;
  margin-bottom: 0;
}

.video-intro-section-title {
  margin: 0 0 12px;
  font-size: 1rem;
  color: var(--primary-dark);
  font-weight: 700;
}

.video-intro-empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--text-muted, #667085);
  font-size: 0.95rem;
}

.video-detail-kicker {
  margin: 0 0 6px;
  font-size: 0.85rem;
  color: var(--text-muted, #667085);
}

.video-detail-title {
  margin: 0;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 1.15rem;
  line-height: 1.45;
  color: var(--primary-dark);
  font-weight: 600;
}

.video-detail-title .video-seq {
  flex-shrink: 0;
}

.video-detail-intro {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.85;
  color: var(--text, #1f2937);
  text-align: justify;
  text-indent: 2em;
  white-space: pre-wrap;
}

.video-detail-note {
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px dashed #e5eaf0;
  font-size: 0.88rem;
  color: var(--text-muted, #667085);
}

.video-playlist {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.video-playlist-title {
  padding: 14px 16px;
  font-size: 1rem;
  color: var(--primary-dark);
  background: #f3f7fc;
  border-bottom: 1px solid var(--border);
}

.video-playlist-list {
  list-style: none;
  max-height: 560px;
  overflow-y: auto;
  margin: 0;
  padding: 0;
}

.video-playlist-item {
  width: 100%;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  text-align: left;
  padding: 12px 14px;
  border: none;
  border-bottom: 1px solid #eef2f7;
  background: transparent;
  cursor: pointer;
  transition: background 0.15s;
}

.video-playlist-item:hover {
  background: #f5f9ff;
}

.video-playlist-item.active {
  background: var(--primary-light);
  box-shadow: inset 3px 0 0 var(--primary);
}

.video-seq {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e3eef9;
  color: var(--primary-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
}

.video-playlist-item.active .video-seq {
  background: var(--primary);
  color: #fff;
}

.video-item-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.video-item-title {
  font-size: 0.92rem;
  color: var(--text);
  font-weight: 500;
  line-height: 1.4;
}

.video-playlist-item.active .video-item-title {
  color: var(--primary-dark);
  font-weight: 600;
}

.video-item-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.video-player-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 16px 18px 18px;
}

.video-current-title {
  font-size: 1.1rem;
  color: var(--primary-dark);
  margin-bottom: 12px;
}

.video-player-wrap {
  background: #0b1220;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.video-buffering {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(11, 18, 32, 0.55);
  color: #fff;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  pointer-events: none;
}

.video-buffering[hidden] {
  display: none !important;
}

.course-video-player {
  display: block;
  width: 100%;
  max-height: 70vh;
  background: #000;
  aspect-ratio: 16 / 9;
}

.video-rate-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.video-rate-label {
  font-size: 0.88rem;
  color: var(--text-light);
  margin-right: 4px;
}

.video-rate-btn {
  min-width: 52px;
  padding: 6px 10px;
  border: 1px solid #9bb6d8;
  border-radius: 4px;
  background: #f3f7fc;
  color: var(--primary-dark);
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.video-rate-btn:hover {
  background: #e4eef9;
  border-color: var(--primary);
}

.video-rate-btn.active {
  background: var(--primary);
  border-color: var(--primary-dark);
  color: #fff;
  font-weight: 600;
}

.video-tip {
  margin-top: 10px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.video-tip-error {
  color: var(--accent);
}

/* ---------- 时政专区 ---------- */
.current-affairs-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.current-affairs-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  background: #f3f7fc;
}

.current-affairs-tab {
  flex: 1;
  padding: 14px 16px;
  border: none;
  background: transparent;
  color: var(--text-light);
  font-size: 0.98rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  border-bottom: 3px solid transparent;
}

.current-affairs-tab:hover {
  color: var(--primary-dark);
  background: #eaf2fb;
}

.current-affairs-tab.active {
  color: var(--primary-dark);
  background: var(--white);
  font-weight: 600;
  border-bottom-color: var(--primary);
}

.current-affairs-panel {
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

@media (max-width: 900px) {
  .video-course-layout {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .video-catalog-list,
  .video-playlist-list {
    max-height: 280px;
  }

  .video-intro-panel {
    min-height: 280px;
  }
}

/* ---------- 时政专区 ---------- */
.current-affairs-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.current-affairs-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  background: #f3f7fc;
}

.current-affairs-tab {
  flex: 1;
  padding: 14px 16px;
  border: none;
  background: transparent;
  color: var(--text-light);
  font-size: 0.98rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  border-bottom: 3px solid transparent;
}

.current-affairs-tab:hover {
  color: var(--primary-dark);
  background: #eaf2fb;
}

.current-affairs-tab.active {
  color: var(--primary-dark);
  background: var(--white);
  font-weight: 600;
  border-bottom-color: var(--primary);
}

.current-affairs-panel {
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.btn-enter-material {
  width: 100%;
  padding: 10px 12px;
  background: linear-gradient(180deg, #4a90e2 0%, var(--primary) 55%, var(--primary-dark) 100%);
  color: var(--white);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.08em;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.28) inset,
    0 4px 10px rgba(26, 95, 180, 0.28);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-enter-material:hover {
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.35) inset,
    0 6px 14px rgba(26, 95, 180, 0.36);
}

.practice-material-grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.practice-material-card {
  text-align: center;
  padding: 28px 22px 22px;
  background: linear-gradient(155deg, #ffffff 0%, #f3f7fd 100%);
  border: 1px solid #c5d9f0;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 8px 20px rgba(13, 71, 161, 0.08);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  cursor: pointer;
}

.practice-material-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 14px 28px rgba(26, 95, 180, 0.16);
}

.practice-title-3d {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0d47a1;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  text-shadow:
    1px 1px 0 #ffffff,
    2px 2px 0 rgba(13, 71, 161, 0.18),
    3px 3px 0 rgba(13, 71, 161, 0.1),
    0 3px 6px rgba(0, 0, 0, 0.12);
}

.practice-intro {
  font-size: 0.9rem;
  color: #546e7a;
  margin: 0 0 18px;
  letter-spacing: 0.04em;
  min-height: 1.5em;
}

.view-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.view-header-bar {
  display: contents;
}

.view-header h3,
.view-header .view-header-title { flex: 1; font-size: 1.05rem; color: var(--primary-dark); }
.view-progress { font-size: 0.85rem; color: var(--text-muted); }

.quiz-resume-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 0 0 18px;
  padding: 14px 18px;
  border: 1px solid #b7d0ec;
  border-radius: 10px;
  background: linear-gradient(120deg, #eef5fc 0%, #f8fbff 55%, #eef6ff 100%);
}

.quiz-resume-banner-text {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  min-width: 0;
}

.quiz-resume-kicker {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #1565c0;
  background: rgba(21, 101, 192, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
}

.quiz-resume-banner-text strong {
  color: #0d47a1;
  font-size: 1rem;
}

.quiz-resume-meta {
  color: #546e7a;
  font-size: 0.9rem;
}

.btn-resume-quiz {
  flex-shrink: 0;
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  background: var(--primary, #1a5fb4);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(26, 95, 180, 0.25);
}

.btn-resume-quiz:hover {
  filter: brightness(1.05);
}

.material-progress-badge {
  display: inline-block;
  margin: 0 0 12px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #0d47a1;
  background: rgba(13, 71, 161, 0.1);
  border: 1px solid rgba(13, 71, 161, 0.18);
}

.practice-material-card .material-progress-badge {
  margin-top: -4px;
}

.btn-back {
  padding: 6px 14px;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.875rem;
}

.question-list { padding: 16px 24px; }

.question-card {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 20px;
  margin-bottom: 16px;
}

.q-header { display: flex; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.q-no { font-weight: 600; color: var(--primary-dark); }
.q-section { background: #e8f5e9; color: #2e7d32; padding: 2px 10px; border-radius: 12px; font-size: 0.8rem; }
.q-type { background: var(--primary-light); color: var(--primary); padding: 2px 10px; border-radius: 12px; font-size: 0.8rem; }
.q-content { font-size: 0.95rem; line-height: 1.7; margin-bottom: 14px; }

.q-options { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }

.q-option {
  text-align: left;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--white);
  cursor: pointer;
  font-size: 0.9rem;
}

.q-option:hover { border-color: var(--primary); background: var(--primary-light); }
.q-option.correct { border-color: #2e7d32; background: #e8f5e9; }
.q-option.wrong { border-color: #c62828; background: #ffebee; }

.q-answer-box {
  padding: 14px;
  background: #f0f7ff;
  border-radius: 4px;
  border-left: 3px solid var(--primary);
  display: none;
}

.q-answer-box.visible { display: block; }

/* 填空/主观题：先显示「查看答案」按钮 */
.q-answer-box.reveal-ready {
  display: block;
  padding: 0;
  background: transparent;
  border-left: none;
}

.q-answer-box.reveal-ready.revealed {
  padding: 14px;
  background: #f0f7ff;
  border-left: 3px solid var(--primary);
}

.q-answer-text { white-space: pre-wrap; line-height: 1.8; font-size: 0.9rem; }

.btn-show-answer {
  padding: 8px 20px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
}

.btn-show-answer:hover {
  background: var(--primary-dark);
}

.q-legal-jumps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.btn-jump-legal {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border: 1px solid #1565c0;
  border-radius: 4px;
  background: #e3f2fd;
  color: #0d47a1;
  font-size: 0.86rem;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
}

.btn-jump-legal:hover {
  background: #bbdefb;
  border-color: #0d47a1;
  color: #002171;
}

.legal-item.is-jump-target {
  outline: 2px solid #1565c0;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(21, 101, 192, 0.12);
  background: #f5faff;
}

.btn-question-feedback {
  margin-left: auto;
  padding: 2px 12px;
  border: 1px solid #ef9a9a;
  border-radius: 4px;
  background: #fff;
  color: #c62828;
  cursor: pointer;
  font-size: 0.85rem;
  line-height: 1.6;
  font-family: inherit;
}

.btn-question-feedback:hover {
  background: #ffebee;
  border-color: #e57373;
}

.btn-favorite {
  margin-left: 8px;
  padding: 2px 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--white);
  color: var(--text-secondary, #666);
  cursor: pointer;
  font-size: 0.85rem;
  line-height: 1.6;
}

.btn-favorite:hover {
  border-color: #c9a227;
  color: #b8860b;
  background: #fffbeb;
}

.btn-favorite.is-favorited {
  border-color: #c9a227;
  color: #8b6914;
  background: #fff8e1;
  font-weight: 600;
}

.btn-favorite:disabled {
  opacity: 0.6;
  cursor: wait;
}

.q-last-selected {
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--text-secondary, #555);
}

.profile-user {
  margin: 4px 0 0;
  font-size: 0.9rem;
  color: var(--text-secondary, #666);
  font-weight: normal;
}

.empty-state-coming {
  font-size: 1.25rem;
  letter-spacing: 0.2em;
  color: var(--text-secondary, #666);
  padding: 72px 24px;
}

/* 主观题公文排版 */
.doc-answer {
  margin-top: 8px;
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--text, #333);
}

.doc-answer .doc-title {
  text-align: left;
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0.6em 0 1em;
  text-indent: 0;
}

.doc-answer .doc-heading-main {
  text-align: left;
  text-indent: 0;
  font-weight: 700;
  font-size: 1.02rem;
  margin: 0.5em 0 0.85em;
  color: #1a3a5c;
  padding-left: 4px;
}

.doc-answer .doc-field {
  text-indent: 0;
  text-align: left;
  margin: 0.4em 0;
  padding-left: 4px;
  font-size: 0.95rem;
}

.doc-answer .doc-addressee {
  text-indent: 0;
  margin: 0 0 0.6em;
  font-weight: 600;
}

.doc-answer .doc-paragraph {
  text-indent: 2em;
  margin: 0.35em 0;
  text-align: justify;
}

.doc-answer .doc-heading {
  text-indent: 0;
  font-weight: 600;
  margin: 0.75em 0 0.35em;
}

.doc-answer .doc-closing {
  text-indent: 2em;
  margin: 0.8em 0 0;
}

.doc-answer .doc-salutation {
  text-indent: 0;
  margin: 0 0 1em;
}

.doc-answer .doc-signature,
.doc-answer .doc-date {
  text-indent: 0;
  text-align: right;
  margin: 0.25em 0;
  padding-left: 0 !important;
}

.doc-answer .doc-signature {
  margin-top: 1.2em;
}

.doc-answer .doc-label {
  text-indent: 0;
  font-weight: 700;
  color: #1565c0;
  margin: 0.9em 0 0.4em;
  padding-left: 10px;
  border-left: 3px solid #1565c0;
}

.doc-answer .doc-dimension {
  text-indent: 0;
  font-weight: 600;
  color: #2e7d32;
  margin: 0.7em 0 0.35em;
  background: #f1f8e9;
  padding: 6px 12px;
  border-radius: 4px;
}

.doc-answer .doc-point {
  text-indent: 0;
  margin: 0.55em 0;
  padding-left: 0.5em;
  border-left: 3px solid #c9a227;
  text-align: justify;
}

.doc-answer .doc-numbered {
  text-indent: 0;
  margin: 0.45em 0;
  padding-left: 0.25em;
  text-align: justify;
}

.doc-answer .doc-lead {
  text-indent: 0;
  font-weight: 600;
  margin: 0.4em 0 0.8em;
  color: #37474f;
}

.doc-answer .doc-spacer {
  height: 0.55em;
}

/* ---------- 主观题学习 ---------- */
.subjective-wrap {
  padding: 20px 32px 36px;
  box-sizing: border-box;
}

.subjective-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.subjective-tab {
  padding: 8px 18px;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}

.subjective-tab:hover {
  border-color: #90caf9;
  color: var(--primary-dark);
}

.subjective-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(21, 101, 192, 0.25);
}

.subjective-panel {
  padding-left: 4px;
}

.subj-lead {
  margin: 0 0 20px;
  color: var(--text-secondary, #666);
  font-size: 0.92rem;
  line-height: 1.7;
  padding: 0 2px;
}

.subj-section {
  margin-bottom: 32px;
}

.subj-section-title {
  margin: 0 0 16px;
  padding: 0 2px 10px;
  border-bottom: 2px solid #e3eaf3;
  color: var(--primary-dark);
  font-size: 1.1rem;
}

.subj-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.subj-card {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 20px 24px;
  background: var(--white);
}

.subj-card.is-open {
  border-color: #90caf9;
  box-shadow: 0 2px 10px rgba(21, 101, 192, 0.08);
}

.subj-card-head {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
}

.subj-card-titles {
  flex: 1;
  min-width: 0;
  padding-right: 8px;
}

.subj-card-title {
  margin: 0 0 8px;
  font-size: 1.02rem;
  line-height: 1.55;
  color: #243447;
}

.subj-card-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.subj-type,
.subj-year {
  font-size: 0.78rem;
  padding: 2px 8px;
  border-radius: 10px;
  background: #e8f5e9;
  color: #2e7d32;
}

.subj-year {
  background: #e3f2fd;
  color: #1565c0;
}

.subj-toggle {
  flex-shrink: 0;
}

.subj-card-preview {
  margin-top: 14px;
}

.subj-block {
  margin-bottom: 14px;
}

.subj-block-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #607d8b;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  padding-left: 2px;
}

.subj-stem,
.subj-analysis {
  font-size: 0.92rem;
  line-height: 1.8;
  color: #455a64;
  background: #f7f9fc;
  border-radius: 4px;
  padding: 14px 18px;
  text-align: justify;
}

.subj-analysis {
  background: #fff8e1;
  border-left: 3px solid #f9a825;
  padding-left: 16px;
}

.subj-analysis .doc-answer {
  margin: 0;
}

.subj-analysis .doc-paragraph {
  text-indent: 0;
  padding-left: 0;
}

.subj-answer-wrap {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed #cfd8dc;
}

.subj-answer-wrap[hidden] {
  display: none !important;
}

.subj-answer-body {
  background: #f0f7ff;
  border-radius: 4px;
  border-left: 3px solid var(--primary);
  padding: 18px 22px 18px 24px;
}

.subj-answer-body .doc-answer {
  margin-top: 0;
}

.subj-answer-body .doc-paragraph {
  text-indent: 2em;
  padding-left: 0;
}

.subj-answer-body .doc-heading,
.subj-answer-body .doc-point,
.subj-answer-body .doc-numbered,
.subj-answer-body .doc-label,
.subj-answer-body .doc-dimension,
.subj-answer-body .doc-lead {
  padding-left: 4px;
}

.subj-locked-hint {
  color: #c62828;
  font-size: 0.95rem;
  padding: 8px 4px;
}

.subj-card.is-locked {
  opacity: 0.95;
}

@media (max-width: 768px) {
  .subjective-wrap {
    padding: 16px 16px 28px;
  }

  .subj-card {
    padding: 16px 14px;
  }

  .subj-answer-body {
    padding: 14px 14px 14px 16px;
  }
}

.pdf-link-bar { padding: 12px 24px; border-top: 1px solid var(--border); text-align: right; }

/* ---------- 学习资料 ---------- */
.study-material-grid {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.study-material-card {
  cursor: pointer;
  text-align: center;
  padding: 28px 24px;
  background: linear-gradient(145deg, #ffffff 0%, #f3f8f4 100%);
  border: 1px solid #c5ddd0;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.study-material-card:hover {
  transform: translateY(-4px);
  border-color: #2e7d4f;
  box-shadow: 0 8px 24px rgba(46, 125, 79, 0.16);
}

.study-title-3d {
  font-weight: 700;
  color: #1b5e3b;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
  line-height: 1.55;
  text-shadow:
    1px 1px 0 #ffffff,
    2px 2px 0 rgba(27, 94, 59, 0.16),
    0 2px 4px rgba(0, 0, 0, 0.12);
}

.study-card-intro {
  font-size: 0.88rem;
  line-height: 1.75;
  color: #546e7a;
  text-align: left;
  margin: 0 0 16px;
}

.study-view-header {
  position: relative;
  display: block;
  margin-bottom: 8px;
  min-height: 40px;
}

.study-view-header .view-header-bar {
  display: block;
}

.study-view-header .btn-back {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

.study-view-title {
  text-align: center;
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: #1b5e3b;
  letter-spacing: 0.06em;
  line-height: 1.5;
}

.study-intro {
  text-align: center;
  color: #607d8b;
  font-size: 0.92rem;
  line-height: 1.7;
  margin: 8px 0 12px;
}

.study-view .study-search-bar {
  justify-content: flex-start;
}

.study-view .study-search-bar input[type="search"] {
  flex: 1;
  min-width: 180px;
  max-width: none;
}

.study-view .study-search-bar .legal-search-status {
  flex: 0 0 auto;
  min-width: 7em;
  text-align: left;
}

.study-body {
  max-width: none;
  margin: 0;
  padding: 8px 8px 32px;
}

.study-read-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 0;
  align-items: start;
  border-top: 1px solid var(--border);
  min-height: 420px;
  position: relative;
}

/* 学习资料阅读时允许 sticky/fixed，避免导航栏被裁切 */
.content-area:has(.study-view) {
  overflow: visible;
}

.study-toc-col {
  width: 240px;
  min-height: 1px;
  align-self: stretch;
}

.study-toc {
  position: sticky;
  top: 12px;
  align-self: start;
  width: 240px;
  max-height: calc(100vh - 24px);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 12px 10px 20px;
  border-right: 1px solid #d8e4f0;
  background: linear-gradient(180deg, #f7fafc 0%, #ffffff 40%);
  z-index: 20;
  box-sizing: border-box;
}

/* 固定模式：随页面滚动始终贴在视口左侧对应位置 */
.study-toc.is-fixed {
  position: fixed;
  top: 12px;
  left: var(--study-toc-left, 0);
  width: var(--study-toc-width, 240px);
  max-height: calc(100vh - 24px);
}

.study-toc-head {
  margin: 0 8px 10px;
  padding-bottom: 8px;
  font-size: 0.92rem;
  font-weight: 700;
  color: #1b5e3b;
  letter-spacing: 0.04em;
  border-bottom: 1px solid #cfe0d6;
}

.study-toc-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.study-toc-link {
  display: block;
  padding: 6px 8px;
  border-radius: 4px;
  color: #37474f;
  text-decoration: none;
  font-size: 0.84rem;
  line-height: 1.45;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.study-toc-link:hover {
  background: #e8f5ee;
  color: #1b5e3b;
}

.study-toc-link.is-active {
  background: #e8f5ee;
  color: #1b5e3b;
  font-weight: 600;
  box-shadow: inset 3px 0 0 #2e7d4f;
}

.study-toc-l1 {
  font-weight: 600;
  color: #263238;
  white-space: normal;
}

.study-toc-l2 {
  padding-left: 16px;
  font-size: 0.82rem;
}

.study-toc-l3 {
  padding-left: 28px;
  font-size: 0.8rem;
  color: #546e7a;
}

.study-toc-empty {
  margin: 8px;
  color: #90a4ae;
  font-size: 0.85rem;
}

.study-main {
  min-width: 0;
  padding: 0 12px;
}

.study-main .study-body {
  max-width: 980px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .study-read-layout {
    grid-template-columns: 1fr;
  }

  .study-toc,
  .study-toc.is-fixed {
    position: static;
    left: auto;
    width: auto;
    max-height: 220px;
    border-right: none;
    border-bottom: 1px solid #d8e4f0;
  }

  .study-toc-col {
    width: auto;
  }
}

.study-block.is-search-match {
  outline: 1px solid rgba(46, 125, 79, 0.35);
  border-radius: 4px;
  background: rgba(232, 245, 238, 0.55);
}

.study-block.is-search-current {
  outline: 2px solid #2e7d4f;
  background: rgba(200, 230, 201, 0.55);
}

.study-block mark.legal-search-hit {
  background: #fff59d;
  color: inherit;
  padding: 0 1px;
  border-radius: 2px;
}

.study-block.is-search-current mark.legal-search-hit {
  background: #ffd54f;
}

.study-h1 {
  margin: 28px 0 14px;
  padding: 12px 16px;
  font-size: 1.22rem;
  font-weight: 700;
  color: #1b5e3b;
  letter-spacing: 0.05em;
  line-height: 1.45;
  background: linear-gradient(90deg, #e8f5ee 0%, #f8fafc 100%);
  border-left: 4px solid #2e7d4f;
  border-radius: 4px;
}

.study-block:first-child .study-h1 {
  margin-top: 0;
}

.study-h2 {
  margin: 22px 0 10px;
  font-size: 1.08rem;
  font-weight: 700;
  color: #244a38;
  letter-spacing: 0.03em;
  line-height: 1.45;
}

.study-h3 {
  margin: 16px 0 8px;
  font-size: 1rem;
  font-weight: 600;
  color: #345c48;
  line-height: 1.45;
}

.study-label {
  margin: 14px 0 6px;
  font-size: 0.98rem;
  font-weight: 600;
  color: #2e5c44;
  line-height: 1.6;
}

.study-paragraph {
  margin: 0 0 14px;
  text-indent: 2em;
  font-size: 0.96rem;
  line-height: 1.95;
  color: #000;
  text-align: justify;
  text-justify: inter-ideograph;
  word-break: normal;
  overflow-wrap: break-word;
  line-break: auto;
  white-space: normal;
  hyphens: none;
}

.study-paragraph .study-topic {
  font-weight: 700;
  color: #000;
}

/* 职业教育概述：正文不加粗（标题保持原样） */
.study-view[data-title="职业教育概述"] .study-paragraph,
.study-view[data-title="职业教育概述"] .study-paragraph * {
  font-weight: 400;
}

/* ---------- 必背法律条文专用样式 ---------- */
.legal-title-3d {
  font-weight: 700;
  color: #0d47a1;
  letter-spacing: 0.06em;
  text-shadow:
    1px 1px 0 #ffffff,
    2px 2px 0 rgba(13, 71, 161, 0.18),
    3px 3px 0 rgba(13, 71, 161, 0.12),
    0 2px 4px rgba(0, 0, 0, 0.15);
}

.legal-material-grid {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.legal-material-card {
  cursor: pointer;
  text-align: center;
  padding: 28px 24px;
  background: linear-gradient(145deg, #ffffff 0%, #f0f6ff 100%);
  border: 1px solid #c5d9f0;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.legal-material-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(26, 95, 180, 0.18);
}

.legal-material-card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  line-height: 1.55;
  text-wrap: balance;
}

.legal-view-title {
  text-align: center;
  line-height: 1.55;
  text-wrap: balance;
}

.legal-intro {
  font-size: 0.88rem;
  line-height: 1.75;
  color: #546e7a;
  text-align: left;
  margin: 0;
}

.legal-view-header {
  position: relative;
  display: block;
  background: linear-gradient(90deg, #f0f6ff 0%, #ffffff 100%);
  min-height: 56px;
  padding: 16px 24px;
}

.legal-view-header .view-header-bar {
  display: block;
}

.legal-view-header .btn-back {
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
}

.legal-view-header .legal-view-title,
.view-header h3.legal-view-title {
  display: block;
  width: 100%;
  flex: none;
  font-size: 1.4rem;
  text-align: center;
  margin: 0;
  padding: 0 130px;
  color: #0d47a1;
}

.legal-return-quiz-wrap {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed #bbdefb;
}

.legal-item .btn-return-quiz {
  padding: 6px 14px;
  border: 1px solid #1565c0;
  border-radius: 4px;
  background: #1565c0;
  color: #fff;
  font-size: 0.9rem;
  line-height: 1.4;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}

.legal-item .btn-return-quiz:hover {
  background: #0d47a1;
  border-color: #0d47a1;
}

.legal-search-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-bottom: 1px solid var(--border);
  background: #fff;
}

.legal-search-bar input[type="search"] {
  flex: 1;
  min-width: 180px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.9rem;
  outline: none;
  font-family: inherit;
}

.legal-search-bar input[type="search"]:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(26, 95, 180, 0.15);
}

.legal-search-bar #legal-search-btn,
.legal-search-bar #study-search-btn {
  padding: 8px 18px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  font-family: inherit;
}

.legal-search-bar #legal-search-btn:hover,
.legal-search-bar #study-search-btn:hover {
  background: var(--primary-dark);
}

.legal-search-nav {
  padding: 8px 12px;
  background: #e3f2fd;
  color: #1565c0;
  border: 1px solid #bbdefb;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.88rem;
  font-family: inherit;
}

.legal-search-nav:hover:not(:disabled) {
  background: #bbdefb;
}

.legal-search-nav:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.legal-search-status {
  font-size: 0.88rem;
  color: #546e7a;
  min-width: 7em;
}

.legal-list {
  padding: 20px 24px;
  max-height: 680px;
  overflow-y: auto;
  background: #f8fafc;
}

.legal-item.is-search-match {
  border-color: #90caf9;
  background: #f5faff;
}

.legal-item.is-search-current {
  border-color: #1565c0;
  box-shadow: 0 0 0 2px rgba(21, 101, 192, 0.22);
  background: #eef6ff;
}

mark.legal-search-hit {
  background: #fff59d;
  color: inherit;
  padding: 0 2px;
  border-radius: 2px;
}

.legal-item.is-search-current mark.legal-search-hit {
  background: #ffd54f;
}

.legal-annotate-hint {
  margin: 0;
  padding: 8px 24px 10px;
  font-size: 0.85rem;
  color: #607d8b;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.legal-highlight-toolbar {
  position: fixed;
  z-index: 1200;
  padding: 4px;
  background: #263238;
  border-radius: 6px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
}

.legal-highlight-toolbar[hidden] {
  display: none !important;
}

.legal-highlight-toolbar #legal-highlight-btn,
.legal-highlight-toolbar #study-highlight-btn {
  padding: 8px 14px;
  border: none;
  border-radius: 4px;
  background: #ffb74d;
  color: #212121;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}

.legal-highlight-toolbar #legal-highlight-btn:hover,
.legal-highlight-toolbar #study-highlight-btn:hover {
  background: #ffa726;
}

.legal-highlight-toolbar #legal-highlight-btn:disabled,
.legal-highlight-toolbar #study-highlight-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

mark.legal-user-highlight,
mark.study-user-highlight {
  background: #ffcc80;
  color: inherit;
  padding: 0 1px;
  border-radius: 2px;
  cursor: pointer;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

mark.legal-user-highlight:hover,
mark.study-user-highlight:hover {
  background: #ffb74d;
}

/* ---------- 个人中心：标注内容 ---------- */
.highlights-panel {
  padding: 8px 24px 24px;
}

.highlights-summary {
  margin: 0 0 16px;
  font-size: 0.92rem;
  color: #546e7a;
}

.highlight-group {
  margin-bottom: 22px;
}

.highlight-group-title {
  margin: 0 0 12px;
  padding: 8px 12px;
  font-size: 1.05rem;
  color: #0d47a1;
  background: linear-gradient(90deg, #e3f2fd 0%, #fff 100%);
  border-left: 4px solid #1565c0;
  border-radius: 4px;
}

.highlight-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: none;
}

.highlight-item {
  margin-bottom: 12px;
  padding: 14px 16px;
  border: 1px solid #e0e6ed;
  border-radius: 6px;
  background: #fff;
}

.highlight-item-loc-only {
  padding: 12px 16px;
}

.highlight-item-loc-only .highlight-item-head {
  margin-bottom: 0;
}

.highlight-item-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.highlight-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.8em;
  height: 1.8em;
  padding: 0 6px;
  border-radius: 50%;
  background: #1565c0;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
}

.highlight-loc {
  flex: 1;
  font-size: 0.9rem;
  font-weight: 600;
  color: #37474f;
}

.btn-highlight-del {
  padding: 4px 10px;
  border: 1px solid #ef9a9a;
  border-radius: 4px;
  background: #fff;
  color: #c62828;
  font-size: 0.82rem;
  font-family: inherit;
  cursor: pointer;
}

.btn-highlight-del:hover {
  background: #ffebee;
}

.highlight-text {
  margin: 0;
  padding: 10px 12px;
  font-size: 0.94rem;
  line-height: 1.75;
  color: #263238;
  background: #fff8e1;
  border-radius: 4px;
  border-left: 3px solid #ffb74d;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ---------- 错题反馈 ---------- */
.feedback-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.feedback-modal[hidden] {
  display: none !important;
}

.feedback-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 32, 44, 0.5);
}

.feedback-modal-panel {
  position: relative;
  width: min(560px, 100%);
  max-height: min(85vh, 720px);
  overflow: auto;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.feedback-modal-head,
.feedback-modal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}

.feedback-modal-foot {
  border-bottom: none;
  border-top: 1px solid var(--border);
  justify-content: flex-end;
}

.feedback-modal-head h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #263238;
}

.feedback-modal-x {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 4px;
  background: #eceff1;
  font-size: 1.2rem;
  cursor: pointer;
}

.feedback-modal-body {
  padding: 16px 18px;
}

.feedback-q-preview {
  margin: 0 0 14px;
  padding: 10px 12px;
  background: #f5f7fa;
  border-radius: 4px;
  font-size: 0.9rem;
  color: #455a64;
  line-height: 1.5;
}

.feedback-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
  font-size: 0.9rem;
  color: #546e7a;
}

.feedback-field select,
.feedback-field textarea {
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.92rem;
  font-family: inherit;
}

.feedback-modal-msg {
  min-height: 1.2em;
  margin: 0;
  font-size: 0.88rem;
  color: #c62828;
}

.btn-feedback-cancel,
.btn-feedback-submit {
  padding: 8px 16px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
}

.btn-feedback-cancel {
  background: #eceff1;
  color: #455a64;
}

.btn-feedback-submit {
  background: #c62828;
  color: #fff;
}

.feedback-panel {
  padding: 8px 24px 28px;
}

.fb-points-self {
  margin-bottom: 16px;
  padding: 12px 14px;
  background: #e8f5e9;
  border-radius: 6px;
  color: #2e7d32;
  font-size: 0.95rem;
}

.fb-points-hint {
  margin-left: 8px;
  font-size: 0.85rem;
  color: #66bb6a;
}

.fb-points-admin {
  margin-bottom: 20px;
}

.fb-points-admin h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  color: #37474f;
}

.fb-points-table-wrap {
  overflow-x: auto;
}

.fb-points-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.fb-points-table th,
.fb-points-table td {
  border-bottom: 1px solid var(--border);
  padding: 10px 8px;
  text-align: left;
}

.btn-fb-reset-points {
  padding: 4px 10px;
  border: 1px solid #ef9a9a;
  border-radius: 4px;
  background: #fff;
  color: #c62828;
  cursor: pointer;
  font-size: 0.82rem;
  font-family: inherit;
}

.btn-fb-reset-points:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.fb-subtabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.fb-subtab {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  color: #546e7a;
}

.fb-subtab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.fb-card {
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid #e0e6ed;
  border-radius: 8px;
  background: #fff;
}

.fb-card-head {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.fb-badge {
  padding: 2px 10px;
  border-radius: 10px;
  background: #fff3e0;
  color: #e65100;
  font-size: 0.8rem;
  font-weight: 600;
}

.fb-review.confirmed .fb-badge,
.fb-card .fb-badge {
  /* keep */
}

.fb-meta,
.fb-user {
  font-size: 0.88rem;
  color: #607d8b;
}

.fb-q {
  margin-bottom: 12px;
  padding: 12px;
  background: #f7f9fc;
  border-radius: 6px;
}

.fb-q-content {
  margin: 0 0 8px;
  line-height: 1.7;
  color: #263238;
  white-space: pre-wrap;
}

.fb-options {
  margin: 0;
  padding-left: 1.2em;
  font-size: 0.9rem;
  color: #455a64;
}

.fb-answer {
  margin: 8px 0 0;
  font-size: 0.9rem;
}

.fb-correction {
  white-space: pre-wrap;
  line-height: 1.7;
}

.fb-review {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 0.9rem;
}

.fb-review.pending {
  background: #fff8e1;
  color: #f57f17;
}

.fb-review.confirmed {
  background: #e8f5e9;
  color: #2e7d32;
}

.fb-review.rejected {
  background: #ffebee;
  color: #c62828;
}

.fb-card-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
}

.fb-time {
  font-size: 0.82rem;
  color: #90a4ae;
  margin-right: auto;
}

.btn-fb-confirm,
.btn-fb-reject,
.btn-fb-resubmit {
  padding: 6px 12px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  font-size: 0.86rem;
  font-family: inherit;
}

.btn-fb-confirm {
  background: #2e7d32;
  color: #fff;
}

.btn-fb-reject {
  background: #c62828;
  color: #fff;
}

.btn-fb-resubmit {
  background: #1565c0;
  color: #fff;
}

.btn-fb-edit-q,
.btn-fb-goto-q {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 4px;
  border: 1px solid #1565c0;
  background: #e3f2fd;
  color: #1565c0;
  font-size: 0.86rem;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
}

.btn-fb-goto-q:hover,
.btn-fb-edit-q:hover {
  background: #bbdefb;
}

.btn-edit-question {
  padding: 2px 10px;
  border: 1px solid #1565c0;
  border-radius: 4px;
  background: #e3f2fd;
  color: #1565c0;
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
}

.q-header-actions {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.btn-export-pdf {
  padding: 6px 12px;
  border: 1px solid #546e7a;
  border-radius: 6px;
  background: #fff;
  color: #37474f;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
}

.btn-export-pdf:hover {
  background: #eceff1;
}

.view-header .btn-export-pdf {
  margin-left: auto;
}

.material-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.q-focus-highlight {
  outline: 2px solid #1976d2;
  outline-offset: 4px;
}

.question-edit-modal {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.question-edit-modal[hidden] {
  display: none !important;
}

.question-edit-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 32, 44, 0.5);
}

.question-edit-panel {
  position: relative;
  width: min(640px, 100%);
  max-height: min(90vh, 860px);
  overflow: auto;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.question-edit-head,
.question-edit-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid #e2e8f0;
}

.question-edit-foot {
  border-bottom: none;
  border-top: 1px solid #e2e8f0;
  justify-content: flex-end;
}

.question-edit-head h3 {
  margin: 0;
  font-size: 17px;
}

.question-edit-x {
  border: none;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #718096;
}

.question-edit-body {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.qe-meta {
  margin: 0;
  color: #718096;
  font-size: 13px;
}

.qe-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
}

.qe-field textarea,
.qe-field input,
.qe-field select,
.qe-opt-key,
.qe-opt-text {
  padding: 8px 10px;
  border: 1px solid #cbd5e0;
  border-radius: 6px;
  font: inherit;
}

.qe-options-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.qe-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.qe-opt-row {
  display: grid;
  grid-template-columns: 56px 1fr 32px;
  gap: 8px;
  align-items: center;
}

.btn-qe-del-opt,
.btn-qe-add-opt {
  border: 1px solid #cbd5e0;
  background: #f7fafc;
  border-radius: 6px;
  cursor: pointer;
  padding: 6px 10px;
  font-family: inherit;
}

.qe-hint {
  margin: 0;
  font-size: 12px;
  color: #a0aec0;
}

.qe-msg {
  min-height: 1.2em;
  margin: 0;
  color: #c62828;
  font-size: 13px;
}

.btn-qe-save {
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  background: #1565c0;
  color: #fff;
  cursor: pointer;
  font-family: inherit;
}

.btn-qe-cancel {
  padding: 8px 16px;
  border: 1px solid #cbd5e0;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  font-family: inherit;
}

.legal-chapter {
  margin: 22px 0 12px;
  padding: 10px 14px;
  font-size: 1.12rem;
  font-weight: 700;
  color: #0d47a1;
  letter-spacing: 0.04em;
  line-height: 1.45;
  background: linear-gradient(90deg, #e3f2fd 0%, #f8fafc 100%);
  border-left: 4px solid #1565c0;
  border-radius: 4px;
}

.legal-chapter:first-child {
  margin-top: 0;
}

.legal-item {
  padding: 18px 20px;
  margin-bottom: 12px;
  border: 1px solid #d8e4f0;
  border-left: 4px solid var(--primary);
  border-radius: 6px;
  background: #ffffff;
}

.legal-article-no {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0d47a1;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

.legal-content {
  font-size: 0.95rem;
  line-height: 1.95;
  color: #263238;
}

.legal-paragraph {
  margin: 0;
  text-indent: 2em;
  color: #263238;
}

.legal-clause {
  margin: 0 0 12px;
  padding: 0;
  background: transparent;
  border: none;
  line-height: 1.95;
  color: #263238;
}

.legal-clause:last-child {
  margin-bottom: 0;
}

.legal-clause-label,
.legal-clause-text {
  color: #263238;
  font-weight: 400;
}

.legal-clause-label {
  font-weight: 600;
  margin-right: 2px;
}

/* ---------- 开屏：致各位考生的一封信 ---------- */
body.welcome-active {
  overflow: hidden;
}

.site-shell.is-locked {
  display: none;
}

.welcome-letter {
  position: fixed;
  inset: 0;
  z-index: 9999;
  overflow-y: auto;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(26, 95, 180, 0.12), transparent 45%),
    radial-gradient(ellipse at 80% 100%, rgba(13, 71, 161, 0.1), transparent 40%),
    linear-gradient(160deg, #e8eef6 0%, #f4f7fb 45%, #eef3f9 100%);
  opacity: 1;
  transition: opacity 0.35s ease;
}

.welcome-letter.is-leaving {
  opacity: 0;
  pointer-events: none;
}

.welcome-letter.is-hidden {
  display: none;
}

.welcome-letter-inner {
  min-height: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 16px 56px;
}

.welcome-letter-paper {
  width: min(780px, 100%);
  /* 不透明底，避免手机上划时透出下层页面 */
  background: #fcfdff;
  border: 1px solid #c9d7ea;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 18px 48px rgba(13, 71, 161, 0.12);
  padding: 48px 52px 40px;
  position: relative;
}

.welcome-letter-paper::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.welcome-letter-title {
  text-align: center;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-dark);
  letter-spacing: 0.16em;
  margin-bottom: 28px;
  line-height: 1.4;
}

.welcome-letter-salute {
  font-weight: 600;
  color: #1a2332;
  margin: 0 0 1.2em !important;
  text-indent: 0 !important;
  line-height: 2 !important;
}

.welcome-letter-paper p,
#letter-modal-body p {
  font-size: 1rem;
  line-height: 2.15;
  color: #2c3a4a;
  text-indent: 2em;
  margin: 0 0 1.25em;
  text-align: justify;
  letter-spacing: 0.02em;
}

.welcome-letter-paper p.welcome-letter-body,
#letter-modal-body p.welcome-letter-body {
  text-indent: 2em;
  line-height: 2.15;
  margin-bottom: 1.35em;
}

.welcome-letter-wish {
  margin-top: 1.8em !important;
  margin-bottom: 0.8em !important;
  font-weight: 600;
  color: var(--primary-dark);
  text-indent: 2em !important;
  line-height: 2.15 !important;
}

.welcome-letter-sign {
  text-indent: 0 !important;
  text-align: right !important;
  margin-top: 1.6em !important;
  margin-bottom: 0.5em !important;
  font-weight: 600;
  color: #1a2332;
  letter-spacing: 0.08em;
  line-height: 2 !important;
}

.welcome-letter-actions {
  text-align: center;
  padding-top: 8px;
  border-top: 1px dashed #c5d4e8;
}

.btn-start-journey {
  display: inline-block;
  margin-top: 28px;
  min-width: 220px;
  padding: 14px 36px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: #fff;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  box-shadow: 0 8px 20px rgba(26, 95, 180, 0.28);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-start-journey:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(26, 95, 180, 0.35);
}

.btn-start-journey:active {
  transform: translateY(0);
}

.welcome-letter-loading,
.welcome-letter-error {
  text-align: center;
  text-indent: 0 !important;
  padding: 48px 16px;
  color: var(--text-light);
  font-size: 1.05rem;
}

.welcome-letter-error {
  color: var(--accent);
}

/* ---------- 登录页 ---------- */
body.login-page {
  min-height: 100vh;
  display: block;
  background:
    radial-gradient(ellipse at 18% 10%, rgba(26, 95, 180, 0.16), transparent 42%),
    radial-gradient(ellipse at 85% 90%, rgba(13, 71, 161, 0.12), transparent 40%),
    linear-gradient(165deg, #dfe9f6 0%, #f3f6fb 48%, #e8eef7 100%);
}

body.modal-open {
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
}

body.modal-open .login-modal-panel {
  touch-action: pan-y;
}

.login-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 16px 40px;
}

.login-card {
  width: min(440px, 100%);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #c9d7ea;
  border-radius: 6px;
  box-shadow: 0 16px 40px rgba(13, 71, 161, 0.12);
  padding: 36px 32px 28px;
}

.login-brand {
  text-align: center;
  margin-bottom: 28px;
}

.login-brand h1 {
  font-size: 1.35rem;
  color: var(--primary-dark);
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.login-brand p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.5;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.login-field label {
  display: block;
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 6px;
  font-weight: 500;
}

.login-field input {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.login-field input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 95, 180, 0.12);
}

.login-error {
  color: var(--accent);
  font-size: 0.88rem;
  text-align: center;
  margin: 0;
}

.login-submit {
  margin-top: 4px;
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 8px 18px rgba(26, 95, 180, 0.25);
}

.login-submit:hover:not(:disabled) {
  transform: translateY(-1px);
}

.login-submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

.login-extra-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px dashed #c5d4e8;
}

.login-extra-btn {
  padding: 10px 8px;
  border: 1px solid #9bb6d8;
  border-radius: 4px;
  background: #f3f7fc;
  color: var(--primary-dark);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.login-extra-btn:hover {
  background: #e4eef9;
  border-color: var(--primary);
}

.login-extra-btn.is-selected,
.login-extra-btn[aria-pressed="true"] {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary-dark);
  box-shadow: 0 0 0 2px rgba(26, 95, 180, 0.2);
  font-weight: 600;
}

.login-extra-btn.is-selected:hover,
.login-extra-btn[aria-pressed="true"]:hover {
  color: #fff;
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.login-footer {
  margin-top: 20px;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

.login-footer p {
  margin: 0;
}

.login-footer .beian-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 16px;
  margin-top: 8px;
}

.login-footer .beian-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  text-decoration: none;
  line-height: 1.4;
}

.login-footer .beian-link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.login-footer .beian-icon {
  width: 16px;
  height: 16px;
  display: block;
  flex-shrink: 0;
}

.login-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  overflow: hidden;
  overscroll-behavior: none;
}

.login-modal.is-hidden {
  display: none;
}

.login-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 32, 58, 0.55);
}

.login-modal-panel {
  position: relative;
  z-index: 1;
  width: min(780px, 100%);
  max-height: min(88vh, 820px);
  margin: 0 auto;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background: #fcfdff;
}

.login-modal-panel.intro-panel {
  background: #ffffff;
  border: 1px solid #c9d7ea;
  box-shadow: 0 18px 48px rgba(13, 71, 161, 0.16);
  padding: 40px 36px 32px;
  border-radius: 4px;
}

.login-modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--text-light);
  cursor: pointer;
}

.login-modal-close:hover {
  color: var(--primary-dark);
}

.intro-title {
  text-align: center;
  color: var(--primary-dark);
  font-size: 1.4rem;
  margin-bottom: 20px;
  letter-spacing: 0.12em;
}

.intro-placeholder {
  text-align: center;
  color: var(--text-light);
  font-size: 1.1rem;
  letter-spacing: 0.18em;
  padding: 48px 12px 36px;
}

.intro-content {
  font-size: 1rem;
  line-height: 1.9;
  color: #2c3a4a;
  text-align: justify;
}

.intro-content .intro-section {
  margin: 22px 0 10px;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--primary-dark);
  letter-spacing: 0.06em;
}

.intro-content .intro-para {
  margin: 0 0 10px;
}

.intro-content .intro-para:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .login-shell {
    padding: 20px 12px 28px;
    justify-content: flex-start;
  }

  .login-card {
    padding: 24px 18px 20px;
    margin-top: 24px;
  }

  .login-brand h1 {
    font-size: 1.45rem;
    letter-spacing: 1px;
  }

  .login-brand p {
    font-size: 0.88rem;
  }

  .login-field input,
  .login-submit {
    font-size: 1rem;
    min-height: 44px;
  }

  .login-extra-actions {
    grid-template-columns: 1fr;
  }

  .login-extra-btn {
    min-height: 44px;
  }

  .login-modal {
    padding: 12px;
    align-items: stretch;
  }

  .login-modal-panel {
    width: 100%;
    max-height: none;
    height: 100%;
    margin: 0;
    border-radius: 10px;
    background: #fcfdff;
    box-shadow: 0 12px 32px rgba(13, 71, 161, 0.18);
  }

  .login-modal-panel.intro-panel {
    padding: 28px 18px 24px;
    background: #ffffff;
  }

  .welcome-letter-paper {
    padding: 28px 18px 24px;
    width: 100%;
    background: #fcfdff;
    box-shadow: none;
    border: none;
  }

  .welcome-letter-title {
    font-size: 1.25rem;
    letter-spacing: 0.08em;
  }

  .welcome-letter-paper p,
  #letter-modal-body p {
    font-size: 0.92rem;
    line-height: 1.95;
  }

  .btn-start-journey {
    width: 100%;
    min-width: 0;
    letter-spacing: 0.12em;
    min-height: 44px;
  }

  .login-footer {
    padding: 0 8px;
    font-size: 0.8rem;
  }
}

/* ---------- 会员兑换弹窗 / 会员中心 ---------- */
.redeem-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.redeem-modal-overlay[hidden] {
  display: none !important;
}

.redeem-modal {
  width: 100%;
  max-width: 420px;
  background: var(--white);
  border-radius: 6px;
  padding: 24px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.redeem-modal h3 {
  margin: 0 0 12px;
  color: var(--primary-dark);
  font-size: 1.15rem;
}

.redeem-modal-msg {
  margin: 0 0 14px;
  color: var(--text, #333);
  line-height: 1.6;
}

.redeem-modal-input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.redeem-modal-input:focus {
  outline: none;
  border-color: var(--primary);
}

.redeem-modal-error {
  margin: 8px 0 0;
  font-size: 0.85rem;
  color: #c62828;
}

.redeem-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.redeem-btn-cancel,
.redeem-btn-confirm {
  padding: 8px 18px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  border: 1px solid var(--border);
}

.redeem-btn-cancel {
  background: var(--white);
  color: var(--text-secondary, #666);
}

.redeem-btn-confirm {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.redeem-btn-confirm:hover {
  background: var(--primary-dark);
}

.redeem-btn-confirm:disabled {
  opacity: 0.65;
  cursor: wait;
}

.video-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 12px 0 4px;
}

.video-pager button {
  padding: 6px 16px;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 4px;
  cursor: pointer;
}

.video-pager button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.video-playlist-item.is-locked {
  opacity: 0.85;
}

.member-center {
  padding: 8px 0 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.member-level-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.member-level-card,
.member-redeem-card,
.member-modules-card {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 20px 24px;
  background: var(--white);
}

.member-level-label {
  font-size: 0.9rem;
  color: var(--text-secondary, #666);
}

.member-level-value {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.2;
  margin: 4px 0;
}

.member-level-desc {
  font-size: 1rem;
  color: var(--text, #333);
}

.member-level-hint {
  margin: 12px 0 0;
  font-size: 0.85rem;
  color: var(--text-light, #888);
}

.member-redeem-card h3,
.member-modules-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.member-redeem-card p {
  margin: 0 0 12px;
  font-size: 0.9rem;
  color: var(--text-secondary, #666);
}

.member-redeem-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.member-redeem-form .redeem-modal-input {
  flex: 1;
  min-width: 200px;
}

.member-redeem-msg {
  margin: 10px 0 0;
  font-size: 0.9rem;
}

.member-redeem-msg.is-ok { color: #2e7d32; }
.member-redeem-msg.is-error { color: #c62828; }

.member-modules-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.member-modules-table th,
.member-modules-table td {
  border-bottom: 1px solid var(--border);
  padding: 10px 8px;
  text-align: left;
}

.member-modules-table th {
  color: var(--text-secondary, #666);
  font-weight: 600;
}

.mem-unlocked { color: #2e7d32; }
.mem-locked { color: #c62828; }

.fav-category-meta {
  margin: 8px 0 12px;
  font-size: 0.9rem;
  color: var(--primary-dark);
  font-weight: 600;
}

.fav-category-card.is-empty {
  opacity: 0.72;
}

.fav-category-card.is-empty .btn-enter-material {
  background: #90a4ae;
  cursor: not-allowed;
}

.fav-category-card .btn-enter-material:disabled {
  opacity: 1;
}

/* ---------- 成员管理（仅管理员） ---------- */
.members-admin {
  padding: 8px 0 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.admin-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px 22px;
  background: var(--white);
}

.admin-card h3 {
  margin: 0 0 14px;
  font-size: 1.05rem;
  color: var(--primary-dark);
}

.admin-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.admin-card-head h3 {
  margin: 0;
}

.admin-create-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px 14px;
  align-items: end;
}

.admin-create-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.88rem;
  color: #607d8b;
}

.admin-create-form input,
.admin-level-select,
.admin-password-input {
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.92rem;
  font-family: inherit;
}

.btn-admin-create,
.btn-admin-save,
.btn-admin-refresh {
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  font-family: inherit;
  background: var(--primary);
  color: #fff;
}

.btn-admin-refresh {
  background: #607d8b;
}

.btn-admin-save {
  background: #2e7d32;
}

.btn-admin-create:hover,
.btn-admin-save:hover,
.btn-admin-refresh:hover {
  opacity: 0.92;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-members-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.admin-members-table th,
.admin-members-table td {
  border-bottom: 1px solid var(--border);
  padding: 10px 8px;
  text-align: left;
  vertical-align: middle;
}

.admin-members-table th {
  color: #607d8b;
  font-weight: 600;
  white-space: nowrap;
}

.admin-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 10px;
  background: #e3f2fd;
  color: #1565c0;
  font-size: 0.75rem;
  font-weight: 600;
}

.admin-hint {
  margin: 10px 0 0;
  font-size: 0.88rem;
  color: #546e7a;
  min-height: 1.2em;
}

.admin-password-input {
  min-width: 140px;
  width: 100%;
  max-width: 200px;
}

.admin-current-password {
  display: inline-block;
  padding: 4px 8px;
  font-size: 0.88rem;
  font-family: ui-monospace, Consolas, monospace;
  color: #37474f;
  background: #f5f7fa;
  border-radius: 4px;
  word-break: break-all;
}

/* ========================================
   手机端全局适配
   ======================================== */
@media (max-width: 768px) {
  .container {
    padding: 0 14px;
  }

  .header-top {
    font-size: 0.8rem;
    padding: 8px 0;
  }

  .header-top .container {
    gap: 8px;
  }

  .header-top .container > span:first-child {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .header-top #btn-logout {
    flex-shrink: 0;
    padding: 4px 0;
  }

  .header-main {
    padding: 14px 0;
  }

  .header-main .container {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  .site-title h1 {
    font-size: 1.35rem;
    letter-spacing: 1px;
  }

  .site-title p {
    font-size: 0.82rem;
    line-height: 1.45;
  }

  .nav-toggle {
    display: inline-flex;
    width: 100%;
    justify-content: center;
  }

  .main-nav .container {
    flex-direction: column;
    align-items: stretch;
    padding-top: 4px;
    padding-bottom: 4px;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .main-nav.is-open .nav-list {
    display: flex;
  }

  .nav-list li a {
    padding: 13px 16px;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 3px solid transparent;
  }

  .nav-list li a:hover,
  .nav-list li a.active {
    border-bottom-color: rgba(255, 255, 255, 0.08);
    border-left-color: #ffd54f;
  }

  .breadcrumb {
    padding: 10px 0;
    font-size: 0.8rem;
    overflow-x: auto;
    white-space: nowrap;
  }

  .main-content {
    padding: 16px 0 28px;
  }

  .section-header {
    padding: 14px 16px;
    flex-wrap: wrap;
    gap: 8px;
  }

  .section-header h2 {
    font-size: 1.1rem;
  }

  .home-banner {
    padding: 28px 0;
    margin-bottom: 20px;
  }

  .home-banner h2 {
    font-size: 1.25rem;
    line-height: 1.4;
    padding: 0 8px;
  }

  .home-banner p {
    font-size: 0.9rem;
    padding: 0 12px;
  }

  .section-cards,
  .section-cards.section-cards-4 {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 20px;
  }

  .section-card .card-body p {
    min-height: 0;
  }

  .section-card:hover {
    transform: none;
  }

  .footer-content {
    flex-direction: column;
    gap: 16px;
  }

  .site-footer {
    padding: 24px 0 16px;
  }

  .footer-bottom .beian-row {
    flex-direction: column;
    gap: 8px;
  }

  /* 模块 Tab：横向滑动，避免换行挤占 */
  .module-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    gap: 4px;
    padding: 8px 14px 0 10px;
    scrollbar-width: thin;
  }

  .module-tab {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 10px 14px;
    font-size: 0.88rem;
  }

  .module-tab.active::after {
    left: 10px;
    right: 10px;
  }

  .current-affairs-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
  }

  .announce-filter {
    padding: 12px 14px;
    gap: 6px;
  }

  .year-filter {
    padding: 8px 14px;
    min-height: 36px;
  }

  .year-group {
    padding: 14px 14px 4px;
  }

  .article-item {
    flex-direction: column;
    gap: 4px;
    padding: 12px 14px;
  }

  .article-detail {
    padding: 18px 14px;
  }

  .article-detail .detail-title {
    font-size: 1.2rem;
    line-height: 1.45;
  }

  /* 工具条 / 做题 / 资料标题 */
  .material-grid,
  .practice-material-grid,
  .study-material-grid,
  .legal-material-grid {
    grid-template-columns: 1fr !important;
    gap: 12px;
    padding: 12px;
  }

  .material-card,
  .practice-material-card,
  .study-material-card,
  .legal-material-card {
    padding: 16px 14px;
  }

  .material-card:hover,
  .practice-material-card:hover,
  .study-material-card:hover,
  .legal-material-card:hover {
    transform: none;
  }

  .practice-title-3d,
  .study-title-3d,
  .legal-title-3d,
  .material-card h3 {
    font-size: 1.05rem;
    letter-spacing: 0.02em;
    line-height: 1.45;
    text-shadow: none;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .practice-intro,
  .study-card-intro {
    font-size: 0.86rem;
    letter-spacing: 0;
    min-height: 0;
    line-height: 1.55;
  }

  .view-header,
  .legal-view-header {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 12px 14px;
  }

  .view-header .view-header-bar,
  .legal-view-header .view-header-bar,
  .study-view-header .view-header-bar {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .view-header h3,
  .view-header .view-header-title,
  .legal-view-header .legal-view-title,
  .view-header h3.legal-view-title,
  .study-view-title {
    flex: none;
    width: 100%;
    font-size: 1.02rem;
    line-height: 1.35;
    word-break: break-word;
    overflow-wrap: anywhere;
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    text-align: left;
    padding: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
  }

  .view-progress {
    width: 100%;
    font-size: 0.82rem;
  }

  .view-header .btn-back,
  .legal-view-header .btn-back,
  .study-view-header .btn-back {
    position: static;
    transform: none;
    width: fit-content;
    min-height: 34px;
    padding: 6px 12px;
  }

  .legal-item .btn-return-quiz {
    min-height: 40px;
    padding: 8px 14px;
  }

  .study-view-header {
    min-height: 0;
    padding: 12px 14px;
  }

  .study-view-title {
    width: 100%;
    padding-left: 0 !important;
    margin-top: 4px;
    font-size: 1.02rem;
    line-height: 1.35;
    word-break: break-word;
  }

  .quiz-toolbar {
    padding: 10px 12px;
    flex-direction: column;
    align-items: stretch;
  }

  .mode-switch,
  .page-size-switch {
    flex-wrap: wrap;
    width: 100%;
  }

  .mode-btn {
    flex: 1 1 auto;
    text-align: center;
    min-height: 40px;
  }

  .question-list {
    padding: 12px;
  }

  .question-card {
    padding: 14px 12px;
  }

  .q-header {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
  }

  .q-no {
    flex: 0 0 auto;
  }

  .q-section,
  .q-type {
    flex: 1 1 auto;
    max-width: 100%;
    white-space: normal;
    line-height: 1.35;
  }

  .q-header-actions {
    flex: 1 1 100%;
    margin-left: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .q-header-actions .btn-question-feedback,
  .q-header-actions .btn-favorite,
  .q-header-actions .btn-edit-question {
    width: 100%;
    margin: 0 !important;
    text-align: center;
    min-height: 40px;
    padding: 8px 10px;
  }

  .q-header-actions .btn-edit-question {
    grid-column: 1 / -1;
  }

  .q-content {
    font-size: 0.92rem;
    line-height: 1.65;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .q-option {
    padding: 12px;
    min-height: 44px;
    line-height: 1.5;
    word-break: break-word;
    white-space: normal;
  }

  .btn-question-feedback,
  .btn-favorite {
    margin-left: 0;
    margin-top: 0;
  }

  .pagination {
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    padding: 12px;
  }

  .pagination button,
  .pagination span {
    min-height: 36px;
  }

  /* 岗位职责 / 视频 / 面试侧栏 */
  .job-duties-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .job-duties-toolbar input {
    width: 100%;
  }

  .job-duties-panel,
  .interview-past-panel,
  .interview-forecast-panel,
  .interview-ooo-panel {
    padding: 14px 12px 18px;
    min-height: 0;
  }

  .duty-item {
    padding: 12px;
    gap: 10px;
  }

  .video-course-layout {
    min-height: 0;
    gap: 12px;
  }

  .video-catalog-list,
  .video-playlist-list {
    max-height: 240px;
  }

  .video-intro-header,
  .video-intro-body,
  .video-player-panel {
    padding-left: 12px;
    padding-right: 12px;
  }

  .video-detail-title {
    font-size: 1.05rem;
  }

  .course-video-player {
    max-height: none;
  }

  .video-rate-bar {
    gap: 6px;
  }

  .mock-interview-frame-wrap,
  .mock-interview-frame-wrap iframe {
    min-height: 70vh;
    height: 70vh;
  }

  .interview-ooo-module,
  .interview-articles-module,
  .interview-forecast-module {
    padding-left: 12px;
    padding-right: 12px;
  }

  .interview-ooo-layout {
    grid-template-columns: 1fr;
  }

  .core-textbook-panel {
    padding: 16px 4px 28px;
  }

  /* 学习资料 / 法规 */
  .study-material-grid,
  .legal-material-grid {
    grid-template-columns: 1fr !important;
  }

  .legal-search-bar,
  .study-view .study-search-bar {
    flex-wrap: wrap;
  }

  .legal-search-bar input[type="search"],
  .study-view .study-search-bar input[type="search"] {
    min-width: 0;
    flex: 1 1 100%;
  }

  .legal-highlight-toolbar {
    flex-wrap: wrap;
  }

  /* 个人中心 / 会员 / 管理 */
  .profile-user {
    font-size: 0.85rem;
    width: 100%;
  }

  .member-level-grid {
    grid-template-columns: 1fr;
  }

  .member-level-card,
  .member-redeem-card,
  .member-modules-card,
  .admin-card {
    padding: 16px 14px;
  }

  .member-redeem-form {
    flex-direction: column;
  }

  .member-redeem-form .redeem-modal-input {
    min-width: 0;
  }

  .member-modules-table,
  .admin-members-table {
    font-size: 0.82rem;
  }

  .member-modules-table th,
  .member-modules-table td,
  .admin-members-table th,
  .admin-members-table td {
    padding: 8px 6px;
  }

  .admin-card-head {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-create-form {
    grid-template-columns: 1fr;
  }

  .admin-password-input {
    max-width: none;
  }

  .online-summary {
    grid-template-columns: 1fr;
  }

  .online-card-main {
    flex-wrap: wrap;
  }

  .redeem-modal {
    padding: 20px 16px;
  }

  .redeem-modal-actions {
    flex-direction: column-reverse;
  }

  .redeem-btn-cancel,
  .redeem-btn-confirm {
    width: 100%;
    min-height: 44px;
  }

  .pdf-link-bar {
    padding: 12px 14px;
    text-align: center;
  }

  .empty-state,
  .loading-state {
    padding: 40px 16px;
  }

  .site-notice-body {
    padding-left: 4px;
    padding-right: 4px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 12px;
  }

  .site-title h1 {
    font-size: 1.2rem;
  }

  .home-banner h2 {
    font-size: 1.1rem;
  }

  .section-card .card-icon {
    font-size: 2rem;
  }

  .module-tab {
    padding: 9px 12px;
    font-size: 0.84rem;
  }

  .member-level-value {
    font-size: 2rem;
  }

  .login-brand h1 {
    font-size: 1.3rem;
  }
}

/* ---------- 申论学习 ---------- */
.shenlun-wrap {
  padding: 12px 20px 32px;
  box-sizing: border-box;
}

.shenlun-detail {
  padding: 8px 20px 36px;
  box-sizing: border-box;
}

/* 覆盖 study-view-header 的绝对定位返回键，避免与标题重叠 */
.shenlun-view-header.study-view-header,
.shenlun-view-header {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 10px;
  position: relative !important;
  min-height: 0 !important;
  margin: 0 0 16px !important;
  padding: 14px 16px !important;
  border-radius: 10px;
  background: #f7fafc;
  border: 1px solid #e3eaf2;
  box-sizing: border-box;
}

.shenlun-view-header .view-header-bar {
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  position: static !important;
}

.shenlun-view-header .btn-back {
  position: static !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
  flex: 0 0 auto;
  align-self: flex-start;
  margin: 0 !important;
}

.shenlun-view-header .view-header-title {
  display: block !important;
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  text-align: left !important;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--primary-dark);
}

.shenlun-detail-sub {
  margin: 0 !important;
  padding: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.shenlun-intro {
  margin: 0 0 22px;
  padding: 14px 16px;
  background: var(--primary-light);
  border-left: 3px solid var(--primary);
  color: var(--text-light);
  font-size: 0.92rem;
  line-height: 1.65;
}

.shenlun-lock-hint {
  margin-top: 8px;
  color: var(--accent);
  font-size: 0.88rem;
}

.shenlun-year-block {
  margin-bottom: 32px;
}

.shenlun-year-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.shenlun-year-title {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--primary-dark);
  line-height: 1;
}

.shenlun-year-sub {
  font-size: 0.86rem;
  color: var(--text-muted);
  font-weight: 500;
}

.shenlun-paper-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.shenlun-paper-card {
  --accent: var(--primary);
  --accent-soft: var(--primary-light);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  text-align: left;
  border: 1px solid var(--border);
  background: linear-gradient(165deg, #ffffff 0%, #f7f9fc 100%);
  border-radius: 10px;
  padding: 12px 14px 10px;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition:
    border-color 0.2s ease,
    box-shadow 0.22s ease,
    transform 0.22s ease,
    background 0.2s ease;
  animation: shenlun-card-in 0.45s ease both;
  animation-delay: calc(var(--card-i, 0) * 0.05s);
}

@keyframes shenlun-card-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 卷种仅用同色系深浅区分，避免高饱和绿/橙 */
.shenlun-paper-card.is-juan1 { --accent: var(--primary); --accent-soft: var(--primary-light); }
.shenlun-paper-card.is-juan2 { --accent: #3d6fa0; --accent-soft: #eef3f9; }
.shenlun-paper-card.is-zhifa { --accent: #5a7290; --accent-soft: #f0f3f7; }

.shenlun-card-accent {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent);
  opacity: 0.75;
  transition: width 0.2s ease, opacity 0.2s ease;
}

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

.shenlun-card-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--accent);
  background: var(--accent-soft);
}

.shenlun-card-type {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.shenlun-card-title {
  margin: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
}

.shenlun-card-title-main {
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.02em;
  line-height: 1.25;
}

.shenlun-alias {
  font-weight: 500;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.shenlun-card-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.shenlun-stat {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  padding: 2px 6px;
  border-radius: 6px;
  background: #f0f3f7;
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 600;
}

.shenlun-stat i {
  font-style: normal;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-light);
}

.shenlun-stat.is-score {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.shenlun-stat.is-score i {
  color: var(--primary-dark);
  font-size: 0.75rem;
}

.shenlun-card-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: 2px;
  padding-top: 6px;
  border-top: 1px dashed var(--border);
}

.shenlun-card-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #fff;
  /* 未选中时三种卷种统一灰蓝，避免申论一偏亮蓝 */
  background: #5a7290;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, filter 0.15s ease;
  pointer-events: none;
}

.shenlun-paper-card:hover {
  border-color: #b8c9de;
  box-shadow: 0 6px 16px rgba(26, 95, 180, 0.1);
  transform: translateY(-2px);
}

.shenlun-paper-card:hover .shenlun-card-accent {
  width: 4px;
  opacity: 1;
}

.shenlun-paper-card:hover .shenlun-card-cta-btn {
  background: var(--primary-dark);
  filter: none;
}

.shenlun-paper-card:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.shenlun-paper-card.is-selected,
.shenlun-paper-card:active {
  border-color: var(--primary);
  background: linear-gradient(165deg, #ffffff 0%, var(--primary-light) 130%);
  box-shadow:
    0 0 0 2px rgba(26, 95, 180, 0.18),
    0 6px 16px rgba(26, 95, 180, 0.1);
  transform: translateY(-1px);
}

.shenlun-paper-card.is-selected .shenlun-card-accent {
  width: 4px;
  opacity: 1;
}

.shenlun-paper-card.is-selected .shenlun-card-title-main {
  color: var(--primary-dark);
}

.shenlun-paper-card.is-selected .shenlun-card-cta-btn {
  background: var(--primary-dark);
  box-shadow: none;
}

.shenlun-paper-year {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.shenlun-paper-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: var(--primary-dark);
}

.shenlun-paper-meta {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.shenlun-q3-box {
  margin: 0 0 18px;
  padding: 14px 16px;
  background: var(--primary-light);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-light);
}

.shenlun-q3-box strong {
  display: block;
  margin-bottom: 6px;
  color: var(--primary-dark);
}

/* 左右分栏：材料 | 答案与解析 */
.shenlun-split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.95fr);
  gap: 18px;
  align-items: stretch;
  min-height: 62vh;
}

.shenlun-col-materials,
.shenlun-col-answer {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid #e3eaf2;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.shenlun-col-answer {
  background: #f7f9fc;
  border-color: var(--border);
}

.shenlun-col-head {
  padding: 12px 14px 10px;
  border-bottom: 1px solid var(--border);
  background: var(--primary-light);
  flex: 0 0 auto;
}

.shenlun-col-answer .shenlun-col-head {
  background: #eef3f9;
}

.shenlun-col-head .shenlun-section-title {
  margin: 0 0 8px;
  border-bottom: none;
  padding-bottom: 0;
  font-size: 1.05rem;
}

.shenlun-toc-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  background: transparent;
  padding: 0;
  margin: 0 0 8px;
}

.shenlun-toc-inline .shenlun-toc-link,
.shenlun-toc-link {
  color: var(--primary);
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--border);
  padding: 3px 8px;
  font-size: 0.82rem;
  border-radius: 4px;
}

.shenlun-toc-link:hover {
  background: var(--primary-light);
}

.shenlun-materials-scroll,
.shenlun-answer-scroll {
  flex: 1 1 auto;
  overflow: auto;
  padding: 12px 14px 18px;
  max-height: calc(100vh - 220px);
}

.shenlun-answer-toolbar {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.shenlun-answer-switcher {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.shenlun-answer-switcher.is-single {
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.shenlun-switcher-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.shenlun-switcher-current {
  font-size: 0.88rem;
  color: var(--text-light);
}

.shenlun-answer-opts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.shenlun-answer-opt {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-light);
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 0.8rem;
  cursor: pointer;
  line-height: 1.3;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.shenlun-answer-opt:hover {
  border-color: #b8c9de;
  color: var(--primary);
}

.shenlun-answer-opt.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  font-weight: 600;
}

.shenlun-pane-subtitle {
  margin: 0 0 8px;
  font-size: 0.92rem;
  color: var(--primary-dark);
}

.shenlun-answer-block {
  margin-bottom: 14px;
}

.shenlun-answer {
  margin: 0;
  border: none;
  border-radius: 0;
  padding: 0;
  background: transparent;
}

.shenlun-legend {
  margin-top: 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.shenlun-legend-swatch {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: #e8eef8;
  border: 1px solid #b8c9de;
}

.shenlun-section-title {
  margin: 0 0 14px;
  font-size: 1.12rem;
  color: var(--text);
  border-bottom: 2px solid var(--primary-light);
  padding-bottom: 8px;
}

.shenlun-material {
  margin-bottom: 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.shenlun-material-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  background: linear-gradient(90deg, var(--primary-light), #f7f9fc);
  border-bottom: 1px solid var(--border);
}

.shenlun-material-head h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--primary-dark);
}

.shenlun-mat-tags {
  font-size: 0.75rem;
  color: var(--primary);
  background: var(--primary-light);
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.shenlun-material-body {
  padding: 14px 16px 16px;
  font-size: 0.95rem;
  line-height: 1.85;
  color: #37474f;
}

.shenlun-material-body .shenlun-mat-p {
  margin: 0 0 0.9em;
  text-indent: 2em;
  line-height: inherit;
}

.shenlun-material-body .shenlun-mat-p:last-child {
  margin-bottom: 0;
}

mark.shenlun-evidence {
  background: rgba(26, 95, 180, 0.12);
  padding: 0.1em 0.15em;
  border-radius: 3px;
  cursor: pointer;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

mark.shenlun-evidence.is-hidden-answer {
  background: transparent;
  padding: 0;
  cursor: inherit;
  border-radius: 0;
}

mark.shenlun-evidence.is-hidden-answer .shenlun-evidence-tag {
  display: none;
}

mark.shenlun-evidence.is-active {
  outline: 2px solid var(--primary);
  background: rgba(26, 95, 180, 0.22);
}

.shenlun-evidence-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--primary-dark);
  background: #fff;
  border: 1px solid #b8c9de;
  border-radius: 3px;
  padding: 0 4px;
  margin-right: 4px;
  vertical-align: middle;
  line-height: 1.4;
}

.shenlun-answer-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.shenlun-score-badge {
  flex: 0 0 auto;
  min-width: 64px;
  text-align: center;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 8px 10px;
  border-radius: 8px;
}

.shenlun-answer-head h3 {
  margin: 0 0 4px;
  font-size: 1.08rem;
  color: var(--text);
}

.shenlun-answer-meta {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.shenlun-answer-prompt {
  font-size: 0.86rem;
  color: var(--text-light);
  background: #fff;
  border-left: 3px solid #b8c9de;
  padding: 8px 12px;
  margin-bottom: 12px;
  line-height: 1.55;
}

.shenlun-answer-body p,
.shenlun-ans-para {
  margin: 0 0 12px;
  line-height: 1.85;
  font-size: 0.95rem;
  color: var(--text);
  text-indent: 2em;
}

.shenlun-ans-para.is-mapped {
  cursor: pointer;
}

mark.shenlun-ans-ref {
  background: rgba(26, 95, 180, 0.12);
  color: inherit;
  padding: 0.05em 0.12em;
  border-radius: 3px;
  cursor: pointer;
  text-indent: 0;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  border-bottom: 1px dashed var(--primary);
}

mark.shenlun-ans-ref:hover,
mark.shenlun-ans-ref.is-active {
  background: rgba(26, 95, 180, 0.22);
  outline: 2px solid var(--primary);
}

.shenlun-ans-ref-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--primary-dark);
  background: #fff;
  border: 1px solid #b8c9de;
  border-radius: 3px;
  padding: 0 4px;
  margin-right: 4px;
  vertical-align: middle;
  line-height: 1.4;
  text-indent: 0;
}

.shenlun-ev-item {
  cursor: pointer;
  border-radius: 4px;
  padding: 2px 4px;
  margin-left: -4px;
}

.shenlun-ev-item:hover {
  background: var(--primary-light);
}

.shenlun-material.is-flash {
  box-shadow: 0 0 0 2px rgba(26, 95, 180, 0.35);
  transition: box-shadow 0.2s;
}

.shenlun-answer-body p {
  margin: 0 0 12px;
  line-height: 1.85;
  font-size: 0.95rem;
  color: var(--text);
  text-indent: 2em;
}

.shenlun-logic-panel {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
}

.shenlun-logic-hint {
  margin: 0 0 10px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.shenlun-point {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.shenlun-point:hover,
.shenlun-point.is-active {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(26, 95, 180, 0.12);
}

.shenlun-point-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
  font-size: 0.88rem;
}

.shenlun-point-summary {
  color: var(--text-light);
  flex: 1 1 180px;
}

.shenlun-point-mats a,
.shenlun-point-mat {
  color: var(--primary);
  text-decoration: none;
  font-size: 0.82rem;
  margin-right: 6px;
}

.shenlun-point-evidence {
  margin: 8px 0 0;
  padding-left: 18px;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.shenlun-point-evidence em {
  display: block;
  color: var(--primary);
  font-style: normal;
  margin-top: 2px;
}

.shenlun-ev-mat {
  color: var(--primary-dark);
  font-weight: 600;
  margin-right: 4px;
}

@media (max-width: 980px) {
  .shenlun-split {
    grid-template-columns: 1fr;
  }

  .shenlun-materials-scroll,
  .shenlun-answer-scroll {
    max-height: none;
  }

  .shenlun-col-answer {
    order: 2;
  }
}

/* ---------- 申论宽屏考试模式（接近粉笔题库练习页幅面） ---------- */
body.shenlun-exam-mode .header-top .container,
body.shenlun-exam-mode .header-main .container,
body.shenlun-exam-mode .main-nav .container,
body.shenlun-exam-mode .breadcrumb .container,
body.shenlun-exam-mode .main-content > .container,
body.shenlun-exam-mode .site-footer .container {
  max-width: min(1760px, calc(100vw - 24px));
  width: 100%;
  padding-left: 12px;
  padding-right: 12px;
}

body.shenlun-exam-mode .main-content {
  padding: 12px 0 24px;
}

body.shenlun-exam-mode .breadcrumb {
  padding: 8px 0;
}

body.shenlun-exam-mode .content-area {
  border-radius: 6px;
}

body.shenlun-exam-mode .section-header {
  padding: 12px 18px;
}

body.shenlun-exam-mode .shenlun-wrap,
body.shenlun-exam-mode .shenlun-detail {
  padding: 8px 12px 24px;
}

body.shenlun-exam-mode .shenlun-split {
  gap: 16px;
  min-height: calc(100vh - 168px);
}

body.shenlun-exam-mode .shenlun-materials-scroll,
body.shenlun-exam-mode .shenlun-answer-scroll {
  max-height: calc(100vh - 168px);
  min-height: calc(100vh - 220px);
}

body.shenlun-exam-mode .shenlun-material-body {
  font-size: 1.02rem;
  line-height: 1.9;
  padding: 16px 18px 18px;
}

body.shenlun-exam-mode .shenlun-answer-body p {
  font-size: 1.02rem;
  line-height: 1.9;
}

body.shenlun-exam-mode .shenlun-view-header {
  padding: 12px 16px !important;
  margin-bottom: 12px !important;
}

body.shenlun-exam-mode .shenlun-view-header .view-header-title {
  font-size: 1.2rem;
}

body.shenlun-exam-mode .module-tabs {
  margin-bottom: 10px;
}

@media (max-width: 980px) {
  body.shenlun-exam-mode .shenlun-materials-scroll,
  body.shenlun-exam-mode .shenlun-answer-scroll {
    max-height: none;
    min-height: 0;
  }

  body.shenlun-exam-mode .shenlun-split {
    min-height: 0;
  }
}

@media (max-width: 768px) {
  .shenlun-wrap,
  .shenlun-detail {
    padding: 10px 14px 28px;
  }

  .shenlun-paper-grid {
    grid-template-columns: 1fr;
  }

  .shenlun-answer-body p {
    text-indent: 0;
  }

  .shenlun-material-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .shenlun-view-header.study-view-header,
  .shenlun-view-header {
    padding: 12px 14px !important;
  }

  .shenlun-answer-opts {
    flex-direction: column;
  }

  .shenlun-answer-opt {
    width: 100%;
    text-align: left;
    border-radius: 8px;
  }

  body.shenlun-exam-mode .header-top .container,
  body.shenlun-exam-mode .header-main .container,
  body.shenlun-exam-mode .main-nav .container,
  body.shenlun-exam-mode .breadcrumb .container,
  body.shenlun-exam-mode .main-content > .container,
  body.shenlun-exam-mode .site-footer .container {
    max-width: 100%;
    padding-left: 12px;
    padding-right: 12px;
  }
}
