:root {
  --pink: #ff5cda;
  --cyan: #33f2ff;
  --lime: #b8ff3d;
  --violet: #8b5cff;
  --orange: #ff9a3d;
  --bg-dark: #14101f;
  --bg-card: #1d1730;
  --bg-soft: #251d3d;
  --text-main: #ffffff;
  --text-sub: #b8aee0;
  --radius: 20px;
}

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

body {
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  background: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  background-image:
    radial-gradient(circle at 10% 0%, rgba(139, 92, 255, 0.28), transparent 40%),
    radial-gradient(circle at 90% 15%, rgba(255, 92, 218, 0.2), transparent 40%),
    radial-gradient(circle at 50% 100%, rgba(51, 242, 255, 0.12), transparent 50%);
  background-attachment: fixed;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; }

/* ============ 顶部导航 ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(20, 16, 31, 0.82);
  border-bottom: 1px solid rgba(255, 92, 218, 0.25);
}

.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.brand img {
  height: 34px;
  width: auto;
  border-radius: 9px;
}
.brand span {
  background: linear-gradient(90deg, var(--cyan), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-search {
  flex: 1 1 260px;
  display: flex;
  align-items: center;
  max-width: 380px;
  margin: 0 auto;
  background: var(--bg-soft);
  border: 1px solid rgba(51, 242, 255, 0.3);
  border-radius: 999px;
  padding: 6px 14px;
  transition: box-shadow 0.25s, border-color 0.25s;
}
.nav-search:focus-within {
  border-color: var(--cyan);
  box-shadow: 0 0 16px rgba(51, 242, 255, 0.45);
}
.nav-search input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  font-size: 0.9rem;
}
.nav-search input::placeholder { color: var(--text-sub); }
.nav-search .search-icon { color: var(--cyan); margin-right: 8px; }

.nav-links {
  display: flex;
  gap: 16px;
  list-style: none;
  font-size: 0.9rem;
  color: var(--text-sub);
  flex-wrap: wrap;
}
.nav-links a { transition: color 0.2s, text-shadow 0.2s; }
.nav-links a:hover {
  color: var(--cyan);
  text-shadow: 0 0 10px var(--cyan);
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 10px;
}
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--violet), var(--pink));
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  font-weight: 700;
  border: 2px solid rgba(255, 255, 255, 0.25);
}
.btn-login {
  border: 1px solid var(--pink);
  background: transparent;
  color: var(--pink);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-login:hover {
  background: var(--pink);
  color: #fff;
  box-shadow: 0 0 18px rgba(255, 92, 218, 0.7);
}

/* ============ 通用排版 ============ */
.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}
section { padding: 64px 0; }

.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.sec-head h2 {
  font-size: 1.7rem;
  letter-spacing: 0.5px;
  position: relative;
  padding-left: 16px;
}
.sec-head h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 70%;
  border-radius: 6px;
  background: linear-gradient(180deg, var(--cyan), var(--pink));
  box-shadow: 0 0 12px var(--pink);
}
.sec-head p {
  color: var(--text-sub);
  font-size: 0.92rem;
  max-width: 520px;
}

/* ============ Hero ============ */
.hero {
  padding: 72px 0 48px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.hero-copy h1 {
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  line-height: 1.2;
  margin-bottom: 22px;
  letter-spacing: 1px;
}
.hero-copy h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--pink), var(--cyan), var(--lime));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 14px rgba(255, 92, 218, 0.4));
}
.hero-copy p {
  color: var(--text-sub);
  font-size: 1.02rem;
  max-width: 480px;
  margin-bottom: 32px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.btn-primary {
  display: inline-block;
  padding: 14px 38px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  color: #1a1030;
  background: linear-gradient(120deg, var(--cyan), var(--lime));
  box-shadow: 0 0 24px rgba(51, 242, 255, 0.55);
  transition: transform 0.15s, box-shadow 0.25s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 0 36px rgba(51, 242, 255, 0.85);
}
.btn-primary:active {
  transform: translateY(2px) scale(0.98);
  box-shadow: 0 0 12px rgba(51, 242, 255, 0.4);
}
.btn-ghost {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 999px;
  border: 1px solid rgba(255, 92, 218, 0.6);
  color: var(--pink);
  font-size: 0.95rem;
  transition: all 0.2s;
}
.btn-ghost:hover {
  background: rgba(255, 92, 218, 0.14);
  box-shadow: 0 0 22px rgba(255, 92, 218, 0.5);
}

/* 轮播 */
.hero-carousel {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(139, 92, 255, 0.5);
  box-shadow: 0 0 42px rgba(139, 92, 255, 0.35);
  background: var(--bg-card);
}
.carousel-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.carousel-slide {
  flex: 0 0 100%;
  position: relative;
}
.carousel-slide img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.slide-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 40px 22px 20px;
  background: linear-gradient(180deg, transparent, rgba(15, 10, 26, 0.94));
}
.slide-caption strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 4px;
}
.slide-caption span {
  font-size: 0.82rem;
  color: var(--text-sub);
}
.carousel-dots {
  position: absolute;
  bottom: 12px;
  right: 18px;
  display: flex;
  gap: 8px;
}
.carousel-dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  padding: 0;
  transition: all 0.25s;
}
.carousel-dots button.active {
  background: var(--cyan);
  width: 24px;
  border-radius: 6px;
  box-shadow: 0 0 10px var(--cyan);
}

