/* ============================================================
   TSZ TEAM - 全局样式
   红白简约 · 动画细节拉满 · 响应式
   ============================================================ */
:root {
  --red: #E63946;
  --red-dark: #C1121F;
  --red-soft: #FDEBEC;
  --red-grad: linear-gradient(135deg, #FF5D6B 0%, #E63946 45%, #C1121F 100%);
  --white: #FFFFFF;
  --bg: #FFFFFF;
  --bg-soft: #FAFAF9;
  --ink: #1D1D1F;
  --ink-2: #515154;
  --muted: #8E8E93;
  --line: #EEEFF1;
  --shadow-sm: 0 2px 10px rgba(29,29,31,.06);
  --shadow-md: 0 8px 28px rgba(29,29,31,.10);
  --shadow-lg: 0 20px 60px rgba(230,57,70,.16);
  --radius: 18px;
  --radius-sm: 12px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  /* 主题化表面变量（深色主题覆盖） */
  --card: #FFFFFF;          /* 卡片/面板表面 */
  --track: #F2F2F4;         /* 分段控件底槽 */
  --skeleton-a: #f2f2f3;    /* 骨架屏 */
  --skeleton-b: #e8e8ea;
  --badge-muted-bg: #f0f0f2;/* 弱化徽章（角色/状态） */
  --switch-bg: #e3e4e8;     /* 开关底槽 */
  --del-bg: #fff0f1;        /* 危险操作悬停底 */
  --btn-danger-bd: #f5c6ca; /* 危险按钮描边 */
  --dropzone-bd: #e3c4c7;   /* 上传拖拽虚线 */
  --input-bg: var(--bg-soft); /* 输入框底 */
  --scrim: rgba(20,20,24,.5); /* 遮罩 */
  --header-bg: rgba(255,255,255,.82);  /* 顶部导航半透明底 */
  --panel-grad: linear-gradient(180deg, #FFFFFF 0%, #FFFDFC 100%); /* 登录面板渐变 */
}

/* ---------- 深色主题 ---------- */
[data-theme="dark"] {
  --white: #141416;
  --bg: #141416;
  --bg-soft: #1E1E21;
  --ink: #F2F2F4;
  --ink-2: #C7C7CC;
  --muted: #98989E;
  --line: #2C2C30;
  --shadow-sm: 0 2px 10px rgba(0,0,0,.35);
  --shadow-md: 0 8px 28px rgba(0,0,0,.45);
  --shadow-lg: 0 20px 60px rgba(0,0,0,.55);
  --card: #1E1E21;
  --track: #2C2C30;
  --skeleton-a: #242428;
  --skeleton-b: #333338;
  --badge-muted-bg: #2C2C30;
  --switch-bg: #3A3A40;
  --del-bg: #3A171B;
  --btn-danger-bd: #5C2329;
  --dropzone-bd: #5C2329;
  --input-bg: #161618;
  --scrim: rgba(0,0,0,.72);
  --header-bg: rgba(20,20,22,.82);
  --panel-grad: linear-gradient(180deg, #1E1E21 0%, #1A1A1D 100%);
  --red-soft: rgba(230,57,70,.16);
  --red-dark: #FF7B84;
  color-scheme: dark;
}
[data-theme="dark"] .site-header.scrolled { box-shadow: 0 6px 24px rgba(0,0,0,.4); }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color .3s ease, color .3s ease;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; font-size: 1rem; color: var(--ink); }
::selection { background: var(--red); color: #fff; }

.container { width: min(1180px, 92%); margin: 0 auto; }
.hidden { display: none !important; }

/* ============================================================
   动画关键帧
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes breathe {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 4px 10px rgba(230,57,70,.25)); }
  50%      { transform: scale(1.06); filter: drop-shadow(0 8px 22px rgba(230,57,70,.45)); }
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
@keyframes heartPop {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.5); }
  60%  { transform: scale(.85); }
  100% { transform: scale(1); }
}
@keyframes ripple {
  to { transform: scale(4); opacity: 0; }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer {
  0% { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
@keyframes gradShift {
  0%,100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@keyframes blob {
  0%,100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(40px,-30px) scale(1.1); }
  66% { transform: translate(-30px,20px) scale(.95); }
}

/* 页面级进入动画：子元素依次错落出现 */
.stagger > * { animation: fadeUp .7s cubic-bezier(.2,.7,.2,1) both; }
.stagger > *:nth-child(1) { animation-delay: .05s; }
.stagger > *:nth-child(2) { animation-delay: .12s; }
.stagger > *:nth-child(3) { animation-delay: .19s; }
.stagger > *:nth-child(4) { animation-delay: .26s; }
.stagger > *:nth-child(5) { animation-delay: .33s; }
.stagger > *:nth-child(6) { animation-delay: .40s; }
.stagger > *:nth-child(7) { animation-delay: .47s; }
.stagger > *:nth-child(8) { animation-delay: .54s; }
.stagger > *:nth-child(9) { animation-delay: .61s; }
.stagger > *:nth-child(10) { animation-delay: .68s; }

/* 通用渐显工具类 */
.anim-fade { animation: fadeIn .6s ease both; }
.anim-fade-up { animation: fadeUp .7s cubic-bezier(.2,.7,.2,1) both; }

/* ============================================================
   按钮
   ============================================================ */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 26px; border-radius: 10px;
  font-weight: 600; font-size: .95rem; letter-spacing: .02em;
  transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease, background .3s ease, color .3s ease;
  user-select: none; white-space: nowrap;
}
.btn:active { transform: scale(.95); }
.btn-primary { background: var(--red-grad); color: #fff; box-shadow: 0 6px 18px rgba(230,57,70,.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(230,57,70,.45); }

/* —— 主按钮悬停强化：流光边框 + 扫光 —— */
.btn-primary::before,
.btn-primary::after { pointer-events: none; }

/* 流光边框：conic 光带沿边框旋转（hover 时启动，空闲暂停省电） */
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: inherit;
  background: conic-gradient(from 0deg,
    transparent 0deg, rgba(255,255,255,.95) 40deg, transparent 90deg,
    transparent 180deg, rgba(255,255,255,.55) 210deg, transparent 260deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .35s ease;
  animation: borderGlow 3s linear infinite;
  animation-play-state: paused;
}
.btn-primary:hover::before { opacity: 1; animation-play-state: running; }
@keyframes borderGlow { to { transform: rotate(360deg); } }

/* 扫光：鼠标移入时一道亮光从左向右掠过 */
.btn-primary::after {
  content: '';
  position: absolute;
  top: -10%; left: -75%;
  width: 55%; height: 120%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.6), transparent);
  transform: skewX(-20deg);
  transition: left .7s cubic-bezier(.2,.7,.2,1);
}
.btn-primary:hover::after { left: 135%; }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--red); color: var(--red); background: var(--red-soft); transform: translateY(-2px); }
.btn-outline-red { background: transparent; color: var(--red); border: 1.5px solid var(--red); }
.btn-outline-red:hover { background: var(--red); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(230,57,70,.35); }
.btn-danger { background: var(--card); color: var(--red-dark); border: 1.5px solid var(--btn-danger-bd); }
.btn-danger:hover { background: var(--red); border-color: var(--red); color: #fff; }
.btn-sm { padding: 8px 16px; font-size: .85rem; }
.btn-lg { padding: 15px 34px; font-size: 1.05rem; }
.btn[disabled] { opacity: .5; pointer-events: none; }
/* 波纹效果 */
.ripple-ink {
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,.5); transform: scale(0);
  animation: ripple .6s ease-out forwards; pointer-events: none;
}
.btn-ghost .ripple-ink, .btn-outline-red .ripple-ink, .btn-danger .ripple-ink { background: rgba(230,57,70,.18); }

