/* ==========================================================================
   冰冰冰 · 视觉系统
   一块清透、会呼吸的冰
   ========================================================================== */

:root {
  --ink: #0a2b45;
  --ink-2: #123e5e;
  --muted: #5b7387;
  --muted-2: #7b91a3;
  --ice: #f4fcff;
  --ice-2: #dcf5ff;
  --ice-3: #b9e9fb;
  --blue: #1684c4;
  --blue-2: #0d6ca6;
  --blue-3: #0a4e79;
  --cyan: #41c6e8;
  --mint: #47c9b5;
  --violet: #8b8ee8;
  --peach: #f4a785;
  --rose: #e98da8;
  --line: rgba(13, 74, 111, 0.12);
  --line-strong: rgba(13, 74, 111, 0.2);
  --glass: rgba(255, 255, 255, 0.6);
  --glass-2: rgba(255, 255, 255, 0.78);
  --glass-3: rgba(247, 253, 255, 0.9);
  --white: #ffffff;
  --shadow-sm: 0 8px 24px -14px rgba(7, 56, 87, 0.32);
  --shadow: 0 22px 55px -28px rgba(7, 56, 87, 0.42);
  --shadow-lg: 0 38px 90px -38px rgba(7, 56, 87, 0.48);
  --radius-sm: 14px;
  --radius: 22px;
  --radius-lg: 30px;
  --radius-xl: 38px;
  --header-h: 78px;
  --container: 1240px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --ease: cubic-bezier(0.22, 0.8, 0.24, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  background-color: #eefaff;
  background-image: url("../img/ice-bg.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(248, 254, 255, 0.5) 0%, rgba(238, 250, 255, 0.2) 38%, rgba(235, 249, 255, 0.64) 100%),
    radial-gradient(50% 40% at 12% 12%, rgba(255, 255, 255, 0.72), transparent 70%),
    radial-gradient(40% 40% at 88% 24%, rgba(175, 231, 252, 0.24), transparent 72%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.3;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
}

::selection {
  color: #fff;
  background: rgba(22, 132, 196, 0.75);
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

ul,
ol {
  margin: 0;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid rgba(22, 132, 196, 0.45);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 24px;
  z-index: 200;
  padding: 12px 18px;
  color: #fff;
  background: var(--blue-3);
  border-radius: 12px;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 16px;
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

.glass {
  background: linear-gradient(138deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.44));
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(24px) saturate(135%);
  backdrop-filter: blur(24px) saturate(135%);
}

.glass-strong {
  background: linear-gradient(138deg, rgba(255, 255, 255, 0.9), rgba(248, 253, 255, 0.7));
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
  backdrop-filter: blur(28px) saturate(140%);
}

/* --------------------------------------------------------------------------
   头部
   -------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: var(--header-h);
  padding: 0 clamp(18px, 4vw, 46px);
  pointer-events: none;
}

.site-header > * {
  pointer-events: auto;
}

.nav-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 6px 24px -16px rgba(4, 54, 84, 0.38);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  transition: background 0.25s, box-shadow 0.25s;
}

.site-header.is-scrolled .nav-pill {
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-sm);
}

.nav-pill a {
  position: relative;
  padding: 8px 15px;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(10, 43, 69, 0.7);
  border-radius: 999px;
  transition: color 0.2s, background 0.2s, transform 0.2s;
}

.nav-pill a:hover {
  color: var(--blue-3);
  background: rgba(255, 255, 255, 0.55);
}

.nav-pill a[aria-current="page"] {
  color: #fff;
  background: linear-gradient(135deg, #127cb8, #28a6d8);
  box-shadow: 0 8px 20px -10px rgba(13, 108, 166, 0.9);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  padding: 7px 8px 7px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.brand:hover {
  background: rgba(255, 255, 255, 0.62);
  border-color: rgba(255, 255, 255, 0.7);
  transform: translateY(-1px);
}

.site-header.is-scrolled .brand {
  background: rgba(255, 255, 255, 0.68);
}

.brand__mark {
  width: 38px;
  height: 38px;
  filter: drop-shadow(0 7px 12px rgba(31, 137, 187, 0.28));
}

.brand__text {
  padding-right: 8px;
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
  color: var(--ink);
}

.local-mode .brand::after,
.online-mode .brand::after {
  align-self: center;
  margin-left: 2px;
  padding: 2px 7px;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  border-radius: 999px;
}

.local-mode .brand::after {
  content: "本机版";
  color: #2f7a66;
  background: rgba(224, 255, 246, 0.66);
  border: 1px solid rgba(122, 209, 184, 0.4);
}

.online-mode .brand::after {
  content: "联机版";
  color: #266b8f;
  background: rgba(226, 247, 255, 0.72);
  border: 1px solid rgba(111, 192, 226, 0.4);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: var(--shadow-sm);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.nav-toggle span {
  display: block;
  width: 17px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.25s, opacity 0.25s;
}

.nav-open .nav-toggle span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-open .nav-toggle span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   基础组件
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 12px 23px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  box-shadow: 0 8px 20px -18px rgba(4, 54, 84, 0.5);
  transition: transform 0.22s var(--ease), box-shadow 0.22s, background 0.22s, color 0.22s;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 32px -20px rgba(4, 54, 84, 0.55);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, #0f6f9f, #1b9cd1 58%, #45c9e8);
  border-color: rgba(255, 255, 255, 0.34);
  box-shadow: 0 15px 30px -14px rgba(8, 107, 160, 0.75);
}

.btn--primary:hover {
  color: #fff;
  background: linear-gradient(135deg, #0d638f, #1995c8 58%, #3fc0df);
  box-shadow: 0 20px 36px -16px rgba(8, 107, 160, 0.8);
}

.btn--dark {
  color: #fff;
  background: linear-gradient(135deg, #0a2b45, #0f527c);
  border-color: rgba(255, 255, 255, 0.18);
}

.btn--dark:hover {
  color: #fff;
  background: linear-gradient(135deg, #0a2b45, #146b9c);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.24);
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: none;
}

.btn--sm {
  min-height: 38px;
  padding: 8px 15px;
  font-size: 0.84rem;
}

.btn--lg {
  min-height: 54px;
  padding: 15px 28px;
  font-size: 1rem;
}

.btn--block {
  width: 100%;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
  box-shadow: none;
}

.btn__arrow {
  font-size: 1.08em;
  transition: transform 0.2s;
}

.btn:hover .btn__arrow {
  transform: translateX(3px);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--blue-2);
  transition: gap 0.2s, color 0.2s;
}

.text-link:hover {
  gap: 10px;
  color: var(--blue-3);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-2);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px 7px 9px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blue-3);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.kicker__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #35b98c;
  box-shadow: 0 0 0 5px rgba(53, 185, 140, 0.12);
}

.section {
  padding: clamp(46px, 7vw, 84px) 0;
}

.section--tight {
  padding: clamp(28px, 4vw, 48px) 0;
}

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

.section-head h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.7rem);
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.section-head p {
  max-width: 520px;
  margin-top: 10px;
  color: var(--muted);
}

.section-head__aside {
  flex-shrink: 0;
  padding-bottom: 4px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--blue-2);
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  border-radius: 999px;
  color: var(--blue-3);
  background: rgba(169, 232, 255, 0.42);
  border: 1px solid rgba(157, 225, 250, 0.55);
}

.badge--new {
  color: #fff;
  background: linear-gradient(135deg, #25a4d3, #47c9b5);
  border-color: transparent;
}

.badge--soft {
  color: #426175;
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(255, 255, 255, 0.7);
}

.icon-box {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 15px;
  color: var(--blue-2);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 8px 18px -14px rgba(7, 56, 87, 0.4);
}

.icon-box svg {
  width: 23px;
  height: 23px;
}

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  font-size: 0.96rem;
  font-weight: 800;
  color: #fff;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.78);
  box-shadow: 0 5px 14px -8px rgba(7, 56, 87, 0.5);
  user-select: none;
}

.avatar--sm { width: 32px; height: 32px; font-size: 0.78rem; }
.avatar--md { width: 40px; height: 40px; }
.avatar--lg { width: 54px; height: 54px; font-size: 1.2rem; }
.avatar--xl { width: 86px; height: 86px; font-size: 2rem; border-width: 3px; }

.avatar--blue { background: linear-gradient(140deg, #4ba9df, #136da0); }
.avatar--aqua { background: linear-gradient(140deg, #68dbe3, #1a91ab); }
.avatar--violet { background: linear-gradient(140deg, #a6a3ee, #6467c9); }
.avatar--mint { background: linear-gradient(140deg, #71d9bf, #2a9a88); }
.avatar--peach { background: linear-gradient(140deg, #f6b99c, #d47b63); }
.avatar--rose { background: linear-gradient(140deg, #f1a8be, #c76387); }
.avatar--ice { background: linear-gradient(140deg, #9ee2f8, #3e9ec7); }

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #35b98c;
  box-shadow: 0 0 0 4px rgba(53, 185, 140, 0.12);
}

.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 48px 24px;
  text-align: center;
  color: var(--muted);
}

.empty__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  font-size: 1.8rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px dashed rgba(13, 74, 111, 0.22);
}

.empty strong {
  color: var(--ink-2);
}

.empty p {
  max-width: 340px;
  font-size: 0.9rem;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.spinner--dark {
  border-color: rgba(13, 74, 111, 0.18);
  border-top-color: var(--blue-2);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* --------------------------------------------------------------------------
   首页
   -------------------------------------------------------------------------- */

.home-main {
  padding-top: var(--header-h);
}

.home-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(330px, 0.96fr);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
  min-height: min(760px, calc(100vh - var(--header-h)));
  padding: clamp(34px, 6vw, 72px) 0 clamp(48px, 7vw, 88px);
}

.hero-copy h1 {
  max-width: 780px;
  margin: 20px 0 22px;
  font-size: clamp(2.65rem, 5.15vw, 4.9rem);
  line-height: 1.06;
  letter-spacing: -0.065em;
  text-wrap: balance;
  color: var(--ink);
}

.hero-copy h1 .ice-word {
  position: relative;
  display: inline-block;
  color: transparent;
  background: linear-gradient(115deg, #0c6f9e 4%, #28a9d7 48%, #68d6e3 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-copy h1 .ice-word::after {
  content: "";
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: 0.05em;
  height: 0.13em;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(22, 132, 196, 0.08), rgba(58, 194, 224, 0.45), rgba(22, 132, 196, 0.08));
}

.hero-copy .hero-sub {
  max-width: 560px;
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  color: #405f75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 600;
}

.hero-notes span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-notes i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(65, 198, 232, 0.13);
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 450px;
  isolation: isolate;
}

.hero-visual::before {
  content: "";
  position: absolute;
  width: min(430px, 86%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 247, 255, 0.7) 0%, rgba(232, 250, 255, 0.28) 42%, transparent 70%);
  filter: blur(4px);
  z-index: -1;
}

.orbit-ring {
  position: absolute;
  width: min(420px, 90%);
  aspect-ratio: 1;
  border: 1px dashed rgba(30, 145, 190, 0.24);
  border-radius: 50%;
  animation: orbit-spin 34s linear infinite;
}

.orbit-ring::before,
.orbit-ring::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(70, 194, 229, 0.65);
  box-shadow: 0 0 0 5px rgba(70, 194, 229, 0.12);
}

