/* ============================================================
   酷漫屋官网 - 炭黑红金热血主题
   kumanwuapp.net.cn
   ============================================================ */

/* ---------- 设计变量 ---------- */
:root {
  --bg: #17120f;
  --bg-alt: #201610;
  --surface: #241a15;
  --surface-2: #2e2019;
  --line: rgba(255, 214, 170, 0.14);
  --line-strong: rgba(255, 214, 170, 0.3);
  --text: #f6efe6;
  --muted: #b39a8a;
  --accent: #ff4d3d;
  --accent-2: #ff8a3d;
  --gold: #ffb830;
  --grad: linear-gradient(120deg, #ff4d3d 0%, #ff8a3d 100%);
  --radius-lg: 22px;
  --radius-md: 14px;
  --shadow-card: 0 18px 46px rgba(10, 5, 3, 0.55);
  --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Source Han Sans SC", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent-2);
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--accent);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 10px 0;
}

.skip-link:focus {
  left: 0;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

/* ---------- 通用标题 ---------- */
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
  font-weight: 600;
}

.section {
  padding: 72px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 46px;
}

.section-head h2 {
  font-size: clamp(26px, 4.6vw, 36px);
  line-height: 1.3;
  letter-spacing: 0.02em;
}

.section-desc {
  color: var(--muted);
  margin-top: 12px;
  font-size: 15px;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 34px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
  min-height: 48px;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--grad);
  color: #fff7f0;
  box-shadow: 0 10px 28px rgba(255, 77, 61, 0.36);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 38px rgba(255, 77, 61, 0.5);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line-strong);
  color: var(--text);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-light {
  background: #ffffff;
  color: #d63a2e;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.btn-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.38);
}

.btn-lg {
  padding: 18px 54px;
  font-size: 18px;
}

/* ---------- 头部导航 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(23, 18, 15, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(23, 18, 15, 0.94);
  border-bottom-color: var(--line);
}

.header-inner {
  width: min(1120px, 92%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

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

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 0 18px rgba(255, 77, 61, 0.45);
}

.brand-name {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.06em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.main-nav > a:not(.btn-download) {
  color: var(--text);
  font-size: 15px;
  opacity: 0.85;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.main-nav > a:not(.btn-download):hover {
  opacity: 1;
  color: var(--gold);
}

.btn-download {
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--grad);
  color: #fff7f0 !important;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 6px 18px rgba(255, 77, 61, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  opacity: 1 !important;
}

.btn-download:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(255, 77, 61, 0.55);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 10px;
}

.nav-toggle .bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.is-active .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-active .bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-active .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 94vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 0 80px;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 16% 20%, rgba(255, 77, 61, 0.24), transparent 48%),
    radial-gradient(ellipse at 84% 18%, rgba(255, 138, 61, 0.2), transparent 48%),
    radial-gradient(ellipse at 50% 98%, rgba(255, 184, 48, 0.12), transparent 52%),
    linear-gradient(180deg, #1c1613 0%, #17120f 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 214, 170, 0.09) 1px, transparent 1px);
  background-size: 26px 26px;
  z-index: 0;
}

.hero-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(90px);
  z-index: 0;
}

.glow-1 {
  background: rgba(255, 77, 61, 0.22);
  top: -120px;
  left: -100px;
}

.glow-2 {
  background: rgba(255, 138, 61, 0.2);
  bottom: -140px;
  right: -110px;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(820px, 92%);
}

.hero-icon {
  width: 92px;
  height: 92px;
  border-radius: 22px;
  margin: 0 auto 24px;
  box-shadow: 0 0 44px rgba(255, 77, 61, 0.5), 0 16px 34px rgba(10, 5, 3, 0.5);
}

.hero-title {
  font-size: clamp(52px, 11vw, 92px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.14em;
  text-indent: 0.14em;
  background: linear-gradient(160deg, #ffe9d6 8%, #ffb830 45%, #ff5a3d 92%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 22px;
}

.hero-sub {
  color: #dcc5b2;
  font-size: clamp(15px, 2.4vw, 18px);
  max-width: 600px;
  margin: 0 auto 34px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: clamp(28px, 7vw, 72px);
  margin-top: 54px;
  flex-wrap: wrap;
}

.stat dt {
  font-size: clamp(26px, 4.6vw, 38px);
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 0.03em;
}

.stat dd {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
  letter-spacing: 0.1em;
}

/* ---------- 功能介绍 ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px 20px 26px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad);
  opacity: 0.8;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-card);
}

.feature-shot {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 18px;
  aspect-ratio: 4 / 5;
  background: var(--bg-alt);
}

.feature-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.45s ease;
}

.feature-card:hover .feature-shot img {
  transform: scale(1.05);
}

.feature-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.feature-card p {
  font-size: 14px;
  color: var(--muted);
}

/* ---------- 人气榜 ---------- */
.rank-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}

.rank-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rank-list li {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.rank-list li:hover {
  border-color: var(--line-strong);
  transform: translateX(4px);
}

.rank-no {
  font-size: 22px;
  font-weight: 800;
  color: transparent;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  font-style: italic;
  letter-spacing: 0.05em;
  width: 40px;
}

.rank-info {
  flex: 1;
  min-width: 0;
}

.rank-info h3 {
  font-size: 17px;
  letter-spacing: 0.02em;
}

.rank-info p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}