/* ============================================================
   顶部导航
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s ease;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(29,29,31,.06); }
.header-inner { display: flex; align-items: center; gap: 28px; height: 70px; }

/* Logo：呼吸动画 + 悬停效果 */
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-mark { animation: breathe 3.2s ease-in-out infinite; transition: transform .3s ease; }
.logo:hover .logo-mark { animation-play-state: paused; transform: rotate(-8deg) scale(1.08); }
.logo-text {
  font-size: 1.35rem; font-weight: 800; letter-spacing: .06em; color: var(--ink);
  display: flex; align-items: baseline; gap: 6px;
}
.logo-text em {
  font-style: normal; font-weight: 800;
  background: var(--red-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.logo-mark.small { width: 30px; height: 30px; animation: none; }

.main-nav { display: flex; gap: 6px; margin-left: 8px; }
.main-nav a {
  position: relative; padding: 8px 16px; border-radius: 999px;
  font-weight: 500; color: var(--ink-2); font-size: .95rem;
  transition: color .25s ease, background .25s ease;
}
.main-nav a::after {
  content: ""; position: absolute; left: 50%; bottom: 2px;
  width: 0; height: 3px; border-radius: 3px;
  background: var(--red); transform: translateX(-50%);
  transition: width .3s cubic-bezier(.2,.7,.2,1);
}
.main-nav a:hover { color: var(--red); background: var(--red-soft); }
.main-nav a.active { color: var(--red); font-weight: 700; }
.main-nav a.active::after { width: 18px; }

.header-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }

/* 主题切换按钮 */
.theme-toggle {
  width: 38px; height: 38px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--line); background: var(--card); color: var(--ink-2);
  transition: all .25s ease; flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--red); color: var(--red); background: var(--red-soft); transform: translateY(-2px); }
.theme-toggle svg { transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.theme-toggle:hover svg { transform: rotate(40deg) scale(1.15); }

/* 用户菜单 */
.user-menu { position: relative; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--red-grad); color: #fff; font-weight: 700; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(230,57,70,.3);
  transition: transform .25s ease, box-shadow .3s ease;
}
.avatar:hover { transform: scale(1.08); box-shadow: 0 8px 20px rgba(230,57,70,.45); }
.dropdown {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 200px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-md); padding: 8px;
  opacity: 0; transform: translateY(-8px) scale(.96); pointer-events: none;
  transition: opacity .25s ease, transform .25s cubic-bezier(.2,.7,.2,1);
  z-index: 120;
}
.user-menu.open .dropdown { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.dropdown .dd-head { padding: 10px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.dropdown .dd-head b { display: block; }
.dropdown .dd-head span { font-size: .78rem; color: var(--muted); }
.dropdown a, .dropdown button {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 10px 12px; border-radius: 10px; font-size: .92rem; color: var(--ink-2);
  transition: background .2s ease, color .2s ease;
}
.dropdown a:hover, .dropdown button:hover { background: var(--red-soft); color: var(--red); }
.dropdown .dd-danger:hover { background: var(--del-bg); color: var(--red-dark); }

/* 移动端汉堡按钮 */
.menu-toggle { display: none; flex-direction: column; gap: 5px; padding: 10px; margin-left: auto; }
.menu-toggle span { width: 22px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: .3s; }
.menu-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ============================================================
   首页 Hero
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  padding: 96px 0 72px; text-align: center;
}
.hero .blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; animation: blob 14s ease-in-out infinite; z-index: 0; }
.hero .blob-1 { width: 380px; height: 380px; background: rgba(230,57,70,.35); top: -120px; left: -80px; }
.hero .blob-2 { width: 320px; height: 320px; background: rgba(255,93,107,.25); bottom: -100px; right: -60px; animation-delay: -6s; }
.hero .badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 18px; border-radius: 999px; background: var(--red-soft);
  color: var(--red-dark); font-size: .85rem; font-weight: 600;
  border: 1px solid rgba(230,57,70,.15); margin-bottom: 26px;
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 800; line-height: 1.12; letter-spacing: -.02em;
  max-width: 900px; margin: 0 auto 18px;
}
.hero h1 .grad {
  background: var(--red-grad); background-size: 200% 200%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: gradShift 5s ease infinite;
}
.hero .lead { max-width: 620px; margin: 0 auto 34px; color: var(--ink-2); font-size: 1.12rem; }
.hero .cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero .stats-row {
  display: flex; justify-content: center; gap: 48px; margin-top: 60px; flex-wrap: wrap;
}
.hero .stat { text-align: center; }
.hero .stat b { font-size: 2rem; font-weight: 800; color: var(--red); display: flex; align-items: center; justify-content: center; height: 2rem; line-height: 1; }
.hero .stat span { color: var(--muted); font-size: .9rem; }

/* 星空背景：Canvas 铺满 hero，文字在其上层 */
.hero .container { position: relative; z-index: 1; }
.hero-stars {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
}

/* 滚动提示 */
.scroll-hint { margin-top: 44px; display: inline-flex; flex-direction: column; align-items: center; gap: 6px; color: var(--muted); font-size: .8rem; animation: floaty 2.4s ease-in-out infinite; }
/* ============================================================
   通用区块标题
   ============================================================ */
.section { padding: 64px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 30px; gap: 16px; flex-wrap: wrap; }
.section-title { font-size: 1.8rem; font-weight: 800; letter-spacing: -.01em; }
.section-title small { display: block; font-size: .9rem; font-weight: 500; color: var(--muted); margin-top: 6px; letter-spacing: .04em; }
.see-all { color: var(--red); font-weight: 600; font-size: .92rem; display: inline-flex; align-items: center; gap: 6px; transition: gap .25s ease; }
.see-all:hover { gap: 12px; }

