* {
  margin: 0;
  /* padding: 0; */
  box-sizing: border-box;
}

/* 2026 dark atlas homepage */
body.home-page {
  --atlas-bg: #070811;
  --atlas-panel: rgba(18, 20, 34, 0.82);
  --atlas-panel-strong: rgba(25, 27, 43, 0.96);
  --atlas-line: rgba(255, 255, 255, 0.11);
  --atlas-text: #fff3f7;
  --atlas-muted: rgba(255, 243, 247, 0.64);
  --atlas-soft: rgba(255, 243, 247, 0.42);
  --atlas-pink: #f45b91;
  --atlas-pink-hot: #ff7aa9;
  --atlas-gold: #f4a83d;
  --atlas-blue: #5eb7ff;
  --atlas-radius: 14px;
  display: flex;
  flex-direction: column;
  margin: 0;
  min-height: 100vh;
  color: var(--atlas-text);
  background:
    radial-gradient(circle at 20% -10%, rgba(244, 91, 145, 0.25), transparent 34%),
    radial-gradient(circle at 78% 6%, rgba(126, 96, 255, 0.18), transparent 30%),
    radial-gradient(circle at 72% 82%, rgba(244, 91, 145, 0.12), transparent 34%),
    linear-gradient(135deg, #060711 0%, #0c0d18 42%, #110913 100%);
  text-align: left;
  font-family: "Avenir Next", "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
}

body.home-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.34;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 50% 15%, #000 0 38%, transparent 72%);
}

body.home-page a {
  color: inherit;
  text-decoration: none;
}

body.home-page img {
  max-width: 100%;
  display: block;
}

body.home-page main,
body.home-page .atlas-shell {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  width: min(1480px, calc(100% - 46px));
  max-width: none;
  margin: 0 auto;
  padding: 12px 0 18px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.atlas-nav {
  display: grid;
  grid-template-columns: 178px minmax(0, 1fr) 250px;
  gap: 18px;
  align-items: center;
  min-height: 56px;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.atlas-logo {
  display: inline-grid;
  grid-template-rows: auto auto;
  gap: 6px;
  align-content: center;
  justify-items: center;
  width: 128px;
  min-height: 48px;
  color: #ffb7cc;
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;
  letter-spacing: 0.025em;
  text-align: center;
  text-shadow:
    0 0 1px rgba(255, 255, 255, 0.72),
    0 0 12px rgba(244, 91, 145, 0.46),
    0 0 28px rgba(244, 91, 145, 0.24);
  transform: translateY(-1px);
}

.atlas-logo span {
  display: block;
  color: #ffb6cb;
  font-size: 28px;
  line-height: 0.9;
  font-weight: 950;
  letter-spacing: 0.015em;
}

.atlas-logo small {
  display: block;
  color: #ffd0dd;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: 0.105em;
  text-transform: lowercase;
  opacity: 0.96;
}

.atlas-nav__links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2vw, 32px);
  min-width: 0;
  white-space: nowrap;
}

.atlas-nav__links a {
  position: relative;
  color: rgba(255, 255, 255, 0.86);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.atlas-nav__links a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -18px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--atlas-pink);
  transform: translateX(-50%);
  transition: width 0.2s ease;
}

.atlas-nav__links a:hover,
.atlas-nav__links a[aria-current="page"] {
  color: #fff;
}

.atlas-nav__links a:hover::after,
.atlas-nav__links a[aria-current="page"]::after {
  width: 32px;
}

.atlas-top-search {
  position: relative;
  min-width: 0;
}

.atlas-top-search button {
  position: absolute;
  left: 14px;
  top: 50%;
  z-index: 1;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  color: rgba(255,255,255,0.72);
  background: transparent;
  font-size: 22px;
  line-height: 1;
  transform: translateY(-52%);
  cursor: pointer;
}

.atlas-top-search button:hover {
  color: #ffb6cb;
}

.atlas-top-search input {
  width: 100%;
  height: 34px;
  padding: 0 14px 0 42px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 9px;
  color: #fff;
  background: rgba(11, 12, 22, 0.8);
  outline: none;
}

.atlas-top-search input:focus,
.atlas-search input:focus {
  border-color: rgba(244,91,145,0.72);
  box-shadow: 0 0 0 3px rgba(244,91,145,0.14);
}

.atlas-auth {
  display: flex;
  gap: 10px;
}

.atlas-auth a {
  display: inline-grid;
  min-width: 58px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 9px;
  color: #fff;
  font-weight: 800;
}

.atlas-auth a:last-child {
  border-color: transparent;
  background: linear-gradient(135deg, #ff78a8, #ed477d);
  box-shadow: 0 10px 26px rgba(244, 91, 145, 0.28);
}

.atlas-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  align-items: stretch;
  gap: 14px;
  margin-bottom: auto;
}

.atlas-main {
  display: grid;
  gap: 10px;
  align-content: start;
}

.atlas-sidebar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-self: stretch;
}

.atlas-hero,
.atlas-panel,
.atlas-side-card {
  border: 1px solid var(--atlas-line);
  border-radius: var(--atlas-radius);
  background: var(--atlas-panel);
  box-shadow: 0 22px 80px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255,255,255,0.06);
  overflow: hidden;
}

.atlas-hero {
  --hero-photo-left: 26.5%;
  --hero-photo-width: 60%;
  --hero-photo-object-x: 50%;
  --hero-info-right: 42px;
  --hero-info-top: 49%;
  --hero-info-width: 205px;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.55fr) minmax(430px, 0.45fr);
  min-height: 318px;
  isolation: isolate;
  background:
    linear-gradient(90deg, rgba(6,7,14,0.98) 0%, rgba(9,9,18,0.84) 33%, rgba(16,12,22,0.24) 58%, rgba(25,13,26,0.64) 100%),
    radial-gradient(circle at 56% 8%, rgba(244,91,145,0.22), transparent 42%),
    var(--atlas-panel);
}

.atlas-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 56% 18%, rgba(255, 182, 206, 0.22), transparent 5%),
    radial-gradient(circle at 88% 14%, rgba(255, 122, 169, 0.18), transparent 7%),
    radial-gradient(circle at 74% 36%, rgba(255, 206, 122, 0.13), transparent 6%);
}

.atlas-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.86) 0%, rgba(0,0,0,0.55) 32%, rgba(0,0,0,0.08) 55%, rgba(0,0,0,0.44) 78%, rgba(0,0,0,0.72) 100%),
    radial-gradient(circle at 72% 34%, rgba(244, 91, 145, 0.14), transparent 28%);
  pointer-events: none;
}

.atlas-hero__copy {
  position: relative;
  z-index: 3;
  display: grid;
  align-content: center;
  padding: clamp(28px, 4vw, 58px);
}

.atlas-hero h1 {
  margin: 0 0 16px;
  color: #ffd1de;
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;
  font-size: clamp(58px, 7vw, 96px);
  line-height: 0.92;
  font-weight: 950;
  letter-spacing: 0.02em;
  text-shadow: 0 0 34px rgba(244,91,145,0.3);
}

.atlas-hero p {
  max-width: 600px;
  margin: 0 0 24px;
  color: rgba(255,255,255,0.91);
  font-size: 18px;
  line-height: 1.72;
  font-weight: 700;
}

.atlas-search {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 78px;
  width: min(520px, 100%);
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 13px;
  background: rgba(246, 246, 250, 0.94);
  overflow: hidden;
  box-shadow:
    inset 0 0 0 1px rgba(40, 42, 55, 0.1),
    0 16px 40px rgba(0,0,0,0.26),
    0 0 34px rgba(244, 91, 145, 0.18);
}

.atlas-search__icon {
  position: absolute;
  left: 20px;
  top: 50%;
  z-index: 1;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  color: #6e7183;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  transform: translateY(-52%);
  cursor: pointer;
}

.atlas-search__icon:hover {
  color: #ef4f84;
}

.atlas-search input,
.atlas-search__submit {
  border: 0;
  font: inherit;
  outline: 0;
}

.atlas-search input {
  min-width: 0;
  padding: 0 22px 0 62px;
  color: #1f2028;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.9), rgba(232,233,240,0.92));
  border-radius: 12px 0 0 12px;
  font-size: 16px;
  font-weight: 650;
}

.atlas-search input::placeholder {
  color: #8f91a1;
  opacity: 1;
}

