.content-panel::before {
  display: block;
  margin-bottom: 0.65rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--color-widget-content-border);
  color: var(--color-text-base);
  font-size: var(--font-size-h4);
  font-weight: 600;
  text-transform: uppercase;
}

.news-panel::before {
  content: "资讯";
}

.community-panel::before {
  content: "社区精选";
}

.content-panel .widget-group-header {
  overflow-x: visible;
  scrollbar-width: none;
}

.content-panel .widget-group-header::-webkit-scrollbar {
  display: none;
}

.content-panel .widget-group-header .widget-header {
  flex-wrap: wrap;
  row-gap: 0.35rem;
}

.content-panel .widget-group-title {
  white-space: nowrap;
}

/* 导航页: 书签显示为卡片网格 (nav.yml 里带 css-class: nav-cards 的书签) */
.nav-cards .dynamic-columns {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.nav-cards .bookmarks-group > ul.list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
}

.nav-cards .bookmarks-group > ul.list > li {
  position: relative;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--color-widget-content-border);
  border-radius: 12px;
  background: color-mix(in srgb, var(--bookmarks-group-color) 6%, transparent);
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.nav-cards .bookmarks-group > ul.list > li:hover {
  transform: translateY(-2px);
  border-color: var(--bookmarks-group-color);
  background: color-mix(in srgb, var(--bookmarks-group-color) 12%, transparent);
}

/* 整张卡片可点击 */
.nav-cards .bookmarks-link::after {
  content: "";
  position: absolute;
  inset: 0;
}

.nav-cards .bookmarks-icon-container {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.nav-cards .bookmarks-icon-container img {
  width: 100%;
  height: 100%;
}

.nav-cards .bookmarks-group > ul.list > li > div:last-child {
  margin: 6px 0 0 44px;
  font-size: var(--font-size-h6);
}

/* 组之间纵向排列，去掉默认的左侧分隔线和缩进 */
.nav-cards .dynamic-columns > .bookmarks-group {
  padding-left: 0;
  border-left: none;
}

/* 自动刷新提示 */
.auto-refresh-note {
  margin-top: 0.8rem;
  text-align: center;
  font-size: 1.1rem;
  color: var(--color-text-subdue);
}

/* 首页 (2026-10-29 改版) */

/* 一言 */
.hitokoto .hitokoto-text {
  font-size: var(--font-size-h3);
  line-height: 1.6;
  color: var(--color-text-highlight);
}

.hitokoto .hitokoto-from {
  margin-top: 0.8rem;
  text-align: right;
  font-size: var(--font-size-h6);
  color: var(--color-text-subdue);
}

/* 常用服务: 卡片悬停时轻微上浮并加主色描边 */
.services-main .monitor-site {
  padding: 0.6rem 0.8rem;
  margin: -0.6rem -0.8rem;
  border: 1px solid transparent;
  border-radius: 10px;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.services-main .monitor-site:hover {
  transform: translateY(-1px);
  border-color: var(--color-primary);
  background: color-mix(in srgb, var(--color-primary) 7%, transparent);
}

/* ===== 2026-10-30 视觉改版: 氛围光、彩虹细线、问候栏、游戏/新番卡片 ===== */

/* 背景三团很淡的光: 左上暖金、右上粉紫、底部蓝 */
body {
  background-image:
    radial-gradient(1100px 560px at 6% -8%, hsl(42 88% 62% / 0.10), transparent 62%),
    radial-gradient(900px 560px at 100% 0%, hsl(322 78% 62% / 0.08), transparent 60%),
    radial-gradient(1000px 640px at 50% 115%, hsl(205 85% 62% / 0.06), transparent 60%);
  background-attachment: fixed;
}

/* 组件框略透明，让背景光透出来 */
.widget-content-frame {
  background-color: color-mix(in srgb, var(--color-widget-background) 86%, transparent);
}

/* 顶部导航下方一条彩虹细线 */
.header-container .header {
  position: relative;
  overflow: hidden;
}

.header-container .header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, #e40303, #ff8c00, #ffed00, #008026, #24408e, #732982);
  opacity: 0.7;
}

/* ---- 问候栏 ---- */
.sora-hero .widget-content-frame {
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}

.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.6rem 2.4rem;
  padding: 2.4rem 2.6rem;
  border: 1px solid var(--color-widget-content-border);
  border-radius: 16px;
  background:
    linear-gradient(135deg, hsl(42 88% 62% / 0.16), hsl(322 78% 62% / 0.10) 55%, hsl(205 85% 62% / 0.08)),
    var(--color-widget-background);
}

.hero::before {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  right: -80px;
  top: -160px;
  border-radius: 50%;
  background: radial-gradient(circle, hsl(42 88% 62% / 0.22), transparent 70%);
  pointer-events: none;
}

.hero-main,
.hero-side {
  position: relative;
  min-width: 0;
}

.hero-kicker {
  font-size: var(--font-size-h5);
  letter-spacing: 0.08em;
  color: var(--color-text-subdue);
}

