/* ==================================================
   郑州引力三维 · 极简黑白灰暗黑主题
   纯单色系：黑底 + 灰阶层次 + 银白描边 + 3D 景深
   ================================================== */
:root {
  --accent: #b6bbc4;
  --accent-2: #6a6f78;
  --glow: #e6e8ec;
  --bg: #000000;
  --bg-2: #070708;
  --card: rgba(26, 28, 32, 0.86);
  --card-solid: #181a1e;
  --border: rgba(255, 255, 255, 0.12);
  --border-glow: rgba(255, 255, 255, 0.45);
  --text: #ececee;
  --text-2: #96999f;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC',
    'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background:
    radial-gradient(ellipse 80% 55% at 50% -12%, rgba(255, 255, 255, 0.055), transparent 62%),
    radial-gradient(ellipse 55% 42% at 88% 108%, rgba(255, 255, 255, 0.04), transparent 60%),
    radial-gradient(ellipse 50% 36% at 8% 85%, rgba(200, 205, 215, 0.03), transparent 55%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.7;
  min-height: 100vh;
}

/* 背景深处的透视网格（远处，微弱） */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
  z-index: 0;
}

/* ============ 景深装饰层 ============ */
.bg-decor {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  perspective: 900px;
}

/* 星点（三层大小模拟远近，缓慢漂移） */
.stars {
  position: absolute;
  inset: -40% -20%;
  background-image:
    radial-gradient(1.6px 1.6px at 12% 22%, rgba(255, 255, 255, 0.4), transparent 55%),
    radial-gradient(1.2px 1.2px at 34% 68%, rgba(255, 255, 255, 0.28), transparent 55%),
    radial-gradient(2.2px 2.2px at 58% 14%, rgba(255, 255, 255, 0.22), transparent 55%),
    radial-gradient(1px 1px at 72% 42%, rgba(255, 255, 255, 0.2), transparent 55%),
    radial-gradient(1.4px 1.4px at 88% 76%, rgba(255, 255, 255, 0.18), transparent 55%),
    radial-gradient(1px 1px at 24% 88%, rgba(255, 255, 255, 0.16), transparent 55%),
    radial-gradient(1.8px 1.8px at 44% 36%, rgba(255, 255, 255, 0.14), transparent 55%),
    radial-gradient(1px 1px at 94% 8%, rgba(255, 255, 255, 0.2), transparent 55%);
  animation: starDrift 140s linear infinite;
  opacity: 0.75;
}

@keyframes starDrift {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(38%);
  }
}

/* 远景辉光（灰白，大 + 强模糊 = 距离远） */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(30px);
}

.orb-1 {
  width: 52vw;
  height: 52vw;
  right: -16vw;
  top: -18vw;
  background: radial-gradient(circle at 38% 38%, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0) 68%);
  animation: orbBreathe 12s ease-in-out infinite alternate;
}

.orb-2 {
  width: 34vw;
  height: 34vw;
  left: -12vw;
  top: 26vh;
  background: radial-gradient(circle at 42% 42%, rgba(210, 215, 225, 0.06), rgba(210, 215, 225, 0) 70%);
  filter: blur(38px);
  animation: orbBreathe 16s ease-in-out infinite alternate-reverse;
}

@keyframes orbBreathe {
  from {
    opacity: 0.5;
    transform: scale(1);
  }
  to {
    opacity: 0.9;
    transform: scale(1.08);
  }
}

/* 中景：倾斜环（透视椭圆） */
.ring {
  position: absolute;
  left: 50%;
  top: 58%;
  width: 64vmin;
  height: 64vmin;
  transform: translate(-50%, -50%) rotateX(70deg) rotateZ(-16deg);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 0 34px rgba(255, 255, 255, 0.05),
    inset 0 0 46px rgba(255, 255, 255, 0.03);
  animation: ringFloat 16s ease-in-out infinite alternate;
  opacity: 0.75;
}

