/**
 * 首页样式：新版视觉（Hero 左文右图、精选项目区、项目卡片、最近常用、情绪区、页脚）
 * 小白解说：这一版按设计图走“深蓝黑 + 蓝紫渐变 + 玻璃卡片”的语言，
 * 图片铺满卡片、底部压深色渐变、文字坐在渐变上，右下角放圆形箭头按钮。
 */

/* ------------------------------ 页面级变量 ------------------------------ */
html[data-theme="dark"] {
  --card-fade-strong: linear-gradient(180deg, transparent 30%, rgba(5, 8, 20, 0.55) 58%, rgba(4, 6, 16, 0.92) 100%);
  --hero-img-radius: 22px;
  --hero-img-border: rgba(255, 255, 255, 0.12);
  --note-bg: rgba(16, 20, 38, 0.78);
  --gold: #f2c14e;
  --gold-quiet: rgba(242, 193, 78, 0.16);
}

html[data-theme="light"] {
  --card-fade-strong: linear-gradient(180deg, rgba(8, 12, 30, 0) 30%, rgba(10, 15, 35, 0.5) 58%, rgba(8, 12, 30, 0.88) 100%);
  --hero-img-radius: 22px;
  --hero-img-border: rgba(38, 54, 110, 0.14);
  --note-bg: rgba(255, 255, 255, 0.86);
  --gold: #d9a520;
  --gold-quiet: rgba(217, 165, 32, 0.16);
}

.section {
  scroll-margin-top: 88px;
}

/* ------------------------------ Hero ------------------------------ */
.hero {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 54px 24px 0;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 40px;
  align-items: center;
  min-height: 420px;
}

.hero-copy {
  position: relative;
  z-index: 3;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

.hero-title {
  margin: 18px 0 18px;
  font-size: clamp(46px, 6vw, 78px);
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: -2.5px;
  color: var(--text-strong);
}

.hero-title .grad {
  background: var(--hero-title-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

html[data-theme="dark"] .hero-title .grad {
  filter: drop-shadow(0 8px 30px rgba(123, 97, 255, 0.32));
}

.hero-subtitle {
  max-width: 520px;
  font-size: 14.5px;
  line-height: 1.95;
  color: var(--muted);
  white-space: pre-line;
}

/* CTA 按钮 + 胶囊搜索框并排 */
.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
  flex-wrap: wrap;
}

.hero-cta {
  height: 50px;
  padding: 0 26px;
  font-size: 14px;
  font-weight: 600;
  gap: 9px;
}

.hero-cta .icon {
  width: 17px;
  height: 17px;
  transition: transform 0.22s ease;
}

.hero-cta:hover .icon {
  transform: translateX(3px);
}

.hero-search {
  flex: 1;
  min-width: 230px;
  max-width: 430px;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 50px;
  padding: 5px 5px 5px 18px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--search-bg);
  box-shadow: var(--search-shadow);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hero-search:focus-within {
  border-color: rgba(123, 97, 255, 0.55);
  box-shadow: var(--search-shadow), 0 0 0 4px var(--accent-soft);
}

.hero-search-leading {
  display: flex;
  color: var(--faint);
}

.hero-search-leading .icon {
  width: 17px;
  height: 17px;
}

.hero-search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 13.5px;
}

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

.search-btn {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f7dff 0%, #6d64ff 55%, #8b5cf6 100%);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(93, 100, 255, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.search-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(93, 100, 255, 0.45);
}

/* 统计数字 */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 30px;
}

.hero-stat {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}

.hero-stat strong {
  font-size: 22px;
  font-weight: 750;
  letter-spacing: -0.5px;
  color: var(--accent-2);
  font-variant-numeric: tabular-nums;
}

.hero-stat em {
  font-style: normal;
  font-size: 11.5px;
  color: var(--muted);
}

.hero-stat-sep {
  width: 1px;
  height: 14px;
  background: var(--border-strong);
}