/* ============================================================
   作品卡片
   ============================================================ */
.works-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.work-card {
  position: relative; background: var(--card); border-radius: var(--radius);
  border: 1px solid var(--line); overflow: hidden;
  transition: transform .4s cubic-bezier(.2,.7,.2,1), box-shadow .4s ease;
  animation: fadeUp .6s cubic-bezier(.2,.7,.2,1) both;
  display: flex; flex-direction: column;
}
.work-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.work-card .thumb {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-soft);
}
.work-card .thumb img, .work-card .thumb video { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.work-card:hover .thumb img, .work-card:hover .thumb video { transform: scale(1.07); }
.work-card .type-tag {
  position: absolute; top: 12px; left: 12px;
  padding: 4px 12px; border-radius: 999px; font-size: .72rem; font-weight: 700;
  background: rgba(255,255,255,.92); color: var(--red-dark);
  backdrop-filter: blur(4px); box-shadow: var(--shadow-sm);
}
.work-card .play-badge {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.18); opacity: 0; transition: opacity .3s ease;
}
.work-card:hover .play-badge { opacity: 1; }
.work-card .play-badge .play {
  width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,.95); color: var(--red);
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.25); transform: scale(.8); transition: transform .3s ease;
}
.work-card:hover .play-badge .play { transform: scale(1); }
.work-card .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.work-card .title { font-weight: 700; font-size: 1.02rem; line-height: 1.4; }
.work-card .desc {
  color: var(--muted); font-size: .85rem; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  flex: 1;
}
.work-card .meta { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.work-card .uploader { display: inline-flex; align-items: center; gap: 8px; font-size: .83rem; color: var(--ink-2); }
.work-card .uploader .dot { width: 26px; height: 26px; border-radius: 50%; background: var(--red-soft); color: var(--red-dark); font-size: .72rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.work-card .uploader:hover { color: var(--red); }

/* 点赞按钮 */
.like-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 8px;
  font-size: .85rem; font-weight: 600; color: var(--muted);
  border: 1.5px solid var(--line); transition: all .25s ease;
}
.like-btn .heart { font-size: 1.05rem; line-height: 1; transition: transform .3s cubic-bezier(.2,.7,.2,1); }
.like-btn:hover { border-color: var(--red); color: var(--red); background: var(--red-soft); }
.like-btn.liked { color: var(--red); border-color: var(--red); background: var(--red-soft); }
.like-btn.liked .heart { animation: heartPop .5s cubic-bezier(.2,.7,.2,1); }
.like-btn.disabled { opacity: .45; cursor: not-allowed; }

/* 卡片操作区（编辑/删除） */
.card-actions { display: flex; gap: 8px; }
.card-actions button { padding: 5px 10px; border-radius: 8px; font-size: .78rem; border: 1px solid var(--line); color: var(--ink-2); transition: .2s; }
.card-actions button:hover { color: var(--red); border-color: var(--red); background: var(--red-soft); }
.card-actions button.del:hover { color: var(--red-dark); border-color: var(--red); background: var(--del-bg); }

/* 加载骨架屏 */
.skeleton { background: linear-gradient(90deg, var(--skeleton-a) 25%, var(--skeleton-b) 37%, var(--skeleton-a) 63%); background-size: 800px 100%; animation: shimmer 1.4s infinite linear; }

/* ============================================================
   搜索 / 筛选栏
   ============================================================ */
.toolbar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}
.search-box { position: relative; flex: 1; min-width: 200px; }
.search-box input {
  width: 100%; padding: 11px 16px 11px 42px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--input-bg);
  transition: border .25s ease, box-shadow .25s ease;
}
.search-box input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px rgba(230,57,70,.12); }
.search-box .s-ico { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.chip {
  padding: 9px 18px; border-radius: 999px; border: 1.5px solid var(--line);
  font-size: .88rem; font-weight: 500; color: var(--ink-2); background: var(--card);
  transition: all .25s ease;
}
.chip:hover { border-color: var(--red); color: var(--red); }
.chip.active { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 4px 14px rgba(230,57,70,.35); }

/* 分页 */
.pagination { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 40px; flex-wrap: wrap; }
.pagination button {
  min-width: 42px; height: 42px; padding: 0 14px; border-radius: 12px;
  border: 1.5px solid var(--line); background: var(--card); font-weight: 600;
  transition: all .25s ease;
}
.pagination button:hover:not(:disabled) { border-color: var(--red); color: var(--red); transform: translateY(-2px); }
.pagination button.active { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 6px 16px rgba(230,57,70,.35); }
.pagination button:disabled { opacity: .4; cursor: not-allowed; }
.pagination .page-info { color: var(--muted); font-size: .9rem; padding: 0 8px; }

/* 空状态 */
.empty {
  text-align: center; padding: 90px 20px; color: var(--muted);
}
.empty .empty-icon { font-size: 3rem; margin-bottom: 16px; animation: floaty 3s ease-in-out infinite; display: inline-block; }
.empty h3 { color: var(--ink); font-size: 1.2rem; margin-bottom: 8px; }
.empty p { font-size: .92rem; }

/* ============================================================
   表单页（登录/注册/上传）
   ============================================================ */
.auth-wrap { min-height: calc(100vh - 70px - 220px); display: flex; align-items: center; justify-content: center; padding: 48px 16px; }
.auth-card {
  width: 100%; max-width: 420px; background: var(--card);
  border: 1px solid var(--line); border-radius: 22px;
  padding: 40px 36px; box-shadow: var(--shadow-md);
  animation: fadeUp .7s cubic-bezier(.2,.7,.2,1) both;
}
.auth-card h2 { font-size: 1.6rem; font-weight: 800; margin-bottom: 6px; }
.auth-card .sub { color: var(--muted); font-size: .92rem; margin-bottom: 28px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 8px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 16px; border-radius: 12px;
  border: 1.5px solid var(--line); background: var(--input-bg);
  transition: border .25s ease, box-shadow .25s ease;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px rgba(230,57,70,.12); background: var(--card); }
.field textarea { resize: vertical; min-height: 110px; }
.field .hint { font-size: .78rem; color: var(--muted); margin-top: 6px; }
.field .err { font-size: .8rem; color: var(--red-dark); margin-top: 6px; display: none; }
.field.invalid .err { display: block; }
.field.invalid input, .field.invalid textarea { border-color: var(--red); }
.auth-card .switch { text-align: center; margin-top: 22px; font-size: .9rem; color: var(--muted); }
.auth-card .switch a { color: var(--red); font-weight: 700; }

/* ============================================================
   登录 / 注册 · 左右分栏滑动面板
   （左侧红色品牌区 + 右侧可拖拽滑块的登录注册面板）
   ============================================================ */
.auth-wrap.auth-split { padding: 42px 18px; }

.auth-stage {
  display: flex;
  width: min(1060px, 100%);
  height: min(660px, calc(100vh - 190px));
  min-height: 580px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid rgba(230, 57, 70, .08);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(193, 18, 31, .16);
  animation: fadeUp .7s cubic-bezier(.2, .7, .2, 1) both;
}

/* ---------- 左侧：红色品牌展示区 ---------- */
.auth-brand {
  position: relative;
  flex: 0 0 44%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 44px 42px 36px;
  color: #fff;
  background:
    radial-gradient(130% 150% at 6% -6%, rgba(255, 255, 255, .18) 0%, rgba(255, 255, 255, 0) 46%),
    radial-gradient(130% 130% at 108% 108%, rgba(193, 18, 31, .5) 0%, rgba(193, 18, 31, 0) 56%),
    linear-gradient(150deg, #FF5D6B 0%, #E63946 48%, #C1121F 100%);
  overflow: hidden;
}
.brand-orb { position: absolute; border-radius: 50%; pointer-events: none; }
.brand-orb.o1 {
  width: 300px; height: 300px; right: -110px; top: -90px;
  background: radial-gradient(circle, rgba(255, 255, 255, .20), rgba(255, 255, 255, 0) 62%);
}
.brand-orb.o2 {
  width: 230px; height: 230px; left: -90px; bottom: 40px;
  background: radial-gradient(circle, rgba(255, 255, 255, .10), rgba(255, 255, 255, 0) 60%);
}
.brand-orb.o3 {
  width: 44px; height: 44px; right: 58px; bottom: 130px;
  background: rgba(255, 255, 255, .16); filter: blur(2px);
  animation: floaty 5s ease-in-out infinite;
}
.brand-head, .brand-mid, .brand-home { position: relative; z-index: 1; }

.brand-chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .3);
  backdrop-filter: blur(4px);
  font-size: .92rem; font-weight: 800; letter-spacing: .12em;
}
.brand-chip img { width: 20px; height: 20px; border-radius: 6px; }

