/* =========================================================
   素材下载站 · 详情页模板
   结构：topbar / navbar / drawer / breadcrumb / detail / sidebar / footer
   ========================================================= */

:root {
  --brand: #3563ff;
  --brand-strong: #2450e6;
  --brand-soft: #eef3ff;
  --brand-line: #d8e3ff;
  --ink: #151b26;
  --ink-2: #3c4657;
  --muted: #78828f;
  --line: #e7ebf2;
  --line-soft: #f0f3f8;
  --bg: #f4f6fa;
  --card: #ffffff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.04);
  --shadow-md: 0 8px 26px rgba(16, 24, 40, 0.08);
  --container: 1200px;
  --nav-h: 66px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.68;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

body.no-scroll { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 6px;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: 10px 18px;
  background: var(--brand);
  color: #fff;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ================= 顶部细条 ================= */
.topbar {
  background: linear-gradient(90deg, #eef3ff 0%, #f6f9ff 55%, #f2f6ff 100%);
  border-bottom: 1px solid var(--brand-line);
  font-size: 13px;
  color: #4c5a72;
}
.topbar__inner {
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.topbar__welcome {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topbar__welcome strong { color: var(--brand); }
.topbar__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #35c47a;
  box-shadow: 0 0 0 3px rgba(53, 196, 122, 0.16);
  flex: none;
}
.topbar__links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}
.topbar__links a { color: #4c5a72; transition: color 0.2s; }
.topbar__links a:hover { color: var(--brand); }
.topbar__sep {
  width: 1px;
  height: 12px;
  background: #c9d5ea;
}

/* ================= 主导航 ================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 90;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s;
}
.navbar.is-scrolled { box-shadow: 0 6px 20px rgba(16, 24, 40, 0.07); }

.navbar__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
}

/* logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
}
.logo__mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(140deg, #4d7bff, #2b4fe0);
  box-shadow: 0 4px 12px rgba(53, 99, 255, 0.28);
}
.logo__text {
  display: flex;
  flex-direction: column;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1.15;
}
.logo__text small {
  font-size: 9px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 2px;
}

/* 菜单 */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
}
.nav-menu__link {
  position: relative;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14.5px;
  color: var(--ink-2);
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}
.nav-menu__link:hover { color: var(--brand); background: var(--brand-soft); }
.nav-menu__link.is-active { color: var(--brand); font-weight: 600; }
.nav-menu__link.is-active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
}

/* 搜索 */
.nav-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 0 1 300px;
  height: 38px;
  padding: 0 4px 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f7f9fc;
  color: var(--muted);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.nav-search:focus-within {
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(53, 99, 255, 0.12);
}
.nav-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font-size: 14px;
  color: var(--ink);
  outline: none;
}
.nav-search input::placeholder { color: #9aa4b2; }
.nav-search__btn {
  flex: none;
  height: 30px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s;
}
.nav-search__btn:hover { background: var(--brand-strong); }

.nav-actions { flex: none; }

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  padding: 0 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.btn--primary {
  background: linear-gradient(140deg, #4d7bff, #2b4fe0);
  color: #fff;
  box-shadow: 0 6px 16px rgba(53, 99, 255, 0.24);
}
.btn--primary:hover { box-shadow: 0 8px 20px rgba(53, 99, 255, 0.32); transform: translateY(-1px); }
.btn--outline {
  background: #fff;
  border-color: var(--brand-line);
  color: var(--brand);
}
.btn--outline:hover { background: var(--brand-soft); border-color: var(--brand); }
.btn--ghost { color: var(--ink-2); }
.btn--ghost:hover { background: var(--brand-soft); color: var(--brand); }
.btn--block { width: 100%; }

/* 汉堡按钮 */
.hamburger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.hamburger:hover { border-color: var(--brand-line); background: var(--brand-soft); }
.hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink-2);
  transition: transform 0.25s, opacity 0.2s;
}

/* ================= 抽屉 + 遮罩 ================= */
.drawer-mask {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(15, 23, 42, 0.45);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0s linear 0.3s;
}
.drawer-mask.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s, visibility 0s linear 0s;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 130;
  width: min(86vw, 340px);
  display: flex;
  flex-direction: column;
  background: #fff;
  box-shadow: -18px 0 44px rgba(15, 23, 42, 0.18);
  transform: translateX(101%);
  visibility: hidden;
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0.32s;
}
.drawer.is-open {
  transform: translateX(0);
  visibility: visible;
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0s;
}

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-soft);
}
.drawer__close {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink-2);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.drawer__close:hover { background: var(--brand-soft); border-color: var(--brand-line); color: var(--brand); }

