/* ════════════════════════════════════════════════
   咕咕啦 GglaCraft · 浅粉+淡紫 可爱简洁风
   ════════════════════════════════════════════════
   ★ 所有可自定义项都集中在 :root 变量里：
     - 模块高度/间距：--hero-h、--pad-xxx
     - 配色：--c-primary 等（调试面板可一键换色）
   ════════════════════════════════════════════════ */

:root {
  /* ── 模块高度/间距（转 WP 后对应自定义面板选项）── */
  --hero-h: 92vh;          /* Hero 首屏最小高度 */
  --pad-status: 40px;      /* 状态栏 上下内边距 */
  --pad-features: 80px;    /* 特色 上下内边距 */
  --pad-news: 80px;        /* 公告 上下内边距 */
  --pad-gallery: 80px;     /* 截图 上下内边距 */
  --pad-join: 90px;        /* 加入我们 上下内边距 */
  --pad-notice: 70px;      /* 公告栏 上下内边距 */
  --feature-strip-h: 100vh; /* 特色区高度（默认全屏） */

  /* ── 可爱鼠标指针（粉色箭头 / 紫色爪爪）── */
  --cur-default: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26' viewBox='0 0 26 26'%3E%3Cpath d='M5 3 L21 13 L13.5 14.8 L11 22 Z' fill='%23F38BA8' stroke='%23ffffff' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E") 4 2, auto;
  --cur-pointer: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3E%3Cg fill='%23B197FC' stroke='%23ffffff' stroke-width='1.6'%3E%3Cellipse cx='15' cy='19.5' rx='6.2' ry='5.4'/%3E%3Cellipse cx='7.6' cy='12.4' rx='2.9' ry='3.5' transform='rotate(-18 7.6 12.4)'/%3E%3Cellipse cx='15' cy='9.8' rx='2.9' ry='3.7'/%3E%3Cellipse cx='22.4' cy='12.4' rx='2.9' ry='3.5' transform='rotate(18 22.4 12.4)'/%3E%3C/g%3E%3C/svg%3E") 15 15, pointer;

  /* ── 配色（默认：浅粉 + 淡紫）── */
  --c-primary: #F38BA8;        /* 浅粉 */
  --c-primary-dark: #DE6C92;
  --c-primary-light: #FCE7F0;
  --c-accent: #B197FC;         /* 淡紫 */
  --c-accent-light: #EFEAFE;
  --c-bg: #FDF6F9;
  --c-card: #FFFFFF;
  --c-text: #574A53;
  --c-muted: #A89AA3;
  --c-border: #F6E4EC;

  /* ── 通用 ── */
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 10px 30px rgba(180, 120, 150, .12);
  --shadow-hover: 0 16px 40px rgba(180, 120, 150, .20);
  --font: "ZCOOL KuaiLe", "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* 配色预设 */
body[data-theme="green"]  { --c-primary:#7BC96F; --c-primary-dark:#5FA853; --c-primary-light:#E7F6E3; --c-accent:#FF8FAB; --c-accent-light:#FFE8EF; --c-bg:#FAF6EE; --c-text:#4A4039; --c-muted:#9A8F85; --c-border:#F0E8DC; --shadow:0 10px 30px rgba(122,96,66,.10); --shadow-hover:0 16px 40px rgba(122,96,66,.16); }
body[data-theme="blue"]   { --c-primary:#4DABF7; --c-primary-dark:#3393E8; --c-primary-light:#E3F1FE; --c-accent:#FF8FAB; --c-accent-light:#FFE8EF; --c-bg:#F5FAFE; --c-text:#3E4A57; --c-muted:#8FA0AF; --c-border:#DCEBF7; --shadow:0 10px 30px rgba(80,130,180,.12); --shadow-hover:0 16px 40px rgba(80,130,180,.2); }
body[data-theme="purple"] { --c-primary:#9775FA; --c-primary-dark:#7E5AF0; --c-primary-light:#EFEAFE; --c-accent:#FFB84D; --c-accent-light:#FFF3E0; --c-bg:#F9F7FE; --c-text:#4A4457; --c-muted:#9B93AF; --c-border:#E8E2F6; --shadow:0 10px 30px rgba(120,100,180,.12); --shadow-hover:0 16px 40px rgba(120,100,180,.2); }

/* ── 基础重置 ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; } /* 修复：弹窗的 display:flex 会覆盖 hidden 属性导致透明遮罩挡点击 */
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--c-text);
  background: var(--c-bg);
  /* 淡淡的波点底纹，可爱但不乱 */
  background-image: radial-gradient(rgba(180, 120, 150, .06) 2px, transparent 2px);
  background-size: 26px 26px;
  line-height: 1.7;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input { font-family: inherit; }
.container { width: min(1120px, 92%); margin: 0 auto; }
.module { transition: padding .25s ease, min-height .25s ease; }

/* ── 可爱鼠标指针应用 ── */
body { cursor: var(--cur-default); }
a, button, .feature-panel, .album-photo, .album-tab, .album-page-btn, .auth-tab, .color-preset, label, input[type="range"] {
  cursor: var(--cur-pointer);
}
input[type="text"], input[type="password"], input[type="email"] { cursor: text; }

/* ── 通用按钮 ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 15px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  user-select: none;
}
.btn:active { transform: scale(.96); }
.btn-primary {
  background: var(--c-primary); color: #fff;
  box-shadow: 0 6px 0 var(--c-primary-dark), var(--shadow);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 9px 0 var(--c-primary-dark), var(--shadow-hover); }
.btn-primary:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--c-primary-dark); }
.btn-ghost {
  background: rgba(255,255,255,.75); color: var(--c-text);
  border: 2px dashed var(--c-primary);
}
.btn-ghost:hover { background: #fff; transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.btn-white { background: #fff; color: var(--c-text); box-shadow: var(--shadow); }
.btn-white:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.btn-lg { padding: 14px 34px; font-size: 18px; }
.btn-block { width: 100%; padding: 13px; font-size: 17px; }

/* ═══════════ 顶部导航 ═══════════ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding: 14px 0;
  transition: background .25s ease, box-shadow .25s ease, padding .25s ease;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(180, 120, 150, .10);
  padding: 8px 0;
}
.header-inner { display: flex; align-items: center; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 22px; }
/* Logo 为透明底 PNG：不加阴影、不裁圆角、不做任何边缘处理 */
.logo-img {
  height: 46px; width: auto; display: block;
  transition: transform .3s ease;
}
.logo:hover .logo-img { transform: scale(1.06); }
.main-nav { display: flex; gap: 6px; margin-left: auto; }
.nav-link {
  padding: 8px 16px; border-radius: 999px; font-size: 15px;
  transition: background .18s ease, color .18s ease;
}
.nav-link:hover { background: var(--c-primary-light); color: var(--c-primary-dark); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; font-size: 22px; padding: 4px 10px; }

/* ═══════════ 模块① Hero ═══════════ */
.module-hero {
  position: relative;
  min-height: var(--hero-h);
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  background: linear-gradient(160deg, var(--c-primary-light) 0%, var(--c-accent-light) 55%, #FFFDFE 100%);
  overflow: hidden;
  padding: 120px 0 90px;
}
.hero-inner { position: relative; z-index: 2; }
.hero-badge {
  display: inline-block;
  background: #fff; color: var(--c-primary-dark);
  padding: 8px 20px; border-radius: 999px;
  font-size: 14px;
  box-shadow: var(--shadow);
  border: 2px dashed var(--c-primary);
  margin-bottom: 22px;
  animation: bob 3s ease-in-out infinite;
}
.hero-title { font-size: clamp(40px, 7vw, 72px); line-height: 1.25; letter-spacing: 2px; }
.hero-title-accent {
  background: linear-gradient(120deg, var(--c-primary), var(--c-accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  position: relative; display: inline-block;
  padding: 0 6px;
}
.hero-en { color: var(--c-accent); letter-spacing: 8px; font-size: clamp(14px, 2vw, 18px); margin-top: 4px; }
.hero-subtitle { font-size: clamp(16px, 2.2vw, 20px); color: var(--c-muted); margin: 18px 0 30px; }

.hero-ip {
  display: inline-flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center;
  background: var(--c-card);
  border-radius: 999px;
  padding: 10px 12px 10px 24px;
  box-shadow: var(--shadow);
  border: 2px solid var(--c-border);
  margin-bottom: 32px;
}
.hero-ip-label { font-size: 13px; color: var(--c-muted); }
.hero-ip-addr { font-size: 19px; color: var(--c-primary-dark); font-family: inherit; letter-spacing: 1px; }
.btn-copy { background: var(--c-primary-light); color: var(--c-primary-dark); padding: 8px 18px; font-size: 14px; }
.btn-copy:hover { background: var(--c-primary); color: #fff; }
.btn-copy.copied { background: var(--c-primary); color: #fff; }

.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* 漂浮装饰 */
.hero-deco { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.float-block {
  position: absolute;
  font-size: 34px;
  filter: drop-shadow(0 6px 8px rgba(0,0,0,.08));
  animation: floaty 5s ease-in-out infinite;
  opacity: .9;
}
.fb-1 { top: 18%; left: 10%; animation-delay: 0s; }
.fb-2 { top: 24%; right: 12%; animation-delay: .8s; font-size: 30px; }
.fb-3 { top: 60%; left: 16%; animation-delay: 1.6s; font-size: 26px; }
.fb-4 { top: 66%; right: 18%; animation-delay: .4s; }
.fb-5 { top: 40%; left: 5%; animation-delay: 2.2s; font-size: 28px; }
.fb-6 { top: 12%; right: 32%; animation-delay: 1.2s; font-size: 40px; opacity: .7; }
@keyframes floaty { 0%,100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-16px) rotate(4deg); } }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

.hero-wave { position: absolute; bottom: -2px; left: 0; width: 100%; height: 90px; z-index: 1; }
.hero-wave path { fill: var(--c-bg); }

/* ═══════════ 模块② 状态栏 ═══════════ */
.module-status { padding: var(--pad-status) 0; }
.status-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.status-card {
  background: var(--c-card);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex; align-items: center; gap: 16px;
  box-shadow: var(--shadow);
  border: 2px solid var(--c-border);
  transition: transform .2s ease, box-shadow .2s ease;
}
.status-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.status-dot {
  width: 16px; height: 16px; border-radius: 50%;
  background: #CCC; flex-shrink: 0;
  position: relative;
}
.status-dot.online { background: #69DB7C; }
.status-dot.offline { background: #FF8789; }
.status-dot.online::after {
  content: ""; position: absolute; inset: -6px;
  border-radius: 50%;
  border: 3px solid #69DB7C;
  opacity: .4;
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse { 0% { transform: scale(.6); opacity: .6; } 100% { transform: scale(1.3); opacity: 0; } }
.status-emoji { font-size: 28px; }
.status-num { font-size: 24px; color: var(--c-primary-dark); display: block; line-height: 1.2; }
.status-num small { font-size: 14px; color: var(--c-muted); margin-left: 2px; }
.status-num.status-text { font-size: 17px; line-height: 1.35; }
.status-num.restricted { font-size: 17px; color: var(--c-muted); }
.status-label { font-size: 13px; color: var(--c-muted); }

/* ═══════════ 通用区块标题 ═══════════ */
.section-head { text-align: center; margin-bottom: 44px; }
.section-title {
  font-size: clamp(28px, 4vw, 38px); display: inline-block; position: relative;
}
.section-title::after {
  content: ""; display: block; margin: 6px auto 0;
  width: 60%; height: 8px; border-radius: 999px;
  background: var(--c-primary-light);
  border-bottom: 3px dashed var(--c-primary);
}
.section-sub { color: var(--c-muted); margin-top: 12px; font-size: 15px; }

/* ═══════════ 模块③ 特色（全屏横向 · 斜切面板 · 悬停展开 · 点击音效） ═══════════ */
.module-features { padding: 0; }
.feature-strip {
  height: var(--feature-strip-h);
  min-height: 520px;
  position: relative;
  overflow: hidden;
}
/* 滑动轨道：装全部面板，translateX 平移切换 */
.feature-track {
  display: flex;
  height: 100%;
  transition: transform .55s cubic-bezier(.32,.72,.24,1);
  will-change: transform;
}
/* 悬浮标题（靠上不遮挡面板内容） */
.feature-strip-head {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%); z-index: 10;
  text-align: center;
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(8px);
  padding: 8px 26px; border-radius: 999px;
  box-shadow: var(--shadow);
  white-space: nowrap;
}
.feature-strip-head .section-title { font-size: 24px; }
.feature-strip-head .section-title::after { display: none; }
.feature-strip-head p { font-size: 13px; color: var(--c-muted); margin-top: 2px; }

/* 斜切面板：左右边缘呈 "/" 形，负边距让斜边无缝衔接 */
/* 宽度 = 28% 条带宽（4个面板 + 3个4%重叠恰好占满全屏），数量超4个时通过箭头滑动查看 */
.feature-panel {
  flex: 0 0 calc(var(--strip-w, 100vw) * 0.28);
  min-width: 0;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
  margin-left: calc(var(--strip-w, 100vw) * -0.04);
}
.feature-panel:first-child { margin-left: 0; clip-path: polygon(0 0, 100% 0, 92% 100%, 0 100%); }
.feature-panel:last-child  { clip-path: polygon(8% 0, 100% 0, 100% 100%, 0 100%); }
/* 悬停：微微提亮并提升层级（宽度固定，不再挤压其他面板） */
.feature-panel:hover { z-index: 3; }
.feature-panel:hover .fp-bg { filter: brightness(1.07); }

/* 斜切分界线（沿左斜边的一条白色 "/"） */
.feature-panel + .feature-panel::after {
  content: ""; position: absolute; inset: 0; z-index: 6;
  background: rgba(255,255,255,.95);
  clip-path: polygon(8% 0, calc(8% + 6px) 0, 6px 100%, 0 100%);
  pointer-events: none;
}

/* 面板背景图（WP 版换成自定义图片） */
.fp-bg {
  position: absolute; inset: 0;
  background-image: var(--fp-bg);
  background-size: cover; background-position: center;
  transform: scale(1.08) translateX(calc(var(--px, 0) * 18px));
  transition: transform .25s ease-out, filter .25s ease-out;
}
/* 面板背景：现在由 JS 按数据内联 --fp-bg（WP 版来自主题设置的 RGB 调色/图片） */

.fp-content {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; color: #fff;
  padding: 0 16%;
  text-shadow: 0 3px 12px rgba(0,0,0,.35);
}
.fp-emoji {
  font-size: clamp(44px, 5vw, 72px);
  margin-bottom: 12px;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,.25));
  transform: translate(calc(var(--px, 0) * 16px), calc(var(--py, 0) * 16px));
  transition: transform .25s ease-out;
}
.fp-content h3 { font-size: clamp(22px, 2.4vw, 34px); white-space: nowrap; }
.fp-desc {
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height .5s ease, opacity .5s ease, margin .5s ease;
  font-size: 15px; line-height: 1.8;
}
.feature-panel:hover .fp-desc { max-height: 140px; opacity: 1; margin-top: 12px; }
.fp-hint {
  margin-top: 14px; font-size: 13px;
  background: rgba(255,255,255,.28);
  border: 1px solid rgba(255,255,255,.5);
  padding: 6px 18px; border-radius: 999px;
  white-space: nowrap;
}

/* 特色面板：点击展开占满全屏
   用 fixed 定位 + JS 内联矩形（top/left/width/height）从当前位置过渡到全屏，
   与滑动轨道完全解耦，任何位置的面板都能可靠拉伸全屏 */
.feature-panel.expanded {
  position: fixed;
  margin-left: 0;
  clip-path: none;
  z-index: 150;   /* 高于顶栏(100)，低于大图弹窗(220) */
  cursor: var(--cur-default);
  transition: top .55s cubic-bezier(.32,.72,.24,1),
              left .55s cubic-bezier(.32,.72,.24,1),
              width .55s cubic-bezier(.32,.72,.24,1),
              height .55s cubic-bezier(.32,.72,.24,1),
              clip-path .55s cubic-bezier(.32,.72,.24,1);
}
.feature-panel.expanded::after { display: none; }
/* 展开时：小内容快速淡出 */
.feature-panel.expanded .fp-content { opacity: 0; pointer-events: none; transition: opacity .18s ease; }
/* 收起时：小内容等面板回到原位后再淡入（避免收缩过程中内容被挤压可见） */
.fp-content { transition: opacity .35s ease .28s; }

/* 展开后右缘收起条 */
.fp-close {
  position: absolute; top: 50%; right: 0; transform: translateY(-50%);
  z-index: 8; width: 46px; height: 96px;
  border: 0; border-radius: 24px 0 0 24px;
  background: rgba(255,255,255,.92); color: var(--c-primary-dark);
  font-size: 26px;
  opacity: 0; pointer-events: none; transition: opacity .3s ease;
}
.feature-panel.expanded .fp-close { opacity: 1; pointer-events: auto; }

/* 展开后的详情内容：文字 + 图片（WP版在主题设置中编辑，可自定义图标/文案/音效/RGB底色/图片组） */
/* 注意：收起时立即快速消失（无延迟），否则内容会被收缩的面板挤压可见 */
.fp-detail {
  position: absolute; inset: 0; z-index: 4;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; color: #fff;
  padding: 90px 12% 50px;
  text-shadow: 0 3px 12px rgba(0,0,0,.35);
  overflow-y: auto;
  opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity .15s ease, transform .15s ease;   /* 收起：立刻隐去 */
}
/* 展开：等面板拉伸到位后再延迟淡入 */
.feature-panel.expanded .fp-detail {
  opacity: 1; transform: none; pointer-events: auto;
  transition: opacity .4s ease .22s, transform .4s ease .22s;
}

/* ═══ 展开/收起动画期间：锁死悬停、视差与漂浮动画，避免多面板对撞掉帧 ═══ */
.feature-strip.animating .feature-panel { pointer-events: none; }
.feature-strip.animating .fp-bg,
.feature-strip.animating .fp-emoji { transition: none; transform: none; }
.feature-strip.animating .fp-detail-icon,
.feature-strip.animating .fp-emoji { animation: none; }
/* 展开状态下其他面板不可交互（被压在底层，挡住误触） */
.feature-strip.has-expanded .feature-panel:not(.expanded) { pointer-events: none; }

/* ═══ 边缘滑动箭头：透明圆形图标，鼠标移到左/右边缘时浮现（无文字） ═══ */
.strip-arrow {
  position: absolute; top: 50%; transform: translateY(-50%) scale(.8);
  z-index: 9;
  width: 58px; height: 58px; border-radius: 50%;
  background: rgba(255,255,255,.3);
  backdrop-filter: blur(8px);
  border: 2px solid rgba(255,255,255,.6);
  color: #fff; font-size: 36px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  padding: 0 0 4px;   /* 视觉居中修正 */
  cursor: pointer;
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease, transform .25s ease, background .2s ease;
  box-shadow: 0 8px 22px rgba(90,70,110,.28);
  text-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.strip-prev { left: 16px; }
.strip-next { right: 16px; }
/* 鼠标进入边缘区域且该方向还有面板时浮现 */
.feature-strip.show-prev:not(.at-start) .strip-prev,
.feature-strip.show-next:not(.at-end) .strip-next {
  opacity: 1; pointer-events: auto;
  transform: translateY(-50%) scale(1);
}
.strip-arrow:hover { background: rgba(255,255,255,.55); transform: translateY(-50%) scale(1.1); }
/* 面板展开时隐藏箭头 */
.feature-strip.has-expanded .strip-arrow { opacity: 0 !important; pointer-events: none !important; }
.fp-detail-icon {
  font-size: clamp(50px, 6vw, 84px);
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.3));
  animation: bob 2.5s ease-in-out infinite;
}
.fp-detail h3 { font-size: clamp(26px, 3vw, 40px); margin: 10px 0 14px; }
.fp-detail-text { font-size: clamp(15px, 1.3vw, 18px); line-height: 1.9; max-width: 720px; }
.fp-gallery { display: flex; gap: 16px; margin-top: 26px; flex-wrap: wrap; justify-content: center; }
.fp-shot {
  width: clamp(150px, 18vw, 260px); aspect-ratio: 16 / 10;
  border-radius: 16px;
  border: 3px solid rgba(255,255,255,.85);
  background: rgba(255,255,255,.25);
  box-shadow: 0 10px 26px rgba(0,0,0,.18);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 44px; line-height: 1;
  cursor: zoom-in;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.fp-shot:hover { transform: translateY(-5px) scale(1.05); box-shadow: 0 16px 34px rgba(0,0,0,.28); }
.fp-shot img { width: 100%; height: 100%; object-fit: cover; }
.fp-detail-hint { margin-top: 24px; font-size: 13px; opacity: .85; }

/* ═══════════ 模块④ 公告 ═══════════ */
.module-news { padding: var(--pad-news) 0; background: var(--c-primary-light); border-radius: 60px 60px 0 0; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.news-card {
  background: var(--c-card);
  border-radius: var(--radius);
  padding: 0 0 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 2px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  display: flex; flex-direction: column; gap: 8px;
}
.news-card > :not(.news-thumb) { margin-left: 24px; margin-right: 24px; }
.news-card.hide { display: none; }
/* 分类切换按钮：WP 版按主题设置勾选的分类自动生成 */
.news-tabs { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 30px; }
.news-tab {
  padding: 8px 22px; border-radius: 999px;
  border: 2px solid var(--c-border);
  background: var(--c-card); font-size: 14px; color: var(--c-muted);
  transition: all .2s ease;
}
.news-tab:hover { border-color: var(--c-primary); color: var(--c-primary-dark); }
.news-tab.active {
  background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
  color: #fff; border-color: transparent;
}
/* 特色图片（WP版读取文章的特色图片，这里是渐变占位） */
.news-thumb {
  height: 150px; margin-bottom: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 54px;
}
.nt-1 { background: linear-gradient(135deg, #FFF3BF, #FFD43B); }
.nt-2 { background: linear-gradient(135deg, #D3F9D8, #69DB7C); }
.nt-3 { background: linear-gradient(135deg, #FFE3E3, #FFA8A8); }
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: var(--c-primary); }
.news-tag {
  align-self: flex-start;
  font-size: 12px; padding: 3px 12px; border-radius: 999px; color: #fff;
}
.tag-new    { background: var(--c-accent); }
.tag-update { background: var(--c-primary); }
.tag-notice { background: #FAB005; }
.news-date { font-size: 12px; color: var(--c-muted); }
.news-title { font-size: 18px; line-height: 1.5; }
.news-excerpt { font-size: 14px; color: var(--c-muted); flex: 1; }
.news-more { font-size: 14px; color: var(--c-primary-dark); margin-top: 6px; }
.news-more:hover { letter-spacing: 1px; }

/* ═══════════ 模块③ 公告栏（独立公告，标题+摘要列表 + 详情弹窗） ═══════════ */
/* 底部留出更大间距，与全屏特色区拉开距离感 */
.module-notice { padding: var(--pad-notice) 0 calc(var(--pad-notice) * 1.6); }
.notice-list {
  max-width: 860px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 14px;
}
.notice-item {
  display: flex; align-items: center; gap: 16px;
  width: 100%;
  padding: 16px 22px;
  background: var(--c-card);
  border: 2px solid var(--c-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  text-align: left;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.notice-item:hover {
  transform: translateX(6px);
  border-color: var(--c-primary);
  box-shadow: var(--shadow-hover);
}
.notice-item-tag {
  flex-shrink: 0;
  font-size: 12px; font-weight: 700;
  padding: 4px 12px; border-radius: 999px;
  background: var(--c-accent-light); color: var(--c-accent-dark);
}
.notice-item.pin .notice-item-tag {
  background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
  color: #fff;
}
.notice-item-main { flex: 1; min-width: 0; }
.notice-item-main strong { display: block; font-size: 16px; color: var(--c-text); margin-bottom: 3px; }
.notice-item-main small {
  display: block; font-size: 13px; color: var(--c-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.notice-item-date { flex-shrink: 0; font-size: 13px; color: var(--c-muted); }
.notice-item-more {
  flex-shrink: 0;
  font-size: 14px; font-weight: 700; color: var(--c-primary-dark);
  opacity: 0; transform: translateX(-6px);
  transition: all .22s ease;
}
.notice-item:hover .notice-item-more { opacity: 1; transform: none; }

/* 「查看全部」按钮 */
.notice-all-wrap { text-align: center; margin-top: 28px; }

/* 全部公告存档弹层（层级低于详情弹窗，点条目时详情在其上层打开） */
.notice-all-overlay { z-index: 230; }
.notice-all-modal { width: min(760px, 94vw); }
.notice-all-list { display: flex; flex-direction: column; gap: 12px; }

/* 存档弹窗搜索框 */
.notice-search {
  width: 100%;
  margin-top: 14px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 2px solid var(--c-border);
  background: var(--c-bg);
  font-family: inherit; font-size: 14px; color: var(--c-text);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.notice-search:focus {
  border-color: var(--c-primary);
  box-shadow: 0 0 0 4px var(--c-primary-light);
}
.notice-search::placeholder { color: var(--c-muted); }

/* 存档弹窗分页器（复用回忆册按钮样式） */
.notice-all-pager {
  display: flex; align-items: center; justify-content: center;
  gap: 16px;
  padding: 14px 20px 22px;
  border-top: 2px dashed var(--c-border);
}
/* 搜索无结果 */
.notice-empty { text-align: center; color: var(--c-muted); font-size: 15px; padding: 34px 0; }

/* 公告详情弹窗 */
.notice-overlay {
  position: fixed; inset: 0; z-index: 235;
  background: rgba(87, 74, 83, .45);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.notice-overlay.show { opacity: 1; visibility: visible; }
.notice-modal {
  width: min(680px, 92vw);
  max-height: 84vh;
  display: flex; flex-direction: column;
  background: var(--c-card);
  border-radius: var(--radius);
  border: 2px solid var(--c-border);
  box-shadow: 0 24px 60px rgba(222,108,146,.35);
  position: relative;
  transform: translateY(14px) scale(.96);
  transition: transform .25s ease;
}
.notice-overlay.show .notice-modal { transform: none; }
.notice-close {
  position: absolute; top: -14px; right: -14px; z-index: 2;
  width: 38px; height: 38px; border-radius: 50%;
  border: 2px solid var(--c-border);
  background: var(--c-card); color: var(--c-muted);
  font-size: 15px; box-shadow: var(--shadow);
  transition: all .2s ease;
}
.notice-close:hover { color: var(--c-primary-dark); border-color: var(--c-primary); transform: rotate(90deg); }
.notice-head { padding: 30px 34px 18px; border-bottom: 2px dashed var(--c-border); }
.notice-modal-tag {
  display: inline-block;
  font-size: 12px; font-weight: 700;
  padding: 4px 12px; border-radius: 999px;
  background: linear-gradient(135deg, var(--c-primary-light), var(--c-accent-light));
  color: var(--c-primary-dark);
  margin-bottom: 10px;
}
.notice-head h3 { font-size: 24px; line-height: 1.4; }
.notice-modal-date { font-size: 13px; color: var(--c-muted); margin-top: 6px; }
.notice-body {
  padding: 22px 34px 34px;
  overflow-y: auto;
  font-size: 15px; line-height: 1.9; color: var(--c-text);
}
.notice-body p { margin-bottom: 12px; }
.notice-body strong { color: var(--c-primary-dark); }
/* 公告弹窗内容：大图/媒体自动缩放，始终收在弹窗边框内 */
.notice-body img,
.notice-body video { max-width: 100%; height: auto; border-radius: var(--radius-sm); }
.notice-body iframe { max-width: 100%; }
.notice-body figure,
.notice-body .wp-block-image,
.notice-body .wp-caption { max-width: 100% !important; }
.notice-body .alignwide,
.notice-body .alignfull { width: 100% !important; max-width: 100% !important; margin-left: 0 !important; margin-right: 0 !important; }
.notice-body table,
.notice-body pre { max-width: 100%; overflow-x: auto; }

/* ═══════════ 模块⑤ 游戏截图 · 回忆册（分类标签 + 分页） ═══════════ */
.module-gallery { padding: var(--pad-gallery) 0; }

/* ── 分类标签（手账胶带风胶囊按钮，WP版：主题设置维护分类与排序） ── */
.album-tabs {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 12px; margin-bottom: 38px;
}
.album-tab {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--c-card);
  border: 2px solid var(--c-border);
  font-size: 15px; font-weight: 700; color: var(--c-muted);
  box-shadow: var(--shadow);
  transition: all .22s ease;
}
.album-tab:hover {
  transform: translateY(-2px) rotate(-1deg);
  color: var(--c-primary-dark); border-color: var(--c-primary);
}
.album-tab.active {
  background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
  color: #fff; border-color: transparent;
  box-shadow: 0 8px 18px rgba(243,139,168,.4);
  transform: rotate(-1.5deg);
}
.album-tab-count {
  font-size: 11px; font-weight: 700;
  background: rgba(255,255,255,.35);
  border-radius: 999px; padding: 1px 8px;
}
.album-tab:not(.active) .album-tab-count {
  background: var(--c-primary-light); color: var(--c-primary-dark);
}

/* ── 照片网格：拍立得回忆册风（白边相纸 + 和纸胶带 + 手写备注） ── */
.album-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px 22px;
}
.album-grid.switching { animation: albumIn .35s ease; }
@keyframes albumIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.album-photo {
  background: #fff;
  padding: 10px 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(222,108,146,.15);
  box-shadow: 0 6px 18px rgba(222,108,146,.18), 0 2px 4px rgba(87,74,83,.08);
  position: relative;
  cursor: pointer;
  transition: transform .28s ease, box-shadow .28s ease;
}
/* 交错倾斜：手账随意感 */
.album-photo:nth-child(4n+1) { transform: rotate(-2deg); }
.album-photo:nth-child(4n+2) { transform: rotate(1.4deg); }
.album-photo:nth-child(4n+3) { transform: rotate(-1.2deg); }
.album-photo:nth-child(4n+4) { transform: rotate(2deg); }
.album-photo:hover {
  transform: rotate(0) translateY(-6px) scale(1.04);
  box-shadow: var(--shadow-hover);
  z-index: 2;
}
/* 顶部和纸胶带 */
.album-tape {
  position: absolute; top: -11px; left: 50%; z-index: 1;
  width: 74px; height: 22px;
  transform: translateX(-50%) rotate(-2deg);
  background: linear-gradient(135deg, rgba(243,139,168,.55), rgba(197,139,242,.55));
  border-radius: 3px;
  box-shadow: 0 2px 5px rgba(0,0,0,.08);
  opacity: .88;
}
.album-photo:nth-child(even) .album-tape {
  transform: translateX(-50%) rotate(3deg);
  background: linear-gradient(135deg, rgba(165,216,255,.6), rgba(153,233,242,.6));
}
/* 相片区 */
.album-thumb {
  height: 150px;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  background: #f6eef2;
}
.album-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.album-ph-emoji { font-size: 44px; }
/* 「全部」视图下照片左上角的分类小标签 */
.album-cat-tag {
  position: absolute; top: 6px; left: 6px; z-index: 1;
  font-size: 11px; font-weight: 700;
  padding: 2px 9px; border-radius: 999px;
  background: rgba(255,255,255,.9);
  color: var(--c-primary-dark);
  box-shadow: 0 2px 6px rgba(0,0,0,.12);
}
/* 手写风备注 */
.album-photo figcaption { text-align: center; padding-top: 10px; }
.album-photo figcaption strong { display: block; font-size: 15px; color: var(--c-text); }
.album-photo figcaption small { font-size: 12px; color: var(--c-muted); }

/* 占位"截图"渐变（WP 版换成主题设置中上传的图片） */
.gi-1  { background: linear-gradient(135deg, #FFC9DE, #FFB3C6); }
.gi-2  { background: linear-gradient(135deg, #B5E3A8, #8FD07F); }
.gi-3  { background: linear-gradient(135deg, #A5D8FF, #74C0FC); }
.gi-4  { background: linear-gradient(135deg, #99E9F2, #66D9E8); }
.gi-5  { background: linear-gradient(135deg, #D8F5A2, #B2D8B2); }
.gi-6  { background: linear-gradient(135deg, #D0BFFF, #B197FC); }
.gi-7  { background: linear-gradient(135deg, #FFE8A3, #FFC078); }
.gi-8  { background: linear-gradient(135deg, #FFF3B0, #FFD43B); }
.gi-9  { background: linear-gradient(135deg, #C5F6FA, #3BC9DB); }
.gi-10 { background: linear-gradient(135deg, #FFC9A8, #FF8A5C); }
.gi-11 { background: linear-gradient(135deg, #B2F2BB, #69DB7C); }
.gi-12 { background: linear-gradient(135deg, #E5DBFF, #7048E8); }
.gi-13 { background: linear-gradient(135deg, #FFDEEB, #F783AC); }
.gi-14 { background: linear-gradient(135deg, #FFE3E3, #FA5252); }
.gi-15 { background: linear-gradient(135deg, #D3F9D8, #51CF66); }
.gi-16 { background: linear-gradient(135deg, #D0EBFF, #339AF0); }
.gi-17 { background: linear-gradient(135deg, #F3D9FA, #DA77F2); }
.gi-18 { background: linear-gradient(135deg, #FFF0F6, #FAA2C1); }
/* 占位图像素纹理：让预览渐变图放大时看得出变化（WP版真实图片无 ph 类，不受影响） */
.ph::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(45deg, rgba(255,255,255,.07) 25%, transparent 25%, transparent 75%, rgba(255,255,255,.07) 75%),
    linear-gradient(45deg, rgba(255,255,255,.07) 25%, transparent 25%, transparent 75%, rgba(255,255,255,.07) 75%);
  background-size: 34px 34px;
  background-position: 0 0, 17px 17px;
}

/* ── 分页器 ── */
.album-pager {
  display: flex; align-items: center; justify-content: center;
  gap: 18px; margin-top: 38px;
}
.album-page-btn {
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--c-card);
  border: 2px solid var(--c-border);
  font-size: 14px; font-weight: 700; color: var(--c-primary-dark);
  box-shadow: var(--shadow);
  transition: all .2s ease;
}
.album-page-btn:hover:not(:disabled) {
  background: var(--c-primary); color: #fff; border-color: transparent;
  transform: translateY(-2px);
}
.album-page-btn:disabled { opacity: .4; cursor: not-allowed; }
.album-page-info { font-size: 14px; font-weight: 700; color: var(--c-muted); }

/* ═══════════ 宣传视频弹窗 ═══════════ */
.video-overlay {
  position: fixed; inset: 0; z-index: 215;
  background: rgba(43, 34, 40, .82);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; transition: opacity .25s ease;
}
.video-overlay.show { opacity: 1; }
.video-modal {
  /* 宽度按视口高度换算：16:9 画面高度≈2/3 屏高；1400px 防止超大屏过宽，94vw 适配窄屏 */
  width: min(1400px, 118vh, 94vw);
  position: relative;
  transform: scale(.92);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
.video-overlay.show .video-modal { transform: scale(1); }
.video-frame {
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  overflow: hidden;
  background: #000;
  border: 4px solid #fff;
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
}
.video-frame iframe, .video-frame video {
  width: 100%; height: 100%;
  border: 0; display: block;
}
.video-head {
  color: #fff; text-align: center;
  font-size: 18px; letter-spacing: 2px;
  margin-bottom: 14px;
  text-shadow: 0 2px 8px rgba(0,0,0,.5);
}
.video-empty {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px;
  color: rgba(255,255,255,.85); font-size: 16px;
  background: radial-gradient(circle at 50% 40%, #3a2f36, #221b20);
}
.video-empty small { color: rgba(255,255,255,.5); font-size: 13px; }
.video-close {
  position: absolute; top: -18px; right: -18px; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--c-primary); color: #fff;
  font-size: 18px;
  box-shadow: var(--shadow-hover);
  transition: transform .2s ease, background .2s ease;
}
.video-close:hover { transform: rotate(90deg); background: var(--c-accent); }

/* ═══════════ 截图放大查看（Lightbox） ═══════════ */
.lightbox-overlay {
  position: fixed; inset: 0; z-index: 220;
  background: rgba(43, 34, 40, .85);
  backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .25s ease;
}
.lightbox-overlay.show { opacity: 1; }
.lightbox-figure { width: min(1240px, 92vw); }
.lightbox-img {
  position: relative;
  aspect-ratio: 16 / 10;
  max-height: 80vh;
  border-radius: 24px;
  border: 4px solid #fff;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
  background-size: cover; background-position: center;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  transform: scale(.94);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
.lightbox-overlay.show .lightbox-img { transform: scale(1); }
.lightbox-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lightbox-img .lightbox-emoji { position: relative; z-index: 1; font-size: 96px; filter: drop-shadow(0 8px 16px rgba(0,0,0,.3)); }
.lightbox-caption {
  text-align: center; color: #fff; font-size: 18px; margin-top: 16px;
  text-shadow: 0 2px 6px rgba(0,0,0,.4);
}
.lightbox-arrow {
  position: fixed; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(255,255,255,.94); color: var(--c-primary-dark);
  font-size: 34px; line-height: 1;
  box-shadow: var(--shadow-hover);
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.lightbox-arrow:hover { background: var(--c-primary); color: #fff; }
.lightbox-arrow.prev { left: 34px; }
.lightbox-arrow.next { right: 34px; }
.lightbox-arrow:hover.prev { transform: translateY(-50%) translateX(-4px); }
.lightbox-arrow:hover.next { transform: translateY(-50%) translateX(4px); }
.lightbox-tools {
  position: fixed; top: 22px; right: 22px; z-index: 2;
  display: flex; gap: 10px;
}
.lightbox-close, .lightbox-zoom {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.94); color: var(--c-muted);
  font-size: 17px;
  display: flex; align-items: center; justify-content: center;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.lightbox-close:hover { transform: rotate(90deg); background: var(--c-accent); color: #fff; }
.lightbox-zoom:hover { background: var(--c-primary); color: #fff; }
.lightbox-zoom.active {
  background: var(--c-primary); color: #fff;
  box-shadow: 0 0 0 4px rgba(255,255,255,.35);
}
/* 放大镜镜片：开启放大模式后跟随鼠标 */
.lightbox-img.zooming { cursor: none; }
.lightbox-lens {
  position: absolute; width: 180px; height: 180px; border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,.45), inset 0 0 0 1px rgba(0,0,0,.08);
  overflow: hidden; pointer-events: none; z-index: 5;
  opacity: 0; transform: scale(.6);
  transition: opacity .15s ease, transform .15s ease;
  background: #fff;
}
.lightbox-lens.show { opacity: 1; transform: scale(1); }
.lens-inner {
  position: absolute; left: 0; top: 0;
  transform-origin: 0 0;
  display: flex; align-items: center; justify-content: center;
  background-size: cover; background-position: center;
}
.lens-inner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lightbox-counter {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%);
  color: #fff; font-size: 14px;
  background: rgba(255,255,255,.16);
  padding: 6px 20px; border-radius: 999px;
  backdrop-filter: blur(4px);
}

/* ═══════════ 模块⑥ 加入我们 ═══════════ */
.module-join { padding: var(--pad-join) 0; }
.join-card {
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-accent) 100%);
  border-radius: 40px;
  text-align: center;
  padding: 60px 30px;
  color: #fff;
  box-shadow: var(--shadow-hover);
  position: relative; overflow: hidden;
}
.join-card::before, .join-card::after {
  content: "☁️"; position: absolute; font-size: 60px; opacity: .25;
}
.join-card::before { top: 20px; left: 40px; }
.join-card::after { bottom: 20px; right: 40px; }
.join-title { font-size: clamp(26px, 4vw, 38px); text-shadow: 0 3px 0 rgba(0,0,0,.1); }
.join-sub { margin: 14px 0 30px; opacity: .92; font-size: 16px; }
.join-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ═══════════ 页脚 ═══════════ */
.site-footer { padding: 36px 0 28px; text-align: center; border-top: 2px dashed var(--c-border); }
.footer-brand { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 17px; margin-bottom: 10px; }
.footer-line { font-size: 13px; color: var(--c-muted); }

/* ═══════════ 登录/注册弹窗 ═══════════ */
.auth-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(87, 74, 83, .45);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; transition: opacity .25s ease;
}
.auth-overlay.show { opacity: 1; }
.auth-modal {
  background: var(--c-card);
  width: min(420px, 100%);
  border-radius: 30px;
  padding: 34px 34px 26px;
  position: relative;
  box-shadow: 0 24px 60px rgba(0,0,0,.2);
  border: 3px solid var(--c-primary-light);
  transform: translateY(24px) scale(.96);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
  max-height: 90vh; overflow-y: auto;
}
.auth-overlay.show .auth-modal { transform: translateY(0) scale(1); }
.auth-close {
  position: absolute; top: 14px; right: 14px;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--c-bg); color: var(--c-muted);
  font-size: 15px;
  transition: transform .2s ease, background .2s ease;
}
.auth-close:hover { transform: rotate(90deg); background: var(--c-accent); color: #fff; }
.auth-header { text-align: center; margin-bottom: 24px; }
.auth-mascot { font-size: 44px; animation: bob 2.5s ease-in-out infinite; display: inline-block; }
.auth-tabs {
  position: relative;
  display: inline-flex; margin-top: 14px;
  background: var(--c-bg); border-radius: 999px; padding: 5px;
}
.auth-tab {
  position: relative; z-index: 1;
  padding: 9px 38px; border-radius: 999px;
  font-size: 16px; color: var(--c-muted);
  transition: color .2s ease;
}
.auth-tab.active { color: #fff; }
.auth-tab-slider {
  position: absolute; top: 5px; bottom: 5px; left: 5px;
  width: calc(50% - 5px);
  background: var(--c-primary); border-radius: 999px;
  box-shadow: 0 4px 0 var(--c-primary-dark);
  transition: transform .28s cubic-bezier(.34,1.4,.64,1);
}
.auth-tabs[data-active="register"] .auth-tab-slider { transform: translateX(100%); }

.auth-form { display: none; }
.auth-form.active { display: block; animation: formIn .3s ease; }
@keyframes formIn { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }
.field { display: block; margin-bottom: 16px; }
.field-label { display: block; font-size: 14px; margin-bottom: 6px; color: var(--c-text); }
.field input {
  width: 100%;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--c-border);
  background: var(--c-bg);
  font-size: 15px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.field input:focus {
  border-color: var(--c-primary);
  background: #fff;
  box-shadow: 0 0 0 4px var(--c-primary-light);
}
.field-row { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 18px; font-size: 14px; }
.checkbox { display: flex; align-items: center; gap: 7px; cursor: pointer; color: var(--c-muted); }
.checkbox input { display: none; }
.checkbox-box {
  width: 18px; height: 18px; border-radius: 6px;
  border: 2px solid var(--c-border); background: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s ease, border-color .15s ease;
}
.checkbox input:checked + .checkbox-box { background: var(--c-primary); border-color: var(--c-primary); }
.checkbox input:checked + .checkbox-box::after { content: "✓"; color: #fff; font-size: 12px; }
.auth-link { color: var(--c-primary-dark); font-size: 14px; }
.auth-link:hover { text-decoration: underline; }
.auth-tip { text-align: center; font-size: 12px; color: var(--c-muted); margin-top: 16px; }

/* ═══════════ Toast 提示 ═══════════ */
.toast {
  position: fixed; left: 50%; bottom: 40px; z-index: 300;
  transform: translate(-50%, 20px);
  background: var(--c-text); color: #fff;
  padding: 12px 26px; border-radius: 999px;
  font-size: 15px;
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  box-shadow: var(--shadow-hover);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ═══════════ 预览调试面板（转 WP 后删除） ═══════════ */
.dev-panel { position: fixed; right: 18px; bottom: 18px; z-index: 400; }
.dev-panel-toggle {
  background: var(--c-text); color: #fff;
  padding: 10px 18px; border-radius: 999px;
  box-shadow: var(--shadow-hover); font-size: 14px;
}
.dev-panel-body {
  position: absolute; right: 0; bottom: 52px;
  width: 280px; max-height: 70vh; overflow-y: auto;
  background: #fff; border-radius: 18px;
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
  padding: 16px;
  border: 2px solid var(--c-border);
}
.dev-panel-body h4 { font-size: 13px; color: var(--c-muted); margin: 12px 0 8px; }
.dev-panel-body h4:first-child { margin-top: 0; }
.dev-row { margin-bottom: 10px; }
.dev-row span { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 2px; }
.dev-row em { font-style: normal; color: var(--c-primary-dark); }
.dev-row input[type="range"] { width: 100%; accent-color: var(--c-primary); }
.dev-checks { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 13px; }
.dev-colors { display: flex; gap: 8px; flex-wrap: wrap; }
.color-preset {
  font-size: 12px; padding: 6px 12px; border-radius: 999px;
  background: color-mix(in srgb, var(--sw) 18%, #fff);
  border: 2px solid transparent;
}
.color-preset.active { border-color: var(--sw); }

/* ═══════════ 响应式 ═══════════ */
@media (max-width: 900px) {
  .status-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid, .album-grid { grid-template-columns: repeat(2, 1fr); }
  .lightbox-arrow.prev { left: 12px; }
  .lightbox-arrow.next { right: 12px; }
  .lightbox-arrow { width: 46px; height: 46px; font-size: 26px; }
  /* 特色面板：移动端改为纵向堆叠，隐藏滑动箭头 */
  .feature-strip { height: auto; min-height: 0; }
  .feature-track { flex-direction: column; height: auto; transform: none !important; }
  .feature-strip-head { position: static; transform: none; margin: 36px auto 20px; width: fit-content; }
  .feature-panel { clip-path: none; margin-left: 0; min-height: 230px; flex: none; width: 100%; }
  .strip-arrow { display: none; }
  .feature-panel + .feature-panel::after { display: none; }
  .fp-desc { max-height: none; opacity: 1; margin-top: 10px; }
  .fp-detail { padding: 80px 8% 40px; }
  .fp-close { width: 40px; height: 80px; }
}
@media (max-width: 640px) {
  .main-nav {
    position: fixed; top: 64px; left: 4%; right: 4%;
    flex-direction: column;
    background: #fff; border-radius: 20px;
    padding: 14px; box-shadow: var(--shadow-hover);
    display: none;
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .header-actions .btn-login { padding: 8px 14px; font-size: 13px; }
  .news-grid { grid-template-columns: 1fr; }
  .album-grid { grid-template-columns: repeat(2, 1fr); gap: 22px 14px; }
  .album-thumb { height: 120px; }
  .notice-item { flex-wrap: wrap; gap: 8px 12px; padding: 14px 16px; }
  .notice-item-main { flex-basis: 100%; order: 3; }
  .notice-item-more { display: none; }
  .notice-head { padding: 24px 22px 14px; }
  .notice-body { padding: 18px 22px 26px; }
  .hero-ip { border-radius: 24px; }
  .float-block { display: none; }
  .video-close { top: -14px; right: -6px; }
}

/* ═══════════ Wiki 页面 ═══════════ */
.wiki-hero {
  padding: 130px 0 50px;
  text-align: center;
  background: linear-gradient(120deg, var(--c-primary-light), var(--c-accent-light));
  border-radius: 0 0 40px 40px;
}
.wiki-hero h1 { font-size: clamp(30px, 4.5vw, 44px); }
.wiki-hero p { color: var(--c-muted); margin-top: 10px; font-size: 16px; }

.wiki-layout {
  display: grid; grid-template-columns: 260px 1fr; gap: 24px;
  padding: 36px 0 90px;
  align-items: start;
}
.wiki-sidebar { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 18px; }
.wiki-box {
  background: var(--c-card); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow); border: 2px solid var(--c-border);
}
.wiki-box h3 { font-size: 15px; margin-bottom: 10px; }
.wiki-search {
  width: 100%; padding: 10px 14px; margin-bottom: 14px;
  border: 2px solid var(--c-border); border-radius: 14px;
  font-family: inherit; font-size: 14px; background: var(--c-bg); color: var(--c-text);
  transition: border-color .2s ease;
}
.wiki-search:focus { border-color: var(--c-primary); }
.wiki-entries li { margin-bottom: 4px; list-style: none; }
.wiki-entry {
  display: block; width: 100%; text-align: left;
  padding: 9px 14px; border-radius: 12px;
  background: none; border: 0; font-family: inherit; font-size: 14px; color: var(--c-text);
  transition: background .2s ease, color .2s ease;
}
.wiki-entry:hover { background: var(--c-primary-light); color: var(--c-primary-dark); }
.wiki-entry.active { background: linear-gradient(135deg, var(--c-primary), var(--c-accent)); color: #fff; }
.wiki-entries-empty { font-size: 13px; color: var(--c-muted); padding: 6px 12px; list-style: none; }

/* 目录：点击跳转 + 滚动高亮 */
.wiki-toc li { list-style: none; }
.wiki-toc a {
  display: block; padding: 7px 12px;
  border-left: 3px solid transparent;
  border-radius: 0 10px 10px 0;
  font-size: 14px; color: var(--c-muted);
  transition: all .2s ease;
}
.wiki-toc a:hover { color: var(--c-primary-dark); background: var(--c-primary-light); }
.wiki-toc a.active {
  color: var(--c-primary-dark);
  border-left-color: var(--c-primary);
  background: var(--c-primary-light);
  font-weight: 700;
}
.toc-l1 > a.active { background: var(--c-primary-light); }
.toc-sub a.active { background: var(--c-accent-light); color: var(--c-accent); }
/* 目录二级：点击一级标题后向下拉伸展开（滚动到对应章节也会自动展开） */
.toc-arrow {
  float: right; display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; margin: -5px -5px -5px 8px;
  border-radius: 8px; font-size: 18px; line-height: 1;
  opacity: .7; transition: transform .3s ease, background .2s ease, opacity .2s ease;
}
.toc-arrow:hover { background: var(--c-card); opacity: 1; }
.toc-l1.open > a .toc-arrow { transform: rotate(180deg); }
.toc-sub {
  max-height: 0; overflow: hidden;
  transition: max-height .35s ease;
}
.toc-l1.open .toc-sub { max-height: 420px; }
.toc-sub a { padding-left: 28px; font-size: 13px; }

.wiki-content {
  background: var(--c-card); border-radius: var(--radius);
  padding: 44px 48px;
  box-shadow: var(--shadow); border: 2px solid var(--c-border);
  min-width: 0;
}
.wiki-article-head { text-align: center; margin-bottom: 34px; }
.wiki-article-icon {
  display: inline-flex; width: 84px; height: 84px;
  align-items: center; justify-content: center;
  font-size: 44px; border-radius: 26px;
  background: linear-gradient(135deg, var(--c-primary-light), var(--c-accent-light));
  box-shadow: var(--shadow);
  animation: bob 2.5s ease-in-out infinite;
}
.wiki-article-head h1 { font-size: clamp(26px, 3.4vw, 36px); margin: 14px 0 6px; }
.wiki-updated { font-size: 13px; color: var(--c-muted); }

.wiki-section { scroll-margin-top: 100px; margin-bottom: 34px; }
/* 二级标题内容块（目录可定位到这一级） */
.wiki-sub { scroll-margin-top: 100px; }
.wiki-sub h3 {
  font-size: 17px; margin: 26px 0 10px;
  padding-left: 11px; border-left: 4px solid var(--c-accent);
  line-height: 1.4;
}
.wiki-section h2 {
  font-size: 21px; margin-bottom: 12px;
  padding-left: 14px; border-left: 5px solid var(--c-primary);
  line-height: 1.4; transition: color .2s ease, background .2s ease;
}
.wiki-section.is-current > h2 {
  color: var(--c-primary-dark);
  background: var(--c-primary-light);
  border-radius: 0 8px 8px 0;
}
.wiki-sub h3 { transition: color .2s ease, background .2s ease; }
.wiki-sub.is-current > h3 {
  color: var(--c-accent);
  background: var(--c-accent-light);
  border-radius: 0 8px 8px 0;
}
.wiki-section p { font-size: 15px; line-height: 1.9; margin-bottom: 10px; }
.wiki-section ul { margin: 0 0 10px 22px; font-size: 15px; line-height: 1.9; }
.wiki-section code {
  background: var(--c-primary-light); color: var(--c-primary-dark);
  padding: 2px 8px; border-radius: 8px; font-size: 13px;
}
.wiki-tip {
  background: var(--c-primary-light);
  border-left: 4px solid var(--c-primary);
  padding: 12px 16px; border-radius: 0 14px 14px 0;
  font-size: 14px; line-height: 1.8; margin: 12px 0;
}
.wiki-table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 14px; }
.wiki-table th, .wiki-table td { padding: 10px 14px; text-align: left; border-bottom: 2px solid var(--c-border); }
.wiki-table th { background: var(--c-primary-light); color: var(--c-primary-dark); }
.wiki-table tr:hover td { background: #FFF9FB; }

@media (max-width: 900px) {
  .wiki-layout { grid-template-columns: 1fr; }
  .wiki-sidebar { position: static; }
  .wiki-content { padding: 28px 22px; }
}

/* ═══════════ 全屏加载弹窗（进度条，首页 / Wiki 共用） ═══════════ */
.page-loader {
  position: fixed; inset: 0; z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(252,231,240,.97), rgba(239,234,254,.97));
  backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}
.page-loader.show { opacity: 1; visibility: visible; }
.page-loader.done { opacity: 0; visibility: hidden; }
.loader-box { text-align: center; width: min(320px, 78vw); }
.loader-mascot {
  font-size: 56px; line-height: 1;
  animation: loader-bounce .9s ease-in-out infinite;
}
/* 加载弹窗使用服务器 Logo（PNG 透明底，无需边缘处理） */
.loader-logo {
  height: 54px; width: auto;
  filter: drop-shadow(0 6px 12px rgba(222,108,146,.3));
}
@keyframes loader-bounce {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50%      { transform: translateY(-10px) rotate(4deg); }
}
.loader-text {
  margin: 14px 0 16px;
  font-size: 16px; font-weight: 700; color: var(--c-text);
}
.loader-bar {
  height: 16px; border-radius: 999px;
  background: #fff; border: 2px solid var(--c-border);
  box-shadow: inset 0 2px 6px rgba(0,0,0,.06);
  overflow: hidden;
}
.loader-bar-inner {
  height: 100%; width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--c-primary), var(--c-accent), var(--c-primary));
  background-size: 200% 100%;
  animation: loader-candy 1.1s linear infinite;
  transition: width .18s ease;
}
@keyframes loader-candy {
  from { background-position: 0 0; }
  to   { background-position: 200% 0; }
}
.loader-pct { margin-top: 10px; font-size: 13px; font-weight: 700; color: var(--c-muted); }

/* ═══════════ QQ群弹窗（群号按钮 + 向下展开二维码） ═══════════ */
.qq-overlay {
  position: fixed; inset: 0; z-index: 230;
  background: rgba(87, 74, 83, .45);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.qq-overlay.show { opacity: 1; visibility: visible; }
.qq-modal {
  width: min(380px, 88vw);
  background: var(--c-card);
  border-radius: var(--radius);
  border: 2px solid var(--c-border);
  box-shadow: 0 24px 60px rgba(222,108,146,.35);
  padding: 34px 28px 28px;
  text-align: center;
  position: relative;
  transform: translateY(14px) scale(.96);
  transition: transform .25s ease;
}
.qq-overlay.show .qq-modal { transform: none; }
.qq-close {
  position: absolute; top: -14px; right: -14px;
  width: 38px; height: 38px; border-radius: 50%;
  border: 2px solid var(--c-border);
  background: var(--c-card); color: var(--c-muted);
  font-size: 15px; box-shadow: var(--shadow);
  transition: all .2s ease;
}
.qq-close:hover { color: var(--c-primary-dark); border-color: var(--c-primary); transform: rotate(90deg); }
.qq-mascot {
  font-size: 46px; line-height: 1;
  animation: bob 2.5s ease-in-out infinite;
}
.qq-title { font-size: 24px; margin: 10px 0 4px; }
.qq-sub { font-size: 14px; color: var(--c-muted); margin-bottom: 20px; }

/* 群号按钮：点击向下展开二维码 */
.qq-num-btn {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 20px;
  border: 0; border-radius: 16px;
  background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
  color: #fff; font-size: 16px; font-weight: 700; font-family: inherit;
  box-shadow: 0 8px 20px rgba(243,139,168,.4);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.qq-num-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(243,139,168,.5); }
.qq-num-arrow { font-size: 12px; transition: transform .3s ease; }
.qq-num-btn.open .qq-num-arrow { transform: rotate(180deg); }

/* 二维码区：grid 行高动画实现平滑向下展开 */
.qq-qr-wrap {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .38s cubic-bezier(.32,.72,.24,1);
}
.qq-qr-wrap.open { grid-template-rows: 1fr; }
.qq-qr-inner {
  overflow: hidden;
  min-height: 0;
  display: flex; flex-direction: column; align-items: center;
}
.qq-qr {
  width: 190px; height: 190px;
  border-radius: 18px;
  border: 3px solid var(--c-border);
  margin-top: 18px;
  object-fit: cover;
  background: #fff;
}
/* 预览占位二维码（WP版上传真实二维码后自动替换为图片） */
.qq-qr-ph {
  display: flex; align-items: center; justify-content: center;
  background:
    repeating-conic-gradient(var(--c-text) 0% 25%, #fff 0% 50%) 0 0 / 22px 22px;
  position: relative;
}
.qq-qr-ph span {
  width: 62px; height: 62px;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,.18);
}
.qq-qr-tip { font-size: 13px; color: var(--c-muted); margin: 12px 0 14px; }
.qq-qr-inner .btn { padding: 8px 22px; font-size: 14px; margin-bottom: 4px; }
