/* ============================================================
   🦊 逸的资源站 · 全局样式（移动端优先 · 参考"液态玻璃"风格重写）
   特性：低透明度玻璃卡 / 强烈背景透出 / 紧凑单列排版 / 光球氛围
   ============================================================ */

:root {
  /* 配色 */
  --primary: #f59f6e; --primary-deep: #ef8a4e; --primary-soft: #fbe3cf;
  --yellow: #f7cf6b; --yellow-soft: #fdf0c2;
  --pink: #f08fa0; --pink-soft: #fde0e4;
  --mint: #8fc9a8; --mint-soft: #e0f3e8;

  --bg: #fdf6ec;
  --card-glass: linear-gradient(150deg, rgba(255,255,255,0.42), rgba(255,255,255,0.16));
  --card-border: rgba(255,255,255,0.55);
  --ink: #3a2a1e;           /* 主文字（深暖棕，玻璃上最清晰） */
  --ink-soft: #5c4534;
  --muted: #8a7058;

  --radius: 20px;
  --radius-sm: 14px;
  --shadow-card: 0 10px 30px rgba(60, 35, 15, 0.18);
  --grad-main: linear-gradient(135deg, #f7cf6b, #f59f6e 55%, #f08fa0);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { background: url("../img/bg-fog.jpg?v=1") no-repeat center center fixed; background-size: cover; }
body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC",
    -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: transparent;
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

h1, h2, h3 { font-family: "Baloo 2", "PingFang SC", "Microsoft YaHei", sans-serif; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { display: block; max-width: 100%; }
::selection { background: var(--yellow); color: var(--ink); }

/* 滚动条 */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--yellow), var(--primary)); border-radius: 99px; }

/* ---------- 背景三层 ---------- */
/* 柔光罩（比旧版更透：让背景插画鲜艳地透出来） */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  /* 极淡的定影罩：几乎不遮背景，让原图全透 */
  background: linear-gradient(170deg, rgba(253, 246, 236, 0.30), rgba(248, 235, 210, 0.22));
}
/* 流动光斑 */
body::after {
  content: ""; position: fixed; inset: -10%; z-index: 0; pointer-events: none;
  /* 色彩光斑：无 filter 模糊，仅 transform 缓动（GPU 合成层，几乎零开销） */
  opacity: 0.30;
  background:
    radial-gradient(circle at 20% 30%, rgba(247,207,107,.38), transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(240,143,160,.32), transparent 45%),
    radial-gradient(circle at 65% 15%, rgba(143,201,168,.26), transparent 40%);
  animation: blobs 30s ease-in-out infinite alternate;
  will-change: transform;
  transform: translateZ(0);
}
@keyframes blobs {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(3%, -2%) scale(1.06); }
  100% { transform: translate(-3%, 2%) scale(0.98); }
}
/* 噪点颗粒 */
.grain {
  position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}
/* 悬浮玻璃球 */
.bg-orbs { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bg-orbs .orb {
  position: absolute; border-radius: 50%;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,0.85), rgba(255,255,255,0.05) 55%),
    radial-gradient(circle at 70% 75%, rgba(247,207,107,0.22), transparent 60%);
  box-shadow: inset -6px -8px 24px rgba(255,255,255,0.18), inset 4px 5px 14px rgba(255,255,255,0.6);
  opacity: 0.7;
  animation: orbFloat 18s ease-in-out infinite alternate;
}
.bg-orbs .orb::after {
  content: ""; position: absolute; top: 14%; left: 18%; width: 26%; height: 18%; border-radius: 50%;
  background: rgba(255,255,255,0.85); filter: blur(3px); transform: rotate(-25deg);
}
.bg-orbs .o1 { width: 110px; height: 110px; top: 10%; left: 4%; }
.bg-orbs .o2 { width: 70px; height: 70px; top: 60%; right: 6%; animation-delay: -6s; }
.bg-orbs .o3 { width: 48px; height: 48px; bottom: 8%; left: 18%; animation-delay: -11s; opacity: 0.5; }
/* 三颗玻璃球即可，减少合成负担 */
@keyframes orbFloat {
  0%   { transform: translateY(0) translateX(0) scale(1); }
  50%  { transform: translateY(-22px) translateX(14px) scale(1.06); }
  100% { transform: translateY(12px) translateX(-12px) scale(0.96); }
}

