/* ============================================================
   沪学门户 · 上海教育综合门户 —— 统一样式
   意象：宣纸 + 墨色 + 朱砂印章，编目书秩序感
   ============================================================ */

:root {
  --paper: #faf6ef;
  --paper-card: #fffdf8;
  --ink: #2b2a26;
  --ink-soft: #6e6a60;
  --seal: #b3643a;
  --seal-soft: #efe0d3;
  --seal-deep: #9a4f2c;
  --bamboo: #6f7f64;
  --indigo: #54708a;
  --hairline: rgba(43, 42, 38, 0.12);

  --serif: "Noto Serif SC", "Songti SC", "STSong", serif;
  --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;

  --ease: cubic-bezier(0.25, 0.6, 0.3, 1);
  --shadow: 0 6px 22px rgba(43, 42, 38, 0.07);
  --radius: 6px;
  --nav-h: 64px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

.container { width: min(1160px, 94%); margin: 0 auto; }

/* ============ 顶部导航（墨感深底） ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--ink);
  color: #f2ede2;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  height: var(--nav-h);
}

.brand { display: flex; align-items: center; gap: 10px; color: #f2ede2; }
.brand-seal {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  font-family: var(--serif); font-weight: 700; font-size: 18px;
  color: #fff;
  background: var(--seal);
  border-radius: 5px;
}
.brand-text { font-family: var(--serif); font-size: 20px; letter-spacing: 2px; font-weight: 600; }

.site-nav { display: flex; gap: 4px; flex: 1; }
.nav-link {
  padding: 8px 14px;
  font-size: 15px;
  color: #d9d2c4;
  border-radius: 4px;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,0.08); }
.nav-link.active { color: #fff; background: rgba(179,100,58,0.45); }

.search-box {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  overflow: hidden;
}
.search-box .search-input {
  width: 180px;
  background: transparent; border: 0;
  color: #f2ede2;
  padding: 9px 12px;
  font-size: 14px;
  outline: none;
}
.search-box .search-input::placeholder { color: rgba(255,255,255,0.5); }
.search-box .search-btn {
  background: var(--seal); border: 0;
  color: #fff; padding: 0 16px; font-size: 13px; letter-spacing: 1px;
  height: 100%;
  transition: background 0.25s var(--ease);
}
.search-box .search-btn:hover { background: var(--seal-deep); }

.nav-toggle {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: 0; padding: 8px;
  margin-left: auto;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: #f2ede2;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ 通用区块 ============ */
.page-wrap { flex: 1; }

.section { padding: 36px 0; }
.section-tint { background: rgba(180, 140, 90, 0.06); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }

.page-hero { padding: 40px 0 32px; }
.page-hero .page-title { font-family: var(--serif); font-size: clamp(24px, 4vw, 32px); font-weight: 600; letter-spacing: 2px; }
.page-hero .page-sub { color: var(--ink-soft); margin-top: 6px; }

.sec-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 20px; }
.sec-title { font-family: var(--serif); font-size: 22px; letter-spacing: 2px; font-weight: 600; }
.sec-title::before { content: "｜"; color: var(--seal); margin-right: 8px; }
.sec-more { font-size: 14px; color: var(--seal); }
.sec-more:hover { text-decoration: underline; }