.orbit-ring::before {
  top: 11%;
  left: 17%;
  width: 7px;
  height: 7px;
}

.orbit-ring::after {
  right: 9%;
  bottom: 24%;
  width: 5px;
  height: 5px;
}

.hero-core {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(250px, 58%);
  aspect-ratio: 1;
  padding: 26px;
  text-align: center;
  border-radius: 42% 58% 51% 49% / 48% 43% 57% 52%;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(222, 247, 255, 0.52)),
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.95), transparent 55%);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 30px 70px -30px rgba(11, 92, 132, 0.5);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  backdrop-filter: blur(16px) saturate(130%);
  animation: core-float 7s ease-in-out infinite;
}

.hero-core::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: inherit;
  pointer-events: none;
}

.hero-core img {
  width: 78px;
  height: 78px;
  margin-bottom: 12px;
  filter: drop-shadow(0 14px 20px rgba(25, 132, 181, 0.28));
}

.hero-core strong {
  font-size: 1.55rem;
  letter-spacing: 0.06em;
}

.hero-core span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.orbit-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  -webkit-backdrop-filter: blur(15px) saturate(140%);
  backdrop-filter: blur(15px) saturate(140%);
  transition: transform 0.25s var(--ease), background 0.25s;
}

.orbit-chip:hover {
  transform: translateY(-3px) scale(1.03);
  background: rgba(255, 255, 255, 0.92);
}

.orbit-chip i {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  font-size: 0.7rem;
  font-style: normal;
  border-radius: 8px;
  background: var(--ice-2);
}

.orbit-chip--news { top: 7%; right: 2%; animation: chip-float 6.5s ease-in-out infinite; }
.orbit-chip--video { top: 12%; left: 2%; animation: chip-float 7.1s ease-in-out -2s infinite; }
.orbit-chip--game { top: 39%; left: -1%; animation: chip-float 7.4s ease-in-out -1.4s infinite; }
.orbit-chip--chat { bottom: 11%; right: 4%; animation: chip-float 6.8s ease-in-out -2.7s infinite; }
.orbit-chip--ai { bottom: 25%; left: 1%; animation: chip-float 7.8s ease-in-out -0.8s infinite; }

.orbit-chip--chat i { background: rgba(71, 201, 181, 0.18); }
.orbit-chip--game i { background: rgba(139, 142, 232, 0.16); }
.orbit-chip--ai i { background: rgba(244, 167, 133, 0.2); }

.hero-status {
  position: absolute;
  bottom: 1%;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 13px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.hero-status strong {
  color: var(--ink-2);
}

@keyframes orbit-spin {
  to { transform: rotate(360deg); }
}

@keyframes core-float {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-12px) rotate(1.5deg); }
}

@keyframes chip-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 17px;
}

.feature-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 238px;
  padding: 27px;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--radius-lg);
  transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s;
}

.feature-card::before {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -85px;
  z-index: -1;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: var(--accent-soft, rgba(65, 198, 232, 0.2));
  filter: blur(6px);
  transition: transform 0.4s var(--ease);
}

.feature-card::after {
  content: "";
  position: absolute;
  top: 22px;
  right: 23px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 13px;
  background:
    linear-gradient(135deg, transparent 46%, rgba(255, 255, 255, 0.6) 47%, transparent 50%),
    rgba(255, 255, 255, 0.22);
  transform: rotate(9deg);
  opacity: 0.75;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 32px 70px -34px rgba(7, 56, 87, 0.55);
}

.feature-card:hover::before {
  transform: scale(1.15) translate(-4px, -4px);
}

.feature-card--news { grid-column: span 4; --accent: #1e9ccc; --accent-soft: rgba(65, 198, 232, 0.25); }
.feature-card--video { grid-column: span 4; --accent: #d45f8f; --accent-soft: rgba(233, 141, 168, 0.25); }
.feature-card--chat { grid-column: span 4; --accent: #2aa79a; --accent-soft: rgba(71, 201, 181, 0.24); }
.feature-card--game { grid-column: span 4; --accent: #7f82d8; --accent-soft: rgba(139, 142, 232, 0.25); }
.feature-card--ai { grid-column: span 4; --accent: #dd8d6a; --accent-soft: rgba(244, 167, 133, 0.27); }
.feature-card--about { grid-column: span 4; --accent: #c77691; --accent-soft: rgba(233, 141, 168, 0.22); }

.feature-card .icon-box {
  margin-bottom: 20px;
  color: var(--accent);
  background: rgba(255, 255, 255, 0.55);
}

.feature-card h3 {
  margin-bottom: 8px;
  font-size: clamp(1.24rem, 2vw, 1.55rem);
  letter-spacing: -0.025em;
}

.feature-card p {
  max-width: 520px;
  color: var(--muted);
  font-size: 0.9rem;
}

.feature-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 22px;
}

.feature-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.feature-arrow {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  font-size: 1.05rem;
  color: var(--accent);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  transition: transform 0.25s, background 0.25s;
}

.feature-card:hover .feature-arrow {
  transform: translateX(3px);
  background: #fff;
}

.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.stat {
  position: relative;
  padding: 28px 26px;
  background: rgba(255, 255, 255, 0.16);
}

.stat + .stat::before {
  content: "";
  position: absolute;
  top: 24%;
  bottom: 24%;
  left: 0;
  width: 1px;
  background: var(--line);
}

.stat__value {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-size: clamp(1.9rem, 3.6vw, 2.55rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--ink);
}

.stat__value small {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--muted-2);
}

.stat__label {
  margin-top: 2px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.step {
  position: relative;
  padding: 28px 26px 30px;
  border-radius: var(--radius);
}

.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--blue-3);
  background: var(--ice-2);
  border-radius: 50%;
}

.step h3 {
  margin-bottom: 7px;
  font-size: 1.13rem;
}

.step p {
  color: var(--muted);
  font-size: 0.88rem;
}

.cta-band {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(30px, 5vw, 54px);
  overflow: hidden;
  border-radius: var(--radius-xl);
  color: #fff;
  background:
    radial-gradient(80% 160% at 90% 0%, rgba(83, 204, 231, 0.34), transparent 60%),
    linear-gradient(120deg, #082b44, #0d5b85 55%, #117fa9);
  box-shadow: 0 34px 80px -38px rgba(3, 44, 70, 0.65);
}

.cta-band::after {
  content: "冰";
  position: absolute;
  right: 4%;
  bottom: -38%;
  font-size: 16rem;
  font-weight: 800;
  line-height: 1;
  color: rgba(255, 255, 255, 0.055);
  pointer-events: none;
}

.cta-band h2 {
  max-width: 620px;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.16;
  letter-spacing: -0.04em;
}

.cta-band p {
  max-width: 540px;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.68);
}

.cta-band__actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex-shrink: 0;
}

.cta-band .btn {
  border-color: rgba(255, 255, 255, 0.2);
}

.cta-band .btn--ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.cta-band .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.17);
}

/* --------------------------------------------------------------------------
   页脚
   -------------------------------------------------------------------------- */

