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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #111827;
  background: radial-gradient(circle at top, #e5f0ff 0, #f3f4f6 45%, #f9fafb 100%);
  -webkit-font-smoothing: antialiased;
}

.page {
  min-height: 100vh;
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px 12px 16px;
}

/* ===== Header ===== */

.site-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px 10px 12px;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.96);
  color: #e5e7eb;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.45);
  margin-bottom: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* LOGO：渐变蓝 + 三层台阶 */

.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: radial-gradient(circle at 0% 0%, #60a5fa, #1d4ed8 50%, #0b1120 100%);
  position: relative;
  box-shadow: 0 0 0 1px rgba(191, 219, 254, 0.4), 0 10px 25px rgba(15, 23, 42, 0.8);
  overflow: hidden;
}

.logo-stair-step {
  position: absolute;
  background: rgba(248, 250, 252, 0.95);
  border-radius: 5px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.4);
}

.logo-stair-step.step-1 {
  bottom: 6px;
  left: 6px;
  width: 28px;
  height: 8px;
}

.logo-stair-step.step-2 {
  bottom: 16px;
  left: 12px;
  width: 22px;
  height: 8px;
}

.logo-stair-step.step-3 {
  bottom: 26px;
  left: 18px;
  width: 16px;
  height: 8px;
}

.brand-text {
  flex: 1;
}

.site-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
}

.site-subtitle {
  font-size: 0.8rem;
  font-weight: 500;
  color: #9ca3af;
}

.site-tagline {
  margin: 4px 0 0;
  font-size: 0.78rem;
  color: #9ca3af;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.nav-link {
  font-size: 0.8rem;
  color: #e5e7eb;
  text-decoration: none;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: rgba(15, 23, 42, 0.6);
}

.nav-link:hover {
  background: rgba(55, 65, 81, 0.85);
}

.nav-link.active {
  border-color: rgba(191, 219, 254, 0.8);
  background: rgba(15, 23, 42, 0.95);
}

/* ===== Main ===== */

.main {
  margin-top: 10px;
}

/* ===== Filters ===== */

.filters {
  background: #ffffff;
  border-radius: 18px;
  padding: 10px 10px 8px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  margin-bottom: 10px;
}

.style-filter-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex-wrap: wrap;
  width: 100%;
}

.filter-label {
  font-size: 0.8rem;
  color: #6b7280;
  padding-top: 6px;
  min-width: 70px;
}

/* 风格 tab */

.style-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1 1 auto;
}

.style-tab {
  border: none;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f3f4f6;
  font-size: 0.78rem;
  color: #374151;
  cursor: pointer;
  white-space: nowrap;
}

.style-tab:hover {
  background: #e5e7eb;
}

.style-tab.active {
  background: #111827;
  color: #f9fafb;
}

/* 材质：label 一行，按钮一行 */

.material-filter-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
  margin-top: 6px;
}

.material-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  width: 100%;
}

.material-pill {
  border: 1px solid #e5e7eb;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f9fafb;
  font-size: 0.76rem;
  color: #4b5563;
  cursor: pointer;
  white-space: nowrap;
}

.material-pill:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.material-pill.active {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #f9fafb;
}

/* 搜索 & 只看已收藏 */

.other-filters-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
  margin-top: 6px;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.keyword-group {
  flex: 1 1 200px;
}

.fav-only-group {
  flex: 0 0 auto;
}

.filter-group label {
  font-size: 0.76rem;
  color: #6b7280;
}

#keywordInput {
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  padding: 6px 10px;
  font-size: 0.8rem;
  outline: none;
}

#keywordInput:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.15);
}

.fav-toggle-btn {
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  padding: 6px 12px;
  font-size: 0.8rem;
  background: #f9fafb;
  cursor: pointer;
}

.fav-toggle-btn.active,
.fav-toggle-btn:hover {
  background: #fef3c7;
  border-color: #fbbf24;
}

/* ===== 统计 & 翻页 ===== */

.stats-bar {
  margin-bottom: 8px;
  padding: 6px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: #4b5563;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

.stats-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pager-btn {
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  padding: 3px 10px;
  font-size: 0.78rem;
  background: #f9fafb;
  cursor: pointer;
}

.pager-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.page-info {
  min-width: 80px;
  text-align: center;
}

/* ===== Gallery ===== */

.gallery-section {
  margin-bottom: 14px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

/* 平板两列 */
@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 桌面三列 */
@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.card {
  background: rgba(15,23,42,0.96);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.7);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(148,163,184,0.45);
}

.card-img-wrapper {
  position: relative;
  padding-top: 100%; /* 1:1 */
  overflow: hidden;
  background: #111827;
}

.card-img-wrapper img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 收藏按钮：心形 */

.fav-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  border-radius: 999px;
  border: none;
  padding: 3px 7px;
  font-size: 0.9rem;
  cursor: pointer;
  background: rgba(17, 24, 39, 0.78);
  color: #f9fafb; /* 默认白色心形 */
  box-shadow: 0 2px 5px rgba(15, 23, 42, 0.7);
}

