/* 跃界 · 全局样式 */
:root {
  --bg-deep: #03080e;
  --bg-mid: #0c1a24;
  --bg-soft: #122633;
  --surface: rgba(12, 28, 40, 0.38);
  --surface-glass: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(180, 230, 220, 0.22);
  --glass-shine: rgba(255, 255, 255, 0.14);
  --line: rgba(148, 196, 180, 0.18);
  --text: #e8f2ef;
  --muted: #8aa39a;
  --brand: #5eead4;
  --brand-dim: #2a9d8f;
  --accent: #e8c468;
  --accent-soft: rgba(232, 196, 104, 0.15);
  --danger: #f07178;
  --radius: 16px;
  --max: 1120px;
  --font-display: "Noto Serif SC", "Songti SC", "Microsoft YaHei", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  --glass-blur: blur(18px) saturate(1.35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  color: var(--text);
  background: #03080e;
  line-height: 1.7;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 90% 70% at 50% 40%, rgba(8, 40, 52, 0.45), transparent 70%),
    linear-gradient(180deg, #02060b 0%, #061018 45%, #03080e 100%);
}

body::after {
  content: none;
}

/* —— 全页星空层 —— */
.cosmos {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.cosmos-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.cosmos-nebula {
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(ellipse 42% 34% at 64% 32%, rgba(42, 157, 143, 0.24), transparent 62%),
    radial-gradient(ellipse 34% 28% at 26% 56%, rgba(27, 122, 143, 0.18), transparent 58%),
    radial-gradient(ellipse 38% 26% at 80% 70%, rgba(232, 196, 104, 0.12), transparent 55%),
    radial-gradient(ellipse 50% 38% at 45% 88%, rgba(14, 60, 90, 0.22), transparent 60%);
  filter: blur(10px);
  animation: nebulaDrift 28s ease-in-out infinite alternate;
  mix-blend-mode: screen;
  opacity: 0.85;
}

.cosmos-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 50% at 22% 28%, rgba(3, 8, 14, 0.55), transparent 62%),
    radial-gradient(ellipse 80% 70% at 50% 50%, transparent 45%, rgba(2, 6, 11, 0.55) 100%);
}

@keyframes nebulaDrift {
  0% {
    transform: translate(-2%, -1%) scale(1);
  }
  100% {
    transform: translate(3%, 2%) scale(1.06);
  }
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

/* 内容少时把页脚压到视口底部（自研产品等内页） */
main {
  flex: 1 0 auto;
}

.site-footer {
  flex-shrink: 0;
}

/* —— 玻璃卡片通用 —— */
.glass-card {
  position: relative;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02) 42%, rgba(94, 234, 212, 0.05)),
    var(--surface);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 var(--glass-shine);
  transform-style: preserve-3d;
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.25s ease,
    box-shadow 0.35s ease,
    background 0.25s ease;
}

.glass-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.18), transparent 38%, transparent 62%, rgba(94, 234, 212, 0.08));
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}

.glass-card > * {
  position: relative;
  z-index: 1;
}

.glass-card:hover {
  border-color: rgba(94, 234, 212, 0.45);
  transform: translateY(-6px) rotateX(2deg) scale(1.01);
  box-shadow:
    0 22px 55px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(94, 234, 212, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: var(--accent);
}

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* —— 顶栏 —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  background: rgba(3, 10, 16, 0.45);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease, backdrop-filter 0.3s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--glass-border);
  background: rgba(3, 10, 16, 0.62);
}

/* 首页顶栏与星空融合，去掉色带分裂 */
.page-home .site-header {
  background: linear-gradient(180deg, rgba(3, 8, 14, 0.28) 0%, transparent 100%);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: none;
  box-shadow: none;
}

.page-home .site-header.is-scrolled {
  background: rgba(3, 8, 14, 0.42);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border-bottom-color: transparent;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 0;
  flex-wrap: wrap;
}

.module-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.55rem;
  align-items: center;
  flex: 1;
  justify-content: flex-end;
  min-width: 0;
}

.module-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.82rem;
  padding: 0.2rem 0.35rem;
  border-radius: 6px;
  white-space: nowrap;
}