/* ------------------------------ Hero 右侧氛围图 ------------------------------ */
.hero-visual {
  position: relative;
  z-index: 1;
  min-height: 340px;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: -8% -6%;
  border-radius: 50%;
  background: radial-gradient(circle at 62% 38%, rgba(112, 90, 255, 0.30), transparent 62%);
  filter: blur(36px);
  pointer-events: none;
}

.hero-ambient {
  position: relative;
  height: 400px;
  overflow: hidden;
  border-radius: var(--hero-img-radius);
  border: 1px solid var(--hero-img-border);
  box-shadow: 0 30px 70px rgba(3, 6, 20, 0.45);
}

html[data-theme="light"] .hero-ambient {
  box-shadow: 0 24px 54px rgba(45, 64, 140, 0.16);
}

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

html[data-theme="dark"] .hero-img-light {
  display: none;
}

html[data-theme="light"] .hero-img-dark {
  display: none;
}

.hero-ambient::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(420px 240px at 85% 0%, rgba(139, 92, 246, 0.22), transparent 70%),
    radial-gradient(360px 260px at 0% 100%, rgba(79, 125, 255, 0.18), transparent 70%);
  pointer-events: none;
}

/* 便签卡片：压在氛围图左下角，保留后台可配置的 heroNote */
.hero-note-card {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 5;
  max-width: 240px;
  padding: 13px 15px 12px;
  border: 1px solid var(--hero-img-border);
  border-radius: 13px;
  background: var(--note-bg);
  box-shadow: 0 16px 36px rgba(3, 6, 20, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-family: var(--font-hand);
  font-size: 11.5px;
  line-height: 1.78;
  letter-spacing: 0.3px;
  color: var(--muted);
}

.note-pin {
  position: absolute;
  top: -5px;
  left: 22px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(145deg, #ffd479, #ff9d5c);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.24);
}

/* ------------------------------ 分类筛选 ------------------------------ */
.filter-row {
  position: relative;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px;
  margin-top: 34px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.filter-chip .icon {
  width: 15px;
  height: 15px;
  color: var(--tone, var(--accent));
}

.filter-chip:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--panel-2);
  transform: translateY(-1px);
}

.filter-chip.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #4f7dff 0%, #6d64ff 58%, #8b5cf6 100%);
  box-shadow: 0 10px 24px var(--accent-soft);
  font-weight: 600;
}

.filter-chip.active .icon {
  color: #fff;
}

/* ------------------------------ 区块标题 ------------------------------ */
.section {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.featured-section {
  margin-top: 64px;
}

#projectsSection {
  margin-top: 58px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.section-eyebrow {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
}

.section-title-line {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 6px;
}

.section-title-line h2 {
  font-size: 24px;
  font-weight: 750;
  letter-spacing: 0.5px;
  color: var(--text-strong);
  white-space: nowrap;
}

.title-rule {
  width: 88px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #4f7dff, #8b5cf6 70%, transparent);
}

.section-side {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 4px;
}

.section-side-desc {
  font-size: 12px;
  color: var(--faint);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 2px;
  border: 0;
  background: none;
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 550;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.link-arrow:hover {
  opacity: 0.75;
}

.link-arrow .icon {
  width: 14px;
  height: 14px;
}

.view-all {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 2px;
  border: 0;
  background: none;
  color: var(--accent);
  font-size: 12.5px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.view-all:hover {
  opacity: 0.75;
}

.view-all .icon {
  width: 14px;
  height: 14px;
}

/* ------------------------------ 精选项目区 ------------------------------ */
.featured-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr);
  gap: 16px;
}

.featured-side {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
  min-height: 0;
}

.featured-stage[data-count="1"] {
  grid-template-columns: 1fr;
}

.featured-stage[data-count="1"] .featured-side {
  display: none;
}

.featured-card {
  position: relative;
  display: block;
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.featured-card:hover {
  transform: translateY(-3px);
  border-color: var(--card-hover-border);
  box-shadow: 0 26px 52px rgba(4, 8, 24, 0.34);
}

html[data-theme="light"] .featured-card:hover {
  box-shadow: 0 22px 46px rgba(30, 45, 100, 0.16);
}

.featured-card.is-hero {
  min-height: 420px;
}

.featured-card.is-mini {
  min-height: 202px;
}

/* 卡片底图 + 右上角蓝紫光晕 */
.featured-cover {
  position: absolute;
  inset: 0;
  background: var(--cover-fallback);
}

.featured-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.5s ease;
}

.featured-card:hover .featured-cover img {
  transform: scale(1.06);
}

.featured-card::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.30), transparent 68%);
  filter: blur(6px);
  z-index: 1;
  pointer-events: none;
}

