:root {
  --bg-start: #f6f3ff;
  --bg-end: #eef9ff;
  --ink: #1e2742;
  --muted: #65708f;
  --primary: #6f52ff;
  --primary-dark: #5b43d1;
  --line: #d8e4ff;
  --card: rgba(255, 255, 255, 0.88);
  --shadow: 0 18px 40px rgba(46, 70, 130, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
  color: var(--ink);
  background: linear-gradient(170deg, var(--bg-start) 0%, var(--bg-end) 65%, #f7fcff 100%);
}

a {
  text-decoration: none;
}

.skip-link {
  position: absolute;
  left: 8px;
  top: 8px;
  z-index: 1200;
}

.site-header {
  z-index: 1030;
}

.navbar-glass {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(216, 228, 255, 0.8);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--ink);
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: linear-gradient(145deg, #23d5d5, #6f52ff);
  transform: rotate(-12deg);
  box-shadow: 0 8px 16px rgba(111, 82, 255, 0.35);
}

.nav-link {
  color: #314060;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.45rem 0.9rem !important;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-dark);
  background: rgba(111, 82, 255, 0.1);
}

.btn-primary {
  --bs-btn-bg: var(--primary);
  --bs-btn-border-color: var(--primary);
  --bs-btn-hover-bg: var(--primary-dark);
  --bs-btn-hover-border-color: var(--primary-dark);
  --bs-btn-active-bg: var(--primary-dark);
  --bs-btn-active-border-color: var(--primary-dark);
}

.hero-shell {
  background: var(--card);
  border: 1px solid rgba(216, 228, 255, 0.95);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 2rem;
}

.hero-kicker {
  display: inline-flex;
  margin: 0 0 0.9rem;
  color: #0f8577;
  font-weight: 700;
  background: rgba(35, 213, 213, 0.16);
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
}

.hero-title {
  font-size: clamp(1.55rem, 3vw, 2.3rem);
  line-height: 1.25;
  margin-bottom: 1rem;
  font-weight: 800;
}

.hero-text {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 1.2rem;
}

.hero-update {
  color: #4a5b81;
  font-size: 0.92rem;
  margin-top: 0.8rem;
}

.meta-chip {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.75);
  font-size: 0.88rem;
  color: #384769;
  padding: 0.55rem 0.75rem;
  text-align: center;
}

.hero-visual {
  position: relative;
  height: 100%;
  min-height: 340px;
}

.hero-label {
  position: absolute;
  left: 20px;
  bottom: 20px;
  font-size: 0.85rem;
  color: #fff;
  background: rgba(21, 28, 57, 0.8);
  border-radius: 999px;
  padding: 0.42rem 0.85rem;
}

.section-block {
  padding: 1.25rem 0 1.6rem;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  margin-bottom: 0.35rem;
  font-weight: 800;
}

.section-subtitle {
  color: var(--muted);
  margin-bottom: 0;
  font-size: 0.95rem;
}

.filter-group .btn {
  border-radius: 999px !important;
  border: 1px solid var(--line);
  color: #3e4c72;
  background: rgba(255, 255, 255, 0.85);
}

.filter-group .btn.active {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}

.media-card {
  background: var(--card);
  border: 1px solid rgba(216, 228, 255, 0.95);
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.media-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(54, 73, 126, 0.14);
}

.media-thumb {
  height: 176px;
  overflow: hidden;
}

.media-thumb.small {
  height: 148px;
}

.media-thumb img {
  transition: transform 0.35s ease;
}

.media-card:hover .media-thumb img {
  transform: scale(1.04);
}

.media-body {
  padding: 0.9rem;
}

.media-body p,
.media-body small {
  color: var(--muted);
  font-size: 0.88rem;
}

.tag {
  display: inline-block;
  padding: 0.2rem 0.58rem;
  border-radius: 999px;
  font-size: 0.74rem;
  background: rgba(111, 82, 255, 0.12);
  color: #4e3f9f;
  font-weight: 700;
}

.special-banner {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  min-height: 220px;
  border: 1px solid rgba(216, 228, 255, 0.95);
  box-shadow: 0 10px 28px rgba(51, 72, 129, 0.16);
}

.special-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem;
  color: #fff;
  background: linear-gradient(to top, rgba(17, 21, 42, 0.88), rgba(17, 21, 42, 0.12));
}

.special-overlay h3 {
  font-size: 1.12rem;
  margin: 0.35rem 0;
}

.special-overlay p {
  margin: 0;
  font-size: 0.86rem;
  opacity: 0.9;
}

.special-overlay .badge {
  background: rgba(255, 255, 255, 0.2);
}

.portal-group {
  margin-top: 1rem;
}

.portal-group-title {
  font-size: 1.02rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.portal-card {
  display: block;
  background: var(--card);
  border: 1px solid rgba(216, 228, 255, 0.95);
  border-radius: 14px;
  padding: 0.9rem;
  color: var(--ink);
  transition: all 0.2s ease;
}

.portal-card:hover {
  border-color: #c3d7ff;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(58, 77, 133, 0.1);
}

.portal-card h4 {
  font-size: 1rem;
  margin-bottom: 0.45rem;
  font-weight: 700;
}

.portal-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.6;
}

.custom-accordion .accordion-item {
  border: 1px solid rgba(216, 228, 255, 0.95);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 0.75rem;
  background: var(--card);
}

.custom-accordion .accordion-button {
  font-weight: 700;
  background: transparent;
}

.custom-accordion .accordion-button:not(.collapsed) {
  background: rgba(111, 82, 255, 0.08);
  color: #3b3176;
}

.feedback-card {
  background: var(--card);
  border: 1px solid rgba(216, 228, 255, 0.95);
  border-radius: 16px;
  padding: 1rem;
}

.form-control {
  border-radius: 10px;
  border-color: #d6e2ff;
}

.form-control:focus {
  box-shadow: 0 0 0 0.2rem rgba(111, 82, 255, 0.18);
  border-color: #bbaeff;
}

.comment-item {
  border-bottom: 1px dashed #d7e3ff;
  padding: 0.75rem 0;
}

.comment-item:last-child {
  border-bottom: 0;
}

.comment-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.comment-head span {
  color: var(--muted);
  font-size: 0.85rem;
}

.comment-item p {
  margin: 0;
  color: #405071;
}

.friend-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border-radius: 12px;
  border: 1px solid rgba(216, 228, 255, 0.95);
  background: var(--card);
  color: #2d3a5e;
  font-weight: 700;
  transition: all 0.2s ease;
}

.friend-link:hover {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}

.site-footer {
  margin-top: 1rem;
  padding: 1.8rem 0;
  color: #d8e2ff;
  background: linear-gradient(145deg, #202f55, #23214a);
}

.footer-brand {
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
}

.site-footer p,
.site-footer a {
  color: #d8e2ff;
}

.site-footer hr {
  border-color: rgba(216, 228, 255, 0.2);
}

.footer-links a:hover,
.site-footer a:hover {
  color: #fff;
}

.back-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(111, 82, 255, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.25s ease;
  z-index: 1050;
}

.back-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (max-width: 991.98px) {
  .hero-copy {
    padding: 1.35rem;
  }

  .hero-visual {
    min-height: 280px;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 575.98px) {
  .media-thumb {
    height: 132px;
  }

  .media-thumb.small {
    height: 116px;
  }

  .hero-title {
    font-size: 1.35rem;
  }

  .hero-kicker {
    font-size: 0.82rem;
  }
}