.module-link:hover,
.module-link.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.maintenance-banner {
  position: sticky;
  top: 0;
  z-index: 10040;
  padding: 0.55rem 1rem;
  text-align: center;
  font-size: 0.9rem;
  color: #1a1408;
  background: linear-gradient(90deg, #e8c468, #f0d78a);
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.is-search-hit {
  outline: 2px solid rgba(42, 157, 143, 0.75);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(42, 157, 143, 0.15);
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.06em;
}

.logo span {
  color: var(--brand);
  font-size: 0.7rem;
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 0.12em;
  opacity: 0.85;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: block;
  padding: 0.45rem 0.85rem;
  color: var(--muted);
  font-size: 0.92rem;
  border-radius: 999px;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--text);
  background: rgba(94, 234, 212, 0.08);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 1.2rem;
}

/* —— 按钮 —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, rgba(42, 157, 143, 0.92), rgba(26, 122, 114, 0.88));
  color: #04120f;
  box-shadow: 0 8px 28px rgba(42, 157, 143, 0.35);
}

.btn-primary:hover {
  color: #04120f;
  box-shadow: 0 12px 32px rgba(94, 234, 212, 0.4);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--glass-border);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: rgba(94, 234, 212, 0.08);
}

.btn-accent {
  background: var(--accent-soft);
  border-color: rgba(232, 196, 104, 0.35);
  color: var(--accent);
}

.btn-accent:hover {
  background: rgba(232, 196, 104, 0.25);
  color: var(--accent);
}

/* —— 首页 Hero —— */
.hero {
  position: relative;
  min-height: calc(100dvh - 64px);
  display: grid;
  align-items: end;
  padding: 3rem 0 4.5rem;
  overflow: hidden;
}

.hero-cosmic {
  align-items: center;
  padding: 5rem 0 3rem;
  min-height: calc(100dvh - 72px);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.hero-brand {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 11vw, 6rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.05;
  background: linear-gradient(120deg, #fff 18%, var(--brand) 52%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 28px rgba(94, 234, 212, 0.35));
  animation: fadeUp 0.9s ease both;
}

/* —— 首页最上：跃界 + 不规则星环 —— */
.home-top {
  position: relative;
  display: grid;
  place-items: center;
  min-height: min(56vw, 420px);
  margin-top: -72px;
  padding: calc(4.5rem + 72px) 1rem 3.5rem;
  overflow: visible;
}

.home-star {
  position: absolute;
  left: 50%;
  top: 54%;
  width: min(58vw, 380px);
  height: min(58vw, 380px);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}

.home-star .orbit-core-glow,
.home-star .orbit-core-star,
.home-star .home-ring {
  position: absolute;
}

.home-star .orbit-core-glow {
  inset: -58%;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(94, 234, 212, 0.5) 0%, rgba(42, 157, 143, 0.2) 32%, transparent 70%),
    radial-gradient(circle at 60% 40%, rgba(232, 196, 104, 0.22), transparent 48%);
  filter: blur(10px);
  animation: corePulse 5.5s ease-in-out infinite;
}

.home-star .orbit-core-star {
  left: 50%;
  top: 50%;
  width: 14%;
  height: 14%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, var(--brand) 40%, transparent 72%);
  box-shadow:
    0 0 30px rgba(94, 234, 212, 0.9),
    0 0 80px rgba(94, 234, 212, 0.45),
    0 0 120px rgba(232, 196, 104, 0.25);
}

.home-ring {
  left: 50%;
  top: 50%;
  border-radius: 50%;
  box-sizing: border-box;
  pointer-events: none;
}

.home-ring-a {
  width: 96%;
  height: 78%;
  margin: 0;
  border: 1px solid rgba(94, 234, 212, 0.32);
  box-shadow: 0 0 24px rgba(94, 234, 212, 0.08);
  animation: ringWanderA 16s ease-in-out infinite;
}

.home-ring-b {
  width: 72%;
  height: 92%;
  border: 1px dashed rgba(232, 196, 104, 0.28);
  animation: ringWanderB 22s ease-in-out infinite;
}

@keyframes ringWanderA {
  0% {
    transform: translate(-50%, -50%) translate(-6%, 5%) rotate(-12deg) scale(1, 0.92);
  }
  25% {
    transform: translate(-50%, -50%) translate(8%, -7%) rotate(28deg) scale(1.06, 0.86);
  }
  50% {
    transform: translate(-50%, -50%) translate(4%, 9%) rotate(78deg) scale(0.96, 1.04);
  }
  75% {
    transform: translate(-50%, -50%) translate(-10%, -3%) rotate(148deg) scale(1.03, 0.9);
  }
  100% {
    transform: translate(-50%, -50%) translate(-6%, 5%) rotate(348deg) scale(1, 0.92);
  }
}

@keyframes ringWanderB {
  0% {
    transform: translate(-50%, -50%) translate(7%, -4%) rotate(20deg) scale(0.9, 1.05);
  }
  30% {
    transform: translate(-50%, -50%) translate(-5%, 8%) rotate(-40deg) scale(1.02, 0.88);
  }
  55% {
    transform: translate(-50%, -50%) translate(9%, 3%) rotate(-110deg) scale(0.94, 1.08);
  }
  80% {
    transform: translate(-50%, -50%) translate(-8%, -6%) rotate(-200deg) scale(1.05, 0.92);
  }
  100% {
    transform: translate(-50%, -50%) translate(7%, -4%) rotate(-340deg) scale(0.9, 1.05);
  }
}

.home-brand {
  position: relative;
  z-index: 2;
  margin: 0;
  text-align: center;
  font-size: clamp(3.8rem, 12vw, 6.8rem);
  filter:
    drop-shadow(0 0 28px rgba(94, 234, 212, 0.55))
    drop-shadow(0 8px 40px rgba(3, 8, 14, 0.85));
}

/* —— 横幅轮播（侧卡斜插露出） —— */
.banner-section {
  position: relative;
  padding: 0.75rem 0 1.5rem;
  overflow: visible;
}

.banner-theater {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  width: min(100% - 1.5rem, 1180px);
  margin: 0 auto;
  padding: 0 0.35rem;
  overflow: visible;
}

.banner-stage {
  position: relative;
  width: 100%;
  /* 高度保持；中间卡 4:1 */
  height: clamp(190px, 22vw, 260px);
  max-height: 260px;
  overflow: visible;
  perspective: 1600px;
  perspective-origin: 50% 50%;
  transform-style: preserve-3d;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
}

.banner-stage.is-dragging {
  cursor: grabbing;
}

.banner-track {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  overflow: visible;
}

.coverflow-card {
  position: absolute;
  top: 50%;
  left: 50%;
  height: 100%;
  width: auto;
  aspect-ratio: 4 / 1;
  max-width: min(78%, 920px);
  margin: 0;
  border: 0;
  padding: 0;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  color: var(--text);
  text-align: left;
  background: transparent;
  transform-style: preserve-3d;
  transform: translate(-50%, -50%) scale(0.86);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.4s ease,
    filter 0.4s ease,
    box-shadow 0.4s ease;
  filter: brightness(0.65);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  isolation: isolate;
}

.coverflow-card.is-active {
  z-index: 5;
  opacity: 1;
  filter: brightness(1.05);
  pointer-events: auto;
  transform: translate(-50%, -50%) translateZ(40px) scale(1) rotateX(var(--tiltX, 0deg)) rotateY(var(--tiltY, 0deg));
  box-shadow:
    0 0 0 1px rgba(94, 234, 212, 0.35),
    0 22px 50px rgba(0, 0, 0, 0.4),
    0 0 50px rgba(94, 234, 212, 0.15);
  animation: activeGlow 4.5s ease-in-out infinite;
  -webkit-box-reflect: below 10px -webkit-linear-gradient(transparent, rgba(255, 255, 255, 0.16));
}

@keyframes activeGlow {
  0%,
  100% {
    box-shadow:
      0 0 0 1px rgba(94, 234, 212, 0.35),
      0 22px 50px rgba(0, 0, 0, 0.4),
      0 0 50px rgba(94, 234, 212, 0.15);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(94, 234, 212, 0.6),
      0 26px 60px rgba(0, 0, 0, 0.45),
      0 0 72px rgba(94, 234, 212, 0.3);
  }
}

/* 主动卡：鼠标分层视差（图远文近） */
.coverflow-card.is-active .card-bg {
  transform: scale(1.1) translate(calc(var(--px, 0) * -1px), calc(var(--py, 0) * -1px));
  transition: transform 0.3s ease-out;
}

.coverflow-card.is-active .card-meta,
.coverflow-card.is-active .card-title,
.coverflow-card.is-active .card-desc,
.coverflow-card.is-active .card-cta {
  transform: translate(calc(var(--px, 0) * 0.45px), calc(var(--py, 0) * 0.45px));
  transition: transform 0.25s ease-out;
}

/* 两侧露出卡片自身圆角边，不被容器裁成直线 */
.coverflow-card.is-left {
  z-index: 3;
  opacity: 0.78;
  pointer-events: auto;
  filter: brightness(0.7) saturate(0.9);
  transform: translate(-50%, -50%) translateX(-38%) rotateY(32deg) translateZ(-44px) scale(0.94);
}

.coverflow-card.is-right {
  z-index: 3;
  opacity: 0.78;
  pointer-events: auto;
  filter: brightness(0.7) saturate(0.9);
  transform: translate(-50%, -50%) translateX(38%) rotateY(-32deg) translateZ(-44px) scale(0.94);
}

.coverflow-card.is-far-left,
.coverflow-card.is-far-right {
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.8);
}