.featured-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--card-fade-strong);
}

/* 金色星标：重点项目的身份牌 */
.featured-star {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(10, 14, 30, 0.55);
  border: 1px solid rgba(242, 193, 78, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--gold);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.featured-star .icon {
  width: 13px;
  height: 13px;
  fill: currentColor;
  stroke: none;
}

/* 文字块：坐在左下角 */
.featured-body {
  position: absolute;
  left: 22px;
  right: 84px;
  bottom: 20px;
  z-index: 3;
  color: #fff;
}

.featured-card.is-mini .featured-body {
  left: 16px;
  right: 64px;
  bottom: 14px;
}

.featured-cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 10.5px;
  color: #fff;
  letter-spacing: 0.5px;
}

.featured-cat .icon {
  width: 12px;
  height: 12px;
}

.featured-body h3 {
  margin-top: 12px;
  font-size: 26px;
  font-weight: 750;
  letter-spacing: 0.2px;
  color: #fff;
  text-shadow: 0 4px 22px rgba(4, 8, 24, 0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.featured-card.is-mini .featured-body h3 {
  margin-top: 9px;
  font-size: 16.5px;
}

.featured-body p {
  margin-top: 7px;
  font-size: 12.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.featured-card.is-mini .featured-body p {
  margin-top: 5px;
  font-size: 11.5px;
  -webkit-line-clamp: 1;
}

.featured-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.featured-tags .tag-pill {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.85);
}

.featured-card.is-mini .featured-tags {
  display: none;
}

/* 右下角圆形箭头 */
.featured-go {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 4;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(16, 20, 38, 0.5);
  color: #fff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.featured-card.is-mini .featured-go {
  right: 14px;
  bottom: 14px;
  width: 36px;
  height: 36px;
}

.featured-go .icon {
  width: 17px;
  height: 17px;
}

.featured-card.is-mini .featured-go .icon {
  width: 15px;
  height: 15px;
}

.featured-card:hover .featured-go {
  transform: translateX(3px);
  background: linear-gradient(135deg, #4f7dff, #8b5cf6);
  border-color: transparent;
}

/* ------------------------------ 项目卡片（图铺满 + 底部渐变） ------------------------------ */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.project-card {
  position: relative;
  display: block;
  min-height: 250px;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--card-bg);
  box-shadow: var(--shadow-card);
  text-decoration: none;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.project-card:hover {
  transform: translateY(-3px);
  border-color: var(--card-hover-border);
  box-shadow: 0 24px 48px rgba(4, 8, 24, 0.32);
}

html[data-theme="light"] .project-card:hover {
  box-shadow: 0 20px 42px rgba(30, 45, 100, 0.15);
}

.card-cover {
  position: absolute;
  inset: 0;
  background: linear-gradient(150deg, var(--tone-quiet, rgba(123, 97, 255, 0.2)), rgba(255, 255, 255, 0.02) 72%);
}

.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.5s ease;
}

.project-card:hover .card-cover img {
  transform: scale(1.07);
}

.card-fade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--card-fade-strong);
}