.hero-title {
  margin-top: 0.4rem;
  font-size: clamp(2.6rem, 1.6rem + 1.6vw, 3.8rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text-highlight);
}

.hero-name {
  background: linear-gradient(90deg, hsl(42 92% 66%), hsl(330 85% 72%));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-quip {
  margin-top: 0.7rem;
  max-width: 60ch;
  font-size: var(--font-size-h4);
  color: var(--color-text-base);
  cursor: pointer;
}

.hero-quip.is-alert,
.hero-chip.is-alert {
  color: var(--color-negative);
}

.hero-chips,
.hero-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.6rem;
}

.hero-chip {
  padding: 0.35rem 0.95rem;
  border: 1px solid var(--color-widget-content-border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--color-widget-background) 70%, transparent);
  font-size: var(--font-size-h5);
  color: var(--color-text-highlight);
}

.hero-links {
  margin-top: 1rem;
}

.hero-links a {
  padding: 0.55rem 1.05rem;
  border: 1px solid var(--color-widget-content-border);
  border-radius: 10px;
  background: color-mix(in srgb, var(--color-widget-background) 80%, transparent);
  color: var(--color-text-highlight);
  font-size: var(--font-size-h5);
  transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

.hero-links a:hover {
  transform: translateY(-1px);
  border-color: var(--color-primary);
  background: color-mix(in srgb, var(--color-primary) 12%, var(--color-widget-background));
}

@media (max-width: 760px) {
  .hero {
    padding: 1.8rem 1.6rem;
  }

  .hero-chips,
  .hero-links {
    justify-content: flex-start;
  }
}

/* 首页“社区精选”改名为“摸鱼时间” */
.community-panel::before {
  content: "摸鱼时间";
}

/* ---- 游戏卡片 (Steam / Epic) ---- */
.deal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
}

/* 窄栏里: 左图右文的紧凑行 */
.deal-grid-stack {
  grid-template-columns: 1fr;
  gap: 8px;
}

.deal-grid-stack .deal-card {
  flex-direction: row;
  align-items: center;
}

.deal-grid-stack .deal-card img {
  width: 42%;
  flex-shrink: 0;
}

.deal-grid-stack .deal-body {
  min-width: 0;
  padding: 0.4rem 0.7rem;
}

/* 首页那一栏较窄: 两列小卡片，只露 4 张，完整的去玩乐页看 */
.community-panel .deal-grid {
  grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
}

.community-panel .deal-grid > :nth-child(n+5) {
  display: none;
}

.deal-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--color-widget-content-border);
  border-radius: 10px;
  background: var(--color-widget-background);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.deal-card:hover {
  transform: translateY(-2px);
  border-color: var(--color-primary);
}

.deal-card img {
  display: block;
  width: 100%;
  aspect-ratio: 460 / 215;
  object-fit: cover;
}

.deal-body {
  padding: 0.7rem 0.9rem 0.85rem;
}

.deal-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--color-text-highlight);
  font-size: var(--font-size-h5);
}

.deal-price {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem 0.55rem;
  margin-top: 0.45rem;
  font-size: var(--font-size-h6);
  color: var(--color-text-subdue);
}

.deal-off {
  padding: 0 0.45rem;
  border-radius: 4px;
  background: color-mix(in srgb, var(--color-positive) 22%, transparent);
  color: var(--color-positive);
  font-weight: 700;
}

.deal-now {
  color: var(--color-text-highlight);
  font-weight: 600;
}

/* 热销榜序号，前三名用主色 */
.rank-no {
  width: 2.2rem;
  flex-shrink: 0;
  text-align: center;
  font-weight: 700;
  color: var(--color-text-subdue);
}

li:nth-child(-n+3) > .rank-no {
  color: var(--color-primary);
}

/* ---- 今日新番封面墙 ---- */
.anime-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 14px 12px;
}

.anime-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.anime-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 1px solid var(--color-widget-content-border);
  border-radius: 8px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.anime-card:hover img {
  transform: translateY(-2px);
  border-color: var(--color-primary);
}

.anime-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: var(--font-size-h6);
  color: var(--color-text-highlight);
}

.anime-score {
  position: absolute;
  top: 6px;
  right: 6px;
  padding: 0.1rem 0.45rem;
  border-radius: 6px;
  background: rgb(0 0 0 / 0.62);
  color: #ffd36b;
  font-size: 1.1rem;
}

/* ---- 彩虹频道: 组件框顶部一条彩虹细边 ---- */
.rainbow .widget-content-frame {
  background-image: linear-gradient(90deg, #e40303, #ff8c00, #ffed00, #008026, #24408e, #732982);
  background-size: 100% 2px;
  background-repeat: no-repeat;
}

@media (prefers-reduced-motion: reduce) {
  .hero-links a,
  .deal-card,
  .anime-card img,
  .services-main .monitor-site {
    transition: none;
  }

  .hero-links a:hover,
  .deal-card:hover,
  .anime-card:hover img,
  .services-main .monitor-site:hover {
    transform: none;
  }
}