.coverflow-card.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.7);
}

.coverflow-card:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 4px;
}

.coverflow-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 8;
}

.coverflow-prev {
  left: 0.5%;
}

.coverflow-next {
  right: 0.5%;
}

.coverflow-card .card-face {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0.75rem 1.25rem 0.85rem;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.03) 40%, rgba(8, 24, 34, 0.35)),
    rgba(10, 28, 38, 0.28);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform-origin: center center;
}

@keyframes corePulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.85;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

.coverflow-card .card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transform: scale(1.02);
  opacity: 0.72;
  /* 统一色调：降饱和、压明度，让任何照片都贴近站内配色 */
  filter: saturate(0.82) brightness(0.85) contrast(1.02);
}

.coverflow-card .card-face::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.2), transparent 42%);
  pointer-events: none;
}

.coverflow-card.has-image .card-face::before {
  background:
    linear-gradient(125deg, rgba(255, 255, 255, 0.14), transparent 42%),
    linear-gradient(145deg, rgba(94, 234, 212, 0.26), rgba(8, 20, 28, 0.32));
  mix-blend-mode: soft-light;
  opacity: 1;
}

.coverflow-card .card-face::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 15%, rgba(255, 255, 255, 0.16), transparent 35%),
    linear-gradient(180deg, transparent 22%, rgba(4, 12, 18, 0.35) 55%, rgba(4, 12, 18, 0.78) 100%);
  z-index: 1;
}