.site-footer {
  margin-top: clamp(40px, 7vw, 80px);
  padding: 42px 0 28px;
  background: rgba(255, 255, 255, 0.38);
  border-top: 1px solid rgba(255, 255, 255, 0.65);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 36px;
  padding-bottom: 30px;
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.footer-brand img {
  width: 34px;
  height: 34px;
}

.footer-brand strong {
  display: block;
  font-size: 1.04rem;
  letter-spacing: 0.03em;
}

.footer-brand p {
  max-width: 330px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.82rem;
}

.footer-col h4 {
  margin-bottom: 12px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.footer-col a,
.footer-col > span {
  display: block;
  margin: 7px 0;
  font-size: 0.85rem;
  color: var(--muted);
  transition: color 0.2s;
}

.footer-col > span span,
.footer-col > span [data-year] {
  display: inline;
  margin: 0;
  font-size: inherit;
  color: inherit;
}

.footer-col a:hover {
  color: var(--blue-2);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 0.76rem;
}

.footer-bottom__links {
  display: flex;
  gap: 16px;
}

/* --------------------------------------------------------------------------
   内页头图 / 通用页面
   -------------------------------------------------------------------------- */

.page-main {
  padding-top: calc(var(--header-h) + 34px);
}

.page-hero {
  position: relative;
  padding: clamp(30px, 6vw, 68px) 0 clamp(26px, 4vw, 46px);
}

.page-hero--split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

.page-hero--split > div {
  min-width: 0;
}

.page-hero h1,
.page-hero p {
  overflow-wrap: anywhere;
}

.page-hero h1 {
  max-width: 900px;
  margin: 12px 0 16px;
  font-size: clamp(2.2rem, 5.4vw, 4.4rem);
  line-height: 1.07;
  letter-spacing: -0.055em;
}

.page-hero h1 em {
  font-style: normal;
  color: transparent;
  background: linear-gradient(115deg, #0c6f9e, #2aa8d6 55%, #66d4e1);
  -webkit-background-clip: text;
  background-clip: text;
}

.page-hero p {
  max-width: 640px;
  color: #476479;
  font-size: clamp(0.95rem, 1.4vw, 1.08rem);
}

.page-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.page-hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.page-hero__aside {
  flex-shrink: 0;
  padding-bottom: 8px;
}

/* --------------------------------------------------------------------------
   资讯
   -------------------------------------------------------------------------- */

.news-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 8px 0 26px;
  padding: 12px;
  border-radius: 999px;
}

.news-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.filter-chip {
  padding: 8px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}

.filter-chip:hover {
  color: var(--blue-3);
  background: rgba(255, 255, 255, 0.55);
}

.filter-chip.is-active {
  color: #fff;
  background: linear-gradient(135deg, #117bb5, #2ca8d6);
  box-shadow: 0 8px 18px -10px rgba(13, 108, 166, 0.9);
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 220px;
}

.search-box svg {
  position: absolute;
  left: 14px;
  width: 17px;
  height: 17px;
  color: var(--muted-2);
  pointer-events: none;
}

.search-box input {
  width: 100%;
  height: 40px;
  padding: 0 15px 0 40px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.search-box input::placeholder {
  color: var(--muted-2);
}

.search-box input:focus {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(22, 132, 196, 0.4);
}

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

.news-featured {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  min-height: 330px;
  overflow: hidden;
  border-radius: var(--radius-xl);
}

.news-featured__cover {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  background-image:
    linear-gradient(145deg, rgba(7, 92, 130, 0.22), rgba(23, 155, 194, 0.04)),
    url("../img/ice-bg.jpg");
  background-size: cover;
  background-position: 50% 38%;
}

.news-featured__cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 80% at 26% 30%, rgba(255, 255, 255, 0.42), transparent 65%),
    linear-gradient(120deg, rgba(11, 92, 130, 0.12), rgba(64, 199, 227, 0.25));
}

.news-featured__cover::after {
  content: attr(data-glyph);
  position: absolute;
  right: -0.06em;
  bottom: -0.22em;
  font-size: 13rem;
  font-weight: 800;
  line-height: 1;
  color: rgba(255, 255, 255, 0.32);
  text-shadow: 0 20px 50px rgba(8, 70, 100, 0.16);
}

.news-featured__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(26px, 4vw, 48px);
}

.news-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: 13px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--muted-2);
}

.news-meta .badge {
  font-size: 0.7rem;
}

.news-featured h2 {
  margin-bottom: 13px;
  font-size: clamp(1.5rem, 2.6vw, 2.15rem);
  line-height: 1.22;
  letter-spacing: -0.035em;
}

.news-featured p {
  color: var(--muted);
  font-size: 0.92rem;
}

.news-featured .text-link {
  margin-top: 24px;
}

.news-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius);
  transition: transform 0.28s var(--ease), box-shadow 0.28s, border-color 0.28s;
}

.news-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 28px 58px -30px rgba(7, 56, 87, 0.5);
}

.news-card__cover {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-image:
    linear-gradient(140deg, rgba(8, 80, 115, 0.2), rgba(34, 163, 199, 0.02)),
    url("../img/ice-bg.jpg");
  background-size: cover;
  background-position: 50% 50%;
}

.news-card__cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(8, 73, 103, 0.15));
}

.news-card__cover::after {
  content: attr(data-glyph);
  position: absolute;
  right: 8%;
  bottom: -0.24em;
  font-size: 6.4rem;
  font-weight: 800;
  line-height: 1;
  color: rgba(255, 255, 255, 0.55);
  text-shadow: 0 14px 32px rgba(7, 74, 105, 0.2);
  transition: transform 0.35s var(--ease);
}

.news-card:hover .news-card__cover::after {
  transform: translateY(-4px) rotate(-3deg);
}

.news-card__cover .badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.news-card__cover--cyan {
  background-image:
    linear-gradient(140deg, rgba(7, 100, 140, 0.32), rgba(54, 194, 220, 0.1)),
    url("../img/ice-bg.jpg");
}
.news-card__cover--blue {
  background-image:
    linear-gradient(140deg, rgba(14, 74, 145, 0.38), rgba(64, 159, 226, 0.12)),
    url("../img/ice-bg.jpg");
}
.news-card__cover--violet {
  background-image:
    linear-gradient(140deg, rgba(73, 67, 146, 0.38), rgba(164, 165, 237, 0.12)),
    url("../img/ice-bg.jpg");
}
.news-card__cover--mint {
  background-image:
    linear-gradient(140deg, rgba(15, 108, 94, 0.38), rgba(88, 211, 177, 0.12)),
    url("../img/ice-bg.jpg");
}
.news-card__cover--peach {
  background-image:
    linear-gradient(140deg, rgba(157, 94, 66, 0.36), rgba(247, 190, 150, 0.12)),
    url("../img/ice-bg.jpg");
}
.news-card__cover--rose {
  background-image:
    linear-gradient(140deg, rgba(139, 61, 91, 0.36), rgba(242, 165, 190, 0.12)),
    url("../img/ice-bg.jpg");
}

.news-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px 21px 22px;
}

.news-card h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
  line-height: 1.4;
  letter-spacing: -0.015em;
}

.news-card p {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.83rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.news-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
  color: var(--muted-2);
  font-size: 0.72rem;
}

.news-card__footer .text-link {
  font-size: 0.78rem;
}

.news-empty {
  grid-column: 1 / -1;
  border-radius: var(--radius);
}

.video-section {
  margin-top: clamp(48px, 7vw, 80px);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.video-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 210px;
  padding: 24px;
  overflow: hidden;
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(8, 62, 92, 0.9), rgba(15, 114, 151, 0.8));
  color: #fff;
  transition: transform 0.28s var(--ease), box-shadow 0.28s;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 60px -30px rgba(3, 44, 70, 0.7);
}

.video-card::before {
  content: attr(data-glyph);
  position: absolute;
  right: 14px;
  bottom: -22px;
  font-size: 7rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.08);
}

.video-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.video-play {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  transition: transform 0.25s, background 0.25s;
}

.video-card:hover .video-play {
  transform: scale(1.08);
  background: rgba(255, 255, 255, 0.26);
}

.video-card h3 {
  margin-top: auto;
  padding-top: 30px;
  font-size: 1.1rem;
}

.video-card p {
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.82rem;
}

.video-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 17px;
  color: #bdeeff;
  font-size: 0.78rem;
  font-weight: 700;
}

.bili-feature {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  min-height: 340px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  color: #fff;
  background:
    radial-gradient(90% 150% at 0% 0%, rgba(251, 114, 153, 0.2), transparent 52%),
    linear-gradient(120deg, #082b44, #0c4d72 56%, #0c6f8f);
  box-shadow: var(--shadow-lg);
}

.bili-feature__body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(28px, 5vw, 52px);
}

.bili-feature__mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 5px 10px;
  color: #ffd9e5;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  background: rgba(251, 114, 153, 0.13);
  border: 1px solid rgba(251, 114, 153, 0.3);
  border-radius: 999px;
}

.bili-feature__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fb7299;
  box-shadow: 0 0 0 4px rgba(251, 114, 153, 0.14);
}

.bili-feature h2 {
  max-width: 520px;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  line-height: 1.18;
  letter-spacing: -0.04em;
}

