/* HKUSEA homepage visual system. */
.design-preview {
  --preview-ink: #082f3c;
  --preview-teal: #07495a;
  --preview-blue: #18a8d6;
  --preview-lime: #bed62e;
  --preview-gold: #f2aa19;
  --preview-paper: #f7faf8;
  --preview-soft: #eef8f4;
  background: var(--preview-paper);
}

.design-preview .site-header {
  position: fixed;
  top: 16px;
  left: clamp(14px, 3vw, 44px);
  right: clamp(14px, 3vw, 44px);
  inset: 16px clamp(14px, 3vw, 44px) auto;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 22px;
  color: var(--preview-ink);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 60px rgba(6, 53, 72, 0.18);
  backdrop-filter: blur(18px);
}

.design-preview .brand-mark {
  width: 50px;
  height: 50px;
  border: 0;
  background: #fff;
  box-shadow: 0 8px 22px rgba(6, 53, 72, 0.16);
}

.design-preview .brand-mark img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.design-preview .brand strong {
  color: var(--preview-ink);
  font-size: 17px;
}

.design-preview .brand small {
  color: #52707a;
}

.design-preview .main-nav {
  gap: 6px;
  color: #31515c;
  font-size: 14px;
  font-weight: 700;
}

.design-preview .main-nav a {
  padding: 9px 10px;
  border-radius: 999px;
}

.design-preview .main-nav a:hover,
.design-preview .main-nav .join-us-link {
  color: var(--preview-ink);
  background: linear-gradient(135deg, rgba(190, 214, 46, 0.28), rgba(242, 170, 25, 0.22));
}

.design-preview .hero {
  min-height: 88vh;
  background: #052f3e;
}

.design-preview .hero-overlay {
  background:
    radial-gradient(circle at 82% 30%, rgba(190, 214, 46, 0.22), transparent 34%),
    linear-gradient(90deg, rgba(3, 42, 55, 0.95) 0%, rgba(6, 67, 82, 0.72) 44%, rgba(6, 67, 82, 0.08) 100%),
    linear-gradient(0deg, rgba(3, 42, 55, 0.86) 0%, rgba(3, 42, 55, 0) 48%);
}

.design-preview .hero-content {
  width: min(820px, calc(100% - 40px));
  min-height: 88vh;
  padding-top: 96px;
}

.design-preview .eyebrow,
.design-preview .section-kicker {
  color: var(--preview-gold);
  font-size: 12px;
  letter-spacing: .04em;
}

.design-preview .hero h1 {
  max-width: 760px;
  font-size: clamp(46px, 6.8vw, 86px);
  line-height: 1.04;
}

.design-preview .hero-subtitle {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(18px, 2.2vw, 28px);
}

.design-preview .hero-copy {
  max-width: 640px;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.9;
}

.design-preview .button {
  min-height: 48px;
  border-radius: 14px;
  box-shadow: none;
}

.design-preview .button.primary {
  color: #082f3c;
  background: linear-gradient(135deg, var(--preview-lime), var(--preview-gold));
}

.design-preview .button.secondary {
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.12);
}

.design-preview .metrics {
  position: relative;
  z-index: 5;
  width: min(1160px, calc(100% - 40px));
  margin: -68px auto 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--preview-ink);
  box-shadow: 0 22px 80px rgba(6, 53, 72, 0.18);
}

.design-preview .metrics div {
  padding: 28px 26px;
  border-right: 1px solid rgba(6, 53, 72, 0.1);
}

.design-preview .metrics strong {
  color: var(--preview-teal);
  font-size: clamp(32px, 4vw, 50px);
}

.design-preview .metrics span {
  color: #526a73;
}

.design-preview .section {
  padding: clamp(72px, 8vw, 116px) clamp(20px, 5vw, 64px);
}

.design-preview .profile-duty-section {
  padding-top: clamp(92px, 10vw, 138px);
  background:
    linear-gradient(120deg, rgba(24, 168, 214, 0.08), rgba(190, 214, 46, 0.1)),
    #f7faf8;
}

.design-preview .profile-duty-layout {
  gap: 18px;
  grid-template-columns: minmax(0, 1.06fr) minmax(300px, .74fr);
}

.design-preview .profile-duty-intro,
.design-preview .profile-duty-focus,
.design-preview .profile-duty-grid article,
.design-preview .program-card,
.design-preview .award-card,
.design-preview .member-card,
.design-preview .news-item {
  border: 1px solid rgba(8, 47, 60, 0.1);
  border-radius: 18px;
  box-shadow: 0 18px 55px rgba(8, 47, 60, 0.08);
}

.design-preview .profile-duty-intro,
.design-preview .profile-duty-grid article {
  background: rgba(255, 255, 255, 0.82);
}

.design-preview .stacked-title {
  font-size: clamp(40px, 5vw, 66px);
  line-height: 1.04;
}