/* ============ 分类快捷入口 ============ */
.quick-cats {
  padding-top: 24px;
}
.cat-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.cat-item {
  background: var(--bg-card);
  border: 1px solid rgba(139, 92, 255, 0.28);
  border-radius: var(--radius);
  padding: 22px 12px;
  text-align: center;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.cat-item:hover {
  transform: translateY(-6px) scale(1.04);
  border-color: var(--cyan);
  box-shadow: 0 0 26px rgba(51, 242, 255, 0.35);
}
.cat-icon {
  font-size: 1.9rem;
  margin-bottom: 10px;
  display: block;
}
.cat-item strong {
  display: block;
  font-size: 0.98rem;
  margin-bottom: 3px;
}
.cat-item small {
  color: var(--text-sub);
  font-size: 0.76rem;
}

/* ============ 编辑精选横滑 ============ */
.scroll-strip {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding-bottom: 18px;
  scroll-snap-type: x mandatory;
}
.scroll-strip::-webkit-scrollbar { height: 8px; }
.scroll-strip::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, var(--violet), var(--pink));
  border-radius: 8px;
}
.scroll-strip::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.05); border-radius: 8px; }

.pick-card {
  flex: 0 0 260px;
  scroll-snap-align: start;
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 92, 218, 0.22);
  transition: transform 0.28s, box-shadow 0.28s;
}
.pick-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 0 30px rgba(255, 92, 218, 0.45);
}
.pick-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
.pick-body { padding: 16px 16px 20px; }
.pick-body strong { display: block; font-size: 1rem; margin-bottom: 6px; }
.pick-body p { font-size: 0.82rem; color: var(--text-sub); }
.tag {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(51, 242, 255, 0.12);
  color: var(--cyan);
  border: 1px solid rgba(51, 242, 255, 0.4);
}

/* ============ 排行榜 ============ */
.rank-tabs {
  display: flex;
  gap: 10px;
}
.rank-tabs button {
  padding: 8px 22px;
  border-radius: 999px;
  border: 1px solid rgba(139, 92, 255, 0.5);
  background: transparent;
  color: var(--text-sub);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.22s;
}
.rank-tabs button.active {
  background: linear-gradient(120deg, var(--violet), var(--pink));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 0 20px rgba(255, 92, 218, 0.55);
}
.rank-list { display: grid; gap: 14px; }
.rank-list[hidden] { display: none; }
.rank-item {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--bg-card);
  border: 1px solid rgba(139, 92, 255, 0.2);
  border-radius: 16px;
  padding: 14px 20px;
  transition: transform 0.22s, border-color 0.22s, box-shadow 0.22s;
}
.rank-item:hover {
  transform: translateX(6px);
  border-color: var(--cyan);
  box-shadow: 0 0 22px rgba(51, 242, 255, 0.28);
}
.rank-num {
  font-size: 1.5rem;
  font-weight: 800;
  width: 38px;
  text-align: center;
  color: var(--text-sub);
  flex-shrink: 0;
}
.rank-item:nth-child(1) .rank-num { color: var(--orange); text-shadow: 0 0 12px var(--orange); }
.rank-item:nth-child(2) .rank-num { color: var(--cyan); text-shadow: 0 0 12px var(--cyan); }
.rank-item:nth-child(3) .rank-num { color: var(--pink); text-shadow: 0 0 12px var(--pink); }
.rank-item img {
  width: 56px;
  height: 76px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
}
.rank-info { flex: 1; min-width: 0; }
.rank-info strong { display: block; font-size: 0.98rem; margin-bottom: 3px; }
.rank-info span { font-size: 0.8rem; color: var(--text-sub); }
.rank-heat {
  font-size: 0.82rem;
  color: var(--orange);
  white-space: nowrap;
  font-weight: 600;
}