@keyframes ringFloat {
  from {
    transform: translate(-50%, -50%) rotateX(70deg) rotateZ(-16deg) translateY(-6px);
  }
  to {
    transform: translate(-50%, -50%) rotateX(70deg) rotateZ(-16deg) translateY(10px);
  }
}

/* 中景：旋转线框立方体 */
.wire-cube {
  position: absolute;
  right: 8%;
  top: 20%;
  width: 110px;
  height: 110px;
  transform-style: preserve-3d;
  animation: cubeSpin 18s linear infinite;
  opacity: 0.55;
}

.wire-cube i {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
}

.wire-cube .f1 { transform: translateZ(55px); }
.wire-cube .f2 { transform: rotateY(180deg) translateZ(55px); }
.wire-cube .f3 { transform: rotateY(90deg) translateZ(55px); }
.wire-cube .f4 { transform: rotateY(-90deg) translateZ(55px); }
.wire-cube .f5 { transform: rotateX(90deg) translateZ(55px); }
.wire-cube .f6 { transform: rotateX(-90deg) translateZ(55px); }

@keyframes cubeSpin {
  from {
    transform: rotateX(-18deg) rotateY(0deg);
  }
  to {
    transform: rotateX(-18deg) rotateY(360deg);
  }
}

/* 近景：地平线分界线 */
.horizon-line {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 30vh;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    rgba(255, 255, 255, 0.18),
    transparent
  );
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.18);
}

/* 移动端隐藏重型装饰 */
@media (max-width: 768px) {
  .wire-cube,
  .ring {
    display: none;
  }

  .orb-1 {
    opacity: 0.4;
  }
}

/* 3D 地面网格：像三维软件的视窗地面 */
body::before {
  content: '';
  position: fixed;
  left: -50%;
  right: -50%;
  bottom: -30%;
  height: 58vh;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 46px 46px;
  transform: perspective(620px) rotateX(62deg);
  transform-origin: bottom center;
  -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent 92%);
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent 92%);
  pointer-events: none;
  z-index: 0;
}

.page {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: 0 auto;
  padding: 88px 16px 44px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  scroll-margin-top: 80px;
}

/* ============ 顶部导航 ============ */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(5, 5, 6, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.site-nav-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 16px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.nav-brand {
  color: #e8e8ea;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 2px;
  text-decoration: none;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 4px;
}

.nav-links a {
  color: #9a9da4;
  text-decoration: none;
  font-size: 13.5px;
  padding: 7px 12px;
  border-radius: 8px;
  letter-spacing: 1px;
  transition: color 0.15s, background 0.15s;
}

.nav-links a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-links a.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  font-weight: 600;
}

/* 视图切换：确保 hidden 始终生效（防止其他 display 规则覆盖） */
[hidden] {
  display: none !important;
}

/* 语言切换（中文 / EN） */
.nav-lang {
  display: flex;
  gap: 2px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px;
  flex-shrink: 0;
  margin-left: auto;
}

.lang-btn {
  background: transparent;
  border: none;
  color: #8f939b;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 1px;
  transition: all 0.15s;
}

.lang-btn:hover {
  color: #d5d8dd;
}

.lang-btn.active {
  background: #e8e8ea;
  color: #0b0c0e;
  font-weight: 700;
}

section.card {
  scroll-margin-top: 76px;
}

/* ============ 作品标签切换 ============ */
.works-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}

.works-tab {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: #9a9da4;
  padding: 10px 0;
  font-size: 14px;
  letter-spacing: 2px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.18s;
}

.works-tab:hover {
  border-color: var(--border-glow);
  color: #d5d8dd;
}

.works-tab.active {
  background: #e8e8ea;
  border-color: #e8e8ea;
  color: #0b0c0e;
  font-weight: 700;
}