.atlas-search__submit {
  color: #fff;
  background: linear-gradient(180deg, #f45d8e 0%, #ef4f84 100%);
  border-radius: 0 12px 12px 0;
  box-shadow:
    inset 1px 0 0 rgba(255, 255, 255, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.05em;
  cursor: pointer;
}

.atlas-search__submit:hover {
  background: linear-gradient(180deg, #ff6f9f 0%, #f45b91 100%);
}

.atlas-hotline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 14px;
  color: var(--atlas-soft);
  font-size: 13px;
}

.atlas-hotline a {
  padding: 5px 10px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  color: rgba(255,255,255,0.76);
  background: rgba(255,255,255,0.04);
}

.atlas-hero__feature {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  min-height: 100%;
  padding: 0;
  overflow: hidden;
  isolation: isolate;
}

.atlas-hero__feature::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: 68% center;
  opacity: 0.22;
  filter: blur(14px) saturate(1.05);
  transform: scale(1.12);
}

.atlas-hero__feature::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(8,9,16,0.96) 0%, rgba(8,9,16,0.46) 30%, rgba(8,9,16,0.04) 54%, rgba(8,9,16,0.3) 73%, rgba(8,9,16,0.7) 100%),
    radial-gradient(circle at 74% 44%, rgba(255, 126, 169, 0.22), transparent 32%);
}

.atlas-hero__photo {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--hero-photo-left);
  z-index: 1;
  width: var(--hero-photo-width);
  height: 100%;
  object-fit: cover;
  object-position: var(--hero-photo-object-x) center;
  filter: saturate(1.08) contrast(1.03);
  transform: scale(1.035);
}

.atlas-hero__info {
  position: absolute;
  z-index: 5;
  top: var(--hero-info-top);
  right: var(--hero-info-right);
  display: grid;
  gap: 7px;
  width: var(--hero-info-width);
  transform: translateY(-50%);
  text-align: left;
  color: #fff;
}

.atlas-hero__badge,
.atlas-hero__alias,
.atlas-hero__info em,
.atlas-hero__info small {
  color: rgba(255,255,255,0.68);
  font-style: normal;
  font-weight: 650;
  line-height: 1.25;
}

.atlas-hero__badge {
  font-size: 15px;
  letter-spacing: 0.01em;
}

.atlas-hero__badge b {
  color: #ff9abc;
  font-weight: 850;
}

.atlas-hero__alias {
  margin-top: -3px;
  font-size: 18px;
  line-height: 1.15;
  color: rgba(255,255,255,0.72);
}

.atlas-hero__info em {
  color: rgba(255,255,255,0.68);
  font-size: 16px;
  margin-top: 12px;
}

.atlas-hero__info small {
  color: #ff7aa9;
  font-size: 16px;
  margin-top: 6px;
}

.atlas-hero__info strong {
  margin-top: 0;
  color: #ffffff;
  font-size: 32px;
  font-weight: 950;
  line-height: 1.12;
  text-shadow:
    0 2px 10px rgba(0,0,0,0.72),
    0 0 18px rgba(255,255,255,0.16);
}

.atlas-hero__info small {
  color: var(--atlas-pink-hot);
}

.atlas-section-title,
.atlas-side-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.atlas-section-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.atlas-section-title h2,
.atlas-side-title h2,
.atlas-about-card h2,
.atlas-friends h2 {
  margin: 0;
  color: #fff;
  text-align: left;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 950;
}

.atlas-section-title a,
.atlas-section-actions button,
.atlas-side-title a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 29px;
  place-items: center;
  padding: 7px 12px;
  border: 1px solid rgba(150, 110, 255, 0.45);
  border-radius: 999px;
  color: #f0e9ff;
  background: rgba(88, 44, 180, 0.18);
  appearance: none;
  font-size: 13px;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.atlas-section-actions button {
  font-family: inherit;
}

.atlas-section-title a,
.atlas-side-title a {
  color: #cfd7ea;
  background: rgba(255, 255, 255, 0.055);
}

.atlas-section-title a:hover,
.atlas-section-actions button:hover,
.atlas-side-title a:hover {
  color: #f4efff;
  border-color: rgba(177, 122, 255, 0.8);
  background: rgba(130, 69, 255, 0.32);
  transform: translateY(-1px);
}

.atlas-panel {
  padding: 14px;
}

.atlas-region-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.atlas-region-card {
  position: relative;
  display: grid;
  align-content: end;
  min-height: 80px;
  padding: 14px;
  border-radius: 7px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(94,183,255,0.34), rgba(244,91,145,0.22));
}

.atlas-region-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 25%, rgba(255,255,255,0.22), transparent 19%),
    linear-gradient(180deg, transparent, rgba(0,0,0,0.64));
}