.site-header, main, .site-footer { position: relative; z-index: 1; }

/* ---------- 容器 ---------- */
.container { width: min(1080px, 100%); margin-inline: auto; padding-inline: 14px; }

/* ============================================================
   顶部导航（紧凑）
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: linear-gradient(180deg, rgba(255,252,245,0.55), rgba(255,252,245,0.30));
  backdrop-filter: blur(14px) saturate(1.6);
  -webkit-backdrop-filter: blur(14px) saturate(1.6);
  border-bottom: 1px solid rgba(255,255,255,0.6);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 54px; padding-inline: 14px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.02rem; }
.brand-logo { width: 34px; height: 34px; border-radius: 50%; object-fit: cover;
  border: 2px solid rgba(255,255,255,0.9); box-shadow: 0 4px 12px rgba(120,80,50,0.25); }
.brand-name {
  background: var(--grad-main); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; letter-spacing: 0.5px;
}
.nav-links { display: flex; gap: 2px; }
.nav-links a {
  padding: 7px 14px; border-radius: 99px; font-weight: 700; font-size: 0.9rem;
  color: var(--ink-soft); transition: all 0.22s ease;
}
.nav-links a.active {
  background: var(--grad-main); color: #fff;
  box-shadow: 0 6px 16px rgba(239,138,78,0.4);
}
.nav-toggle {
  display: flex; width: 38px; height: 38px; border-radius: 12px;
  background: rgba(255,255,255,0.5); flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.nav-toggle span { width: 18px; height: 2.5px; border-radius: 2px; background: var(--primary-deep); transition: all 0.3s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* QQ 顶栏 */
.notice-bar {
  display: block; text-align: center; padding: 7px 12px;
  font-size: 0.82rem; font-weight: 700; color: #7c4a16;
  background: linear-gradient(90deg, rgba(253,240,194,0.88), rgba(251,227,207,0.78));
  backdrop-filter: blur(12px) saturate(1.5); -webkit-backdrop-filter: blur(12px) saturate(1.5);
  border-top: 1px solid rgba(255,255,255,0.6);
}
.notice-bar:hover { background: var(--grad-main); color: #fff; }

/* ============================================================
   按钮
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 20px; border-radius: 99px; font-size: 0.95rem; font-weight: 700;
  position: relative; overflow: hidden; transition: all 0.25s ease;
}
.btn-primary {
  background: linear-gradient(135deg, rgba(247,207,107,0.92), rgba(245,159,110,0.92) 60%, rgba(240,143,160,0.92));
  backdrop-filter: blur(10px) saturate(1.6); -webkit-backdrop-filter: blur(10px) saturate(1.6);
  color: #fff; text-shadow: 0 1px 2px rgba(120,60,15,0.3);
  border: 1px solid rgba(255,255,255,0.8);
  box-shadow: 0 8px 22px rgba(239,138,78,0.4), inset 0 1px 0 rgba(255,255,255,0.6);
}
.btn-primary:active { transform: translateY(1px) scale(0.98); }
.btn-ghost {
  background: rgba(255,255,255,0.5);
  backdrop-filter: blur(10px) saturate(1.4); -webkit-backdrop-filter: blur(10px) saturate(1.4);
  color: #8a3f12; border: 1px solid rgba(255,255,255,0.85);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9);
}
.btn-ghost:active { background: rgba(255,255,255,0.75); }
.btn-sm { padding: 7px 14px; font-size: 0.86rem; }
/* 流光扫过 */
.btn::before {
  content: ""; position: absolute; top: 0; left: -90%; width: 55%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,0.6), transparent);
  transform: skewX(-20deg); transition: left 0.6s ease; pointer-events: none;
}
.btn:hover::before { left: 140%; }