.work-panel {
  animation: panelIn 0.25s ease;
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

.about-text {
  color: var(--text-2);
  font-size: 14.5px;
  line-height: 2;
  white-space: pre-wrap;
}

/* Slogan */
.slogan {
  margin-top: 10px;
  color: #a6aab2;
  font-size: 14.5px;
  letter-spacing: 4px;
  font-weight: 300;
}

/* 视频小类分组 */
.video-sub {
  margin-bottom: 20px;
}

.video-sub:last-of-type {
  margin-bottom: 0;
}

/* 视频子标签（三维/AI/其他）：胶囊小按钮，与主标签明显区分 */
.video-sub-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.video-sub-tab {
  flex: 0 0 auto;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #8f939b;
  padding: 5px 16px;
  font-size: 12px;
  letter-spacing: 1px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}

.video-sub-tab:hover {
  border-color: rgba(255, 255, 255, 0.4);
  color: #c9cdd4;
}

.video-sub-tab.active {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.65);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.08);
}

.video-sub-title {
  font-size: 13px;
  font-weight: 700;
  color: #b9bcc2;
  letter-spacing: 2px;
  margin-bottom: 10px;
  padding-left: 10px;
  border-left: 2px solid rgba(255, 255, 255, 0.4);
}

/* 微信二维码 */
.contact-qr {
  width: 96px;
  height: 96px;
  border-radius: 8px;
  border: 1px solid var(--border);
  cursor: zoom-in;
  display: block;
  margin-top: 6px;
}

.qr-preview {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  border: 1px solid var(--border);
  object-fit: contain;
  background: #fff;
}

@media (max-width: 480px) {
  .site-nav-inner {
    height: 52px;
    padding: 0 10px;
  }

  .nav-brand {
    font-size: 13px;
  }

  .nav-links a {
    font-size: 12px;
    padding: 6px 8px;
    letter-spacing: 0;
  }

  .lang-btn {
    font-size: 11px;
    padding: 3px 8px;
  }

  .page {
    padding-top: 76px;
  }
}

/* 后台在手机端的适配：5 个标签换行 + 表单窄屏排版 */
@media (max-width: 600px) {
  .admin-tabs.works-tabs {
    flex-wrap: wrap;
    gap: 6px;
    padding-bottom: 8px;
  }
  .admin-tabs .admin-tab.works-tab {
    flex: 1 1 44%;
    font-size: 13px;
    padding: 9px 0;
    letter-spacing: 1px;
  }
  .admin-view .card,
  .admin-view form {
    padding: 16px 14px;
  }
  .admin-view input.input,
  .admin-view textarea,
  .admin-view select {
    font-size: 14px;
  }
  .admin-view .works-card-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 8px;
  }
}

/* ---------- 玻璃卡片 ---------- */
.card {
  position: relative;
  background: var(--card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.5),
    0 20px 55px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  padding: 22px;
  overflow: hidden;
}

/* 卡片顶部银灰描边 */
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.5),
    rgba(255, 255, 255, 0.16),
    transparent
  );
  pointer-events: none;
}

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: 48px 22px;
  perspective: 900px;
  background:
    radial-gradient(ellipse 70% 80% at 50% 0%, rgba(255, 255, 255, 0.05), transparent 60%),
    var(--card);
}

.logo {
  max-width: 200px;
  max-height: 120px;
  display: block;
  margin: 0 auto 20px;
  border-radius: 14px;
  filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.18));
  animation: logoFloat 6s ease-in-out infinite alternate;
}

@keyframes logoFloat {
  from {
    transform: translateY(2px) rotateX(6deg);
  }
  to {
    transform: translateY(-10px) rotateX(-4deg);
  }
}

.company-name {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 4px;
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    #d6d9de 30%,
    #6b7078 48%,
    #f2f3f5 55%,
    #aeb3bb 70%,
    #7d828b 100%
  );
  background-size: 100% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.28))
    drop-shadow(0 3px 4px rgba(0, 0, 0, 0.95));
  animation: metalFlow 7s linear infinite;
}

/* 金属渐层缓慢流动，模拟拉丝金属反光 */
@keyframes metalFlow {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 0 100%;
  }
}

.intro {
  margin-top: 14px;
  color: var(--text-2);
  font-size: 15px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  white-space: pre-wrap;
}

