/*!
 * 磁力搜索网址大全 (cilisousuodaquan.com)  全站样式
 * 视觉参考 keyushe.com：暗色底 + 翡翠绿主色 + 金色点缀
 * 移动端优先，卡片宫格桌面端一行 4 个
 */

:root {
  --emerald-main: #00a86b;
  --emerald-light: #00ffcc;
  --emerald-deep: hwb(158 31% 13%);
  --gold-main: #ffd700;
  --gold-light: #ffe45e;
  --bg-dark: #090909;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.08);
  --line: rgba(0, 168, 107, 0.22);
  --text-white: #ffffff;
  --text-gray: #aaaaaa;
  --text-dark-gray: #888888;
  --transparent-white: rgba(255, 255, 255, 0.1);
  --radius: 12px;
  --maxw: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
               "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  background: var(--bg-dark);
  color: var(--text-white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
  padding: 20px 15px;
  font-size: 15px;
  line-height: 1.7;
}

a { color: var(--emerald-light); text-decoration: none; transition: color .25s ease; }
a:hover { color: var(--gold-main); }

img { max-width: 100%; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ===================== 顶部固定小导航 ===================== */
.top-nav {
  position: fixed; top: 16px; right: 20px; z-index: 100;
  display: flex; align-items: center; gap: 10px;
}
.top-nav-btn {
  padding: 6px 14px; font-size: 13px; font-weight: 500; line-height: 1.5;
  color: var(--emerald-light);
  background: rgba(0, 168, 107, 0.08);
  border: 1px solid rgba(0, 168, 107, 0.25);
  border-radius: 20px; white-space: nowrap;
  backdrop-filter: blur(8px);
  transition: all .3s ease;
}
.top-nav-btn:hover {
  background: rgba(0, 168, 107, 0.18);
  border-color: rgba(0, 168, 107, 0.45);
  color: var(--emerald-light);
  transform: translateY(-1px);
}
.top-nav-btn.gold-btn {
  color: var(--gold-main);
  background: rgba(255, 215, 0, 0.08);
  border-color: rgba(255, 215, 0, 0.25);
}
.top-nav-btn.gold-btn:hover {
  background: rgba(255, 215, 0, 0.15);
  border-color: rgba(255, 215, 0, 0.4);
  color: var(--gold-light);
}

/* ===================== Hero ===================== */
.hero {
  position: relative; width: 100%; max-width: var(--maxw);
  display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 46px 0 8px;
}
.hero--sm { padding: 26px 0 4px; }

.logo {
  font-size: clamp(1.9rem, 5.2vw, 3rem);
  font-weight: 800; line-height: 1.25; letter-spacing: -.5px;
  margin-bottom: .4rem;
  background: linear-gradient(135deg, var(--emerald-light), var(--emerald-main), var(--gold-main));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--emerald-light); /* 不支持背景裁剪时的回退色 */
}
.logo a { color: inherit; -webkit-text-fill-color: inherit; }
.logo a:hover { color: inherit; }
.logo--link { margin-bottom: .3rem; }

.slogan {
  color: var(--emerald-light); font-size: .82rem; letter-spacing: 2px;
  margin-bottom: 1.1rem; font-weight: 500; text-transform: uppercase;
}

/* ===================== 搜索框 ===================== */
.search-container {
  margin: .4rem 0 1rem; position: relative; z-index: 1;
  max-width: 620px; width: 100%;
  display: flex; align-items: center;
}
.search-icon {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  color: rgba(255, 255, 255, .45); font-size: 18px; pointer-events: none;
}
.search-input {
  width: 100%; padding: 13px 104px 13px 42px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 30px;
  background: var(--transparent-white);
  color: var(--text-white); font-size: 15px; outline: none;
  transition: all .3s ease;
}
.search-input::placeholder { color: rgba(255, 255, 255, .38); }
.search-input:focus {
  background: rgba(255, 255, 255, .15);
  box-shadow: 0 0 0 2px rgba(0, 168, 107, .25), 0 0 8px rgba(255, 215, 0, .12);
}
.search-btn {
  position: absolute; right: 5px; top: 50%; transform: translateY(-50%);
  padding: 8px 22px; border: 0; border-radius: 24px; cursor: pointer;
  font-size: 14px; font-weight: 600; color: #06120c;
  background: linear-gradient(135deg, var(--emerald-light), var(--emerald-main));
  transition: all .3s ease;
}
.search-btn:hover { filter: brightness(1.08); box-shadow: 0 3px 10px rgba(0, 255, 204, .25); }

/* ===================== 分类标签 ===================== */
.tag-container {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 8px; margin: .2rem 0 1.4rem; width: 100%; max-width: var(--maxw);
}
.tag {
  display: inline-block; padding: 6px 16px; font-size: 13.5px; line-height: 1.6;
  color: var(--text-gray);
  background: var(--transparent-white);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 20px; transition: all .3s ease;
}
.tag:hover { color: var(--text-white); background: rgba(0, 168, 107, .18); border-color: rgba(0, 168, 107, .4); }
.tag.active {
  background: linear-gradient(135deg, var(--emerald-light), var(--emerald-main));
  color: #06120c; font-weight: 600; border-color: transparent;
  box-shadow: 0 2px 8px rgba(0, 168, 107, .35);
}
.tag.active:hover { color: #06120c; }

/* ===================== 主体容器 ===================== */
.content {
  position: relative; z-index: 1; width: 100%; max-width: var(--maxw);
  padding: 0 0 2rem;
}

/* ===================== 区块标题 ===================== */
.section { margin-top: 2.2rem; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; margin-bottom: 14px; padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.section-title {
  font-size: 1.05rem; font-weight: 700; color: var(--text-white);
  display: flex; align-items: center; gap: 8px;
}
.section-title::before {
  content: ''; width: 4px; height: 17px; border-radius: 2px;
  background: linear-gradient(180deg, var(--emerald-light), var(--emerald-main));
}
.section-more { font-size: 13px; color: var(--emerald-light); }
.section-more:hover { color: var(--gold-main); }

/* ===================== 磁力站点宫格（一行 4 个） ===================== */
.filter-count {
  margin: 0 0 1.1rem; color: var(--emerald-light); font-size: .95rem; text-align: center;
}
.filter-count b { color: var(--gold-main); font-size: 1.05rem; }

.site-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px; width: 100%;
}
.site-card {
  display: flex; flex-direction: column; gap: 8px;
  padding: 16px 15px; border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(0, 168, 107, .05), rgba(0, 168, 107, .1));
  border: 1px solid rgba(0, 168, 107, .16);
  position: relative; overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease, background .3s ease;
}
.site-card::before {
  content: ''; position: absolute; top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 168, 107, .2), rgba(255, 215, 0, .14), transparent);
  transition: left .55s ease;
}
.site-card:hover {
  transform: translateY(-3px);
  background: linear-gradient(145deg, rgba(0, 168, 107, .14), rgba(0, 168, 107, .24));
  border-color: rgba(0, 168, 107, .4);
  box-shadow: 0 6px 18px rgba(0, 168, 107, .18), 0 2px 6px rgba(255, 215, 0, .08);
}
.site-card:hover::before { left: 100%; }
.site-card:hover .site-name { color: var(--emerald-light); }