/* ============================================================
   首页 Hero（手机：紧凑竖排；桌面：横排）
   ============================================================ */
.hero {
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  padding: 34px 0 22px; text-align: center;
}
.hero-avatar-wrap { position: relative; flex-shrink: 0; }
.hero-ring {
  position: absolute; inset: -16px; border-radius: 50%;
  background: conic-gradient(var(--yellow), var(--primary), var(--pink), var(--yellow));
  filter: blur(8px) saturate(1.4); opacity: 0.75;
  z-index: 1;
}
.hero-avatar {
  position: relative; z-index: 2;
  width: 118px; height: 118px; border-radius: 50%; object-fit: cover;
  border: 4px solid rgba(255,255,255,0.85);
  box-shadow: 0 0 0 6px rgba(255,255,255,0.30), 0 0 34px rgba(247,207,107,0.45), 0 16px 32px rgba(120,80,50,0.3);
  animation: floaty 5s ease-in-out infinite;
}
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.sparkle { position: absolute; font-size: 0.95rem; animation: twinkle 2.6s ease-in-out infinite; z-index: 3; pointer-events: none; }
.sparkle.s1 { top: -8px; left: 8px; }
.sparkle.s2 { top: 18px; right: -12px; font-size: 0.75rem; animation-delay: 0.7s; }
.sparkle.s3 { bottom: -2px; left: -8px; font-size: 0.8rem; animation-delay: 1.4s; }
.sparkle.s4 { bottom: 18px; right: -4px; animation-delay: 2s; }
@keyframes twinkle {
  0%,100% { opacity: 0.25; transform: scale(0.8) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.15) rotate(18deg); }
}
.hero-text { max-width: 560px; width: 100%; }
.hero-greet {
  display: inline-block; padding: 4px 14px; border-radius: 99px; font-size: 0.8rem; font-weight: 700;
  color: #8a5a1f; background: rgba(253,240,194,0.75);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.7); margin-bottom: 10px;
}
.hero-title { font-size: 1.7rem; font-weight: 900; line-height: 1.3; margin-bottom: 8px; }
.hero-title .grad { background: var(--grad-main); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-desc { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 16px; }
.hero-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.hero-actions .btn { flex: 1; max-width: 220px; justify-content: center; }

/* ============================================================
   区块与标题（紧凑）
   ============================================================ */
.section { margin-top: 30px; }
.section-head { text-align: center; margin-bottom: 16px; }
.section-head .tag {
  display: inline-block; font-size: 0.7rem; font-weight: 800; letter-spacing: 3px;
  color: var(--primary-deep); background: rgba(251,227,207,0.7);
  padding: 3px 12px; border-radius: 99px; margin-bottom: 6px;
}
.section-head h2 { font-size: 1.35rem; font-weight: 900; }
.section-head p { color: var(--muted); font-size: 0.85rem; margin-top: 4px; }

/* ============================================================
   玻璃卡统一基底
   ============================================================ */
.glass-card,
.link-card, .resource-card, .about-box, .panel, .qq-card, .empty-state, .admin-item {
  background:
    linear-gradient(155deg, rgba(255,255,255,0.52) 0%, rgba(255,255,255,0.26) 48%, rgba(255,255,255,0.10) 100%);
  backdrop-filter: blur(16px) saturate(1.8);
  -webkit-backdrop-filter: blur(16px) saturate(1.8);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: var(--radius);
  box-shadow:
    0 10px 30px rgba(60,35,15,0.16),
    inset 0 1px 0 rgba(255,255,255,0.9),
    inset 3px 4px 12px rgba(255,255,255,0.30),
    inset 0 0 0 1px rgba(255,255,255,0.18);
}
/* 顶部折射高光 */
.link-card::after, .resource-card::after, .about-box::after, .qq-card::after, .panel::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.60) 0%, transparent 20%),
              linear-gradient(205deg, rgba(255,255,255,0.40) 0%, transparent 50%),
              linear-gradient(115deg, rgba(255,255,255,0.18) 0%, transparent 30%);
}
/* 旋转虹彩描边（悬停） */
.glass-card { position: relative; }
.glass-card::before {
  content: ""; position: absolute; inset: -1.5px; border-radius: inherit; padding: 2px;
  background: conic-gradient(from var(--ga), transparent 0%, rgba(247,207,107,0.9) 10%,
    rgba(245,159,110,0.9) 18%, rgba(240,143,160,0.9) 26%, transparent 34%,
    transparent 60%, rgba(143,201,168,0.7) 72%, transparent 82%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity 0.45s ease; pointer-events: none;
}
/* 悬停：静态渐变光边（无逐帧动画，流畅） */
.glass-card:hover::before { opacity: 1;
  transition: opacity 0.3s ease; }
.link-card, .resource-card, .about-box, .panel, .qq-card { overflow: hidden; }

/* ============================================================
   快捷入口（手机双列紧凑 / 桌面三列）
   ============================================================ */
.link-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.link-card {
  display: flex; flex-direction: column; gap: 6px; padding: 14px 12px;
  border-radius: 18px; transition: all 0.28s ease;
}
.link-card:hover { transform: translateY(-3px); border-color: rgba(255,255,255,0.9); background: rgba(255,255,255,0.5); }
.link-card .icon {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  font-size: 1.2rem;
  background: linear-gradient(135deg, rgba(253,240,194,0.9), rgba(251,227,207,0.8));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}
.link-card:nth-child(2n) .icon { background: linear-gradient(135deg, rgba(224,243,232,0.9), rgba(200,231,214,0.8)); }
.link-card:nth-child(3n) .icon { background: linear-gradient(135deg, rgba(253,224,228,0.9), rgba(248,205,211,0.8)); }
.link-card h3 { font-size: 0.98rem; font-weight: 800; }
.link-card p { font-size: 0.78rem; color: var(--ink-soft); flex: 1; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.link-card .go { color: var(--primary-deep); font-weight: 700; font-size: 0.8rem; }
.link-card .go::after { content: "→"; margin-left: 2px; }

/* ============================================================
   关于我 / QQ 卡（紧凑）
   ============================================================ */
.about-box {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  padding: 26px 20px; text-align: center;
}
.about-text { font-size: 0.88rem; color: var(--ink-soft); max-width: 620px; margin-inline: auto; }
.qq-card {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center;
  padding: 14px 18px; border-radius: 18px; border-style: dashed;
}
.qq-icon {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  font-size: 1.3rem; color: #fff; background: var(--grad-main);
  box-shadow: 0 6px 16px rgba(239,138,78,0.45);
}
.qq-label { font-size: 0.75rem; color: var(--primary-deep); font-weight: 700; }
.qq-number { font-size: 1.3rem; font-weight: 900; letter-spacing: 1.5px; font-variant-numeric: tabular-nums; }
.qq-actions { display: flex; gap: 8px; }

/* ============================================================
   页脚 / Toast
   ============================================================ */
.site-footer {
  margin-top: 44px; padding: 20px 14px 24px; text-align: center;
  font-size: 0.8rem; color: var(--ink-soft);
  background: rgba(255,252,245,0.4);
  backdrop-filter: blur(14px) saturate(1.5); -webkit-backdrop-filter: blur(14px) saturate(1.5);
  border-top: 1px solid rgba(255,255,255,0.55);
}
.footer-qq {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 6px;
  padding: 5px 14px; border-radius: 99px; font-weight: 700; color: #7c4a16;
  background: rgba(253,240,194,0.8); border: 1px solid rgba(255,255,255,0.7);
}
.toast {
  position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%) translateY(80px);
  background: rgba(45, 30, 18, 0.92); color: #fff; padding: 10px 20px; border-radius: 99px;
  font-size: 0.86rem; font-weight: 600; z-index: 999; opacity: 0; pointer-events: none;
  transition: all 0.35s cubic-bezier(0.22,1,0.36,1); box-shadow: 0 10px 26px rgba(0,0,0,0.3);
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ============================================================
   资源站（手机单列紧凑 / 桌面网格）
   ============================================================ */
.page-hero { text-align: center; padding: 28px 0 18px; }
.page-icon {
  display: inline-block; font-size: 2.2rem; margin-bottom: 4px;
  animation: floaty 4.5s ease-in-out infinite;
}
.page-hero h1 { font-size: 1.6rem; font-weight: 900; }
.page-hero h1 .grad { background: var(--grad-main); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.page-hero p { color: var(--muted); font-size: 0.85rem; margin-top: 4px; }

.resource-toolbar { display: flex; flex-direction: column; gap: 10px; margin: 14px 0 14px; }
.search-box { position: relative; }
.search-box input {
  width: 100%; padding: 11px 14px 11px 40px;
  border-radius: 99px; font-size: 0.9rem; color: var(--ink); outline: none;
  background: rgba(255,255,255,0.45);
  border: 1px solid rgba(255,255,255,0.7);
  backdrop-filter: blur(14px) saturate(1.6); -webkit-backdrop-filter: blur(14px) saturate(1.6);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.85);
}
.search-box input::placeholder { color: #9a7f66; opacity: 1; }
.search-box input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(245,159,110,0.35); }
.search-box .search-icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); font-size: 1rem; }