.bili-feature p {
  max-width: 500px;
  margin-top: 13px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.88rem;
}

.bili-feature .form-actions {
  margin-top: 22px;
}

.bili-feature .btn {
  border-color: rgba(255, 255, 255, 0.18);
}

.bili-feature .btn--primary {
  background: linear-gradient(135deg, #d94c78, #fb7299);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 14px 30px -16px rgba(251, 114, 153, 0.75);
}

.bili-feature .btn--primary:hover {
  background: linear-gradient(135deg, #c83f6b, #f2638f);
}

.bili-feature__note {
  margin-top: 16px !important;
  color: rgba(255, 255, 255, 0.38) !important;
  font-size: 0.7rem !important;
}

.bili-feature__art {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  background:
    radial-gradient(circle at 52% 48%, rgba(251, 114, 153, 0.34), transparent 34%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.04), rgba(3, 32, 49, 0.2));
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.bili-feature__art::before,
.bili-feature__art::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
}

.bili-feature__art::before {
  width: 260px;
  height: 260px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.bili-feature__art::after {
  width: 390px;
  height: 390px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-color: rgba(251, 114, 153, 0.2);
  border-style: dashed;
}

.bili-play {
  position: absolute;
  left: 50%;
  top: 48%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  color: #fff;
  background: linear-gradient(145deg, #fb7299, #d33f6d);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 20px 45px -18px rgba(251, 114, 153, 0.8);
  animation: core-float 6s ease-in-out infinite;
}

.bili-play span {
  margin-left: 5px;
  font-size: 1.5rem;
}

.bili-play small {
  margin-top: -6px;
  font-size: 0.54rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  opacity: 0.66;
}

.bili-float {
  position: absolute;
  z-index: 3;
  padding: 6px 11px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.68rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  animation: chip-float 7s ease-in-out infinite;
}

.bili-float--1 { top: 16%; left: 12%; }
.bili-float--2 { top: 22%; right: 10%; animation-delay: -1.3s; }
.bili-float--3 { bottom: 24%; left: 9%; animation-delay: -2.5s; }
.bili-float--4 { right: 12%; bottom: 16%; animation-delay: -3.4s; }

.bili-feature__caption {
  position: absolute;
  left: 50%;
  bottom: 8%;
  width: 80%;
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.68rem;
  text-align: center;
  transform: translateX(-50%);
}

.video-toolbar {
  margin-top: 0;
}

.video-search {
  min-width: 280px;
}

.video-search input {
  padding-right: 68px;
}

.video-search__btn {
  position: absolute;
  right: 5px;
  top: 50%;
  height: 30px;
  padding: 0 11px;
  color: var(--blue-3);
  font-size: 0.72rem;
  font-weight: 800;
  background: rgba(220, 247, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  transform: translateY(-50%);
  transition: background 0.2s;
}

.video-search__btn:hover {
  background: #fff;
}

.video-grid--page {
  margin-top: 0;
}

.video-grid--page .video-card {
  min-height: 235px;
}

.video-grid--page .video-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 50%, rgba(2, 26, 40, 0.2));
}

@media (max-width: 900px) {
  .bili-feature {
    grid-template-columns: 1fr;
  }

  .bili-feature__art {
    min-height: 250px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 0;
  }

  .bili-feature__caption {
    bottom: 4%;
  }

  .video-grid--page {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .bili-feature__body {
    padding: 26px 21px 28px;
  }

  .bili-feature__art {
    min-height: 220px;
  }

  .bili-play {
    width: 86px;
    height: 86px;
  }

  .bili-feature h2 {
    font-size: 1.75rem;
  }

  .video-search {
    min-width: 0;
    width: 100%;
  }

  .video-toolbar {
    align-items: stretch;
  }
}

/* --------------------------------------------------------------------------
   文章详情
   -------------------------------------------------------------------------- */

.article-shell {
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: var(--radius-xl);
}

.article-cover {
  position: relative;
  min-height: 300px;
  background-image:
    linear-gradient(120deg, rgba(8, 75, 110, 0.45), rgba(41, 169, 203, 0.18)),
    url("../img/ice-bg.jpg");
  background-size: cover;
  background-position: center 44%;
}

.article-cover::after {
  content: attr(data-glyph);
  position: absolute;
  right: 4%;
  bottom: -0.22em;
  font-size: 16rem;
  font-weight: 800;
  line-height: 1;
  color: rgba(255, 255, 255, 0.28);
}

.article-head {
  padding: clamp(28px, 5vw, 54px) clamp(24px, 6vw, 68px) 22px;
}

.article-head h1 {
  margin: 12px 0 16px;
  font-size: clamp(1.85rem, 4vw, 3.1rem);
  line-height: 1.16;
  letter-spacing: -0.045em;
}

.article-head .article-summary {
  max-width: 680px;
  color: var(--muted);
  font-size: 1rem;
}

.article-body {
  padding: 0 clamp(24px, 6vw, 68px) clamp(34px, 5vw, 60px);
}

.prose {
  max-width: 720px;
  margin: 0 auto;
}

.prose .lead {
  margin: 24px 0 28px;
  padding-left: 18px;
  color: var(--ink-2);
  font-size: 1.13rem;
  line-height: 1.8;
  border-left: 3px solid rgba(22, 132, 196, 0.45);
}

.prose p {
  margin: 18px 0;
  color: #3f5e73;
  font-size: 0.98rem;
  line-height: 1.95;
}

.prose h2 {
  margin: 36px 0 12px;
  font-size: 1.45rem;
  letter-spacing: -0.025em;
}

.prose blockquote {
  margin: 28px 0;
  padding: 20px 24px;
  color: var(--ink-2);
  font-size: 1.04rem;
  font-weight: 600;
  line-height: 1.8;
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 18px;
}

.prose ul,
.prose ol {
  margin: 18px 0;
  padding-left: 22px;
  color: #3f5e73;
}

.prose li {
  margin: 8px 0;
  padding-left: 3px;
}

.prose li::marker {
  color: var(--blue);
}

.article-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.article-share {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.related {
  padding-top: clamp(36px, 5vw, 58px);
}

.related h2 {
  margin-bottom: 18px;
  font-size: 1.48rem;
  letter-spacing: -0.025em;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

/* --------------------------------------------------------------------------
   游戏
   -------------------------------------------------------------------------- */

.games-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.game-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-xl);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.game-art {
  position: relative;
  min-height: 245px;
  overflow: hidden;
  isolation: isolate;
}

.game-art--mc {
  background:
    radial-gradient(80% 100% at 78% 12%, rgba(188, 255, 199, 0.55), transparent 55%),
    linear-gradient(145deg, #153d50, #1e7b78 52%, #83c98d);
}

.game-art--poki {
  background:
    radial-gradient(80% 100% at 20% 10%, rgba(255, 229, 142, 0.8), transparent 56%),
    linear-gradient(145deg, #6f4bb5, #cf5b93 52%, #f39d6c);
}

.game-art::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.25;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 90%);
  mask-image: linear-gradient(180deg, #000, transparent 90%);
}

.game-art--mc::after {
  content: "";
  position: absolute;
  right: 8%;
  bottom: -12%;
  width: 210px;
  height: 210px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, #8ed76f 0 30%, #7a5639 30% 100%);
  box-shadow:
    inset 0 8px 0 rgba(255, 255, 255, 0.2),
    inset 0 -14px 0 rgba(0, 0, 0, 0.13),
    0 30px 60px -20px rgba(2, 35, 38, 0.55);
  transform: rotate(-8deg);
}

.game-art--poki::after {
  content: "🎮";
  position: absolute;
  right: 8%;
  bottom: 2%;
  font-size: 8rem;
  transform: rotate(-9deg);
  filter: drop-shadow(0 24px 30px rgba(57, 20, 82, 0.35));
}

.game-art__label {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.game-art__glyph {
  position: absolute;
  left: 9%;
  bottom: 7%;
  z-index: 2;
  font-size: clamp(3.6rem, 8vw, 6.2rem);
  font-weight: 800;
  line-height: 1;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: -0.07em;
  text-shadow: 0 18px 40px rgba(3, 45, 55, 0.3);
}

.game-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 26px 25px 27px;
}

.game-body h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 7px;
  font-size: 1.45rem;
  letter-spacing: -0.025em;
}

.game-body .game-sub {
  color: var(--muted);
  font-size: 0.9rem;
}

.game-features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 18px 0 24px;
}

.game-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.game-note {
  margin-top: 12px;
  color: var(--muted-2);
  font-size: 0.72rem;
}

.game-card--soon {
  min-height: 100%;
  border: 1.5px dashed rgba(13, 74, 111, 0.22);
  background: rgba(255, 255, 255, 0.34);
  box-shadow: none;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.game-card--soon:hover {
  transform: none;
  box-shadow: none;
}

.game-card--soon .game-body {
  align-items: flex-start;
  justify-content: center;
  min-height: 420px;
  gap: 12px;
}

.game-card--soon .game-body h2 {
  color: var(--ink-2);
}

.soon-orb {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  margin-bottom: 10px;
  font-size: 1.5rem;
  color: var(--blue-2);
  background: rgba(255, 255, 255, 0.55);
  border: 1px dashed rgba(13, 74, 111, 0.22);
  border-radius: 24px;
}

.game-tips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.tip-card {
  padding: 24px;
  border-radius: var(--radius);
}

.tip-card__num {
  display: inline-flex;
  margin-bottom: 12px;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--blue-2);
}

.tip-card h3 {
  margin-bottom: 6px;
  font-size: 1rem;
}

.tip-card p {
  color: var(--muted);
  font-size: 0.84rem;
}

.external-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 26px;
  padding: 17px 20px;
  color: var(--muted);
  font-size: 0.82rem;
  border-radius: 16px;
}

.external-note strong {
  color: var(--ink-2);
}

.external-note__icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  color: var(--blue-2);
  background: rgba(255, 255, 255, 0.6);
  border-radius: 9px;
}

/* --------------------------------------------------------------------------
   聊天
   -------------------------------------------------------------------------- */

.chat-page {
  height: 100svh;
  overflow: hidden;
  padding-top: var(--header-h);
}

.chat-shell {
  display: grid;
  grid-template-columns: 336px minmax(0, 1fr);
  gap: 15px;
  width: min(1400px, calc(100% - 32px));
  height: calc(100svh - var(--header-h) - 20px);
  margin: 0 auto;
  padding-bottom: 18px;
}

.chat-sidebar,
.chat-main {
  min-height: 0;
  border-radius: var(--radius-lg);
}

.chat-sidebar {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.account-card {
  display: flex;
  align-items: center;
  gap: 12px;
  width: calc(100% - 20px);
  margin: 10px 10px 6px;
  padding: 11px;
  text-align: left;
  background: rgba(255, 255, 255, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 18px;
  transition: background 0.2s, border-color 0.2s;
}

.account-card:hover {
  background: rgba(255, 255, 255, 0.65);
  border-color: rgba(255, 255, 255, 0.9);
}

.account-card__body {
  min-width: 0;
  flex: 1;
}

.account-card__name {
  display: flex;
  align-items: center;
  gap: 7px;
  overflow: hidden;
  font-size: 0.92rem;
  font-weight: 800;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.account-card__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  color: var(--muted-2);
  font-size: 0.7rem;
  font-weight: 600;
}

.account-card__chevron {
  color: var(--muted-2);
  font-size: 0.9rem;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #37b78b;
  box-shadow: 0 0 0 3px rgba(55, 183, 139, 0.13);
}

.side-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  margin: 8px 10px 6px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 14px;
}

.side-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 10px;
  transition: color 0.2s, background 0.2s, box-shadow 0.2s;
}

.side-tab:hover {
  color: var(--blue-3);
}

.side-tab.is-active {
  color: var(--blue-3);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 5px 14px -10px rgba(5, 63, 94, 0.4);
}

.side-tab__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  font-size: 0.6rem;
  color: #fff;
  background: #e78b6c;
  border-radius: 8px;
}