.rank-heat {
  color: var(--gold);
  font-weight: 700;
  font-size: 15px;
}

.rank-quote {
  background:
    radial-gradient(ellipse at 80% 0%, rgba(255, 138, 61, 0.2), transparent 60%),
    radial-gradient(ellipse at 10% 100%, rgba(255, 77, 61, 0.2), transparent 60%),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  text-align: center;
}

.quote-img {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  object-fit: cover;
  margin: 0 auto 18px;
  box-shadow: 0 0 26px rgba(255, 77, 61, 0.5);
}

.rank-quote blockquote {
  font-size: 15px;
  color: var(--text);
  line-height: 1.9;
  margin-bottom: 8px;
}

.rank-quote cite {
  display: block;
  font-style: normal;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 22px;
}

/* ---------- 分类频道 ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.cat-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.cat-item:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
}

.cat-icon {
  width: 30px;
  height: 30px;
  color: var(--accent-2);
  margin-bottom: 6px;
}

.cat-item h3 {
  font-size: 17px;
  letter-spacing: 0.02em;
}

.cat-item p {
  font-size: 13.5px;
  color: var(--muted);
}

/* ---------- 更新手记 ---------- */
.note-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 720px;
  margin: 0 auto;
}

.note-list li {
  display: flex;
  gap: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.note-list li:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
}

.note-list time {
  flex: 0 0 auto;
  font-weight: 800;
  color: var(--gold);
  font-size: 16px;
  padding-top: 2px;
  letter-spacing: 0.04em;
}

.note-body h3 {
  font-size: 17px;
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.note-body p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 8px;
}

.note-body a {
  font-size: 14px;
  font-weight: 600;
}

.note-body a:hover {
  text-decoration: underline;
}

/* ---------- 关于酷漫屋 ---------- */
.about {
  background:
    radial-gradient(ellipse at 18% 24%, rgba(255, 77, 61, 0.16), transparent 48%),
    radial-gradient(ellipse at 82% 72%, rgba(255, 184, 48, 0.1), transparent 48%),
    var(--bg);
}

.about-inner {
  width: min(760px, 92%);
  margin: 0 auto;
  text-align: center;
}

.about-inner h2 {
  font-size: clamp(28px, 5.2vw, 42px);
  line-height: 1.35;
  letter-spacing: 0.03em;
  margin-bottom: 20px;
}

.about-text {
  color: #dcc5b2;
  font-size: 15.5px;
  max-width: 600px;
  margin: 0 auto 30px;
}

.about-points {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 14.5px;
}

.about-points li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.about-points li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--grad);
  flex: 0 0 auto;
}

/* ---------- 下载 ---------- */
.cta {
  padding: 60px 0;
}

.cta-card {
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.16), transparent 60%),
    linear-gradient(150deg, #d63a2e 0%, #ff4d3d 42%, #ff8a3d 100%);
  border-radius: 30px;
  padding: 64px 24px;
  box-shadow: 0 24px 60px rgba(214, 58, 46, 0.4);
  color: #fff7f0;
}

.cta-card .eyebrow {
  color: rgba(255, 255, 255, 0.88);
}

.cta-card h2 {
  font-size: clamp(26px, 4.8vw, 38px);
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}

.cta-desc {
  color: rgba(255, 247, 240, 0.92);
  max-width: 520px;
  margin: 0 auto 30px;
  font-size: 15px;
}

.cta-note {
  margin-top: 20px;
  font-size: 13px;
  color: rgba(255, 247, 240, 0.9);
  letter-spacing: 0.04em;
}

/* ---------- 页脚 ---------- */
.site-footer {
  background: #100c0a;
  border-top: 1px solid var(--line);
  padding: 48px 0 36px;
}

.footer-inner {
  width: min(1120px, 92%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 26px;
  align-items: flex-start;
}

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

.footer-brand .brand-icon {
  width: 34px;
  height: 34px;
}

.footer-brand strong {
  font-size: 18px;
  letter-spacing: 0.06em;
}

.footer-brand p {
  display: none;
}

.footer-nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: var(--muted);
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: var(--gold);
}

.footer-meta a {
  color: var(--muted);
  font-size: 14px;
}

.footer-meta a:hover {
  color: var(--gold);
}

.footer-meta p {
  color: var(--muted);
  font-size: 12.5px;
  margin-top: 4px;
  opacity: 0.8;
}

/* ---------- 回到顶部 ---------- */
.back-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, box-shadow 0.3s ease;
  z-index: 90;
  box-shadow: 0 8px 22px rgba(10, 5, 3, 0.5);
}

.back-top svg {
  width: 20px;
  height: 20px;
}

.back-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-top:hover {
  box-shadow: 0 10px 28px rgba(10, 5, 3, 0.65);
}

/* ---------- 响应式 ---------- */
@media (min-width: 960px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .rank-wrap {
    grid-template-columns: 1.4fr 1fr;
  }

  .cat-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .note-list {
    max-width: 860px;
  }

  .about-points {
    flex-direction: row;
    justify-content: center;
    gap: 34px;
  }

  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .footer-brand p {
    display: block;
    font-size: 13px;
    color: var(--muted);
  }

  .footer-brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

@media (min-width: 640px) and (max-width: 959px) {
  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: rgba(23, 18, 15, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 10px 5vw 18px;
    display: none;
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav > a {
    padding: 12px 6px;
  }

  .btn-download {
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
