/* ===== 全局变量 ===== */
:root {
  --bg: #f4f6f9;
  --surface: #ffffff;
  --border: #e8eaef;
  --text: #1a1d24;
  --text-2: #7c8290;
  --text-3: #a3a9b6;
  --accent: #5b6ef7;
  --accent-hover: #4a5de6;
  --accent-bg: #eef1ff;
  --game: #10b981;
  --game-bg: #ecfdf5;
  --movie: #ef4444;
  --movie-bg: #fef2f2;
  --tv: #f59e0b;
  --tv-bg: #fffbeb;
  --anime: #8b5cf6;
  --anime-bg: #f5f3ff;
  --variety: #ec4899;
  --variety-bg: #fdf2f8;
  --bl: #e11d74;
  --bl-bg: #fdf0f6;
  --novel: #0ea5e9;
  --novel-bg: #ecfeff;
  --card-radius: 14px;
  --radius: 12px;
  --ease: .2s cubic-bezier(.4,0,.2,1);
  --shadow-sm: 0 1px 3px rgba(0,0,0,.04), 0 1px 2px rgba(0,0,0,.03);
  --shadow-md: 0 4px 16px rgba(0,0,0,.07), 0 1px 3px rgba(0,0,0,.04);
  --shadow-lg: 0 10px 32px rgba(0,0,0,.10), 0 2px 6px rgba(0,0,0,.04);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1360px; width: 100%; margin: 0 auto; padding: 0 24px; }

/* ===== 顶栏 ===== */
.header {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(0,0,0,.15), 0 0 0 1px rgba(0,0,0,.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  gap: 20px;
}

.version-tag {
  font-size: 0.65rem;
  color: #94a3b8;
  flex-shrink: 0;
  letter-spacing: .3px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.1);
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 500;
}
.logo { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.logo-icon { font-size: 1.3rem; }
.logo-text {
  font-size: 1.15rem;
  font-weight: 800;
  color: #f1f5f9;
  letter-spacing: .3px;
}

.search-box { position: relative; max-width: 420px; flex: 1; }

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: rgba(255,255,255,.45);
  pointer-events: none;
  transition: color var(--ease);
}

.search-box input {
  width: 100%;
  padding: 9px 16px 9px 38px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  background: rgba(255,255,255,.07);
  color: #f1f5f9;
  font-size: 0.85rem;
  outline: none;
  transition: all var(--ease);
}

.search-box input::placeholder { color: rgba(255,255,255,.4); }
.search-box input:focus {
  background: rgba(255,255,255,.13);
  border-color: rgba(255,255,255,.28);
  box-shadow: 0 0 0 3px rgba(91,110,247,.3);
}
.search-box:focus-within .search-icon { color: rgba(255,255,255,.7); }

/* ===== 主分类 Tabs ===== */
.tabs {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 56px;
  z-index: 90;
}

.tab-row {
  display: flex;
  gap: 6px;
  padding: 10px 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.tab-row::-webkit-scrollbar { display: none; }

.tab {
  padding: 7px 20px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-2);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--ease);
  position: relative;
}

.tab:hover { background: rgba(0,0,0,.04); color: var(--text); }
.tab.active {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(91,110,247,.35);
}

/* ===== 子分类 Tags ===== */
.sub-tags { background: var(--surface); border-bottom: 1px solid var(--border); }

.sub-tag-row {
  display: flex;
  gap: 6px;
  padding: 8px 0;
  overflow-x: auto;
  scrollbar-width: none;
  flex-wrap: wrap;
}
.sub-tag-row::-webkit-scrollbar { display: none; }
.sub-tag-row:empty { padding: 0; }

.sub-tag {
  padding: 5px 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #fff;
  color: var(--text-2);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--ease);
}

.sub-tag:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-bg); }
.sub-tag.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 2px 8px rgba(91,110,247,.25);
}

/* ===== 分类标题行 ===== */
.section-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 16px 0 8px;
}
.section-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}
.section-count {
  font-size: 0.82rem;
  color: var(--text-3);
  font-weight: 400;
}

/* ===== 统计 ===== */
.stats {
  padding: 0;
  font-size: 0.82rem;
  color: var(--text-2);
  display: none;
}
.stats strong { color: var(--accent); font-weight: 700; }

