/* ===== 知学空间 · 全局样式 ===== */
:root {
  --cream: #f4f8ff;
  --pink: #dbe7ff;
  --peach: #cfe8ff;
  --coral: #5b8cff;
  --coral-deep: #3a66e0;
  --mint: #56c8f2;
  --mint-deep: #2d9bd8;
  --ink: #3b3b4f;
  --ink-soft: #6b6b80;
  --card: rgba(255, 255, 255, 0.78);
  --card-border: rgba(255, 255, 255, 0.9);
  --danger: #e03d55;
  --ok: #0da866;
  /* 移动端安全区（刘海/底部 Home 条） */
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { overflow-x: hidden; }
body {
  font-family: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
  color: var(--ink);
  min-height: 100vh;
  background:
    radial-gradient(1200px 800px at 85% -10%, var(--pink) 0%, transparent 60%),
    radial-gradient(1000px 700px at -10% 110%, var(--peach) 0%, transparent 55%),
    linear-gradient(150deg, #fbfdff 0%, var(--cream) 45%, #e8f0ff 100%);
  background-attachment: fixed;
  display: flex; flex-direction: column;
}
a { color: var(--coral-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
main { flex: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: 1.6rem 1.4rem 3rem; padding-left: calc(1.4rem + var(--safe-left)); padding-right: calc(1.4rem + var(--safe-right)); }

/* 顶部导航 */
.topnav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 1.2rem;
  padding: calc(0.75rem + var(--safe-top)) 1.4rem 0.75rem;
  padding-left: calc(1.4rem + var(--safe-left));
  padding-right: calc(1.4rem + var(--safe-right));
  background: rgba(255,255,255,0.82); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(91,140,255,0.15);
}
.topnav .logo { font-weight: 800; font-size: 1.25rem; color: var(--coral-deep); letter-spacing: 0.03em; white-space: nowrap; }
.topnav .logo:hover { text-decoration: none; }
.topnav nav { display: flex; gap: 0.4rem; flex: 1; flex-wrap: wrap; }
.topnav nav a {
  color: var(--ink-soft); font-size: 0.95rem; padding: 0.35rem 0.8rem;
  border-radius: 999px; transition: all .18s;
}
.topnav nav a:hover { color: var(--coral-deep); background: rgba(91,140,255,0.1); text-decoration: none; }
.topnav nav a.active { color: #fff; background: linear-gradient(180deg,#7da4ff,var(--coral)); }
.topnav nav a.nav-pill {
  font-size: 0.82rem; font-weight: 600; padding: 0.28rem 0.72rem;
  background: var(--acc-soft, #eef3ff); color: var(--acc, var(--coral));
}
.topnav nav a.nav-pill:hover { color: #fff; background: var(--acc, var(--coral)); }
.topnav nav a.nav-pill.active { color: #fff; background: var(--acc, var(--coral)); }
.topnav .who { font-size: 0.88rem; color: var(--ink-soft); white-space: nowrap; }
.topnav .who a { margin-left: 0.6rem; }

/* 通用卡片 */
.card {
  background: var(--card); border: 1.5px solid var(--card-border);
  border-radius: 18px; padding: 1.3rem 1.4rem;
  box-shadow: 0 10px 28px rgba(59,59,79,0.06);
}

/* ===== 首页 Hero ===== */
.hero2 {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: center;
  padding: 2.6rem 2.4rem; margin: 0.6rem 0 1.6rem;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255,255,255,0.94), rgba(240,246,255,0.72));
  border: 1.5px solid rgba(255,255,255,0.95);
  box-shadow: 0 24px 60px rgba(58,102,224,0.10);
}
.hero2::before, .hero2::after {
  content: ""; position: absolute; border-radius: 50%;
  filter: blur(46px); opacity: 0.6; pointer-events: none;
}
.hero2::before {
  width: 340px; height: 340px; right: -70px; top: -140px;
  background: radial-gradient(circle, #b8ccff, transparent 70%);
}
.hero2::after {
  width: 280px; height: 280px; left: -90px; bottom: -140px;
  background: radial-gradient(circle, #b9ecff, transparent 70%);
}
.hero2-copy { position: relative; z-index: 1; }
.hero2 h1 {
  font-size: clamp(1.9rem, 3.6vw, 2.8rem); line-height: 1.26;
  letter-spacing: -0.01em; color: var(--ink);
}
.hero2 h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--coral-deep), var(--mint-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero2 p { color: var(--ink-soft); margin-top: 0.9rem; max-width: 32rem; line-height: 1.85; }
.hero2 .badge {
  display: inline-block; font-size: 0.78rem; color: var(--mint-deep);
  background: rgba(86,200,242,0.16); border: 1px solid rgba(86,200,242,0.35);
  padding: 0.3rem 0.85rem; border-radius: 999px; margin-bottom: 0.9rem;
}
.hero2-actions { display: flex; gap: 0.8rem; margin-top: 1.5rem; flex-wrap: wrap; }
.btn.ghost {
  background: #fff; color: var(--coral-deep);
  box-shadow: 0 4px 0 #dbe6ff, 0 12px 22px rgba(58,102,224,0.10);
}
.btn.ghost:hover { box-shadow: 0 7px 0 #dbe6ff, 0 16px 26px rgba(58,102,224,0.16); }

/* 栏目主题色 */
.acc-edu { --acc: #4f7cff; --acc-soft: #e8efff; }
.acc-ai { --acc: #7c5cff; --acc-soft: #efeaff; }
.acc-finance { --acc: #12b981; --acc-soft: #e3f8f0; }
.acc-news { --acc: #f0892b; --acc-soft: #fff0e2; }
.acc-elec { --acc: #06b6d4; --acc-soft: #e1f9fd; }
.acc-bio { --acc: #14b8a6; --acc-soft: #e3faf6; }
.acc-sport { --acc: #ef4444; --acc-soft: #feecec; }
.acc-kaoyan { --acc: #d6336c; --acc-soft: #fdeaf1; }

/* 最新更新条 */
.latest-strip {
  margin-bottom: 2.2rem; padding: 1rem 1.25rem;
  background: rgba(255,255,255,0.7);
  border: 1.5px solid rgba(255,255,255,0.92);
  border-radius: 18px;
  box-shadow: 0 10px 26px rgba(59,59,79,0.05);
}
.ls-head {
  display: flex; align-items: center; gap: 0.45rem;
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.06em;
  color: var(--coral-deep); margin-bottom: 0.55rem;
}
.ls-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--danger);
  box-shadow: 0 0 0 4px rgba(224,61,85,0.14);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.82); }
}
.ls-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.8rem; }
.ls-item {
  display: flex; align-items: center; gap: 0.6rem; min-width: 0;
  padding: 0.45rem 0; border-bottom: 1px dashed #e6ecf8;
  font-size: 0.88rem; color: var(--ink);
}
.ls-item:hover { text-decoration: none; color: var(--coral-deep); }
.ls-cat {
  flex-shrink: 0; font-size: 0.7rem; font-weight: 600; white-space: nowrap;
  padding: 0.1rem 0.5rem; border-radius: 999px;
  background: var(--acc-soft, #eef3ff); color: var(--acc, var(--coral));
}
.ls-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ls-time { flex-shrink: 0; font-size: 0.72rem; color: #a3a3b8; }

/* 栏目区块 */
.colblock { --acc: var(--coral); --acc-soft: #eaf1ff; margin-bottom: 2.6rem; }
.colblock .colhead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.colblock .colhead h2 { font-size: 1.35rem; display: flex; align-items: center; }
.colblock .colhead h2::before {
  content: ""; display: inline-block; width: 5px; height: 1.05em; border-radius: 3px;
  background: linear-gradient(var(--acc, var(--coral)), var(--mint));
  margin-right: 0.6rem;
}
.colblock .colhead .more { font-size: 0.84rem; color: var(--acc, var(--coral-deep)); display: inline-flex; align-items: center; gap: 0.3rem; }
.colblock .colhead .more i { font-style: normal; transition: transform .18s; }
.colblock .colhead .more:hover { text-decoration: none; }
.colblock .colhead .more:hover i { transform: translateX(3px); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.2rem; }
.art-card {
  display: flex; flex-direction: column; padding: 0; overflow: hidden;
  border-radius: 20px; background: rgba(255,255,255,0.86);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.art-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 44px rgba(58,102,224,0.16);
  border-color: rgba(91,140,255,0.35);
}
.art-cover {
  display: block; position: relative; height: 146px; overflow: hidden;
  background: linear-gradient(135deg, var(--acc-soft, #eaf1ff), #f7faff);
}
.art-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.art-card:hover .art-cover img { transform: scale(1.06); }
.art-body { display: flex; flex-direction: column; gap: 0.45rem; padding: 0.95rem 1.1rem 1.05rem; flex: 1; }
.art-card h3 { font-size: 1rem; line-height: 1.55; }
.art-card h3 a { color: var(--ink); }
.art-card h3 a:hover { color: var(--acc, var(--coral-deep)); text-decoration: none; }
.art-card p { font-size: 0.85rem; color: var(--ink-soft); line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.art-meta { margin-top: auto; padding-top: 0.55rem; font-size: 0.75rem; color: #a3a3b8; display: flex; align-items: center; gap: 0.4rem; }
.art-meta .src { color: var(--acc, var(--coral-deep)); font-weight: 600; }
.art-meta .views { margin-left: auto; }
.art-meta .views::before { content: "阅读 "; }

/* 热门阅读 */
.hot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.8rem; padding: 0.9rem 1.3rem; }
.hot-item {
  display: flex; align-items: flex-start; gap: 0.7rem;
  padding: 0.55rem 0; border-bottom: 1px dashed #e6ecf8;
  color: var(--ink);
}
.hot-item:hover { text-decoration: none; color: var(--coral-deep); }
.hot-rank {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 8px;
  display: grid; place-items: center;
  font-size: 0.74rem; font-weight: 700; background: #eef2fb; color: #8a93a8;
  margin-top: 0.05rem;
}
.hot-item:nth-child(1) .hot-rank { background: linear-gradient(135deg, #ffb347, #ff7a45); color: #fff; }
.hot-item:nth-child(2) .hot-rank { background: linear-gradient(135deg, #9fb8ff, #5b8cff); color: #fff; }
.hot-item:nth-child(3) .hot-rank { background: linear-gradient(135deg, #7fe0c4, #12b981); color: #fff; }
.hot-title { flex: 1; min-width: 0; font-size: 0.9rem; line-height: 1.5; word-break: break-word; overflow-wrap: anywhere; }
.hot-views { flex-shrink: 0; font-size: 0.72rem; color: #a3a3b8; margin-top: 0.15rem; }

/* 列表页 */
.list-item { display: flex; gap: 1.1rem; padding: 1.1rem 0; border-bottom: 1px dashed #dde4f5; }
.list-item img { width: 180px; height: 110px; object-fit: cover; border-radius: 12px; flex-shrink: 0; background: #e8f0ff; }
.list-item h3 { font-size: 1.1rem; margin-bottom: 0.45rem; }
.list-item h3 a { color: var(--ink); }
.list-item h3 a:hover { color: var(--coral-deep); }
.list-item p { font-size: 0.88rem; color: var(--ink-soft); line-height: 1.7; }
.list-item .meta { font-size: 0.78rem; color: #a3a3b8; margin-top: 0.5rem; }
.pager { display: flex; gap: 0.7rem; justify-content: center; margin-top: 1.6rem; }

/* 文章页 */
.article-wrap { max-width: 820px; margin: 0 auto; }
.article-wrap h1 { font-size: 1.75rem; line-height: 1.45; margin-bottom: 0.7rem; }
.article-wrap h1 a.title-src-link { color: inherit; text-decoration: none; border-bottom: 1px dashed transparent; transition: color .15s, border-color .15s; }
.article-wrap h1 a.title-src-link:hover { color: var(--coral-deep, #3d63f5); border-bottom-color: currentColor; text-decoration: none; }
.article-meta { font-size: 0.82rem; color: #a3a3b8; display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.disclaimer {
  font-size: 0.82rem; color: #8a6d3b; background: #fcf8e3;
  border: 1px solid #f0e3b6; border-radius: 12px; padding: 0.7rem 1rem; margin-bottom: 1.2rem;
}
.article-body { line-height: 2; font-size: 1rem; }
.article-body img { max-width: 100%; border-radius: 10px; }
.article-body blockquote { border-left: 4px solid var(--coral); padding-left: 1rem; color: var(--ink-soft); margin: 1rem 0; }
.article-body pre { background: #2f3240; color: #eee; padding: 1rem; border-radius: 10px; overflow-x: auto; font-size: 0.88rem; }

/* 评论区 */
.comments { margin-top: 2.4rem; }
.comment-item { padding: 0.9rem 0; border-bottom: 1px dashed #dde4f5; }
.comment-item .chead { display: flex; justify-content: space-between; font-size: 0.82rem; color: #a3a3b8; margin-bottom: 0.35rem; }
.comment-item .chead b { color: var(--coral-deep); }
.comment-item .cbody { line-height: 1.8; font-size: 0.95rem; white-space: pre-wrap; word-break: break-word; }
.report-btn { font-size: 0.76rem; color: #c8c8d6; cursor: pointer; background: none; border: none; }
.report-btn:hover { color: var(--danger); }
textarea, .text-input {
  width: 100%; font-family: inherit; font-size: 0.95rem; color: var(--ink);
  background: #fff; border: 1.5px solid #e3e9f8; border-radius: 14px;
  padding: 0.8rem 1rem; outline: none; transition: border-color .2s, box-shadow .2s;
}
textarea:focus, .text-input:focus { border-color: var(--coral); box-shadow: 0 6px 18px rgba(91,140,255,0.14); }
textarea { resize: vertical; min-height: 90px; }

/* 按钮 */
.btn {
  font-family: inherit; font-size: 0.98rem; color: #fff;
  background: linear-gradient(180deg, #7da4ff 0%, var(--coral) 55%, var(--coral-deep) 100%);
  border: none; border-radius: 14px; padding: 0.7rem 1.5rem; cursor: pointer;
  box-shadow: 0 5px 0 var(--coral-deep), 0 12px 22px rgba(58,102,224,0.28);
  transition: transform .14s, box-shadow .14s;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 8px 0 var(--coral-deep), 0 18px 28px rgba(58,102,224,0.34); }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--coral-deep); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.btn.gray { background: linear-gradient(180deg,#b9c2d8,#97a3bd); box-shadow: 0 5px 0 #7c8aa5, 0 12px 22px rgba(124,138,165,0.25); }
.btn.red { background: linear-gradient(180deg,#f06a80,#e03d55); box-shadow: 0 5px 0 #b02a3f, 0 12px 22px rgba(224,61,85,0.25); }
.btn.sm { font-size: 0.82rem; padding: 0.4rem 0.9rem; border-radius: 10px; }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 2.2rem; transform: translateX(-50%) translateY(20px);
  background: rgba(59,59,79,0.92); color: #fff; padding: 0.7rem 1.3rem;
  border-radius: 999px; font-size: 0.9rem; opacity: 0; pointer-events: none; z-index: 99;
  transition: opacity .25s, transform .25s; max-width: 86vw; text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.err { background: rgba(224,61,85,0.95); }

/* 页脚 */
.footer {
  display: flex; align-items: center; justify-content: center; gap: 0.7rem; flex-wrap: wrap;
  padding: 1rem; padding-bottom: calc(1rem + var(--safe-bottom));
  font-size: 0.78rem; color: var(--ink-soft);
  background: rgba(255,255,255,0.6); backdrop-filter: blur(4px);
  border-top: 1px solid rgba(91,140,255,0.12);
}
.footer a { color: var(--ink-soft); }
.footer a:hover { color: var(--coral-deep); text-decoration: none; }
.footer .sep { color: #c8c8d6; }
.footer .beian-icon { height: 1.1em; vertical-align: -0.18em; margin-right: 0.25rem; }

/* 管理后台 */
.admin-wrap { display: grid; grid-template-columns: 200px 1fr; gap: 1.4rem; }
.admin-side { position: sticky; top: 76px; align-self: start; }
.admin-side a {
  display: block; padding: 0.6rem 0.9rem; margin-bottom: 0.35rem;
  border-radius: 12px; color: var(--ink-soft); font-size: 0.92rem;
}
.admin-side a:hover { background: rgba(91,140,255,0.1); color: var(--coral-deep); text-decoration: none; }
.admin-side a.active { background: linear-gradient(180deg,#7da4ff,var(--coral)); color: #fff; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
table.tbl th, table.tbl td { padding: 0.55rem 0.6rem; text-align: left; border-bottom: 1px solid #e8edf8; }
table.tbl th { color: var(--ink-soft); font-weight: 500; font-size: 0.8rem; background: rgba(91,140,255,0.06); }
table.tbl tr:hover td { background: rgba(91,140,255,0.04); }
/* 登录日志：各列按内容最大宽度自适应，字段统一左对齐 */
.tbl-scroll { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.tbl.auto { width: auto; table-layout: auto; }
table.tbl.auto th, table.tbl.auto td { text-align: left; white-space: nowrap; padding: 0.5rem 0.3rem; }
table.tbl.auto th:first-child, table.tbl.auto td:first-child { padding-left: 0.6rem; }
table.tbl.auto th:last-child, table.tbl.auto td:last-child { padding-right: 0.6rem; }
.tag { display: inline-block; font-size: 0.74rem; padding: 0.12rem 0.55rem; border-radius: 999px; background: #eef2fb; color: var(--ink-soft); }
.tag.green { background: #e3f7ec; color: var(--ok); }
.tag.red { background: #fde8ec; color: var(--danger); }
.tag.orange { background: #fff3e0; color: #d97b06; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); gap: 1rem; margin-bottom: 1.4rem; }
.stat-grid .stat { text-align: center; padding: 1.2rem; }
.stat-grid .stat b { display: block; font-size: 1.8rem; color: var(--coral-deep); }
.stat-grid .stat span { font-size: 0.82rem; color: var(--ink-soft); }
.form-row { margin-bottom: 0.9rem; }
.form-row label { display: block; font-size: 0.82rem; color: var(--ink-soft); margin-bottom: 0.35rem; }
.dialog-mask { position: fixed; inset: 0; z-index: 80; background: rgba(40,45,70,0.45); display: none; align-items: center; justify-content: center; backdrop-filter: blur(4px); }
.dialog-mask.show { display: flex; }
.dialog { background: #fff; border-radius: 20px; padding: 1.6rem; width: 480px; max-width: 92vw; max-height: 88vh; overflow-y: auto; box-shadow: 0 30px 70px rgba(40,45,70,0.35); }
.dialog h3 { margin-bottom: 1rem; }
.dialog .actions { display: flex; gap: 0.7rem; justify-content: flex-end; margin-top: 1.1rem; }

/* ===== 平板 / 手机端适配（≤ 860px）===== */
@media (max-width: 860px) {
  main { padding: 1rem 1rem 2.4rem; padding-left: calc(1rem + var(--safe-left)); padding-right: calc(1rem + var(--safe-right)); }

  /* 导航：换行紧凑 */
  .topnav { flex-wrap: wrap; gap: 0.6rem; padding-bottom: 0.6rem; }
  .topnav .logo { font-size: 1.1rem; }
  .topnav nav { order: 3; flex-basis: 100%; gap: 0.3rem; }
  .topnav nav a { font-size: 0.88rem; padding: 0.3rem 0.65rem; }
  .topnav .who { font-size: 0.82rem; margin-left: auto; }

  /* 首页 Hero */
  .hero2 { grid-template-columns: 1fr; gap: 1.4rem; padding: 1.6rem 1.2rem; border-radius: 22px; }
  .hero2 h1 { font-size: clamp(1.5rem, 5.6vw, 2rem); }
  .hero2 p { font-size: 0.92rem; }

  /* 最新更新 / 热门 */
  .ls-list, .hot-grid { grid-template-columns: 1fr; gap: 0; }
  .latest-strip { padding: 0.85rem 1rem; }

  /* 栏目区块 */
  .colblock { margin-bottom: 2rem; }
  .colblock .colhead h2 { font-size: 1.15rem; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0.9rem; }
  .art-cover { height: 128px; }

  /* 列表页 */
  .list-item { gap: 0.8rem; padding: 0.9rem 0; }
  .list-item img { width: 110px; height: 76px; border-radius: 10px; }
  .list-item h3 { font-size: 1rem; }
  .list-item p { font-size: 0.82rem; }
  .list-item .meta { font-size: 0.72rem; }

  /* 文章详情页 */
  .article-wrap h1 { font-size: 1.35rem; line-height: 1.4; }
  .article-meta { font-size: 0.76rem; gap: 0.6rem; }
  .article-body { font-size: 0.95rem; line-height: 1.85; }
  .disclaimer { font-size: 0.78rem; padding: 0.6rem 0.8rem; }
  .comment-item .chead { font-size: 0.76rem; }
  .comment-item .cbody { font-size: 0.9rem; }

  /* 按钮 */
  .btn { width: 100%; padding: 0.8rem 1rem; }
  .btn.sm { width: auto; }
  .pager .btn { width: auto; }

  /* 对话框 */
  .dialog { width: 92vw; padding: 1.2rem; border-radius: 16px; }

  /* 后台 */
  .admin-wrap { grid-template-columns: 1fr; }
  .admin-side { position: static; display: flex; flex-wrap: wrap; gap: 0.35rem; }
  .admin-side a { font-size: 0.84rem; padding: 0.45rem 0.7rem; margin-bottom: 0; }
  .admin-main { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table.tbl { font-size: 0.8rem; min-width: 560px; width: 100%; }
  table.tbl.auto { width: auto; min-width: 0; }
  table.tbl th, table.tbl td { padding: 0.45rem 0.5rem; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 0.7rem; }
  .stat-grid .stat { padding: 0.9rem 0.6rem; }
  .stat-grid .stat b { font-size: 1.4rem; }
}

/* ===== 小屏手机（≤ 480px）===== */
@media (max-width: 480px) {
  main { padding: 0.8rem 0.75rem 2rem; padding-left: calc(0.75rem + var(--safe-left)); padding-right: calc(0.75rem + var(--safe-right)); }
  .card { padding: 1rem 1rem; border-radius: 16px; }
  .hero2 { padding: 1.4rem 1rem; }
  .hero2-actions .btn { width: 100%; }
  .grid { grid-template-columns: 1fr; }
  .list-item { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .list-item img { width: 100%; height: auto; aspect-ratio: 16/9; }
  .ls-cat { font-size: 0.66rem; padding: 0.1rem 0.4rem; }
  .ls-time { font-size: 0.68rem; }
  .article-wrap h1 { font-size: 1.2rem; }
  .footer { font-size: 0.7rem; gap: 0.4rem; padding: 0.8rem 0.5rem; padding-bottom: calc(0.8rem + var(--safe-bottom)); }
}

/* ===== 触控设备：移除 hover 造成的卡顿 ===== */
html[data-touch="true"] .art-card:hover,
html[data-touch="true"] .btn:hover,
html[data-touch="true"] .hot-item:hover,
html[data-touch="true"] .ls-item:hover {
  transform: none;
  box-shadow: none;
}
