/* ============================================================
   看漫官网 - 深靛蓝 × 珊瑚橙撞色主题
   kanman.net.cn
   布局：分屏 Hero + 横向卡片流 + 大数字榜单 + 横向时间轴 + 撞色下载横幅
   ============================================================ */

/* ---------- 设计变量 ---------- */
:root {
  --ink: #16224a;
  --ink-2: #1e2c5c;
  --ink-3: #0c1533;
  --cream: #fbf7f2;
  --accent: #ff6b35;
  --accent-2: #ff8f5a;
  --peach: #ffd9c7;
  --text: #24305e;
  --muted: #6b7698;
  --line: rgba(22, 34, 74, 0.12);
  --grad-accent: linear-gradient(120deg, #ff6b35 0%, #ff9a4d 100%);
  --radius-lg: 24px;
  --radius-md: 16px;
  --shadow-card: 0 18px 44px rgba(12, 21, 51, 0.16);
  --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(--cream);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

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

a {
  color: var(--accent);
  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(--accent);
  margin-bottom: 14px;
  font-weight: 700;
}

.section {
  padding: 76px 0;
}

.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;
  color: var(--ink);
}

.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: 12px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: 2px 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-accent {
  background: var(--grad-accent);
  border-color: var(--accent);
  color: #ffffff;
  box-shadow: 0 10px 26px rgba(255, 107, 53, 0.36);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(255, 107, 53, 0.48);
}

.btn-line {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.7);
  color: #ffffff;
}

.btn-line:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-ink {
  background: var(--ink);
  border-color: var(--ink);
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(12, 21, 51, 0.3);
}

.btn-ink:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(12, 21, 51, 0.4);
}

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

/* ---------- 头部导航 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(22, 34, 74, 0.86);
  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(12, 21, 51, 0.96);
  border-bottom-color: rgba(255, 255, 255, 0.14);
}

.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 16px rgba(255, 107, 53, 0.45);
}

.brand-name {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #ffffff;
}

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

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

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

.btn-download {
  padding: 10px 22px;
  border-radius: 12px;
  background: var(--grad-accent);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 6px 18px rgba(255, 107, 53, 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 24px rgba(255, 107, 53, 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: #ffffff;
  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;
  padding: 120px 0 84px;
  background:
    radial-gradient(ellipse at 82% 12%, rgba(255, 143, 90, 0.28), transparent 46%),
    radial-gradient(ellipse at 10% 88%, rgba(255, 107, 53, 0.18), transparent 44%),
    linear-gradient(160deg, var(--ink-2) 0%, var(--ink) 58%, var(--ink-3) 100%);
  overflow: hidden;
}

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

.hero-word {
  position: absolute;
  z-index: 0;
  top: 12%;
  right: -1%;
  font-size: clamp(88px, 16vw, 200px);
  font-weight: 900;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.05);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.hero-dot {
  position: absolute;
  border-radius: 50%;
  z-index: 0;
}

.dot-a {
  width: 46px;
  height: 46px;
  background: var(--accent);
  bottom: 14%;
  left: 6%;
}

.dot-b {
  width: 18px;
  height: 18px;
  background: var(--peach);
  top: 20%;
  left: 46%;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1120px, 92%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 44px;
  align-items: center;
}

.hero-copy {
  text-align: center;
}

.hero-eyebrow {
  color: var(--peach);
  font-size: 13px;
  letter-spacing: 0.3em;
  margin-bottom: 18px;
  font-weight: 600;
}

.hero-title {
  font-size: clamp(72px, 16vw, 128px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: 0.1em;
  text-indent: 0.1em;
  color: #ffffff;
  display: inline-block;
  position: relative;
}

.hero-title::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: -8px;
  height: 12px;
  background: var(--grad-accent);
  border-radius: 999px;
}

.hero-sub {
  color: #d6dcef;
  font-size: clamp(15px, 2.4vw, 18px);
  max-width: 560px;
  margin: 30px auto 30px;
}

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

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

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

.stat dd {
  font-size: 13px;
  color: #aeb6d6;
  margin-top: 2px;
  letter-spacing: 0.1em;
}

.hero-media {
  position: relative;
  max-width: 320px;
  margin: 0 auto;
}

.hero-media img {
  border-radius: 28px;
  border: 4px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 30px 70px rgba(6, 12, 32, 0.55);
}

.hero-badge {
  position: absolute;
  top: -14px;
  right: -12px;
  background: var(--grad-accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(255, 107, 53, 0.5);
  transform: rotate(4deg);
}

.hero-tag {
  display: inline-block;
  margin-top: 18px;
  width: 100%;
  text-align: center;
  color: #aeb6d6;
  font-size: 13px;
  letter-spacing: 0.08em;
}

/* ---------- 现在在看（横向卡片流） ---------- */
.stream {
  background: var(--cream);
}