.fav-btn.fav-active {
  background: rgba(17, 24, 39, 0.9);
  color: #ef4444; /* 红色爱心 */
}

/* 点赞按钮 */

.like-btn {
  position: absolute;
  left: 8px;
  bottom: 8px;
  border-radius: 999px;
  border: none;
  padding: 2px 8px 3px;
  font-size: 0.78rem;
  cursor: pointer;
  background: rgba(17, 24, 39, 0.75);
  color: #e5e7eb;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 5px rgba(15, 23, 42, 0.7);
}

.like-btn .like-icon {
  line-height: 1;
}

.like-btn .like-count {
  min-width: 14px;
}

.like-btn.liked {
  background: rgba(248, 250, 252, 0.95);
  color: #b91c1c;
}

.card-body {
  padding: 8px 10px 9px;
  color: #e5e7eb;
}

/* 图集卡片文字颜色统一为浅色，增强对比度 */
.card-body p,
.card-meta {
  color: #9ca3af;
}

.card-title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #e5e7eb;
}

/* 卡片下方操作区：查看提示词 */

.card-actions {
  margin-top: 6px;
  display: flex;
  justify-content: flex-end;
}

.card-btn {
  font-size: 0.76rem;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.7);
  background: rgba(15,23,42,0.9);
  color: #e5e7eb;
  cursor: pointer;
}

.card-btn:hover {
  background: rgba(37,99,235,0.15);
  border-color: rgba(96,165,250,0.9);
}

/* 通用按钮样式 */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(96,165,250,0.55);
  background: radial-gradient(circle at top left, #38bdf8, #1d4ed8);
  color: #e5e7eb;
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary:hover {
  border-color: rgba(129,140,248,0.9);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.45);
  background: transparent;
  color: #e5e7eb;
  font-size: 0.8rem;
  cursor: pointer;
  text-decoration: none;
}

.btn-ghost:hover {
  background: rgba(15,23,42,0.75);
}

/* Empty */


.empty-state {
  text-align: center;
  font-size: 0.8rem;
  color: #6b7280;
  padding: 20px 8px;
}

/* ===== Footer ===== */

.site-footer {
  font-size: 0.76rem;
  color: #6b7280;
  text-align: center;
  padding-top: 8px;
  border-top: 1px dashed rgba(148, 163, 184, 0.6);
}

.footer-links {
  margin-bottom: 4px;
}

.footer-links a {
  color: #4b5563;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-links .dot {
  margin: 0 6px;
}

.footer-ops-row {
  margin-top: 2px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-logo {
  height: 18px;
  width: auto;
  display: block;
}

.footer-ops {
  margin: 0;
  font-size: 0.72rem;
  color: #9ca3af;
}

.footer-ops a {
  color: #6b7280;
  text-decoration: none;
}

.footer-ops a:hover {
  text-decoration: underline;
}

.footer-copy {
  margin: 2px 0 0;
}

/* ===== Modal（大图遮罩） ===== */

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.modal.active {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
}

.modal-dialog {
  position: relative;
  max-width: 96%;
  max-height: 90%;
  border-radius: 18px;
  background: #020617;
  padding: 32px 40px 16px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.75);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  z-index: 10;
}

.modal-canvas-wrap {
  flex: 1 1 auto;
  overflow: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

#lightboxCanvas {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.modal-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 0.8rem;
  color: #e5e7eb;
}

.modal-caption {
  flex: 1 1 auto;
}

.modal-counter {
  flex: 0 0 auto;
  opacity: 0.85;
}

.modal-close {
  position: absolute;
  top: 8px;
  right: 12px;
  border-radius: 999px;
  border: none;
  width: 26px;
  height: 26px;
  font-size: 1rem;
  cursor: pointer;
  background: rgba(15, 23, 42, 0.85);
  color: #e5e7eb;
}

.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 999px;
  border: none;
  width: 32px;
  height: 32px;
  font-size: 1.1rem;
  cursor: pointer;
  background: rgba(15, 23, 42, 0.85);
  color: #e5e7eb;
}

.modal-nav.prev {
  left: 8px;
}

.modal-nav.next {
  right: 8px;
}

/* 小屏 modal 简化 */