.coverflow-card .card-meta,
.coverflow-card .card-title,
.coverflow-card .card-desc,
.coverflow-card .card-cta {
  position: relative;
  z-index: 2;
}

.coverflow-card.tone-jade .card-face {
  background:
    linear-gradient(145deg, rgba(94, 234, 212, 0.18), rgba(10, 40, 42, 0.25) 55%, rgba(8, 20, 28, 0.35)),
    rgba(12, 36, 40, 0.22);
}

.coverflow-card.tone-dusk .card-face {
  background:
    linear-gradient(145deg, rgba(232, 196, 104, 0.16), rgba(60, 36, 16, 0.28) 55%, rgba(8, 20, 28, 0.35)),
    rgba(40, 28, 16, 0.22);
}

.coverflow-card.tone-ocean .card-face {
  background:
    linear-gradient(145deg, rgba(125, 211, 232, 0.16), rgba(8, 40, 52, 0.28) 55%, rgba(8, 20, 28, 0.35)),
    rgba(10, 32, 44, 0.22);
}

.coverflow-card.tone-ember .card-face {
  background:
    linear-gradient(145deg, rgba(240, 113, 120, 0.14), rgba(50, 20, 18, 0.28) 55%, rgba(8, 20, 28, 0.35)),
    rgba(36, 18, 18, 0.22);
}

.coverflow-card .card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.coverflow-card .card-title {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.7rem);
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.coverflow-card .card-desc {
  margin: 0 0 0.4rem;
  color: rgba(232, 242, 239, 0.86);
  font-size: clamp(0.8rem, 1.2vw, 0.95rem);
  max-width: 42em;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.coverflow-card .card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 500;
}

.coverflow-card.is-spin-flash .card-face {
  animation: cardFaceSpin 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes cardFaceSpin {
  0% {
    transform: rotateY(0deg) scale(1);
    filter: brightness(1);
  }
  35% {
    transform: rotateY(-22deg) scale(1.04);
    filter: brightness(1.35) saturate(1.25);
  }
  70% {
    transform: rotateY(10deg) scale(1.02);
    filter: brightness(1.2);
  }
  100% {
    transform: rotateY(0deg) scale(1);
    filter: brightness(1);
  }
}

@keyframes cardSpinFlash {
  0% {
    filter: brightness(1.08);
  }
  35% {
    filter: brightness(1.4) saturate(1.25);
  }
  100% {
    filter: brightness(1.08);
  }
}

/* 旧版卡片标题提示已废弃 */
.orbit-active-title {
  display: none !important;
}

.section-features {
  padding: 0.75rem 0 3.5rem;
}

.section-features .wrap {
  width: min(100% - 1.5rem, 1280px);
}

.coverflow-nav {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: rgba(8, 20, 28, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  z-index: 6;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.coverflow-nav:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: rgba(18, 38, 51, 0.9);
  box-shadow: 0 0 24px rgba(94, 234, 212, 0.25);
}

.coverflow-dots {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 1.2rem;
}

.coverflow-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(148, 196, 180, 0.35);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.coverflow-dots button.is-active {
  width: 22px;
  background: var(--brand);
}

/* —— 点击炫光 —— */
.flare-burst {
  position: fixed;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%) scale(0.2);
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(94, 234, 212, 0.75) 28%,
    rgba(232, 196, 104, 0.35) 55%,
    transparent 72%
  );
  box-shadow:
    0 0 30px rgba(94, 234, 212, 0.65),
    0 0 60px rgba(232, 196, 104, 0.35);
  animation: flarePop 0.75s ease-out forwards;
}

@keyframes flarePop {
  0% {
    opacity: 0.95;
    transform: translate(-50%, -50%) scale(0.15);
  }
  55% {
    opacity: 0.75;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(18);
  }
}

.btn,
.logo {
  position: relative;
  overflow: hidden;
}

.coverflow-nav {
  overflow: hidden;
}

.btn-primary:active,
.btn-accent:active {
  box-shadow: 0 0 28px rgba(94, 234, 212, 0.45);
}

.logo:active {
  filter: drop-shadow(0 0 12px rgba(94, 234, 212, 0.55));
}

.tutorial-badge {
  display: inline-block;
  margin-bottom: 0.55rem;
  padding: 0.12rem 0.5rem;
  border-radius: 6px;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  background: rgba(94, 234, 212, 0.12);
  color: var(--brand);
}

.tutorial-badge.is-curated {
  background: var(--accent-soft);
  color: var(--accent);
}

.tutorial-source {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.85rem;
}

/* —— 区块通用 —— */
.section {
  padding: 4.5rem 0;
}

