﻿:root {
  --bg-main: #f4f7ff;
  --bg-card: rgba(255, 255, 255, 0.76);
  --bg-card-alt: rgba(246, 250, 255, 0.84);
  --bg-glow-a: rgba(146, 181, 255, 0.34);
  --bg-glow-b: rgba(197, 184, 255, 0.32);
  --bg-glow-c: rgba(162, 218, 255, 0.24);
  --bg-hatch: rgba(255, 255, 255, 0);
  --bg-grain: rgba(255, 255, 255, 0);
  --text-main: #1c2f5f;
  --text-secondary: #516291;
  --accent: #3d62e8;
  --accent-deep: #314fbe;
  --border: rgba(141, 170, 244, 0.42);
  --glass-border: rgba(170, 189, 255, 0.52);
  --shadow-soft: 0 14px 30px rgba(66, 96, 184, 0.14);
  --shadow-hover: 0 18px 34px rgba(66, 96, 184, 0.2);
  --qa-q: #5a72ea;
  --qa-a: #63a8f2;
}

html {
  font-size: 16px;
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text-main);
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background-color: var(--bg-main);
  background-image:
    radial-gradient(1180px 740px at -8% -24%, var(--bg-glow-a) 0%, rgba(146, 181, 255, 0.14) 46%, transparent 74%),
    radial-gradient(980px 650px at 108% 2%, var(--bg-glow-b) 0%, rgba(197, 184, 255, 0.12) 44%, transparent 74%),
    radial-gradient(980px 660px at 90% 112%, var(--bg-glow-c) 0%, transparent 74%),
    linear-gradient(160deg, #f8fbff 0%, #f2f7ff 50%, #eef2ff 100%);
  background-attachment: fixed, fixed, fixed, fixed;
  overflow-x: clip;
}

.navbar {
  position: relative;
  background-color: rgba(255, 255, 255, 0.78) !important;
  border-bottom: 1px solid var(--glass-border);
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 14px rgba(97, 125, 205, 0.06);
}

.navbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(104, 132, 221, 0) 0%,
    rgba(104, 132, 221, 0.38) 22%,
    rgba(126, 104, 218, 0.56) 50%,
    rgba(104, 132, 221, 0.38) 78%,
    rgba(104, 132, 221, 0) 100%
  );
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 1.58rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-main) !important;
  text-decoration: none;
}

.navbar-brand-mark {
  width: 1.35rem;
  height: 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #5c73d8;
  font-size: 1rem;
  line-height: 1;
  background: radial-gradient(circle at 30% 28%, rgba(194, 209, 255, 0.6) 0%, rgba(166, 188, 255, 0.18) 68%, transparent 100%);
}

.navbar-brand-text {
  font-family: inherit;
}

.nav-link {
  color: var(--text-secondary) !important;
  font-size: 0.96rem;
}

.navbar-inner-row {
  align-items: center;
  gap: 0.9rem;
}

.navbar-primary {
  gap: 0.42rem;
  display: inline-flex;
  flex: 0 0 auto;
  width: max-content;
  max-width: 100%;
  margin-right: auto;
  align-items: center;
}

.navbar-primary .nav-link {
  position: relative;
  border-radius: 0;
  padding: 0.52rem 0.74rem !important;
  font-weight: 600;
  background: transparent !important;
  transition: color 0.2s ease;
}

.navbar-primary .nav-link::after {
  content: "";
  position: absolute;
  left: 0.68rem;
  right: 0.68rem;
  bottom: 0.22rem;
  height: 2px;
  border-radius: 999px;
  background: rgba(92, 117, 221, 0.45);
  opacity: 0;
  transform: scaleX(0.28);
  transform-origin: center;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.navbar-primary .nav-link:hover {
  color: #2f4fbd !important;
}

.navbar-primary .nav-link:hover::after {
  opacity: 0.55;
  transform: scaleX(1);
}

.navbar-primary .nav-link.is-active {
  color: #2c4cbf !important;
  font-weight: 700;
  background: transparent !important;
  box-shadow: none;
}

.navbar-primary .nav-link.is-active::after {
  background: #4a68dc;
  opacity: 1;
  transform: scaleX(1);
}

.nav-placeholder-link {
  opacity: 0.7;
  pointer-events: none;
}

.nav-admin-tools {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-left: auto;
  flex-shrink: 0;
}

.nav-admin-status {
  color: #5f6ea0;
  font-size: 0.84rem;
  white-space: nowrap;
}

.nav-tool-link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.container {
  max-width: 1160px;
}

.site-record-panel {
  margin: 1.15rem 0 1.45rem;
  padding: 0.66rem 0.92rem;
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.76) 0%, rgba(244, 249, 255, 0.8) 100%);
  box-shadow: 0 9px 20px rgba(75, 103, 188, 0.09);
  backdrop-filter: blur(7px);
}

.site-record-text {
  margin: 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.site-record-placeholder {
  color: #3e61d2;
  font-weight: 600;
}

.portal-home {
  padding: 1.75rem 0 2.8rem;
  overflow-x: clip;
}

.home-scroll-page {
  display: grid;
  gap: 1.45rem;
  position: relative;
  isolation: isolate;
  --home-bg-max-width: 1320px;
  --home-top-bg-height: clamp(390px, 48vw, 560px);
  --home-bottom-bg-height: clamp(520px, 66vw, 860px);
}

.home-scroll-page::before,
.home-scroll-page::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 0;
  width: min(var(--home-bg-max-width), calc(100% + 56px));
  background-repeat: no-repeat;
  background-size: 100% 100%;
  opacity: 0.82;
}

.home-scroll-page::before {
  top: 0;
  height: var(--home-top-bg-height);
  background-image: url("/images/home-bg-top-generated.png");
}

.home-scroll-page::after {
  bottom: 0;
  height: var(--home-bottom-bg-height);
  background-image: url("/images/home-bg-bottom-generated.png");
  opacity: 0.78;
}

.home-generated-petal-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("/images/home-bg-petals-generated.png");
  background-repeat: repeat-y;
  background-position: center top;
  background-size: min(var(--home-bg-max-width), calc(100% + 56px)) auto;
  opacity: 0.13;
}

.home-scroll-page > *:not(.home-generated-petal-overlay) {
  position: relative;
  z-index: 1;
}

.home-hero {
  padding: 1.5rem 1.45rem;
  display: grid;
  grid-template-columns: minmax(290px, 380px) minmax(0, 1fr);
  align-items: start;
  gap: 1.6rem;
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.8) 0%, rgba(244, 249, 255, 0.74) 100%);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.home-hero::after {
  content: "";
  position: absolute;
  inset: auto -120px -160px auto;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(170, 200, 255, 0.22) 0%, rgba(170, 200, 255, 0) 70%);
  pointer-events: none;
}

.home-hero-figure {
  align-self: start;
  justify-self: start;
  width: 100%;
  max-width: clamp(260px, 33vw, 360px);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(165, 192, 255, 0.5);
  background: linear-gradient(165deg, #eef3ff 0%, #f8fbff 100%);
  box-shadow: 0 10px 24px rgba(84, 115, 203, 0.12);
}

.home-hero-figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: left top;
}

.home-hero-content {
  min-width: 0;
  align-self: center;
  display: grid;
  align-content: start;
  justify-items: start;
  row-gap: 0;
}

.home-hero .portal-kicker {
  color: #5b79ea;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  margin-bottom: 0.5rem;
}

.home-hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4.6vw, 3.2rem);
  line-height: 1.18;
  color: #1f367f;
}

.home-hero-title {
  display: inline-grid;
  gap: clamp(0.16rem, 0.52vw, 0.34rem);
  line-height: 1.05;
  margin: 0;
}

.home-hero-title-line {
  display: block;
  width: fit-content;
}

.home-hero-title-row {
  display: inline-flex;
  align-items: flex-end;
  gap: 10px;
  max-width: 100%;
}

.home-hero-title-lead {
  font-size: clamp(1rem, 2.1vw, 1.38rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #6a7fb7;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

.home-hero-title-main {
  position: relative;
  padding-bottom: 0;
  font-size: clamp(2.38rem, 4.9vw, 4.18rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.06;
  color: #3d5297;
  background-image: none;
  background-clip: border-box;
  -webkit-background-clip: border-box;
  -webkit-text-fill-color: currentColor;
  text-shadow: 0 6px 14px rgba(74, 104, 196, 0.16);
}

.home-hero-title-main::after {
  content: none;
}

.home-hero-subtitle {
  margin: 0 !important;
  color: #4e6fda !important;
  font-weight: 500;
  font-size: clamp(0.96rem, 1.7vw, 1.12rem);
  letter-spacing: 0.08em;
  display: inline-flex;
  align-items: flex-end;
  position: relative;
  line-height: 1.08;
  white-space: nowrap;
}

.home-hero-subtitle::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(149, 170, 231, 0.62) 0%,
    rgba(149, 170, 231, 0.18) 70%,
    rgba(149, 170, 231, 0) 100%
  );
}

.home-hero-desc-group {
  margin-top: 0.86rem;
  max-width: 44rem;
  display: grid;
  gap: 0.3rem;
  padding-left: 0.82rem;
  border-left: 1px solid rgba(146, 170, 231, 0.34);
}

.home-hero-desc {
  margin: 0 !important;
  color: #6070a6 !important;
  font-size: clamp(0.98rem, 1.42vw, 1.04rem);
  line-height: 1.76 !important;
  display: block;
}

.home-hero-desc::before {
  content: none;
}

.home-hero-runtime {
  margin-top: 0.68rem !important;
  color: #7688bd !important;
  font-size: 0.83rem;
  letter-spacing: 0.04em;
  line-height: 1.5;
}

.hero-action-row {
  margin-top: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.hero-action-row .module-button {
  min-width: 118px;
  text-align: center;
}

.home-info-grid {
  margin-top: 1.08rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.72rem;
}

.home-info-block {
  border: 1px solid rgba(170, 193, 255, 0.44);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.72);
  padding: 0.72rem;
  display: grid;
  gap: 0.4rem;
}

.home-info-block h3 {
  margin: 0;
  font-size: 0.92rem;
  color: #3c57b6;
}

.visitor-info-line {
  padding: 0.46rem 0.55rem;
  border: 1px solid rgba(161, 188, 255, 0.42);
  border-radius: 11px;
  background: rgba(247, 251, 255, 0.9);
}

.visitor-info-line span {
  color: #6a79a8;
}

.visitor-info-line strong {
  color: #2f457f;
}

.stats-grid-corner {
  gap: 0.42rem;
}

.stats-item-corner {
  border: 1px solid rgba(157, 186, 255, 0.46);
  border-radius: 11px;
  background: rgba(247, 251, 255, 0.92);
  padding: 0.28rem 0.45rem;
}

.stats-item-corner .stats-label {
  color: #5d6fa4;
}

.stats-item-corner .stats-number {
  color: #2f4995;
}

.home-section-block {
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.76) 0%, rgba(245, 250, 255, 0.78) 100%);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(9px);
  padding: 1.16rem 1.12rem;
}

