:root {
  --bg-a: #f7f3ff;
  --bg-b: #e8fbf6;
  --primary: #6a55ff;
  --primary-deep: #4d3de0;
  --accent: #24c8b1;
  --text-main: #21263a;
  --text-soft: #68708e;
  --card: #ffffff;
  --line: #e9e9f7;
  --shadow: 0 18px 40px rgba(69, 63, 125, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text-main);
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
  background: linear-gradient(160deg, var(--bg-a) 0%, #f3f8ff 40%, var(--bg-b) 100%);
  min-height: 100vh;
}

a {
  text-decoration: none;
}

.site-header .navbar {
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(106, 85, 255, 0.08);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: 0.3px;
}

.brand-orb {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #8bf3e4, #6a55ff 62%, #3f2ad6 100%);
  box-shadow: 0 0 0 5px rgba(106, 85, 255, 0.12);
}

.nav-link {
  color: var(--text-main);
  font-weight: 600;
  border-radius: 10px;
  padding: 0.5rem 0.75rem !important;
}

.nav-link:hover,
.nav-link:focus,
.nav-link.active {
  color: var(--primary);
  background: rgba(106, 85, 255, 0.09);
}

.btn-primary {
  border: 0;
  background: linear-gradient(135deg, var(--primary), #7f67ff);
  box-shadow: 0 10px 22px rgba(106, 85, 255, 0.3);
}

.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(135deg, var(--primary-deep), #6a55ff);
}

.btn-ghost {
  background: rgba(36, 200, 177, 0.14);
  color: #0f7264;
  border: 1px solid rgba(36, 200, 177, 0.28);
}

.btn-ghost:hover,
.btn-ghost:focus {
  background: rgba(36, 200, 177, 0.24);
  color: #0b5c51;
}

.btn-soft {
  background: #fff;
  color: var(--primary);
  border: 1px solid rgba(106, 85, 255, 0.2);
}

.btn-soft:hover,
.btn-soft:focus {
  background: rgba(106, 85, 255, 0.08);
  color: var(--primary-deep);
}

.hero-shell {
  background: var(--card);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(106, 85, 255, 0.1);
}

.hero-badge {
  display: inline-block;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: rgba(36, 200, 177, 0.15);
  color: #0f7264;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(1.7rem, 2.8vw, 2.5rem);
  margin-bottom: 1rem;
  font-weight: 800;
  letter-spacing: 0.6px;
}

.hero-desc {
  color: var(--text-soft);
  line-height: 1.85;
  margin-bottom: 1.5rem;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.quick-pill {
  background: linear-gradient(120deg, #fbfbff, #f3fffc);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.75rem 0.9rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.quick-pill strong {
  font-size: 1.05rem;
  color: var(--primary-deep);
}

.quick-pill span {
  color: var(--text-soft);
  font-size: 0.84rem;
}

.hero-image {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
}

.content-section {
  padding-top: 0.5rem;
}

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

.section-head h2 {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  margin-bottom: 0.35rem;
  font-weight: 800;
}

.section-head p {
  margin-bottom: 0;
  color: var(--text-soft);
}

.more-link {
  color: var(--primary);
  font-weight: 700;
}

.media-card {
  background: var(--card);
  border-radius: 16px;
  border: 1px solid rgba(106, 85, 255, 0.1);
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(78, 71, 137, 0.09);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.media-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 30px rgba(78, 71, 137, 0.14);
}

.media-image {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.media-body {
  padding: 1rem;
}

.media-body h3 {
  font-size: 1.08rem;
  margin: 0.45rem 0 0.5rem;
  font-weight: 800;
}

.media-body p {
  color: var(--text-soft);
  margin-bottom: 0.8rem;
  min-height: 3.2em;
  line-height: 1.6;
  font-size: 0.93rem;
}

.tag {
  display: inline-block;
  border-radius: 999px;
  padding: 0.26rem 0.68rem;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(106, 85, 255, 0.12);
  color: var(--primary-deep);
}

.meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: #7b84a5;
}

.entry-block {
  background: var(--card);
  border: 1px solid rgba(106, 85, 255, 0.1);
  border-radius: 18px;
  padding: 1.2rem;
  margin-bottom: 1rem;
  box-shadow: 0 8px 24px rgba(78, 71, 137, 0.08);
}

.entry-block h3 {
  font-size: 1.05rem;
  margin-bottom: 0.9rem;
  font-weight: 800;
}

.link-tile {
  display: block;
  text-align: center;
  padding: 0.7rem 0.65rem;
  border-radius: 12px;
  background: linear-gradient(120deg, #fcfdff, #f5fffc);
  border: 1px solid var(--line);
  color: #3b4260;
  font-weight: 600;
}

.link-tile:hover {
  border-color: rgba(106, 85, 255, 0.35);
  color: var(--primary);
}

.panel-box {
  background: var(--card);
  border-radius: 18px;
  border: 1px solid rgba(106, 85, 255, 0.1);
  padding: 1.2rem;
  box-shadow: 0 8px 24px rgba(78, 71, 137, 0.08);
  height: 100%;
}

.panel-box h2 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.update-list li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 0.8rem;
  border-bottom: 1px dashed var(--line);
  padding: 0.72rem 0;
}

.update-list li:last-child {
  border-bottom: 0;
}

.update-list .date {
  font-weight: 700;
  color: var(--primary);
}

.update-list p {
  margin: 0;
  color: var(--text-soft);
}

.accordion-item {
  border: 1px solid var(--line);
  border-radius: 12px !important;
  overflow: hidden;
  margin-bottom: 0.7rem;
}

.accordion-button {
  font-weight: 700;
  color: #2c3352;
}

.accordion-button:not(.collapsed) {
  background: rgba(106, 85, 255, 0.08);
  color: var(--primary-deep);
}

.form-control,
.form-select {
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 0.65rem 0.85rem;
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(106, 85, 255, 0.45);
  box-shadow: 0 0 0 0.2rem rgba(106, 85, 255, 0.14);
}

.comment-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.8rem;
  margin-bottom: 0.8rem;
  background: #fcfcff;
}

.comment-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.45rem;
  color: #3a4264;
}

.comment-top span {
  color: #8088a8;
  font-size: 0.88rem;
}

.comment-item p {
  margin: 0;
  color: var(--text-soft);
}

.friend-wrap h2 {
  margin-bottom: 0.2rem;
}

.friend-link {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(120deg, #ffffff, #f8fffd);
  color: #3b4260;
  font-weight: 700;
  min-height: 48px;
}

.friend-link:hover {
  color: var(--primary);
  border-color: rgba(106, 85, 255, 0.35);
}

.site-footer {
  margin-top: 1rem;
  padding: 2rem 0;
  color: rgba(255, 255, 255, 0.86);
  background: linear-gradient(135deg, #1f2342, #232e5e);
}

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

.footer-nav a {
  color: rgba(255, 255, 255, 0.82);
}

.footer-nav a:hover {
  color: #fff;
}

.back-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(120deg, var(--primary), #816dff);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(106, 85, 255, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.25s ease;
  z-index: 1055;
}

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

.toast {
  background: #20274d;
  color: #fff;
}

@media (max-width: 991.98px) {
  .section-head {
    align-items: center;
  }

  .hero-image {
    min-height: 300px;
    max-height: 420px;
  }

  .update-list li {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}

@media (max-width: 575.98px) {
  .hero-shell {
    border-radius: 20px;
  }

  .media-image {
    height: 180px;
  }

  .panel-box,
  .entry-block {
    padding: 1rem;
  }
}