/* 普通列表里的重点项目也挂一颗小金星 */
.card-star {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 4;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(10, 14, 30, 0.55);
  border: 1px solid rgba(242, 193, 78, 0.4);
  color: var(--gold);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.card-star .icon {
  width: 14px;
  height: 14px;
  fill: currentColor;
  stroke: none;
}

.card-body {
  position: absolute;
  left: 18px;
  right: 66px;
  bottom: 16px;
  z-index: 3;
  color: #fff;
}

.card-meta-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.card-meta-line .tag-pill {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
}

.card-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.75);
}

.card-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

.card-status.is-online {
  color: #4ade80;
}

.card-status.is-dev {
  color: #fbbf24;
}

.card-body h3 {
  margin-top: 10px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: #fff;
  text-shadow: 0 4px 20px rgba(4, 8, 24, 0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-body p {
  margin-top: 6px;
  font-size: 11.8px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.75);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-go {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 4;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(16, 20, 38, 0.5);
  color: #fff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.card-go .icon {
  width: 16px;
  height: 16px;
}

.project-card:hover .card-go {
  transform: translateX(3px);
  background: linear-gradient(135deg, #4f7dff, #8b5cf6);
  border-color: transparent;
}

/* ------------------------------ 最近常用 ------------------------------ */
.quick-section {
  margin-top: 58px;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.quick-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 74px;
  padding: 12px 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--card-bg);
  box-shadow: var(--shadow-card);
  text-decoration: none;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

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

.brand-tile {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  overflow: hidden;
  color: #64748b;
}

.brand-tile .brand-svg {
  width: 24px;
  height: 24px;
}

.brand-tile[data-icon="github"] {
  background: #101114;
  border-color: #26272c;
}

.brand-tile[data-icon="notion"] {
  background: #ffffff;
}

.brand-tile[data-icon="tencent"] {
  background: #f2f6ff;
}

.quick-text {
  min-width: 0;
  flex: 1;
}

.quick-text strong {
  display: block;
  font-size: 13.5px;
  font-weight: 650;
  color: var(--text-strong);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.quick-text small {
  display: block;
  margin-top: 3px;
  font-size: 11.2px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.quick-go {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--faint);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.quick-go .icon {
  width: 13px;
  height: 13px;
}

.quick-card:hover .quick-go {
  background: var(--accent-soft);
  border-color: transparent;
  color: var(--accent);
}

/* ------------------------------ 情绪引导区 ------------------------------ */
.mood-section {
  position: relative;
  max-width: var(--max-w);
  margin: 84px auto 0;
  padding: 30px 24px 46px;
  text-align: center;
}

.mood-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--faint);
}

.mood-title {
  margin-top: 14px;
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--text-strong);
}

.mood-rule {
  display: block;
  width: 130px;
  height: 2px;
  margin: 22px auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, #4f7dff 30%, #8b5cf6 70%, transparent);
}

/* ------------------------------ 加载 / 空状态 ------------------------------ */
.loading-text {
  grid-column: 1 / -1;
  padding: 34px 0;
  text-align: center;
  color: var(--faint);
  font-size: 13px;
}

.skeleton-card {
  position: relative;
  min-height: 250px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card-bg);
  overflow: hidden;
}

.skeleton-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
  transform: translateX(-100%);
  animation: shimmer 1.3s infinite;
}

@keyframes shimmer {
  to {
    transform: translateX(100%);
  }
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 54px 20px 58px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--panel);
  text-align: center;
}

.empty-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 6px;
  border-radius: 16px;
  background: var(--accent-soft);
  color: var(--accent);
}

.empty-icon .icon {
  width: 24px;
  height: 24px;
}

.empty-title {
  font-size: 14.5px;
  font-weight: 650;
  color: var(--text-strong);
}

.empty-desc {
  font-size: 12.5px;
  color: var(--muted);
}

.empty-state .btn {
  margin-top: 12px;
}

/* ------------------------------ 页脚 ------------------------------ */
.site-footer {
  max-width: var(--max-w);
  margin: 40px auto 0;
  padding: 22px 24px 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px 24px;
  border-top: 1px solid var(--border);
}