.home-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.98rem;
}

.home-section-title-wrap {
  display: flex;
  align-items: flex-end;
  flex: 1 1 auto;
  min-width: 0;
  flex-wrap: wrap;
  gap: 0.28rem 0.62rem;
}

.home-section-head h2 {
  margin: 0;
  font-size: 1.38rem;
  color: #273e88;
}

.home-section-desc {
  margin: 0;
  max-width: 72ch;
  color: #5b6fa5;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.52;
}

.home-section-head .home-board-view-more-btn {
  border-color: rgba(147, 176, 255, 0.56);
  background: rgba(255, 255, 255, 0.66);
  color: #5069c8;
  padding: 0.34rem 0.76rem;
  font-size: 0.82rem;
}

.home-section-head .home-board-view-more-btn:hover {
  background: rgba(230, 239, 255, 0.7);
  color: #2f4ebf;
}

.announcement-list {
  display: grid;
  gap: 0.76rem;
}

.announcement-item {
  border: 1px solid rgba(166, 190, 255, 0.44);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  padding: 0.84rem 0.95rem;
  box-shadow: 0 8px 18px rgba(86, 118, 210, 0.08);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.82rem;
  align-items: center;
}

.announcement-main {
  min-width: 0;
}

.announcement-item h3 {
  margin: 0.45rem 0 0;
  font-size: 1.06rem;
  color: #274086;
}

.announcement-item p {
  margin: 0.48rem 0 0;
  color: var(--text-secondary);
  line-height: 1.72;
}

.announcement-item .module-button {
  margin-top: 0;
  align-self: center;
}

.home-entry-inline-btn {
  justify-self: end;
}

.announcement-meta {
  display: flex;
  align-items: center;
  gap: 0.62rem;
  flex-wrap: wrap;
}

.announcement-date {
  color: #6d7caf;
  font-size: 0.8rem;
  font-weight: 600;
}

.announcement-tag {
  border: 1px solid rgba(144, 172, 245, 0.48);
  background: rgba(218, 231, 255, 0.66);
  color: #3c5ac2;
  border-radius: 999px;
  padding: 0.14rem 0.56rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.announcement-item:nth-child(4n + 2) .announcement-tag {
  background: rgba(228, 222, 255, 0.7);
  border-color: rgba(173, 156, 244, 0.5);
  color: #5a4cba;
}

.announcement-item:nth-child(4n + 3) .announcement-tag {
  background: rgba(221, 245, 234, 0.75);
  border-color: rgba(143, 214, 183, 0.6);
  color: #318e67;
}

.announcement-item:nth-child(4n) .announcement-tag {
  background: rgba(233, 244, 255, 0.78);
  border-color: rgba(151, 197, 243, 0.62);
  color: #3a73b8;
}

.recommend-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.05rem;
}

.recommend-card {
  position: relative;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  overflow: visible;
  display: flex;
  flex-direction: column;
  box-shadow: none;
  transition: transform 0.24s ease;
  cursor: default;
}

.recommend-note-card.is-clickable {
  cursor: pointer;
}

.recommend-note-card:focus-visible {
  outline: 2px solid rgba(106, 140, 233, 0.86);
  outline-offset: 4px;
  border-radius: 16px;
}

.recommend-note-card::before,
.recommend-note-card::after {
  content: none;
}

.recommend-note-flip {
  position: relative;
  min-height: 243px;
  isolation: isolate;
}

.recommend-note-page {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border: 1px solid rgba(165, 190, 252, 0.52);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(246, 250, 255, 0.98) 0%, rgba(243, 248, 255, 0.94) 100%),
    repeating-linear-gradient(
      180deg,
      rgba(142, 170, 240, 0.07) 0,
      rgba(142, 170, 240, 0.07) 1px,
      transparent 1px,
      transparent 30px
    );
  padding: 0.84rem 0.84rem 0.82rem;
  display: grid;
  gap: 0.5rem;
  height: 100%;
  box-shadow: 0 12px 20px rgba(87, 116, 203, 0.12);
  transition:
    transform 0.38s cubic-bezier(0.2, 0.72, 0.16, 1),
    box-shadow 0.26s ease,
    opacity 0.22s ease;
}

.recommend-note-cover {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  height: 100%;
  min-height: 66%;
  border: 1px solid rgba(164, 186, 241, 0.42);
  background: linear-gradient(145deg, rgba(232, 240, 255, 0.92) 0%, rgba(221, 231, 255, 0.86) 100%);
}

.recommend-note-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.recommend-note-front {
  z-index: 3;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 0.5rem;
  align-content: stretch;
  min-height: 0;
  transform: translateY(0);
  opacity: 1;
  transition-delay: 0s, 0s, 0s;
}

.recommend-note-page::before {
  content: "";
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  top: 0.68rem;
  border-top: 2px dashed rgba(163, 181, 243, 0.46);
}

.recommend-note-page::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 42px;
  height: 42px;
  border-radius: 0 16px 0 14px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94) 0%, rgba(221, 232, 255, 0.85) 100%);
  box-shadow: -2px 2px 4px rgba(132, 154, 218, 0.15);
  clip-path: polygon(100% 0, 0 0, 100% 100%);
  transition: transform 0.24s ease, filter 0.24s ease;
}

.recommend-note-back {
  z-index: 2;
  display: grid;
  align-content: center;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition:
    transform 0.38s cubic-bezier(0.2, 0.72, 0.16, 1),
    box-shadow 0.26s ease,
    opacity 0.22s ease;
}

.recommend-note-back::before,
.recommend-note-back::after {
  content: none;
}

.recommend-note-card.is-page-turned .recommend-note-front,
.recommend-note-card.is-intro-open .recommend-note-front,
.recommend-note-card.is-flipped .recommend-note-front {
  transform: translateY(14px);
  opacity: 0;
  box-shadow: 0 8px 14px rgba(79, 110, 204, 0.08);
}

.recommend-note-card.is-page-turned .recommend-note-back,
.recommend-note-card.is-intro-open .recommend-note-back,
.recommend-note-card.is-flipped .recommend-note-back {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  box-shadow: 0 16px 26px rgba(79, 110, 204, 0.18);
}

@media (hover: hover) and (pointer: fine) {
  .recommend-note-card:hover .recommend-note-front {
    transform: translateY(14px);
    opacity: 0;
    box-shadow: 0 8px 14px rgba(79, 110, 204, 0.08);
  }

  .recommend-note-card:hover .recommend-note-back {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    box-shadow: 0 16px 26px rgba(79, 110, 204, 0.18);
  }
}

@media (hover: hover) and (pointer: fine) {
  .recommend-card:hover {
    transform: translateY(-5px);
  }
}

.recommend-note-card.is-page-turned,
.recommend-note-card.is-intro-open,
.recommend-note-card.is-flipped {
  transform: translateY(-4px);
}