.side-panels {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 4px 10px 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(13, 74, 111, 0.18) transparent;
}

.side-panel {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.side-note {
  margin: 10px 5px 4px;
  padding: 12px 13px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.6;
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 13px;
}

.side-note strong {
  color: var(--ink-2);
}

.inline-form {
  display: flex;
  gap: 6px;
  margin: 2px 0 8px;
}

.inline-form input {
  min-width: 0;
  flex: 1;
  height: 38px;
  padding: 0 12px;
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 11px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.inline-form input:focus {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(22, 132, 196, 0.4);
}

.inline-form .btn {
  min-height: 38px;
  padding: 8px 13px;
  font-size: 0.76rem;
  border-radius: 11px;
}

.group-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 2px 0 9px;
}

.group-actions .btn {
  min-height: 38px;
  padding: 8px 10px;
  font-size: 0.76rem;
  border-radius: 11px;
}

.conv-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 13px;
  transition: background 0.2s, border-color 0.2s;
}

.conv-item:hover {
  background: rgba(255, 255, 255, 0.48);
  border-color: rgba(255, 255, 255, 0.62);
}

.conv-item.is-active {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 6px 18px -14px rgba(4, 54, 84, 0.45);
}

.conv-item__body {
  min-width: 0;
  flex: 1;
}

.conv-item__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.conv-item__name {
  overflow: hidden;
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.conv-item__preview {
  display: block;
  overflow: hidden;
  margin-top: 1px;
  color: var(--muted-2);
  font-size: 0.7rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.conv-item__time {
  color: var(--muted-2);
  font-size: 0.62rem;
  white-space: nowrap;
}

.unread {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 17px;
  height: 17px;
  padding: 0 5px;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 800;
  background: linear-gradient(135deg, #2da7d4, #4dc7bd);
  border-radius: 999px;
}

.sidebar-footer {
  padding: 9px 16px 13px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 0.68rem;
  line-height: 1.55;
}

.sidebar-footer a {
  color: var(--blue-2);
  font-weight: 700;
}

.side-panel__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 8px 5px 3px;
  color: var(--muted-2);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.chat-main {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.18);
}

.chat-head__left {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.chat-head__back {
  display: none;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
}

.chat-head__back-label {
  display: none;
}

.chat-head h1 {
  overflow: hidden;
  font-size: 1.04rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.chat-head p {
  overflow: hidden;
  margin-top: 1px;
  color: var(--muted-2);
  font-size: 0.68rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.chat-head__actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}

.online-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  color: #2d7d68;
  font-size: 0.68rem;
  font-weight: 700;
  background: rgba(229, 255, 247, 0.55);
  border: 1px solid rgba(112, 208, 180, 0.3);
  border-radius: 999px;
}

.chat-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  transition: background 0.2s, transform 0.2s;
}

.chat-icon-btn:hover {
  background: rgba(255, 255, 255, 0.88);
  transform: translateY(-1px);
}

.message-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 18px clamp(14px, 3vw, 28px) 10px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(13, 74, 111, 0.2) transparent;
}

.message-list::-webkit-scrollbar,
.side-panels::-webkit-scrollbar {
  width: 7px;
}

.message-list::-webkit-scrollbar-thumb,
.side-panels::-webkit-scrollbar-thumb {
  background: rgba(13, 74, 111, 0.16);
  border-radius: 999px;
}

.load-older {
  display: flex;
  justify-content: center;
  padding: 2px 0 14px;
}

.load-older button {
  padding: 6px 12px;
  color: var(--blue-2);
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
}

.day-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0;
  color: var(--muted-2);
  font-size: 0.64rem;
  font-weight: 600;
  text-align: center;
}

.day-divider::before,
.day-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.msg {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 12px 0;
  animation: msg-in 0.25s var(--ease);
}

.msg--own {
  flex-direction: row-reverse;
}

.msg__content {
  max-width: min(680px, 78%);
  min-width: 0;
}

.msg--own .msg__content {
  text-align: right;
}

.msg__head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 3px 4px;
  color: var(--muted-2);
  font-size: 0.64rem;
  line-height: 1.2;
}

.msg--own .msg__head {
  justify-content: flex-end;
}

.msg__name {
  color: var(--ink-2);
  font-weight: 700;
}

.msg__bubble {
  display: inline-block;
  max-width: 100%;
  padding: 10px 14px;
  color: #28475c;
  font-size: 0.88rem;
  line-height: 1.65;
  text-align: left;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 4px 17px 17px 17px;
  box-shadow: 0 8px 18px -16px rgba(7, 56, 87, 0.35);
}

.msg--own .msg__bubble {
  color: #fff;
  background: linear-gradient(135deg, #1479ae, #2da8d3);
  border-color: rgba(255, 255, 255, 0.16);
  border-radius: 17px 4px 17px 17px;
  box-shadow: 0 10px 24px -16px rgba(8, 90, 134, 0.7);
}

.msg__meta {
  margin: 4px 3px 0;
  color: var(--muted-2);
  font-size: 0.62rem;
}

.msg--system {
  justify-content: center;
  margin: 18px 0;
}

.msg--system .msg__bubble {
  max-width: min(680px, 92%);
  color: #5a7284;
  font-size: 0.74rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  box-shadow: none;
}

.msg--system .msg__head,
.msg--system .msg__meta,
.msg--system .avatar {
  display: none;
}

@keyframes msg-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 30px;
  text-align: center;
  color: var(--muted);
}

.chat-empty__icon {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin-bottom: 4px;
  font-size: 2rem;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 26px;
  box-shadow: var(--shadow-sm);
}

.chat-empty h2 {
  font-size: 1.12rem;
  color: var(--ink-2);
}

.chat-empty p {
  max-width: 360px;
  font-size: 0.82rem;
}

.chat-composer {
  position: relative;
  padding: 9px 13px 12px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.15);
}

.composer-box {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  padding: 7px 7px 7px 12px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 19px;
  box-shadow: 0 8px 22px -18px rgba(7, 56, 87, 0.4);
  transition: border-color 0.2s, background 0.2s;
}

.composer-box:focus-within {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(22, 132, 196, 0.3);
}

.composer-box textarea {
  flex: 1;
  min-height: 32px;
  max-height: 120px;
  padding: 6px 0;
  resize: none;
  color: var(--ink);
  font-size: 0.88rem;
  line-height: 1.6;
  background: transparent;
  border: 0;
  outline: none;
}