.section-head {
  margin-bottom: 2.25rem;
  max-width: 36em;
}

.section-head h2 {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.section-alt {
  background: transparent;
}

.section-panel {
  position: relative;
  background: transparent;
  backdrop-filter: none;
  border-top: 1px solid rgba(148, 196, 180, 0.1);
}

/* —— 功能入口网格 —— */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  perspective: 900px;
}

.feature-grid-6 {
  grid-template-columns: repeat(6, auto);
  justify-content: center;
  gap: 0.75rem;
}

.feature-tile {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  /* 高度不变，加长到 4:3 */
  height: 148px;
  width: calc(148px * 4 / 3);
  aspect-ratio: 4 / 3;
  box-sizing: border-box;
  padding: 1rem 0.95rem;
  color: inherit;
  overflow: hidden;
  border-radius: 14px;
  text-decoration: none;
}

.feature-tile:hover {
  color: inherit;
}

.feature-tile h3 {
  margin: 0 0 0.25rem;
  font-size: 1.02rem;
  font-weight: 600;
}

.feature-tile p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.feature-tile .feature-tag {
  margin-bottom: 0.55rem;
}

.feature-tile.tone-jade {
  background:
    linear-gradient(160deg, rgba(94, 234, 212, 0.22), rgba(8, 28, 34, 0.45)),
    rgba(10, 32, 38, 0.35);
}

.feature-tile.tone-ocean {
  background:
    linear-gradient(160deg, rgba(125, 211, 232, 0.2), rgba(8, 24, 40, 0.45)),
    rgba(8, 28, 40, 0.35);
}

.feature-tile.tone-dusk {
  background:
    linear-gradient(160deg, rgba(232, 196, 104, 0.2), rgba(40, 28, 12, 0.45)),
    rgba(36, 26, 12, 0.35);
}

.feature-tile.tone-ember {
  background:
    linear-gradient(160deg, rgba(240, 113, 120, 0.18), rgba(40, 16, 16, 0.45)),
    rgba(36, 16, 16, 0.35);
}

.feature-link {
  display: block;
  padding: 1.5rem 1.4rem;
  color: inherit;
}

.feature-link:hover {
  color: inherit;
}

.feature-link h3 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
  font-weight: 600;
}

.feature-link p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.feature-tag {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--brand);
  text-transform: uppercase;
}

@keyframes glassFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

/* —— 列表条目（软件 / 资源 / 教程） —— */
.item-list {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  perspective: 1000px;
}

.item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1.25rem 1.35rem;
}

.item:hover {
  border-color: rgba(94, 234, 212, 0.45);
}

.item-body h3 {
  margin: 0 0 0.35rem;
  font-size: 1.08rem;
  font-weight: 600;
}

.item-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.7rem;
}

.chip {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 6px;
  background: rgba(94, 234, 212, 0.12);
  border: 1px solid rgba(94, 234, 212, 0.18);
  color: var(--brand);
  font-size: 0.75rem;
  backdrop-filter: blur(8px);
}

.chip-accent {
  background: var(--accent-soft);
  border-color: rgba(232, 196, 104, 0.25);
  color: var(--accent);
}

.empty-hint {
  padding: 2rem 1.5rem;
  color: var(--muted);
  text-align: center;
}

/* —— 页面头（内页） —— */
.page-hero {
  padding: 3.5rem 0 2rem;
}

.page-hero h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.75rem);
  letter-spacing: 0.06em;
  text-shadow: 0 4px 28px rgba(3, 8, 14, 0.85);
}

.page-hero p {
  margin: 0;
  max-width: 36em;
  color: var(--muted);
  text-shadow: 0 2px 18px rgba(3, 8, 14, 0.8);
}

/* —— 教程详情 —— */
.tutorial-grid {
  display: grid;
  gap: 1rem;
  perspective: 1000px;
}

.tutorial {
  padding: 1.5rem;
}

.tutorial h3 {
  margin: 0 0 0.5rem;
}

.tutorial p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.tutorial-steps {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--text);
  font-size: 0.92rem;
}

.tutorial-steps li {
  margin-bottom: 0.4rem;
}

/* —— 在线工具：生图 —— */
.tool-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.tool-form {
  padding: 1.5rem;
}

.tool-form label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.tool-form textarea,
.tool-form select,
.tool-form input {
  width: 100%;
  margin-bottom: 1rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  background: rgba(7, 16, 24, 0.35);
  backdrop-filter: blur(8px);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  resize: vertical;
}

.tool-form textarea:focus,
.tool-form select:focus,
.tool-form input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(94, 234, 212, 0.12);
}

.tool-preview {
  min-height: 320px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1rem;
}

.tool-preview canvas {
  width: 100%;
  max-width: 420px;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
}

.tool-preview .hint {
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 28em;
}

.tool-note {
  margin-top: 1.5rem;
  padding: 1rem 1.2rem;
  border-left: 3px solid var(--accent);
  color: var(--muted);
  font-size: 0.9rem;
  border-radius: 0 12px 12px 0;
}