.design-preview .profile-duty-focus {
  min-height: 100%;
  background:
    radial-gradient(circle at 84% 16%, rgba(190, 214, 46, 0.3), transparent 38%),
    linear-gradient(135deg, #063548, #08728c);
}

.design-preview .profile-duty-grid {
  gap: 18px;
}

.design-preview .section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  max-width: 1160px;
  margin: 0 auto 30px;
}

.design-preview .section-head h2,
.design-preview .listing-hero h1 {
  color: var(--preview-ink);
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.05;
}

.design-preview .program-grid,
.design-preview .activity-grid,
.design-preview .member-grid {
  max-width: 1160px;
  margin: 0 auto;
}

.design-preview .program-card {
  overflow: hidden;
  background: #fff;
}

.design-preview .program-card img {
  height: 190px;
  object-fit: cover;
}

.design-preview .program-card div {
  padding: 26px;
}

.design-preview .program-card span {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  color: var(--preview-ink);
  background: linear-gradient(135deg, rgba(190, 214, 46, 0.38), rgba(242, 170, 25, 0.28));
}

.design-preview .dark-band {
  background:
    radial-gradient(circle at 88% 0%, rgba(190, 214, 46, 0.17), transparent 28%),
    linear-gradient(135deg, #063548, #08728c);
}

.design-preview .dark-band .section-head h2,
.design-preview .dark-band .section-kicker {
  color: #fff;
}

.design-preview .activity-card {
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
}

.design-preview .activity-card img {
  height: 210px;
  object-fit: cover;
}

.design-preview .activity-card h3,
.design-preview .activity-card p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
}

.design-preview .activity-card h3 { -webkit-line-clamp: 2; }
.design-preview .activity-card p { -webkit-line-clamp: 3; }

.design-preview .commendation-section {
  background: #fffef8;
}