.composer-box textarea::placeholder {
  color: var(--muted-2);
}

.composer-tools {
  display: flex;
  align-items: center;
  gap: 2px;
}

.composer-tool {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: var(--muted);
  font-size: 1rem;
  background: transparent;
  border: 0;
  border-radius: 9px;
  transition: background 0.2s, color 0.2s;
}

.composer-tool:hover {
  color: var(--blue-2);
  background: rgba(13, 74, 111, 0.06);
}

.send-btn {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  flex-shrink: 0;
  color: #fff;
  background: linear-gradient(135deg, #1479ae, #2fa9d3);
  border: 0;
  border-radius: 12px;
  box-shadow: 0 8px 18px -10px rgba(8, 90, 134, 0.8);
  transition: transform 0.2s, opacity 0.2s;
}

.send-btn:hover {
  transform: translateY(-1px);
}

.send-btn:disabled {
  opacity: 0.45;
  transform: none;
}

.composer-hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 7px 0;
  color: var(--muted-2);
  font-size: 0.62rem;
}

.emoji-pop {
  position: absolute;
  left: 14px;
  bottom: 78px;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  width: 226px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 15px;
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.emoji-pop button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  font-size: 1.16rem;
  background: transparent;
  border: 0;
  border-radius: 9px;
}

.emoji-pop button:hover {
  background: rgba(13, 74, 111, 0.07);
}

.chat-toast-stack {
  position: absolute;
  top: 70px;
  left: 50%;
  z-index: 6;
  transform: translateX(-50%);
}

.sidebar-backdrop {
  display: none;
}

/* 账户资料 */
.profile-main {
  padding-top: calc(var(--header-h) + 34px);
}

.profile-shell {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.profile-shell--single {
  grid-template-columns: minmax(0, 1fr);
  max-width: 760px;
  margin: 0 auto;
}

.profile-shell--single .panel {
  padding: clamp(34px, 7vw, 64px) clamp(22px, 5vw, 52px);
}

.profile-shell--single h2 {
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  letter-spacing: -0.03em;
}

.profile-card {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  padding: 30px;
  border-radius: var(--radius-xl);
  text-align: center;
}

.profile-card__avatar {
  display: flex;
  justify-content: center;
  margin: 4px 0 16px;
}

.profile-card__avatar .avatar {
  box-shadow: 0 22px 38px -22px rgba(7, 56, 87, 0.6);
}

.profile-card h1 {
  font-size: 1.5rem;
  letter-spacing: -0.03em;
}

.profile-card__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 4px 10px;
  color: #337a66;
  font-size: 0.68rem;
  font-weight: 700;
  background: rgba(225, 255, 246, 0.6);
  border: 1px solid rgba(127, 210, 184, 0.32);
  border-radius: 999px;
}

.profile-card__status--guest {
  color: #8a6a32;
  background: rgba(255, 248, 226, 0.6);
  border-color: rgba(227, 191, 111, 0.32);
}

.id-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 22px;
  padding: 12px 14px;
  text-align: left;
  background: rgba(255, 255, 255, 0.44);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 15px;
}

.id-box__label {
  color: var(--muted-2);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.id-box__value {
  margin-top: 2px;
  font-family: var(--mono);
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink);
}

.icon-copy {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  color: var(--blue-2);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 9px;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 16px;
  overflow: hidden;
  background: var(--line);
  border-radius: 14px;
}

.profile-stat {
  padding: 12px 4px;
  background: rgba(255, 255, 255, 0.4);
}

.profile-stat strong {
  display: block;
  font-size: 1.08rem;
}

.profile-stat span {
  color: var(--muted-2);
  font-size: 0.64rem;
}

.profile-card__foot {
  margin-top: 18px;
  color: var(--muted-2);
  font-size: 0.68rem;
  line-height: 1.6;
}

.panel-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.panel {
  padding: clamp(22px, 3vw, 30px);
  border-radius: var(--radius-lg);
}