.recommend-note-front h3 {
  margin: 0;
  font-size: 1.05rem;
  color: #283f87;
  line-height: 1.4;
  padding-top: 0.5rem;
  overflow-wrap: anywhere;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.recommend-note-intro {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.76;
  font-size: 0.93rem;
  overflow-wrap: anywhere;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.recommend-note-back .recommend-note-intro {
  display: -webkit-box;
  -webkit-line-clamp: 8;
  line-clamp: 8;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.recommend-note-card.is-clickable .recommend-note-front,
.recommend-note-card.is-clickable .recommend-note-back {
  user-select: none;
}

.recommend-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.79rem;
  color: #6171a8;
}

.recommend-note-meta {
  margin-top: 0.05rem;
}

.recommend-tag {
  border: 1px solid rgba(161, 178, 244, 0.52);
  background: rgba(226, 221, 255, 0.66);
  color: #4f4fb3;
  border-radius: 999px;
  padding: 0.13rem 0.56rem;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recommend-view {
  color: #6c7db0;
  font-weight: 600;
}

.recommend-note-time {
  white-space: nowrap;
}

.qa-list {
  display: grid;
  gap: 0.72rem;
}

.qa-item {
  border: 1px solid rgba(166, 191, 255, 0.44);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  padding: 0.78rem 0.9rem;
  display: grid;
  gap: 0.4rem;
}

.qa-question {
  margin: 0;
  font-weight: 700;
  color: #273f86;
  padding-left: 2rem;
  position: relative;
  line-height: 1.52;
}

.qa-question::before {
  content: "Q";
  position: absolute;
  left: 0;
  top: 0.02rem;
  width: 1.36rem;
  height: 1.36rem;
  border-radius: 50%;
  background: rgba(95, 116, 230, 0.16);
  border: 1px solid rgba(95, 116, 230, 0.35);
  color: var(--qa-q);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
}

.qa-answer {
  margin: 0;
  color: var(--text-secondary);
  padding-left: 2rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(170, 193, 255, 0.34);
  position: relative;
  line-height: 1.72;
}

.qa-answer::before {
  content: "A";
  position: absolute;
  left: 0;
  top: 0.52rem;
  width: 1.36rem;
  height: 1.36rem;
  border-radius: 50%;
  background: rgba(107, 171, 241, 0.16);
  border: 1px solid rgba(107, 171, 241, 0.35);
  color: var(--qa-a);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
}

.home-recent-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.54rem;
}

.home-recent-link {
  display: grid;
  grid-template-columns: 108px 52px minmax(0, 1fr) auto;
  gap: 0.34rem;
  align-items: center;
  border: 1px solid rgba(166, 191, 255, 0.44);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  padding: 0.62rem 0.76rem;
  text-decoration: none;
  color: var(--text-main);
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.home-recent-link:hover {
  border-color: rgba(121, 156, 246, 0.65);
  background: rgba(236, 244, 255, 0.72);
  transform: translateY(-1px);
}

.home-recent-link.is-static {
  cursor: default;
}

.home-recent-link.is-static:hover {
  border-color: rgba(166, 191, 255, 0.44);
  background: rgba(255, 255, 255, 0.72);
  transform: none;
}

.home-recent-date {
  font-size: 0.8rem;
  color: #6d7db0;
  font-weight: 600;
}

.home-recent-type {
  justify-self: start;
  border: 1px solid rgba(166, 189, 255, 0.6);
  border-radius: 999px;
  background: rgba(220, 233, 255, 0.72);
  color: #4863c2;
  padding: 0.12rem 0.5rem;
  font-size: 0.74rem;
  font-weight: 600;
  margin-left: -4px;
}

.home-recent-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #2b447f;
  margin-left: -4px;
}

.home-recent-arrow {
  color: #6d85d3;
  font-size: 1rem;
  line-height: 1;
}

.home-recent-inline-btn {
  justify-self: end;
  padding: 0.22rem 0.72rem;
  font-size: 0.8rem;
  line-height: 1.15;
  white-space: nowrap;
  pointer-events: none;
}

.home-board-shell-editor {
  margin-top: 0.35rem;
}

.portal-hero {
  padding: 0;
}

.hero-title-row {
  display: flex;
  justify-content: flex-start;
  align-items: stretch;
  gap: 1.1rem;
}

.hero-title-main,
.hero-side-board {
  background: linear-gradient(160deg, var(--bg-card) 0%, var(--bg-card-alt) 100%);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 14px 32px rgba(76, 103, 184, 0.12);
}

.hero-action-row {
  margin-top: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.hero-action-row .module-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero-title-main {
  flex: 1;
  min-width: 0;
  padding: 2rem 1.8rem;
}

.hero-side-column {
  width: 198px;
  flex-shrink: 0;
  display: grid;
  gap: 0.62rem;
}

.hero-side-board {
  padding: 0.52rem 0.56rem;
  gap: 0.44rem;
  align-content: start;
}

.portal-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.portal-hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4.6vw, 3.2rem);
  color: #1f367f;
}

.portal-hero p {
  margin: 0.9rem 0 0;
  line-height: 1.68;
  max-width: 680px;
  color: var(--text-secondary);
}

.hero-welcome-note {
  margin-top: 0.75rem !important;
  padding: 0.6rem 0.8rem;
  border-radius: 12px;
  border: 1px dashed rgba(151, 179, 255, 0.58);
  background: linear-gradient(160deg, rgba(243, 249, 255, 0.92) 0%, rgba(232, 241, 255, 0.84) 100%);
  color: #4f67bc !important;
  font-weight: 600;
}

.hero-stats-corner {
  padding: 0.34rem 0 0;
  display: flex;
  flex-direction: column;
  border-top: 1px dashed rgba(164, 186, 247, 0.62);
}

.hero-stats-corner h3 {
  margin: 0 0 0.14rem;
  font-size: 0.85rem;
  color: #516abf;
  line-height: 1.2;
}

.hero-visitor-corner {
  padding: 0;
}

.hero-visitor-corner h3 {
  margin: 0 0 0.28rem;
  font-size: 0.84rem;
  color: #516abf;
  line-height: 1.2;
}

.visitor-info-line {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.46rem 0.55rem;
  border: 1px solid rgba(161, 188, 255, 0.42);
  border-radius: 11px;
  background: rgba(247, 251, 255, 0.9);
}

.visitor-info-line + .visitor-info-line {
  margin-top: 0.36rem;
}

.visitor-info-line span {
  font-size: 0.76rem;
  color: #6a79a8;
  line-height: 1.15;
}

.visitor-info-line strong {
  font-size: 0.83rem;
  color: #2f457f;
  line-height: 1.3;
  font-weight: 700;
  word-break: break-word;
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.section-card {
  position: relative;
  background: linear-gradient(160deg, var(--bg-card) 0%, var(--bg-card-alt) 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.2rem 1.1rem;
  box-shadow: 0 9px 22px rgba(145, 98, 58, 0.1);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.section-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(145, 98, 58, 0.18);
}

.section-card h2 {
  margin: 0;
  font-size: 1.28rem;
  padding-right: 5.4rem;
}

.section-card p {
  margin: 0.65rem 0 0;
  min-height: 3.1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.section-link {
  display: inline-block;
  margin-top: 0.9rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.section-link:hover {
  color: var(--accent-deep);
  text-decoration: underline;
}

.sortable-card {
  position: relative;
}

.pin-badge {
  position: absolute;
  top: 0.6rem;
  right: 0.65rem;
  z-index: 3;
  border-radius: 999px;
  border: 1px solid rgba(157, 180, 255, 0.72);
  background: linear-gradient(145deg, rgba(244, 248, 255, 0.96) 0%, rgba(231, 238, 255, 0.94) 100%);
  color: #445daf;
  padding: 0.16rem 0.58rem;
  font-size: 0.84rem;
  line-height: 1.2;
  font-weight: 700;
  box-shadow: 0 6px 14px rgba(90, 120, 210, 0.14);
}

.corner-count-badge {
  position: absolute;
  top: 0.62rem;
  right: 0.65rem;
  z-index: 3;
  border-radius: 8px;
  border: 1px solid rgba(167, 190, 255, 0.64);
  background: rgba(245, 249, 255, 0.95);
  color: #4964bd;
  padding: 0.18rem 0.52rem;
  font-size: 0.82rem;
  line-height: 1.24;
  font-weight: 700;
  box-shadow: 0 6px 14px rgba(87, 116, 198, 0.1);
}

.corner-count-badge.with-pin {
  top: 2.2rem;
}

.is-pinned {
  border-color: rgba(161, 184, 255, 0.86);
  box-shadow: 0 14px 28px rgba(86, 116, 205, 0.16);
}

.sortable-list[data-sort-list] .sortable-card[draggable="true"] {
  cursor: move;
}

.sortable-list[data-sort-list] .sortable-card.is-dragging {
  opacity: 0.62;
  transform: scale(0.99);
}

.home-board-shell {
  margin-top: 1.2rem;
  padding: 1rem;
  border-radius: 22px;
  border: 1px solid var(--glass-border);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.76) 0%, rgba(245, 250, 255, 0.78) 100%);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(8px);
}

.home-board-header h2 {
  margin: 0;
  font-size: 1.3rem;
}

.home-board-header p {
  margin: 0.5rem 0 0;
  color: var(--text-secondary);
  line-height: 1.6;
}

.home-board-admin-create {
  margin-top: 0.9rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.75rem 0.85rem;
  background: linear-gradient(160deg, var(--bg-card) 0%, var(--bg-card-alt) 100%);
}

.home-board-admin-create h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.home-board-grid {
  margin-top: 0.9rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.home-board-panel {
  border: 1px solid rgba(166, 191, 255, 0.44);
  border-radius: 18px;
  padding: 0.85rem 0.9rem;
  background: rgba(255, 255, 255, 0.74);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.home-board-panel h3 {
  margin: 0;
  font-size: 1.12rem;
}

.home-board-panel-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
}

.home-board-view-more-btn {
  padding: 0.28rem 0.72rem;
  font-size: 0.82rem;
  line-height: 1.1;
}

.home-board-panel-desc {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.55;
}

.home-board-visible-picker {
  display: grid;
  gap: 0.34rem;
  margin-top: 0.42rem;
}

.home-board-visible-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid rgba(167, 193, 255, 0.48);
  border-radius: 10px;
  background: rgba(251, 253, 255, 0.92);
  padding: 0.4rem 0.5rem;
  color: #4f6098;
  font-size: 0.86rem;
}

.home-board-visible-option.is-selected {
  border-color: rgba(109, 147, 244, 0.72);
  background: rgba(233, 243, 255, 0.85);
}

.home-board-visible-option.is-dragging {
  opacity: 0.6;
}

.home-board-visible-drag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.9rem;
  border: 1px dashed rgba(139, 173, 245, 0.72);
  border-radius: 8px;
  padding: 0.14rem 0.42rem;
  background: rgba(239, 247, 255, 0.85);
  color: #6070a8;
  font-size: 0.76rem;
  line-height: 1.2;
  cursor: grab;
  user-select: none;
}

.home-board-visible-drag:active {
  cursor: grabbing;
}

.home-board-visible-check {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  min-width: 0;
}

.home-board-visible-check span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-board-visible-order {
  color: #6173ab;
  font-size: 0.78rem;
  white-space: nowrap;
}

.home-board-visible-move {
  display: inline-flex;
  gap: 0.24rem;
}

.home-board-visible-move-btn {
  border: 1px solid rgba(148, 179, 247, 0.64);
  border-radius: 8px;
  background: rgba(240, 248, 255, 0.9);
  color: #4c62b8;
  padding: 0.18rem 0.42rem;
  font-size: 0.76rem;
  line-height: 1.2;
}

.home-board-visible-move-btn:hover {
  background: rgba(225, 238, 255, 0.92);
}

.home-board-visible-move-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.home-board-visible-hint {
  margin: 0.3rem 0 0;
  color: #6b7faf;
  font-size: 0.8rem;
}

.home-board-panel-admin {
  border-top: 1px dashed rgba(160, 188, 255, 0.56);
  border-bottom: 1px dashed rgba(160, 188, 255, 0.56);
  padding: 0.55rem 0;
  display: grid;
  gap: 0.5rem;
}

.home-board-item-list {
  display: grid;
  gap: 0.55rem;
}

.home-board-item {
  border: 1px solid rgba(166, 191, 255, 0.44);
  border-radius: 12px;
  padding: 0.58rem 0.62rem;
  background: rgba(251, 253, 255, 0.92);
  display: grid;
  gap: 0.45rem;
}

.home-board-item h4 {
  margin: 0;
  font-size: 0.96rem;
}

.home-board-item p {
  margin: 0.32rem 0 0;
  color: var(--text-secondary);
  line-height: 1.55;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.home-board-recommend-preview-image {
  border: 1px solid rgba(164, 186, 241, 0.4);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(238, 245, 255, 0.72);
  max-width: 250px;
  aspect-ratio: 16 / 9;
}

.home-board-recommend-preview-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-board-recommend-preview-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  flex-wrap: wrap;
}

.home-board-recommend-preview-time {
  font-size: 0.78rem;
  color: #6a7caf;
  font-weight: 600;
}

.home-board-recommend-preview-tag {
  border: 1px solid rgba(161, 178, 244, 0.52);
  background: rgba(226, 221, 255, 0.66);
  color: #4f4fb3;
  border-radius: 999px;
  padding: 0.1rem 0.5rem;
  font-size: 0.73rem;
  font-weight: 600;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-board-item-hidden-tip {
  margin: 0.22rem 0 0;
  color: #6e82b3;
  font-size: 0.8rem;
}

.home-board-hidden-group {
  margin-top: 0.5rem;
  border: 1px dashed #ddc4ab;
  border-radius: 10px;
  background: #fff9f1;
  padding: 0.45rem 0.55rem;
}

.home-board-hidden-group > summary {
  cursor: pointer;
  color: #7e5b3b;
  font-size: 0.87rem;
  font-weight: 600;
  list-style: none;
}

.home-board-hidden-group > summary::-webkit-details-marker {
  display: none;
}

.home-board-hidden-group[open] > summary {
  margin-bottom: 0.45rem;
}

.home-board-item .module-button {
  margin-top: 0.45rem;
}

.home-board-item-edit-form {
  margin-top: 0.3rem;
}

.home-board-item-create {
  border-top: 1px dashed #e2cab3;
  padding-top: 0.62rem;
}

.home-board-item-create h4 {
  margin: 0 0 0.45rem;
  font-size: 0.95rem;
}

.home-board-panel-recent .home-board-item p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-board-panel-recommend .home-board-item p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.site-runtime-bar {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.site-runtime-item {
  background: linear-gradient(160deg, var(--bg-card) 0%, var(--bg-card-alt) 100%);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.72rem 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 8px 18px rgba(145, 98, 58, 0.1);
}

.site-runtime-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.site-runtime-value {
  color: var(--text-main);
  font-size: 0.98rem;
  font-weight: 700;
}

.module-page,
.detail-page {
  padding: 1.2rem 0 2.5rem;
}

.floating-search-shell {
  pointer-events: none;
}

.home-left-quickbar {
  position: fixed;
  top: 6.5rem;
  left: max(10px, calc(50% - 560px - 250px));
  pointer-events: auto;
  z-index: 32;
}

.home-left-quickbar-inner {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.74) 0%, rgba(244, 249, 255, 0.8) 100%);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: 0 12px 24px rgba(72, 100, 187, 0.14);
  backdrop-filter: blur(8px);
  padding: 0.75rem 0.65rem;
  min-width: 136px;
  display: grid;
  gap: 0.4rem;
}

.quickbar-title {
  font-size: 0.78rem;
  color: #5b73c4;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.quickbar-btn {
  border: 1px solid rgba(151, 177, 245, 0.58);
  background: rgba(240, 246, 255, 0.84);
  color: #3f5db9;
  border-radius: 999px;
  padding: 0.36rem 0.62rem;
  font-size: 0.84rem;
  font-weight: 600;
  text-align: left;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.quickbar-btn:hover {
  background: rgba(222, 234, 255, 0.88);
  border-color: rgba(129, 162, 244, 0.76);
}

.quickbar-link {
  display: block;
  width: 100%;
  text-decoration: none;
}

.side-search {
  position: fixed;
  top: 6.5rem;
  width: 230px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.74) 0%, rgba(244, 250, 255, 0.82) 100%);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 0.9rem 0.8rem;
  box-shadow: 0 12px 26px rgba(72, 100, 187, 0.14);
  backdrop-filter: blur(8px);
  pointer-events: auto;
  z-index: 30;
}

.side-search-right {
  right: max(10px, calc(50% - 560px - 250px));
}

.side-search h3 {
  margin: 0;
  font-size: 1rem;
}

.side-search p {
  margin: 0.4rem 0 0.65rem;
  color: #6175ae;
  font-size: 0.85rem;
}

.search-input-wrap {
  display: grid;
  gap: 0.45rem;
}

.search-input-wrap input[type="search"] {
  width: 100%;
  border: 1px solid rgba(155, 181, 247, 0.52);
  border-radius: 10px;
  padding: 0.45rem 0.55rem;
  background: rgba(248, 252, 255, 0.92);
}

.search-suggest {
  margin-top: 0.55rem;
  border: 1px solid rgba(162, 188, 252, 0.54);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.88);
  max-height: 230px;
  overflow: auto;
}

