/* IC 面试笔试刷题模块 */
body.ic-interview-page {
  background: #f5f6f8;
  color: #1e293b;
}
body.ic-interview-page .main-container { padding-top: 72px; }

.iciv-hero {
  text-align: center;
  padding: 2.5rem 1rem 1.5rem;
}
.iciv-hero h1 {
  font-size: 1.85rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.iciv-hero p {
  color: #64748b;
  max-width: 640px;
  margin: 0 auto;
}

.iciv-filter-bar {
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  border: 1px solid #fed7aa;
  border-radius: 14px;
  padding: 1rem 1.25rem;
  margin: 0 auto 1.5rem;
  max-width: 1100px;
}
.iciv-filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.iciv-filter-tags a {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-size: 0.875rem;
  text-decoration: none;
}
.iciv-filter-tags a:hover,
.iciv-filter-tags a.active {
  background: #ea580c;
  border-color: #ea580c;
  color: #fff;
}

.iciv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto 3rem;
  padding: 0 1rem;
}
.iciv-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.1rem 1.15rem;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, transform 0.2s;
}
.iciv-card:hover {
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
  color: inherit;
}
.iciv-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #eff6ff;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}
.iciv-card__title {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.25rem;
  line-height: 1.35;
}
.iciv-card__desc {
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.iciv-card__meta {
  font-size: 0.78rem;
  color: #94a3b8;
  margin-top: 6px;
}

.iciv-set-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
  padding: 1rem 1.15rem 1.25rem;
}
.iciv-set-card {
  display: block;
  padding: 0.85rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  background: #fafafa;
  transition: box-shadow 0.15s, border-color 0.15s;
}
.iciv-set-card:hover {
  border-color: #fdba74;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.08);
  color: inherit;
}
.iciv-set-card__title {
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.35;
  margin-bottom: 0.35rem;
}
.iciv-set-card__meta {
  font-size: 0.78rem;
  color: #64748b;
}

.iciv-cat-head {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 1rem 1rem;
}
.iciv-cat-head h1 { font-size: 1.6rem; font-weight: 700; }
.iciv-cat-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 1rem;
}
.iciv-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
}
.iciv-btn--report {
  color: #b45309;
  border-color: #fcd34d;
}
.iciv-btn--primary { background: #2563eb; color: #fff; }
.iciv-btn--primary:hover { background: #1d4ed8; color: #fff; }
.iciv-btn--outline { background: #fff; border: 1px solid #cbd5e1; color: #334155; }
.iciv-btn--outline:hover { background: #f8fafc; color: #334155; }

.iciv-table-wrap {
  max-width: 1100px;
  margin: 0 auto 3rem;
  padding: 0 1rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
}
.iciv-table-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #e2e8f0;
}
.iciv-table-toolbar input,
.iciv-table-toolbar select {
  padding: 0.4rem 0.65rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.875rem;
}
.iciv-table {
  width: 100%;
  border-collapse: collapse;
}
.iciv-table th,
.iciv-table td {
  padding: 0.85rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.9rem;
}
.iciv-table th { background: #f8fafc; color: #64748b; font-weight: 600; }
.iciv-table a { color: #2563eb; text-decoration: none; font-weight: 500; }
.iciv-table a:hover { text-decoration: underline; }
.iciv-tag {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.75rem;
  margin-right: 4px;
}
.iciv-tag--type {
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 600;
}
.diff-easy { color: #059669; font-weight: 600; }
.diff-medium { color: #d97706; font-weight: 600; }
.diff-hard { color: #dc2626; font-weight: 600; }

.iciv-detail {
  max-width: 860px;
  margin: 0 auto 3rem;
  padding: 0 1rem;
}
.iciv-detail-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem 1.75rem;
  margin-bottom: 1rem;
}
.iciv-section { margin-bottom: 1.25rem; }
.iciv-section--question {
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #e2e8f0;
}
.iciv-section--answer { margin-bottom: 0; }
.iciv-section__label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #64748b;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.iciv-section__title {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.45;
  margin: 0 0 0.85rem;
  color: #0f172a;
}
.iciv-section__body {
  line-height: 1.75;
  color: #334155;
  white-space: pre-wrap;
  margin-bottom: 0.85rem;
}
.iciv-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}
.iciv-meta-row { margin-top: 0.25rem; }
.iciv-answer-panel {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 1rem 1.15rem;
}
.iciv-answer-panel__block + .iciv-answer-panel__block {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed #cbd5e1;
}
.iciv-answer-panel__subtitle {
  font-size: 0.92rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 0.55rem;
}
.iciv-answer-panel__text {
  line-height: 1.75;
  white-space: pre-line;
  color: #334155;
  margin: 0;
}
.iciv-kp-list {
  margin: 0;
  padding-left: 1.15rem;
  color: #334155;
  line-height: 1.7;
}
.iciv-kp-list li { margin-bottom: 0.25rem; }
.iciv-kp-list li::marker { color: #2563eb; }
.iciv-question-figures {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 0.85rem;
}
.iciv-question-figure {
  max-width: 100%;
  max-height: 420px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  padding: 6px;
}
.iciv-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 1.25rem;
}
.iciv-tabs a,
.iciv-tabs span {
  padding: 0.65rem 1rem;
  font-size: 0.9rem;
  color: #64748b;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.iciv-tabs a.active,
.iciv-tabs span.active {
  color: #2563eb;
  border-bottom-color: #2563eb;
  font-weight: 600;
}
.iciv-answer-block {
  position: relative;
  line-height: 1.75;
  white-space: pre-line;
  margin: 0;
}
.iciv-answer-panel.is-locked,
.iciv-answer-block.is-locked {
  max-height: 120px;
  overflow: hidden;
}
.iciv-answer-panel.is-locked::after,
.iciv-answer-block.is-locked::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 80px;
  background: linear-gradient(transparent, #fff);
}
.iciv-login-gate {
  text-align: center;
  margin-top: -2rem;
  position: relative;
  z-index: 2;
}
.iciv-login-gate a {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  background: #2563eb;
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
}
.iciv-quiz-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: #64748b;
}
.iciv-self-mark {
  display: flex;
  gap: 10px;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}
.iciv-alert {
  max-width: 1100px;
  margin: 0 auto 1rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}