.stream-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 30px;
}

.stream-head h2 {
  font-size: clamp(26px, 4.6vw, 36px);
  color: var(--ink);
  line-height: 1.3;
}

.stream-note {
  color: var(--muted);
  font-size: 15px;
}

.stream-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 14px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.stream-card {
  flex: 0 0 78vw;
  max-width: 300px;
  scroll-snap-align: start;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 12px 12px 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.stream-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
  border-color: rgba(255, 107, 53, 0.4);
}

.stream-shot {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 16px;
  aspect-ratio: 4 / 5;
  background: var(--peach);
}

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

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

.stream-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--ink);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: 0.08em;
}

.stream-card h3 {
  font-size: 18px;
  color: var(--ink);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

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

/* ---------- 人气榜（大数字横排） ---------- */
.chart {
  background: #ffffff;
}

.chart-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.chart-item {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.chart-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
}

.chart-item::after {
  content: "";
  position: absolute;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.16), transparent 70%);
  top: -34px;
  right: -34px;
}

.chart-no {
  display: block;
  font-size: 64px;
  font-weight: 900;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px rgba(22, 34, 74, 0.35);
  margin-bottom: 14px;
  font-style: italic;
  letter-spacing: 0.02em;
}

.chart-item h3 {
  font-size: 20px;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.chart-item p {
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 2px;
}

.heat {
  height: 8px;
  border-radius: 999px;
  background: rgba(22, 34, 74, 0.08);
  margin: 16px 0 10px;
  overflow: hidden;
}

.heat-bar {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--grad-accent);
}

.chart-item strong {
  color: var(--accent);
  font-size: 18px;
  font-weight: 800;
}

/* ---------- 更新手记（时间轴） ---------- */
.timeline-section {
  background: var(--cream);
}

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 26px;
  max-width: 900px;
  margin: 0 auto;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: rgba(22, 34, 74, 0.16);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 16px 1fr;
  column-gap: 18px;
  align-items: start;
}

.tl-dot {
  grid-column: 1;
  justify-self: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--cream);
  border: 5px solid var(--accent);
  box-sizing: border-box;
  margin-top: 22px;
}