.atlas-region-card--china { background-color: #1f5f83; }
.atlas-region-card--taiwan { background-color: #214f7d; }
.atlas-region-card--japan { background-color: #7a4358; }
.atlas-region-card--korea { background-color: #4b2a54; }
.atlas-region-card--hongkong { background-color: #244a62; }
.atlas-region-card--sea { background-color: #4f5b39; }

.atlas-region-card strong,
.atlas-region-card span {
  position: relative;
  z-index: 1;
}

.atlas-region-card strong {
  font-size: 17px;
  font-weight: 950;
}

.atlas-region-card span {
  color: rgba(255,255,255,0.72);
  font-size: 13px;
}

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

.atlas-style-card,
.atlas-latest-card {
  position: relative;
  min-width: 0;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 7px;
  overflow: hidden;
  background: rgba(255,255,255,0.05);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 14px 28px rgba(0,0,0,0.18);
  transform: translateZ(0);
}

.atlas-style-card {
  height: 190px;
}

.atlas-style-card:hover,
.atlas-latest-card:hover,
.atlas-rank-item:hover,
.atlas-region-card:hover {
  transform: translateY(-4px);
  filter: brightness(1.06);
}

.atlas-style-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.atlas-style-card::after,
.atlas-latest-card::after {
  content: "";
  position: absolute;
  inset: 38% 0 0;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.88));
}

.atlas-style-card span,
.atlas-latest-info {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 1;
  display: grid;
  gap: 3px;
}

.atlas-style-card strong,
.atlas-latest-card strong {
  color: #fff;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 950;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.atlas-style-card em,
.atlas-latest-card em,
.atlas-latest-card small {
  color: rgba(255,255,255,0.72);
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.atlas-latest-grid {
  display: grid;
  grid-template-columns: 1.35fr repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.atlas-latest-card {
  height: 280px;
}

.atlas-latest-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.atlas-new-ribbon {
  position: absolute;
  left: -31px;
  top: 11px;
  z-index: 2;
  width: 92px;
  height: 22px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--atlas-pink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  font-weight: 900;
  transform: rotate(-45deg);
}

.atlas-sidebar {
  position: sticky;
  top: 10px;
}

.atlas-side-card {
  padding: 18px;
  background: linear-gradient(180deg, rgba(24, 25, 42, 0.96), rgba(15, 17, 30, 0.94));
}

.atlas-rank-card {
  display: grid;
  grid-template-rows: 62px minmax(0, 1fr) 34px;
  height: 560px;
  padding: 0;
  font-family: "Avenir Next", "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.atlas-rank-card .atlas-side-title {
  align-items: center;
  min-height: 62px;
  margin: 0;
  padding: 0 24px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  background: linear-gradient(90deg, rgba(244,91,145,0.12), rgba(255,255,255,0.02));
}

.atlas-rank-card .atlas-side-title h2 {
  color: rgba(255, 255, 255, 0.88);
  font-size: 20px;
  font-weight: 780;
  letter-spacing: 0.02em;
}

.atlas-rank-card .atlas-side-title a {
  color: #cfd7ea;
  font-weight: 700;
}

.atlas-rank-list {
  display: grid;
  gap: 4px;
  align-content: start;
  margin: 0;
  padding: 14px 24px 0;
  list-style: none;
}

.atlas-rank-item {
  display: grid;
  grid-template-columns: 24px 40px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 40px;
  border-radius: 9px;
}

.atlas-rank-no {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 7px;
  color: rgba(255,255,255,0.92);
  background: rgba(255,255,255,0.13);
  font-size: 13px;
  font-weight: 760;
}

.atlas-rank-list li:nth-child(1) .atlas-rank-no { background: linear-gradient(135deg, #ffc158, #ec8b23); }
.atlas-rank-list li:nth-child(2) .atlas-rank-no { background: linear-gradient(135deg, #cbd7eb, #7d8ca6); }
.atlas-rank-list li:nth-child(3) .atlas-rank-no { background: linear-gradient(135deg, #f19b58, #c76c39); }

.atlas-rank-item img {
  width: 40px;
  height: 40px;
  border-radius: 7px;
  object-fit: cover;
  background: rgba(255,255,255,0.08);
}

.atlas-rank-name {
  min-width: 0;
  display: flex;
  gap: 7px;
  align-items: baseline;
}

.atlas-rank-name strong {
  color: rgba(255,255,255,0.88);
  font-size: 15px;
  line-height: 1.1;
  font-weight: 760;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.atlas-rank-name em {
  color: rgba(255,255,255,0.46);
  font-size: 13px;
  font-style: normal;
  font-weight: 560;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.atlas-rank-hot {
  color: #ff78a6;
  font-size: 13px;
  font-weight: 760;
  white-space: nowrap;
}

.atlas-note {
  margin: 0;
  padding: 0 24px 14px;
  color: rgba(255,255,255,0.34);
  font-size: 12px;
  font-weight: 560;
}

.atlas-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.atlas-tag-cloud a {
  display: inline-grid;
  min-height: 28px;
  place-items: center;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 7px;
  color: rgba(255,255,255,0.76);
  background: rgba(255,255,255,0.06);
  font-size: 13px;
  font-weight: 850;
}

.atlas-tag-cloud a:hover,
.atlas-tag-cloud__more {
  border-color: rgba(244,91,145,0.65) !important;
  color: #ff8eb5 !important;
}

.atlas-about-card p {
  margin: 12px 0 16px;
  color: rgba(255,255,255,0.64);
  font-size: 14px;
  line-height: 1.75;
}

.atlas-about-icons {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.atlas-about-icons span {
  display: grid;
  place-items: center;
  min-height: 54px;
  color: rgba(255,255,255,0.76);
  font-size: 12px;
  font-weight: 850;
}

.atlas-about-icons span::before {
  content: "♡";
  display: grid;
  width: 28px;
  height: 28px;
  margin-bottom: 4px;
  place-items: center;
  border-radius: 50%;
  color: var(--atlas-pink-hot);
  background: rgba(244,91,145,0.12);
}

.atlas-friends ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.atlas-friends li {
  margin: 0;
}

.atlas-friends a {
  color: rgba(255,255,255,0.62);
  font-size: 13px;
}

.atlas-ad-card {
  margin-top: auto;
  padding: 0;
  display: grid;
  place-items: center;
  min-height: 286px;
  background:
    radial-gradient(circle at 22% 0%, rgba(244, 91, 145, 0.2), transparent 34%),
    linear-gradient(150deg, rgba(27, 28, 47, 0.98), rgba(12, 14, 26, 0.96));
}

.atlas-ad-slot {
  position: relative;
  isolation: isolate;
  width: 300px;
  height: 250px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  color: rgba(255,255,255,0.78);
  text-align: center;
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02)),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 11px);
  overflow: hidden;
}

.atlas-ad-slot .donation-network-banner,
.atlas-ad-slot iframe {
  display: block;
  width: 300px;
  height: 250px;
  border: 0;
  color-scheme: normal;
  background: transparent;
}

.atlas-ad-slot--empty::after {
  content: "300 × 250";
  color: rgba(255,255,255,0.34);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.atlas-ad-slot::before {
  content: "";
  position: absolute;
  inset: -40% auto auto -18%;
  z-index: -1;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: rgba(244, 91, 145, 0.18);
  filter: blur(18px);
}

.atlas-ad-slot span {
  position: absolute;
  left: 12px;
  top: 10px;
  padding: 3px 7px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  color: rgba(255,255,255,0.48);
  background: rgba(0,0,0,0.18);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.atlas-ad-slot strong {
  color: rgba(255,255,255,0.92);
  font-size: 22px;
  line-height: 1.1;
  font-weight: 900;
}

.atlas-ad-slot em {
  color: #ff8eb5;
  font-size: 28px;
  line-height: 1;
  font-style: normal;
  font-weight: 950;
  letter-spacing: 0.02em;
}

.atlas-ad-slot small {
  max-width: 210px;
  color: rgba(255,255,255,0.48);
  font-size: 12px;
  line-height: 1.55;
}

.atlas-empty {
  margin: 0;
  color: var(--atlas-muted);
}

.home-footer.atlas-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  min-height: 48px;
  margin-top: 10px;
  padding: 10px 32px;
  color: #8c97aa;
  background: transparent;
  border: 0;
  box-shadow: none;
  font-family: "Avenir Next", "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 13px;
}

.home-footer.atlas-footer p {
  margin: 0;
}

.home-footer.atlas-footer .footer-copy {
  justify-self: start;
}

.home-footer.atlas-footer .footer-icp {
  justify-self: center;
  min-width: 120px;
  min-height: 24px;
  text-align: center;
  color: #8c97aa;
  overflow: hidden;
}

.home-footer.atlas-footer .footer-icp a {
  color: #8c97aa;
}

.home-footer.atlas-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
  justify-self: end;
}

.home-footer.atlas-footer a {
  color: #8c97aa;
}

.home-footer.atlas-footer a:hover {
  color: #f45b91;
}

@media (max-width: 1280px) {
  .atlas-nav {
    grid-template-columns: 160px minmax(0, 1fr) auto;
  }

  .atlas-top-search {
    display: none;
  }

  .atlas-layout {
    grid-template-columns: 1fr;
  }

  .atlas-sidebar {
    display: grid;
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .atlas-ad-card {
    margin-top: 0;
  }

  .home-footer.atlas-footer {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .home-footer.atlas-footer .footer-copy,
  .home-footer.atlas-footer .footer-icp,
  .home-footer.atlas-footer nav {
    justify-self: center;
  }

  .home-footer.atlas-footer nav {
    justify-content: center;
    gap: 10px 14px;
  }
}

@media (max-width: 960px) {
  body.home-page main,
  body.home-page .atlas-shell {
    width: min(100% - 22px, 760px);
  }

  .atlas-nav {
    grid-template-columns: 1fr auto;
  }

  .atlas-nav__links {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .atlas-hero {
    --hero-photo-left: 31%;
    --hero-photo-width: 62%;
    --hero-info-right: 28px;
    --hero-info-width: 170px;
    grid-template-columns: 1fr;
  }

  .atlas-hero__feature {
    min-height: 100%;
  }

  .atlas-hero__info {
    width: var(--hero-info-width);
  }

  .atlas-region-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .atlas-style-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .atlas-latest-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .atlas-latest-card {
    height: 240px;
  }

  .atlas-sidebar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  body.home-page main,
  body.home-page .atlas-shell {
    width: calc(100% - 16px);
    padding-top: 8px;
  }

  .atlas-logo span {
    font-size: 24px;
  }

  .atlas-auth a:first-child {
    display: none;
  }

  .atlas-hero__copy {
    padding: 28px 20px;
  }

  .atlas-hero h1 {
    font-size: clamp(48px, 18vw, 72px);
  }

  .atlas-hero p {
    font-size: 15px;
  }

  .atlas-hero__photo {
    left: 46%;
    width: 64%;
    opacity: 0.78;
  }

  .atlas-hero__info {
    display: none;
  }

  .atlas-search {
    grid-template-columns: 1fr 70px;
    height: 46px;
  }

  .atlas-search__icon {
    left: 16px;
    font-size: 24px;
  }

  .atlas-search input {
    padding-left: 52px;
    font-size: 14px;
  }

  .atlas-region-grid,
  .atlas-latest-grid,
  .atlas-style-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .atlas-style-card {
    height: 170px;
  }

  .atlas-latest-card {
    height: 220px;
  }

  .atlas-rank-item {
    grid-template-columns: 24px 36px minmax(0, 1fr);
  }

  .atlas-rank-hot {
    grid-column: 3;
  }
}

body {
  font-family: Arial, sans-serif;
  font-size: 150%;
  margin: 0;
  padding: 0;
  background-color: #f8f6f4; /* 设置背景颜色 */
  color: #333; /* 设置默认文本颜色 */
  line-height: 2;
}

.column_title {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 10px;
  display: inline;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.logo-container {
  display: flex;
  align-items: center; /* 垂直居中 */
  justify-content: center; /* 水平居中 */
  height: 100%;
}

.logo {
  height: 50px;
  width: 50px;
  margin-right: 10px;
}

.title {
  font-size: 1.2em;
  margin-bottom: 0;
}

.nav-links a {
  margin-left: 20px;
  text-decoration: none;
  color: #333;
  font-size: 1em;
}

.nav-links a:hover {
  color: #007bff;
  text-decoration: none;
}

a {
  color: #007bff;
  text-decoration: none;
}

a:hover {
  color: #007bff;
  text-decoration: none;
}

a.h1 {
  color: #333;
  padding: 0px;
  margin: 0px;
}

h2 {
  margin: auto;
  text-align: center;
}

div.column_title {
  font-size: 20px;
}

div.hot-introduce {
  text-align: center;
  margin: 20px auto;
}

div.watch-more {
  text-align: center;
  margin: 20px auto;
}

.content {
  margin-top: 60px; /* 确保内容不被标题栏遮挡 */
  padding: 20px;
}

a {
  color: rgba(0, 0, 255, 0.8);
  text-decoration: none;
  padding: 10px;
  /* margin: 10px; */
  border-radius: 5px;
}

a.link:hover {
  color: #fff;
  background-color: rgba(255, 0, 0, 0.6);
}

section {
  /* max-width: 90%; */
  /* margin: 20px auto; */
  /* padding: 30px; */
  /* border: 2px dashed orange; */
  /* border-radius: 20px; */
}

section.category {
  border: none;
}

section.search {
  border: none;
}

section.intro {
  /* margin-top: 150px; */
  max-width: 900px;
}

.container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

a.card {
  background-color: #f8f6f4;
  padding: 10px;
  margin: 10px;
}

a.card:hover {
  background-color: #f8f6f4;
}

div.card {
  width: 270px;
  padding: 5px;
  border: 2px dashed orange;
  border-radius: 15px;
  box-shadow: 2px 2px 12px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: left;
  height: 200px;
}

/* 设置卡片在鼠标悬停时的样式 */
.card:hover {
  transform: scale(1.03); /* 缩放效果 */
}

.card img {
  width: 100px;
  height: 100px;
  margin: 10px;
  border: 2px dotted #555;
  border-radius: 8px;
}

.col-data {
  width: 160px;
  font-size: 120%;
  color: rgba(255, 0, 0, 0.8);
  margin: 30px;
}

div.column-title {
  font-size: 25px;
  padding: 10px;
  margin: 10px;
  height: 30px;
  width: 100px;
  line-height: 120%;
}

div.column-author {
  padding: 10px;
  margin: 10px;
  width: 500px;
  line-height: 120%;
}

.intro {
  display: block;
}

.red {
  color: red;
}

.bold {
  font-weight: bold;
}

section#hot {
  /* margin-top: 100px; */
  max-width: 2200px;
  border: none;
}

section#about {
  margin-top: 50px;
  margin-bottom: 200px;
  max-width: 900px;
}

button {
  border: none;
  background-color: rgb(255, 165, 0, 0.8);
  /* color: white; */
  padding: 10px 20px;
  font-weight: bold;
  font-size: large;
  border-radius: 10px;
}

.friend-links {
  font-size: 80%;
}

/* 设置友情链接样式 */
.friend-links {
  margin-top: 10px; /* 上外边距 */
}

.friend-links h4 {
  margin-bottom: 10px; /* 下外边距 */
}

.friend-links ul {
  list-style-type: none; /* 列表样式为无 */
  padding: 0; /* 内边距为0 */
}

.friend-links li {
  display: inline; /* 行内展示 */
  margin: 0 10px; /* 外边距 */
}

.friend-links a {
  text-decoration: none; /* 移除下划线 */
  color: #000; /* 字体颜色 */
}

.friend-links a:hover {
  text-decoration: underline; /* 鼠标悬停时显示下划线 */
}

/* 将精选虾仁沙雕动画导航站原站友链设置为和背景同一颜色 */
li.original a {
  color: #f8f6f4;
}

section#privacy {
  margin-top: 100px;
  margin-bottom: 50px;
}

/* 小屏幕模式 */
@media (max-width: 800px) {
  .title {
    display: none;
  }
  .navbar {
    padding: 10px;
  }
  .filter-sort {
    flex-direction: column;
    align-items: center;
  }
  .filter-sort select {
    width: 80%;
    margin-bottom: 10px;
  }
  .friend-links {
    font-size: smaller;
  }
  a.about {
    display: none;
  }
  
}

/* 2026 home-only redesign: neon fresh candy carnival */
body.home-page {
  --home-ink: #24303f;
  --home-pink: #ff5c9a;
  --home-coral: #ff8a66;
  --home-mint: #43dfbc;
  --home-cyan: #54c7ff;
  --home-lemon: #ffe36e;
  --home-violet: #9b7cff;
  --home-paper: rgba(255, 255, 255, 0.76);
  color: var(--home-ink);
  background:
    linear-gradient(90deg, rgba(255, 92, 154, 0.13) 1px, transparent 1px),
    linear-gradient(0deg, rgba(84, 199, 255, 0.12) 1px, transparent 1px),
    repeating-linear-gradient(135deg, rgba(255, 227, 110, 0.16) 0 14px, transparent 14px 31px),
    linear-gradient(120deg, #fff8dc 0%, #e7fff8 28%, #fff0fa 60%, #eaf7ff 100%);
  background-size: 44px 44px, 44px 44px, auto, auto;
}

body.home-page main {
  width: min(1240px, calc(100% - 28px));
}

body.home-page .library-hero {
  min-height: 360px;
  align-items: end;
  margin-top: 14px;
  padding: 28px;
  border: 4px solid rgba(36, 48, 63, 0.08);
  border-radius: 34px;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.9) 0 48%, rgba(255, 255, 255, 0.56) 48%),
    repeating-linear-gradient(-28deg, rgba(255, 92, 154, 0.18) 0 16px, rgba(255, 227, 110, 0.2) 16px 32px, rgba(67, 223, 188, 0.16) 32px 48px),
    #fff;
  box-shadow:
    0 26px 0 rgba(36, 48, 63, 0.06),
    0 34px 78px rgba(255, 92, 154, 0.2);
}

body.home-page .library-hero::before {
  width: 168px;
  height: 46px;
  top: 24px;
  right: 188px;
  border: 3px solid rgba(36, 48, 63, 0.1);
  border-radius: 8px;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.72) 0 18px, rgba(255, 227, 110, 0.76) 18px 36px),
    var(--home-lemon);
  box-shadow: 0 12px 20px rgba(255, 138, 102, 0.16);
}

body.home-page .library-hero::after {
  right: 26px;
  bottom: 24px;
  width: 160px;
  height: 160px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(84, 199, 255, 0.28), rgba(67, 223, 188, 0.34)),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.72) 0 8px, transparent 8px 16px);
  transform: rotate(10deg);
}

body.home-page .hero-nav a,
body.home-page .library-action {
  border: 2px solid rgba(36, 48, 63, 0.1);
  background: rgba(255, 255, 255, 0.82);
  box-shadow:
    0 8px 0 rgba(36, 48, 63, 0.08),
    inset 0 -10px 0 rgba(84, 199, 255, 0.14);
}

body.home-page .hero-nav a:nth-child(2) {
  inset: auto;
  box-shadow:
    0 8px 0 rgba(36, 48, 63, 0.08),
    inset 0 -10px 0 rgba(255, 227, 110, 0.42);
}

body.home-page .hero-nav a:hover,
body.home-page .library-action:hover {
  color: var(--home-ink);
  background: #fff;
  transform: translateY(-3px) rotate(-1deg);
}

body.home-page .library-action--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--home-pink), var(--home-coral), var(--home-lemon));
  box-shadow:
    0 10px 0 rgba(180, 45, 94, 0.18),
    0 18px 34px rgba(255, 92, 154, 0.22);
}

body.home-page .library-eyebrow {
  border: 2px solid rgba(36, 48, 63, 0.08);
  color: #fff;
  background:
    linear-gradient(90deg, var(--home-pink), var(--home-violet), var(--home-cyan));
  box-shadow: 0 8px 0 rgba(36, 48, 63, 0.06);
}

body.home-page .library-hero h1 {
  max-width: 840px;
  color: var(--home-ink);
  font-size: clamp(48px, 8vw, 96px);
  line-height: 0.96;
  text-shadow:
    4px 4px 0 rgba(255, 227, 110, 0.74),
    8px 8px 0 rgba(67, 223, 188, 0.38);
}

body.home-page .library-subtitle {
  max-width: 680px;
  color: rgba(36, 48, 63, 0.74);
  font-size: 18px;
  font-weight: 900;
}

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

.home-hero-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border: 2px solid rgba(36, 48, 63, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--home-ink);
  font-size: 14px;
  font-weight: 900;
}

.home-hero-tags span:nth-child(1) { box-shadow: inset 0 -12px 0 rgba(255, 92, 154, 0.2); }
.home-hero-tags span:nth-child(2) { box-shadow: inset 0 -12px 0 rgba(255, 227, 110, 0.38); }
.home-hero-tags span:nth-child(3) { box-shadow: inset 0 -12px 0 rgba(67, 223, 188, 0.24); }

.home-ticker {
  position: relative;
  margin: -4px 0 18px;
  border: 3px solid rgba(36, 48, 63, 0.08);
  border-radius: 999px;
  background: #ffffff;
  box-shadow:
    0 12px 0 rgba(36, 48, 63, 0.06),
    0 18px 40px rgba(84, 199, 255, 0.14);
  overflow: hidden;
}

.home-ticker-track {
  display: flex;
  width: max-content;
  gap: 12px;
  padding: 11px 12px;
  animation: homeTickerRun 18s linear infinite;
}

.home-ticker-track span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 18px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--home-pink), var(--home-violet));
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.home-ticker-track span:nth-child(3n + 2) {
  background: linear-gradient(135deg, var(--home-cyan), var(--home-mint));
}

.home-ticker-track span:nth-child(3n) {
  color: var(--home-ink);
  background: linear-gradient(135deg, var(--home-lemon), #fff7b0);
}

@keyframes homeTickerRun {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* 2026 refresh: clean directory style */
:root {
  --page-bg: #f6f3ee;
  --surface: #fffdf9;
  --surface-soft: #fbf7f1;
  --ink: #201b18;
  --muted: #756c64;
  --line: #e8ddd3;
  --accent: #b54848;
  --accent-strong: #8f2f36;
  --accent-soft: #fff0ee;
  --shadow: 0 18px 45px rgba(64, 41, 31, 0.08);
  --radius: 8px;
}

html {
  background: var(--page-bg);
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "PingFang SC", serif;
  font-size: 16px;
  line-height: 1.6;
  background:
    linear-gradient(180deg, rgba(255, 253, 249, 0.88), rgba(246, 243, 238, 0.98) 380px),
    var(--page-bg);
  color: var(--ink);
}

a {
  color: var(--accent-strong);
  padding: 0;
  border-radius: 0;
}

a:hover {
  color: var(--accent);
}

.navbar {
  width: min(1180px, calc(100% - 32px)) !important;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 14px;
  background: rgba(255, 253, 249, 0.88);
  border: 1px solid rgba(232, 221, 211, 0.9);
  border-radius: 10px;
  box-shadow: 0 14px 40px rgba(64, 41, 31, 0.08);
}

.logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--ink);
}

.nav-links {
  display: flex;
  gap: 6px;
  align-items: center;
}

.nav-links a {
  margin-left: 0;
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a:hover,
a.link:hover {
  color: var(--accent-strong);
  background: var(--accent-soft);
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding-top: 94px;
}

.library-hero {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: flex-end;
  padding: 30px 0 24px;
  text-align: left;
}

.library-eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-family: "Avenir Next", "PingFang SC", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.library-hero h2 {
  margin: 0;
  text-align: left;
  color: var(--ink);
  font-size: clamp(30px, 5vw, 58px);
  line-height: 1.05;
  font-weight: 800;
}

.library-subtitle {
  max-width: 620px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.library-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.library-action {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.86);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(64, 41, 31, 0.06);
}

.library-action--primary {
  border-color: var(--accent-strong);
  background: var(--accent-strong);
  color: #fffdf9;
}

.library-action:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
  background: var(--accent-soft);
}

.library-action--primary:hover {
  color: #fffdf9;
  background: var(--accent);
}

.ranking-tabs {
  position: sticky;
  top: 78px;
  z-index: 50;
  margin-bottom: 22px;
  padding: 8px;
  border: 1px solid rgba(232, 221, 211, 0.88);
  border-radius: 12px;
  background: rgba(255, 253, 249, 0.88);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 35px rgba(64, 41, 31, 0.06);
}

.ranking-tabs .nav-tabs {
  gap: 6px;
  border-bottom: 0;
}

.ranking-tabs .nav-link {
  min-height: 38px;
  border: 0 !important;
  border-radius: 999px !important;
  color: var(--muted);
  background: transparent;
  font-size: 14px;
  font-weight: 700;
}

.ranking-tabs .nav-link:hover {
  color: var(--accent-strong);
  background: var(--accent-soft);
}

.ranking-tabs .nav-link.active {
  color: #fffdf9 !important;
  background: var(--accent-strong) !important;
  box-shadow: 0 10px 22px rgba(143, 47, 54, 0.18);
}

button {
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
}

#friend-links {
  margin: 42px 0 24px;
}

#friend-links h3 {
  color: var(--ink);
  font-size: 18px;
}

