/* ============================================================
   云梦西游官网 · 暗色主题
   参考「风铃-Server」视觉风格：暗色背景 + 渐变文字 + 毛玻璃卡片
   ============================================================ */

/* ===== 基础重置 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
  color: #e2e8f0;
  background: #0a0e17;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

/* 暗色滚动条 */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.03); }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.12); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.22); }

/* 背景光晕装饰层 */
.bg-decor {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 50% -10%, rgba(96, 165, 250, 0.18), transparent 70%),
    radial-gradient(ellipse 55% 45% at 100% 15%, rgba(167, 139, 250, 0.14), transparent 65%),
    radial-gradient(ellipse 50% 40% at 0% 75%, rgba(251, 191, 36, 0.07), transparent 60%);
}

/* ===== 顶部导航 ===== */
.top-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 clamp(12px, 3vw, 24px);
  background: rgba(10, 14, 23, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.top-nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1200px; margin: 0 auto; height: 56px;
}
.brand { display: flex; align-items: center; gap: 8px; }
.brand-icon { width: 24px; height: 24px; object-fit: contain; flex-shrink: 0; }
.brand-text {
  font-size: 16px; font-weight: 700;
  background: linear-gradient(135deg, #c4a8e8, #ed8796);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.nav-right { display: flex; gap: 8px; }
.nav-link {
  padding: 7px 16px; font-size: 13px; font-weight: 600; color: #94a3b8;
  border-radius: 8px; transition: all 0.2s;
}
.nav-link:hover { color: #e2e8f0; background: rgba(255, 255, 255, 0.06); }
.nav-back {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 16px; font-size: 13px; font-weight: 600; color: #fff;
  background: linear-gradient(135deg, #60a5fa, #a78bfa);
  border-radius: 8px; transition: all 0.2s;
}
.nav-back:hover { opacity: 0.9; }

/* ===== Hero ===== */
.hero { text-align: center; padding: calc(56px + 64px) 24px 40px; }
.hero-title {
  font-size: 44px; font-weight: 800; letter-spacing: 2px;
  background: linear-gradient(135deg, #c4a8e8, #ed8796);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
}
.hero-subtitle { font-size: 16px; color: rgba(148, 163, 184, 0.8); letter-spacing: 4px; margin-bottom: 20px; }
.hero-divider {
  width: 60px; height: 2px; margin: 0 auto; border-radius: 1px;
  background: linear-gradient(90deg, transparent, #fbbf24, transparent);
}

/* ===== 主体 ===== */
.main { flex: 1 0 auto; width: 100%; max-width: 1000px; margin: 0 auto; padding: 0 24px 64px; }
.section-head { text-align: center; margin-bottom: 28px; }
.section-title { font-size: 20px; font-weight: 700; color: #e2e8f0; letter-spacing: 2px; }
.section-line {
  width: 40px; height: 2px; margin: 10px auto 0; border-radius: 1px;
  background: linear-gradient(90deg, transparent, rgba(167, 139, 250, 0.6), transparent);
}

/* ===== 公告卡片网格 ===== */
.card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.article-card {
  position: relative; border-radius: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: fadeInUp 0.6s ease both;
}
.article-card:hover { transform: translateY(-6px); }

.card-glow {
  position: absolute; inset: -1px; border-radius: 17px; z-index: 0; opacity: 0;
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.3), rgba(167, 139, 250, 0.2) 50%, rgba(251, 191, 36, 0.15));
  transition: opacity 0.4s ease;
}
.article-card:hover .card-glow { opacity: 1; }

.card-inner {
  position: relative; z-index: 1; height: 100%;
  display: flex; flex-direction: column; gap: 14px; padding: 24px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.article-card:hover .card-inner { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.12); }

.article-card-top { display: flex; align-items: center; justify-content: space-between; }
.article-badge {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 1px;
  padding: 3px 10px; border-radius: 6px; color: #93c5fd;
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.2), rgba(167, 139, 250, 0.2));
  border: 1px solid rgba(96, 165, 250, 0.35);
}
.article-badge.lock {
  color: #fbbf24;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.16), rgba(237, 135, 150, 0.14));
  border-color: rgba(251, 191, 36, 0.4);
}
.card-arrow { font-size: 15px; color: #fbbf24; opacity: 0; transform: translateX(-4px); transition: all 0.3s ease; }
.article-card:hover .card-arrow { opacity: 1; transform: translateX(0); }
.article-card-title { font-size: 16px; font-weight: 700; color: #e2e8f0; line-height: 1.5; }
.article-card-time { font-size: 12px; color: #64748b; margin-top: auto; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== 文章详情 ===== */
.article-main { max-width: 820px; padding-top: calc(56px + 40px); }
.article {
  padding: 40px 36px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
}
.article-head { text-align: center; margin-bottom: 20px; }
.article-title {
  font-size: 28px; font-weight: 800; line-height: 1.4;
  background: linear-gradient(135deg, #e2e8f0, #c7d2fe);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.article-meta { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 14px; }
.article-time { font-size: 13px; color: #64748b; }
.article-head .hero-divider { margin-top: 20px; }

.content { font-size: 15px; color: #cbd5e1; line-height: 1.9; }
.content h2, .content h3 { color: #e2e8f0; margin: 20px 0 10px; }
.content p { margin: 10px 0; }
.content img { border-radius: 10px; cursor: zoom-in; }
.content a { color: #93c5fd; }
.content table { margin: 16px 0; }
.content table td:first-child { width: 56px; text-align: center; }
.content table td:nth-child(2) { white-space: nowrap; font-weight: 600; }
.content .item-icon { width: 44px; height: 44px; object-fit: contain; display: inline-block; vertical-align: middle; }
.content .screenshot { width: 100%; max-width: 400px; margin: 14px auto; border-radius: 10px; }
.content ul.item-list { list-style: none; padding: 0; margin: 0; columns: 3; column-gap: 24px; }
.content ul.item-list li { padding: 6px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05); font-size: 14px; }

/* 文章详情页：固定视口高度，正文区内部滚动，避免整页滚动 */
body.article-page { height: 100vh; height: 100dvh; min-height: 0; overflow: hidden; }
body.article-page .article-main {
  flex: 1 1 auto; min-height: 0;
  display: flex; flex-direction: column;
  padding-top: calc(56px + 40px); padding-bottom: 24px;
}
body.article-page .article {
  flex: 1 1 auto; min-height: 0;
  display: flex; flex-direction: column;
}
body.article-page .article-head,
body.article-page .hero-divider { flex-shrink: 0; }
body.article-page .content {
  flex: 1 1 auto; min-height: 0;
  overflow-y: auto; padding-right: 6px;
}

/* 申请表单 */
.apply-box {
  max-width: 440px; margin: 20px auto 0; padding: 28px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
}
.apply-box p { color: #94a3b8; text-align: center; }
.apply-box .tip { margin-bottom: 18px; font-size: 14px; }
.apply-box label { display: block; margin: 14px 0 6px; font-size: 13px; color: #cbd5e1; }
.apply-box input, .apply-box textarea {
  width: 100%; padding: 11px 14px; font-size: 14px; font-family: inherit; color: #e2e8f0;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px; transition: border-color 0.2s;
}
.apply-box input:focus, .apply-box textarea:focus { outline: none; border-color: rgba(96, 165, 250, 0.5); }
.apply-box textarea { min-height: 90px; resize: vertical; }
.apply-box button {
  width: 100%; margin-top: 18px; padding: 12px; font-size: 15px; font-weight: 600; color: #fff;
  background: linear-gradient(135deg, #60a5fa, #a78bfa);
  border: none; border-radius: 10px; transition: opacity 0.2s;
}
.apply-box button:hover { opacity: 0.9; }
#applyMsg { margin-top: 12px; text-align: center; font-size: 13px; color: #94a3b8; }

/* ===== 空状态 & 页脚 ===== */
.empty { text-align: center; color: #64748b; padding: 40px 0; }
.footer { margin-top: 40px; padding: 28px 16px; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.footer-inner { display: flex; justify-content: center; gap: 8px; font-size: 13px; color: #64748b; }
.footer-dot { color: rgba(148, 163, 184, 0.4); }

/* ===== 后台登录 ===== */
.login-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: #0a0e17;
  background-image:
    radial-gradient(ellipse 70% 50% at 50% -10%, rgba(96, 165, 250, 0.16), transparent 70%),
    radial-gradient(ellipse 55% 45% at 100% 15%, rgba(167, 139, 250, 0.12), transparent 65%);
}
.login-form {
  width: 340px; padding: 36px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
}
.login-form h2 { text-align: center; margin-bottom: 20px; font-size: 20px; color: #e2e8f0; }
.login-form input {
  width: 100%; padding: 11px 14px; margin-bottom: 12px; font-size: 14px; color: #e2e8f0;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}
.login-form input:focus { outline: none; border-color: rgba(96, 165, 250, 0.5); }
.login-form button {
  width: 100%; padding: 12px; font-size: 15px; font-weight: 600; color: #fff;
  background: linear-gradient(135deg, #60a5fa, #a78bfa);
  border: none; border-radius: 10px;
}
.login-form button:hover { opacity: 0.9; }
.error { color: #ff6b6b; font-size: 13px; margin-bottom: 10px; text-align: center; }

/* ===== 后台布局 ===== */
.admin-layout { display: flex; min-height: 100vh; }
.admin-side {
  width: 220px; padding: 20px 0;
  background: rgba(15, 20, 32, 0.9);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}
.admin-logo { padding: 0 20px 20px; font-size: 16px; font-weight: 700; color: #e2e8f0; border-bottom: 1px solid rgba(255, 255, 255, 0.06); margin-bottom: 12px; }
.admin-side nav a { display: block; padding: 12px 20px; font-size: 14px; color: #94a3b8; transition: all 0.2s; }
.admin-side nav a:hover { background: rgba(255, 255, 255, 0.05); color: #e2e8f0; }
.admin-main { flex: 1; padding: 24px; }
.admin-main h2 { margin-bottom: 16px; color: #e2e8f0; }

.cards { display: flex; flex-wrap: wrap; gap: 16px; }
.card {
  flex: 1 1 180px; padding: 20px 24px; font-size: 13px; color: #94a3b8;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
}
.card b { display: block; margin-top: 6px; font-size: 26px; color: #e2e8f0; }

table { width: 100%; border-collapse: collapse; background: rgba(255, 255, 255, 0.02); }
th, td { border: 1px solid rgba(255, 255, 255, 0.06); padding: 10px 12px; text-align: left; font-size: 13px; color: #cbd5e1; }
th { background: rgba(255, 255, 255, 0.04); color: #e2e8f0; }
table a { color: #93c5fd; }
table button {
  padding: 5px 12px; font-size: 12px; color: #93c5fd;
  background: rgba(96, 165, 250, 0.15);
  border: 1px solid rgba(96, 165, 250, 0.3);
  border-radius: 6px; transition: all 0.2s;
}
table button:hover { background: rgba(96, 165, 250, 0.25); }

.btn {
  display: inline-block; padding: 8px 16px; margin-bottom: 12px; font-size: 14px; color: #fff;
  background: linear-gradient(135deg, #60a5fa, #a78bfa);
  border-radius: 8px;
}
.btn:hover { opacity: 0.9; }

.form {
  max-width: 760px; padding: 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
}
.form label { display: block; margin: 12px 0 4px; font-size: 13px; color: #cbd5e1; }
.form input[type=text], .form input[type=number], .form input[type=password], .form textarea {
  width: 100%; padding: 10px 12px; font-size: 14px; font-family: inherit; color: #e2e8f0;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}
.form input:focus, .form textarea:focus { outline: none; border-color: rgba(96, 165, 250, 0.5); }
.form textarea { font-family: Consolas, Monaco, monospace; }
.form .check { display: inline-block; margin-right: 16px; font-size: 14px; color: #cbd5e1; }
.form button {
  margin-top: 16px; padding: 10px 24px; font-size: 14px; color: #fff;
  background: linear-gradient(135deg, #60a5fa, #a78bfa);
  border: none; border-radius: 8px;
}
.form button:hover { opacity: 0.9; }

.tabs { margin-bottom: 12px; }
.tabs a {
  display: inline-block; padding: 6px 14px; margin-right: 8px; font-size: 13px; color: #94a3b8;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}
.tabs a:hover { color: #e2e8f0; background: rgba(255, 255, 255, 0.08); }

/* 分页 */
.pagination { margin: 16px 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pagination a {
  display: inline-block; padding: 6px 12px; font-size: 13px; color: #94a3b8;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px; transition: all 0.2s;
}
.pagination a:hover { color: #e2e8f0; background: rgba(255, 255, 255, 0.08); }
.pagination a.active { color: #fff; background: linear-gradient(135deg, #60a5fa, #a78bfa); border-color: transparent; }
.page-info { font-size: 13px; color: #64748b; margin-left: 8px; }

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .hero-title { font-size: 32px; }
  .card-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .article { padding: 28px 20px; }
}
@media (max-width: 480px) {
  .hero-title { font-size: 26px; letter-spacing: 1px; }
  .hero-subtitle { font-size: 14px; letter-spacing: 2px; }
  .card-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card-inner { padding: 16px 12px; gap: 10px; }
  .article-card-title { font-size: 14px; }
  .article-card-time { font-size: 11px; }
  .article-title { font-size: 22px; }
}

@media (max-width: 768px) {
  .content ul.item-list { columns: 2; }
}
@media (max-width: 480px) {
  .content ul.item-list { columns: 2; }
}

/* ===== 申请访问弹窗 ===== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.modal-overlay[hidden] { display: none; }
.modal-box {
  position: relative; width: 100%; max-width: 420px;
  background: #141926;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  max-height: 90vh; overflow-y: auto;
}
.modal-close {
  position: absolute; top: 12px; right: 14px;
  background: none; border: none; color: #94a3b8; font-size: 24px; line-height: 1; cursor: pointer;
}
.modal-close:hover { color: #e2e8f0; }
.modal-title { font-size: 18px; font-weight: 700; color: #e2e8f0; margin-bottom: 10px; }
.modal-tip { font-size: 14px; color: #94a3b8; margin-bottom: 16px; line-height: 1.6; }
.modal-body label { display: block; margin: 14px 0 6px; font-size: 13px; color: #cbd5e1; }
.modal-body input, .modal-body textarea {
  width: 100%; padding: 11px 14px; font-size: 14px; font-family: inherit; color: #e2e8f0;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px; transition: border-color 0.2s;
}
.modal-body input:focus, .modal-body textarea:focus { outline: none; border-color: rgba(96, 165, 250, 0.5); }
.modal-body textarea { min-height: 90px; resize: vertical; }
.modal-body button[type="submit"] {
  width: 100%; margin-top: 18px; padding: 12px; font-size: 15px; font-weight: 600; color: #fff;
  background: linear-gradient(135deg, #60a5fa, #a78bfa);
  border: none; border-radius: 10px; transition: opacity 0.2s;
}
.modal-body button[type="submit"]:hover { opacity: 0.9; }
.modal-msg { margin-top: 12px; text-align: center; font-size: 13px; color: #94a3b8; }

/* ===== 提示 toast ===== */
.toast {
  position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%) translateY(20px);
  background: rgba(20, 25, 38, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0; font-size: 14px;
  padding: 12px 20px; border-radius: 10px;
  opacity: 0; pointer-events: none; transition: opacity 0.3s, transform 0.3s;
  z-index: 300;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===== 注册页 ===== */
.register-main { padding-top: calc(56px + 40px); }
.register-box {
  max-width: 420px; margin: 0 auto; padding: 32px 28px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
}
.register-title { font-size: 22px; font-weight: 700; color: #e2e8f0; text-align: center; margin-bottom: 20px; }
.register-form label { display: block; margin: 14px 0 6px; font-size: 13px; color: #cbd5e1; }
.register-form input {
  width: 100%; padding: 11px 14px; font-size: 14px; font-family: inherit; color: #e2e8f0;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px; transition: border-color 0.2s;
}
.register-form input:focus { outline: none; border-color: rgba(96, 165, 250, 0.5); }
.invite-buy-link {
  display: inline-block; float: right; margin-top: 10px; padding: 6px 14px;
  text-align: center; font-size: 13px; font-weight: 600; color: #fbbf24;
  background: rgba(251, 191, 36, 0.10);
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: 8px; transition: all 0.2s;
}
.invite-buy-link:hover { background: rgba(251, 191, 36, 0.20); color: #fcd34d; }
.register-form button {
  clear: both; width: 100%; margin-top: 20px; padding: 12px; font-size: 15px; font-weight: 600; color: #fff;
  background: linear-gradient(135deg, #60a5fa, #a78bfa);
  border: none; border-radius: 10px; cursor: pointer; transition: opacity 0.2s;
}
.register-form button:hover { opacity: 0.9; }
.register-tip { margin-top: 16px; text-align: center; font-size: 13px; color: #64748b; }
.form-error { color: #ff6b6b; font-size: 13px; text-align: center; margin-bottom: 12px; }
.form-success { color: #4ade80; font-size: 14px; text-align: center; }

/* ===== 首页轮播图 ===== */
.gallery-section { margin-top: 56px; }
.gallery-section .section-head { margin-bottom: 20px; }
.carousel {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.3);
}
.carousel-track {
  display: flex;
  transition: transform 0.55s cubic-bezier(0.25, 0.8, 0.25, 1);
  will-change: transform;
}
.carousel-slide { flex: 0 0 100%; }
.carousel-slide img {
  width: 100%; height: auto; display: block;
  -webkit-user-drag: none; user-select: none;
}
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(10, 14, 23, 0.55);
  color: #e2e8f0; font-size: 18px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 2;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  transition: background 0.2s;
}
.carousel-btn:hover { background: rgba(10, 14, 23, 0.85); }
.carousel-btn.prev { left: 12px; }
.carousel-btn.next { right: 12px; }
.carousel-dots {
  display: flex; gap: 6px; flex-wrap: wrap; justify-content: center;
  margin-top: 12px;
}
.carousel-dot {
  width: 8px; height: 8px; border-radius: 50%; padding: 0;
  border: none; background: rgba(255, 255, 255, 0.4);
  cursor: pointer; transition: all 0.25s;
}
.carousel-dot.active { background: #fbbf24; width: 22px; border-radius: 4px; }

@media (max-width: 768px) {
  .gallery-section { margin-top: 40px; }
  .carousel-btn { width: 34px; height: 34px; font-size: 15px; }
  .carousel-btn.prev { left: 8px; }
  .carousel-btn.next { right: 8px; }
}

/* ===== 图片放大查看（灯箱） ===== */
.lightbox {
  position: fixed; inset: 0; z-index: 400;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.92);
}
.lightbox[hidden] { display: none; }
.lightbox-img {
  max-width: 100%; max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
  -webkit-user-drag: none; user-select: none;
}
.lightbox-close {
  position: absolute; top: 16px; right: 20px;
  width: 40px; height: 40px; border-radius: 50%;
  border: none; background: rgba(255, 255, 255, 0.14);
  color: #fff; font-size: 26px; line-height: 1;
  cursor: pointer; z-index: 2;
  transition: background 0.2s;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.28); }

/* 轮播图可点击提示 */
.carousel-slide img { cursor: zoom-in; }

@media (max-width: 768px) {
  .lightbox { padding: 12px; }
  .lightbox-close { top: 12px; right: 14px; width: 36px; height: 36px; font-size: 22px; }
}

/* ===== 移动端固定页脚 ===== */
@media (max-width: 768px) {
  .footer {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    margin-top: 0;
    padding: 13px 12px;
    background: rgba(10, 14, 23, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 90;
  }
  .main { padding-bottom: 100px; }

  /* 文章页：页脚回归文档流，避免遮挡正文底部 */
  body.article-page .footer {
    position: static;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