@media (max-width: 640px) {
  .site-header {
    padding: 10px 10px 10px;
  }

  .modal-dialog {
    padding: 26px 14px 12px;
  }

  .modal-nav {
    display: none;
  }
}

/* 小屏：风格/材质上下堆叠 */

@media (max-width: 640px) {
  .style-filter-row {
    flex-direction: column;
  }

  .filter-label {
    padding-top: 0;
  }
}

/* ===== AI 生图提示词 iframe 区域（ai.html 用） ===== */

.prompt-section {
  margin-top: 10px;
  padding: 10px 10px 12px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
}

.prompt-title {
  margin: 0 0 6px;
  font-size: 0.98rem;
  font-weight: 600;
  color: #111827;
}

.prompt-desc {
  margin: 0 0 10px;
  font-size: 0.8rem;
  color: #6b7280;
}

.prompt-iframe-wrap {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  background: #ffffff;
}

/* 高度可按需要调整 */
.prompt-iframe {
  width: 100%;
  height: 1100px;
  border: none;
}

/* ===== About 页面 ===== */

.about-hero {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 14px;
}

.about-hero-left,
.about-hero-right {
  flex: 1 1 260px;
}

/* 手机先上下排布 */
@media (max-width: 768px) {
  .about-hero {
    flex-direction: column;
  }
}

.about-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  background: #eef2ff;
  color: #4338ca;
  margin-bottom: 6px;
}

.about-title {
  margin: 0 0 8px;
  font-size: 1.2rem;
  font-weight: 700;
  color: #111827;
}

.about-lead {
  margin: 0 0 10px;
  font-size: 0.86rem;
  color: #4b5563;
  line-height: 1.6;
}

.about-highlight-list {
  margin: 0 0 10px;
}

.about-highlight-item {
  font-size: 0.8rem;
  color: #4b5563;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 4px;
}

.about-highlight-item .dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #60a5fa;
  margin-top: 5px;
}

.about-hero-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.about-chip {
  font-size: 0.76rem;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  color: #4b5563;
}

.about-chip.subtle {
  background: #eff6ff;
  border-color: #bfdbfe;
}

/* KPI 卡片 */