li.original a {
  color: var(--page-bg);
}

@media (max-width: 800px) {
  body {
    font-size: 15px;
  }

  .navbar {
    width: calc(100% - 18px) !important;
    top: 8px;
  }

  .nav-links a {
    padding: 6px 9px;
    font-size: 13px;
  }

  main {
    width: calc(100% - 20px);
    padding-top: 76px;
  }

  .library-hero {
    display: block;
    padding: 22px 0 16px;
  }

  .library-subtitle {
    font-size: 14px;
  }

  .library-actions {
    justify-content: flex-start;
    margin-top: 16px;
  }

  .ranking-tabs {
    top: 66px;
    overflow-x: auto;
  }

  .ranking-tabs .nav-tabs {
    flex-wrap: nowrap;
  }
}

/* 2026 candy board refresh */
:root {
  --page-bg: #fff7ec;
  --paper: #fffefa;
  --paper-2: #fff3f4;
  --ink: #2c2427;
  --muted: #796e72;
  --line: #f0d9cf;
  --accent: #ff6f8d;
  --accent-strong: #de3f67;
  --mint: #7cdcc4;
  --lemon: #ffd86d;
  --sky: #8ec8ff;
  --lavender: #c8a7ff;
  --peach: #ffad7d;
  --shadow: 0 24px 60px rgba(183, 91, 91, 0.16);
  --radius: 18px;
}