.design-preview .award-grid {
  max-width: 1160px;
  margin: 0 auto;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.design-preview .award-card {
  position: relative;
  min-height: 300px;
  padding: 14px 12px 16px;
  background: linear-gradient(180deg, #ffffff, #f2fbf8);
}

.design-preview .award-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(90deg, var(--preview-blue), var(--preview-lime), var(--preview-gold));
}

.design-preview .award-card img {
  width: 100%;
  height: 220px;
  padding: 8px;
  object-fit: contain;
  background: #fff;
}

.design-preview .award-card strong {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.35;
}

.design-preview .news-section {
  background: linear-gradient(135deg, #f7faf8, #eef8f4);
}

.design-preview .news-list {
  max-width: 1160px;
  margin: 0 auto;
  border: 0;
  gap: 14px;
  background: transparent;
}

.design-preview .news-item {
  grid-template-columns: 150px minmax(0, 1fr) 132px;
  align-items: center;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
}

.design-preview .news-thumb {
  width: 112px;
  height: 76px;
  border-radius: 12px;
}

.design-preview .members-section {
  background: #fff;
}

.design-preview .member-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.design-preview .member-card {
  padding: 24px 16px;
  text-align: center;
  background: #fff;
}

.design-preview .member-card img {
  width: 104px;
  height: 104px;
  margin: 0 auto 18px;
  border: 4px solid #f2fbf8;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 14px 40px rgba(8, 47, 60, 0.12);
}

.design-preview .member-card div {
  padding: 0;
}

.design-preview .site-footer {
  background:
    radial-gradient(circle at 78% 0%, rgba(190, 214, 46, 0.14), transparent 28%),
    #053342;
}

.design-preview .rich-footer {
  grid-template-columns: 1.15fr .9fr 1fr .65fr;
}

.design-preview .footer-social-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1120px) {
  .design-preview .site-header {
    align-items: flex-start;
  }
  .design-preview .main-nav {
    max-width: 100%;
    flex-wrap: wrap;
    justify-content: flex-end;
    row-gap: 4px;
  }
  .design-preview .award-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .design-preview .member-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .design-preview .rich-footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .design-preview .site-header {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: block;
    padding: 12px;
    border-radius: 18px;
  }
  .design-preview .brand {
    width: 100%;
  }
  .design-preview .brand-mark {
    width: 42px;
    height: 42px;
  }
  .design-preview .brand-mark img {
    width: 34px;
    height: 34px;
  }
  .design-preview .brand strong {
    font-size: 14px;
  }
  .design-preview .brand small {
    display: none;
  }
  .design-preview .main-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    margin-top: 10px;
    font-size: 12px;
  }
  .design-preview .main-nav a {
    min-height: 34px;
    padding: 8px 4px;
    text-align: center;
  }
  .design-preview .hero,
  .design-preview .hero-content {
    min-height: 82vh;
  }
  .design-preview .hero-content {
    padding-top: 136px;
  }
  .design-preview .hero h1 {
    font-size: 36px;
  }
  .design-preview .hero-subtitle {
    font-size: 16px;
  }
  .design-preview .hero-copy {
    font-size: 15px;
    line-height: 1.75;
  }
  .design-preview .metrics {
    width: 100%;
    margin: 0;
    border-radius: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .design-preview .metrics div {
    padding: 20px 18px;
  }
  .design-preview .profile-duty-layout,
  .design-preview .profile-duty-grid,
  .design-preview .program-grid,
  .design-preview .activity-grid,
  .design-preview .member-grid,
  .design-preview .rich-footer {
    grid-template-columns: 1fr;
  }
  .design-preview .stacked-title,
  .design-preview .section-head h2 {
    font-size: 34px;
  }
  .design-preview .section-head {
    display: block;
  }
  .design-preview .award-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .design-preview .award-card {
    min-height: 240px;
  }
  .design-preview .award-card img {
    height: 164px;
  }
  .design-preview .news-item {
    grid-template-columns: 1fr;
  }
  .design-preview .news-thumb {
    width: 100%;
    height: 150px;
  }
}

/* Refined review pass 2026-07-10. */
.design-preview {
  --preview-line: rgba(8, 47, 60, 0.12);
}

.design-preview .site-header {
  border-radius: 10px;
}

.design-preview .main-nav a {
  border-radius: 6px;
}

.design-preview .main-nav a[aria-current="page"] {
  color: var(--preview-ink);
  background: rgba(190, 214, 46, 0.22);
}

.design-preview .hero,
.design-preview .hero-content {
  min-height: clamp(640px, 78vh, 820px);
}

.design-preview .hero-overlay {
  background:
    linear-gradient(90deg, rgba(3, 42, 55, 0.96) 0%, rgba(6, 67, 82, 0.74) 46%, rgba(6, 67, 82, 0.12) 100%),
    linear-gradient(0deg, rgba(3, 42, 55, 0.86) 0%, rgba(3, 42, 55, 0) 48%);
}

.design-preview .eyebrow,
.design-preview .section-kicker {
  letter-spacing: 0;
}

.design-preview .button {
  border-radius: 7px;
}

.design-preview a:focus-visible,
.design-preview button:focus-visible {
  outline: 3px solid var(--preview-gold);
  outline-offset: 3px;
}

.design-preview .metrics {
  margin-top: -54px;
  border-radius: 8px;
}

.design-preview .section {
  padding: clamp(64px, 7vw, 92px) clamp(20px, 5vw, 64px);
}

.design-preview main > section[id] {
  scroll-margin-top: 108px;
}

.design-preview .profile-duty-section {
  padding-top: clamp(86px, 9vw, 112px);
}

.design-preview .profile-duty-intro,
.design-preview .profile-duty-focus,
.design-preview .profile-duty-grid article,
.design-preview .program-card,
.design-preview .award-card,
.design-preview .member-card,
.design-preview .news-item,
.design-preview .activity-card {
  border-radius: 8px;
}

.design-preview .profile-duty-focus {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(4, 48, 62, 0.22), rgba(4, 48, 62, 0.92)),
    var(--responsibility-image, url("../assets/association-hero.webp")) center / cover no-repeat;
}

.design-preview .program-card span,
.design-preview .news-thumb {
  border-radius: 6px;
}

.design-preview .dark-band {
  background: linear-gradient(135deg, #063548, #08728c);
}

.design-preview .award-card {
  min-height: 286px;
}

.design-preview .award-card::before {
  border-radius: 8px 8px 0 0;
}

.design-preview .news-item {
  border-radius: 8px;
}

.design-preview .site-footer {
  background: #053342;
}

.design-preview #programGrid:empty::before,
.design-preview #activityGrid:empty::before,
.design-preview #awardGrid:empty::before,
.design-preview #newsList:empty::before,
.design-preview #memberGrid:empty::before {
  content: "內容載入中";
  display: block;
  width: 100%;
  padding: 28px;
  border: 1px solid var(--preview-line);
  border-radius: 8px;
  color: #526a73;
  background: rgba(255, 255, 255, 0.72);
  text-align: center;
}

.design-preview .program-card p,
.design-preview .member-card p:last-child,
.design-preview .news-item p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

@media (max-width: 760px) {
  .design-preview .site-header {
    border-radius: 8px;
  }

  .design-preview .hero,
  .design-preview .hero-content {
    min-height: 690px;
  }
}

/* Review pass 2: integrated editorial layout. */
.design-preview {
  background: #eef4f1;
}

.design-preview .site-header {
  top: 0;
  left: 0;
  right: 0;
  inset: 0 0 auto;
  padding: 14px clamp(22px, 5vw, 70px);
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0;
  color: #fff;
  background: rgba(3, 43, 56, 0.9);
  box-shadow: none;
  backdrop-filter: blur(14px);
}