.category-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  padding: 7px 13px; border-radius: 99px; font-size: 0.8rem; font-weight: 700; color: var(--ink-soft);
  background: rgba(255,255,255,0.42);
  border: 1px solid rgba(255,255,255,0.7);
  backdrop-filter: blur(10px) saturate(1.5); -webkit-backdrop-filter: blur(10px) saturate(1.5);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
  transition: all 0.2s ease;
}
.chip.active {
  background: linear-gradient(135deg, rgba(247,207,107,0.9), rgba(245,159,110,0.9));
  color: #fff; border-color: rgba(255,255,255,0.9);
  box-shadow: 0 6px 16px rgba(239,138,78,0.4), inset 0 1px 0 rgba(255,255,255,0.5);
  text-shadow: 0 1px 2px rgba(120,60,15,0.3);
}

/* 资源卡片：手机=单列紧凑卡片（flex 布局，与 DOM 结构一致） */
.resource-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.resource-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  border-radius: 18px;
}
.resource-card .rc-top { display: flex; align-items: flex-start; gap: 10px; min-width: 0; }
.resource-card .rc-icon {
  flex-shrink: 0;
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  font-size: 1.35rem;
  background: linear-gradient(135deg, rgba(253,240,194,0.9), rgba(251,227,207,0.8));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}