.search-suggest-list {
  list-style: none;
  margin: 0;
  padding: 0.35rem;
  display: grid;
  gap: 0.34rem;
}

.search-suggest-item {
  border: 0;
  background: var(--bg-card-alt);
  border-radius: 8px;
  text-align: left;
  padding: 0.45rem 0.5rem;
  width: 100%;
}

.search-suggest-item:hover {
  background: var(--bg-card);
}

.search-suggest-item .kind {
  font-size: 0.73rem;
  color: #6476ac;
}

.search-suggest-item .name {
  display: block;
  color: #243c80;
  font-weight: 600;
}

.search-suggest-item .meta {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.79rem;
  color: #6b7eae;
}

.quote-ticker {
  position: fixed;
  right: max(10px, calc(50% - 560px - 250px));
  bottom: 1rem;
  width: 230px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.74) 0%, rgba(244, 250, 255, 0.82) 100%);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 0.7rem;
  box-shadow: 0 12px 26px rgba(72, 100, 187, 0.14);
  backdrop-filter: blur(8px);
  z-index: 30;
  transition: width 0.22s ease, padding 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.quote-ticker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.quote-ticker-header h3 {
  margin: 0;
  font-size: 0.95rem;
  color: #526bc3;
}

.quote-ticker-toggle {
  border: 1px solid rgba(145, 174, 245, 0.68);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #4f67be;
  padding: 0.18rem 0.62rem;
  font-size: 0.76rem;
  line-height: 1.25;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.quote-ticker-toggle:hover {
  background: rgba(237, 245, 255, 0.92);
  border-color: rgba(118, 155, 236, 0.82);
  color: #3f58ad;
}

.quote-ticker.is-collapsed {
  width: 46px;
  padding: 0.38rem 0.3rem;
  border-color: rgba(153, 181, 245, 0.66);
  box-shadow: 0 8px 20px rgba(72, 100, 187, 0.11);
}

.quote-ticker.is-collapsed .quote-ticker-header {
  justify-content: center;
}

.quote-ticker.is-collapsed .quote-ticker-header h3,
.quote-ticker.is-collapsed .quote-ticker-viewport,
.quote-ticker.is-collapsed .quote-ticker-meta {
  display: none;
}

.quote-ticker.is-collapsed .quote-ticker-toggle {
  width: 100%;
  min-height: 4.55rem;
  border-radius: 11px;
  padding: 0;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1;
  writing-mode: vertical-rl;
  text-orientation: upright;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quote-ticker-viewport {
  margin-top: 0.5rem;
  border: 1px solid rgba(162, 188, 252, 0.54);
  border-radius: 10px;
  background: rgba(247, 252, 255, 0.9);
  overflow: hidden;
  min-height: 2.2rem;
  display: flex;
  align-items: center;
}

.quote-ticker-track {
  margin: 0;
  white-space: nowrap;
  padding-left: 100%;
  padding-right: 0.75rem;
  color: #314b95;
  font-size: 0.84rem;
  line-height: 1.35;
}

.quote-ticker-track.is-rolling {
  animation: quoteTickerSlide 13.8s linear 1 both;
}

.quote-ticker-meta {
  margin: 0.45rem 0 0;
  font-size: 0.76rem;
  color: #6780be;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@keyframes quoteTickerSlide {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

.search-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
}

.search-modal.show {
  display: block;
}

.feedback-modal {
  position: fixed;
  inset: 0;
  z-index: 85;
  display: none;
}

.feedback-modal.show {
  display: block;
}

.home-board-modal {
  position: fixed;
  inset: 0;
  z-index: 84;
  display: none;
}

.home-board-modal.show {
  display: block;
}

.home-board-modal-mask {
  position: absolute;
  inset: 0;
  background: transparent;
}

.home-board-modal-card {
  position: relative;
  margin: clamp(1rem, 5vh, 3.2rem) auto 0;
  width: min(92vw, 760px);
  max-height: 82vh;
  overflow: auto;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.8) 0%, rgba(244, 250, 255, 0.84) 100%);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  box-shadow: 0 16px 34px rgba(49, 76, 160, 0.18), 0 4px 12px rgba(28, 47, 95, 0.1);
  padding: 1rem;
  backdrop-filter: blur(10px);
  transform-origin: center top;
  will-change: transform, opacity;
}

.home-board-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

.home-board-modal-header h3 {
  margin: 0;
  font-size: 1.08rem;
}

.home-board-modal-body {
  margin-top: 0.8rem;
  display: grid;
  gap: 0.55rem;
}

.home-board-modal-item {
  background: rgba(248, 252, 255, 0.92);
}

.feedback-modal-mask {
  position: absolute;
  inset: 0;
  background: transparent;
}

.feedback-modal-card {
  position: relative;
  margin: clamp(1rem, 5vh, 3.2rem) auto 0;
  width: min(92vw, 760px);
  max-height: 82vh;
  overflow: auto;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.8) 0%, rgba(244, 250, 255, 0.84) 100%);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  box-shadow: 0 16px 34px rgba(49, 76, 160, 0.18), 0 4px 12px rgba(28, 47, 95, 0.1);
  padding: 1rem;
  backdrop-filter: blur(10px);
  transform-origin: center top;
  will-change: transform, opacity;
}

.feedback-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

.feedback-modal-header h2 {
  margin: 0;
}

.feedback-form {
  margin-top: 0.85rem;
}

.feedback-review-grid {
  display: grid;
  gap: 0.75rem;
}

.feedback-review-card {
  border: 1px solid rgba(166, 191, 255, 0.44);
  border-radius: 14px;
  padding: 0.8rem;
  background: rgba(248, 252, 255, 0.9);
}

.feedback-review-card h3 {
  margin: 0;
  font-size: 1.03rem;
}

.feedback-review-card p {
  margin: 0.45rem 0 0;
  color: var(--text-secondary);
  line-height: 1.58;
}

.feedback-meta {
  font-size: 0.83rem;
  color: #6c7eb3 !important;
}

.feedback-detail-line {
  white-space: pre-wrap;
}

.feedback-inline-form {
  margin-top: 0.65rem;
}

.about-site-content {
  margin: 0.6rem 0 0;
  white-space: pre-wrap;
  line-height: 1.7;
  color: var(--text-secondary);
}

.about-site-editor {
  margin-top: 0.75rem;
}

.search-modal-mask {
  position: absolute;
  inset: 0;
  background: transparent;
}

.search-modal-card {
  position: relative;
  margin: clamp(1rem, 5vh, 3.2rem) auto 0;
  width: min(92vw, 860px);
  max-height: 82vh;
  overflow: auto;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.8) 0%, rgba(244, 250, 255, 0.84) 100%);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  box-shadow: 0 16px 34px rgba(49, 76, 160, 0.18), 0 4px 12px rgba(28, 47, 95, 0.1);
  padding: 1rem;
  backdrop-filter: blur(10px);
  transform-origin: center top;
  will-change: transform, opacity;
}