.design-preview .brand-mark {
  width: 46px;
  height: 46px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: none;
}

.design-preview .brand-mark img {
  width: 39px;
  height: 39px;
}

.design-preview .brand strong,
.design-preview .brand small {
  color: #fff;
}

.design-preview .brand small {
  color: rgba(255, 255, 255, 0.68);
}

.design-preview .main-nav {
  color: rgba(255, 255, 255, 0.78);
}

.design-preview .main-nav a:hover,
.design-preview .main-nav a[aria-current="page"] {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.design-preview .main-nav .join-us-link {
  color: #082f3c;
  background: var(--preview-lime);
}

.design-preview .hero {
  min-height: clamp(610px, 76vh, 760px);
}

.design-preview .hero-content {
  min-height: clamp(610px, 76vh, 760px);
  padding-top: 86px;
  padding-bottom: 76px;
}

.design-preview .hero-overlay {
  background:
    linear-gradient(90deg, rgba(3, 42, 55, 0.94) 0%, rgba(5, 62, 75, 0.7) 48%, rgba(6, 67, 82, 0.14) 100%),
    linear-gradient(0deg, rgba(3, 42, 55, 0.76) 0%, rgba(3, 42, 55, 0) 46%);
}

.design-preview .hero h1 {
  max-width: 780px;
  font-size: clamp(48px, 6.2vw, 80px);
}

.design-preview .hero-copy {
  max-width: 620px;
}

.design-preview .metrics {
  position: relative;
  z-index: 4;
  width: 100%;
  margin: 0;
  border: 0;
  border-radius: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: none;
  gap: 1px;
}

.design-preview .metrics div {
  min-height: 132px;
  padding: 26px clamp(24px, 4vw, 56px);
  border: 0;
  background: #073f4f;
}

.design-preview .metrics strong {
  color: var(--preview-gold);
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1;
}

.design-preview .metrics span {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.45;
}

.design-preview .profile-duty-section {
  padding-top: clamp(72px, 7vw, 92px);
  padding-bottom: clamp(68px, 7vw, 92px);
  background: #e8f0ed;
}

.design-preview .profile-duty-layout {
  max-width: 1160px;
  margin: 0 auto;
  gap: 30px;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.88fr);
}

.design-preview .profile-duty-intro,
.design-preview .profile-duty-grid article {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.design-preview .profile-duty-intro {
  padding: 18px 18px 18px 0;
}

.design-preview .profile-duty-focus {
  min-height: 430px;
  border: 0;
  border-radius: 8px;
  box-shadow: none;
}

.design-preview .profile-duty-grid {
  gap: 26px;
  margin-top: 20px;
}

.design-preview .profile-duty-grid article {
  padding: 26px 0 0;
  border-top: 3px solid var(--preview-lime);
}

.design-preview .plan-section {
  background: #f5f8f6;
}

.design-preview .program-card {
  border-color: rgba(8, 47, 60, 0.12);
  box-shadow: 0 14px 34px rgba(8, 47, 60, 0.08);
}

.design-preview .commendation-section {
  background: #f5f0e6;
}

.design-preview .news-section {
  background: #f1f6f3;
}

.design-preview .members-section {
  background: #e9f0ee;
}

.design-preview .member-card {
  background: rgba(255, 255, 255, 0.76);
}

.design-preview .site-footer {
  border-top: 5px solid var(--preview-lime);
}

@media (max-width: 760px) {
  .design-preview .site-header {
    top: 0;
    left: 0;
    right: 0;
    padding: 12px 14px 10px;
    border-radius: 0;
    background: rgba(3, 43, 56, 0.94);
  }

  .design-preview .main-nav {
    padding-top: 9px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.78);
  }

  .design-preview .main-nav a {
    color: rgba(255, 255, 255, 0.82);
  }

  .design-preview .main-nav .join-us-link {
    color: #082f3c;
  }

  .design-preview .hero,
  .design-preview .hero-content {
    min-height: 650px;
  }

  .design-preview .hero-content {
    padding-top: 152px;
    padding-bottom: 54px;
  }

  .design-preview .hero h1 {
    font-size: 34px;
    line-height: 1.08;
  }

  .design-preview .hero-subtitle {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.35;
  }

  .design-preview .hero-copy {
    margin-top: 18px;
    line-height: 1.7;
  }

  .design-preview .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    background: rgba(255, 255, 255, 0.16);
  }

  .design-preview .metrics div {
    min-height: 122px;
    padding: 22px 18px;
    justify-content: center;
  }

  .design-preview .metrics strong {
    font-size: 34px;
    line-height: 1;
  }

  .design-preview .metrics span {
    margin-top: 9px;
    font-size: 13px;
  }

  .design-preview .profile-duty-section {
    padding-top: 58px;
  }

  .design-preview .profile-duty-intro {
    padding: 0;
  }

  .design-preview .profile-duty-focus {
    min-height: 330px;
  }

  .design-preview .profile-duty-grid {
    gap: 18px;
  }
}