.sc-top { display: flex; align-items: center; gap: 10px; }
.lcard-icon { flex: 0 0 auto; }
.site-name {
  font-size: 15.5px; font-weight: 700; color: var(--text-white);
  line-height: 1.4; transition: color .25s ease;
}
.site-desc {
  font-size: 12.5px; line-height: 1.6; color: var(--text-dark-gray);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 40px;
}
.sc-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 2px; font-size: 11.5px; color: rgba(255, 255, 255, .42);
}
.sc-cat { color: var(--emerald-main); }
.sc-go { color: var(--gold-main); }

/* ===================== 最新新闻 ===================== */
.news-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.news-item {
  display: flex; gap: 12px; padding: 14px 15px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, .06);
  transition: all .28s ease;
}
.news-item:hover {
  background: var(--bg-card-hover);
  border-color: rgba(0, 168, 107, .3);
  transform: translateY(-2px);
}
.news-main { flex: 1 1 auto; min-width: 0; }
.news-title {
  font-size: 15px; font-weight: 600; color: var(--text-white); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-item:hover .news-title { color: var(--emerald-light); }
.news-desc {
  margin-top: 5px; font-size: 12.5px; color: var(--text-dark-gray); line-height: 1.65;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-meta { margin-top: 7px; font-size: 11.5px; color: rgba(255, 255, 255, .35); display: flex; gap: 12px; }
.news-cat { color: var(--gold-main); }

/* 备用通用列表（搜索/分类页沿用） */
.lgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.lcard {
  display: flex; gap: 11px; padding: 14px;
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(0, 168, 107, .05), rgba(0, 168, 107, .1));
  border: 1px solid rgba(0, 168, 107, .16);
  transition: all .28s ease;
}
.lcard:hover {
  transform: translateY(-2px);
  background: linear-gradient(145deg, rgba(0, 168, 107, .14), rgba(0, 168, 107, .22));
  border-color: rgba(0, 168, 107, .38);
}
.lcard-main { flex: 1 1 auto; min-width: 0; }
.lcard-name { display: block; font-size: 14.5px; font-weight: 700; color: var(--text-white); line-height: 1.45; }
.lcard-desc {
  display: block; margin-top: 4px; font-size: 12.5px; color: var(--text-dark-gray); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.lcard-cat { display: block; margin-top: 6px; font-size: 11.5px; color: var(--emerald-main); }

/* ===================== 文章列表 ===================== */
.a-item {
  display: block; padding: 13px 15px; margin-bottom: 10px;
  border-radius: var(--radius);
  background: var(--bg-card); border: 1px solid rgba(255, 255, 255, .06);
  transition: all .28s ease;
}
.a-item:hover { background: var(--bg-card-hover); border-color: rgba(0, 168, 107, .3); }
.a-item-title { display: block; font-size: 14.5px; font-weight: 600; color: var(--text-white); line-height: 1.5; }
.a-item:hover .a-item-title { color: var(--emerald-light); }
.a-item-desc {
  display: block; margin-top: 4px; font-size: 12.5px; color: var(--text-dark-gray); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.a-item-meta { display: flex; gap: 14px; margin-top: 6px; font-size: 11.5px; color: rgba(255, 255, 255, .35); }

.art-item {
  padding: 16px 0; border-bottom: 1px dashed rgba(255, 255, 255, .09);
}
.art-item h2, .art-item h3 { font-size: 16.5px; font-weight: 700; line-height: 1.5; margin-bottom: 6px; }
.art-item p { font-size: 13.5px; color: var(--text-gray); line-height: 1.75; }
.art-meta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; font-size: 12px; color: rgba(255, 255, 255, .38); }
.art-cat { color: var(--gold-main); }

/* ===================== 页头 / 面包屑 ===================== */
.page-head { padding: 6px 0 4px; margin-bottom: 6px; }
.page-head h1 { font-size: 1.45rem; font-weight: 800; line-height: 1.45; color: var(--text-white); }
.ph-desc { margin-top: 8px; font-size: 13.5px; color: var(--text-gray); line-height: 1.8; }
.ph-meta { margin-top: 6px; font-size: 12.5px; color: rgba(255, 255, 255, .4); }
.ph-meta b { color: var(--emerald-light); }

.crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12.5px; margin: 4px 0 14px; color: var(--text-dark-gray); }
.crumb a { color: var(--text-dark-gray); }
.crumb a:hover { color: var(--emerald-light); }
.crumb-sep { color: rgba(255, 255, 255, .22); }
.crumb-cur { color: var(--emerald-light); }

/* ===================== 详情页 ===================== */
.detail {
  padding: 18px 20px; border-radius: var(--radius);
  background: var(--bg-card); border: 1px solid rgba(255, 255, 255, .07);
}
.detail h1 { font-size: 1.35rem; font-weight: 800; line-height: 1.5; color: var(--text-white); }
.detail-meta { display: flex; flex-wrap: wrap; gap: 16px; margin: 10px 0 14px; font-size: 12.5px; color: rgba(255, 255, 255, .42); }
.detail-body { font-size: 14.5px; line-height: 1.9; color: #d8d8d8; }
.detail-body h2 { font-size: 1.05rem; margin: 20px 0 8px; color: var(--emerald-light); }
.detail-body h3 { font-size: 1rem; margin: 18px 0 8px; color: var(--gold-light); }
.detail-body p { margin-bottom: 12px; }
.detail-body ul, .detail-body ol { margin: 0 0 14px 22px; }
.detail-body li { margin-bottom: 6px; }
.detail-body strong { color: var(--text-white); }
.detail-body a { text-decoration: underline; }

.magnet-box {
  margin-top: 18px; padding: 14px 16px; border-radius: var(--radius);
  background: rgba(0, 168, 107, .07); border: 1px dashed rgba(0, 168, 107, .35);
}
.mb-title { font-size: 13px; font-weight: 600; color: var(--emerald-light); margin-bottom: 8px; }
.mb-value { display: block; font-size: 12.5px; color: var(--text-gray); word-break: break-all; line-height: 1.7; }
.mb-tip { margin-top: 8px; font-size: 12px; color: var(--text-dark-gray); }

.btn {
  display: inline-block; padding: 10px 24px; border-radius: 24px;
  font-size: 14px; font-weight: 600; color: #06120c;
  background: linear-gradient(135deg, var(--emerald-light), var(--emerald-main));
  transition: all .3s ease;
}
.btn:hover { color: #06120c; filter: brightness(1.08); box-shadow: 0 4px 14px rgba(0, 255, 204, .25); }

.search-form { display: flex; gap: 10px; max-width: 560px; margin: 14px 0; }
.search-form input {
  flex: 1 1 auto; padding: 11px 16px; border-radius: 24px; font-size: 14px;
  border: 1px solid rgba(255, 255, 255, .1); background: var(--transparent-white); color: var(--text-white);
}
.search-form button {
  padding: 11px 24px; border: 0; border-radius: 24px; cursor: pointer; font-weight: 600;
  color: #06120c; background: linear-gradient(135deg, var(--emerald-light), var(--emerald-main));
}

.empty {
  padding: 34px 20px; text-align: center; border-radius: var(--radius);
  background: var(--bg-card); border: 1px dashed rgba(255, 255, 255, .12);
  color: var(--text-dark-gray); font-size: 14px;
}

/* ===================== 分页 ===================== */
.pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin: 26px 0 6px; }
.pg-btn {
  padding: 7px 14px; border-radius: 20px; font-size: 13.5px;
  color: var(--text-gray); background: var(--transparent-white);
  border: 1px solid rgba(255, 255, 255, .08); transition: all .25s ease;
}
.pg-btn:hover { color: #06120c; background: var(--emerald-light); border-color: transparent; }
.pg-btn.is-active {
  color: #06120c; font-weight: 700; border-color: transparent;
  background: linear-gradient(135deg, var(--emerald-light), var(--emerald-main));
}
.pg-btn.is-disabled { opacity: .4; cursor: default; }
.pg-btn.is-disabled:hover { color: var(--text-gray); background: var(--transparent-white); }
.pg-gap { color: var(--text-dark-gray); }
.pg-info { margin-left: 6px; font-size: 12.5px; color: var(--text-dark-gray); }

/* ===================== 页脚 ===================== */
.footer {
  position: relative; z-index: 1; width: 100%; max-width: var(--maxw);
  margin: 2.6rem auto .5rem; padding: 1.6rem 1rem 1.2rem;
  text-align: center; border-top: 1px solid rgba(0, 168, 107, .18);
}
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin-bottom: 14px; }
.footer-links a { font-size: 13px; color: var(--text-dark-gray); }
.footer-links a:hover { color: var(--gold-main); }
.footer-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin-bottom: 14px; }
.footer-tags .tag { font-size: 12px; padding: 4px 12px; }
.footer-text { color: var(--text-dark-gray); font-size: .85rem; line-height: 1.8; }
.footer-slogan { margin-top: 10px; color: var(--text-gray); font-size: .85rem; font-style: italic; }

/* ===================== 后台管理 ===================== */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; background: #0d1117; }
.login-box { width: 100%; max-width: 380px; padding: 30px 26px; border-radius: 14px; background: #161b22; border: 1px solid #26303d; }
.login-box h1 { font-size: 18px; margin-bottom: 18px; color: #e6edf3; }
.alert { padding: 10px 14px; border-radius: 8px; font-size: 13px; margin-bottom: 14px; }
.alert--ok { background: rgba(0, 168, 107, .14); color: #3ddc97; border: 1px solid rgba(0, 168, 107, .35); }
.alert--err { background: rgba(248, 81, 73, .12); color: #ff7b72; border: 1px solid rgba(248, 81, 73, .3); }

.adm { display: flex; min-height: 100vh; background: #0d1117; color: #c9d1d9; font-size: 14px; }
.adm-side { width: 190px; flex: 0 0 190px; background: #161b22; border-right: 1px solid #26303d; padding: 18px 0; }
.adm-side a { display: block; padding: 11px 20px; color: #8b949e; font-size: 14px; }
.adm-side a:hover { color: #e6edf3; background: rgba(255, 255, 255, .04); }
.adm-side a.is-active { color: #3ddc97; background: rgba(0, 168, 107, .12); border-right: 3px solid #00a86b; }
.as-brand { padding: 0 20px 16px; font-weight: 700; color: #e6edf3; font-size: 15px; }
.adm-main { flex: 1 1 auto; padding: 22px 26px; min-width: 0; }
.adm-top { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.adm-top h1 { font-size: 19px; color: #e6edf3; }
.adm-panel { background: #161b22; border: 1px solid #26303d; border-radius: 12px; padding: 18px 20px; margin-bottom: 18px; }
.adm-panel h2 { font-size: 15px; color: #e6edf3; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid #26303d; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row.full { grid-column: 1 / -1; }
.form-row label { font-size: 13px; color: #8b949e; }
.hint { color: #6e7681; font-size: 12px; margin-left: 6px; }
.inp, .sel, .txa {
  padding: 9px 12px; border-radius: 8px; font-size: 13.5px; width: 100%;
  background: #0d1117; border: 1px solid #30363d; color: #e6edf3;
  font-family: inherit;
}
.inp:focus, .sel:focus, .txa:focus { outline: none; border-color: #00a86b; }
.txa { min-height: 100px; resize: vertical; line-height: 1.7; }
.txa-code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; }
.form-actions { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; }
.btn-adm {
  display: inline-block; padding: 9px 20px; border-radius: 8px; border: 0; cursor: pointer;
  font-size: 13.5px; font-weight: 600; color: #06120c;
  background: linear-gradient(135deg, #00ffcc, #00a86b);
}
.btn-adm:hover { filter: brightness(1.08); color: #06120c; }
.btn-adm--gray { background: #30363d; color: #e6edf3; }
.btn-adm--gray:hover { background: #3d444d; color: #e6edf3; }
.btn-adm--danger { background: #da3633; color: #fff; }
.btn-adm--danger:hover { background: #f85149; color: #fff; }
.btn-adm--sm { padding: 5px 12px; font-size: 12.5px; }

.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th, .tbl td { padding: 9px 12px; border-bottom: 1px solid #26303d; text-align: left; vertical-align: top; }
.tbl th { color: #8b949e; font-weight: 600; background: rgba(255, 255, 255, .02); }
.tbl td { color: #c9d1d9; }
.tbl code { color: #3ddc97; font-size: 12px; }
.col-act { white-space: nowrap; }
.col-act a { color: #58a6ff; margin-right: 10px; font-size: 12.5px; }
.col-act form { display: inline; }

/* ===================== 响应式 ===================== */
@media (max-width: 1080px) {
  .site-grid, .lgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .site-grid, .lgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  body { padding: 14px 12px; font-size: 14.5px; }
  .top-nav { top: 12px; right: 12px; gap: 6px; }
  .top-nav-btn { padding: 4px 11px; font-size: 11.5px; }
  .hero { padding: 44px 0 4px; }
  .hero--sm { padding: 34px 0 2px; }
  .search-input { padding: 12px 96px 12px 40px; font-size: 14px; }
  .search-btn { padding: 7px 16px; font-size: 13px; }
  .tag { padding: 5px 13px; font-size: 12.5px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 4px; }
  .detail { padding: 15px 14px; }
  .adm { flex-direction: column; }
  .adm-side { width: 100%; flex: none; display: flex; overflow-x: auto; padding: 10px 0; border-right: 0; border-bottom: 1px solid #26303d; }
  .adm-side a { padding: 8px 14px; white-space: nowrap; }
  .as-brand { display: none; }
  .adm-main { padding: 16px 14px; }
  .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .site-grid, .lgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .site-card { padding: 12px 11px; }
  .site-name { font-size: 14px; }
  .site-desc { -webkit-line-clamp: 3; min-height: 0; }
}