.footer-legal {
  flex-basis: 100%;
  margin-top: 4px;
  padding-top: 14px;
  display: flex;
  justify-content: center;
  border-top: 1px solid var(--border);
}

.footer-legal .legal-links {
  justify-content: center;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.footer-name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
}

.footer-desc {
  margin-top: 3px;
  font-size: 11.5px;
  color: var(--faint);
}

.footer-copy {
  font-size: 11.5px;
  color: var(--faint);
  padding-top: 2px;
}

/* ------------------------------ 响应式 ------------------------------ */
@media (max-width: 1120px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 30px;
    min-height: 0;
  }

  .hero-visual {
    min-height: 0;
  }

  .hero-ambient {
    height: 300px;
  }
}

@media (max-width: 1080px) {
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .featured-stage {
    grid-template-columns: 1fr;
  }

  .featured-card.is-hero {
    min-height: 340px;
  }

  .featured-side {
    grid-template-rows: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .hero {
    padding-top: 40px;
  }

  .hero-title {
    letter-spacing: -1.5px;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .section-side {
    padding-bottom: 0;
  }
}

@media (max-width: 720px) {
  .hero-stats {
    flex-wrap: wrap;
    gap: 10px 12px;
  }

  .hero-stat strong {
    font-size: 18px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-cta {
    width: 100%;
  }

  .hero-search {
    max-width: none;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .featured-side {
    grid-template-columns: 1fr;
  }

  .featured-card.is-mini {
    min-height: 180px;
  }

  .filter-row {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .filter-row::-webkit-scrollbar {
    display: none;
  }

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

  .mood-section {
    margin-top: 56px;
    padding-bottom: 34px;
  }

  .site-footer {
    flex-direction: column;
    gap: 12px;
  }
}

@media (max-width: 560px) {
  .hero {
    padding: 32px 16px 0;
  }

  .section {
    padding: 0 16px;
  }

  .hero-ambient {
    height: 230px;
  }

  .hero-note-card {
    max-width: 200px;
    padding: 10px 12px 9px;
  }

  .section-title-line h2 {
    font-size: 20px;
  }

  .quick-grid {
    grid-template-columns: 1fr;
  }

  .featured-card.is-hero {
    min-height: 280px;
  }

  .featured-body h3 {
    font-size: 21px;
  }

  .mood-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .site-footer {
    margin-top: 32px;
    padding: 20px 16px 28px;
  }
}

/* ------------------------------ 网站暂未开放（未上线模式） ------------------------------ */
/* 白话：站长在后台关掉网站后，游客看到的就是这一整块：一个大大的提示卡片 + 登录入口 */

.site-closed {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 96px 24px 40px;
}

.site-closed-card {
  max-width: 520px;
  margin: 0 auto;
  padding: 56px 40px 48px;
  text-align: center;
  border-radius: 24px;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
  background: linear-gradient(180deg, rgba(16, 20, 38, 0.55), rgba(10, 13, 26, 0.35));
  backdrop-filter: blur(14px);
}

html[data-theme="light"] .site-closed-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(246, 247, 252, 0.75));
}

.site-closed-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 20px;
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--accent, #6366f1), #22d3ee);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.35);
  margin-bottom: 22px;
}

.site-closed-title {
  margin: 0 0 12px;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--text-strong, #f5f7ff);
}

.site-closed-desc {
  margin: 0 0 28px;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--muted, #9aa3b8);
}

.site-closed-actions {
  display: flex;
  justify-content: center;
}

/* 登录用户看到的「未上线模式」小横幅（黄底提醒，不打断浏览） */
.closed-notice {
  max-width: var(--max-w);
  margin: 18px auto 0;
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--gold, #f2c14e);
  background: var(--gold-quiet, rgba(242, 193, 78, 0.16));
  border: 1px solid rgba(242, 193, 78, 0.3);
}