.card-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 14px;
  color: #d3d6dc;
  letter-spacing: 2px;
}

/* ---------- 作品 ---------- */
.work-section {
  margin-bottom: 22px;
}

.work-section:last-of-type {
  margin-bottom: 6px;
}

.work-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #c3c6cc;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sec-mark {
  color: #8f939b;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}

.work-item {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0 16px 18px;
  background: linear-gradient(180deg, rgba(38, 40, 45, 0.92), rgba(20, 22, 25, 0.96));
  transition: transform 0.18s ease-out, box-shadow 0.22s, border-color 0.22s;
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
}

.work-item:hover {
  border-color: var(--border-glow);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.7), 0 0 26px rgba(255, 255, 255, 0.07);
}

.work-media {
  margin: 0 -16px 12px;
  aspect-ratio: 16 / 9;
  background-color: #101114;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.work-media.clickable {
  cursor: pointer;
}

.work-media.clickable:hover .work-thumb {
  transform: scale(1.05);
}

.work-media.clickable::after {
  content: '▶';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 12px;
  margin: auto;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #e8e8ea;
  font-size: 16px;
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.14);
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}

.work-media.clickable:hover::after {
  opacity: 1;
}

.work-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.work-media-placeholder {
  font-size: 36px;
  color: rgba(255, 255, 255, 0.4);
}

.work-title {
  font-weight: 600;
  font-size: 14.5px;
  color: #f0f1f3;
}

.work-duration {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  color: #d5d8dd;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  padding: 2px 10px;
}

/* 作品详细介绍 */
.work-desc {
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--text-2);
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- 视频播放弹层 ---------- */
.player-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 2, 3, 0.9);
  backdrop-filter: blur(6px);
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.player-box {
  width: 100%;
  max-width: 880px;
  background: #0a0b0d;
  border: 1px solid var(--border-glow);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}

.player-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #c9cdd4;
  font-size: 14px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}

.player-close {
  background: none;
  border: none;
  color: #777c86;
  font-size: 18px;
  cursor: pointer;
}

.player-close:hover {
  color: #fff;
}

.player-box video {
  width: 100%;
  display: block;
  max-height: 70vh;
  background: #000;
}

/* 防下载：隐藏原生播放器的下载按钮（Chrome/Edge/小米等基于 Chromium 内核） */
.player-box video::-webkit-media-controls-download-button,
.player-box video::-webkit-media-controls-enclosure::-webkit-media-controls-download-button {
  display: none !important;
  -webkit-appearance: none !important;
}
video::-webkit-media-controls-download-button {
  display: none !important;
  -webkit-appearance: none !important;
}

/* ---------- 图片大图查看 ---------- */
.image-box {
  max-width: 920px;
  background: #101113;
}

.image-full-wrap {
  position: relative;
  background: #000;
  overflow: hidden;
}

.image-full {
  display: block;
  width: 100%;
  max-height: 74vh;
  object-fit: contain;
  background: #000;
  pointer-events: none;
  user-select: none;
}

/* 分享按钮（作品卡片） */
.work-share-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(0, 0, 0, 0.6);
  color: #e2e4e8;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s;
}

.work-item:hover .work-share-btn {
  opacity: 1;
}

.work-share-btn:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* 页面轻提示 */
#page-toast {
  display: none;
  position: fixed;
  top: 74px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  background: #0d0e10;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #e8e8ea;
  padding: 9px 18px;
  border-radius: 10px;
  font-size: 13.5px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  max-width: 86vw;
  text-align: center;
}

/* ---------- 悬浮联系我们 ---------- */
.contact-fab {
  position: fixed;
  right: 18px;
  bottom: 24px;
  z-index: 60;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(15, 16, 19, 0.9);
  backdrop-filter: blur(8px);
  color: #e8e8ea;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  transition: transform 0.15s, box-shadow 0.15s;
}

.contact-fab:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

