:root {
  /* 首页头图（浅色） */
  --hero-art: url("/hero/hero-light.jpg");
  --hero-art-position: center 42%;
  --hero-veil:
    linear-gradient(96deg, rgba(255, 255, 255, 0.97) 0%, rgba(255, 255, 255, 0.93) 34%, rgba(255, 255, 255, 0.55) 56%, rgba(255, 255, 255, 0.05) 78%),
    radial-gradient(620px 260px at 8% 12%, rgba(255, 214, 236, 0.85), transparent 70%);
  --hero-card-bg: #ffe9f3;
  --hero-title-a: #ff5f9e;
  --hero-title-b: #8b5cf6;
  --hero-sub: var(--muted);
  --hero-stat: var(--ink);
  --hero-stat-label: var(--muted);
  --hero-divider: rgba(150, 110, 170, 0.26);

  --search-bg: rgba(255, 255, 255, 0.52);
  --search-blur: blur(22px) saturate(160%);
  --search-border: rgba(255, 255, 255, 0.9);
  --search-shadow: 0 20px 46px -30px rgba(110, 50, 130, 0.85), 0 1px 0 rgba(255, 255, 255, 0.95) inset;
  --search-icon: #9d7cb0;
  --search-text: var(--ink);
  --search-placeholder: #a290b0;
  --search-cat-bg: rgba(255, 255, 255, 0.68);
  --search-cat-text: var(--ink-soft);
}

