/* ============ 基础变量与重置 ============ */
:root {
  --primary: #4f6bff;
  --primary-2: #8a5cf6;
  --primary-soft: rgba(79, 107, 255, 0.08);
  --gradient: linear-gradient(135deg, #4f6bff 0%, #8a5cf6 100%);
  --gradient-soft: linear-gradient(135deg, rgba(79,107,255,.10), rgba(138,92,246,.10));
  --bg: #f6f7fb;
  --card: #ffffff;
  --text: #1f2329;
  --text-2: #646a73;
  --text-3: #9aa0a9;
  --border: #e8eaf0;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 6px 24px rgba(30, 41, 82, 0.06);
  --shadow-hover: 0 12px 32px rgba(79, 107, 255, 0.16);
  --maxw: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input { font-family: inherit; outline: none; border: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ============ 顶部导航 ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; }

.logo .logo-icon {
  width: 38px; height: 38px;
  border-radius: 11px;
  background: var(--gradient);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 20px;
  box-shadow: 0 6px 14px rgba(79, 107, 255, 0.35);
}

.logo .logo-text b { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }

.nav-links { display: flex; align-items: center; gap: 6px; }

.nav-links a {
  padding: 8px 16px;
  border-radius: 999px;
  color: var(--text-2);
  font-size: 15px;
  transition: all .2s;
}

.nav-links a:hover { color: var(--primary); background: var(--primary-soft); }
.nav-links a.active { color: var(--primary); background: var(--primary-soft); font-weight: 600; }

.header-mini-search {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 8px 6px 16px;
  min-width: 240px;
  transition: all .2s;
}
.header-mini-search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.header-mini-search input { flex: 1; background: transparent; font-size: 14px; color: var(--text); }
.header-mini-search input::placeholder { color: var(--text-3); }
.header-mini-search .icon { color: var(--text-3); font-size: 15px; }

.nav-right { display: flex; align-items: center; gap: 12px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 15px; font-weight: 500;
  padding: 9px 22px; border-radius: 999px;
  transition: all .2s; white-space: nowrap;
}
.btn-primary { background: var(--gradient); color: #fff; box-shadow: 0 6px 16px rgba(79,107,255,.3); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(79,107,255,.4); }
.btn-ghost { border: 1px solid var(--border); color: var(--text-2); background: #fff; }
.btn-ghost:hover { color: var(--primary); border-color: var(--primary); }

/* 移动端菜单按钮 */
.menu-toggle { display: none; width: 40px; height: 40px; border-radius: 10px; font-size: 20px; color: var(--text); }
.menu-toggle:hover { background: var(--primary-soft); }

/* 移动端展开的导航面板 */
.nav-links.open {
  position: absolute; top: 64px; left: 0; right: 0;
  flex-direction: column; align-items: stretch;
  background: #fff; border-bottom: 1px solid var(--border);
  padding: 10px 20px 16px; gap: 4px;
  box-shadow: 0 16px 28px rgba(0,0,0,.08);
  display: flex !important; z-index: 99;
  animation: navDrop .22s ease;
}
@keyframes navDrop { from { opacity: 0; transform: translateY(-8px);} to { opacity: 1; transform: none; } }

/* ============ 首页 Hero ============ */
.hero {
  background:
    radial-gradient(1200px 500px at 15% -10%, rgba(79,107,255,.16), transparent 60%),
    radial-gradient(1000px 480px at 90% -20%, rgba(138,92,246,.16), transparent 60%),
    linear-gradient(180deg, #fff 0%, var(--bg) 100%);
  padding: 72px 0 56px;
  text-align: center;
}

.hero .container { position: relative; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 7px 18px; border-radius: 999px;
  font-size: 13.5px; color: var(--text-2); margin-bottom: 22px;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #34c759; box-shadow: 0 0 0 3px rgba(52,199,89,.18); }

.hero h1 { font-size: 46px; line-height: 1.25; font-weight: 800; letter-spacing: .5px; }
.hero h1 .grad { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.sub { color: var(--text-2); font-size: 17px; margin: 16px auto 34px; max-width: 620px; }

/* 搜索框 */
.search-box {
  max-width: 720px; margin: 0 auto;
  background: #fff;
  border-radius: 999px;
  border: 2px solid transparent;
  box-shadow: var(--shadow-hover);
  display: flex; align-items: center;
  padding: 8px 8px 8px 26px;
  transition: border-color .2s;
}
.search-box:focus-within { border-color: var(--primary); }
.search-box .search-icon { font-size: 20px; color: var(--primary); margin-right: 12px; flex-shrink: 0; }
.search-box input { flex: 1; height: 44px; font-size: 17px; color: var(--text); background: transparent; min-width: 0; }
.search-box input::placeholder { color: var(--text-3); }
.search-box .btn-search {
  background: var(--gradient); color: #fff;
  height: 46px; padding: 0 32px; border-radius: 999px;
  font-size: 16px; font-weight: 600;
  box-shadow: 0 6px 16px rgba(79,107,255,.32);
  transition: all .2s; flex-shrink: 0;
}
.search-box .btn-search:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(79,107,255,.42); }

.hot-tags { margin-top: 22px; display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; font-size: 14px; }
.hot-tags .label { color: #ff7a45; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.hot-tags .label::before { content: ""; width: 8px; height: 8px; border-radius: 3px; background: linear-gradient(135deg,#ff7a45,#ffb03a); }
.hot-tags a {
  background: #fff; border: 1px solid var(--border);
  color: var(--text-2); padding: 5px 14px; border-radius: 999px;
  transition: all .2s;
}
.hot-tags a:hover { color: var(--primary); border-color: var(--primary); background: var(--primary-soft); }

/* 统计条 */
.stat-bar {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex; justify-content: center; flex-wrap: wrap;
  margin-top: 48px; padding: 26px 10px;
}
.stat-bar .stat { padding: 6px 44px; text-align: center; }
.stat-bar .stat + .stat { border-left: 1px solid var(--border); }
.stat-bar .num { font-size: 30px; font-weight: 800; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-bar .txt { color: var(--text-2); font-size: 14px; margin-top: 2px; }

/* ============ 通用板块 ============ */
.section { padding: 56px 0; }
.section .section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 26px; gap: 16px; flex-wrap: wrap; }
.section .section-title { font-size: 25px; font-weight: 800; display: flex; align-items: center; gap: 12px; }
.section .section-title::before {
  content: ""; width: 6px; height: 24px; border-radius: 4px;
  background: var(--gradient);
}
.section .section-title small { font-size: 14px; font-weight: 400; color: var(--text-3); margin-left: 4px; }
.section .more-link { color: var(--primary); font-size: 14.5px; display: inline-flex; align-items: center; gap: 4px; }
.section .more-link:hover { opacity: .8; }

/* ============ 分类卡片 ============ */
.cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.cat-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 12px 22px; text-align: center; cursor: pointer;
  transition: all .25s;
}
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: transparent; }
.cat-card .icon {
  width: 60px; height: 60px; margin: 0 auto 14px; border-radius: 18px;
  display: flex; align-items: center; justify-content: center; font-size: 28px;
  background: var(--gradient-soft);
  transition: transform .25s;
}
.cat-card:hover .icon { transform: scale(1.1) rotate(-4deg); }
.cat-card .name { font-weight: 600; font-size: 16px; }
.cat-card .count { font-size: 12.5px; color: var(--text-3); margin-top: 4px; }
/* 每个分类不同配色 */
.cat-card.c1 .icon { background: rgba(79,107,255,.1); }
.cat-card.c2 .icon { background: rgba(52,199,89,.12); }
.cat-card.c3 .icon { background: rgba(255,122,69,.12); }
.cat-card.c4 .icon { background: rgba(138,92,246,.12); }
.cat-card.c5 .icon { background: rgba(255,177,58,.14); }
.cat-card.c6 .icon { background: rgba(0,187,255,.12); }

/* ============ 资源卡片（首页推荐网格） ============ */
.res-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.res-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; cursor: pointer; display: flex; flex-direction: column;
  transition: all .25s;
}
.res-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: transparent; }
.res-card .thumb {
  height: 120px; background: var(--gradient-soft); position: relative;
  display: flex; align-items: center; justify-content: center; font-size: 42px;
}
.res-card .thumb .filetype-badge {
  position: absolute; top: 12px; left: 12px;
  background: rgba(0,0,0,.45); color: #fff; backdrop-filter: blur(4px);
  font-size: 12px; padding: 3px 10px; border-radius: 999px;
}
.res-card .thumb .disk-badge {
  position: absolute; top: 12px; right: 12px;
  color: #fff; font-size: 11px; padding: 3px 10px; border-radius: 999px;
  font-weight: 600; backdrop-filter: blur(4px);
}
.res-card .body { padding: 14px 16px 16px; flex: 1; display: flex; flex-direction: column; }
.res-card .title { font-weight: 600; font-size: 15px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 43px; }
.res-card .meta { display: flex; justify-content: space-between; color: var(--text-3); font-size: 12.5px; margin-top: 12px; }
.res-card .tags { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.res-card .tags span {
  background: var(--primary-soft); color: var(--primary); font-size: 11.5px;
  padding: 2px 9px; border-radius: 6px;
}
.res-card .tags span:nth-child(2) { background: rgba(52,199,89,.12); color: #1d9e4f; }
.res-card .tags span:nth-child(3) { background: rgba(255,122,69,.12); color: #e8590c; }

/* 网盘类型色彩 */
.disk-baidu { background: #2b5be8; }
.disk-ali { background: #6a5cff; }
.disk-quark { background: #00b7ff; }
.disk-xunlei { background: #07c160; }
.disk-115 { background: #ff7a45; }
.disk-tianyi { background: #e03a2f; }

/* ============ 最新收录列表 ============ */
.new-list { display: grid; gap: 12px; }
.new-item {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 18px; display: flex; align-items: center; gap: 16px;
  transition: all .2s; cursor: pointer;
}
.new-item:hover { box-shadow: var(--shadow-hover); border-color: transparent; transform: translateX(4px); }
.new-item .type-ic {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px;
  background: var(--gradient-soft); display: flex; align-items: center; justify-content: center; font-size: 21px;
}
.new-item .info { flex: 1; min-width: 0; }
.new-item .info .t { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.new-item .info .d { font-size: 13px; color: var(--text-3); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.new-item .size { color: var(--text-2); font-size: 13px; flex-shrink: 0; }
.new-item .time { color: var(--text-3); font-size: 12.5px; flex-shrink: 0; width: 92px; text-align: right; }

/* ============ 搜索页 ============ */
.search-top {
  background: linear-gradient(180deg, #fff 0%, var(--bg) 100%);
  padding: 30px 0 0;
}
.search-top .result-summary { color: var(--text-2); font-size: 15px; margin-top: 16px; }
.search-top .result-summary b { color: var(--primary); font-size: 18px; margin: 0 3px; }
.search-top .kw-box { display: flex; align-items: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.search-top .kw-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--gradient); color: #fff; font-size: 15px; font-weight: 600;
  padding: 8px 18px; border-radius: 999px;
}
.search-top .kw-tag button { color: #fff; opacity: .8; font-size: 15px; }
.search-top .kw-tag button:hover { opacity: 1; }
.search-top .suggest a { font-size: 13.5px; color: var(--text-3); border: 1px solid var(--border); background: #fff; padding: 6px 12px; border-radius: 999px; }
.search-top .suggest a:hover { color: var(--primary); border-color: var(--primary); }

/* 布局：主区 + 侧栏 */
.layout { display: flex; gap: 22px; padding: 24px 0 60px; align-items: flex-start; }
.layout-main { flex: 1; min-width: 0; }
.layout-side { width: 300px; flex-shrink: 0; position: sticky; top: 84px; }

/* 筛选面板 */
.filter-panel {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 18px 20px; margin-bottom: 16px;
}
.filter-row { display: flex; align-items: center; gap: 10px; }
.filter-row + .filter-row { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--border); }
.filter-row .f-label { width: 72px; flex-shrink: 0; color: var(--text-2); font-size: 14px; font-weight: 600; }
.f-chips { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; }
.f-chip {
  font-size: 13.5px; color: var(--text-2); background: var(--bg);
  border: 1px solid var(--border); padding: 5px 14px; border-radius: 999px;
  transition: all .2s;
}
.f-chip:hover { color: var(--primary); border-color: var(--primary); }
.f-chip.active { background: var(--gradient); color: #fff; border-color: transparent; box-shadow: 0 4px 12px rgba(79,107,255,.25); }

/* 结果列表头 */
.list-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.list-head .title { font-size: 17px; font-weight: 700; }
.sort-group { display: flex; gap: 4px; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 3px; }
.sort-group button { font-size: 13px; color: var(--text-2); padding: 5px 14px; border-radius: 8px; transition: all .2s; }
.sort-group button.active { background: var(--gradient); color: #fff; font-weight: 600; }

/* 资源列表行 */
.res-list { display: grid; gap: 12px; }
.res-row {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 18px; display: flex; gap: 16px; transition: all .2s; cursor: pointer; align-items: center;
}
.res-row:hover { box-shadow: var(--shadow-hover); border-color: transparent; transform: translateY(-2px); }
.res-row .type-ic {
  width: 58px; height: 58px; border-radius: 16px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 26px;
  background: var(--gradient-soft); position: relative;
}
.res-row .type-ic .hot { position: absolute; top: -7px; right: -7px; font-size: 10px; color: #fff; background: #ff4d4f; border-radius: 999px; padding: 2px 7px; font-weight: 700; }
.res-row .main { flex: 1; min-width: 0; }
.res-row .main .row-title { font-weight: 600; font-size: 15.5px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.res-row .main .row-desc { font-size: 13px; color: var(--text-3); margin-top: 5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.res-row .main .row-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 9px; color: var(--text-3); font-size: 12.5px; align-items: center; }
.res-row .main .row-meta b { color: var(--text-2); font-weight: 600; }
.disk-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: #fff; padding: 2px 10px; border-radius: 6px; }
.ft-tag { background: var(--primary-soft); color: var(--primary); font-size: 12px; padding: 2px 9px; border-radius: 6px; font-weight: 600; }

.res-row .actions { display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; align-items: flex-end; }
.res-row .actions .code {
  font-size: 12px; color: var(--text-3); background: var(--bg);
  border: 1px dashed var(--border); padding: 3px 10px; border-radius: 8px;
}
.res-row .actions .code b { color: #e8590c; letter-spacing: 1px; }
.go-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; font-weight: 600; color: #fff; background: var(--gradient);
  padding: 7px 18px; border-radius: 999px; box-shadow: 0 4px 12px rgba(79,107,255,.28);
  transition: all .2s;
}
.go-link:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(79,107,255,.4); }
.go-link.light { background: var(--primary-soft); color: var(--primary); box-shadow: none; }
.go-link.light:hover { background: rgba(79,107,255,.18); }
.go-link.green { background: #07c160; box-shadow: 0 4px 12px rgba(7,193,96,.3); }

/* ============ 侧栏 ============ */
.side-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; margin-bottom: 16px; }
.side-card h3 { font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.side-card h3::before { content: ""; width: 5px; height: 16px; border-radius: 3px; background: var(--gradient); }
.side-list { display: flex; flex-direction: column; gap: 4px; }
.side-list a { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--text-2); padding: 8px 10px; border-radius: 10px; transition: all .2s; }
.side-list a:hover { background: var(--primary-soft); color: var(--primary); }
.side-list .rank { font-size: 13px; font-weight: 700; color: #c9cdd4; width: 22px; }
.side-list a:nth-child(1) .rank, .side-list a:nth-child(2) .rank, .side-list a:nth-child(3) .rank { color: #ff7a45; }

/* ============ 分页 ============ */
.pagination { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 30px; flex-wrap: wrap; }
.pagination button {
  min-width: 38px; height: 38px; padding: 0 12px; border-radius: 10px;
  background: #fff; border: 1px solid var(--border); font-size: 14px; color: var(--text-2);
  transition: all .2s; display: inline-flex; align-items: center; justify-content: center;
}
.pagination button:hover:not(:disabled) { color: var(--primary); border-color: var(--primary); }
.pagination button.active { background: var(--gradient); color: #fff; border-color: transparent; font-weight: 600; }
.pagination button:disabled { opacity: .45; cursor: not-allowed; }
.pagination .dots { color: var(--text-3); padding: 0 4px; }

/* ============ TG 频道 ============ */
.hero.tg-hero { padding: 48px 0 34px; }
.tg-quick { justify-content: center; margin-top: 22px; }

.tg-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tg-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 8px;
  transition: all .25s;
}
.tg-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: transparent; }
.tg-card .tg-head { display: flex; align-items: center; justify-content: space-between; }
.tg-card .tg-avatar {
  width: 46px; height: 46px; border-radius: 14px; background: var(--gradient-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700; color: var(--primary);
}
.tg-card .tg-cat {
  background: var(--primary-soft); color: var(--primary);
  font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 6px;
}
.tg-card .tg-name { font-size: 15.5px; font-weight: 700; word-break: break-all; }
.tg-card .tg-desc { font-size: 13px; color: var(--text-3); min-height: 40px; }
.tg-card .tg-url { font-size: 12.5px; color: var(--text-3); word-break: break-all; }
.tg-card .tg-actions { display: flex; gap: 8px; margin-top: 2px; }
.tg-card .tg-actions .go-link { flex: 1; justify-content: center; padding: 7px 10px; font-size: 13px; }

/* ============ 空状态 ============ */
.empty-state { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 70px 20px; text-align: center; }
.empty-state .e-ic { font-size: 56px; margin-bottom: 14px; }
.empty-state .e-t { font-size: 18px; font-weight: 700; }
.empty-state .e-d { color: var(--text-3); font-size: 14px; margin-top: 8px; }

/* ============ 页脚 ============ */
.site-footer { margin-top: auto; background: #151a26; color: #9aa0a9; padding: 44px 0 30px; font-size: 14px; }
.site-footer .f-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 34px; padding-bottom: 26px; border-bottom: 1px solid rgba(255,255,255,.08); }
.site-footer h4 { color: #fff; font-size: 16px; margin-bottom: 14px; }
.site-footer .f-desc { color: #7c828d; line-height: 1.9; margin-top: 12px; }
.site-footer ul li { margin-bottom: 8px; }
.site-footer ul a:hover { color: #fff; }
.site-footer .f-bottom { text-align: center; padding-top: 22px; color: #6b7079; font-size: 13px; }
.site-footer .f-bottom b { color: var(--primary); }

/* Toast */
#toast {
  position: fixed; left: 50%; bottom: 46px; transform: translateX(-50%) translateY(20px);
  background: rgba(20,23,32,.92); color: #fff; font-size: 14px;
  padding: 12px 22px; border-radius: 12px; opacity: 0; pointer-events: none;
  transition: all .3s; z-index: 999; box-shadow: 0 8px 24px rgba(0,0,0,.2);
  display: flex; align-items: center; gap: 8px;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============ 响应式 ============ */
@media (max-width: 1024px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .res-grid { grid-template-columns: repeat(3, 1fr); }
  .tg-grid { grid-template-columns: repeat(3, 1fr); }
  .layout { flex-direction: column; }
  .layout-side { width: 100%; position: static; order: 2; }
  .header-mini-search { display: none; }
}

@media (max-width: 768px) {
  .hero h1 { font-size: 32px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .res-grid { grid-template-columns: repeat(2, 1fr); }
  .tg-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .search-box { border-radius: 20px; padding: 8px 12px 8px 18px; }
  .search-box .btn-search { width: 54px; padding: 0; font-size: 0; }
  .search-box .btn-search::before { content: "搜索"; font-size: 15px; }
  .stat-bar .stat { padding: 6px 20px; }
  .stat-bar .num { font-size: 24px; }
  .new-item .time { display: none; }
  .res-row { flex-wrap: wrap; }
  .res-row .actions { width: 100%; flex-direction: row; align-items: center; justify-content: space-between; }
  .site-footer .f-grid { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 480px) {
  .res-grid { grid-template-columns: 1fr; }
  .tg-grid { grid-template-columns: 1fr; }
  .filter-row { flex-direction: column; align-items: flex-start; }
  .filter-row .f-label { width: auto; }
}
