/* ====================== 法律专题页 ====================== */

.topic-page {
  background: linear-gradient(180deg, #f5f6f8 0%, #fff 180px);
  padding-bottom: 64px;
}

.topic-hero {
  background: var(--color-primary);
  color: #fff;
  padding: 36px 0 48px;
  position: relative;
  overflow: hidden;
}
.topic-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 90% 20%, rgba(212, 175, 55, 0.22), transparent 55%),
    radial-gradient(ellipse 40% 60% at 10% 90%, rgba(255, 255, 255, 0.06), transparent 50%);
  pointer-events: none;
}
.topic-hero .container { position: relative; z-index: 1; }

.topic-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 18px;
}
.topic-crumb a { color: rgba(255, 255, 255, 0.7); }
.topic-crumb a:hover { color: var(--color-accent); }
.topic-crumb .sep { opacity: 0.45; }

.topic-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.topic-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.topic-badge-cat {
  background: var(--color-accent);
  color: #1a2332;
}
.topic-badge-meta {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.topic-hero h1 {
  font-size: clamp(24px, 3.2vw, 36px);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 12px;
  color: #fff;
  max-width: 820px;
}
.topic-hero-desc {
  font-size: 15px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.72);
  max-width: 680px;
  margin: 0;
}

.topic-layout {
  margin-top: -28px;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}

.topic-main,
.topic-side-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 28px rgba(26, 35, 50, 0.06);
}

.topic-main { padding: 28px 30px 32px; }
.topic-side-card { padding: 22px 22px 24px; margin-bottom: 16px; }

.topic-cover {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 22px;
}

.topic-intro {
  font-size: 15px;
  line-height: 1.9;
  color: #334155;
  margin-bottom: 28px;
}
.topic-intro p { margin: 0 0 12px; }
.topic-intro p:last-child { margin-bottom: 0; }
.topic-intro-hd { margin-bottom: 12px; }
.topic-intro--thin {
  padding: 14px 16px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
}
.topic-intro-warn {
  margin-top: 10px !important;
  font-size: 13px;
  color: #92400e;
}

.topic-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #eef2f7;
}
.topic-tags a {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 12px;
  transition: background 0.15s, color 0.15s;
}
.topic-tags a:hover {
  background: rgba(212, 175, 55, 0.18);
  color: #a16207;
}

.topic-section-hd {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 28px 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #eef2f7;
}
.topic-section-hd h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary);
}
.topic-section-hd span {
  font-size: 12px;
  color: #94a3b8;
}

.topic-item-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.topic-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  border: 1px solid #eef2f7;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.topic-item:hover {
  border-color: rgba(212, 175, 55, 0.45);
  box-shadow: 0 8px 20px rgba(26, 35, 50, 0.06);
  transform: translateY(-1px);
}
.topic-item-num {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  background: linear-gradient(145deg, #1a2332 0%, #2c3b52 100%);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  overflow: hidden;
}
.topic-item-num img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.topic-item-body h3 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 650;
  color: var(--color-primary);
  line-height: 1.45;
}
.topic-item:hover h3 { color: var(--color-accent-hover); }
.topic-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 6px;
}
.topic-item-type {
  color: #a16207;
  background: rgba(212, 175, 55, 0.14);
  padding: 1px 8px;
  border-radius: 999px;
  font-weight: 600;
}
.topic-item-sum {
  font-size: 13px;
  color: #64748b;
  line-height: 1.65;
  margin: 0;
}
.topic-item-tip {
  margin-top: 6px;
  font-size: 12px;
  color: #1a2332;
  background: #fffbeb;
  border-left: 3px solid var(--color-accent);
  padding: 6px 10px;
}

.topic-empty {
  text-align: center;
  padding: 36px 20px;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
}
.topic-empty-ico {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  border-radius: 14px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}
.topic-empty h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--color-primary);
}
.topic-empty p {
  margin: 0 0 16px;
  font-size: 13px;
  color: #64748b;
  line-height: 1.7;
}
.topic-empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.topic-side-card h3 {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-primary);
}
.topic-side-card p {
  margin: 0 0 16px;
  font-size: 13px;
  color: #64748b;
  line-height: 1.75;
}
.topic-side-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.topic-side-actions .btn-solid,
.topic-side-actions .btn-ghost {
  width: 100%;
  text-align: center;
  justify-content: center;
}
.topic-side-card .btn-ghost {
  border-color: #dbe2ea;
  color: var(--color-primary);
}
.topic-side-links a {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid #eef2f7;
  color: #334155;
  font-size: 14px;
}
.topic-side-links a:last-child { border-bottom: 0; }
.topic-side-links a:hover { color: var(--color-accent); }

.topic-side-more li {
  margin-bottom: 10px;
}
.topic-side-more a {
  display: block;
  font-size: 14px;
  color: #1a2332;
  line-height: 1.5;
  font-weight: 550;
}
.topic-side-more a:hover { color: var(--color-accent); }
.topic-side-more em {
  display: block;
  font-style: normal;
  font-size: 12px;
  color: #94a3b8;
  margin-top: 2px;
  font-weight: 400;
}

/* 列表页 */
.topics-index-hero {
  background: var(--color-primary);
  color: #fff;
  padding: 40px 0 56px;
  position: relative;
  overflow: hidden;
}
.topics-index-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 80% at 85% 30%, rgba(212, 175, 55, 0.2), transparent 55%);
  pointer-events: none;
}
.topics-index-hero .container { position: relative; z-index: 1; }
.topics-index-hero .badge-line {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}
.topics-index-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(26px, 3vw, 34px);
  color: #fff;
}
.topics-index-hero p {
  margin: 0;
  max-width: 560px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.75;
  font-size: 14px;
}
.topics-index-hero .hero-actions {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.topics-index-hero .btn-ghost {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}
.topics-index-hero .btn-ghost:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.topics-index-body {
  margin-top: -28px;
  padding-bottom: 64px;
}
.topics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.topic-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 6px 20px rgba(26, 35, 50, 0.05);
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
  min-height: 100%;
}
.topic-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(26, 35, 50, 0.1);
  border-color: rgba(212, 175, 55, 0.4);
}
.topic-card-cover {
  height: 140px;
  background:
    linear-gradient(135deg, rgba(26, 35, 50, 0.92), rgba(44, 59, 82, 0.88)),
    linear-gradient(120deg, #1a2332, #3b4d6b);
  display: flex;
  align-items: flex-end;
  padding: 16px;
  position: relative;
}
.topic-card-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.topic-card-cover .topic-card-cat {
  position: relative;
  z-index: 1;
  background: var(--color-accent);
  color: #1a2332;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}
.topic-card-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.topic-card-body h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.4;
}
.topic-card:hover h3 { color: var(--color-accent-hover); }
.topic-card-body p {
  margin: 0 0 14px;
  font-size: 13px;
  color: #64748b;
  line-height: 1.7;
  flex: 1;
}
.topic-card-foot {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: #94a3b8;
  padding-top: 12px;
  border-top: 1px solid #eef2f7;
}

@media (max-width: 1024px) {
  .topic-layout { grid-template-columns: 1fr; }
  .topics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .topic-main { padding: 20px 16px 24px; }
  .topic-item { grid-template-columns: 56px minmax(0, 1fr); }
  .topic-item-num { width: 56px; height: 56px; font-size: 18px; }
  .topics-grid { grid-template-columns: 1fr; }
}