.brand-mid h2 {
  font-size: clamp(1.55rem, 2.6vw, 2.05rem);
  line-height: 1.3; font-weight: 800; letter-spacing: .02em;
}
.brand-lead { margin-top: 16px; font-size: .95rem; line-height: 1.8; opacity: .94; }
.brand-list { list-style: none; margin-top: 26px; display: flex; flex-direction: column; gap: 11px; font-size: .92rem; opacity: .97; }
.brand-list li { display: flex; align-items: center; gap: 10px; }
.brand-list li::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: #fff; flex-shrink: 0; opacity: .95;
}
.brand-home {
  align-self: flex-start; color: #fff; font-size: .88rem;
  opacity: .82; transition: opacity .25s ease, transform .25s ease;
}
.brand-home:hover { opacity: 1; transform: translateX(-3px); }

/* ---------- 右侧：滑动登录 / 注册 ---------- */
.auth-panel {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column;
  padding: 40px 46px 30px;
  background: var(--panel-grad);
}

/* 滑块开关：拖拽滑块或点击两侧文字切换 */
.auth-switch {
  position: relative; flex-shrink: 0;
  display: grid; grid-template-columns: 1fr 1fr;
  width: min(340px, 100%); margin: 0 0 10px;
  padding: 5px; border-radius: 15px;
  background: var(--track);
  touch-action: none; user-select: none;
  cursor: url('/assets/cursors/Hand.cur'), grab;
}
.auth-tab {
  position: relative; z-index: 2;
  padding: 11px 0; text-align: center;
  font-size: .98rem; font-weight: 700; letter-spacing: .14em;
  color: var(--ink-2); background: transparent; border: 0;
  transition: color .3s ease;
}
.auth-tab.on { color: #fff; }
.auth-pill {
  position: absolute; top: 5px; left: 5px;
  width: calc(50% - 5px); height: calc(100% - 10px);
  border-radius: 11px;
  background: var(--red-grad);
  box-shadow: 0 6px 18px rgba(230, 57, 70, .42);
  transition: left .45s cubic-bezier(.22, .68, .28, 1);
  pointer-events: none;
}
.auth-switch.dragging .auth-pill,
.auth-switch.dragging .auth-track { transition: none !important; }

/* 内容滑动轨道：登录 | 注册 左右排布，按滑块位移平移 */
.auth-clip {
  flex: 1; min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  display: flex; align-items: stretch;
}
.auth-track {
  flex: 0 0 200%; display: flex;
  transform: translateX(0);
  transition: transform .5s cubic-bezier(.22, .68, .28, 1);
  will-change: transform;
}
.auth-page {
  flex: 0 0 50%;
  display: flex; align-items: center;
}
.auth-form {
  width: 100%; max-width: 400px;
  margin: 0 auto; padding: 0 4px;
  animation: fadeIn .5s ease both;
}
.auth-form h2 {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.45rem; font-weight: 800;
}
.auth-form h2 .f-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 11px;
  background: var(--red-soft); color: var(--red);
}
.auth-form .sub { color: var(--muted); font-size: .9rem; margin: 8px 0 26px; }
.auth-form .field { margin-bottom: 17px; }
.auth-form .auth-submit { width: 100%; margin-top: 8px; }
.auth-hint {
  flex-shrink: 0; margin-top: 22px; text-align: center;
  font-size: .78rem; color: var(--muted);
}

/* 登录页：账号密码 / 邮箱验证码 二级切换 */
.auth-modes {
  position: relative;
  display: flex; gap: 6px;
  background: var(--track); border-radius: 12px; padding: 4px;
  margin: 0 0 22px; width: fit-content; max-width: 100%;
}
.am-btn {
  padding: 8px 14px; border-radius: 9px;
  font-size: .85rem; font-weight: 600; color: var(--ink-2);
  white-space: nowrap;
  transition: background .25s ease, color .25s ease;
}
.am-btn.on { background: var(--card); color: var(--red); box-shadow: 0 2px 8px rgba(0, 0, 0, .06); }
.auth-form .hint {
  font-size: .78rem; color: var(--muted);
  margin-top: 10px; line-height: 1.7;
}

/* 验证码输入 + 获取按钮一行 */
.code-row { display: flex; align-items: center; gap: 10px; }
.code-row input { flex: 1; min-width: 0; }
.code-btn {
  flex-shrink: 0; height: 48px; padding: 0 15px;
  white-space: nowrap; font-size: .88rem;
  display: inline-flex; align-items: center; justify-content: center;
}
.code-btn.sending { opacity: .75; }