.drawer__search {
  display: flex;
  gap: 8px;
  padding: 16px 18px 8px;
}
.drawer__search input {
  flex: 1;
  min-width: 0;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f7f9fc;
  font-size: 14px;
  color: var(--ink);
  outline: none;
}
.drawer__search input:focus { border-color: var(--brand); background: #fff; }
.drawer__search button {
  flex: none;
  height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
}

.drawer__nav {
  display: flex;
  flex-direction: column;
  padding: 8px 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.drawer__nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  font-size: 15px;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line-soft);
  transition: background 0.2s, color 0.2s;
}
.drawer__nav a:hover { background: #f8faff; color: var(--brand); }
.drawer__nav a.is-active { color: var(--brand); font-weight: 600; background: var(--brand-soft); }
.drawer__arrow { color: #b6bfcd; font-size: 18px; line-height: 1; }

.drawer__foot {
  margin-top: auto;
  padding: 18px;
  border-top: 1px solid var(--line-soft);
  background: #fbfcff;
}
.drawer__auth {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 14px;
  font-size: 14px;
  color: var(--muted);
}
.drawer__auth a:hover { color: var(--brand); }
.drawer__auth span { width: 1px; height: 12px; background: var(--line); }

/* ================= 当前位置 ================= */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 22px 0 16px;
  font-size: 13px;
  color: var(--muted);
}
.breadcrumb a { transition: color 0.2s; }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb__sep { color: #c3cbd8; }
.breadcrumb__current { color: var(--ink-2); }

/* ================= 布局 ================= */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
  padding-bottom: 56px;
}

/* ================= 左侧详情 ================= */
.detail {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 26px 28px 30px;
}

.detail__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.tag {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 6px;
  font-size: 12px;
  color: var(--muted);
  background: #f4f6fa;
  border: 1px solid var(--line);
}
.tag--brand {
  color: var(--brand);
  background: var(--brand-soft);
  border-color: var(--brand-line);
}

.detail__title {
  margin: 0 0 8px;
  font-size: clamp(20px, 2.1vw, 26px);
  line-height: 1.42;
  font-weight: 700;
  letter-spacing: -0.2px;
}
.detail__sub {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* ---- 预览 ---- */
.preview { margin: 22px 0 26px; }

.preview__stage {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  background: #0b1220;
  border: 1px solid var(--line);
}
.preview__slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.preview__slide.is-active { opacity: 1; }
.preview__slide svg { width: 100%; height: 100%; }

.preview__counter {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: #fff;
  background: rgba(15, 23, 42, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  pointer-events: none;
}

.preview__thumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  overflow-x: auto;
  padding-bottom: 2px;
}
.thumb {
  flex: none;
  width: 92px;
  aspect-ratio: 16 / 10;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 9px;
  cursor: pointer;
  background-clip: padding-box;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  opacity: 0.78;
}
.thumb:hover { opacity: 1; transform: translateY(-1px); }
.thumb.is-active {
  border-color: var(--brand);
  opacity: 1;
  box-shadow: 0 0 0 3px rgba(53, 99, 255, 0.14);
}
.thumb--1 { background: linear-gradient(140deg, #081128, #1a3d72); }
.thumb--2 { background: linear-gradient(140deg, #f7f2e8, #e0d0b3); }
.thumb--3 { background: linear-gradient(140deg, #2a1758, #5c3be0); }

.preview__hint {
  margin-left: 4px;
  font-size: 12.5px;
  color: var(--muted);
  white-space: nowrap;
}

/* ---- 区块标题 ---- */
.section-title {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding-left: 11px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}
.section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 15px;
  border-radius: 2px;
  background: var(--brand);
}
.section-title--plain { padding-left: 0; margin-bottom: 0; }
.section-title--plain::before { display: none; }

/* ---- 文件信息 ---- */
.file-info { margin-bottom: 26px; }

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fbfcfe;
}
.info-item {
  display: flex;
  gap: 10px;
  padding: 12px 16px;
  font-size: 14px;
  border-bottom: 1px solid var(--line);
}
.info-item:nth-child(odd) { border-right: 1px solid var(--line); }
.info-item:nth-last-child(-n + 2) { border-bottom: 0; }
.info-item dt {
  flex: none;
  width: 62px;
  color: var(--muted);
}
.info-item dd {
  margin: 0;
  min-width: 0;
  color: var(--ink-2);
  font-weight: 500;
  word-break: break-word;
}
.info-item .num { color: var(--brand); font-weight: 600; }

/* ---- 素材简介 ---- */
.file-desc { margin-bottom: 26px; }
.file-desc p {
  margin: 0 0 10px;
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.85;
}
.desc-list {
  margin: 14px 0 0;
  padding: 14px 18px 14px 32px;
  border-radius: 10px;
  background: #f8fafd;
  color: var(--ink-2);
  font-size: 14px;
}
.desc-list li { margin: 4px 0; }
.desc-list li::marker { color: var(--brand); }

/* ---- 下载区域 ---- */
.download-area {
  padding: 20px;
  border: 1px solid var(--brand-line);
  border-radius: 14px;
  background: linear-gradient(180deg, #f6f9ff, #fdfeff);
}
.download-area__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}
.download-area__head .section-title { color: var(--ink); }
.download-area__head svg { color: var(--brand); }
.download-area__note {
  font-size: 12.5px;
  color: #2f9e6a;
  background: #eefaf3;
  border: 1px solid #cdeedd;
  border-radius: 999px;
  padding: 2px 10px;
  white-space: nowrap;
}

.dl-list { display: flex; flex-direction: column; gap: 10px; }

/* 传统 <a> 链接卡片：href 直连文件 */
.dl-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}
.dl-item:hover {
  border-color: var(--brand);
  box-shadow: 0 8px 20px rgba(53, 99, 255, 0.12);
  transform: translateY(-1px);
}
.dl-item:active { transform: translateY(0); }

.dl-item__icon {
  flex: none;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--brand);
  background: var(--brand-soft);
}
.dl-item__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 2px;
}
.dl-item__name {
  font-size: 14.5px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dl-item__meta {
  font-size: 12.5px;
  color: var(--muted);
}
.dl-item__cta {
  flex: none;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--brand);
  padding-left: 8px;
}
.dl-item__cta::after {
  content: "↓";
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brand-soft);
  font-size: 12px;
  transition: background 0.2s, color 0.2s;
}
.dl-item:hover .dl-item__cta::after { background: var(--brand); color: #fff; }

.dl-tip {
  margin: 14px 0 0;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.75;
}
.dl-tip a { color: var(--brand); border-bottom: 1px dashed var(--brand-line); }

/* ---- 下载声明 ---- */
.download-notice {
  margin-top: 18px;
  padding: 18px 20px 16px;
  border: 1px solid #f2e2b8;
  border-radius: 14px;
  background: #fffdf6;
}
.download-notice__title {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 600;
  color: #8a6512;
}
.notice-list {
  margin: 0;
  padding-left: 20px;
  color: #6f5c2a;
  font-size: 13.5px;
  line-height: 1.85;
}
.notice-list li { margin: 5px 0; }
.notice-list li::marker { color: #c9a13c; font-weight: 600; }
.notice-foot {
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px dashed #ecdcae;
  font-size: 12.5px;
  color: #9a8340;
}

/* ================= 侧边栏 ================= */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: calc(var(--nav-h) + 18px);
}

.side-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}
.side-card--flush { padding: 0; border: 0; background: transparent; box-shadow: none; }

.side-card__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 600;
}
.side-card__more {
  font-size: 12.5px;
  font-weight: 400;
  color: var(--muted);
}
.side-card__more:hover { color: var(--brand); }

/* 广告位 */
.ad-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 220px;
  border: 1.5px dashed #c6d5f2;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 80% 20%, rgba(53, 99, 255, 0.1), transparent 60%),
    linear-gradient(160deg, #f4f7ff, #eaf1ff);
  color: #5b7bb5;
  text-align: center;
}
.ad-slot__tag {
  font-size: 11px;
  letter-spacing: 2px;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(53, 99, 255, 0.1);
  color: #3f68cc;
}
.ad-slot__size {
  font-size: 22px;
  font-weight: 700;
  color: #33528f;
  letter-spacing: 1px;
}
.ad-slot__hint { font-size: 12.5px; color: #7d90b5; }

/* 相关推荐 */
.rel-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.rel-item {
  display: flex;
  gap: 11px;
  padding: 9px;
  border-radius: 10px;
  transition: background 0.2s;
}
.rel-item:hover { background: #f7f9fd; }
.rel-thumb {
  flex: none;
  width: 62px;
  height: 46px;
  border-radius: 8px;
  border: 1px solid var(--line);
}
.rel-thumb--1 { background: linear-gradient(140deg, #081128, #1a3d72); }
.rel-thumb--2 { background: linear-gradient(140deg, #f7f2e8, #ddcba9); }
.rel-thumb--3 { background: linear-gradient(140deg, #2a1758, #5c3be0); }
.rel-thumb--4 { background: linear-gradient(140deg, #0d2a2a, #1d6b5f); }
.rel-thumb--5 { background: linear-gradient(140deg, #2c2340, #7a4d9c); }

.rel-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.rel-name {
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ink-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rel-item:hover .rel-name { color: var(--brand); }
.rel-meta { font-size: 11.5px; color: var(--muted); }

/* 标签云 */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--ink-2);
  background: #fbfcfe;
  transition: all 0.2s;
}
.chip:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }

/* 帮助卡 */
.side-card--help {
  background: linear-gradient(160deg, #f6f9ff, #eef3ff);
  border-color: var(--brand-line);
}
.help-text { margin: 0 0 14px; font-size: 13px; color: #5d6b85; line-height: 1.7; }

/* ================= 页脚 ================= */
.site-footer {
  background: #fff;
  border-top: 1px solid var(--line);
}
.footer__main {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1.3fr;
  gap: 32px;
  padding: 46px 0 34px;
}
.footer__brand .logo { margin-bottom: 14px; }
.footer__desc {
  margin: 0 0 14px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.8;
  max-width: 320px;
}
.footer__badge {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: #5d6b85;
}
.footer__badge span {
  padding: 3px 10px;
  border-radius: 6px;
  background: #f4f6fa;
  border: 1px solid var(--line);
}

.footer__col { display: flex; flex-direction: column; gap: 9px; }
.footer__col h3 {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.footer__col a {
  font-size: 13.5px;
  color: var(--muted);
  width: fit-content;
  transition: color 0.2s;
}
.footer__col a:hover { color: var(--brand); }
.footer__col--contact p { margin: 0; font-size: 13.5px; color: var(--muted); }
.footer__col--contact .btn { margin-top: 8px; width: fit-content; height: 34px; font-size: 13px; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 18px 0;
  border-top: 1px solid var(--line-soft);
  font-size: 12.5px;
  color: #8d97a6;
}
.footer__bottom p { margin: 0; }
.footer__links { display: flex; gap: 16px; }
.footer__links a:hover { color: var(--brand); }

/* ================= 响应式 ================= */
@media (max-width: 1080px) {
  .nav-menu,
  .nav-search,
  .nav-actions { display: none; }
  .hamburger { display: flex; }
}

@media (max-width: 1024px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: static; }
  /* 手机上侧边栏顺延到内容下方；如需隐藏，改为 display: none */
  .footer__main { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 768px) {
  .topbar { display: none; }
  .container { padding: 0 16px; }
  .detail { padding: 20px 16px 22px; border-radius: 14px; }
  .breadcrumb { padding: 16px 0 12px; }
  .detail__sub { font-size: 13.5px; }
  .preview { margin: 18px 0 22px; }
  .preview__hint { display: none; }
  .download-area { padding: 16px 14px; }
  .download-notice { padding: 16px 14px; }
  .footer__main { padding: 34px 0 26px; gap: 24px; }
  .footer__bottom { justify-content: flex-start; }
}

@media (max-width: 640px) {
  .info-grid { grid-template-columns: minmax(0, 1fr); }
  .info-item { border-right: 0 !important; border-bottom: 1px solid var(--line); }
  .info-item:nth-last-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .info-item:last-child { border-bottom: 0; }
  .footer__main { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .dl-item { flex-wrap: wrap; row-gap: 10px; }
  .dl-item__cta { margin-left: 54px; width: 100%; }
  .dl-item__name { white-space: normal; }
  .thumb { width: 78px; }
  .section-title { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
/* =========================================================
   素材列表页样式（依赖 style.css 的基础变量与公共组件）
   ========================================================= */

/* ================= 页面标题 ================= */
.list-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}
.list-head__title {
  margin: 0 0 6px;
  font-size: clamp(21px, 2.2vw, 26px);
  font-weight: 700;
  letter-spacing: -0.2px;
  line-height: 1.35;
}
.list-head__desc {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
  max-width: 640px;
  line-height: 1.7;
}
.list-head__stats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 12.5px;
  color: #4c5a72;
  background: #fff;
  border: 1px solid var(--line);
}
.stat-pill strong { color: var(--brand); font-size: 13.5px; }

/* ================= 筛选面板 ================= */
.filters {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 4px 18px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}
.filter-row {
  display: flex;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13.5px;
}
.filter-row:last-child { border-bottom: 0; }
.filter-row__label {
  flex: none;
  width: 40px;
  color: var(--muted);
  line-height: 28px;
}
.filter-row__list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}
.filter-chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 11px;
  border-radius: 7px;
  color: var(--ink-2);
  transition: background 0.2s, color 0.2s;
}
.filter-chip:hover { background: var(--brand-soft); color: var(--brand); }
.filter-chip.is-active {
  background: var(--brand);
  color: #fff;
  font-weight: 500;
  box-shadow: 0 4px 10px rgba(53, 99, 255, 0.22);
}
.filter-chip em {
  font-style: normal;
  opacity: 0.7;
  font-size: 11.5px;
  margin-left: 4px;
}

/* ================= 工具条 ================= */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 2px 14px;
}
.toolbar__count {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
}
.toolbar__count strong { color: var(--brand); }
.toolbar__right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sort {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.sort__item {
  padding: 5px 12px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  font-size: 13px;
  color: var(--ink-2);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.sort__item:hover { color: var(--brand); }
.sort__item.is-active {
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 600;
}

.view-toggle { display: flex; gap: 4px; }
.view-toggle__btn {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #9aa4b2;
  cursor: pointer;
  transition: all 0.2s;
}
.view-toggle__btn:hover { color: var(--brand); border-color: var(--brand-line); }
.view-toggle__btn.is-active {
  color: var(--brand);
  border-color: var(--brand);
  background: var(--brand-soft);
}

/* 列表页左栏容器（grid 子项，防止长内容撑破布局） */
.list-main { min-width: 0; }

/* ================= 素材网格 ================= */
.m-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(226px, 1fr));
  gap: 18px;
}

.m-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.m-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand-line);
  box-shadow: 0 12px 28px rgba(16, 24, 40, 0.1);
}

.m-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #eef2f8;
}
.m-card__art {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 2px;
  padding: 14px;
  color: #fff;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.m-card:hover .m-card__art { transform: scale(1.05); }
.m-card__art::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  pointer-events: none;
}
.m-card__art-title {
  position: relative;
  z-index: 1;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.3;
}
.m-card__art-sub {
  position: relative;
  z-index: 1;
  font-size: 9.5px;
  letter-spacing: 2.4px;
  opacity: 0.72;
  text-transform: uppercase;
}

/* 缩略图配色（与详情页预览保持一致的设计语言） */
.art--1 { background: linear-gradient(140deg, #081128, #1a3d72); }
.art--2 { background: linear-gradient(140deg, #f8f3e9, #dcc9a6); color: #3a2e18; }
.art--3 { background: linear-gradient(140deg, #2a1758, #5c3be0); }
.art--4 { background: linear-gradient(140deg, #07302c, #16776a); }
.art--5 { background: linear-gradient(140deg, #7a1a12, #e2603a); }
.art--6 { background: linear-gradient(140deg, #10261c, #2f6b3f); }
.art--7 { background: linear-gradient(140deg, #eef2f8, #cdd9ea); color: #24303f; }
.art--8 { background: linear-gradient(140deg, #ffd9a8, #ff9d5c); color: #4a2a10; }
.art--9 { background: linear-gradient(140deg, #1a1a1a, #4a3b1f); color: #f3e2b8; }

.m-card__badge {
  position: absolute;
  top: 9px;
  left: 9px;
  z-index: 2;
  padding: 2px 8px;
  border-radius: 5px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: #1c2740;
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.m-card__fav {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(15, 23, 42, 0.32);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  cursor: pointer;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.22s, transform 0.22s, background 0.2s;
}
.m-card:hover .m-card__fav,
.m-card__fav:focus-visible { opacity: 1; transform: translateY(0); }
.m-card__fav:hover { background: rgba(53, 99, 255, 0.9); }
.m-card__fav.is-on { opacity: 1; transform: translateY(0); color: #ff6b81; background: rgba(255, 255, 255, 0.9); }
.m-card__fav.is-on svg { fill: currentColor; }

/* 悬停遮罩 */
.m-card__mask {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.55), rgba(15, 23, 42, 0.08));
  opacity: 0;
  transition: opacity 0.25s;
}
.m-card:hover .m-card__mask { opacity: 1; }
.m-card__mask span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--brand);
  font-size: 13px;
  font-weight: 600;
  transform: translateY(6px);
  transition: transform 0.28s;
}
.m-card:hover .m-card__mask span { transform: translateY(0); }

.m-card__body { padding: 12px 14px 13px; }
.m-card__title {
  margin: 0 0 7px;
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3em;
}
.m-card__title a { transition: color 0.2s; }
.m-card:hover .m-card__title { color: var(--brand); }

.m-card__meta {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--muted);
}
.m-card__meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #ccd4e0;
  flex: none;
}
.m-card__meta .hl { color: var(--ink-2); }

.m-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px dashed var(--line);
  font-size: 11.5px;
  color: #98a2b1;
}
.m-card__author {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.m-card__author::before {
  content: "";
  width: 16px;
  height: 16px;
  flex: none;
  border-radius: 50%;
  background: linear-gradient(140deg, #c9d8ff, #93b0ff);
}

/* 列表视图 */
.m-grid.is-list { grid-template-columns: 1fr; gap: 12px; }
.m-grid.is-list .m-card { display: flex; align-items: stretch; }
.m-grid.is-list .m-card__media {
  width: 220px;
  flex: none;
  aspect-ratio: auto;
  min-height: 132px;
}
.m-grid.is-list .m-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 14px 18px;
}
.m-grid.is-list .m-card__title {
  font-size: 15.5px;
  min-height: 0;
  margin-bottom: 9px;
  -webkit-line-clamp: 2;
}
.m-grid.is-list .m-card__foot { margin-top: 12px; }
.m-grid.is-list .m-card__art-title { font-size: 18px; }

/* ================= 分页 ================= */
.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 30px;
}
.page-btn {
  min-width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  font-size: 13.5px;
  color: var(--ink-2);
  transition: all 0.2s;
}
.page-btn:hover { border-color: var(--brand); color: var(--brand); }
.page-btn.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(53, 99, 255, 0.24);
}
.page-btn.is-disabled {
  color: #c3cbd8;
  background: #fafbfd;
  pointer-events: none;
}
.page-ellipsis { padding: 0 4px; color: #b6bfcd; font-size: 13px; }
.page-total {
  width: 100%;
  text-align: center;
  margin: 10px 0 0;
  font-size: 12.5px;
  color: var(--muted);
}

/* ================= 侧边栏：排行榜 ================= */
.rank-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.rank-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px;
  border-radius: 9px;
  transition: background 0.2s;
}
.rank-item:hover { background: #f7f9fd; }
.rank-num {
  flex: none;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: #8d97a6;
  background: #f2f5f9;
}
.rank-item:nth-child(1) .rank-num { color: #fff; background: linear-gradient(140deg, #ff8a4c, #f5533d); }
.rank-item:nth-child(2) .rank-num { color: #fff; background: linear-gradient(140deg, #ffb35c, #f7913d); }
.rank-item:nth-child(3) .rank-num { color: #fff; background: linear-gradient(140deg, #ffcf7a, #eaa53c); }
.rank-body { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.rank-name {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.45;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rank-item:hover .rank-name { color: var(--brand); }
.rank-meta { font-size: 11.5px; color: var(--muted); }

/* 上传引导卡 */
.upload-card {
  background: linear-gradient(155deg, #3461ff, #2246d6);
  border-radius: var(--radius);
  padding: 20px;
  color: #fff;
  box-shadow: 0 14px 30px rgba(36, 80, 230, 0.24);
}
.upload-card h2 { margin: 0 0 6px; font-size: 15.5px; font-weight: 600; }
.upload-card p { margin: 0 0 14px; font-size: 12.5px; line-height: 1.7; color: rgba(255, 255, 255, 0.82); }
.upload-card .btn {
  height: 36px;
  font-size: 13px;
  background: #fff;
  color: var(--brand-strong);
  box-shadow: none;
}
.upload-card .btn:hover { background: #f2f5ff; }

/* ================= 响应式 ================= */
@media (max-width: 1024px) {
  .m-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
}

@media (max-width: 860px) {
  .m-grid.is-list .m-card__media { width: 180px; min-height: 118px; }
}

@media (max-width: 768px) {
  .list-head { margin-bottom: 14px; gap: 10px; }
  .list-head__desc { font-size: 13px; }
  .filters { padding: 2px 14px; border-radius: 12px; }
  .filter-row { gap: 10px; padding: 9px 0; }
  .filter-row__label { width: 34px; font-size: 13px; }
  .filter-row__list {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
  }
  .filter-row__list::-webkit-scrollbar { display: none; }
  .toolbar { margin-bottom: 12px; }
  .toolbar__right { gap: 8px; }
  .sort__item { padding: 5px 9px; font-size: 12.5px; }
  .view-toggle { display: none; }
  .pagination { margin-top: 22px; }
}

@media (max-width: 600px) {
  .m-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .m-card { border-radius: 12px; }
  .m-card__art { padding: 10px; }
  .m-card__art-title { font-size: 14px; letter-spacing: 0.5px; }
  .m-card__art-sub { font-size: 8px; letter-spacing: 1.6px; }
  .m-card__badge { top: 7px; left: 7px; padding: 1px 6px; font-size: 10px; }
  .m-card__fav { display: none; }
  .m-card__body { padding: 9px 10px 10px; }
  .m-card__title { font-size: 13px; margin-bottom: 5px; min-height: 2.9em; }
  .m-card__meta { font-size: 11px; gap: 5px; }
  .m-card__foot { margin-top: 8px; padding-top: 7px; font-size: 10.5px; }
  .m-card__mask { display: none; }
  .m-grid.is-list { grid-template-columns: 1fr; }
  .m-grid.is-list .m-card { flex-direction: row; }
  .m-grid.is-list .m-card__media { width: 118px; min-height: 96px; }
  .m-grid.is-list .m-card__body { padding: 10px 12px; }
  .m-grid.is-list .m-card__title { font-size: 13.5px; }
  .page-btn { min-width: 32px; height: 32px; padding: 0 9px; font-size: 13px; }
}

@media (max-width: 380px) {
  .m-card__title { font-size: 12.5px; }
  .m-card__meta .dot { display: none; }
  .m-card__meta { flex-wrap: wrap; gap: 2px 6px; }
}
/* =========================================================
   首页组件
   ========================================================= */
.home { padding-top: 26px; }

/* 区块通用 */
.section { margin-bottom: 44px; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.section-head h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.2px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.section-head h2::before {
  content: "";
  width: 4px;
  height: 17px;
  border-radius: 2px;
  background: var(--brand);
}
.section-head p {
  margin: 6px 0 0 13px;
  font-size: 13px;
  color: var(--muted);
}
.section-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--muted);
  transition: color 0.2s, gap 0.2s;
}
.section-more:hover { color: var(--brand); gap: 7px; }

/* ================= 分类入口 ================= */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.cat-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: transform 0.22s, border-color 0.22s, box-shadow 0.22s;
}
.cat-card:hover {
  transform: translateY(-2px);
  border-color: var(--brand-line);
  box-shadow: 0 10px 22px rgba(16, 24, 40, 0.08);
}
.cat-icon {
  flex: none;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #fff;
}
.cat-icon--1 { background: linear-gradient(140deg, #4d7bff, #2b4fe0); }
.cat-icon--2 { background: linear-gradient(140deg, #37c08a, #1d9a6c); }
.cat-icon--3 { background: linear-gradient(140deg, #ff9d5c, #f2703a); }
.cat-icon--4 { background: linear-gradient(140deg, #b07bff, #7c4ce0); }
.cat-icon--5 { background: linear-gradient(140deg, #ff8a8a, #e2555c); }
.cat-icon--6 { background: linear-gradient(140deg, #4fc4d8, #2b93b8); }
.cat-icon--7 { background: linear-gradient(140deg, #ffc75c, #e2a01f); }
.cat-icon--8 { background: linear-gradient(140deg, #8a9bb8, #5f7291); }

.cat-body { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.cat-name { font-size: 14px; font-weight: 500; color: var(--ink); }
.cat-count { font-size: 11.5px; color: var(--muted); }
.cat-card:hover .cat-name { color: var(--brand); }

/* ================= 热门下载 ================= */
.hot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.hot-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: transform 0.22s, border-color 0.22s, box-shadow 0.22s;
}
.hot-item:hover {
  transform: translateY(-2px);
  border-color: var(--brand-line);
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.08);
}
.hot-rank {
  flex: none;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
  color: #8d97a6;
  background: #f2f5f9;
}
.hot-item:nth-child(1) .hot-rank { color: #fff; background: linear-gradient(140deg, #ff8a4c, #f5533d); }
.hot-item:nth-child(2) .hot-rank { color: #fff; background: linear-gradient(140deg, #ffb35c, #f7913d); }
.hot-item:nth-child(3) .hot-rank { color: #fff; background: linear-gradient(140deg, #ffcf7a, #eaa53c); }

.hot-thumb {
  flex: none;
  width: 66px;
  height: 52px;
  border-radius: 9px;
  border: 1px solid var(--line);
}
.hot-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.hot-name {
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.45;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hot-item:hover .hot-name { color: var(--brand); }
.hot-meta { font-size: 11.5px; color: var(--muted); }
.hot-count { flex: none; text-align: right; line-height: 1.25; }
.hot-count strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: -0.2px;
}
.hot-count em {
  font-style: normal;
  font-size: 11px;
  color: var(--muted);
}

/* ================= 各小分类 ================= */
.subcat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.subcat-col {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px 18px;
  transition: border-color 0.22s, box-shadow 0.22s;
}
.subcat-col:hover { border-color: var(--brand-line); box-shadow: 0 8px 20px rgba(16, 24, 40, 0.06); }
.subcat-col__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.subcat-col__head span {
  flex: none;
  padding: 1px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 400;
  color: var(--muted);
  background: #f4f6fa;
  border: 1px solid var(--line);
}
.subcat-list { display: flex; flex-wrap: wrap; gap: 7px; }
.subcat-chip {
  padding: 4px 10px;
  border-radius: 7px;
  font-size: 12.5px;
  color: var(--ink-2);
  background: #f7f9fc;
  border: 1px solid var(--line-soft);
  transition: all 0.2s;
}
.subcat-chip:hover {
  color: var(--brand);
  background: var(--brand-soft);
  border-color: var(--brand-line);
}

/* ================= 专题 ================= */
.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.topic {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 168px;
  padding: 22px;
  border-radius: 16px;
  color: #fff;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}
.topic:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(16, 24, 40, 0.16); }
.topic::after {
  content: "";
  position: absolute;
  top: -35%;
  right: -18%;
  width: 58%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.13);
  transition: transform 0.5s;
}
.topic:hover::after { transform: scale(1.12); }
.topic--1 { background: linear-gradient(135deg, #1a2a5e, #3457c8); }
.topic--2 { background: linear-gradient(135deg, #7a4a1c, #d98b3e); }
.topic--3 { background: linear-gradient(135deg, #113a33, #1f7a68); }
.topic__label {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  margin-bottom: auto;
  padding: 2px 9px;
  border-radius: 6px;
  font-size: 11px;
  letter-spacing: 1px;
  background: rgba(255, 255, 255, 0.18);
}
.topic__title {
  position: relative;
  z-index: 1;
  margin: 16px 0 4px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.4px;
}
.topic__meta {
  position: relative;
  z-index: 1;
  font-size: 12.5px;
  opacity: 0.8;
}

/* ================= 服务保障 ================= */
.features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.feature { display: flex; gap: 12px; align-items: flex-start; }
.feature__icon {
  flex: none;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: var(--brand);
  background: var(--brand-soft);
}
.feature strong {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 2px;
}
.feature p { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.6; }

/* ================= 会员 CTA ================= */
.cta {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: 40px;
  padding: 34px 38px;
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(115deg, #2b4fe0 0%, #3f68f5 46%, #6e93ff 100%);
  box-shadow: 0 18px 40px rgba(43, 79, 224, 0.24);
  overflow: hidden;
}
.cta::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 62%);
  pointer-events: none;
}
.cta__text { position: relative; z-index: 1; max-width: 620px; }
.cta__text h2 { margin: 0 0 8px; font-size: 22px; font-weight: 700; letter-spacing: 0.2px; }
.cta__text p { margin: 0; font-size: 13.5px; color: rgba(255, 255, 255, 0.84); line-height: 1.8; }
.cta__actions { position: relative; z-index: 1; display: flex; gap: 10px; flex-wrap: wrap; }
.cta__actions .btn { height: 42px; padding: 0 22px; border-radius: 11px; }
.cta__actions .btn--light { background: #fff; color: var(--brand-strong); box-shadow: 0 6px 18px rgba(9, 21, 60, 0.18); }
.cta__actions .btn--light:hover { background: #f3f6ff; transform: translateY(-1px); }
.cta__actions .btn--line {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.cta__actions .btn--line:hover { background: rgba(255, 255, 255, 0.18); }

/* ================= 首页响应式 ================= */
@media (max-width: 1080px) {
  .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .subcat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 22px; }
}

@media (max-width: 900px) {
  .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topic-grid .topic:last-child { grid-column: 1 / -1; min-height: 132px; }
}

@media (max-width: 768px) {
  .home { padding-top: 18px; }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cat-card { padding: 12px; gap: 10px; border-radius: 12px; }
  .cat-icon { width: 36px; height: 36px; border-radius: 10px; }
  .cat-name { font-size: 13px; }
  .section { margin-bottom: 34px; }
  .section-head { margin-bottom: 14px; }
  .section-head h2 { font-size: 17px; }
  .section-head p { margin-left: 13px; font-size: 12.5px; }
  .hot-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .hot-thumb { width: 56px; height: 46px; }
  .hot-name { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .subcat-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .subcat-col { padding: 14px 16px 16px; }
  .topic-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .topic { min-height: 130px; padding: 18px; }
  .topic__title { font-size: 16px; }
  .features { grid-template-columns: minmax(0, 1fr); padding: 18px; gap: 16px; }
  .cta { padding: 26px 20px; border-radius: 16px; margin-top: 30px; }
  .cta__text h2 { font-size: 18px; }
  .cta__actions { width: 100%; }
  .cta__actions .btn { flex: 1; padding: 0 16px; }
}

@media (max-width: 420px) {
  .cat-count { font-size: 10.5px; }
  .hot-item { gap: 10px; padding: 10px 12px; }
  .hot-count strong { font-size: 13.5px; }
}