.home-board-modal.show .home-board-modal-card,
.feedback-modal.show .feedback-modal-card,
.search-modal.show .search-modal-card {
  animation: modalCardPopIn 180ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes modalCardPopIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-board-modal.show .home-board-modal-card,
  .feedback-modal.show .feedback-modal-card,
  .search-modal.show .search-modal-card {
    animation: none;
  }
}

.search-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

.search-modal-header h2 {
  margin: 0;
}

.search-modal-body {
  margin-top: 0.8rem;
}

.search-results-group + .search-results-group {
  margin-top: 0.85rem;
}

.search-results-title {
  margin: 0 0 0.45rem;
  font-size: 0.95rem;
  color: #4f66b9;
}

.search-result-item {
  border: 1px solid rgba(166, 191, 255, 0.44);
  border-radius: 12px;
  padding: 0.7rem 0.75rem;
  background: rgba(248, 252, 255, 0.9);
}

.search-result-item + .search-result-item {
  margin-top: 0.45rem;
}

.search-result-item h4 {
  margin: 0;
  font-size: 1rem;
}

.search-result-item p {
  margin: 0.35rem 0 0;
  color: var(--text-secondary);
}

.search-result-links {
  margin-top: 0.55rem;
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.stats-grid {
  display: grid;
  gap: 0.55rem;
  grid-auto-rows: 1fr;
}

.stats-grid-corner {
  grid-template-columns: 1fr;
  gap: 0.42rem;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  flex: 1;
}

.stats-item {
  border: 1px solid rgba(157, 186, 255, 0.46);
  border-radius: 11px;
  background: rgba(247, 251, 255, 0.92);
  padding: 0.55rem 0.6rem;
  min-height: 74px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stats-item-corner {
  min-height: 26px;
  padding: 0.28rem 0.45rem;
  border-radius: 11px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.stats-label {
  display: block;
  font-size: 0.82rem;
  color: #5d6fa4;
  line-height: 1.35;
  min-height: 1.1rem;
}

.stats-item-corner .stats-label {
  min-height: auto;
  font-size: 0.76rem;
  line-height: 1.22;
}

.stats-number {
  display: block;
  margin-top: 0.2rem;
  font-size: 1.2rem;
  color: #2f4995;
  line-height: 1.2;
}

.stats-item-corner .stats-number {
  margin-top: 0;
  font-size: 0.93rem;
  line-height: 1;
}

.module-hero,
.detail-hero {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.82) 0%, rgba(244, 250, 255, 0.86) 100%);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  padding: 1.6rem 1.4rem;
  box-shadow: var(--shadow-soft);
}

.back-link {
  display: inline-block;
  margin-bottom: 0.65rem;
  color: var(--accent-deep);
  text-decoration: none;
  font-weight: 600;
}

.back-link:hover {
  text-decoration: underline;
}

.module-hero h1,
.detail-hero h1 {
  margin: 0;
  font-size: clamp(1.7rem, 3.6vw, 2.2rem);
}

.module-hero p,
.detail-hero p {
  margin: 0.8rem 0 0;
  color: var(--text-secondary);
  line-height: 1.65;
}

.module-hero .hero-summary,
.detail-hero .detail-summary {
  margin-top: 0.58rem;
  max-width: 58ch;
  color: #5b6f9f;
  font-size: clamp(1rem, 1.45vw, 1.08rem);
  line-height: 1.76;
}

.detail-hero .detail-summary {
  max-width: 54ch;
  color: #596d9f;
}

.detail-hero .meta-line {
  margin-top: 0.46rem;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  color: #7283b2;
  font-weight: 600;
}

.editor-launch-row {
  margin: 0.85rem 0 0;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

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

.module-card {
  position: relative;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.8) 0%, rgba(245, 251, 255, 0.86) 100%);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1.2rem;
  box-shadow: 0 10px 22px rgba(72, 101, 188, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.module-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.module-hitbox {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 16px;
}

.module-card h2,
.module-card p,
.module-actions {
  position: relative;
  z-index: 2;
}

.module-card h2 {
  margin: 0;
  font-size: 1.22rem;
  padding-right: 3.6rem;
}

.module-card p {
  margin: 0.65rem 0 0;
  color: var(--text-secondary);
  line-height: 1.6;
  min-height: 3rem;
}

.module-card .card-summary {
  margin-top: 0.56rem;
  color: #5a6e9d;
  font-size: 0.98rem;
  line-height: 1.72;
  min-height: 3rem;
}

.module-card .card-summary + .meta-line {
  margin-top: 0.4rem;
}

.module-card-display-image {
  position: relative;
  z-index: 2;
  margin: 0.58rem 5px 0;
  width: calc(100% - 10px);
  max-height: clamp(140px, 23vw, 220px);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(166, 190, 255, 0.5);
  background: linear-gradient(145deg, rgba(242, 248, 255, 0.95) 0%, rgba(233, 242, 255, 0.88) 100%);
}

.module-card-display-image img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: clamp(140px, 23vw, 220px);
  object-fit: cover;
}

.module-card-text-only {
  padding: 1rem 1rem 0.95rem;
}

.module-inline-body {
  margin: 0;
  color: var(--text-main);
  line-height: 1.78;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.module-card-text-only .module-actions {
  margin-top: 0.72rem;
}

.module-grid .module-card {
  display: flex;
  flex-direction: column;
}

.module-grid .module-card .module-click-count {
  margin-top: auto;
  padding-top: 0.7rem;
  min-height: 0;
  align-self: flex-end;
  text-align: right;
  line-height: 1.35;
}

.meta-line {
  margin: 0.6rem 0 0;
  color: #6b7daf;
  font-size: 0.92rem;
}

.module-card .meta-line {
  color: #7384b4;
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  font-weight: 600;
  min-height: 0;
  line-height: 1.35;
}

.module-actions {
  margin-top: 0.9rem;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.module-button {
  text-decoration: none;
  border-radius: 999px;
  font-weight: 600;
  padding: 0.44rem 0.96rem;
  font-size: 0.92rem;
  border: 1px solid transparent;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.module-button-primary {
  background: linear-gradient(145deg, var(--accent) 0%, #486ff0 100%);
  box-shadow: 0 8px 16px rgba(60, 92, 196, 0.22);
  color: #fff;
}

.module-button-primary:hover {
  background: linear-gradient(145deg, var(--accent-deep) 0%, #3f61de 100%);
  transform: translateY(-1px);
  color: #fff;
}

.module-button-outline {
  background-color: rgba(255, 255, 255, 0.72);
  border-color: rgba(147, 176, 255, 0.68);
  color: #4d67c9;
}

.module-button-outline:hover {
  background-color: rgba(232, 241, 255, 0.84);
  border-color: rgba(113, 151, 246, 0.74);
  color: #2f4ebf;
}

.module-button-danger {
  background-color: #fff0f0;
  border-color: #d95b5b;
  color: #9d2f2f;
}

.module-button-danger:hover {
  background-color: #ffe2e2;
  color: #8d2323;
}

.entry-image-editor {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.entry-image-status {
  font-size: 0.84rem;
  color: #5d6fac;
}

.entry-image-preview {
  margin-top: 0.56rem;
  margin-left: 5px;
  margin-right: 5px;
  width: calc(100% - 10px);
  max-height: 220px;
  border-radius: 12px;
  border: 1px solid rgba(170, 193, 255, 0.52);
  background: rgba(244, 248, 255, 0.86);
  object-fit: contain;
}

.entry-image-crop-card {
  width: min(960px, calc(100vw - 2rem));
}

.entry-image-crop-stage {
  border: 1px solid rgba(170, 194, 255, 0.56);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(241, 247, 255, 0.92);
  cursor: grab;
}

.entry-image-crop-stage canvas {
  width: 100%;
  height: auto;
  display: block;
  touch-action: none;
}

.entry-image-crop-stage:active {
  cursor: grabbing;
}

.detail-card {
  margin-top: 1rem;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.82) 0%, rgba(244, 250, 255, 0.86) 100%);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1.2rem;
  box-shadow: 0 10px 22px rgba(72, 101, 188, 0.12);
}

.detail-card h2 {
  margin: 0;
  font-size: 1.2rem;
}

.feature-list {
  margin: 0.8rem 0 0;
  padding-left: 1.2rem;
  color: var(--text-secondary);
}

.feature-list li {
  margin: 0.35rem 0;
  line-height: 1.65;
}

.detail-body-text {
  white-space: pre-wrap;
  line-height: 1.78;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.entry-rich-content {
  margin-top: 0.7rem;
  display: grid;
  gap: 0.72rem;
}

.entry-rich-text {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.78;
}

.entry-inline-image {
  margin: 0;
  border-radius: 14px;
  border: 1px solid rgba(170, 193, 255, 0.54);
  background: rgba(244, 249, 255, 0.88);
  padding: 5px;
}

.entry-inline-image img {
  display: block;
  width: 100%;
  max-height: min(66vh, 460px);
  object-fit: contain;
  border-radius: 10px;
}

.multiline-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.editor-page {
  padding: 1.2rem 0 2.5rem;
}

.editor-card {
  margin-top: 1rem;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.82) 0%, rgba(244, 250, 255, 0.86) 100%);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1.1rem;
  box-shadow: 0 10px 22px rgba(72, 101, 188, 0.12);
}

.editor-card h2,
.editor-card h3 {
  margin: 0 0 0.75rem;
}

.editor-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.editor-form {
  display: grid;
  gap: 0.8rem;
}

.editor-sort-form {
  margin-top: 0.45rem;
}

.editor-inline-tools {
  margin-top: 0.65rem;
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  align-items: flex-end;
}

.editor-inline-form {
  display: flex;
  align-items: flex-end;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.editor-inline-form label {
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.editor-inline-form input[type="number"] {
  width: 88px;
  border: 1px solid rgba(160, 186, 249, 0.66);
  border-radius: 10px;
  padding: 0.42rem 0.52rem;
  background-color: rgba(248, 252, 255, 0.92);
}

.field-row {
  display: grid;
  gap: 0.35rem;
}

.field-row label {
  font-weight: 600;
}

.field-row input,
.field-row select,
.field-row textarea {
  border: 1px solid rgba(160, 186, 249, 0.66);
  border-radius: 10px;
  padding: 0.5rem 0.65rem;
  background-color: rgba(248, 252, 255, 0.92);
}

.field-row textarea {
  min-height: 90px;
  resize: vertical;
}

.tag-color-preset-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 0.36rem 0.56rem;
}

.tag-color-preset-option {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid rgba(160, 186, 249, 0.62);
  border-radius: 10px;
  padding: 0.34rem 0.5rem;
  background: rgba(248, 252, 255, 0.92);
  cursor: pointer;
}

.tag-color-preset-option input[type="radio"] {
  margin: 0;
  accent-color: #617ce2;
  flex: 0 0 auto;
}

.tag-color-preset-text {
  flex: 1 1 auto;
  font-size: 0.86rem;
  color: #334b90;
}

.tag-color-swatch {
  width: 18px;
  height: 10px;
  border-radius: 3px;
  border: 1px solid rgba(92, 116, 178, 0.42);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.tag-color-swatch.is-theme {
  background: linear-gradient(135deg, #dce8ff 0%, #e9e0ff 100%);
}

.tag-color-preset-option:has(input[type="radio"]:checked) {
  border-color: rgba(120, 154, 248, 0.74);
  background: rgba(233, 243, 255, 0.9);
}

.field-row span {
  color: #b72a2a;
  font-size: 0.86rem;
}

.entry-list {
  margin-top: 1rem;
}

.entry-row {
  border: 1px solid rgba(166, 191, 255, 0.44);
  border-radius: 12px;
  background: rgba(248, 252, 255, 0.9);
  padding: 0.75rem;
  display: grid;
  gap: 0.8rem;
  margin-top: 0.65rem;
}

.entry-row p {
  margin: 0.35rem 0 0;
  color: var(--text-secondary);
}

.entry-edit-form {
  min-width: 0;
}

.entry-actions {
  display: flex;
  gap: 0.5rem;
}

.entry-sort-list {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.entry-sort-list .entry-row {
  margin-top: 0;
}

.entry-create {
  margin-top: 1rem;
  border-top: 1px dashed rgba(160, 186, 249, 0.66);
  padding-top: 0.9rem;
}

.empty-tip {
  color: var(--text-secondary);
}

.editor-tip {
  margin-top: 1rem;
  border-radius: 10px;
  padding: 0.6rem 0.8rem;
}

.editor-tip.ok {
  background-color: #e8f8e8;
  color: #1f6d30;
}

.editor-tip.error {
  background-color: #ffecec;
  color: #942727;
}

.nav-logout form {
  margin: 0;
}

.nav-logout-btn {
  border: 1px solid rgba(141, 169, 244, 0.78);
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.78);
  color: #4560c5;
  padding: 0.3rem 0.78rem;
  margin-top: 0.35rem;
  font-size: 0.85rem;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.nav-logout-btn:hover {
  background-color: rgba(232, 241, 255, 0.86);
  border-color: rgba(113, 151, 246, 0.74);
  color: #2f4ebf;
}

.nav-admin-tools .nav-logout-btn {
  margin-top: 0;
}

@media (max-width: 900px) {
  body {
    background-attachment: scroll, scroll, scroll, scroll;
  }

  .home-scroll-page {
    --home-bg-max-width: 980px;
    --home-top-bg-height: clamp(300px, 70vw, 430px);
    --home-bottom-bg-height: clamp(430px, 94vw, 700px);
  }

  .home-generated-petal-overlay {
    opacity: 0.11;
  }

  .navbar-collapse {
    padding-bottom: 0.2rem;
  }

  .navbar-primary {
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 0.25rem;
    scrollbar-width: thin;
  }

  .nav-admin-tools {
    margin: 0.35rem 0 0;
    justify-content: flex-start;
  }

  .home-hero {
    grid-template-columns: 1fr;
    padding: 1.04rem 0.96rem;
    gap: 1rem;
  }

  .home-hero-figure {
    width: min(84vw, 340px);
    max-width: 100%;
    margin: 0 auto;
  }

  .home-hero-content {
    align-self: start;
  }

  .home-info-grid {
    grid-template-columns: 1fr;
  }

  .home-section-block {
    padding: 0.96rem;
  }

  .home-section-head {
    align-items: center;
  }

  .announcement-item {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.68rem;
  }

  .announcement-item .home-entry-inline-btn {
    justify-self: end;
    margin-top: 0;
    white-space: nowrap;
  }

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

  .home-recent-link {
    grid-template-columns: 1fr;
    gap: 0.42rem;
    align-items: start;
  }

  .home-recent-type,
  .home-recent-title {
    margin-left: 0;
  }

  .home-recent-title {
    white-space: normal;
  }

  .hero-title-row {
    flex-direction: column;
  }

  .hero-side-column {
    width: 100%;
    max-width: 280px;
  }

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

  .home-board-shell {
    padding: 0.8rem;
  }

  .home-board-grid {
    grid-template-columns: 1fr;
  }

  .home-board-panel-title-row {
    align-items: flex-start;
  }

  .home-board-visible-option {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: flex-start;
  }

  .home-board-visible-order,
  .home-board-visible-move {
    grid-column: 1 / -1;
    margin-left: calc(2.9rem + 0.45rem);
  }

  .home-board-visible-move {
    margin-top: 0.15rem;
  }

  .site-runtime-bar {
    grid-template-columns: 1fr;
  }

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

  .portal-hero {
    padding: 0;
  }

  .hero-title-main {
    padding: 1.5rem 1.2rem;
  }

  .module-hero,
  .detail-hero {
    padding: 1.35rem 1.1rem;
  }

  .entry-row {
    gap: 0.7rem;
  }

  .entry-actions {
    flex-wrap: wrap;
  }

  .editor-inline-tools {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .editor-inline-form {
    width: 100%;
  }

  .editor-inline-form input[type="number"] {
    width: 100%;
    max-width: 120px;
  }

  .quote-ticker {
    left: 0.75rem;
    right: 0.75rem;
    width: auto;
    bottom: 0.75rem;
  }

  .quote-ticker-toggle {
    display: none;
  }

  .quote-ticker.is-collapsed {
    width: auto;
    padding: 0.7rem;
    border-color: var(--glass-border);
    box-shadow: 0 12px 26px rgba(72, 100, 187, 0.14);
  }

  .quote-ticker.is-collapsed .quote-ticker-header {
    justify-content: flex-start;
  }

  .quote-ticker.is-collapsed .quote-ticker-header h3 {
    display: block;
  }

  .quote-ticker.is-collapsed .quote-ticker-viewport {
    display: flex;
  }

  .quote-ticker.is-collapsed .quote-ticker-meta {
    display: block;
  }
}

@media (max-width: 560px) {
  .announcement-item {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 0.24rem;
  }

  .announcement-item .home-entry-inline-btn {
    justify-self: start;
    margin-top: 0.35rem;
    white-space: normal;
  }
}

@media (max-width: 1360px) {
  .home-left-quickbar {
    position: sticky;
    top: 0.55rem;
    left: auto;
    margin: 0.45rem 0;
  }

  .home-left-quickbar-inner {
    border-radius: 14px;
    min-width: 0;
  }

  .quickbar-btn {
    text-align: center;
  }

  .side-search {
    position: sticky;
    width: auto;
    top: 0.55rem;
    margin: 0.45rem 0;
  }

  .side-search-right {
    left: auto;
    right: auto;
  }

  .floating-search-shell {
    margin: 0 0 0.8rem;
    pointer-events: auto;
  }

  .quote-ticker {
    right: 10px;
  }
}

@media (max-width: 760px) {
  .home-scroll-page {
    --home-bg-max-width: 760px;
    --home-top-bg-height: clamp(255px, 74vw, 360px);
    --home-bottom-bg-height: clamp(360px, 108vw, 620px);
  }

  .home-generated-petal-overlay {
    background-size: calc(100% + 24px) auto;
    opacity: 0.09;
  }

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

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

/* Reference-style polish (scoped to homepage only) */
.navbar-primary {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  display: inline-flex;
  flex: 0 0 auto;
  width: max-content;
  max-width: 100%;
  margin-right: auto;
}

.navbar-primary .nav-link {
  min-width: 4.8rem;
  text-align: center;
  padding: 0.52rem 0.78rem !important;
}

.navbar-primary .nav-link:hover {
  background-color: transparent;
}

.home-refine-v2 {
  gap: 1.32rem;
}

.home-refine-v2 .home-hero {
  grid-template-columns: minmax(350px, 460px) minmax(0, 1fr);
  padding: 1.52rem 1.6rem 1.38rem;
  gap: 1.3rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  overflow: visible;
}

.home-refine-v2 .home-hero::before {
  content: none;
}

.home-refine-v2 .home-hero::after {
  content: none;
}

.home-refine-v2 .home-hero-figure {
  border: 0;
  background: transparent;
  box-shadow: none;
  max-width: 452px;
  align-self: start;
}

.home-refine-v2 .home-hero-figure img {
  width: 100%;
  max-height: 500px;
  object-fit: contain;
  object-position: left top;
  border-radius: 20px;
  filter: drop-shadow(0 10px 18px rgba(93, 121, 210, 0.14));
}

.home-refine-v2 .home-hero-content {
  padding-right: 0.34rem;
  padding-top: 0.35rem;
}

.home-refine-v2 .home-hero .portal-kicker,
.home-refine-v2 .home-info-grid {
  display: none;
}

.home-refine-v2 .home-hero h1 {
  font-family: inherit;
  letter-spacing: 0.02em;
  font-size: clamp(2.5rem, 4.8vw, 4.1rem);
  color: #2f418d;
  line-height: 1.16;
}

.home-refine-v2 .home-hero-title {
  gap: clamp(0.14rem, 0.56vw, 0.34rem);
}

.home-refine-v2 .home-hero-title-row {
  gap: 10px;
}

.home-refine-v2 .home-hero-title-lead {
  letter-spacing: 0.14em;
  color: #667db8;
}

.home-refine-v2 .home-hero-title-main {
  font-size: clamp(2.44rem, 4.8vw, 4.12rem);
  color: #3a508f;
  background-image: none;
  text-shadow: 0 8px 16px rgba(71, 102, 187, 0.14);
}

.home-refine-v2 .home-hero-subtitle {
  margin: 0 !important;
  font-size: clamp(0.98rem, 1.9vw, 1.18rem);
  color: #4f64b7 !important;
  letter-spacing: 0.1em;
  display: inline-flex;
  align-items: flex-end;
}

.home-refine-v2 .home-hero-subtitle::before {
  content: none;
}

.home-refine-v2 .home-hero-desc-group {
  margin-top: 0.95rem;
  max-width: 31rem;
  gap: 0.34rem;
  border-left-color: rgba(137, 162, 226, 0.3);
}

.home-refine-v2 .home-hero-desc {
  margin: 0 !important;
  font-size: clamp(1rem, 1.7vw, 1.05rem);
  line-height: 1.76 !important;
  color: #5f709f !important;
}

.home-refine-v2 .home-hero-runtime {
  display: block;
  margin-top: 0.72rem !important;
  color: #7386bb !important;
}

.home-refine-v2 .hero-action-row {
  margin-top: 1.2rem;
  gap: 0.7rem;
}

.home-refine-v2 .hero-action-row .module-button {
  border-radius: 999px;
  min-width: 136px;
  padding: 0.5rem 1.06rem;
  font-size: 0.92rem;
  font-weight: 700;
}

.home-refine-v2 .hero-cta-primary {
  background: linear-gradient(135deg, #5f78f0 0%, #4b67e4 52%, #3857c7 100%);
  border-color: transparent;
  color: #f7f9ff !important;
  box-shadow: 0 10px 20px rgba(72, 104, 209, 0.28);
}

.home-refine-v2 .hero-cta-primary:hover {
  background: linear-gradient(135deg, #6a82f2 0%, #506be7 52%, #3f5fd1 100%);
}

.home-refine-v2 .hero-cta-secondary {
  border-color: rgba(152, 178, 245, 0.72);
  background: rgba(255, 255, 255, 0.8);
  color: #5065ba !important;
}

.home-refine-v2 .hero-cta-secondary:hover {
  background: rgba(238, 246, 255, 0.9);
}

.home-refine-v2 .hero-cta-primary::after {
  content: "  ›";
  font-weight: 700;
}

.home-refine-v2 .hero-cta-secondary::after {
  content: "  ⌂";
  font-weight: 700;
}

.home-refine-v2 .home-section-block {
  padding: 1.15rem 1.2rem;
  border-radius: 21px;
  border-color: rgba(174, 195, 248, 0.5);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.78) 0%, rgba(244, 249, 255, 0.82) 100%);
}

.home-refine-v2 .home-section-head {
  margin-bottom: 0.83rem;
}

.home-refine-v2 .home-section-head h2 {
  display: inline-flex;
  align-items: center;
  gap: 0.46rem;
  font-size: 1.42rem;
  font-family: inherit;
  color: #2f438d;
}

.home-refine-v2 .home-section-title-wrap {
  gap: 0.24rem 0.62rem;
}

.home-refine-v2 .home-section-desc {
  color: #5f73ab;
  font-size: 0.9rem;
}

.home-refine-v2 .home-announcement-section .home-section-head h2::before,
.home-refine-v2 .home-recommend-section .home-section-head h2::before,
.home-refine-v2 .home-qa-section .home-section-head h2::before,
.home-refine-v2 .home-recent-section .home-section-head h2::before {
  width: 1.05rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #6d82d8;
  font-size: 0.8rem;
}

.home-refine-v2 .home-announcement-section .home-section-head h2::before {
  content: "✦";
}

.home-refine-v2 .home-recommend-section .home-section-head h2::before {
  content: "★";
}

.home-refine-v2 .home-qa-section .home-section-head h2::before {
  content: "❖";
}

.home-refine-v2 .home-recent-section .home-section-head h2::before {
  content: "●";
}

.home-refine-v2 .home-section-head .home-board-view-more-btn {
  border: 0;
  background: transparent;
  color: #5a73c8;
  padding: 0.12rem 0.28rem;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: none;
}

.home-refine-v2 .home-section-head .home-board-view-more-btn:hover {
  color: #3554c6;
  background: transparent;
  text-decoration: underline;
}

.home-refine-v2 .qa-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.home-refine-v2 .qa-ask-btn {
  border-radius: 999px;
  padding: 0.3rem 0.74rem;
  font-size: 0.8rem;
  line-height: 1.3;
  box-shadow: 0 8px 16px rgba(73, 104, 204, 0.24);
}

.home-refine-v2 .announcement-list {
  border: 1px solid rgba(165, 188, 251, 0.42);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.72);
  gap: 0;
}

.home-refine-v2 .announcement-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "main cta";
  align-items: center;
  gap: 0.14rem 0.82rem;
  padding: 0.82rem 0.98rem;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  border-bottom: 1px solid rgba(183, 202, 255, 0.36);
  background: transparent;
}

.home-refine-v2 .announcement-item:last-child {
  border-bottom: 0;
}

.home-refine-v2 .announcement-main {
  grid-area: main;
  display: grid;
  grid-template-areas:
    "meta"
    "title"
    "body";
}

.home-refine-v2 .announcement-meta {
  grid-area: meta;
  flex-wrap: wrap;
  row-gap: 0.3rem;
}

.home-refine-v2 .announcement-item h3 {
  grid-area: title;
  margin: 0;
  font-size: 1rem;
  color: #334d95;
}

.home-refine-v2 .announcement-item p {
  grid-area: body;
  margin: 0.25rem 0 0;
  font-size: 0.89rem;
  color: #6575a6;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-refine-v2 .announcement-item::after {
  content: none;
}

.home-refine-v2 .announcement-item .home-entry-inline-btn {
  grid-area: cta;
  justify-self: end;
  align-self: center;
  margin-top: 0;
}

.home-refine-v2 .recommend-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.84rem;
}

.home-refine-v2 .recommend-card {
  transform: none;
}

.home-refine-v2 .recommend-note-page {
  border-radius: 14px;
  padding: 0.76rem 0.72rem 0.72rem;
  box-shadow: 0 10px 18px rgba(86, 117, 206, 0.11);
}

.home-refine-v2 .recommend-note-cover {
  border-radius: 10px;
}

.home-refine-v2 .recommend-note-page::after {
  border-radius: 0 14px 0 12px;
}

.home-refine-v2 .recommend-note-page h3 {
  font-size: 1rem;
  color: #324b92;
}

.home-refine-v2 .recommend-note-intro {
  font-size: 0.86rem;
  color: #6575a6;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

.home-refine-v2 .recommend-note-meta {
  margin-top: 0;
}

.home-refine-v2 .recommend-view::before {
  content: "";
}

.home-refine-v2 .qa-list {
  border: 1px solid rgba(165, 188, 251, 0.42);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.72);
  gap: 0;
}

.home-refine-v2 .qa-item {
  position: relative;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0.78rem 0.94rem 0.76rem;
  border-bottom: 1px solid rgba(183, 202, 255, 0.36);
}

.home-refine-v2 .qa-item:last-child {
  border-bottom: 0;
}

.home-refine-v2 .qa-item::after {
  content: "⌄";
  position: absolute;
  right: 0.9rem;
  top: 0.88rem;
  color: #88a0e0;
  font-size: 0.92rem;
}

.home-refine-v2 .qa-question,
.home-refine-v2 .qa-answer {
  padding-right: 1.18rem;
}

.home-refine-v2 .home-recent-list {
  border: 1px solid rgba(165, 188, 251, 0.42);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.72);
  gap: 0;
}

.home-refine-v2 .home-recent-link {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0.72rem 0.9rem;
}

.home-refine-v2 .home-recent-list li + li .home-recent-link {
  border-top: 1px solid rgba(183, 202, 255, 0.36);
}

.home-refine-v2 .home-recent-link:hover {
  transform: none;
  background: rgba(234, 243, 255, 0.76);
}

.home-refine-v2 .home-recent-link.is-static:hover {
  background: rgba(255, 255, 255, 0.72);
}

.site-record-panel {
  position: relative;
  overflow: hidden;
}

.site-record-panel::before {
  content: "";
  position: absolute;
  left: -30px;
  right: -30px;
  bottom: -78px;
  height: 126px;
  pointer-events: none;
  background:
    radial-gradient(220px 72px at 10% 18%, rgba(176, 192, 255, 0.28) 0%, rgba(176, 192, 255, 0) 72%),
    radial-gradient(260px 80px at 64% 30%, rgba(199, 182, 255, 0.24) 0%, rgba(199, 182, 255, 0) 76%),
    radial-gradient(210px 68px at 92% 8%, rgba(165, 209, 255, 0.2) 0%, rgba(165, 209, 255, 0) 76%);
}

@media (max-width: 1240px) {
  .home-refine-v2 .recommend-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-refine-v2 .home-hero {
    grid-template-columns: minmax(300px, 420px) minmax(0, 1fr);
  }
}

@media (max-width: 980px) {
  .home-refine-v2 .home-hero {
    grid-template-columns: 1fr;
    gap: 0.92rem;
    padding: 1.05rem;
  }

  .home-refine-v2 .home-hero-figure {
    max-width: 360px;
    margin: 0 auto;
  }

  .home-refine-v2 .home-hero-content {
    padding-top: 0;
  }

  .home-refine-v2 .home-hero h1 {
    font-size: clamp(2.2rem, 8vw, 3.1rem);
  }

  .home-refine-v2 .home-hero-title-lead {
    font-size: clamp(0.94rem, 2.9vw, 1.18rem);
    letter-spacing: 0.11em;
  }

  .home-refine-v2 .home-hero-title-main {
    font-size: clamp(2rem, 9vw, 3.12rem);
    letter-spacing: 0.026em;
  }

  .home-refine-v2 .home-section-block {
    padding: 1rem 0.95rem;
  }

  .home-refine-v2 .announcement-item {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "main cta";
    gap: 0.14rem 0.82rem;
  }

  .home-refine-v2 .announcement-meta {
    margin-bottom: 0.05rem;
  }

  .home-refine-v2 .announcement-item .home-entry-inline-btn {
    grid-area: cta;
    justify-self: end;
    margin-top: 0;
    white-space: nowrap;
  }

  .home-refine-v2 .qa-head-actions {
    margin-left: auto;
  }
}

@media (max-width: 900px) {
  .home-refine-v2 .recommend-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .home-refine-v2 .recommend-grid {
    grid-template-columns: 1fr;
  }

  .home-hero-title {
    gap: 0.1rem;
  }

  .home-hero-title-row {
    flex-wrap: wrap;
    gap: 0.2rem 10px;
  }

  .home-hero-subtitle {
    font-size: clamp(0.9rem, 3.6vw, 1rem);
    letter-spacing: 0.07em;
  }

  .home-refine-v2 .home-hero-title-main {
    font-size: clamp(1.88rem, 11vw, 2.72rem);
    letter-spacing: 0.02em;
  }

  .home-refine-v2 .home-hero-title-main::after {
    content: none;
  }

  .home-section-title-wrap {
    width: 100%;
  }

  .home-section-desc {
    flex-basis: 100%;
    font-size: 0.88rem;
    line-height: 1.5;
  }

  .home-refine-v2 .home-section-head {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .home-refine-v2 .qa-head-actions {
    width: 100%;
    justify-content: space-between;
    margin-left: 0;
  }

  .home-refine-v2 .home-recent-link {
    grid-template-columns: 1fr;
    gap: 0.4rem;
    align-items: start;
  }

  .home-refine-v2 .home-recent-title {
    white-space: normal;
  }

  .module-card-display-image,
  .module-card-display-image img {
    max-height: 170px;
  }

  .entry-image-crop-card {
    width: calc(100vw - 1rem);
  }
}

@media (max-width: 560px) {
  .home-refine-v2 .announcement-item {
    grid-template-columns: 1fr;
    grid-template-areas: "main";
    gap: 0.2rem;
  }

  .home-refine-v2 .announcement-item .home-entry-inline-btn {
    grid-area: auto;
    justify-self: start;
    margin-top: 0.35rem;
    white-space: normal;
  }
}

/* Homepage full-width layout refinement */
body.is-home-page .home-layout-container {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

body.is-home-page {
  background-color: #f6f9ff;
  background-image:
    radial-gradient(1180px 740px at -8% -24%, var(--bg-glow-a) 0%, rgba(146, 181, 255, 0.14) 46%, transparent 74%),
    radial-gradient(980px 650px at 108% 2%, var(--bg-glow-b) 0%, rgba(197, 184, 255, 0.12) 44%, transparent 74%),
    radial-gradient(980px 660px at 90% 112%, var(--bg-glow-c) 0%, transparent 74%),
    linear-gradient(160deg, #fbfdff 0%, #f7fbff 52%, #f6f9ff 100%);
}

body.is-home-page .home-main-shell {
  padding-bottom: 0 !important;
}

body.is-home-page .navbar {
  margin-bottom: 0 !important;
}

body.is-home-page .portal-home.home-refine-v2 {
  padding-top: 0;
}

body.is-home-page .site-record-panel {
  width: min(1180px, calc(100% - 2rem));
  margin: 1.1rem auto 1.55rem;
}


.home-refine-v2 {
  --home-content-max-width: 1180px;
  --home-content-gutter: clamp(16px, 3vw, 42px);
  --home-stack-gap: clamp(1.2rem, 1.9vw, 1.7rem);
  --home-hero-figure-drop: clamp(1.7rem, 2.9vw, 2.4rem);
  --home-bg-transition-base: #f4f7ff;
  gap: var(--home-stack-gap);
  padding: clamp(1rem, 2.2vw, 1.85rem) 0 clamp(3.1rem, 5.8vw, 4.6rem);
  overflow-x: clip;
}

.home-refine-v2.home-scroll-page::before,
.home-refine-v2.home-scroll-page::after {
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  background-repeat: no-repeat;
}

.home-refine-v2.home-scroll-page::before {
  content: "";
  height: clamp(470px, 44vw, 710px);
  background-image:
    linear-gradient(
      180deg,
      rgba(248, 250, 255, 0.02) 0%,
      rgba(248, 250, 255, 0.1) 36%,
      rgba(247, 250, 255, 0.38) 62%,
      rgba(246, 249, 255, 0.72) 80%,
      rgba(245, 248, 255, 0.92) 92%,
      var(--home-bg-transition-base) 100%
    ),
    radial-gradient(
      120% 84% at 50% -6%,
      rgba(255, 255, 255, 0.28) 0%,
      rgba(255, 255, 255, 0.08) 48%,
      rgba(255, 255, 255, 0) 78%
    ),
    url("/images/top-bg.png");
  background-position: top center, top center, top center;
  background-size: 100% 100%, 100% 100%, cover;
  background-repeat: no-repeat, no-repeat, no-repeat;
  opacity: 0.97;
}

.home-refine-v2.home-scroll-page::after {
  content: "";
  height: clamp(580px, 54vw, 860px);
  bottom: clamp(-180px, -12vw, -110px);
  background-image:
    linear-gradient(
      0deg,
      rgba(245, 248, 255, 0.06) 0%,
      rgba(245, 248, 255, 0.22) 24%,
      rgba(245, 248, 255, 0.56) 52%,
      rgba(245, 248, 255, 0.84) 74%,
      rgba(245, 248, 255, 0.96) 88%,
      var(--home-bg-transition-base) 100%
    ),
    radial-gradient(
      120% 78% at 50% 108%,
      rgba(255, 255, 255, 0.24) 0%,
      rgba(255, 255, 255, 0.06) 56%,
      rgba(255, 255, 255, 0) 86%
    ),
    url("/images/bottom-bg.png");
  background-position: bottom center, bottom center, bottom center;
  background-size: 100% 100%, 100% 100%, cover;
  background-repeat: no-repeat, no-repeat, no-repeat;
  opacity: 0.93;
}

.home-refine-v2 .home-generated-petal-overlay {
  background-position: center top;
  background-size: 100% auto;
  opacity: 0.12;
}

.home-refine-v2 .home-section-block,
.home-refine-v2 .home-board-shell,
.home-refine-v2 .editor-tip {
  width: min(var(--home-content-max-width), calc(100% - (2 * var(--home-content-gutter))));
  margin-inline: auto;
}

.home-refine-v2 .home-section-block {
  position: relative;
  isolation: isolate;
}

.home-refine-v2 .home-section-block::before {
  content: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: -14px;
  bottom: -14px;
  width: 100vw;
  pointer-events: none;
  z-index: -1;
  background: linear-gradient(
    90deg,
    rgba(224, 235, 255, 0.42) 0%,
    rgba(244, 248, 255, 0.1) 18%,
    rgba(244, 248, 255, 0.1) 82%,
    rgba(224, 235, 255, 0.42) 100%
  );
}

.home-refine-v2 .home-announcement-section::before {
  background: linear-gradient(
    90deg,
    rgba(215, 230, 255, 0.44) 0%,
    rgba(244, 248, 255, 0.08) 19%,
    rgba(244, 248, 255, 0.08) 81%,
    rgba(215, 230, 255, 0.44) 100%
  );
}

.home-refine-v2 .home-recommend-section::before {
  background: linear-gradient(
    90deg,
    rgba(220, 225, 255, 0.42) 0%,
    rgba(245, 248, 255, 0.06) 17%,
    rgba(245, 248, 255, 0.06) 83%,
    rgba(220, 225, 255, 0.42) 100%
  );
}

.home-refine-v2 .home-qa-section::before {
  background: linear-gradient(
    90deg,
    rgba(224, 235, 255, 0.4) 0%,
    rgba(245, 249, 255, 0.08) 20%,
    rgba(245, 249, 255, 0.08) 80%,
    rgba(224, 235, 255, 0.4) 100%
  );
}

.home-refine-v2 .home-recent-section::before {
  background: linear-gradient(
    90deg,
    rgba(216, 230, 255, 0.4) 0%,
    rgba(245, 249, 255, 0.08) 20%,
    rgba(245, 249, 255, 0.08) 80%,
    rgba(216, 230, 255, 0.4) 100%
  );
}

.home-refine-v2 .home-hero {
  position: relative;
  width: 100%;
  margin: 0;
  padding: clamp(0.4rem, 1vw, 0.9rem) 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  overflow: visible;
  display: block;
}

.home-refine-v2 .home-hero::before {
  content: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: clamp(6px, 1.4vw, 18px);
  width: min(1340px, calc(100% - (2 * var(--home-content-gutter))));
  height: clamp(240px, 29vw, 390px);
  border-radius: 34px;
  background:
    radial-gradient(circle at 14% 20%, rgba(163, 197, 255, 0.28) 0%, rgba(163, 197, 255, 0) 56%),
    radial-gradient(circle at 85% 34%, rgba(208, 190, 255, 0.24) 0%, rgba(208, 190, 255, 0) 60%),
    radial-gradient(circle at 52% 84%, rgba(171, 213, 255, 0.2) 0%, rgba(171, 213, 255, 0) 62%);
  pointer-events: none;
  z-index: 0;
}

.home-refine-v2 .home-hero::after {
  content: none;
}

body.is-home-page .site-record-panel::before {
  content: none;
}

.home-refine-v2 .home-hero-inner {
  position: relative;
  z-index: 1;
  width: min(var(--home-content-max-width), calc(100% - (2 * var(--home-content-gutter))));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(320px, 470px) minmax(0, 1fr);
  gap: clamp(1rem, 1.9vw, 1.7rem);
  align-items: center;
  padding: clamp(1rem, 2vw, 1.6rem);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.home-refine-v2 .home-hero-figure {
  max-width: min(100%, 460px);
  width: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.home-refine-v2 .home-hero-figure img {
  border-radius: 0;
  background: transparent;
}

.home-refine-v2 .home-hero-content {
  padding-right: 0;
  padding-top: 0.2rem;
}

.home-refine-v2 .home-hero-subtitle {
  letter-spacing: 0.12em;
}

.home-refine-v2 .home-hero-subtitle::before {
  content: none;
}

.home-refine-v2 .home-hero-subtitle::after {
  right: 0;
  background: linear-gradient(
    90deg,
    rgba(139, 162, 226, 0.56) 0%,
    rgba(139, 162, 226, 0.16) 72%,
    rgba(139, 162, 226, 0) 100%
  );
}

@media (min-width: 981px) {
  .home-refine-v2 .home-hero-figure {
    transform: translateY(var(--home-hero-figure-drop));
  }

  .home-refine-v2 .home-announcement-section {
    margin-top: calc(var(--home-stack-gap) * -1);
  }
}

@media (max-width: 1240px) {
  .home-refine-v2 {
    --home-content-max-width: 1120px;
    --home-content-gutter: clamp(16px, 3.6vw, 30px);
  }

  .home-refine-v2 .home-hero-inner {
    grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  }
}

@media (max-width: 980px) {
  .home-refine-v2 {
    --home-content-gutter: clamp(16px, 4.8vw, 24px);
    padding-bottom: clamp(2.4rem, 9vw, 3.2rem);
  }

  .home-refine-v2.home-scroll-page::before {
    height: clamp(390px, 68vw, 560px);
  }

  .home-refine-v2.home-scroll-page::after {
    height: clamp(500px, 82vw, 700px);
    bottom: clamp(-140px, -20vw, -88px);
  }

  .home-refine-v2 .home-hero-inner {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1rem;
  }

  .home-refine-v2 .home-hero-figure {
    max-width: min(100%, 380px);
    margin: 0 auto;
  }
}

@media (max-width: 760px) {
  .home-refine-v2 {
    --home-content-gutter: clamp(16px, 5vw, 20px);
  }

  .home-refine-v2.home-scroll-page::after {
    height: clamp(460px, 98vw, 640px);
    bottom: clamp(-120px, -24vw, -70px);
  }

  .home-refine-v2 .home-hero-inner {
    border-radius: 20px;
  }

  .home-refine-v2 .home-section-block,
  .home-refine-v2 .home-board-shell,
  .home-refine-v2 .editor-tip {
    width: calc(100% - (2 * var(--home-content-gutter)));
  }
}