html {
  background: var(--page-bg);
}

body {
  min-height: 100vh;
  font-family: "Hiragino Maru Gothic ProN", "Yu Gothic", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.58;
  color: var(--ink);
  background:
    radial-gradient(circle at 16px 16px, rgba(255, 111, 141, 0.12) 0 3px, transparent 4px),
    linear-gradient(135deg, rgba(124, 220, 196, 0.18), transparent 26%),
    linear-gradient(225deg, rgba(255, 216, 109, 0.24), transparent 30%),
    var(--page-bg);
  background-size: 32px 32px, auto, auto, auto;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.28) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255,255,255,0.24) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, #000, transparent 70%);
}

a {
  color: var(--accent-strong);
}

.navbar {
  width: min(1200px, calc(100% - 28px)) !important;
  top: 12px;
  left: 50%;
  transform: translateX(-50%) rotate(-0.2deg);
  padding: 10px 14px;
  border: 2px solid rgba(44, 36, 39, 0.08);
  border-radius: 22px;
  background: rgba(255, 254, 250, 0.82);
  box-shadow: 0 18px 45px rgba(183, 91, 91, 0.14);
  backdrop-filter: blur(18px) saturate(1.2);
}

.logo {
  width: 42px;
  height: 42px;
  border: 3px solid #fff;
  border-radius: 15px;
  box-shadow: 0 8px 18px rgba(222, 63, 103, 0.18);
}

.title {
  font-size: 18px;
  font-weight: 900;
  color: var(--ink);
}

.nav-links {
  display: flex;
  gap: 8px;
  width: 100%;
  justify-content: center;
}

