/* 备考资料 / 历年真题 */
.study-hero-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 20px;
}

.study-hero-tools a {
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  font-size: 14px;
  transition: background 0.2s;
}

.study-hero-tools a:hover {
  background: rgba(255, 255, 255, 0.35);
}

.study-layout {
  max-width: 1000px;
  margin: 0 auto;
}

.study-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.study-tabs__btn {
  padding: 8px 20px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #64748b;
  font-size: 14px;
  font-weight: 500;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}

.study-tabs__btn:hover {
  border-color: #93c5fd;
  color: #1e3a8a;
}

.study-tabs__btn.is-active {
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  border-color: transparent;
  color: #fff;
}

.study-panel[hidden] {
  display: none;
}

.study-panel {
  scroll-margin-top: 96px;
}

.material-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.material-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  padding: 24px;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.material-card:hover {
  border-color: #93c5fd;
  box-shadow: var(--shadow-md);
}

.material-card__tag {
  display: inline-block;
  font-size: 12px;
  color: #1e40af;
  background: #dbeafe;
  padding: 2px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.material-card__title {
  margin: 0 0 10px;
  font-size: 17px;
  color: #0f172a;
}

.material-card__text {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--color-muted);
  line-height: 1.7;
}

.material-card__link {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
}

.material-card__link:hover {
  text-decoration: underline;
}

.paper-table-wrap {
  overflow-x: auto;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid #e2e8f0;
}

.paper-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.paper-table th,
.paper-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid #f1f5f9;
}

.paper-table th {
  background: #f8fafc;
  color: #1e3a8a;
  font-weight: 600;
}

.paper-table tr:last-child td {
  border-bottom: none;
}

.paper-table a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
}

.paper-table a:hover {
  text-decoration: underline;
}

.study-cta {
  margin-top: 40px;
  padding: 28px 32px;
  background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
  border-radius: var(--radius);
  text-align: center;
  border: 1px solid #dbeafe;
}

.study-cta p {
  margin: 0 0 16px;
  color: var(--color-muted);
  line-height: 1.7;
}

.study-hub {
  padding: 56px 24px;
  background: #fff;
}

.study-hub__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.study-hub__card {
  background: var(--color-bg);
  border-radius: 12px;
  padding: 28px;
  border: 1px solid #e2e8f0;
}

.study-hub__card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  color: #1e3a8a;
}

.study-hub__card > p {
  margin: 0 0 20px;
  font-size: 14px;
  color: var(--color-muted);
}

.study-hub__links {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}

.study-hub__links li {
  padding: 10px 0;
  border-bottom: 1px dashed #e2e8f0;
}

.study-hub__links li:last-child {
  border-bottom: none;
}

.study-hub__links a {
  color: #334155;
  text-decoration: none;
  font-size: 14px;
}

.study-hub__links a:hover {
  color: #3b82f6;
}

.study-hub__more {
  font-size: 14px;
  font-weight: 600;
  color: #1e3a8a;
  text-decoration: none;
}

.study-hub__more:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .study-hub__grid {
    grid-template-columns: 1fr;
  }

  .paper-table th,
  .paper-table td {
    padding: 12px 14px;
    font-size: 13px;
  }
}
