/* 观察剧 · 友情链接页 */

.links-apply {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 18px;
  padding: 28px 30px;
  background: var(--cream);
  border: 1px solid var(--line-soft);
}

.links-apply h2 {
  margin-top: 8px;
  font-size: 28px;
}

.links-apply p {
  max-width: 680px;
  margin-top: 8px;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--muted);
}

.links-apply p a {
  color: var(--accent);
  border-bottom: 1px solid rgba(224, 86, 47, 0.35);
}

.links-apply-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  flex: 0 0 auto;
}

.links-rules {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 34px;
  padding: 12px 16px;
  border: 1px dashed var(--line-soft);
  background: rgba(255, 250, 241, 0.45);
}

.links-rules span {
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gold);
}

.links-rules p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
}

.links-section {
  margin-bottom: 44px;
}

.links-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.links-section-head h2 {
  margin-top: 8px;
  font-size: 30px;
}

.links-section-head p {
  max-width: 360px;
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--muted);
  text-align: right;
}

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

.link-card {
  display: flex;
  flex-direction: column;
  padding: 22px;
  background: var(--cream);
  border: 1px solid var(--line-soft);
  transition: transform 0.18s ease, border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.link-card:target {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(183, 121, 31, 0.16);
}

.link-card:hover {
  transform: translate(-3px, -3px);
  border-color: var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
}

.link-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.link-card h3 {
  margin-top: 16px;
  font-size: 23px;
}

.link-host {
  margin-top: 3px;
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--gold);
}

.link-card p {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}

.link-visit {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: auto;
  padding-top: 18px;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
}

.link-visit svg {
  width: 14px;
  height: 14px;
  transition: transform 0.16s ease;
}

.link-card:hover .link-visit svg {
  transform: translate(2px, -2px);
}

@media (max-width: 980px) {
  .links-apply {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .links-section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .links-section-head p {
    text-align: left;
  }
}

@media (max-width: 760px) {
  .links-apply {
    padding: 22px;
  }

  .links-grid {
    grid-template-columns: 1fr;
  }

  .links-rules {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
}