.panel h2 {
  margin-bottom: 5px;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.panel > p {
  color: var(--muted);
  font-size: 0.86rem;
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.notice {
  display: flex;
  gap: 11px;
  margin: 18px 0;
  padding: 14px 16px;
  color: #6c5931;
  font-size: 0.8rem;
  line-height: 1.65;
  background: rgba(255, 249, 231, 0.58);
  border: 1px solid rgba(232, 203, 139, 0.3);
  border-radius: 14px;
}

.notice--blue {
  color: #315e76;
  background: rgba(231, 249, 255, 0.58);
  border-color: rgba(133, 209, 236, 0.32);
}

.notice__icon {
  flex-shrink: 0;
  font-size: 1rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  color: var(--ink-2);
  font-size: 0.76rem;
  font-weight: 700;
}

.field input {
  height: 46px;
  padding: 0 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 13px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.field input:focus {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(22, 132, 196, 0.4);
}

.field__hint {
  color: var(--muted-2);
  font-size: 0.68rem;
}

.code-row {
  display: flex;
  gap: 8px;
}

.code-row input {
  flex: 1;
  min-width: 0;
}

.code-row .btn {
  flex-shrink: 0;
  min-height: 46px;
  padding-inline: 16px;
  border-radius: 13px;
  font-size: 0.8rem;
}

.dev-code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0;
  padding: 12px 15px;
  color: var(--blue-3);
  font-size: 0.8rem;
  background: rgba(220, 247, 255, 0.6);
  border: 1px dashed rgba(48, 166, 205, 0.4);
  border-radius: 13px;
}

.dev-code strong {
  font-family: var(--mono);
  font-size: 1.18rem;
  letter-spacing: 0.16em;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.account-detail {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.detail-item {
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 14px;
}

.detail-item span {
  display: block;
  color: var(--muted-2);
  font-size: 0.66rem;
  font-weight: 600;
}

.detail-item strong {
  display: block;
  margin-top: 3px;
  font-size: 0.92rem;
}

.danger-zone {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.danger-zone h3 {
  color: #9b5b4a;
  font-size: 0.85rem;
}

.danger-zone p {
  color: var(--muted);
  font-size: 0.78rem;
}

.btn--danger {
  align-self: flex-start;
  color: #a4513d;
  background: rgba(255, 238, 232, 0.7);
  border-color: rgba(224, 151, 129, 0.4);
  box-shadow: none;
}

.btn--danger:hover {
  color: #fff;
  background: #c56750;
}

.profile-logged-out {
  text-align: center;
  padding: 14px 0 4px;
}

.profile-logged-out__icon {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  margin: 0 auto 16px;
  font-size: 1.8rem;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 24px;
}

/* --------------------------------------------------------------------------
   AI
   -------------------------------------------------------------------------- */

.ai-page {
  height: 100svh;
  overflow: hidden;
  padding-top: var(--header-h);
}

.ai-shell {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 15px;
  width: min(1360px, calc(100% - 32px));
  height: calc(100svh - var(--header-h) - 20px);
  margin: 0 auto;
  padding-bottom: 18px;
}

.ai-panel,
.ai-chat {
  min-height: 0;
  border-radius: var(--radius-lg);
}

.ai-panel {
  display: flex;
  flex-direction: column;
  padding: 26px 23px 20px;
  overflow-y: auto;
}

.ai-identity {
  display: flex;
  align-items: center;
  gap: 13px;
}

.ai-avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  flex-shrink: 0;
  font-size: 1.55rem;
  color: #fff;
  background: linear-gradient(145deg, #90dff5, #2c94c4);
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 19px;
  box-shadow: 0 14px 28px -16px rgba(7, 94, 132, 0.7);
}

.ai-avatar::after {
  content: "";
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 13px;
  height: 13px;
  background: #42c39b;
  border: 3px solid #eafbff;
  border-radius: 50%;
}

.ai-identity h1 {
  font-size: 1.16rem;
  letter-spacing: -0.02em;
}

.ai-identity p {
  color: var(--muted-2);
  font-size: 0.7rem;
}

.ai-panel__intro {
  margin: 22px 0 18px;
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.7;
}

.ai-panel__label {
  margin: 18px 0 9px;
  color: var(--muted-2);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.ai-suggestions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ai-suggest {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 11px 13px;
  text-align: left;
  color: var(--ink-2);
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 12px;
  transition: background 0.2s, transform 0.2s;
}

.ai-suggest:hover {
  background: rgba(255, 255, 255, 0.78);
  transform: translateX(2px);
}

.ai-suggest span {
  color: var(--muted-2);
}

.ai-panel__foot {
  margin-top: auto;
  padding-top: 22px;
}

.ai-provider {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 11px;
  color: var(--muted);
  font-size: 0.68rem;
  background: rgba(255, 255, 255, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 11px;
}

.ai-provider .dot {
  width: 6px;
  height: 6px;
}

.ai-disclaimer {
  margin-top: 10px;
  color: var(--muted-2);
  font-size: 0.62rem;
  line-height: 1.6;
}

.ai-chat {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.ai-chat__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.16);
}

.ai-chat__head h2 {
  font-size: 0.96rem;
}

.ai-chat__head p {
  color: var(--muted-2);
  font-size: 0.66rem;
}

.ai-chat__actions {
  display: flex;
  gap: 6px;
}

.ai-messages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 24px clamp(16px, 3.4vw, 36px);
  scrollbar-width: thin;
  scrollbar-color: rgba(13, 74, 111, 0.2) transparent;
}

.ai-welcome {
  max-width: 580px;
  margin: 5vh auto 0;
  text-align: center;
}

.ai-welcome .ai-avatar {
  width: 76px;
  height: 76px;
  margin: 0 auto 18px;
  font-size: 2rem;
  border-radius: 25px;
}

.ai-welcome h2 {
  font-size: clamp(1.45rem, 3vw, 2rem);
  letter-spacing: -0.04em;
}

.ai-welcome p {
  max-width: 480px;
  margin: 9px auto 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.ai-welcome__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin-top: 22px;
}

.ai-welcome__chips button {
  padding: 8px 13px;
  color: var(--blue-3);
  font-size: 0.74rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  transition: background 0.2s, transform 0.2s;
}

.ai-welcome__chips button:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
}

.ai-msg {
  display: flex;
  gap: 11px;
  max-width: 860px;
  margin: 0 auto 20px;
  animation: msg-in 0.28s var(--ease);
}

.ai-msg--user {
  flex-direction: row-reverse;
}

.ai-msg__avatar {
  flex-shrink: 0;
}

.ai-msg__body {
  min-width: 0;
  max-width: min(720px, 84%);
}

.ai-msg__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 5px;
  color: var(--muted-2);
  font-size: 0.63rem;
}

.ai-msg--user .ai-msg__meta {
  justify-content: flex-end;
}

.ai-msg__name {
  color: var(--ink-2);
  font-weight: 700;
}

.ai-bubble {
  padding: 12px 16px;
  color: #2c4b60;
  font-size: 0.9rem;
  line-height: 1.75;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 5px 18px 18px 18px;
  box-shadow: 0 10px 24px -20px rgba(7, 56, 87, 0.4);
}

.ai-msg--user .ai-bubble {
  color: #fff;
  background: linear-gradient(135deg, #1479ae, #2ca7d1);
  border-color: rgba(255, 255, 255, 0.16);
  border-radius: 18px 5px 18px 18px;
}

.ai-bubble--error {
  color: #8c4938;
  background: rgba(255, 237, 230, 0.75);
  border-color: rgba(229, 167, 146, 0.4);
}

.ai-bubble .md > :first-child {
  margin-top: 0;
}

.ai-bubble .md > :last-child {
  margin-bottom: 0;
}

.md p {
  margin: 0 0 9px;
}

.md h2,
.md h3 {
  margin: 16px 0 7px;
  font-size: 1rem;
  line-height: 1.4;
}

.md ul,
.md ol {
  margin: 7px 0 10px;
  padding-left: 21px;
}

.md li {
  margin: 4px 0;
}

.md code {
  padding: 1px 5px;
  font-family: var(--mono);
  font-size: 0.84em;
  background: rgba(13, 74, 111, 0.07);
  border-radius: 5px;
}

.md pre {
  margin: 10px 0;
  padding: 12px 14px;
  overflow-x: auto;
  color: #dff7ff;
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.6;
  background: #0a3049;
  border-radius: 12px;
}

.md pre code {
  padding: 0;
  color: inherit;
  background: none;
}

.md blockquote {
  margin: 10px 0;
  padding: 7px 13px;
  color: #45667a;
  border-left: 2px solid rgba(22, 132, 196, 0.45);
}

.md a {
  color: var(--blue-2);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ai-msg--user .md a {
  color: #e0f8ff;
}

.typing {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 13px 16px;
}

.typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #77a7bc;
  animation: typing 1.2s ease-in-out infinite;
}

.typing span:nth-child(2) { animation-delay: 0.15s; }
.typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes typing {
  0%, 60%, 100% { opacity: 0.35; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-4px); }
}

.ai-composer {
  padding: 10px 14px 13px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.14);
}

.ai-composer__box {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  max-width: 900px;
  margin: 0 auto;
  padding: 8px 8px 8px 15px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 19px;
  box-shadow: 0 8px 22px -18px rgba(7, 56, 87, 0.4);
  transition: border-color 0.2s, background 0.2s;
}

.ai-composer__box:focus-within {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(22, 132, 196, 0.3);
}

.ai-composer textarea {
  flex: 1;
  min-height: 34px;
  max-height: 130px;
  padding: 6px 0;
  resize: none;
  color: var(--ink);
  font-size: 0.88rem;
  line-height: 1.6;
  background: transparent;
  border: 0;
  outline: none;
}

.ai-composer textarea::placeholder {
  color: var(--muted-2);
}

.ai-composer__hint {
  max-width: 900px;
  margin: 6px auto 0;
  color: var(--muted-2);
  font-size: 0.62rem;
  text-align: center;
}

/* --------------------------------------------------------------------------
   对话框 & Toast
   -------------------------------------------------------------------------- */

dialog {
  width: min(460px, calc(100vw - 32px));
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
}

dialog::backdrop {
  background: rgba(5, 36, 55, 0.3);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}

.dialog-card {
  padding: 26px;
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(240, 252, 255, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-lg);
}

.dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 6px;
}

.dialog-head h2 {
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.dialog-close {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
}

.dialog-desc {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.84rem;
}

.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 20px;
}

.dialog-actions .btn {
  min-height: 42px;
  padding: 9px 18px;
  font-size: 0.84rem;
}

.dialog-card .field {
  margin-top: 14px;
}

.dialog-card .field input {
  width: 100%;
}

.member-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 320px;
  overflow-y: auto;
  margin-top: 14px;
}

.member-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 9px;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 12px;
}

.member-row__body {
  min-width: 0;
  flex: 1;
}