/* ===== 资源网格 ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 20px;
  padding: 4px 0 56px;
  width: 100%;
}

.card {
  background: var(--surface);
  border-radius: var(--card-radius);
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
  content-visibility: auto;
  contain-intrinsic-size: 0 350px;
  animation: cardIn .35s cubic-bezier(.4,0,.2,1) both;
  box-shadow: var(--shadow-sm);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #d1d5db;
}

.card-cover {
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, #eef0f4, #e2e5ea);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  position: relative;
  overflow: hidden;
}

.card-cover::after { display: none; }

.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s cubic-bezier(.4,0,.2,1);
}

.card:hover .card-cover img {
  transform: scale(1.04);
}

.card-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.62rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.4;
  z-index: 1;
  display: none;
}

.badge-game { background: var(--game); }
.badge-movie { background: var(--movie); }
.badge-tv { background: var(--tv); }
.badge-anime { background: var(--anime); }
.badge-variety { background: var(--variety); }
.badge-bl { background: var(--bl); }
.badge-novel { background: var(--novel); }

.card-sub-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 0.6rem;
  font-weight: 500;
  background: rgba(0,0,0,.5);
  color: #fff;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1;
}

.card-info {
  padding: 10px 12px 14px;
  min-height: 64px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-title {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--text);
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 0;
  font-size: 0.75rem;
  color: var(--text-3);
}

.card-meta-sep {
  margin: 0 5px;
  color: var(--text-3);
  opacity: .6;
}

.card-tag {
  padding: 2px 7px;
  background: var(--bg);
  color: var(--text-2);
  border-radius: 4px;
  font-size: 0.66rem;
  font-weight: 500;
  display: none;
}

/* ===== 封面占位 ===== */
.cover-fallback {
  color: var(--text-3);
  font-size: 0.82rem;
  text-align: center;
  line-height: 1.4;
}