/* ============ 最新更新网格 ============ */
.update-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.update-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid rgba(139, 92, 255, 0.2);
  transition: transform 0.25s, box-shadow 0.25s;
}
.update-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 28px rgba(51, 242, 255, 0.32);
}
.update-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
.update-meta { padding: 14px 14px 18px; }
.update-meta strong { display: block; font-size: 0.94rem; margin-bottom: 4px; }
.update-meta span { font-size: 0.78rem; color: var(--text-sub); }
.read-mask {
  position: absolute;
  inset: 0;
  background: rgba(20, 16, 31, 0.74);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.28s;
}
.update-card:hover .read-mask { opacity: 1; }
.read-mask span {
  padding: 10px 26px;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--cyan), var(--lime));
  color: #191030;
  font-weight: 700;
  font-size: 0.9rem;
  transform: scale(0.9);
  transition: transform 0.28s;
}
.update-card:hover .read-mask span { transform: scale(1); }

/* ============ 主题漫单 ============ */
.topic-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}
.topic-card {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid rgba(255, 92, 218, 0.22);
  transition: box-shadow 0.28s, transform 0.28s;
}
.topic-card:hover {
  box-shadow: 0 0 30px rgba(139, 92, 255, 0.4);
  transform: translateY(-4px);
}
.topic-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}
.topic-card p {
  font-size: 0.86rem;
  color: var(--text-sub);
  margin-bottom: 18px;
}
.topic-books {
  display: flex;
  gap: 14px;
}
.topic-books figure {
  flex: 1;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
}
.topic-books img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.35s;
}
.topic-books figure:hover img { transform: scale(1.08); }
.topic-books figcaption {
  font-size: 0.74rem;
  color: var(--text-sub);
  padding: 8px 2px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============ 实图展示 ============ */
.shots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.shot {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid rgba(51, 242, 255, 0.22);
  transition: transform 0.26s, box-shadow 0.26s;
}
.shot:hover {
  transform: scale(1.04);
  box-shadow: 0 0 26px rgba(51, 242, 255, 0.4);
}
.shot img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; }
.shot figcaption { padding: 12px 14px 16px; font-size: 0.8rem; color: var(--text-sub); }

/* ============ 下载区 ============ */
.download-band {
  margin-top: 24px;
  border-radius: 28px;
  padding: 52px 32px;
  text-align: center;
  background: linear-gradient(135deg, rgba(139, 92, 255, 0.28), rgba(255, 92, 218, 0.22));
  border: 1px solid rgba(255, 92, 218, 0.4);
  box-shadow: 0 0 40px rgba(139, 92, 255, 0.3);
}
.download-band h2 {
  font-size: 1.7rem;
  margin-bottom: 14px;
}
.download-band p {
  color: var(--text-sub);
  max-width: 540px;
  margin: 0 auto 28px;
  font-size: 0.94rem;
}
.download-band .tnc {
  margin-top: 26px;
  font-size: 0.78rem;
  color: rgba(184, 174, 224, 0.8);
}

/* ============ 页脚 ============ */
.site-footer {
  border-top: 1px solid rgba(139, 92, 255, 0.25);
  padding: 48px 0 30px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 34px;
}
.footer-grid h4 {
  font-size: 0.95rem;
  margin-bottom: 14px;
  color: var(--cyan);
}
.footer-grid p, .footer-grid li {
  font-size: 0.82rem;
  color: var(--text-sub);
  line-height: 1.9;
}
.footer-grid ul { list-style: none; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.76rem;
  color: rgba(184, 174, 224, 0.7);
}

/* ============ 响应式 ============ */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero-copy p { max-width: 100%; }
  .cat-row { grid-template-columns: repeat(3, 1fr); }
  .update-grid { grid-template-columns: repeat(3, 1fr); }
  .shots { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  section { padding: 44px 0; }
  .nav-inner { padding: 10px 16px; gap: 12px; }
  .nav-search { order: 3; flex-basis: 100%; max-width: 100%; }
  .nav-links { display: none; }
  .hero { padding: 44px 0 30px; }
  .cat-row { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .update-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .topic-grid { grid-template-columns: 1fr; }
  .shots { grid-template-columns: 1fr 1fr; gap: 14px; }
  .rank-item { padding: 12px 14px; gap: 12px; }
  .rank-info strong { font-size: 0.88rem; }
  .rank-heat { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .sec-head h2 { font-size: 1.35rem; }
  .scroll-strip .pick-card { flex-basis: 210px; }
  .download-band { padding: 38px 20px; }
}