/* —— 页脚 —— */
.site-footer {
  margin-top: auto;
  padding: 2rem 0 2.4rem;
  border-top: 1px solid transparent;
  color: rgba(148, 196, 180, 0.45);
  font-size: 0.82rem;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.footer-brand {
  font-family: var(--font-display);
  color: rgba(232, 240, 236, 0.42);
  letter-spacing: 0.08em;
}

/* —— 动画 —— */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-24px);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* —— 响应式 —— */
@media (max-width: 860px) {
  .tool-panel {
    grid-template-columns: 1fr;
  }

  .feature-grid-6 {
    grid-template-columns: repeat(3, auto);
    justify-content: center;
  }

  .feature-tile {
    height: 148px;
    width: calc(148px * 4 / 3);
  }

  .banner-theater {
    grid-template-columns: 1fr;
    width: min(100% - 1rem, 1180px);
  }

  .coverflow-nav {
    position: absolute;
    z-index: 8;
    top: 50%;
    transform: translateY(-50%);
  }

  .coverflow-prev {
    left: 0.35rem;
  }

  .coverflow-next {
    right: 0.35rem;
  }

  .banner-stage {
    height: clamp(150px, 32vw, 200px);
    max-height: 200px;
    perspective: none;
  }

  .coverflow-card {
    max-width: 88%;
    aspect-ratio: 16 / 7;
  }

  .coverflow-card.is-active {
    max-width: 94%;
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    z-index: 5;
  }

  .coverflow-card.is-left {
    transform: translate(-50%, -50%) translateX(-22%) scale(0.86);
    opacity: 0.4;
    filter: brightness(0.75);
  }

  .coverflow-card.is-right {
    transform: translate(-50%, -50%) translateX(22%) scale(0.86);
    opacity: 0.4;
    filter: brightness(0.75);
  }

  .coverflow-card.is-far-left,
  .coverflow-card.is-far-right,
  .coverflow-card.is-hidden {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
  }

  .coverflow-card .card-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 0.75rem 1.25rem 1.25rem;
    background: rgba(7, 16, 24, 0.96);
    border-bottom: 1px solid var(--line);
  }

  .nav-links.is-open {
    display: flex;
  }

  .item {
    grid-template-columns: 1fr;
  }

  .item .btn,
  .item-actions {
    width: 100%;
  }

  .item-actions {
    flex-direction: column;
  }

  .module-nav {
    order: 3;
    width: 100%;
    max-width: none;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.15rem;
  }

  .site-header .nav {
    flex-wrap: wrap;
  }
}