/* ===== 骨架屏 ===== */
.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 20px;
  padding: 4px 0 56px;
  width: 100%;
}
.skeleton-card {
  border-radius: var(--card-radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
}
.skeleton-cover {
  aspect-ratio: 2 / 3;
  background: linear-gradient(110deg, #eef0f4 30%, #f6f7f9 50%, #eef0f4 70%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
}
.skeleton-info { padding: 12px; }
.skeleton-line {
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(110deg, #eef0f4 30%, #f6f7f9 50%, #eef0f4 70%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  margin-bottom: 8px;
}
.skeleton-line:last-child { width: 60%; margin-bottom: 0; }

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ===== 空状态 ===== */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-2);
}
.empty-state svg { width: 80px; height: 80px; margin-bottom: 18px; opacity: .5; }
.empty-state p { font-size: 0.92rem; line-height: 1.6; }
.empty-state .empty-hint { font-size: 0.8rem; color: var(--text-3); margin-top: 6px; }

/* ===== 弹窗 ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background: #fff;
  border-radius: 16px;
  max-width: 460px;
  width: 100%;
  position: relative;
  padding: 28px 24px 24px;
  box-shadow: 0 24px 64px rgba(0,0,0,.2);
  transform: translateY(16px) scale(.98);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-overlay.active .modal { transform: translateY(0) scale(1); }

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  background: var(--bg);
  border-radius: 50%;
  font-size: 1.15rem;
  color: var(--text-2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--ease);
  line-height: 1;
}

.modal-close:hover { background: #e5e7eb; color: var(--text); }

.modal-cover {
  width: 100%;
  max-height: 380px;
  object-fit: contain;
  border-radius: 10px;
  margin-bottom: 14px;
  background: var(--bg);
}

.modal-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}

.modal-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
  line-height: 1.35;
}

.modal-year {
  font-size: 0.82rem;
  color: var(--text-2);
  margin-bottom: 10px;
}

.modal-desc {
  font-size: 0.86rem;
  color: #555;
  line-height: 1.7;
  margin-bottom: 14px;
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.modal-tag {
  padding: 3px 10px;
  background: var(--accent-bg);
  color: var(--accent);
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 500;
  transition: background var(--ease);
}

.modal-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }

.modal-link {
  display: inline-block;
  min-width: 110px;
  flex: 1 1 110px;
  padding: 11px 0;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: all var(--ease);
}

.modal-link:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(91,110,247,.3); }

.modal-link.disabled {
  background: #e5e7eb;
  color: #9ca3af;
  cursor: not-allowed;
}
.modal-link.disabled:hover { transform: none; box-shadow: none; background: #e5e7eb; }

/* ===== 链接弹出框 ===== */
.link-popup {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  margin-top: 8px;
  animation: popIn .2s cubic-bezier(.4,0,.2,1);
}
.link-popup-url {
  font-size: 0.78rem;
  color: var(--text-2);
  word-break: break-all;
  margin-bottom: 10px;
  line-height: 1.5;
}
.link-popup-code-row {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; margin-bottom: 10px;
  background: var(--surface); border: 1px dashed var(--accent);
  border-radius: 8px;
}
.link-popup-code-label {
  font-size: 0.72rem; color: var(--text-3); font-weight: 600;
  background: var(--accent-bg); color: var(--accent);
  padding: 2px 7px; border-radius: 5px;
}
.link-popup-code {
  flex: 1; font-family: 'Menlo', 'Consolas', monospace;
  font-size: 0.9rem; color: var(--text); font-weight: 600;
  word-break: break-all;
}
.link-popup-code-copy {
  border: none; background: var(--accent); color: #fff;
  padding: 5px 12px; border-radius: 6px; font-size: 0.78rem;
  cursor: pointer; font-weight: 500; transition: background 0.15s;
}
.link-popup-code-copy:hover { background: var(--accent-hover); }
.link-popup-btns { display: flex; gap: 8px; }
.link-popup-copy, .link-popup-open {
  flex: 1;
  padding: 9px 0;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: all .15s ease;
  text-decoration: none;
  display: inline-block;
}
.link-popup-copy { background: var(--accent); color: #fff; }
.link-popup-open { background: #1e293b; color: #fff; }
.link-popup-copy:hover { background: var(--accent-hover); }
.link-popup-open:hover { background: #334155; }

/* ===== 页脚 ===== */
.footer {
  margin-top: auto;
  padding: 20px 0;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-2);
  border-top: 1px solid var(--border);
}

/* ===== 动画 ===== */
@keyframes cardIn {
  from { opacity: 0; transform: translateY(20px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes popIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ===== 响应式：大屏幕 ===== */
@media (min-width: 1600px) {
  .grid, .skeleton-grid { grid-template-columns: repeat(7, 1fr); }
}

/* ===== 响应式：桌面端 ===== */
@media (min-width: 1200px) and (max-width: 1599px) {
  .grid, .skeleton-grid { grid-template-columns: repeat(6, 1fr); }
}

/* ===== 响应式：中等屏幕 ===== */
@media (min-width: 900px) and (max-width: 1199px) {
  .grid, .skeleton-grid { grid-template-columns: repeat(5, 1fr); }
}

/* ===== 响应式：小桌面/平板横屏 ===== */
@media (min-width: 641px) and (max-width: 899px) {
  .grid, .skeleton-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .container { padding: 0 20px; }
}

/* ===== 响应式：手机端 ===== */
@media (max-width: 640px) {
  .header-inner {
    height: 48px;
    gap: 12px;
  }
  .logo-text { font-size: 1rem; }
  .search-box { max-width: none; }
  .search-box input { padding: 8px 12px 8px 34px; font-size: 0.82rem; }

  .tabs { top: 48px; }
  .tab-row { padding: 8px 0; gap: 4px; flex-wrap: nowrap; }
  .tab { padding: 6px 14px; font-size: 0.8rem; }

  .sub-tag-row { padding: 6px 0; gap: 5px; flex-wrap: nowrap; }
  .sub-tag { padding: 4px 10px; font-size: 0.72rem; }

  .section-header { padding: 12px 0 6px; }
  .section-title { font-size: 1rem; }
  .section-count { font-size: 0.75rem; }

  .grid, .skeleton-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 4px 0 24px;
  }

  .card { border-radius: 10px; box-shadow: none; }
  .card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
  .card-cover { font-size: 1.8rem; }
  .card-sub-badge { padding: 1px 5px; font-size: 0.52rem; top: 5px; right: 5px; }
  .card-info { padding: 8px 8px 10px; min-height: 52px; }
  .card-title { font-size: 0.76rem; margin-bottom: 3px; }
  .card-meta { font-size: 0.66rem; }

  .container { padding: 0 12px; }
  .footer { padding: 14px 0; font-size: 0.72rem; }
  .empty-state { padding: 50px 16px; }
}

@media (max-width: 420px) {
  .logo-text { display: none; }
  .grid, .skeleton-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .container { padding: 0 10px; }
}

/* ===== 每日更新热剧 ===== */
.hot-section {
  margin: 8px 0 4px;
  padding: 18px 0 14px;
  background: linear-gradient(135deg, #fff5f5 0%, #fff1f9 50%, #f5f3ff 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.hot-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.hot-title-wrap { display: flex; align-items: baseline; gap: 8px; }
.hot-flame { font-size: 1.15rem; }
.hot-title {
  font-size: 1.05rem; font-weight: 700; color: var(--text);
  margin: 0;
}
.hot-sub { font-size: 0.78rem; color: var(--text-2); }
.hot-nav { display: flex; gap: 6px; }
.hot-nav-btn {
  width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--surface); color: var(--text-2); cursor: pointer;
  font-size: 1.15rem; line-height: 1; display: flex; align-items: center; justify-content: center;
  transition: all var(--ease);
}
.hot-nav-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.hot-scroll {
  display: flex; gap: 12px; overflow-x: auto; scroll-behavior: smooth;
  padding-bottom: 6px;
  scrollbar-width: thin;
}
.hot-scroll::-webkit-scrollbar { height: 6px; }
.hot-scroll::-webkit-scrollbar-track { background: transparent; }
.hot-scroll::-webkit-scrollbar-thumb { background: rgba(0,0,0,.15); border-radius: 3px; }

.hot-card {
  flex: 0 0 132px; cursor: pointer; position: relative;
  transition: transform var(--ease);
}
.hot-card:hover { transform: translateY(-3px); }
.hot-cover {
  position: relative; width: 132px; height: 188px;
  border-radius: 10px; overflow: hidden; background: #ddd;
  box-shadow: var(--shadow-sm);
}
.hot-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hot-cover .cover-fallback {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #e2e8f0, #cbd5e1); color: #64748b; font-size: 0.75rem;
}
.hot-rank {
  position: absolute; top: 0; left: 0;
  background: linear-gradient(135deg, #ef4444, #ec4899);
  color: #fff; font-weight: 700; font-size: 0.85rem;
  padding: 3px 9px 4px; border-radius: 10px 0 10px 0;
  font-style: italic;
}
.hot-rank.rank-1 { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.hot-rank.rank-2 { background: linear-gradient(135deg, #94a3b8, #64748b); }
.hot-rank.rank-3 { background: linear-gradient(135deg, #d97706, #b45309); }
.hot-update {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 14px 6px 5px;
  background: linear-gradient(transparent, rgba(0,0,0,.85));
  color: #fff; font-size: 0.7rem; font-weight: 500;
  text-align: center;
}
.hot-update .dot { display: inline-block; width: 6px; height: 6px; background: #4ade80; border-radius: 50%; margin-right: 4px; vertical-align: middle; animation: pulse 1.5s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
.hot-info { padding: 8px 4px 0; width: 132px; box-sizing: border-box; }
.hot-name { font-size: 0.82rem; font-weight: 600; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.25; min-height: calc(0.82rem * 1.25 * 2); word-break: break-all; overflow-wrap: anywhere; }
.hot-meta { font-size: 0.7rem; color: var(--text-2); margin-top: 2px; }

@media (max-width: 480px) {
  .hot-card { flex: 0 0 110px; }
  .hot-cover { width: 110px; height: 156px; }
  .hot-info { width: 110px; }
  .hot-title { font-size: 0.95rem; }
}

@media (max-width: 340px) {
  .grid, .skeleton-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}

/* ===== 站长公告弹窗 ===== */
.notice-overlay {
  position: fixed; inset: 0;
  background: rgba(15, 20, 30, 0.55);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  animation: noticeFade 0.25s ease-out;
}
@keyframes noticeFade { from { opacity: 0; } to { opacity: 1; } }
.notice {
  position: relative;
  background: var(--surface);
  border-radius: 16px;
  padding: 28px 24px 22px;
  width: 100%; max-width: 380px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  animation: noticeSlide 0.3s cubic-bezier(.2,.8,.2,1);
}
@keyframes noticeSlide { from { transform: translateY(20px) scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
.notice-close {
  position: absolute; top: 10px; right: 12px;
  width: 32px; height: 32px; border: none; background: transparent;
  font-size: 24px; color: var(--text-2); cursor: pointer; border-radius: 8px;
  line-height: 1;
}
.notice-close:hover { background: var(--bg); color: var(--text); }
.notice-title {
  margin: 0 0 12px; font-size: 1.15rem; color: var(--text);
  display: flex; align-items: center; gap: 8px;
}
.notice-title::before {
  content: "📢"; font-size: 1.2rem;
}
.notice-text {
  margin: 0 0 16px; font-size: 0.92rem; color: var(--text-2); line-height: 1.6;
}
.notice-qq {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; margin-bottom: 8px;
  background: var(--bg); border-radius: 10px;
}
.notice-qq-label {
  font-size: 0.75rem; color: var(--text-3); font-weight: 600;
  background: var(--surface); padding: 2px 8px; border-radius: 6px;
  border: 1px solid var(--border);
}
.notice-qq-num {
  flex: 1; font-family: 'Menlo', 'Consolas', monospace;
  font-size: 1rem; color: var(--text); letter-spacing: 0.5px;
  font-weight: 600;
}
.notice-copy {
  border: none; background: var(--accent); color: #fff;
  padding: 6px 14px; border-radius: 8px; font-size: 0.82rem;
  cursor: pointer; font-weight: 500;
  transition: background 0.15s;
}
.notice-copy:hover { background: var(--accent-hover); }
.notice-copy.copied { background: var(--game); }
.notice-ok {
  width: 100%; margin-top: 14px;
  border: none; background: var(--accent); color: #fff;
  padding: 11px; border-radius: 10px; font-size: 0.95rem;
  font-weight: 600; cursor: pointer;
  transition: background 0.15s;
}
.notice-ok:hover { background: var(--accent-hover); }