.nav-links a {
  margin-left: 0;
  padding: 8px 13px;
  border: 1px solid rgba(44, 36, 39, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.nav-links a:nth-child(1) {
  box-shadow: inset 0 -10px 0 rgba(124, 220, 196, 0.28);
}

.nav-links a:nth-child(2) {
  box-shadow: inset 0 -10px 0 rgba(255, 216, 109, 0.35);
}

.nav-links a:nth-child(3) {
  box-shadow: inset 0 -10px 0 rgba(255, 111, 141, 0.22);
}

.nav-links a:hover,
a.link:hover {
  color: var(--accent-strong);
  background: #fff;
  transform: translateY(-1px);
}

main {
  position: relative;
  width: min(1200px, calc(100% - 28px));
  margin: 0 auto;
  padding-top: 22px;
}

.library-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  margin: 8px 0 22px;
  padding: 34px 28px 30px;
  border: 2px solid rgba(44, 36, 39, 0.08);
  border-radius: 28px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.92), rgba(255, 243, 244, 0.88)),
    repeating-linear-gradient(-35deg, rgba(124, 220, 196, 0.16) 0 12px, rgba(255, 216, 109, 0.18) 12px 24px);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-nav {
  position: relative;
  z-index: 2;
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.hero-nav a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 2px solid rgba(44, 36, 39, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 8px 0 rgba(44, 36, 39, 0.04);
}

.hero-nav a:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  transform: translateY(-2px) rotate(-1deg);
}

.library-hero::before,
.library-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border: 2px solid rgba(44, 36, 39, 0.08);
  background: rgba(255, 255, 255, 0.48);
}

.library-hero::before {
  width: 120px;
  height: 36px;
  top: 18px;
  right: 190px;
  transform: rotate(8deg);
  border-radius: 999px;
}

.library-hero::after {
  width: 92px;
  height: 92px;
  right: 28px;
  bottom: -28px;
  transform: rotate(15deg);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 216, 109, 0.7), rgba(142, 200, 255, 0.55));
}

.library-eyebrow {
  display: inline-flex;
  margin: 0 0 10px;
  padding: 6px 10px;
  border: 1px solid rgba(44, 36, 39, 0.08);
  border-radius: 999px;
  background: #fff;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.library-hero h2 {
  max-width: 760px;
  margin: 0;
  text-align: left;
  color: var(--ink);
  font-size: clamp(38px, 7vw, 78px);
  line-height: 0.98;
  font-weight: 900;
}

.library-subtitle {
  max-width: 620px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
}

.library-actions {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.library-action {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 2px solid rgba(44, 36, 39, 0.08);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
  box-shadow: 0 10px 0 rgba(44, 36, 39, 0.06);
}

.library-action--primary {
  border-color: rgba(222, 63, 103, 0.18);
  background: linear-gradient(135deg, var(--accent), var(--peach));
  color: #fff;
}

.library-action:hover {
  color: var(--ink);
  transform: translateY(-2px) rotate(-1deg);
  box-shadow: 0 14px 0 rgba(44, 36, 39, 0.06);
}

.ranking-tabs {
  position: sticky;
  top: 76px;
  z-index: 50;
  margin-bottom: 20px;
  padding: 9px;
  border: 2px solid rgba(44, 36, 39, 0.08);
  border-radius: 999px;
  background: rgba(255, 254, 250, 0.86);
  box-shadow: 0 16px 38px rgba(183, 91, 91, 0.12);
  backdrop-filter: blur(16px);
}

.ranking-tabs .nav-tabs {
  gap: 8px;
  border-bottom: 0;
}

.ranking-tabs .nav-link {
  min-height: 40px;
  border: 0 !important;
  border-radius: 999px !important;
  color: var(--muted);
  background: transparent;
  font-size: 14px;
  font-weight: 900;
}

.ranking-tabs .nav-link:nth-child(1):hover {
  background: rgba(124, 220, 196, 0.22);
}

.ranking-tabs .nav-link:nth-child(2):hover {
  background: rgba(255, 216, 109, 0.28);
}

.ranking-tabs .nav-link:nth-child(3):hover {
  background: rgba(255, 111, 141, 0.18);
}

.ranking-tabs .nav-link.active {
  color: #fff !important;
  background: linear-gradient(135deg, var(--accent-strong), var(--accent)) !important;
  box-shadow: 0 10px 22px rgba(222, 63, 103, 0.22);
}

#friend-links {
  margin: 46px 0 28px;
}

#friend-links h3 {
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
}

.legal-page {
  max-width: 920px;
  margin: 0 auto 72px;
}

.legal-hero {
  margin: 22px 0 20px;
  padding: 30px 28px;
  border: 2px solid rgba(44, 36, 39, 0.08);
  border-radius: 28px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.94), rgba(255, 243, 244, 0.9)),
    repeating-linear-gradient(-35deg, rgba(124, 220, 196, 0.14) 0 12px, rgba(255, 216, 109, 0.16) 12px 24px);
  box-shadow: var(--shadow);
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.legal-nav a,
.footer-legal-links a {
  color: var(--ink);
  font-weight: 900;
}

.legal-nav a {
  padding: 8px 14px;
  border: 2px solid rgba(44, 36, 39, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 0 rgba(44, 36, 39, 0.04);
}

.legal-nav a:hover,
.footer-legal-links a:hover {
  color: var(--accent-strong);
}

.legal-hero h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(34px, 6vw, 62px);
  line-height: 1;
  font-weight: 900;
}

.legal-hero p {
  max-width: 660px;
  margin: 14px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.legal-card {
  padding: 26px;
  border: 2px solid rgba(44, 36, 39, 0.08);
  border-radius: 24px;
  background: rgba(255, 254, 250, 0.92);
  box-shadow: 0 18px 44px rgba(183, 91, 91, 0.12);
}

.legal-card h2 {
  margin: 24px 0 10px;
  text-align: left;
  color: var(--accent-strong);
  font-size: 22px;
  font-weight: 900;
}

.legal-card h2:first-child {
  margin-top: 0;
}

.legal-card p,
.legal-card li {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.85;
}

.legal-card ul {
  padding-left: 1.2em;
}

.legal-note {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 216, 109, 0.22);
  color: var(--ink);
  font-weight: 800;
}

/* Scroll performance: skip painting off-screen blocks on non-home pages. */
@supports (content-visibility: auto) {
  body:not(.home-page) .legal-card,
  body:not(.home-page) .channel-panel,
  body:not(.home-page) .ranking-directory,
  body:not(.home-page) .ranking-orbit-panel,
  body:not(.home-page) section.search {
    content-visibility: auto;
    contain-intrinsic-size: 1px 640px;
    contain: layout paint style;
  }

  body:not(.home-page) .legal-card {
    contain-intrinsic-size: 1px 720px;
  }

  body:not(.home-page) .channel-panel {
    contain-intrinsic-size: 1px 900px;
  }

  body:not(.home-page) .ranking-directory,
  body:not(.home-page) .ranking-orbit-panel {
    contain-intrinsic-size: 1px 420px;
  }
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  justify-content: center;
  margin: 8px 0;
  font-size: 13px;
}

.library-hero h1 {
  max-width: 760px;
  margin: 0;
  text-align: left;
  color: var(--ink);
  font-size: clamp(38px, 7vw, 78px);
  line-height: 0.98;
  font-weight: 900;
  overflow-wrap: anywhere;
  word-break: break-all;
}

/* 2026 home v2: fresh maximal clickboard */
body.home-page {
  --home-ink: #17212b;
  --home-muted: #5f6b76;
  --home-pink: #ff4f8f;
  --home-tangerine: #ff9f43;
  --home-mint: #22c7a9;
  --home-blue: #2d9cff;
  --home-lemon: #ffe66d;
  --home-lilac: #a983ff;
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(23, 33, 43, 0.05) 1px, transparent 1px),
    linear-gradient(0deg, rgba(23, 33, 43, 0.045) 1px, transparent 1px),
    repeating-linear-gradient(135deg, rgba(255, 79, 143, 0.14) 0 12px, transparent 12px 30px),
    linear-gradient(135deg, #fff8e8 0%, #e9fff9 32%, #fff1f7 68%, #edf8ff 100%);
  background-size: 34px 34px, 34px 34px, auto, auto;
  color: var(--home-ink);
}

body.home-page main {
  width: min(1260px, calc(100% - 24px));
  padding: 14px 0 34px;
}