html[data-theme='dark'] {
  /* 首页头图（深色） */
  --hero-art: url("/hero/hero-dark.jpg");
  --hero-art-position: center right;
  --hero-veil:
    radial-gradient(520px 240px at 16% 6%, rgba(255, 84, 170, 0.34), transparent 70%),
    radial-gradient(460px 260px at 4% 92%, rgba(96, 190, 255, 0.22), transparent 72%),
    linear-gradient(100deg, #1a1024 0%, #1d1329 42%, rgba(29, 19, 41, 0.55) 62%, rgba(23, 16, 31, 0.05) 82%);
  --hero-card-bg: #17101f;
  --hero-title-a: #ffa8d4;
  --hero-title-b: #b18cff;
  --hero-sub: #cbb4d8;
  --hero-stat: #ffffff;
  --hero-stat-label: #b9a1c9;
  --hero-divider: rgba(255, 255, 255, 0.16);

  --search-bg: rgba(255, 255, 255, 0.1);
  --search-blur: blur(20px) saturate(150%);
  --search-border: rgba(255, 255, 255, 0.22);
  --search-shadow: 0 20px 44px -30px rgba(0, 0, 0, 0.9), 0 1px 0 rgba(255, 255, 255, 0.14) inset;
  --search-icon: #d3b6e6;
  --search-text: #ffffff;
  --search-placeholder: #b9a1c9;
  --search-cat-bg: rgba(255, 255, 255, 0.12);
  --search-cat-text: #e7d6f2;
}

/* ===== 首页头图：浅/深共用结构，只换变量 ===== */
.signboard {
  min-height: 320px;
  background: var(--hero-card-bg);
  border: 0;
  border-radius: 28px;
  box-shadow: 0 30px 70px -42px rgba(120, 60, 140, 0.6);
}

html[data-theme='dark'] .signboard {
  box-shadow: 0 34px 80px -40px rgba(60, 20, 80, 0.9);
}

.signboard::before {
  content: none;
}

.sign-art {
  position: absolute;
  inset: 0;
  background: var(--hero-art) var(--hero-art-position) / cover no-repeat;
  transition: opacity 0.3s ease;
}

.sign-veil {
  position: absolute;
  inset: 0;
  background: var(--hero-veil);
}

.signboard .sign-main,
.signboard .sign-stats {
  position: relative;
  z-index: 1;
}

.sign-copy h1 {
  background: linear-gradient(120deg, var(--hero-title-a), var(--hero-title-b) 72%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sign-copy h1 em {
  color: var(--hero-sub);
}

.sign-copy p {
  color: var(--hero-sub);
  max-width: 26em;
}

/* 搜索条：半透明玻璃、加大到 66px */
.sign-search {
  flex: 0 1 760px;
  min-width: 260px;
  gap: 10px;
  margin-top: 6px;
  padding: 0 8px 0 20px;
  height: 66px;
  align-items: center;
  border-radius: 999px;
  background: var(--search-bg);
  -webkit-backdrop-filter: var(--search-blur);
  backdrop-filter: var(--search-blur);
  border: 1.5px solid var(--search-border);
  box-shadow: var(--search-shadow);
}

.sign-search svg {
  position: static;
  transform: none;
  flex: none;
  color: var(--search-icon);
  width: 19px;
  height: 19px;
}

.sign-search input {
  flex: 1;
  min-width: 0;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--search-text);
  font-size: 15.5px;
  outline: none;
}

.sign-search input::placeholder {
  color: var(--search-placeholder);
}

.sign-cat {
  flex: none;
  height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 0;
  background: var(--search-cat-bg);
  color: var(--search-cat-text);
  font-size: 13.5px;
  cursor: pointer;
}

.sign-go {
  flex: none;
  height: 48px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: var(--grad-solid);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 14px 26px -12px rgba(230, 70, 140, 0.95);
  transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.sign-go:hover {
  transform: translateY(-1px);
}

.sign-stats {
  border-top: 1px dashed var(--hero-divider);
}

.sign-stats span {
  color: var(--hero-stat-label);
}

.sign-stats b {
  color: var(--hero-stat);
}

@media (max-width: 720px) {
  .signboard {
    padding: 22px 18px 18px;
    border-radius: 22px;
  }

  .sign-search {
    height: 58px;
    padding: 0 8px 0 16px;
    gap: 8px;
    flex-basis: 100%;
  }

  .sign-search input {
    font-size: 15px;
  }

  .sign-cat {
    display: none;
  }

  .sign-go {
    height: 44px;
    padding: 0 20px;
    font-size: 14px;
  }
}

/* 板块列表：只修窄屏横向溢出，不动原有两列排版 */
.section-list,
.section-row,
.section-last,
.section-head,
.section-top {
  min-width: 0;
}

.section-row {
  overflow: hidden;
}

.section-last {
  max-width: 100%;
}

.section-last a {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ==========================================================================
   手机端头图：搜索条再压一档（hero.css 在 style.css 之后加载，这里优先级更高）
   ========================================================================== */
@media (max-width: 720px) {
  .signboard .sign-search {
    height: 42px;
    padding: 0 5px 0 12px;
    gap: 6px;
    border-radius: 13px;
    flex-basis: auto;
    width: 100%;
  }

  .signboard .sign-search input {
    font-size: 13px;
    height: 32px;
  }

  .signboard .sign-search svg {
    width: 15px;
    height: 15px;
  }

  .signboard .sign-search .sign-go {
    height: 32px;
    padding: 0 14px;
    font-size: 12.5px;
    border-radius: 9px;
  }
}
/* 手机端头图：去掉固定最小高度，按内容收（原来 320px 里有一大截是空的） */
@media (max-width: 720px) {
  .signboard {
    min-height: 0;
    padding: 14px 16px 13px;
    border-radius: 18px;
  }

  .signboard .sign-main {
    gap: 9px;
  }

  .signboard .sign-stats {
    margin-top: 9px;
    padding-top: 8px;
  }
}
/* 手机端头图文案：压在插画上也看得清（白描边 + 提亮） */
@media (max-width: 720px) {
  .signboard .sign-copy p {
    color: #5b4a68;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.95), 0 0 14px rgba(255, 255, 255, 0.85);
  }

  html[data-theme='dark'] .signboard .sign-copy p {
    color: #e7dcf5;
    text-shadow: 0 1px 0 rgba(20, 12, 30, 0.75), 0 0 14px rgba(20, 12, 30, 0.7);
  }

  .signboard .sign-stats {
    padding-bottom: 2px;
  }
}
/* 手机端：LOGO 和标题已经在顶栏了，头图里不再重复，整体更扁 */
@media (max-width: 640px) {
  .signboard .sign-logo,
  .signboard .sign-copy h1 {
    display: none;
  }

  .signboard .sign-main {
    gap: 0;
  }

  .signboard .sign-copy p {
    font-size: 12px;
    line-height: 1.55;
    margin-top: 0;
  }

  .signboard .sign-search {
    margin-top: 10px;
  }
}