/* Review pass 2 responsive correction. */
@media (max-width: 1120px) {
  .design-preview .profile-duty-layout,
  .design-preview .profile-duty-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .design-preview .profile-duty-focus {
    width: 100%;
    min-height: 380px;
  }
}

@media (max-width: 760px) {
  .design-preview .profile-duty-layout,
  .design-preview .profile-duty-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .design-preview .profile-duty-focus {
    width: 100%;
    min-height: 330px;
  }
}

/* Review pass 3: scroll-aware navigation and social dock. */
.design-preview .main-nav .join-us-link {
  color: inherit;
  background: transparent;
}

.design-preview .main-nav .join-us-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.design-preview .main-nav a[aria-current="page"] {
  color: #082f3c;
  background: var(--preview-lime);
}

.design-preview .hero#home {
  scroll-margin-top: 0;
}

.floating-socials {
  position: fixed;
  z-index: 120;
  top: 50%;
  right: 18px;
  transform: translateY(-50%);
}

.floating-socials[hidden],
.floating-social-panel[hidden] {
  display: none;
}

.floating-social-rail {
  display: grid;
  gap: 8px;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(3, 43, 56, 0.9);
  box-shadow: 0 16px 44px rgba(3, 43, 56, 0.26);
  backdrop-filter: blur(12px);
}

.floating-social-trigger {
  position: relative;
  display: grid;
  width: 48px;
  height: 48px;
  padding: 5px;
  place-items: center;
  border: 1px solid rgba(8, 47, 60, 0.12);
  border-radius: 7px;
  background: #fff;
  cursor: pointer;
}

.floating-social-trigger img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 3px;
  pointer-events: none;
}