.home-ignite {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(340px, 0.78fr);
  gap: 18px;
  min-height: 520px;
  margin: 0 0 18px;
  padding: 18px;
  border: 3px solid rgba(23, 33, 43, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.92) 0 54%, rgba(255, 238, 248, 0.76) 54%),
    repeating-linear-gradient(-32deg, rgba(255, 230, 109, 0.28) 0 18px, rgba(34, 199, 169, 0.17) 18px 36px, rgba(45, 156, 255, 0.14) 36px 54px);
  box-shadow: 0 14px 0 rgba(23, 33, 43, 0.07), 0 30px 74px rgba(255, 79, 143, 0.16);
  overflow: hidden;
}

.home-ignite::before {
  content: "";
  position: absolute;
  inset: 16px;
  pointer-events: none;
  border: 1px dashed rgba(23, 33, 43, 0.16);
}

.home-ignite__copy,
.home-lucky {
  position: relative;
  z-index: 1;
}

.home-ignite .hero-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}

.home-ignite .hero-nav a {
  min-height: 36px;
  padding: 5px 13px;
  border: 2px solid rgba(23, 33, 43, 0.1);
  border-radius: 8px;
  color: var(--home-ink);
  background: rgba(255, 255, 255, 0.72);
  font-weight: 900;
  box-shadow: inset 0 -9px 0 rgba(45, 156, 255, 0.14);
}

.home-ignite .hero-nav a:hover {
  color: var(--home-ink);
  transform: translateY(-2px);
  background: #fff;
}

body.home-page .library-eyebrow {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 11px;
  border: 2px solid rgba(23, 33, 43, 0.08);
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(90deg, var(--home-pink), var(--home-lilac), var(--home-blue));
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: 0 7px 0 rgba(23, 33, 43, 0.06);
}

.home-ignite h1 {
  max-width: 760px;
  margin: 18px 0 14px;
  color: var(--home-ink);
  font-size: clamp(42px, 6.7vw, 84px);
  line-height: 0.98;
  font-weight: 950;
  letter-spacing: 0;
  text-shadow: 4px 4px 0 rgba(255, 230, 109, 0.82), 8px 8px 0 rgba(34, 199, 169, 0.24);
}

.home-ignite .library-subtitle {
  max-width: 700px;
  margin: 0 0 22px;
  color: rgba(23, 33, 43, 0.74);
  font-size: 17px;
  font-weight: 900;
  line-height: 1.75;
}

.home-search {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 720px;
  min-height: 62px;
  padding: 7px;
  border: 2px solid rgba(23, 33, 43, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 0 rgba(23, 33, 43, 0.05), 0 18px 38px rgba(45, 156, 255, 0.1);
}

.home-search input,
.home-search button {
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 15px;
  font-weight: 900;
}

.home-search input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0 18px;
  color: var(--home-ink);
  background: transparent;
  outline: 0;
}

.home-search input:focus {
  box-shadow: inset 0 -3px 0 rgba(255, 79, 143, 0.18);
}

.home-search button {
  flex: 0 0 auto;
  width: auto;
  min-width: 92px;
  padding: 0 18px;
}

.home-search button,
#home-lucky-button,
#home-refresh-grid {
  color: #fff;
  background: linear-gradient(135deg, var(--home-pink), var(--home-tangerine));
  box-shadow: 0 8px 0 rgba(168, 47, 90, 0.2);
  cursor: pointer;
}

.home-search button:hover,
#home-lucky-button:hover,
#home-refresh-grid:hover {
  transform: translateY(-2px);
  filter: saturate(1.08);
}

.home-mood-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  max-width: 760px;
  margin-top: 16px;
}

.home-mood-tags a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 0 13px;
  border: 2px solid rgba(23, 33, 43, 0.08);
  border-radius: 8px;
  color: var(--home-ink);
  background: #fff;
  font-size: 14px;
  font-weight: 900;
  box-shadow: inset 0 -10px 0 rgba(255, 230, 109, 0.34);
}

.home-mood-tags a:nth-child(2n) { box-shadow: inset 0 -10px 0 rgba(34, 199, 169, 0.2); }
.home-mood-tags a:nth-child(3n) { box-shadow: inset 0 -10px 0 rgba(255, 79, 143, 0.18); }

.home-quick-picks {
  max-width: 760px;
  margin-top: 18px;
  padding: 12px;
  border: 2px solid rgba(23, 33, 43, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 244, 250, 0.62)),
    repeating-linear-gradient(90deg, rgba(255, 230, 109, 0.16) 0 12px, transparent 12px 24px);
  box-shadow: 0 12px 0 rgba(23, 33, 43, 0.04), 0 18px 36px rgba(34, 199, 169, 0.1);
}

.home-quick-picks__head {
  display: flex;
  gap: 12px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 10px;
}

.home-quick-picks__head span {
  color: var(--home-pink);
  font-size: 11px;
  font-weight: 950;
}

.home-quick-picks__head h2 {
  margin: 2px 0 0;
  color: var(--home-ink);
  text-align: left;
  font-size: 22px;
  line-height: 1.15;
  font-weight: 950;
}

.home-quick-picks__head a {
  flex: 0 0 auto;
  color: var(--home-ink);
  font-size: 13px;
  font-weight: 950;
  box-shadow: inset 0 -8px 0 rgba(45, 156, 255, 0.14);
}

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

.home-quick-card {
  display: grid;
  grid-template-rows: 104px auto auto auto;
  min-width: 0;
  gap: 4px;
  padding: 8px;
  border: 2px solid rgba(23, 33, 43, 0.07);
  border-radius: 8px;
  color: var(--home-ink);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 0 rgba(23, 33, 43, 0.04);
  overflow: hidden;
}

.home-quick-card:hover {
  color: var(--home-ink);
  transform: translateY(-4px) rotate(-0.8deg);
  background: #fff;
}

.home-quick-card img {
  width: 100%;
  height: 104px;
  border-radius: 8px;
  object-fit: cover;
  background: #ffe9f2;
}

.home-quick-card span {
  color: var(--home-pink);
  font-size: 11px;
  font-weight: 950;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-quick-card strong {
  color: var(--home-ink);
  font-size: 15px;
  line-height: 1.2;
  font-weight: 950;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-quick-card small {
  color: var(--home-muted);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-lucky {
  align-self: stretch;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 12px;
  padding: 14px;
  border: 3px solid rgba(23, 33, 43, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 244, 250, 0.74)),
    repeating-linear-gradient(90deg, rgba(255, 79, 143, 0.13) 0 14px, rgba(255, 230, 109, 0.18) 14px 28px);
}

.home-lucky__topline {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.home-lucky__topline span {
  color: var(--home-pink);
  font-size: 14px;
  font-weight: 950;
}

#home-lucky-button,
#home-refresh-grid {
  min-height: 40px;
  padding: 0 13px;
  border: 0;
  border-radius: 8px;
  font-size: 14px;
}

.home-featured-card,
.home-featured-link {
  min-height: 0;
}

.home-featured-link {
  display: grid;
  grid-template-rows: minmax(250px, 1fr) auto auto auto auto;
  gap: 8px;
  height: 100%;
  padding: 10px;
  border: 2px solid rgba(23, 33, 43, 0.08);
  border-radius: 8px;
  color: var(--home-ink);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 13px 0 rgba(23, 33, 43, 0.06);
}

.home-featured-link:hover {
  color: var(--home-ink);
  transform: rotate(-0.8deg) translateY(-3px);
}

.home-featured-link img {
  width: 100%;
  height: 100%;
  min-height: 250px;
  border-radius: 8px;
  object-fit: cover;
  background: #ffe9f2;
}

.home-featured-kicker,
.home-pick-card__label,
.home-pick-card__rank {
  color: var(--home-pink);
  font-size: 12px;
  font-weight: 950;
}

.home-featured-link strong {
  color: var(--home-ink);
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.05;
  font-weight: 950;
}

.home-featured-link em,
.home-featured-link small {
  color: var(--home-muted);
  font-style: normal;
  font-weight: 900;
  line-height: 1.5;
}

.home-featured-link small {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.home-mini-stats a {
  display: grid;
  min-height: 50px;
  place-items: center;
  border-radius: 8px;
  color: var(--home-ink);
  background: rgba(255, 255, 255, 0.74);
  font-size: 13px;
  font-weight: 950;
  box-shadow: inset 0 -10px 0 rgba(45, 156, 255, 0.14);
}

.home-ticker {
  margin: 0 0 18px;
  border-radius: 8px;
}

.home-discovery {
  margin: 0 0 18px;
  padding: 18px;
  border: 3px solid rgba(23, 33, 43, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.9), rgba(242, 255, 250, 0.82)),
    repeating-linear-gradient(90deg, rgba(45, 156, 255, 0.08) 0 10px, transparent 10px 26px);
  box-shadow: 0 14px 0 rgba(23, 33, 43, 0.06), 0 28px 62px rgba(34, 199, 169, 0.14);
}

.home-section-heading {
  display: flex;
  gap: 16px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 16px;
}

.home-section-heading h2 {
  margin: 10px 0 0;
  color: var(--home-ink);
  text-align: left;
  font-size: clamp(30px, 4.8vw, 58px);
  line-height: 1.04;
  font-weight: 950;
}

.home-discovery-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 14px;
}

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

.home-pick-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 190px auto auto auto;
  gap: 7px;
  min-width: 0;
  padding: 10px;
  border: 2px solid rgba(23, 33, 43, 0.08);
  border-radius: 8px;
  color: var(--home-ink);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 0 rgba(23, 33, 43, 0.05);
}