/* 账号资料卡（我的作品页顶部） */
.prof-card {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 16px 20px; margin: -8px 0 28px;
  box-shadow: var(--shadow-sm);
}
.prof-avatar {
  width: 52px; height: 52px; border-radius: 16px; flex-shrink: 0;
  background: var(--red-soft); color: var(--red);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; font-weight: 800;
}
.prof-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.prof-line { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; }
.prof-mail { display: flex; align-items: center; gap: 7px; color: var(--ink-2); font-size: .9rem; }
.prof-mail .muted { color: var(--muted); }
.modal-sub { margin: 6px 0 18px; font-size: .9rem; color: var(--muted); }

/* 后台：邮件设置 */
.mail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; margin-top: 18px; }
.mail-test-row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-top: 12px;
  border-top: 1px dashed var(--line); padding-top: 18px;
}
.mail-test-box { flex: 1; min-width: 260px; }
.mail-test-label {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .92rem; font-weight: 600; color: var(--ink-2);
}
.mail-actions { flex-shrink: 0; padding-bottom: 2px; }
.mail-test-box .code-btn { height: auto; padding: 11px 18px; }
@media (max-width: 760px) { .mail-grid { grid-template-columns: 1fr; } }

/* 响应式：窄屏改为上下布局 */
@media (max-width: 920px) {
  .auth-stage {
    flex-direction: column;
    height: auto; min-height: 0;
  }
  .auth-brand {
    flex: none;
    padding: 34px 30px 30px;
    justify-content: flex-start;
  }
  .brand-mid { margin: 4px 0 2px; }
  .brand-list { display: none; }
  .auth-panel { padding: 34px 28px 30px; }
  .auth-form { max-width: none; }
  .auth-switch { width: min(340px, 100%); }
}
@media (max-width: 480px) {
  .auth-panel { padding: 28px 18px 26px; }
  .brand-mid h2 { font-size: 1.4rem; }
  .brand-orb.o2, .brand-orb.o3 { display: none; }
}

/* 上传卡片拖拽区 */
.dropzone {
  border: 2px dashed var(--dropzone-bd); border-radius: var(--radius);
  background: var(--bg-soft); padding: 40px 20px; text-align: center;
  cursor: pointer; transition: all .3s ease; position: relative; overflow: hidden;
}
.dropzone:hover, .dropzone.dragover { border-color: var(--red); background: var(--red-soft); }
.dropzone .dz-ico { font-size: 2.4rem; margin-bottom: 10px; animation: floaty 3s ease-in-out infinite; }
.dropzone p { color: var(--muted); font-size: .92rem; }
.dropzone b { color: var(--red); }
.dropzone .dz-preview { position: absolute; inset: 0; }
.dropzone .dz-preview img, .dropzone .dz-preview video { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   作品详情页
   ============================================================ */
.detail-wrap { padding: 40px 0 80px; }
.detail-card {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 0;
  background: var(--card); border: 1px solid var(--line); border-radius: 24px;
  overflow: hidden; box-shadow: var(--shadow-md);
  animation: fadeUp .7s cubic-bezier(.2,.7,.2,1) both;
}
.detail-media { position: relative; background: #111; display: flex; align-items: center; justify-content: center; min-height: 320px; }
.detail-media img, .detail-media video { width: 100%; max-height: 640px; object-fit: contain; }
.detail-info { padding: 36px 32px; display: flex; flex-direction: column; gap: 18px; }
.detail-info .type-pill { align-self: flex-start; padding: 4px 14px; border-radius: 999px; font-size: .75rem; font-weight: 700; background: var(--red-soft); color: var(--red-dark); }
.detail-info h1 { font-size: 1.7rem; font-weight: 800; line-height: 1.3; }
.detail-info .owner { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.detail-info .owner .avatar-sm { width: 42px; height: 42px; border-radius: 50%; background: var(--red-grad); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.detail-info .owner b { display: block; }
.detail-info .owner span { font-size: .8rem; color: var(--muted); }
.detail-info .desc { color: var(--ink-2); white-space: pre-wrap; line-height: 1.8; }
.detail-info .row-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: auto; }
.detail-info .big-like { padding: 12px 30px; }
/* ============================================================
   后台管理
   ============================================================ */
.admin-wrap { display: grid; grid-template-columns: 220px 1fr; gap: 28px; padding: 40px 0 80px; align-items: start; }
.admin-sidebar { position: sticky; top: 90px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.admin-sidebar .adm-title { padding: 10px 12px 16px; font-weight: 800; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.admin-sidebar a {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border-radius: 12px; color: var(--ink-2); font-weight: 500; font-size: .95rem;
  transition: all .25s ease;
}
.admin-sidebar a:hover { background: var(--bg-soft); color: var(--red); }
.admin-sidebar a.active { background: var(--red-soft); color: var(--red); font-weight: 700; }
.admin-main { min-width: 0; }
.admin-panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; animation: fadeUp .5s cubic-bezier(.2,.7,.2,1) both; }
.admin-panel > h2 { font-size: 1.3rem; font-weight: 800; margin-bottom: 4px; }
.admin-panel > .panel-sub { color: var(--muted); font-size: .88rem; margin-bottom: 22px; }

/* 统计卡片 */
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 16px; padding: 20px; transition: all .3s ease; position: relative; overflow: hidden; }
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(230,57,70,.3); }
.stat-card .sc-ico { font-size: 1.6rem; margin-bottom: 10px; display: inline-block; }
.stat-card b { font-size: 1.9rem; font-weight: 800; display: block; line-height: 1.1; }
.stat-card span { color: var(--muted); font-size: .85rem; }
.stat-card::after { content: ""; position: absolute; right: -30px; top: -30px; width: 90px; height: 90px; border-radius: 50%; background: rgba(230,57,70,.06); }
.chart-box { height: 280px; margin-top: 8px; position: relative; }
.chart-title { font-weight: 700; margin-bottom: 6px; }

/* 表格 */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
table.table { width: 100%; border-collapse: collapse; min-width: 560px; }
.table th {
  text-align: left; padding: 14px 16px; font-size: .78rem; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid var(--line); background: var(--bg-soft);
}
.table td { padding: 13px 16px; border-bottom: 1px solid var(--line); font-size: .92rem; vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.table tr { transition: background .2s ease; }
.table tbody tr:hover { background: var(--bg-soft); }
.role-badge { padding: 3px 12px; border-radius: 999px; font-size: .75rem; font-weight: 700; }
.role-badge.admin { background: var(--red-soft); color: var(--red-dark); }
.role-badge.user { background: var(--badge-muted-bg); color: var(--muted); }
.mini-thumb { width: 56px; height: 40px; border-radius: 8px; object-fit: cover; background: var(--bg-soft); }

/* 占位模块 */
.placeholder-box { text-align: center; padding: 70px 20px; color: var(--muted); }
.placeholder-box .ph-ico { font-size: 3.2rem; margin-bottom: 16px; animation: floaty 3.4s ease-in-out infinite; display: inline-block; }
.placeholder-box h3 { color: var(--ink); font-size: 1.25rem; margin-bottom: 8px; }
.placeholder-box .dev-tag { display: inline-block; margin-top: 12px; padding: 4px 14px; border-radius: 999px; background: var(--red-soft); color: var(--red-dark); font-size: .8rem; font-weight: 700; }

/* ============================================================
   模态框 / 提示
   ============================================================ */
.modal-mask {
  position: fixed; inset: 0; z-index: 200;
  background: var(--scrim); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  animation: fadeIn .25s ease both;
}
.modal {
  width: 100%; max-width: 520px; max-height: 88vh; overflow-y: auto;
  background: var(--card); border-radius: 20px; padding: 30px 28px;
  box-shadow: var(--shadow-lg);
  animation: fadeUp .35s cubic-bezier(.2,.7,.2,1) both;
}
.modal h3 { font-size: 1.25rem; font-weight: 800; margin-bottom: 20px; }
.modal .modal-close { float: right; font-size: 1.3rem; color: var(--muted); transition: color .2s, transform .2s; }
.modal .modal-close:hover { color: var(--red); transform: rotate(90deg); }

.toast-wrap { position: fixed; top: 84px; left: 50%; transform: translateX(-50%); z-index: 300; display: flex; flex-direction: column; gap: 10px; align-items: center; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 10px;
  background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--red);
  border-radius: 12px; padding: 12px 20px; font-size: .92rem; font-weight: 500;
  box-shadow: var(--shadow-md); animation: fadeUp .35s cubic-bezier(.2,.7,.2,1) both;
}
.toast.success { border-left-color: #22c55e; }
.toast.error { border-left-color: var(--red-dark); }
.toast .t-ico { font-size: 1.1rem; }

/* 加载指示器 */
.loading-dots { display: flex; gap: 6px; justify-content: center; padding: 40px 0; }
.loading-dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--red); animation: bounceDot 1.2s ease-in-out infinite; }
.loading-dots span:nth-child(2) { animation-delay: .15s; }
.loading-dots span:nth-child(3) { animation-delay: .3s; }
@keyframes bounceDot { 0%,100% { transform: translateY(0); opacity: .4; } 50% { transform: translateY(-12px); opacity: 1; } }

/* 全屏加载遮罩 */
.page-loader { position: fixed; inset: 0; z-index: 400; background: var(--bg); display: flex; flex-direction: column; gap: 20px; align-items: center; justify-content: center; transition: opacity .5s ease; }
.page-loader.hide { opacity: 0; pointer-events: none; }
.page-loader .pl-logo { width: 60px; height: 60px; animation: breathe 1.6s ease-in-out infinite; }
.page-loader .pl-bar { width: 160px; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.page-loader .pl-bar i { display: block; height: 100%; width: 40%; border-radius: 4px; background: var(--red-grad); animation: slideX 1.2s ease-in-out infinite; }
@keyframes slideX { 0% { margin-left: -40%; } 100% { margin-left: 100%; } }

/* ============================================================
   页脚
   ============================================================ */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-soft); padding: 44px 0 36px; margin-top: 40px; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.1rem; }