/* ============ 按钮 ============ */
.btn {
  display: inline-block;
  padding: 10px 26px;
  font-size: 15px; letter-spacing: 1px;
  border-radius: var(--radius);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn-primary { background: var(--seal); color: #fff; border: 1px solid var(--seal); }
.btn-primary:hover { background: var(--seal-deep); transform: translateY(-2px); }
.btn-outline { border: 1px solid var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { border-color: var(--seal); color: var(--seal); transform: translateY(-2px); }
.btn-sm { padding: 6px 16px; font-size: 13px; }

/* ============ 标签 ============ */
.tag {
  display: inline-block;
  padding: 2px 10px;
  font-size: 12px; letter-spacing: 0.5px;
  border-radius: 3px;
  white-space: nowrap;
}
.tag-seal { background: var(--seal-soft); color: var(--seal); }
.tag-indigo { background: #e3e9f0; color: var(--indigo); }
.tag-bamboo { background: #e7ece2; color: var(--bamboo); }
.tag-ink { background: #eceae2; color: var(--ink-soft); }
.tag-stat { background: #eeece4; color: var(--ink-soft); font-size: 12px; }

/* ============ Hero（首页） ============ */
.hero {
  position: relative;
  padding: 44px 0 30px;
  text-align: center;
  color: var(--ink);
  border-bottom: 1px solid var(--hairline);
  background:
    radial-gradient(900px 420px at 82% 0%, rgba(180,140,90,0.10), transparent 60%),
    radial-gradient(800px 400px at 8% 100%, rgba(84,112,138,0.07), transparent 55%);
}
.hero-title { font-family: var(--serif); font-size: clamp(26px, 4vw, 40px); font-weight: 700; letter-spacing: 2px; line-height: 1.2; }
.hero-sub { color: var(--ink-soft); margin: 10px auto 16px; font-size: 15px; max-width: 46ch; }

.hero-search {
  display: flex;
  justify-content: center;
  margin: 0 auto 0;
}
.hero-search .big-search {
  width: min(280px, 100%);
  display: flex;
  background: var(--paper-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-search .big-search input {
  flex: 1; min-width: 0;
  border: 0; outline: none;
  padding: 14px 18px;
  font-size: 15px; font-family: var(--sans);
  color: var(--ink);
  background: transparent;
}
.hero-search .big-search select {
  flex: none;
  border: 0; border-left: 1px solid var(--hairline);
  outline: none;
  padding: 0 8px;
  font-size: 14px; font-family: var(--sans);
  color: var(--ink-soft);
  background: transparent;
  cursor: pointer;
}
.hero-search .big-search button {
  border: 0; padding: 0 26px;
  background: var(--seal); color: #fff;
  font-size: 15px; letter-spacing: 1px;
  flex: 0 0 auto; white-space: nowrap;
  transition: background 0.25s var(--ease);
}
.hero-search .big-search button:hover { background: var(--seal-deep); }

.hot-keywords { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--ink-soft); }
.hot-keywords b { font-weight: 500; }
.hot-keywords .kw {
  padding: 3px 12px;
  background: var(--seal-soft);
  color: var(--seal);
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.hot-keywords .kw:hover { background: var(--seal); color: #fff; }

/* ============ 首页三大入口卡 ============ */
.entry-sec { padding-top: 36px; padding-bottom: 36px; }
.entry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.entry-card {
  display: flex; align-items: center; gap: 10px;
  background: var(--paper-card); border: 1px solid var(--hairline);
  border-radius: var(--radius); padding: 16px 14px;
  transition: transform 0.26s var(--ease), box-shadow 0.26s var(--ease), border-color 0.26s var(--ease);
}
.entry-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(179,100,58,0.4); }
.entry-ico {
  width: 42px; height: 42px; flex: none; display: grid; place-items: center;
  font-family: var(--serif); font-size: 20px; color: #fff; border-radius: 8px;
}
.entry-res .entry-ico { background: var(--seal); }
.entry-sch .entry-ico { background: var(--indigo); }
.entry-score .entry-ico { background: var(--bamboo); }
.entry-body { flex: 1; min-width: 0; }
.entry-title { font-family: var(--serif); font-size: 17px; font-weight: 600; }
.entry-desc { font-size: 12px; color: var(--ink-soft); margin-top: 2px; line-height: 1.4; overflow: hidden; }
.entry-go {
  flex: none; font-size: 14px;
  color: var(--seal); white-space: nowrap;
  background: var(--seal-soft); border: 1px solid rgba(179,100,58,0.35);
  padding: 6px 14px; border-radius: 20px;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.entry-card:hover .entry-go { background: var(--seal); color: #fff; }

/* ============ 资讯列表（首页预览） ============ */
.news-list { display: flex; flex-direction: column; }
.news-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 6px;
  border-bottom: 1px dashed var(--hairline);
  transition: background 0.2s var(--ease);
  cursor: pointer;
}
.news-item:last-child { border-bottom: 0; }
.news-item:hover { background: rgba(179,100,58,0.05); }
.news-item .n-title { flex: 1; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news-item:hover .n-title { color: var(--seal); }
.news-item .n-meta { flex: none; display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-soft); }

/* ============ 精选卡片横排 ============ */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

/* ============ 首页精选试卷卡片 ============ */
.res-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.res-cell { background: var(--paper-card); border: 1px solid var(--hairline); border-radius: var(--radius); overflow: hidden; transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s var(--ease); }
.res-cell:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(179,100,58,0.4); }
.res-cell-link { display: flex; flex-direction: column; padding: 14px; height: 100%; }
.res-cell-top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.res-ext { flex: none; font-size: 11px; color: var(--ink-soft); background: rgba(60,60,60,0.06); padding: 2px 8px; border-radius: 4px; }
.res-cell-title { font-family: var(--serif); font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 42px; }
.res-cell-title:hover { color: var(--seal); }
.res-cell-meta { margin-top: auto; padding-top: 8px; font-size: 12px; color: var(--ink-soft); }
.res-pending { font-size: 11px; color: var(--ink-soft); background: rgba(60,60,60,0.06); padding: 2px 8px; border-radius: 4px; }

/* ============ 通用卡片 ============ */
.card {
  background: var(--paper-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s var(--ease);
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(179,100,58,0.45); }

.card-top { padding: 16px; display: flex; gap: 14px; align-items: center; }
.card-avatar {
  width: 54px; height: 54px; flex: none;
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 24px;
  color: #fff; border-radius: 6px;
  background: linear-gradient(160deg, #c98a5e, #8a5a38);
}
.card-avatar.school { font-size: 20px; background: linear-gradient(160deg, #7f9a74, #506a45); }
.card-hd .card-name { font-family: var(--serif); font-size: 18px; font-weight: 600; }
.card-hd .card-sub { font-size: 13px; color: var(--ink-soft); }
.card-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }

.card-body { padding: 0 16px 6px; }
.card-desc {
  font-size: 13px; color: var(--ink-soft);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px 14px;
  border-top: 1px dashed var(--hairline);
  font-size: 13px; color: var(--ink-soft);
  margin-top: 10px;
}
.stat-inline { display: flex; gap: 14px; }
.stat-inline b { font-family: var(--serif); color: var(--seal); font-weight: 600; }

/* ============ 筛选栏 ============ */
.filter-bar {
  background: var(--paper-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.filter-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.filter-label { flex: none; font-size: 13px; color: var(--ink-soft); letter-spacing: 1px; width: 46px; }
.filter-group { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; }
.fchip {
  padding: 4px 13px;
  font-size: 13px;
  border: 1px solid var(--hairline);
  border-radius: 20px;
  background: transparent;
  color: var(--ink-soft);
  transition: all 0.2s var(--ease);
}
.fchip:hover { border-color: var(--seal); color: var(--seal); }
.fchip.active { background: var(--seal); color: #fff; border-color: var(--seal); }

.filter-select, .search-input-sm {
  padding: 7px 12px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  font-size: 14px; font-family: var(--sans);
  background: #fff; color: var(--ink);
  outline: none;
}
.search-input-sm { width: 200px; }
.filter-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: space-between; }
.result-count { font-size: 13px; color: var(--ink-soft); }
.result-count b { color: var(--seal); }

/* ============ 卡片网格/列表 ============ */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

/* ============ 资料库列表 ============ */
.resource-list { display: flex; flex-direction: column; gap: 12px; }
.resource-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--paper-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 14px 18px;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.resource-item:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.rext {
  width: 46px; height: 56px; flex: none;
  display: grid; place-items: center;
  font-size: 13px; font-weight: 700; color: #fff;
  border-radius: 4px;
}
.rext.pdf { background: var(--seal); }
.rext.doc { background: var(--indigo); }
.resource-body { flex: 1; min-width: 0; }
.resource-title { font-size: 15px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.resource-meta { display: flex; gap: 6px; align-items: center; margin-top: 5px; flex-wrap: wrap; }
.resource-dl {
  flex: none;
  border: 1px solid var(--bamboo); background: transparent;
  color: var(--bamboo); border-radius: var(--radius);
  padding: 6px 16px; font-size: 13px;
  transition: all 0.22s var(--ease);
}
.resource-dl:hover { background: var(--bamboo); color: #fff; }

/* ============ 资讯翻页 ============ */
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 28px; }
.pager button {
  min-width: 34px; height: 34px;
  border: 1px solid var(--hairline); background: var(--paper-card);
  border-radius: var(--radius); color: var(--ink); font-size: 14px;
  transition: all 0.2s var(--ease);
}
.pager button.active, .pager button:hover { background: var(--seal); color: #fff; border-color: var(--seal); }

/* ============ 空状态 ============ */
.empty { text-align: center; color: var(--ink-soft); padding: 40px 0; font-size: 14px; display: none; }

/* ============ 模态弹层（详情） ============ */
.modal-mask {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(43,42,38,0.5);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 16px 40px;
  overflow-y: auto;
}
.modal-mask.open { display: flex; }
.modal {
  background: var(--paper);
  width: min(720px, 100%);
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(0,0,0,0.2);
  animation: modalIn 0.28s var(--ease);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.modal-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 22px 24px;
  border-bottom: 1px solid var(--hairline);
}
.modal-head .mh-title { font-family: var(--serif); font-size: 22px; font-weight: 600; }
.modal-head .mh-sub { font-size: 13px; color: var(--ink-soft); margin-top: 4px; }
.modal-close {
  flex: none; width: 32px; height: 32px;
  border: 1px solid var(--hairline); background: var(--paper-card);
  border-radius: 50%; font-size: 18px; color: var(--ink-soft);
  transition: all 0.2s var(--ease);
}
.modal-close:hover { color: var(--seal); border-color: var(--seal); }
.modal-body { padding: 22px 24px; font-size: 14px; color: var(--ink-soft); }
.modal-section { margin-bottom: 18px; }
.modal-section > h4 { font-family: var(--serif); font-size: 16px; color: var(--ink); margin-bottom: 8px; }
.modal-section > h4::before { content: "· "; color: var(--seal); }
.modal-list li { padding: 4px 0; position: relative; padding-left: 16px; }
.modal-list li::before { content: "—"; position: absolute; left: 0; color: var(--seal); }
.stat-row { display: flex; gap: 30px; flex-wrap: wrap; padding: 12px 0; border-top: 1px dashed var(--hairline); border-bottom: 1px dashed var(--hairline); margin-bottom: 16px; }
.stat-row .sr { text-align: center; }
.stat-row .sr b { display: block; font-family: var(--serif); font-size: 24px; color: var(--seal); }
.stat-row .sr span { font-size: 12px; color: var(--ink-soft); }

/* ============ Toast ============ */
.toast {
  position: fixed; left: 50%; bottom: 36px;
  transform: translate(-50%, 24px);
  padding: 13px 28px;
  background: var(--ink); color: var(--paper);
  font-size: 14px; letter-spacing: 1px;
  border-radius: var(--radius);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  z-index: 90;
  max-width: 90%;
  text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ============ 滚动显现 ============ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ============ 页脚 ============ */
.site-footer {
  background: var(--ink);
  color: #cfc8ba;
  padding: 34px 0 26px;
  font-size: 13px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 30px;
}
.footer-grid h4 { font-family: var(--serif); color: #f2ede2; font-size: 15px; margin-bottom: 10px; letter-spacing: 1px; }
.footer-grid p { line-height: 1.9; color: #b5ae9f; }
.footer-links a { display: block; color: #b5ae9f; padding: 3px 0; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  color: #8f887a;
}

/* ============ Toast 空态占位 ============ */
.stack-nav { display: flex; gap: 20px; justify-content: center; padding: 10px 0 6px; flex-wrap: wrap; }
.stack-nav a { color: var(--seal); font-size: 14px; }
.stack-nav a:hover { text-decoration: underline; }

/* ============ 响应式 ============ */
@media (max-width: 920px) {
  .grid, .feature-grid, .res-grid { grid-template-columns: repeat(2, 1fr); }
  .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 18px; }
}

@media (max-width: 740px) {
  /* 导航折叠 */
  .header-inner { flex-wrap: wrap; height: auto; padding: 10px 0; gap: 12px; }
  /* 手机端隐藏汉堡折叠：首页首屏已有三大核心入口，导航无需重复 */
  .nav-toggle { display: none; order: 4; margin-left: 0; }
  .brand { order: 1; }
  /* 手机端隐藏顶部导航搜索框：空间不足易溢出，资料等页内有专门搜索框 */
  .search-box { display: none; }
  .site-nav {
    display: none;
    order: 5;
    flex-direction: column;
    flex-basis: 100%;
    gap: 2px;
    padding: 6px 0 4px;
    border-top: 1px solid rgba(255,255,255,0.12);
  }
  .site-nav.open { display: flex; }
  .nav-link { padding: 12px 8px; }

  /* 首页资讯列表（手机端）：标题独占一行并突出，标签与来源/时间降级为第二行 */
  .news-item { flex-wrap: wrap; align-items: flex-start; gap: 4px 10px; padding: 9px 4px; }
  .news-item .n-title {
    order: -1;
    flex: 0 0 100%;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.38;
    color: var(--ink, #2B2A26);
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .news-item .tag { align-self: center; flex: none; transform: scale(0.92); transform-origin: left center; }
  .news-item .n-meta { flex: 1 1 auto; justify-content: flex-end; font-size: 12px; color: var(--ink-soft); min-width: 0; }
}

@media (max-width: 560px) {
  .grid, .feature-grid, .res-grid, .grid.cols-4 { grid-template-columns: 1fr; }
  .section { padding: 16px 0; }
  .hero { padding: 26px 0 20px; }
  .hero-title { font-size: 22px; letter-spacing: 1.5px; }
  .hero-sub { font-size: 13px; margin: 5px auto 12px; }
  .sec-title { font-size: 19px; letter-spacing: 1px; }
  /* 三大入口卡：手机端竖排紧凑版（图标在上、去掉“进入”），边框加强以凸显可点击 */
  .entry-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .entry-card { flex-direction: column; text-align: center; gap: 8px; padding: 14px 6px; border: 1px solid rgba(43,42,38,0.35); box-shadow: 0 1px 4px rgba(43,42,38,0.10); }
  .entry-ico { width: 40px; height: 40px; font-size: 18px; }
  .entry-body { flex: none; width: 100%; }
  .entry-title { font-size: 15px; }
  .entry-desc { font-size: 11px; margin-top: 1px; }
  .entry-go { display: none; }
  .hero-search .big-search button { padding: 0 14px; white-space: nowrap; flex: none; }
  .hero-search .big-search input { padding: 11px 12px; font-size: 14px; min-width: 0; }
  .hero-search .big-search select { flex: none; padding: 0 4px; font-size: 13px; max-width: 64px; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; }
  .card-top { flex-direction: column; text-align: center; }
  .card-badges, .card-footer, .stat-inline { justify-content: center; }
  .card-footer { flex-direction: column; gap: 8px; }
  .resource-item { flex-wrap: wrap; }
  .resource-dl { width: 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}