.home-pick-card:hover {
  color: var(--home-ink);
  transform: translateY(-5px) rotate(-0.8deg);
  background: #fff;
}

.home-pick-card img {
  width: 100%;
  height: 190px;
  border-radius: 8px;
  object-fit: cover;
  background: #ffe9f2;
}

.home-pick-card strong {
  color: var(--home-ink);
  font-size: 19px;
  line-height: 1.2;
  font-weight: 950;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-pick-card small {
  color: var(--home-muted);
  font-size: 12px;
  font-weight: 900;
}

.home-rank-jump {
  display: grid;
  gap: 10px;
  align-content: start;
}

.home-rank-jump a {
  display: grid;
  min-height: 94px;
  place-items: center;
  border: 2px solid rgba(23, 33, 43, 0.08);
  border-radius: 8px;
  color: var(--home-ink);
  background: linear-gradient(135deg, #fff, #fff4c7);
  font-size: 18px;
  font-weight: 950;
  box-shadow: 0 9px 0 rgba(23, 33, 43, 0.05);
}

.home-rank-jump a:nth-child(2) { background: linear-gradient(135deg, #fff, #dffbf5); }
.home-rank-jump a:nth-child(3) { background: linear-gradient(135deg, #fff, #ffe4f0); }

.home-feed-empty {
  margin: 0;
  color: var(--home-muted);
  font-weight: 900;
}

@media (max-width: 980px) {
  .home-ignite,
  .home-discovery-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  body.home-page main {
    width: calc(100% - 16px);
    padding-top: 8px;
  }

  .home-ignite {
    min-height: 0;
    padding: 12px;
  }

  .home-ignite .hero-nav {
    margin-bottom: 24px;
  }

  .home-ignite h1 {
    font-size: clamp(34px, 13vw, 50px);
  }

  .home-search {
    min-height: 56px;
    padding: 6px;
  }

  .home-search input,
  .home-search button {
    min-height: 44px;
    font-size: 14px;
  }

  .home-search input {
    padding: 0 12px;
  }

  .home-search button {
    min-width: 76px;
    padding: 0 12px;
  }

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

  .home-lucky {
    padding: 10px;
  }

  .home-featured-link {
    grid-template-rows: 280px auto auto auto auto;
  }

  .home-section-heading {
    display: block;
  }

  #home-refresh-grid {
    width: 100%;
    margin-top: 12px;
  }

  .home-recommend-grid {
    grid-template-columns: 1fr;
  }

  .home-pick-card {
    grid-template-rows: auto 240px auto auto auto;
  }

  .home-pick-card img {
    height: 240px;
  }

  .home-mini-stats {
    grid-template-columns: 1fr;
  }

}

/* Final priority: keep the atlas homepage above legacy home experiments. */
body.home-page {
  --atlas-bg: #070811;
  --atlas-panel: rgba(18, 20, 34, 0.82);
  --atlas-panel-strong: rgba(25, 27, 43, 0.96);
  --atlas-line: rgba(255, 255, 255, 0.11);
  --atlas-text: #fff3f7;
  --atlas-muted: rgba(255, 243, 247, 0.64);
  --atlas-soft: rgba(255, 243, 247, 0.42);
  --atlas-pink: #f45b91;
  --atlas-pink-hot: #ff7aa9;
  --atlas-gold: #f4a83d;
  --atlas-blue: #5eb7ff;
  --atlas-radius: 14px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  color: var(--atlas-text);
  background:
    radial-gradient(circle at 20% -10%, rgba(244, 91, 145, 0.25), transparent 34%),
    radial-gradient(circle at 78% 6%, rgba(126, 96, 255, 0.18), transparent 30%),
    radial-gradient(circle at 72% 82%, rgba(244, 91, 145, 0.12), transparent 34%),
    linear-gradient(135deg, #060711 0%, #0c0d18 42%, #110913 100%);
  background-size: auto;
  text-align: left;
  font-family: "Avenir Next", "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
}

body.home-page main.atlas-shell {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  width: min(1480px, calc(100% - 46px));
  max-width: none;
  margin: 0 auto;
  padding: 12px 0 0;
}

body.home-page header.atlas-nav {
  background: transparent;
  background-color: transparent;
  color: var(--atlas-text);
  padding: 0;
  text-align: left;
}

body.home-page .atlas-nav,
body.home-page .atlas-panel,
body.home-page .atlas-side-card,
body.home-page .atlas-footer,
body.home-page .atlas-search,
body.home-page .atlas-top-search {
  font-family: "Avenir Next", "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
}

body.home-page .atlas-logo,
body.home-page .atlas-logo span,
body.home-page .atlas-hero h1 {
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;
}

body.home-page .atlas-shell :where(h1, h2, h3, p, ul, ol) {
  text-align: initial;
}

body.home-page .atlas-shell a:hover {
  color: inherit;
}

body.home-page .atlas-nav__links a {
  color: rgba(255, 255, 255, 0.86);
}

body.home-page .atlas-nav__links a:hover,
body.home-page .atlas-nav__links a[aria-current="page"] {
  color: #fff;
}

body.home-page .atlas-logo,
body.home-page .atlas-logo:hover {
  color: #ffb7cc;
}

body.home-page .atlas-logo span,
body.home-page .atlas-logo:hover span {
  color: #ffb6cb;
}

body.home-page .atlas-logo small,
body.home-page .atlas-logo:hover small {
  color: #ffd0dd;
}

body.home-page .atlas-auth a,
body.home-page .atlas-auth a:hover,
body.home-page .atlas-hotline a,
body.home-page .atlas-tag-cloud a {
  color: inherit;
}

body.home-page .atlas-section-title a,
body.home-page .atlas-side-title a {
  color: #cfd7ea;
}

body.home-page #friend-links {
  margin: 0;
  text-align: left;
}

body.home-page #friend-links.atlas-side-card {
  padding: 18px;
  border: 1px solid var(--atlas-line);
  border-radius: var(--atlas-radius);
}

body.home-page #friend-links ul {
  justify-content: flex-start;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.home-page #friend-links ul li {
  margin: 0;
}

body.home-page #friend-links ul li a,
body.home-page #friend-links ul li a:hover {
  color: rgba(255, 255, 255, 0.62);
}

body.home-page #xm-container {
  display: none;
}

body.home-page .atlas-hero__info strong {
  color: #fff !important;
  font-weight: 950;
  text-shadow:
    0 2px 12px rgba(0, 0, 0, 0.82),
    0 0 22px rgba(255, 255, 255, 0.2);
}

body.home-page .atlas-hero__badge,
body.home-page .atlas-hero__alias,
body.home-page .atlas-hero__info em {
  color: rgba(255, 255, 255, 0.66);
}

body.home-page .atlas-hero__info small {
  color: #ff7aa9;
}

@media (max-width: 960px) {
  body.home-page main.atlas-shell {
    width: min(100% - 22px, 760px);
  }
}

@media (max-width: 620px) {
  body.home-page main.atlas-shell {
    width: calc(100% - 16px);
    padding-top: 8px;
  }
}