.footer-slogan { color: var(--muted); font-size: .9rem; }
.footer-copy { color: var(--muted); font-size: .8rem; }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 960px) {
  .admin-wrap { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; display: flex; overflow-x: auto; gap: 6px; }
  .admin-sidebar .adm-title { display: none; }
  .admin-sidebar a { white-space: nowrap; }
  .detail-card { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .menu-toggle { display: flex; }
  .main-nav {
    position: fixed; top: 70px; left: 0; right: 0;
    flex-direction: column; gap: 4px; background: var(--bg);
    border-bottom: 1px solid var(--line); padding: 14px 6%;
    box-shadow: var(--shadow-md);
    transform: translateY(-16px); opacity: 0; pointer-events: none;
    transition: all .3s ease;
  }
  .main-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .main-nav a { padding: 14px 16px; }
  .main-nav a::after { display: none; }
  .hero { padding: 64px 0 48px; }
  .hero .stats-row { gap: 28px; }
  .works-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
  .detail-info { padding: 24px 20px; }
  .section { padding: 44px 0; }
  .container { width: 92%; }
}
/* ============================================================
   内联 SVG 图标系统对齐
   ============================================================ */
.ic { vertical-align: -0.125em; }
.work-card .type-tag { display: inline-flex; align-items: center; gap: 5px; }
.detail-info .type-pill { display: inline-flex; align-items: center; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; }
.card-actions button { display: inline-flex; align-items: center; gap: 5px; }
.modal .modal-close { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; }
.toast .t-ico { display: inline-flex; align-items: center; }
.placeholder-box .dev-tag { display: inline-flex; align-items: center; gap: 6px; }

.chart-title { display: inline-flex; align-items: center; gap: 6px; }
.detail-info .row-actions .btn { display: inline-flex; align-items: center; gap: 6px; }
.empty .empty-icon, .dropzone .dz-ico, .placeholder-box .ph-ico { display: flex; align-items: center; justify-content: center; }
.stat-card .sc-ico { display: inline-flex; align-items: center; }
/* ============================================================
   维护模式 / 内容模块（后台 + 首页）
   ============================================================ */
.panel-head-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.panel-head-row h2 { font-size: 1.3rem; font-weight: 800; margin-bottom: 4px; }
.panel-head-row .panel-sub { color: var(--muted); font-size: .88rem; }
.cell-desc { max-width: 260px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted); }
.cell-actions { white-space: nowrap; }
.cell-actions .btn { margin-right: 6px; }

/* 维护模式面板 */
.maint-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg-soft); margin-bottom: 22px; flex-wrap: wrap; }
.maint-info { display: flex; flex-direction: column; gap: 6px; }
.maint-info p { color: var(--ink-2); font-size: .9rem; }
.maint-badge { display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px; border-radius: 999px; font-size: .8rem; font-weight: 700; background: var(--badge-muted-bg); color: var(--muted); align-self: flex-start; }
.maint-badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.maint-badge.on { background: var(--red-soft); color: var(--red-dark); }
.maint-badge.on i { background: var(--red); animation: heartPop 1.1s ease-in-out infinite; }
.ip-tag { display: inline-block; padding: 2px 10px; border-radius: 8px; background: var(--red-soft); color: var(--red-dark); font-weight: 700; font-family: Consolas, Menlo, monospace; }
.maint-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.field label { display: flex; align-items: center; gap: 6px; }