.floating-social-trigger::after {
  content: attr(data-label);
  position: absolute;
  top: 50%;
  right: calc(100% + 10px);
  width: max-content;
  max-width: 150px;
  padding: 7px 9px;
  border-radius: 5px;
  color: #fff;
  background: #082f3c;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) translateX(5px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.floating-social-trigger:hover::after,
.floating-social-trigger:focus-visible::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.floating-social-trigger[aria-expanded="true"] {
  border-color: var(--preview-gold);
  box-shadow: 0 0 0 3px rgba(242, 170, 25, 0.24);
}

.floating-social-panel {
  position: absolute;
  top: 50%;
  right: 64px;
  width: 216px;
  padding: 16px;
  border: 1px solid rgba(8, 47, 60, 0.12);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 20px 58px rgba(3, 43, 56, 0.26);
  text-align: center;
  transform: translateY(-50%);
}

.floating-social-panel img {
  width: 176px;
  height: 176px;
  margin: 10px auto 12px;
  object-fit: contain;
}

.floating-social-panel strong {
  display: block;
  color: #082f3c;
  font-size: 16px;
}

.floating-social-close {
  position: absolute;
  top: 7px;
  right: 7px;
  display: grid;
  width: 30px;
  height: 30px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 5px;
  color: #526a73;
  background: #eef4f1;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 760px) {
  .design-preview {
    padding-bottom: 72px;
  }

  .design-preview .site-header {
    padding-bottom: 0;
  }

  .design-preview .main-nav {
    display: flex;
    gap: 20px;
    margin: 10px -14px 0;
    padding: 0 14px 10px;
    overflow-x: auto;
    border-top: 0;
    white-space: nowrap;
    scrollbar-width: none;
  }

  .design-preview .main-nav::-webkit-scrollbar,
  .design-preview .metrics::-webkit-scrollbar,
  .design-preview .program-grid::-webkit-scrollbar,
  .design-preview .activity-grid::-webkit-scrollbar,
  .design-preview .award-grid::-webkit-scrollbar,
  .design-preview .member-grid::-webkit-scrollbar {
    display: none;
  }

  .design-preview .main-nav a {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 10px 1px 8px;
    border-radius: 0;
    background: transparent;
  }

  .design-preview .main-nav a[aria-current="page"] {
    color: #fff;
    background: transparent;
    box-shadow: inset 0 -3px 0 var(--preview-lime);
  }

  .design-preview .main-nav .join-us-link,
  .design-preview .main-nav .join-us-link:hover {
    color: rgba(255, 255, 255, 0.82);
    background: transparent;
  }

  .design-preview .hero-content {
    padding-top: 122px;
  }

  .design-preview .metrics {
    display: flex;
    gap: 0;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .design-preview .metrics div {
    flex: 0 0 44vw;
    min-height: 120px;
    padding: 23px 18px;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    scroll-snap-align: start;
  }

  .design-preview .metrics strong {
    font-size: 32px;
  }

  .design-preview .section {
    padding: 58px 20px;
  }

  .design-preview .section-head {
    margin-bottom: 22px;
  }

  .design-preview .section-head h2 {
    font-size: 34px;
  }

  .design-preview .plan-section,
  .design-preview .dark-band,
  .design-preview .commendation-section,
  .design-preview .members-section {
    overflow: hidden;
  }

  .design-preview .program-grid,
  .design-preview .activity-grid,
  .design-preview .member-grid,
  .design-preview .award-grid {
    display: flex;
    grid-template-columns: none;
    gap: 14px;
    margin-right: -20px;
    margin-left: -20px;
    padding: 0 20px 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .design-preview .program-card,
  .design-preview .activity-card {
    flex: 0 0 82vw;
    scroll-snap-align: start;
  }

  .design-preview .member-card {
    flex: 0 0 72vw;
    scroll-snap-align: start;
  }

  .design-preview .award-card {
    flex: 0 0 46vw;
    min-height: 250px;
    scroll-snap-align: start;
  }

  .design-preview .award-card img {
    height: 174px;
  }

  .design-preview .news-item {
    border-left: 3px solid var(--preview-gold);
    box-shadow: 0 10px 26px rgba(8, 47, 60, 0.06);
  }

  .floating-socials {
    top: auto;
    right: auto;
    bottom: max(10px, env(safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%);
  }

  .floating-social-rail {
    display: flex;
    gap: 4px;
    padding: 5px;
    border-radius: 8px;
  }

  .floating-social-trigger {
    width: 62px;
    height: 50px;
    padding: 4px 4px 3px;
    grid-template-rows: 27px 13px;
  }

  .floating-social-trigger img {
    width: 27px;
    height: 27px;
  }

  .floating-social-trigger::after {
    position: static;
    display: block;
    width: 54px;
    max-width: 54px;
    padding: 0;
    overflow: hidden;
    border-radius: 0;
    color: #082f3c;
    background: transparent;
    font-size: 9px;
    line-height: 13px;
    opacity: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
    transform: none;
  }

  .floating-social-trigger:hover::after,
  .floating-social-trigger:focus-visible::after {
    transform: none;
  }

  .floating-social-panel {
    top: auto;
    right: auto;
    bottom: calc(100% + 10px);
    left: 50%;
    width: 214px;
    transform: translateX(-50%);
  }
}

/* Review pass 3 mobile navigation correction. */
@media (max-width: 760px) {
  .design-preview .main-nav {
    flex-wrap: nowrap;
    justify-content: flex-start;
  }
}


/* Review pass 4: stable navigation, circular contact rail and six-member row. */
.floating-social-rail {
  gap: 10px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(3, 43, 56, 0.94);
}

.floating-social-top,
.floating-social-trigger {
  position: relative;
  display: grid;
  width: 48px;
  height: 48px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.floating-social-top {
  color: #082f3c;
  background: var(--preview-lime);
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
}

.floating-social-trigger {
  background: #fff;
}

.floating-social-trigger.platform-xiaohongshu {
  background: #ff2442;
}

.floating-social-trigger.platform-wechat {
  background: #07c160;
}

.floating-social-trigger.platform-tiktok {
  background: #000;
}

.floating-social-trigger img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  border-radius: 0;
  filter: invert(1);
}

.floating-social-trigger.platform-default img {
  width: 30px;
  height: 30px;
  filter: none;
}

.floating-social-top:hover,
.floating-social-top:focus-visible,
.floating-social-trigger:hover,
.floating-social-trigger:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.24);
}

.floating-social-trigger[aria-expanded="true"] {
  border-color: #fff;
  box-shadow: 0 0 0 3px var(--preview-gold), 0 8px 18px rgba(0, 0, 0, 0.24);
}

@media (min-width: 1121px) {
  .design-preview .member-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
  }

  .design-preview .member-card {
    min-width: 0;
    padding: 22px 12px;
  }

  .design-preview .member-card img {
    width: 92px;
    height: 92px;
  }

  .design-preview .member-card h3 {
    font-size: 17px;
  }
}

@media (max-width: 760px) {
  .floating-social-rail {
    gap: 6px;
    padding: 6px;
  }

  .floating-social-top,
  .floating-social-trigger {
    width: 44px;
    height: 44px;
    padding: 0;
    grid-template-rows: none;
  }

  .floating-social-top {
    font-size: 23px;
  }

  .floating-social-trigger img {
    width: 22px;
    height: 22px;
  }

  .floating-social-trigger.platform-default img {
    width: 28px;
    height: 28px;
  }

  .floating-social-trigger::after {
    display: none;
  }

  .floating-social-panel {
    bottom: calc(100% + 12px);
  }
}


/* Review pass 5: compact bottom-right contact tools. */
.floating-socials {
  top: auto;
  right: 18px;
  bottom: 22px;
  left: auto;
  transform: none;
}

.floating-social-rail {
  gap: 6px;
  padding: 6px;
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(3, 43, 56, 0.92);
  box-shadow: 0 12px 32px rgba(3, 43, 56, 0.24);
}

.floating-social-top,
.floating-social-trigger {
  width: 40px;
  height: 40px;
}

.floating-social-top {
  font-size: 21px;
}

.floating-social-trigger img {
  width: 20px;
  height: 20px;
}

.floating-social-trigger.platform-default img {
  width: 25px;
  height: 25px;
}

.floating-social-trigger.platform-wecom {
  background: #2f7fed;
}

.floating-social-trigger.platform-channels {
  background: #5968d8;
}

.floating-social-panel {
  top: auto;
  right: 52px;
  bottom: 0;
  width: 198px;
  padding: 14px;
  transform: none;
}

.floating-social-panel img {
  width: 164px;
  height: 164px;
  margin: 8px auto 10px;
}

.floating-social-panel strong {
  font-size: 15px;
}

.floating-social-close {
  width: 27px;
  height: 27px;
  font-size: 19px;
}

@media (max-width: 760px) {
  .design-preview {
    padding-bottom: 58px;
  }

  .floating-socials {
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    left: auto;
    transform: none;
  }

  .floating-social-rail {
    display: flex;
    max-width: calc(100vw - 20px);
    gap: 5px;
    padding: 5px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .floating-social-top,
  .floating-social-trigger {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
  }

  .floating-social-top {
    font-size: 19px;
  }

  .floating-social-trigger img {
    width: 18px;
    height: 18px;
  }

  .floating-social-trigger.platform-default img {
    width: 23px;
    height: 23px;
  }

  .floating-social-panel {
    right: 0;
    bottom: calc(100% + 8px);
    left: auto;
    width: 190px;
    padding: 12px;
    transform: none;
  }

  .floating-social-panel img {
    width: 158px;
    height: 158px;
  }
}


/* Review pass 6: fixed mobile header and vertical contact tools. */
@media (max-width: 760px) {
  .design-preview .site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 160;
  }

  .design-preview main > section[id] {
    scroll-margin-top: 126px;
  }

  .design-preview .hero#home {
    scroll-margin-top: 0;
  }

  .floating-socials {
    right: 10px;
    bottom: max(12px, env(safe-area-inset-bottom));
  }

  .floating-social-rail {
    display: grid;
    max-width: none;
    max-height: calc(100vh - 24px);
    gap: 5px;
    padding: 5px;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .floating-social-panel {
    right: 46px;
    bottom: 0;
  }
}
/* Detail pages: shared homepage visual language. */
.design-preview.detail-page{min-height:100vh;padding-bottom:0;color:var(--preview-ink);background:#eef4f1}
.detail-main{min-height:100vh}
.detail-hero{position:relative;display:grid;min-height:clamp(420px,58vh,610px);overflow:hidden;place-items:end stretch;color:#fff;background:#073f4f}
.detail-hero-media,.detail-hero-overlay{position:absolute;inset:0}
.detail-hero-media{background:#073f4f url("../assets/association-hero.webp") center 44%/cover no-repeat;transform:scale(1.01)}
.detail-hero-overlay{background:linear-gradient(90deg,rgba(3,42,55,.96) 0%,rgba(3,52,65,.82) 48%,rgba(4,67,82,.34) 100%)}
.detail-hero-inner{position:relative;z-index:1;width:min(100%,1280px);margin:0 auto;padding:clamp(150px,18vw,210px) clamp(24px,6vw,76px) clamp(58px,8vw,88px)}
.detail-hero .eyebrow{margin-bottom:18px;color:var(--preview-lime)}
.detail-hero h1{max-width:900px;margin:0;font-size:clamp(48px,7vw,84px);line-height:1.04}
.detail-hero-meta{display:flex;align-items:center;gap:18px;margin-top:28px}
.detail-hero-meta span,.detail-hero-meta a{display:inline-flex;min-height:40px;align-items:center;padding:9px 14px;border:1px solid rgba(255,255,255,.28);border-radius:5px;color:rgba(255,255,255,.9);font-size:14px;font-weight:800}
.detail-hero-meta span{color:#082f3c;background:var(--preview-lime);border-color:var(--preview-lime)}
.detail-hero-meta a:hover,.detail-hero-meta a:focus-visible{color:#082f3c;background:#fff}
.detail-listing-section{min-height:420px;padding:clamp(64px,8vw,104px) clamp(24px,6vw,76px)}
.detail-listing-inner{width:min(100%,1160px);margin:0 auto}
.detail-activities .detail-listing-section{background:#073f4f}
.detail-activities .activity-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.detail-page .activity-card{height:100%;border-color:rgba(255,255,255,.14);background:rgba(255,255,255,.07);box-shadow:none}
.detail-page .activity-card:hover{border-color:rgba(190,214,46,.7);box-shadow:0 18px 42px rgba(0,0,0,.16)}
.detail-page .activity-card img{aspect-ratio:16/10;height:auto}
.detail-page .activity-card h3{min-height:2.7em}
.detail-page .activity-card p{min-height:5.1em}
.detail-news .detail-listing-section{background:#f1f6f3}
.detail-news .news-list{gap:16px}
.detail-page .news-item{grid-template-columns:124px minmax(0,1fr) 220px;min-height:170px;border:1px solid rgba(8,47,60,.12);border-left:4px solid var(--preview-gold);background:rgba(255,255,255,.9);box-shadow:0 12px 30px rgba(8,47,60,.06)}
.detail-page .news-item:hover{border-color:rgba(8,47,60,.18);border-left-color:var(--preview-lime)}
.detail-page .news-thumb{width:220px;height:168px}
.detail-members .detail-listing-section{background:#e9f0ee}
.detail-page .member-level+.member-level{margin-top:clamp(58px,7vw,82px)}
.detail-page .member-level .section-head{padding-bottom:18px;border-bottom:1px solid rgba(8,47,60,.16)}
.detail-page .member-level .section-kicker{color:#52707a}
.detail-page .member-level .member-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}
.detail-page .member-card{min-width:0;padding:22px 12px;border:1px solid rgba(8,47,60,.1);background:rgba(255,255,255,.84);box-shadow:0 10px 28px rgba(8,47,60,.06)}
.detail-page .member-card img{width:92px;height:92px}
.detail-page .member-card div{padding:0}
.detail-page .member-card h3{margin-top:15px;font-size:17px}
.detail-page .member-card p{font-size:13px}
.not-found-page .detail-hero{min-height:100vh}
.not-found-page .detail-hero-inner>p:not(.eyebrow){max-width:600px;margin:18px 0 0;color:rgba(255,255,255,.78);font-size:18px}
@media(max-width:1120px){
.detail-activities .activity-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.detail-page .member-level .member-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.detail-page .news-item{grid-template-columns:110px minmax(0,1fr) 180px}
.detail-page .news-thumb{width:180px}
}
@media(max-width:760px){
.design-preview.detail-page{padding-bottom:58px}
.detail-hero{min-height:470px}
.detail-hero-media{background-position:62% 48%}
.detail-hero-overlay{background:rgba(3,42,55,.84)}
.detail-hero-inner{padding:176px 20px 54px}
.detail-hero h1{font-size:42px}
.detail-hero-meta{align-items:stretch;flex-direction:column;gap:9px;max-width:250px;margin-top:24px}
.detail-hero-meta span,.detail-hero-meta a{justify-content:center}
.detail-listing-section{padding:56px 20px 72px;overflow:visible}
.detail-page .activity-grid,.detail-page .member-level .member-grid{display:grid;grid-template-columns:1fr;gap:16px;margin:0;padding:0;overflow:visible}
.detail-page .activity-card,.detail-page .member-card{flex:initial}
.detail-page .activity-card h3,.detail-page .activity-card p{min-height:0}
.detail-page .news-list{display:grid;gap:14px}
.detail-page .news-item{display:grid;grid-template-columns:1fr;min-height:0;padding:0;overflow:hidden}
.detail-page .news-item time{order:2;padding:0 20px}
.detail-page .news-item>div{order:3;padding:0 20px 22px}
.detail-page .news-thumb{order:1;width:100%;height:auto;aspect-ratio:16/10}
.detail-page .member-level .section-head{margin-bottom:20px}
.detail-page .member-level .member-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.detail-page .member-card{padding:20px 10px}
.detail-page .member-card img{width:82px;height:82px}
.not-found-page .detail-hero-inner{padding-top:180px}
}
@media(max-width:420px){.detail-page .member-level .member-grid{grid-template-columns:1fr}}
/* Social platform icon differentiation. */
.floating-social-trigger.platform-wechat-official{background:#07c160}
.floating-social-trigger.platform-wechat-official img{filter:invert(1)}

/* Official platform icons retain their native brand colours. */
.floating-social-trigger.platform-wechat-official,
.floating-social-trigger.platform-wecom,
.floating-social-trigger.platform-xiaohongshu,
.floating-social-trigger.platform-tiktok,
.floating-social-trigger.platform-channels,
.floating-social-trigger.platform-wechat{background:#fff}
.floating-social-trigger[class*="platform-"] img{width:27px;height:27px;border-radius:7px;filter:none}
@media(max-width:760px){.floating-social-trigger[class*="platform-"] img{width:25px;height:25px}}