.fab-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.fab-box {
  width: 100%;
  max-width: 420px;
  background: #0d0e10;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}

.fab-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #d5d8dd;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.fab-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.fab-body .contact-row {
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.fab-qr {
  width: 150px;
  height: 150px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  object-fit: contain;
  margin-top: 6px;
  display: block;
}

.fab-qr-tip {
  font-size: 12px;
  color: var(--text-2);
}

/* 手机端适配 */
@media (max-width: 480px) {
  .contact-fab {
    right: 12px;
    bottom: 18px;
    width: 50px;
    height: 50px;
  }
}

/* 图片水印（防截屏盗用） */
.image-watermark {
  position: absolute;
  right: 14px;
  bottom: 12px;
  color: rgba(255, 255, 255, 0.38);
  font-size: 13px;
  letter-spacing: 2px;
  pointer-events: none;
  user-select: none;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

/* ---------- 3D 模型查看器 ---------- */
.model-box {
  max-width: 960px;
  background: #0b0c0e;
}

.model-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.light-control {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #b9bcc2;
  font-size: 12.5px;
}

.light-control input[type='range'] {
  width: 96px;
  accent-color: #c9ccd2;
  cursor: pointer;
}

.light-control span {
  min-width: 38px;
  font-variant-numeric: tabular-nums;
  color: #d5d8dd;
}

.viewer-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #d5d8dd;
  border-radius: 8px;
  padding: 5px 12px;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
}

.viewer-btn:hover {
  border-color: #ffffff;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
}

.model-canvas-wrap {
  width: 100%;
  height: 62vh;
  min-height: 380px;
  position: relative;
  background:
    radial-gradient(ellipse 60% 55% at 50% 40%, rgba(255, 255, 255, 0.05), transparent 65%),
    #070708;
}

.model-canvas-wrap canvas {
  display: block;
}

.model-hint {
  text-align: center;
  font-size: 12.5px;
  color: #777b83;
  padding: 9px 12px;
  border-top: 1px solid var(--border);
  letter-spacing: 1px;
}

.model-error {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b9bcc2;
  font-size: 14px;
}

/* 模型加载动画 */
.model-loading {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #8f939b;
  font-size: 13.5px;
  letter-spacing: 2px;
  background: rgba(7, 7, 8, 0.4);
}

.lds-ring {
  position: relative;
  width: 52px;
  height: 52px;
}

.lds-ring div {
  box-sizing: border-box;
  display: block;
  position: absolute;
  width: 42px;
  height: 42px;
  margin: 5px;
  border: 3px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  border-top-color: #e8e8ea;
  animation: ldsSpin 1s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.lds-ring div:nth-child(2) {
  animation-delay: -0.15s;
}

.lds-ring div:nth-child(3) {
  animation-delay: -0.3s;
}

.lds-ring div:nth-child(4) {
  animation-delay: -0.45s;
}

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

/* 后台模型徽标 */
.model-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px dashed rgba(255, 255, 255, 0.3);
  color: #c9ccd2;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.04);
}

/* 后台类型选择器 */
.type-select {
  flex: 0 0 110px !important;
  min-width: 110px !important;
}

/* ============ 裁切界面 ============ */
.crop-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(4px);
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.crop-box {
  width: 100%;
  max-width: 620px;
  background: #0d0e10;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}

.crop-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #d5d8dd;
  font-size: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.crop-stage {
  position: relative;
  height: 52vh;
  min-height: 300px;
  max-height: 560px;
  background: #050506;
  overflow: hidden;
  touch-action: none;
}

.crop-stage img {
  position: absolute;
  z-index: 1;
  user-select: none;
  -webkit-user-drag: none;
  max-width: none;
  pointer-events: none;
}

.crop-mask {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(0, 0, 0, 0.62);
  pointer-events: none;
}

.crop-frame {
  position: absolute;
  z-index: 3;
  border: 2px solid #ffffff;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
  pointer-events: none;
  border-radius: 2px;
}

.crop-controls {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #b9bcc2;
  font-size: 13px;
}

.crop-controls input[type='range'] {
  flex: 1;
  max-width: 240px;
  accent-color: #d5d8dd;
}

.crop-controls .spacer {
  flex: 1;
}

/* 比例选择 */
.ratio-box {
  max-width: 420px;
}

.ratio-options {
  display: flex;
  gap: 14px;
  justify-content: center;
  padding: 24px 18px;
  flex-wrap: wrap;
}

.ratio-btn {
  flex-direction: column;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 12px;
}

.ratio-shape {
  display: block;
  width: 72px;
  background: rgba(255, 255, 255, 0.28);
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.15);
}

/* ---------- 联系方式 ---------- */
.contacts {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-row {
  display: flex;
  gap: 12px;
  align-items: baseline;
  flex-wrap: wrap;
}

.contact-label {
  flex-shrink: 0;
  min-width: 64px;
  font-weight: 600;
  color: #c9cdd4;
  font-size: 14px;
}

.contact-value {
  font-size: 14.5px;
  word-break: break-all;
  color: #e2e4e8;
}

.empty {
  color: var(--text-2);
  text-align: center;
  padding: 12px 0;
}

.footer {
  text-align: center;
  color: var(--text-2);
  font-size: 13px;
  opacity: 0.75;
}

/* ==================================================
   后台管理页（同一黑白灰体系）
   ================================================== */
.admin-card {
  max-width: 460px;
  margin: 40px auto 0;
}

.admin-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #dde0e6;
}

.row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

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

.field label {
  font-size: 13px;
  color: var(--text-2);
}

.input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(8, 9, 11, 0.8);
  color: var(--text);
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.input:focus {
  border-color: var(--border-glow);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
}

textarea.input {
  resize: vertical;
  line-height: 1.7;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 16px;
  font-size: 14px;
  cursor: pointer;
  background: rgba(26, 28, 32, 0.9);
  color: #c9cdd4;
  text-decoration: none;
  font-family: inherit;
  transition: border-color 0.15s, background 0.15s;
}

.btn:hover {
  border-color: var(--border-glow);
  background: rgba(38, 41, 46, 0.9);
}

.btn-primary {
  background: #e8e8ea;
  color: #0b0c0e;
  border: none;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.btn-primary:hover {
  background: #ffffff;
  border: none;
  filter: none;
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-block {
  width: 100%;
}

.btn-small {
  padding: 8px 12px;
  font-size: 13px;
  flex-shrink: 0;
}

.btn-danger {
  color: #e4e6e9;
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-danger:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.hint-text {
  font-size: 13px;
  color: var(--text-2);
  margin: 8px 0 12px;
}

.error-text {
  color: #d9dce1;
  font-size: 13px;
  min-height: 18px;
  margin-top: 8px;
}

.logo-preview {
  max-width: 220px;
  max-height: 120px;
  display: block;
  border-radius: 12px;
  margin-bottom: 10px;
  border: 1px solid var(--border);
  background: rgba(8, 9, 11, 0.6);
}

.edit-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  align-items: center;
  flex-wrap: wrap;
}

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

.edit-row .w-title {
  flex: 2;
}

.work-edit-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 12px;
  background: rgba(13, 14, 17, 0.6);
}

/* 作品分区（后台） */
.works-group {
  margin-bottom: 18px;
}

.works-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #c3c6cc;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
}

.works-group .empty {
  font-size: 13px;
  padding: 10px 0 4px;
}

.edit-row textarea.w-desc {
  resize: vertical;
  min-height: 44px;
  line-height: 1.6;
}

/* ---------- 作品网格卡片（后台） ---------- */
.count-badge {
  font-style: normal;
  font-weight: 400;
  font-size: 12px;
  color: var(--text-2);
  margin-left: 6px;
}

.works-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 6px;
}