.resource-card h3 {
  flex: 1; min-width: 0;
  font-size: 0.98rem; font-weight: 800; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.resource-card .rc-desc { font-size: 0.8rem; color: var(--ink-soft); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rc-meta { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.resource-card .tag {
  font-size: 0.68rem; font-weight: 700; padding: 2px 9px; border-radius: 99px; border: 1px solid rgba(255,255,255,0.6);
}
.tag-cat-a { background: rgba(253,232,170,0.9); color: #8a5a10; }
.tag-cat-b { background: rgba(251,215,186,0.9); color: #9a4a1a; }
.tag-cat-c { background: rgba(205,238,216,0.9); color: #25684a; }
.tag-cat-d { background: rgba(252,210,216,0.9); color: #9c2f45; }
.tag-cat-e { background: rgba(222,218,250,0.9); color: #453a9c; }
.rc-meta .size, .rc-meta .date { font-size: 0.7rem; color: var(--muted); }
.rc-meta .date { margin-left: auto; }

.resource-card .rc-foot { display: flex; gap: 8px; margin-top: 2px; }
.rc-foot .down {
  flex: 1; text-align: center; padding: 9px 10px; border-radius: 12px;
  font-size: 0.86rem; font-weight: 800;
}
.down.ready {
  background: linear-gradient(135deg, rgba(247,207,107,0.92), rgba(245,159,110,0.92));
  color: #fff; border: 1px solid rgba(255,255,255,0.8);
  box-shadow: 0 6px 16px rgba(239,138,78,0.4), inset 0 1px 0 rgba(255,255,255,0.6);
}
.down.pending {
  background: rgba(255,255,255,0.55); color: #8a6f56; border: 1px solid #e2c49a;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}
.rc-foot .copy-btn {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 0.95rem;
  background: rgba(255,255,255,0.5); border: 1px solid rgba(255,255,255,0.7);
}

.empty-state { display: none; text-align: center; padding: 50px 16px; color: var(--muted); }
.empty-state .empty-icon { font-size: 2.4rem; margin-bottom: 8px; }

/* ============================================================
   发布页 / 管理后台
   ============================================================ */
.publish-wrap { display: grid; grid-template-columns: 1fr; gap: 16px; margin-bottom: 36px; }
.panel { padding: 20px 16px; }
.publish-form .field { margin-bottom: 13px; }
.publish-form label { display: block; font-weight: 700; font-size: 0.85rem; margin-bottom: 5px; color: var(--ink-soft); }
.publish-form input[type="text"], .publish-form input[type="password"], .publish-form input[type="date"],
.publish-form select, .publish-form textarea {
  width: 100%; padding: 11px 13px; border-radius: 12px; font-size: 0.92rem; color: var(--ink); outline: none;
  background: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.8);
  backdrop-filter: blur(12px) saturate(1.5); -webkit-backdrop-filter: blur(12px) saturate(1.5);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}
.publish-form input:focus, .publish-form select:focus, .publish-form textarea:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(245,159,110,0.35);
}
.publish-form .hint { display: block; margin-top: 4px; font-size: 0.75rem; color: var(--muted); }
.publish-form input[type="file"] {
  width: 100%; padding: 11px; border: 1.5px dashed rgba(245,159,110,0.7);
  border-radius: 14px; font-size: 0.85rem; color: var(--ink-soft); cursor: pointer;
  background: rgba(255,255,255,0.35);
}
.publish-form input[type="file"]::file-selector-button {
  background: var(--grad-main); color: #fff; border: none; border-radius: 10px;
  padding: 7px 14px; margin-right: 12px; font-weight: 700; cursor: pointer;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.emoji-row { display: flex; flex-wrap: wrap; gap: 6px; }
.emoji-row button {
  width: 40px; height: 40px; border-radius: 11px; font-size: 1.2rem; display: grid; place-items: center;
  background: rgba(255,255,255,0.5); border: 2px solid rgba(190,158,115,0.55); transition: all 0.2s ease;
}
.emoji-row button.active { background: rgba(253,240,194,0.9); border-color: var(--yellow); transform: scale(1.08); box-shadow: 0 4px 12px rgba(247,207,107,0.5); }
.check {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.88rem;
  padding: 10px 14px; border-radius: 12px; margin-top: 4px; cursor: pointer;
  background: rgba(205,238,216,0.6); border: 1px solid rgba(143,201,168,0.5);
}
.check input { width: 17px; height: 17px; accent-color: var(--primary-deep); cursor: pointer; }

.code-out {
  background: #34271c; color: #f6e7d4; padding: 14px; border-radius: 14px;
  font-family: "SF Mono", Consolas, monospace; font-size: 12px; line-height: 1.7;
  white-space: pre-wrap; word-break: break-all; max-height: 420px; overflow: auto;
}
.out-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; gap: 8px; flex-wrap: wrap; }
.tip-box {
  margin-top: 12px; font-size: 0.83rem; color: var(--ink-soft); line-height: 1.9;
  padding: 12px 14px; border-radius: 14px;
  background: rgba(253,240,194,0.6);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.6);
}
.tip-box b { color: var(--primary-deep); }
.tip-box code { background: rgba(245,159,110,0.2); color: #8a4d1a; padding: 1px 6px; border-radius: 6px; font-size: 0.76rem; }

.admin-alert {
  padding: 12px 16px; border-radius: 14px; font-weight: 700; font-size: 0.9rem; margin-bottom: 14px;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.admin-alert.ok { background: rgba(205,238,216,0.75); color: #25684a; border: 1px solid rgba(143,201,168,0.6); }
.admin-alert.err { background: rgba(252,214,214,0.8); color: #9c2f45; border: 1px solid rgba(240,143,160,0.6); }

.admin-list { display: flex; flex-direction: column; gap: 10px; }
.admin-item { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; flex-wrap: wrap; }
.admin-item .ai-icon {
  width: 42px; height: 42px; flex-shrink: 0; display: grid; place-items: center; font-size: 1.25rem;
  border-radius: 12px; background: linear-gradient(135deg, rgba(253,240,194,0.9), rgba(251,227,207,0.8));
}
.admin-item .ai-main { flex: 1; min-width: 0; }
.admin-item .ai-title { font-weight: 800; font-size: 0.94rem; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.admin-item .ai-sub { font-size: 0.75rem; color: var(--muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-item .ai-sub code { background: rgba(245,159,110,0.15); padding: 1px 5px; border-radius: 6px; font-size: 0.7rem; }
.admin-item .ai-actions { display: flex; gap: 8px; }
.mini-btn {
  width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; font-size: 0.95rem;
  background: rgba(255,255,255,0.55); border: 1px solid rgba(255,255,255,0.8);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8); transition: all 0.2s ease;
}
.mini-btn:hover { transform: translateY(-2px); background: rgba(255,255,255,0.9); }
.mini-btn.danger:hover { background: rgba(252,214,214,0.9); }
.status { font-size: 0.66rem; font-weight: 800; padding: 2px 9px; border-radius: 99px; }
.status.on  { background: rgba(205,238,216,0.9); color: #25684a; }
.status.off { background: rgba(253,232,170,0.9); color: #8a5a10; }
.status.miss{ background: rgba(252,214,214,0.9); color: #9c2f45; }

/* 显现动画 */
.reveal { opacity: 0; transform: translateY(14px); transition: all 0.6s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }
@keyframes cardIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ============================================================
   桌面端增强（≥760px）
   ============================================================ */
@media (min-width: 760px) {
  .container { padding-inline: 24px; }
  .nav { height: 64px; padding-inline: 0; }
  .nav-toggle { display: none; }
  .nav-links { gap: 6px; }
  .hero { flex-direction: row; gap: 56px; padding: 64px 0 40px; text-align: left; }
  .hero-text { text-align: left; }
  .hero-actions { justify-content: flex-start; }
  .hero-actions .btn { flex: none; padding: 12px 28px; }
  .hero-title { font-size: 2.5rem; }
  .hero-avatar { width: 180px; height: 180px; }
  .link-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .link-card { padding: 20px; border-radius: 20px; gap: 8px; }
  .link-card p { font-size: 0.88rem; }
  .section { margin-top: 46px; }
  .section-head { margin-bottom: 24px; }
  .resource-toolbar { flex-direction: row; align-items: center; gap: 14px; }
  .search-box { flex: 1; min-width: 240px; }
  .resource-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  /* 桌面用标准卡片竖排 */
  .resource-card { gap: 8px; padding: 18px; }
  .resource-card .rc-top { gap: 12px; }
  .resource-card h3 { font-size: 1.05rem; }
  .publish-wrap { grid-template-columns: 1.05fr 1fr; }
  .publish-form .field { margin-bottom: 16px; }
  .about-box { padding: 40px 28px; }
  .qq-number { font-size: 1.6rem; }
  .site-footer { margin-top: 60px; padding: 30px 14px; }
}

@media (min-width: 1024px) {
  .resource-grid { grid-template-columns: repeat(4, 1fr); }
}

/* 无 backdrop-filter 兜底 */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  /* 无模糊支持的浏览器：用实底 + 霜雪渐变模拟磨砂，保证可读与分层 */
  .link-card, .resource-card, .about-box, .panel, .chip, .btn-ghost, .search-box input,
  .admin-item,
  .publish-form input, .publish-form select, .publish-form textarea {
    background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(255,250,242,0.9));
    border: 1px solid rgba(255,255,255,0.9);
  }
}
/* 手机端分类标签横向滑动（更利落） */
.category-chips {
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.category-chips::-webkit-scrollbar { display: none; }
.category-chips .chip { flex-shrink: 0; }
/* 首屏更紧凑 */
.hero { padding-top: 26px; }
@media (min-width: 760px) {
  .category-chips { flex-wrap: wrap; overflow-x: visible; }
}

/* 用户系统开启“减弱动态效果”时，关闭所有动画 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
/* ============================================================
   ✨ 签名文字：玻璃底片 + 深色字 + 渐变高亮 + 波浪下划线
   ============================================================ */
.hero-desc {
  position: relative;
  display: inline-block;
  margin: 0 auto 16px;
  padding: 9px 20px;
  border-radius: 16px;
  color: #5f411f;                 /* 深暖棕，和浅色背景拉开对比 */
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.8;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px) saturate(1.5);
  -webkit-backdrop-filter: blur(10px) saturate(1.5);
  box-shadow: 0 6px 18px rgba(120, 80, 50, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* 高亮词：渐变色 + 波浪下划线 + 轻微呼吸发光 */
.hero-desc .hl {
  background: var(--grad-main);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
  position: relative;
  padding-bottom: 2px;
}
.hero-desc .hl::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px; height: 5px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='5'%3E%3Cpath d='M0 2.5 Q 3.5 0 7 2.5 T 14 2.5' stroke='%23ef8a4e' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 14px 5px;
  animation: waveMove 1.4s linear infinite;
  opacity: 0.85;
}
@keyframes waveMove { from { background-position-x: 0; } to { background-position-x: 14px; } }

/* 高亮词呼吸光晕（极小开销：仅透明度动画） */
.hero-desc .hl {
  animation: hlGlow 2.8s ease-in-out infinite;
}
@keyframes hlGlow {
  0%, 100% { filter: drop-shadow(0 0 2px rgba(245, 159, 110, 0.35)); }
  50%      { filter: drop-shadow(0 0 8px rgba(247, 207, 107, 0.65)); }
}

/* 手机端缩小一点 */
@media (max-width: 760px) {
  .hero-desc { font-size: 0.86rem; padding: 7px 14px; }
}

/* ============================================================
   ✨ 区块副标题：从背景里浮出来 + 标题呼吸渐变线
   ============================================================ */
.section-head p,
.page-hero p {
  color: #5d4327;                 /* 深暖棕，弱化与背景的融合 */
  font-weight: 600;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
}

/* 区块标题下方：渐变呼吸短横线（合成层动画，开销极小） */
.section-head h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}
.section-head h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 60px;
  height: 4px;
  border-radius: 99px;
  background: var(--grad-main);
  box-shadow: 0 2px 10px rgba(239, 138, 78, 0.45);
  transform: translateX(-50%) scaleX(0.7);
  opacity: 0.6;
  animation: linePulse 3s ease-in-out infinite;
  transform-origin: center;
}
@keyframes linePulse {
  0%, 100% { opacity: 0.55; transform: translateX(-50%) scaleX(0.7); }
  50%      { opacity: 1;    transform: translateX(-50%) scaleX(1.05); }
}