/* 开关 */
.switch { position: relative; width: 54px; height: 30px; border-radius: 999px; background: var(--switch-bg); transition: background .3s ease; flex-shrink: 0; cursor: pointer; }
.switch .knob { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--card); box-shadow: 0 2px 6px rgba(0,0,0,.2); transition: transform .3s cubic-bezier(.2,.7,.2,1); }
.switch.on { background: var(--red-grad); box-shadow: 0 4px 14px rgba(230,57,70,.4); }
.switch.on .knob { transform: translateX(24px); }

/* 开关 + 标签（模态框内） */
.switch-field { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; font-size: .92rem; color: var(--ink-2); cursor: pointer; }
.switch-field input { width: 18px; height: 18px; accent-color: var(--red); cursor: pointer; }

/* 首页信息区 */
.home-info .ann-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.ann-item { display: flex; gap: 14px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); transition: all .3s ease; }
.ann-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(230,57,70,.3); }
.ann-item .ann-ico { width: 40px; height: 40px; border-radius: 12px; background: var(--red-soft); color: var(--red-dark); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ann-item b { display: block; margin-bottom: 4px; }
.ann-item p { color: var(--muted); font-size: .88rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ann-item time { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: .75rem; margin-top: 6px; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.info-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--card); transition: transform .3s ease, box-shadow .3s ease; }
.info-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.info-card-head { display: flex; align-items: center; gap: 8px; font-weight: 800; margin-bottom: 18px; color: var(--red-dark); }
.dev-list { display: flex; flex-direction: column; gap: 16px; }
.dev-item { display: flex; gap: 12px; align-items: flex-start; }
.dev-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--red-grad); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dev-item b { display: block; }
.dev-item span { color: var(--red); font-size: .8rem; font-weight: 600; }
.dev-item p { color: var(--muted); font-size: .85rem; margin-top: 4px; }
.hon-list { display: flex; flex-direction: column; gap: 14px; }
.hon-item { display: flex; gap: 12px; align-items: flex-start; }
.hon-ico { width: 38px; height: 38px; border-radius: 12px; background: var(--red-soft); color: var(--red-dark); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hon-item b { display: block; }
.hon-item .hon-meta { color: var(--muted); font-size: .78rem; }
.hon-item p { color: var(--muted); font-size: .85rem; margin-top: 3px; }

/* ---------- 头像图片（开发者圆形 / 光荣榜方形，无图回退默认图形） ---------- */
.dev-avatar.has-img { padding: 0; background: var(--bg-soft); overflow: hidden; }
.dev-avatar.has-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.hon-ico.has-img { padding: 0; overflow: hidden; background: var(--bg-soft); }
.hon-ico.has-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* 后台表格头像缩略图 */
.mini-thumb.ava-thumb { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.mini-thumb.ava-thumb.is-square { border-radius: 12px; }
.mini-none { color: var(--muted); opacity: .55; }

/* 弹窗内头像选择器 */
.avatar-row { display: flex; align-items: center; gap: 14px; }
.ava-pre {
  width: 62px; height: 62px; border-radius: 50%; flex-shrink: 0;
  background: var(--red-soft); color: var(--red);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.35rem;
  border: 1px solid var(--line); overflow: hidden;
}
.ava-pre.is-square { border-radius: 16px; }
.ava-pre img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }
.avatar-acts { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; min-width: 0; }
@media (max-width: 760px) { .info-grid { grid-template-columns: 1fr; } }
/* ============================================================
   TSZ 自定义鼠标皮肤（Q'zero 用户自制，默认右手版）
   光标文件位于 /assets/cursors/*.cur
   ============================================================ */
html, body {
  cursor: url('/assets/cursors/Pointer.cur'), auto;
}

/* 可点击区域 → 手型 Link.cur */
a, button, .btn, .btn-primary, .btn-ghost, .btn-outline-red, .btn-danger,
.like-btn, .work-card, .see-all, .switch, .switch-field, .menu-toggle,
.pagination button, .nav-item, [role="button"], summary,
input[type="checkbox"], input[type="radio"], label[for] {
  cursor: url('/assets/cursors/Link.cur'), pointer;
}

/* 文本输入 → I 形 Text.cur */
input[type="text"], input[type="password"], input[type="email"],
input[type="number"], input[type="url"], input[type="search"], input[type="tel"],
textarea, select, [contenteditable="true"] {
  cursor: url('/assets/cursors/Text.cur'), text;
}

/* 禁用 / 不可用 → Unavailiable.cur */
.disabled, :disabled, [disabled], .btn.disabled, .like-btn.disabled {
  cursor: url('/assets/cursors/Unavailiable.cur'), not-allowed;
}

/* 拖拽 / 移动 → Move.cur */
[draggable="true"], .move, .drag-handle {
  cursor: url('/assets/cursors/Move.cur'), move;
}

/* 抓取（可拖拽面板）→ Hand.cur */
.grab, .pan {
  cursor: url('/assets/cursors/Hand.cur'), grab;
}

/* 帮助 → Help.cur */
.help, [data-help] {
  cursor: url('/assets/cursors/Help.cur'), help;
}

/* 十字准星 → Cross.cur */
.crosshair {
  cursor: url('/assets/cursors/Cross.cur'), crosshair;
}

/* 复制 → Alt.cur */
.copy-cursor {
  cursor: url('/assets/cursors/Alt.cur'), copy;
}

/* ============================================================
   TSZ 鼠标平滑跟随（lerp 缓动拖动光圈）
   ============================================================ */
.tsz-cursor-trail {
  position: fixed;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(230, 57, 70, 0.65);
  background: rgba(230, 57, 70, 0.06);
  box-shadow: 0 0 12px rgba(230, 57, 70, 0.18), inset 0 0 8px rgba(230, 57, 70, 0.08);
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: width .2s ease, height .2s ease, opacity .3s ease, border-color .2s ease, box-shadow .2s ease;
}
.tsz-cursor-trail.show { opacity: 1; }
.tsz-cursor-trail.hovering {
  width: 56px;
  height: 56px;
  border-color: rgba(230, 57, 70, 0.9);
  background: rgba(230, 57, 70, 0.12);
  box-shadow: 0 0 18px rgba(230, 57, 70, 0.35), inset 0 0 10px rgba(230, 57, 70, 0.12);
}
@media (hover: none), (pointer: coarse) {
  .tsz-cursor-trail { display: none; }
}

/* ============================================================
   首次访问视频片头
   全屏黑底遮罩 + 自动播放视频，播放完淡出进入主页
   ============================================================ */
.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  opacity: 1;
  transition: opacity .6s ease;
}
.intro-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.intro-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.intro-skip {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 8px 20px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 8px;
  color: #fff;
  background: rgba(255, 255, 255, .08);
  font-size: .9rem;
  letter-spacing: 2px;
  cursor: pointer;
  transition: background .25s ease, border-color .25s ease;
}
.intro-skip:hover {
  background: rgba(255, 255, 255, .2);
  border-color: rgba(255, 255, 255, .6);
}
.intro-sound {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  padding: 9px 22px;
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 8px;
  color: #fff;
  background: rgba(255, 255, 255, .1);
  font-size: .95rem;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background .25s ease;
}
.intro-sound:hover { background: rgba(255, 255, 255, .22); }
@media (max-width: 480px) {
  .intro-skip { right: 10px; bottom: 10px; padding: 7px 14px; font-size: .8rem; }
}