.work-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(13, 14, 17, 0.7);
  transition: border-color 0.15s, transform 0.15s;
}

.work-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-2px);
}

.work-card-media {
  position: relative;
  background: #0a0b0d;
  overflow: hidden;
}

.work-card-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.work-card-ph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: rgba(255, 255, 255, 0.3);
}

.work-card-type {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #d5d8dd;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
}

.work-card-body {
  padding: 10px 12px;
}

.work-card-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #e2e4e8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.work-card-meta {
  font-size: 12px;
  color: var(--text-2);
  margin: 4px 0 8px;
}

.work-card-desc {
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

/* 拖拽中卡片 */
.work-card.dragging {
  opacity: 0.45;
  border-color: rgba(255, 255, 255, 0.5);
  outline: 1px dashed rgba(255, 255, 255, 0.5);
}

.work-card-actions {
  display: flex;
  gap: 8px;
}

/* ---------- 编辑弹窗 ---------- */
.work-editor-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(4px);
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.work-editor-box {
  width: 100%;
  max-width: 680px;
  max-height: 86vh;
  overflow-y: auto;
  background: #0d0e10;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  padding: 0 16px 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}

.work-editor-head {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #d5d8dd;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 0;
  margin: 0 -16px 8px;
  padding-left: 16px;
  padding-right: 16px;
  background: #0d0e10;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.work-preview {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-top: 4px;
}

.work-video-preview {
  width: 260px;
  max-width: 100%;
  border-radius: 8px;
  background: #000;
  border: 1px solid var(--border);
}

.work-thumb-preview {
  width: 140px;
  max-width: 100%;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #0c0d0f;
  border: 1px solid var(--border-glow);
  color: #e8e8ea;
  padding: 9px 18px;
  border-radius: 10px;
  font-size: 13.5px;
  z-index: 99;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  max-width: 86vw;
}

@media (max-width: 480px) {
  .company-name {
    font-size: 23px;
  }

  .card {
    padding: 16px;
  }

  /* 手机端作品布局：默认两列；16:9 横版视频占满整行 */
  .works-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .work-item.ratio-wide {
    grid-column: span 2;
  }

  .work-item {
    padding: 0 12px 14px;
  }
}

/* ==================================================
   后台：顶部功能标签 + 分享设置预览
   ================================================== */
.admin-tabs.works-tabs {
  margin-top: 6px;
  flex-wrap: wrap;
}

.admin-tab.works-tab {
  flex: 0 0 auto;
  padding: 10px 20px;
  letter-spacing: 1px;
}

.admin-view {
  animation: panelIn 0.25s ease;
}

/* 作品子标签：与主页小胶囊一致的样式，放在作品卡片区上方 */
.works-sub-tabs {
  margin-bottom: 16px;
}

/* 分享卡片预览（模拟微信卡片：左图右文） */
.share-preview {
  margin-top: 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #0b0c0e;
}

.share-preview-head {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  letter-spacing: 1px;
}

.share-preview-body {
  display: flex;
  gap: 12px;
  padding: 14px;
  align-items: center;
}

.share-preview-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  background: #050506;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}

.share-preview-text {
  min-width: 0;
}

.share-preview-title {
  font-size: 14px;
  font-weight: 700;
  color: #e8eaee;
  word-break: break-all;
}

.share-preview-desc {
  font-size: 12px;
  color: var(--text-2);
  margin-top: 4px;
  word-break: break-all;
}

/* 图册角标与查看器 */
.work-gallery-badge {
  position: absolute;
  right: 8px;
  bottom: 8px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 1px;
  pointer-events: none;
}

.gallery-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  max-height: 74vh;
  background: #050506;
}

.gallery-stage .image-full {
  max-width: 100%;
  max-height: 74vh;
  object-fit: contain;
}

.gallery-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 22px 16px 14px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.78));
  color: #e8eaee;
  font-size: 13.5px;
  text-align: center;
  line-height: 1.7;
}

.gallery-counter {
  position: absolute;
  top: 10px;
  right: 14px;
  background: rgba(0, 0, 0, 0.6);
  color: #d5d8dd;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 999px;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 60px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  border-radius: 10px;
  z-index: 2;
}

.gallery-nav.prev {
  left: 10px;
}

.gallery-nav.next {
  right: 10px;
}

.footer-visits {
  opacity: 0.6;
  margin-left: 6px;
}