.about-kpi-card {
  border-radius: 16px;
  background: radial-gradient(circle at top, #1d4ed8 0, #020617 65%);
  padding: 12px 14px 10px;
  color: #e5e7eb;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.7);
}

.about-kpi-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.about-kpi {
  flex: 1;
}

.kpi-label {
  font-size: 0.74rem;
  opacity: 0.75;
}

.kpi-value {
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 2px;
}

.about-kpi-note {
  margin-top: 4px;
  font-size: 0.74rem;
  opacity: 0.85;
}

/* 通用 section */

.about-section {
  margin-bottom: 14px;
  padding: 10px 10px 12px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
}

.about-section-title {
  margin: 0 0 8px;
  font-size: 0.98rem;
  font-weight: 600;
  color: #111827;
}

/* 三列布局（小屏自动变一列） */

.about-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

@media (min-width: 768px) {
  .about-columns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.about-col h4 {
  margin: 0 0 4px;
  font-size: 0.86rem;
  color: #111827;
}

.about-col p {
  margin: 0;
  font-size: 0.8rem;
  color: #4b5563;
  line-height: 1.6;
}

/* Tech 区 */

.about-tech-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

@media (min-width: 768px) {
  .about-tech-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.about-tech-card {
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
}

.about-tech-tag {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  background: #eff6ff;
  color: #1d4ed8;
  margin-bottom: 4px;
}

.about-tech-card h4 {
  margin: 0 0 4px;
  font-size: 0.86rem;
  color: #111827;
}

.about-tech-card p {
  margin: 0;
  font-size: 0.8rem;
  color: #4b5563;
  line-height: 1.6;
}

/* 声明区 */

.about-note ul {
  margin: 0;
  padding-left: 18px;
  font-size: 0.8rem;
  color: #4b5563;
  line-height: 1.6;
}



/* ========== 首页样式 ========== */
.home-hero {
  margin-top: 12px;
  padding: 20px 18px;
  border-radius: 22px;
  background: radial-gradient(circle at top left, rgba(59,130,246,0.35), transparent 60%),
              radial-gradient(circle at bottom right, rgba(244,114,182,0.35), transparent 55%),
              rgba(15,23,42,0.9);
  box-shadow: 0 20px 45px rgba(15,23,42,0.75);
  color: #f9fafb;
}

.home-hero-copy h2 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.home-hero-copy p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: #e5e7eb;
}

.home-hero-actions {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #f9fafb;
  box-shadow: 0 10px 25px rgba(37,99,235,0.55);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(148,163,184,0.6);
  color: #e5e7eb;
}

.home-section {
  margin-top: 24px;
}

.home-section-title {
  font-size: 1rem;
  margin-bottom: 10px;
  color: #60a5fa;
}

.home-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.home-card {
  padding: 14px 14px 12px;
  border-radius: 18px;
  background: rgba(15,23,42,0.9);
  border: 1px solid rgba(148,163,184,0.3);
  box-shadow: 0 12px 30px rgba(15,23,42,0.7);
}

.home-card-badge {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  color: #e5e7eb;
  background: rgba(59,130,246,0.25);
  margin-bottom: 6px;
}

.home-card h4 {
  font-size: 0.95rem;
  margin: 2px 0 6px;
  color: #f9fafb;
}

.home-card p {
  font-size: 0.8rem;
  color: #9ca3af;
  line-height: 1.6;
}

.home-tag-list {
  margin: 8px 0 6px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.home-tag-list li {
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(31,41,55,0.9);
  color: #e5e7eb;
}

.home-card-link {
  display: inline-flex;
  margin-top: 4px;
  font-size: 0.8rem;
  color: #60a5fa;
  text-decoration: none;
}

/* Pad 上可以两列展示 */
@media (min-width: 768px) {
  .home-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ========== AI 生图标签页样式 ========== */

.hero-section-ai {
  margin-top: 12px;
  padding: 18px 16px;
  border-radius: 22px;
  background: radial-gradient(circle at top, rgba(129,140,248,0.35), transparent 60%),
              radial-gradient(circle at bottom right, rgba(56,189,248,0.3), transparent 55%),
              rgba(15,23,42,0.96);
  box-shadow: 0 22px 50px rgba(15,23,42,0.9);
  color: #f9fafb;
}

.hero-section-ai .hero-copy h2 {
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.hero-section-ai .hero-copy p {
  font-size: 0.86rem;
  line-height: 1.7;
  color: #e5e7eb;
}

.prompt-tabs {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.prompt-tab {
  border: none;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  background: rgba(15,23,42,0.9);
  color: #e5e7eb;
  box-shadow: 0 0 0 1px rgba(148,163,184,0.45);
  cursor: pointer;
}

.prompt-tab.active {
  background: linear-gradient(135deg, #6366f1, #0ea5e9);
  box-shadow: 0 10px 26px rgba(37,99,235,0.7);
}

.prompt-iframe-wrap {
  margin-top: 12px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(15,23,42,0.9);
  border: 1px solid rgba(148,163,184,0.5);
}

.prompt-iframe {
  width: 100%;
  min-height: 480px;
  border: none;
  background: #020617;
}

/* 首页浏览量文案 */
.home-hero-views {
  margin-top: 6px;
  font-size: 0.78rem;
  color: #cbd5f5;
  opacity: 0.9;
}

/* 首页卡片缩略图预览 */
.home-card-thumbs {
  margin-top: 8px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 4px;
  height: 210px;
  position: relative;
  overflow: hidden;
}

/* 桌面端略微加高，避免裁切过多 */
@media (min-width: 1024px) {
  .home-card-thumbs {
    height: 230px;
  }
}

/* 左侧大图占三行，右侧 3 张小图 */
.home-card-thumb:nth-child(1) {
  grid-column: 1 / 2;
  grid-row: 1 / 4;
  min-height: 100px;
}

.home-card-thumb:nth-child(2),
.home-card-thumb:nth-child(3),
.home-card-thumb:nth-child(4) {
  grid-column: 2 / 3;
}

.home-card-thumb:nth-child(2) { grid-row: 1 / 2; }
.home-card-thumb:nth-child(3) { grid-row: 2 / 3; }
.home-card-thumb:nth-child(4) { grid-row: 3 / 4; }

/* 限制每个首页卡片最多显示 4 张缩略图（1 大 + 3 小） */
.home-card-thumbs .home-card-thumb:nth-of-type(n+5) {
  display: none;
}

.home-card-thumb {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: #020617;
  min-height: 40px;
}

.home-card-thumb a {
  display: block;
  width: 100%;
  height: 100%;
}

.home-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.75);
  transition: filter 0.25s ease-out;
}

/* 悬停时取消蒙版效果 */
.home-card:hover .home-card-thumb img {
  filter: brightness(1);
}

/* NEW 角标 */
.thumb-badge-new {
  position: absolute;
  top: 4px;
  left: 4px;
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 0.65rem;
  background: #f97316;
  color: #ffffff;
  box-shadow: 0 0 0 1px rgba(15,23,42,0.6);
}

.about-stats-line {
  margin-top: 4px;
  font-size: 0.85rem;
  color: #111827;
}