.member-row__name {
  overflow: hidden;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.member-row__meta {
  color: var(--muted-2);
  font-size: 0.62rem;
}

.member-row__owner {
  padding: 2px 7px;
  color: var(--blue-3);
  font-size: 0.6rem;
  font-weight: 700;
  background: rgba(207, 244, 255, 0.7);
  border-radius: 999px;
}

.group-code-card {
  margin-top: 16px;
  padding: 18px;
  text-align: center;
  background: rgba(220, 247, 255, 0.55);
  border: 1px dashed rgba(48, 166, 205, 0.42);
  border-radius: 16px;
}

.group-code-card span {
  display: block;
  color: var(--muted-2);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.group-code-card strong {
  display: block;
  margin: 4px 0 8px;
  font-family: var(--mono);
  font-size: 2rem;
  letter-spacing: 0.18em;
}

.toast-host {
  position: fixed;
  right: 20px;
  bottom: 22px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: min(380px, calc(100vw - 40px));
  padding: 11px 15px;
  color: var(--ink-2);
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 13px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.24s, transform 0.24s;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast__icon {
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  flex-shrink: 0;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  background: var(--blue);
  border-radius: 50%;
}

.toast--success .toast__icon { background: #36b58a; }
.toast--error .toast__icon { background: #ce6a51; }

/* --------------------------------------------------------------------------
   404
   -------------------------------------------------------------------------- */

.not-found {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100svh;
  padding: 100px 24px 40px;
  text-align: center;
}

.not-found__cube {
  display: grid;
  place-items: center;
  width: 140px;
  height: 140px;
  margin-bottom: 26px;
  font-size: 4rem;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 42% 58% 55% 45% / 52% 44% 56% 48%;
  box-shadow: var(--shadow);
  animation: core-float 7s ease-in-out infinite;
}

.not-found h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: -0.05em;
}

.not-found p {
  max-width: 420px;
  margin: 12px 0 26px;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   动效 & 响应式
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal--waiting {
  opacity: 0;
  transform: translateY(18px);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

@media (max-width: 1100px) {
  .home-hero {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.85fr);
    gap: 24px;
  }

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

  .feature-card--news,
  .feature-card--video,
  .feature-card--chat,
  .feature-card--game,
  .feature-card--ai,
  .feature-card--about { grid-column: span 6; }

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

  .news-featured {
    grid-template-columns: 1fr 1fr;
  }

  .chat-shell {
    grid-template-columns: 300px minmax(0, 1fr);
  }

  .ai-shell {
    grid-template-columns: 300px minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  .home-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 42px;
  }

  .hero-copy {
    max-width: 720px;
  }

  .hero-visual {
    min-height: 410px;
    order: 2;
    max-width: 540px;
    width: 100%;
    margin: 0 auto;
  }

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

  .feature-card,
  .feature-card--news,
  .feature-card--video,
  .feature-card--chat,
  .feature-card--game,
  .feature-card--ai,
  .feature-card--about {
    grid-column: span 1;
  }

  .feature-card--chat {
    grid-column: span 2;
  }

  .steps,
  .game-tips {
    grid-template-columns: 1fr;
  }

  .cta-band {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-band__actions {
    margin-top: 6px;
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }

  .page-hero--split {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-hero--split > div {
    width: 100%;
  }

  .news-toolbar {
    align-items: stretch;
    flex-direction: column;
    border-radius: 20px;
  }

  .search-box {
    width: 100%;
  }

  .news-featured {
    grid-template-columns: 1fr;
  }

  .news-featured__cover {
    min-height: 230px;
  }

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

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

  .game-card--soon .game-body {
    min-height: 260px;
  }

  .chat-shell {
    display: block;
    width: calc(100% - 20px);
    height: calc(100svh - var(--header-h) - 14px);
    padding-bottom: 10px;
  }

  .chat-sidebar {
    position: fixed;
    top: var(--header-h);
    bottom: 0;
    left: 0;
    z-index: 70;
    width: min(340px, calc(100vw - 46px));
    border-radius: 0 24px 24px 0;
    transform: translateX(-105%);
    transition: transform 0.32s var(--ease);
  }

  .chat-shell.sidebar-open .chat-sidebar {
    transform: translateX(0);
  }

  .chat-main {
    height: 100%;
  }

  .chat-head__back {
    display: inline-flex;
    width: auto;
    height: 34px;
    gap: 4px;
    padding: 0 10px;
    color: var(--ink-2);
    font-size: 0.68rem;
    font-weight: 700;
    border-radius: 999px;
  }

  .chat-head__back-label {
    display: inline;
  }

  .sidebar-backdrop {
    position: fixed;
    inset: var(--header-h) 0 0;
    z-index: 65;
    background: rgba(4, 40, 60, 0.22);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
  }

  .chat-shell.sidebar-open .sidebar-backdrop {
    display: block;
  }

  .ai-shell {
    display: block;
    width: calc(100% - 20px);
    height: calc(100svh - var(--header-h) - 14px);
    padding-bottom: 10px;
  }

  .ai-panel {
    display: none;
  }

  .ai-chat {
    height: 100%;
  }

  .ai-welcome {
    margin-top: 4vh;
  }

  .profile-shell {
    grid-template-columns: 1fr;
  }

  .profile-card {
    position: static;
  }

  .article-cover {
    min-height: 230px;
  }

  .article-cover::after {
    font-size: 10rem;
  }
}

@media (max-width: 780px) {
  :root {
    --header-h: 68px;
  }

  .site-header {
    padding: 0 14px;
    gap: 10px;
  }

  .nav-toggle {
    display: flex;
    order: 1;
  }

  .brand {
    order: 2;
    padding: 5px 7px 5px 4px;
  }

  .brand__mark {
    width: 33px;
    height: 33px;
  }

  .brand__text {
    padding-right: 6px;
    font-size: 1.13rem;
  }

  .nav-pill {
    position: fixed;
    top: calc(var(--header-h) + 2px);
    left: 14px;
    right: 14px;
    z-index: 90;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
    padding: 9px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.93);
    box-shadow: var(--shadow);
  }

  .nav-open .nav-pill {
    display: flex;
  }

  .nav-pill a {
    padding: 11px 14px;
    font-size: 0.9rem;
    border-radius: 12px;
  }

  .container {
    width: calc(100% - 28px);
  }

  .home-main {
    padding-top: var(--header-h);
  }

  .hero-copy h1 {
    margin-top: 16px;
    font-size: clamp(2.5rem, 12vw, 4.2rem);
  }

  .hero-copy .hero-sub {
    font-size: 0.95rem;
  }

  .hero-actions .btn {
    flex: 1;
    padding-inline: 15px;
  }

  .hero-notes {
    gap: 8px 15px;
    font-size: 0.76rem;
  }

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

  .hero-core {
    width: min(205px, 60%);
    padding: 20px;
  }

  .hero-core img {
    width: 60px;
    height: 60px;
  }

  .hero-core strong {
    font-size: 1.3rem;
  }

  .orbit-chip {
    padding: 8px 11px;
    font-size: 0.72rem;
  }

  .orbit-chip--news { top: 2%; right: 1%; }
  .orbit-chip--video { top: 10%; left: 0; }
  .orbit-chip--game { top: 41%; left: 0; }
  .orbit-chip--chat { bottom: 6%; right: 1%; }
  .orbit-chip--ai { bottom: 25%; left: 0; }

  .hero-status {
    bottom: -3%;
    font-size: 0.64rem;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 22px;
  }

  .section-head__aside {
    padding-bottom: 0;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .feature-card,
  .feature-card--chat {
    grid-column: span 1;
    min-height: 210px;
    padding: 23px;
  }

  .stats-band {
    grid-template-columns: 1fr 1fr;
  }

  .stat {
    padding: 21px 19px;
  }

  .stat:nth-child(3)::before {
    display: none;
  }

  .stat:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-main,
  .profile-main {
    padding-top: calc(var(--header-h) + 26px);
  }

  .page-hero h1 {
    font-size: clamp(1.9rem, 8.6vw, 3.1rem);
    line-height: 1.12;
  }

  .news-layout {
    grid-template-columns: 1fr;
  }

  .news-featured {
    min-height: 0;
  }

  .news-featured__cover {
    min-height: 200px;
  }

  .news-featured__body {
    padding: 24px 22px 26px;
  }

  .news-card__cover {
    aspect-ratio: 16 / 8.5;
  }

  .article-head {
    padding-inline: 22px;
  }

  .article-body {
    padding-inline: 22px;
  }

  .prose p {
    font-size: 0.94rem;
  }

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

  .game-art {
    min-height: 200px;
  }

  .game-art--mc::after {
    width: 160px;
    height: 160px;
  }

  .game-art--poki::after {
    font-size: 6rem;
  }

  .game-body {
    padding: 22px 21px 24px;
  }

  .chat-page,
  .ai-page {
    padding-top: var(--header-h);
  }

  .chat-shell {
    height: calc(100svh - var(--header-h) - 8px);
    padding-bottom: 8px;
  }

  .chat-head {
    padding: 11px 13px;
  }

  .chat-head h1 {
    font-size: 0.96rem;
  }

  .message-list {
    padding-inline: 12px;
  }

  .msg__content {
    max-width: 82%;
  }

  .msg__bubble {
    font-size: 0.85rem;
  }

  .online-pill {
    padding: 4px 8px;
    font-size: 0.62rem;
  }

  .chat-icon-btn {
    width: 31px;
    height: 31px;
  }

  .composer-hint {
    display: none;
  }

  .ai-msg__body {
    max-width: 88%;
  }

  .ai-messages {
    padding: 18px 13px;
  }

  .ai-bubble {
    font-size: 0.86rem;
  }

  .ai-composer {
    padding-inline: 9px;
  }

  .toast-host {
    left: 14px;
    right: 14px;
    bottom: 14px;
    align-items: stretch;
  }

  .toast {
    max-width: none;
  }

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

  .field--full {
    grid-column: auto;
  }

  .account-detail {
    grid-template-columns: 1fr;
  }

  .profile-card {
    padding: 24px 20px;
  }

  .panel {
    padding: 22px 19px;
  }
}

@media (max-width: 480px) {
  .local-mode .brand::after,
  .online-mode .brand::after {
    display: none;
  }

  .brand__text {
    font-size: 1.02rem;
  }

  .hero-copy h1 {
    font-size: 2.55rem;
  }

  .kicker {
    font-size: 0.7rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .orbit-chip {
    font-size: 0.66rem;
    padding: 7px 9px;
  }

  .orbit-chip i {
    width: 18px;
    height: 18px;
    font-size: 0.6rem;
  }

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

  .hero-core {
    width: 58%;
  }

  .hero-core img {
    width: 48px;
    height: 48px;
  }

  .hero-core strong {
    font-size: 1.12rem;
  }

  .hero-core span {
    font-size: 0.64rem;
  }

  .stat__value {
    font-size: 1.55rem;
  }

  .cta-band {
    padding: 26px 21px;
  }

  .cta-band__actions {
    flex-direction: column;
    width: 100%;
  }

  .cta-band__actions .btn {
    width: 100%;
  }

  .page-hero__aside {
    width: 100%;
  }

  .page-hero__aside .btn {
    width: 100%;
  }

  .news-filters {
    gap: 2px;
  }

  .filter-chip {
    padding: 7px 10px;
    font-size: 0.75rem;
  }

  .news-toolbar {
    padding: 9px;
  }

  .game-actions {
    flex-direction: column;
  }

  .game-actions .btn {
    width: 100%;
  }

  .related h2 {
    font-size: 1.25rem;
  }

  .chat-sidebar {
    width: calc(100vw - 32px);
  }

  .account-card {
    margin: 8px 8px 4px;
  }

  .chat-head__actions .online-pill {
    display: none;
  }

  .emoji-pop {
    width: 210px;
  }

  .ai-welcome h2 {
    font-size: 1.45rem;
  }

  .ai-welcome__chips {
    gap: 5px;
  }

  .ai-welcome__chips button {
    padding: 7px 10px;
    font-size: 0.68rem;
  }

  .ai-msg {
    gap: 7px;
  }

  .ai-msg__body {
    max-width: 89%;
  }

  .ai-msg__avatar .avatar {
    width: 32px;
    height: 32px;
    font-size: 0.78rem;
  }

  .ai-bubble {
    padding: 10px 12px;
  }

  .dialog-card {
    padding: 21px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  body {
    opacity: 1;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {
  body {
    background: #fff;
    opacity: 1;
  }

  body::before,
  body::after,
  .site-header,
  .site-footer,
  .article-share,
  .related {
    display: none !important;
  }

  .article-shell {
    box-shadow: none;
    border: 0;
  }
}