@media (max-width: 560px) {
  .feature-grid-6 {
    grid-template-columns: repeat(2, auto);
    justify-content: center;
  }

  .feature-tile {
    height: 132px;
    width: calc(132px * 4 / 3);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* —— 顶栏登录区 —— */
.nav-auth {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 1.15rem;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 0.92rem;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.nav-login:hover {
  border-color: rgba(94, 234, 212, 0.5);
  color: var(--accent);
}

.nav-login.as-btn {
  font: inherit;
  font-size: 0.92rem;
  cursor: pointer;
}

.nav-user {
  color: var(--muted);
  font-size: 0.9rem;
}

/* —— 轻提示 —— */
.toast {
  position: fixed;
  left: 50%;
  bottom: 2.2rem;
  z-index: 9999;
  transform: translate(-50%, 12px);
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  background: rgba(7, 16, 24, 0.92);
  border: 1px solid var(--glass-border);
  color: var(--text);
  font-size: 0.92rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast.error {
  border-color: rgba(240, 113, 120, 0.5);
  color: #f0b3b7;
}

/* —— 访客登录页 —— */
.login-hero {
  min-height: 62vh;
  display: grid;
  place-items: center;
  padding: 3rem 1rem 4rem;
}

.login-card {
  width: min(100%, 400px);
  padding: 2rem 1.8rem;
}

.login-title {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.7rem;
}

.login-sub {
  margin: 0 0 1.2rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.login-card label {
  display: block;
  margin: 0.9rem 0 0.35rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.login-card input {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: rgba(7, 16, 24, 0.65);
  color: var(--text);
  font: inherit;
}

/* —— 密码显隐 / 确认框 —— */
.pwd-field {
  position: relative;
  display: block;
  width: 100%;
}

.pwd-field input {
  width: 100%;
  padding-right: 2.7rem;
}

.pwd-toggle {
  position: absolute;
  right: 0.3rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2.1rem;
  height: 2.1rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.pwd-toggle:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.ux-overlay {
  position: fixed;
  inset: 0;
  z-index: 10050;
  background: rgba(2, 6, 12, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.ux-dialog {
  width: min(400px, 100%);
  padding: 1.35rem 1.4rem 1.1rem;
}

.ux-dialog-title {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.ux-dialog-msg {
  margin: 0 0 1.1rem;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.95rem;
}

.ux-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.55rem;
}

.ux-dialog-hint {
  margin: 0.75rem 0 0;
  text-align: right;
  font-size: 0.75rem;
  color: var(--muted);
  opacity: 0.85;
}

.login-card .btn {
  width: 100%;
  margin-top: 1.3rem;
}

.login-msg {
  min-height: 1.2em;
  margin: 0.7rem 0 0;
  color: var(--accent);
  font-size: 0.9rem;
}

.login-msg.error {
  color: #f07178;
}

.login-back {
  margin: 1rem 0 0;
  text-align: center;
  font-size: 0.88rem;
}

/* —— 列表封面图 —— */
.item-cover {
  width: 100%;
  aspect-ratio: 4 / 1;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 0.75rem;
}

/* —— 分类筛选 —— */
.cat-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.1rem;
}

.cat-tab {
  padding: 0.4rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.cat-tab:hover {
  color: var(--text);
  border-color: rgba(94, 234, 212, 0.4);
}

.cat-tab.is-active {
  color: #04120f;
  background: linear-gradient(135deg, rgba(94, 234, 212, 0.95), rgba(42, 157, 143, 0.9));
  border-color: transparent;
}

/* —— 公告板 —— */
.board-item {
  padding: 1.1rem 1.3rem;
  margin-bottom: 0.9rem;
}

.board-item.is-pin {
  border-color: rgba(232, 196, 104, 0.4);
}

.board-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.4rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.board-item h3 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
}

.board-item p {
  margin: 0;
  color: rgba(232, 242, 239, 0.86);
  line-height: 1.7;
  font-size: 0.95rem;
  white-space: pre-line;
}

.board-body {
  color: rgba(232, 242, 239, 0.86);
  line-height: 1.7;
  font-size: 0.95rem;
  white-space: pre-line;
}

.board-body .md-list {
  margin: 0.3rem 0 0.3rem 1.2rem;
}

.board-body .md-list li {
  margin: 0.15rem 0;
}

.board-file {
  margin-top: 0.5rem !important;
}

.board-file a {
  display: inline-flex;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  color: var(--accent);
  font-size: 0.85rem;
}

/* —— AI 助手 —— */
.ai-panel {
  max-width: 760px;
  margin: 0 auto;
  padding: 1.2rem 1.3rem;
}

.ai-modes {
  margin-bottom: 0.9rem;
}

.ai-log {
  max-height: 52vh;
  min-height: 200px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 0.4rem 0.2rem;
}

.ai-msg {
  max-width: 84%;
  padding: 0.6rem 0.9rem;
  border-radius: 14px;
  line-height: 1.65;
  font-size: 0.95rem;
  word-break: break-word;
}

.ai-msg.user {
  align-self: flex-end;
  background: rgba(42, 157, 143, 0.25);
  border: 1px solid rgba(94, 234, 212, 0.3);
}

.ai-msg.bot {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
}

.ai-msg.bot img {
  max-width: 100%;
  border-radius: 10px;
  margin-top: 0.2rem;
  display: block;
}

.ai-msg.sys {
  align-self: center;
  max-width: 100%;
  color: var(--muted);
  font-size: 0.85rem;
  background: none;
  border: none;
  text-align: center;
}

.ai-input {
  display: flex;
  gap: 0.5rem;
  align-items: flex-end;
  margin-top: 0.8rem;
}

.ai-input textarea {
  flex: 1;
  resize: none;
  max-height: 120px;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: rgba(7, 16, 24, 0.65);
  color: var(--text);
  font: inherit;
}

.ai-file-btn {
  white-space: nowrap;
}

.ai-attach-chip {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

.ai-attach-chip a {
  color: var(--accent);
}

/* —— 首页副标题 —— */
.home-tagline {
  position: relative;
  z-index: 2;
  margin: 0.6rem 0 0;
  color: var(--muted);
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  letter-spacing: 0.1em;
  text-align: center;
}

/* —— AI 多会话条 —— */
.ai-threads {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.7rem;
}

.ai-threads select,
.ai-threads-select {
  flex: 1;
  min-width: 0;
  padding: 0.45rem 0.7rem;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: rgba(7, 16, 24, 0.65);
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
}

.gallery-pager {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  justify-content: center;
  margin-top: 0.8rem;
}

/* —— AI 生成历史画廊 —— */
.ai-gallery {
  max-width: 760px;
  margin: 1rem auto 0;
  padding: 1.1rem 1.3rem;
}

.ai-gallery-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.7rem;
}

.ai-gallery-head h3 {
  margin: 0;
}

.ai-gallery-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.7rem;
}

.gallery-item {
  margin: 0;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.gallery-item > a {
  display: block;
}

.gallery-item.is-video > a {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 10px;
  border: 1px dashed var(--glass-border);
  color: var(--accent);
  text-decoration: none;
}

.gallery-item figcaption {
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: var(--text);
  line-height: 1.45;
  word-break: break-word;
}

.gallery-item .gal-prompt {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.2em;
}

.gallery-item figcaption span {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.72rem;
}

.gallery-pager {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.75rem;
}

/* —— 卡片门锁角标 —— */
.tile-lock {
  position: absolute;
  top: 0.6rem;
  right: 0.7rem;
  z-index: 2;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: rgba(3, 10, 16, 0.35);
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
}

.tile-lock-open {
  color: rgba(120, 200, 180, 0.95);
  border-color: rgba(42, 157, 143, 0.35);
}

/* —— 公告未读红点 —— */
.tile-dot {
  position: absolute;
  top: 0.55rem;
  left: 0.7rem;
  z-index: 2;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e5484d;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 0 10px rgba(229, 72, 77, 0.65);
  animation: tile-dot-pulse 2s ease-in-out infinite;
}

@keyframes tile-dot-pulse {
  0%,
  100% {
    box-shadow: 0 0 6px rgba(229, 72, 77, 0.45);
  }
  50% {
    box-shadow: 0 0 14px rgba(229, 72, 77, 0.8);
  }
}

/* —— 导航搜索按钮 —— */
.nav-search {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.nav-search:hover {
  border-color: rgba(94, 234, 212, 0.5);
  color: var(--accent);
}

/* —— 全站搜索浮层 —— */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(2, 6, 12, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none;
  justify-content: center;
  align-items: flex-start;
  padding: 12vh 1rem 1rem;
}

.search-overlay.is-open {
  display: flex;
}

.search-overlay[hidden] {
  display: none !important;
}

.search-panel {
  position: relative;
  width: min(620px, 100%);
  padding: 1.1rem 1.1rem 0.8rem;
}

.search-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.search-close:hover {
  background: rgba(94, 234, 212, 0.15);
  color: var(--brand);
}

.search-input {
  width: 100%;
  padding: 0.7rem 2.6rem 0.7rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: rgba(3, 10, 16, 0.5);
  color: var(--text);
  font-size: 1rem;
  outline: none;
}

.search-input:focus {
  border-color: rgba(94, 234, 212, 0.55);
}

.search-results {
  margin-top: 0.7rem;
  max-height: 52vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.search-result {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.search-result:hover {
  background: rgba(94, 234, 212, 0.07);
  border-color: var(--glass-border);
}

.search-result-main {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.search-result-main strong {
  font-size: 0.95rem;
  font-weight: 600;
}

.search-result-main small {
  color: var(--muted);
  font-size: 0.78rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-empty {
  padding: 0.8rem 0.4rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.search-hint {
  margin: 0.6rem 0 0.2rem;
  color: var(--muted);
  font-size: 0.72rem;
  text-align: right;
}

/* —— 置顶公告弹窗 —— */
.pin-overlay {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: rgba(2, 6, 12, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.pin-modal {
  width: min(560px, 100%);
  max-height: 82vh;
  display: flex;
  flex-direction: column;
  padding: 1.4rem;
}

.pin-title {
  margin: 0 0 0.9rem;
  font-size: 1.2rem;
}

.pin-list {
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-bottom: 1.1rem;
}

.pin-item {
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: rgba(3, 10, 16, 0.35);
}

.pin-item h4 {
  margin: 0.35rem 0 0.45rem;
  font-size: 1.02rem;
}

.pin-ok {
  align-self: center;
  min-width: 9rem;
}

/* —— AI 配额提示 —— */
.ai-quota {
  margin: 0.4rem 0 0;
  font-size: 0.75rem;
  color: var(--muted);
}

/* —— 画廊灯箱 / 文档预览 —— */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(2, 6, 11, 0.82);
  backdrop-filter: blur(8px);
}

.lightbox[hidden] {
  display: none !important;
}

.lightbox-inner {
  position: relative;
  width: min(960px, 100%);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.lightbox-inner img,
.lightbox-inner iframe {
  width: 100%;
  max-height: min(72vh, 820px);
  object-fit: contain;
  border: 0;
  border-radius: 12px;
  background: rgba(3, 10, 16, 0.55);
}

.lightbox-cap {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.45;
  max-height: 4.5rem;
  overflow: auto;
}

.lightbox-close {
  position: absolute;
  top: -0.35rem;
  right: -0.15rem;
  z-index: 2;
}

.gallery-item .gal-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.gallery-item .gal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.35rem;
}

.gallery-item .gal-copy,
.gallery-item .gal-del {
  font-size: 0.72rem;
  padding: 0.2rem 0.55rem;
}

.doc-preview-body {
  white-space: pre-wrap;
  overflow: auto;
  max-height: min(72vh, 820px);
  padding: 1rem 1.1rem;
  border-radius: 12px;
  background: rgba(3, 10, 16, 0.55);
  border: 1px solid var(--glass-border);
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.65;
}

.item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.home-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1rem;
}

.home-shortcuts a {
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: rgba(8, 20, 28, 0.4);
  color: var(--text);
  font-size: 0.82rem;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.home-shortcuts a:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.invite-list {
  margin: 0.8rem 0 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.invite-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.invite-row code {
  font-size: 0.78rem;
  word-break: break-all;
}
