/* ============================================================
   枫牙漫画官网 - 暖粉枫叶主题
   fengyamanhua.com.cn
   ============================================================ */

/* ---------- 设计变量 ---------- */
:root {
  --bg: #fff8fa;
  --bg-alt: #ffeef3;
  --surface: #ffffff;
  --surface-2: #ffe3ec;
  --line: rgba(190, 98, 138, 0.14);
  --line-strong: rgba(190, 98, 138, 0.28);
  --text: #3a2431;
  --muted: #8a6a7a;
  --accent: #ff4d87;
  --accent-2: #ffa35c;
  --gold: #e8843c;
  --grad: linear-gradient(120deg, #ff4d87 0%, #ffa35c 100%);
  --radius-lg: 22px;
  --radius-md: 14px;
  --shadow-card: 0 18px 42px rgba(190, 98, 138, 0.14);
  --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);
  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: 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: #ffffff;
  box-shadow: 0 10px 28px rgba(255, 77, 135, 0.32);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(255, 77, 135, 0.42);
}

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

.btn-ghost:hover {
  background: #ffffff;
}

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

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

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

/* ---------- 头部导航 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 248, 250, 0.82);
  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(255, 248, 250, 0.96);
  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 16px rgba(255, 77, 135, 0.35);
}

.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(--accent);
}

.btn-download {
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--grad);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 6px 18px rgba(255, 77, 135, 0.3);
  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, 77, 135, 0.42);
}

.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: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 0 80px;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 18% 22%, rgba(255, 163, 92, 0.2), transparent 46%),
    radial-gradient(ellipse at 82% 20%, rgba(255, 77, 135, 0.18), transparent 46%),
    radial-gradient(ellipse at 50% 96%, rgba(255, 179, 211, 0.22), transparent 52%),
    linear-gradient(180deg, #fff5f7 0%, #fff8fa 100%);
}

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

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

.hero-title {
  font-size: clamp(52px, 11vw, 92px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.12em;
  text-indent: 0.12em;
  background: linear-gradient(150deg, #d6336c 10%, #ff5d8f 55%, #ffa35c 95%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 22px;
}

.hero-sub {
  color: #6d4b5c;
  font-size: clamp(15px, 2.4vw, 18px);
  max-width: 580px;
  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;
}

/* 枫叶装饰 */
.leaf {
  position: absolute;
  color: rgba(255, 77, 135, 0.4);
  width: 64px;
  height: 64px;
  z-index: 0;
}

.leaf-1 {
  top: 16%;
  left: 8%;
  transform: rotate(-18deg);
}

.leaf-2 {
  top: 24%;
  right: 9%;
  transform: rotate(24deg) scaleX(-1);
  color: rgba(255, 163, 92, 0.5);
  width: 48px;
  height: 48px;
}

/* ---------- 功能介绍 ---------- */
.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;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.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, 163, 92, 0.18), transparent 60%),
    radial-gradient(ellipse at 10% 100%, rgba(255, 77, 135, 0.18), transparent 60%),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  text-align: center;
}

.quote-img {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 18px;
  border: 3px solid #fff;
  box-shadow: 0 0 24px rgba(255, 77, 135, 0.3);
}

.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);
  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 20% 20%, rgba(255, 163, 92, 0.16), transparent 48%),
    radial-gradient(ellipse at 80% 70%, rgba(255, 77, 135, 0.14), 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: #6d4b5c;
  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.22), transparent 60%),
    linear-gradient(150deg, #ff5d8f 0%, #ff8fb3 45%, #ffa35c 100%);
  border-radius: 30px;
  padding: 64px 24px;
  box-shadow: 0 24px 60px rgba(255, 77, 135, 0.32);
  color: #fff;
}

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

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

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

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

/* ---------- 页脚 ---------- */
.site-footer {
  background: #fff1f5;
  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(--accent);
}

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

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

.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: #ffffff;
  color: var(--accent);
  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(190, 98, 138, 0.2);
}

.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 26px rgba(190, 98, 138, 0.3);
}

/* ---------- 响应式 ---------- */
@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(255, 248, 250, 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;
  }

  .leaf-1 {
    left: 4%;
  }

  .leaf-2 {
    right: 5%;
  }
}

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

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