/* ============================================================
   首页底部：下载 TSZ 客户端区块
   ============================================================ */
.dl-client { padding-top: 6px; }
.dl-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.3fr .85fr;
  gap: 34px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 40px 44px;
  box-shadow: var(--shadow-sm);
}
.dl-panel::before {
  content: '';
  position: absolute;
  right: -70px;
  bottom: -130px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230, 57, 70, .10), transparent 65%);
  pointer-events: none;
}
.dl-panel::after {
  content: '';
  position: absolute;
  left: -60px;
  top: -120px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230, 57, 70, .06), transparent 65%);
  pointer-events: none;
}
.dl-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 15px;
  border-radius: 999px;
  background: var(--red-soft);
  color: var(--red-dark);
  font-size: .8rem;
  font-weight: 600;
  border: 1px solid rgba(230, 57, 70, .15);
  margin-bottom: 16px;
}
.dl-info h2 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -.01em;
}
.dl-info h2 small {
  display: block;
  font-size: .9rem;
  font-weight: 500;
  color: var(--muted);
  margin-top: 4px;
  letter-spacing: 2px;
}
.dl-lead {
  color: var(--ink-2);
  max-width: 520px;
  margin: 14px 0 20px;
  line-height: 1.75;
}
.dl-chips { display: flex; flex-wrap: wrap; gap: 9px; }
.dl-chips span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: .8rem;
  color: var(--ink-2);
  font-weight: 600;
  white-space: nowrap;
}
.dl-chips svg { color: var(--red); flex-shrink: 0; }
.dl-side { display: flex; justify-content: center; }
.dl-box {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  text-align: center;
  background: var(--bg-soft);
  border: 1px dashed rgba(230, 57, 70, .28);
  border-radius: 18px;
  padding: 28px 30px 26px;
  min-width: 300px;
}
.dl-logo {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  background: var(--red-grad);
  color: #fff;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(230, 57, 70, .35);
  margin-bottom: 5px;
}
.dl-box b { font-size: 1.05rem; }
.dl-size { color: var(--muted); font-size: .8rem; }
.dl-btn { margin-top: 16px; width: 100%; }
.dl-note { color: var(--muted); font-size: .74rem; margin-top: 2px; }
@media (max-width: 900px) {
  .dl-panel { grid-template-columns: 1fr; padding: 30px 24px; gap: 24px; }
  .dl-box { min-width: 0; width: 100%; max-width: 420px; }
}

/* ============================================================
   首页底部：联系我们区块（mailto 按钮 + 仿邮件发送动画）
   ============================================================ */
.contact-sec { padding-top: 6px; }
.contact-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 40px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 40px 44px;
  box-shadow: var(--shadow-sm);
}
.contact-panel::before {
  content: '';
  position: absolute;
  right: -80px;
  bottom: -140px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230, 57, 70, .09), transparent 65%);
  pointer-events: none;
}
.contact-left { position: relative; z-index: 1; }
.contact-left h2 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -.01em;
}
.contact-left h2 small {
  display: block;
  font-size: .9rem;
  font-weight: 500;
  color: var(--muted);
  margin-top: 4px;
  letter-spacing: 2px;
}
.contact-mailbtn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.35;
  padding: 13px 28px;
  gap: 2px;
}
.contact-mailbtn em {
  font-style: normal;
  font-size: .72rem;
  font-weight: 500;
  opacity: .9;
  letter-spacing: .5px;
}
.contact-right { position: relative; z-index: 1; }

/* ---- 仿邮件发送动画（新邮件小窗口） ---- */
.mail-demo {
  max-width: 430px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  text-align: left;
}
.md-head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.md-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.d-red { background: #FF5F57; }
.d-yel { background: #FEBC2E; }
.d-grn { background: #28C840; }
.md-title { margin-left: 8px; font-size: .78rem; color: var(--muted); font-weight: 600; letter-spacing: 1px; }
.md-field {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 9px 14px;
  border-bottom: 1px dashed var(--line);
}
.md-field label {
  flex: none;
  width: 52px;
  font-size: .7rem;
  font-weight: 700;
  color: var(--red-dark);
  letter-spacing: 1px;
}
.md-line {
  flex: 1;
  font-size: .88rem;
  color: var(--ink);
  min-height: 1.2em;
  word-break: break-all;
}
.md-body { align-items: flex-start; }
.md-body .md-line { min-height: 3.2em; line-height: 1.7; }
.md-caret {
  display: inline-block;
  width: 1.5px;
  height: 1em;
  background: var(--red);
  vertical-align: -.12em;
  margin-left: 1px;
  animation: caretBlink .85s steps(1) infinite;
}
@keyframes caretBlink { 50% { opacity: 0; } }
.md-actions { display: flex; justify-content: flex-end; padding: 12px 14px 4px; }
.md-send {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, #FF5D6B 0%, #E63946 45%, #C1121F 100%);
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: 1px;
  box-shadow: 0 6px 14px rgba(230, 57, 70, .3);
  transition: transform .15s ease;
  user-select: none;
}
.md-send.clicked { transform: scale(.92); }
.md-send .md-spin {
  width: 12px;
  height: 12px;
  border: 2px solid rgba(255, 255, 255, .4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  display: inline-block;
}
.md-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 0;
  padding: 0 14px;
  opacity: 0;
  transition: opacity .3s ease, min-height .3s ease, padding .3s ease;
  color: var(--ink-2);
  font-size: .8rem;
  font-weight: 600;
}
.md-status.on { opacity: 1; min-height: 44px; padding: 4px 14px 14px; }
.md-spinner {
  width: 15px;
  height: 15px;
  border: 2px solid var(--red-soft);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: spin .8s linear infinite;
  display: none;
  flex: none;
}
.md-status.waiting .md-spinner { display: inline-block; }
.md-check {
  width: 34px;
  height: 34px;
  display: none;
  flex: none;
}
.md-status.done .md-check { display: block; }
.md-check circle,
.md-check path {
  fill: none;
  stroke: #22A06B;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (max-width: 900px) {
  .contact-panel { grid-template-columns: 1fr; padding: 30px 24px; gap: 26px; }
}