.tl-body {
  grid-column: 2;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.timeline-item:hover .tl-body {
  border-color: rgba(255, 107, 53, 0.4);
  transform: translateY(-3px);
}

.tl-body time {
  display: block;
  font-weight: 800;
  color: var(--accent);
  font-size: 16px;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.tl-body h3 {
  font-size: 17px;
  color: var(--ink);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

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

.tl-body a {
  font-size: 14px;
  font-weight: 700;
}

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

/* ---------- 品牌宣言（全宽横幅） ---------- */
.manifesto {
  background:
    radial-gradient(ellipse at 18% 20%, rgba(255, 143, 90, 0.2), transparent 46%),
    radial-gradient(ellipse at 84% 78%, rgba(255, 107, 53, 0.14), transparent 46%),
    var(--ink);
  padding: 84px 5vw;
  text-align: center;
  color: #ffffff;
}

.manifesto .eyebrow {
  color: var(--peach);
}

.manifesto h2 {
  font-size: clamp(28px, 5.2vw, 44px);
  line-height: 1.35;
  letter-spacing: 0.03em;
  margin-bottom: 20px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.manifesto-text {
  color: #c6cede;
  font-size: 15.5px;
  max-width: 620px;
  margin: 0 auto 32px;
}

.manifesto-points {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  color: #aeb6d6;
  font-size: 14.5px;
}

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

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

/* ---------- 下载（撞色横幅） ---------- */
.cta {
  padding: 64px 0;
}

.cta-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  align-items: center;
  background:
    radial-gradient(ellipse at 8% 8%, rgba(255, 255, 255, 0.26), transparent 46%),
    radial-gradient(ellipse at 94% 92%, rgba(255, 255, 255, 0.2), transparent 46%),
    var(--grad-accent);
  border-radius: 30px;
  padding: 46px 30px;
  box-shadow: 0 24px 60px rgba(255, 107, 53, 0.4);
  color: #ffffff;
}

.cta-left {
  text-align: center;
}

.cta-left .eyebrow {
  color: rgba(255, 255, 255, 0.9);
}

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

.cta-desc {
  color: rgba(255, 255, 255, 0.94);
  max-width: 440px;
  margin: 0 auto 28px;
  font-size: 15px;
}

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

.cta-right {
  position: relative;
  display: flex;
  justify-content: center;
}

.cta-right img {
  width: min(150px, 40vw);
  border-radius: 30px;
  border: 4px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 20px 46px rgba(120, 38, 6, 0.35);
}

.cta-badge {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  background: var(--ink);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ---------- 页脚 ---------- */
.site-footer {
  background: var(--ink-3);
  padding: 40px 0 32px;
}

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

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

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

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

.footer-brand span {
  font-size: 13px;
  color: #aeb6d6;
}

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

.footer-nav a {
  color: #aeb6d6;
  font-size: 14px;
  transition: color 0.2s ease;
}

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

.footer-meta a {
  color: #aeb6d6;
  font-size: 14px;
}

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

.footer-meta p {
  color: #7d87a8;
  font-size: 12.5px;
  margin-top: 4px;
}

/* ---------- 回到顶部 ---------- */
.back-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 0;
  background: var(--grad-accent);
  color: #ffffff;
  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 10px 26px rgba(255, 107, 53, 0.4);
}

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

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

.back-top:hover {
  box-shadow: 0 12px 32px rgba(255, 107, 53, 0.55);
}

/* ---------- 响应式 ---------- */
@media (min-width: 760px) {
  .stream-track {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    overflow: visible;
    scroll-snap-type: none;
  }

  .stream-card {
    flex: none;
    max-width: none;
    width: 100%;
  }

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

  .timeline {
    grid-template-columns: repeat(3, 1fr);
    column-gap: 22px;
    row-gap: 22px;
  }

  .timeline::before {
    left: calc((100% - 44px) / 6);
    right: calc((100% - 44px) / 6);
    top: 20px;
    bottom: auto;
    width: auto;
    height: 2px;
  }

  .timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .tl-dot {
    margin-top: 13px;
  }

  .tl-body {
    width: 100%;
    text-align: center;
  }

  .manifesto-points {
    flex-direction: row;
    justify-content: center;
    gap: 36px;
  }
}

@media (min-width: 980px) {
  .hero-inner {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 60px;
  }

  .hero-copy {
    text-align: left;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .hero-stats {
    justify-content: flex-start;
  }

  .hero-media {
    max-width: 340px;
    margin: 0 auto;
  }

  .stream-head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }

  .chart-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .cta-card {
    grid-template-columns: 1fr 220px;
    gap: 40px;
    padding: 52px 64px;
  }

  .cta-left {
    text-align: left;
  }

  .cta-desc {
    margin: 0 0 28px;
  }

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

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

  .main-nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: rgba(12, 21, 51, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    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;
  }
}
