/* ============================================
   漫画岛 单页官网样式
   主题：温暖"阳光书岛"· 橙黄渐变
   ============================================ */

:root {
  --c-primary: #ff8c1a;
  --c-primary-deep: #e86f00;
  --c-gold: #ffb800;
  --c-coral: #ff6b6b;
  --c-ink: #3a2e1f;
  --c-ink-soft: #7d6f58;
  --c-line: #f5e6cd;
  --c-bg: #fff9ee;
  --c-card: #ffffff;
  --grad-main: linear-gradient(135deg, #ffb800 0%, #ff8c1a 55%, #ff6b4a 100%);
  --grad-soft: linear-gradient(135deg, #fff3dd 0%, #ffe9f0 100%);
  --radius: 16px;
  --shadow-card: 0 10px 30px rgba(255, 140, 26, 0.1);
  --font-main: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
}

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

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

body {
  font-family: var(--font-main);
  color: var(--c-ink);
  background: var(--c-bg);
  line-height: 1.7;
  font-size: 15px;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.4;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  min-height: 44px;
}

.btn-primary {
  background: var(--grad-main);
  color: #fff;
  box-shadow: 0 8px 20px rgba(255, 120, 30, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(255, 120, 30, 0.36);
}

.btn-ghost {
  background: var(--c-card);
  color: var(--c-primary-deep);
  border-color: #ffd9ad;
}

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

.btn-lg {
  padding: 14px 34px;
  font-size: 16px;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 14px;
  min-height: 40px;
}

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 252, 246, 0.92);
  border-bottom: 1px solid var(--c-line);
  backdrop-filter: blur(8px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

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

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid #ffe2b8;
}

.brand-name {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 1px;
}

.main-nav {
  display: none;
}

.main-nav .nav-link {
  padding: 8px 14px;
  font-weight: 600;
  color: var(--c-ink-soft);
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
}

.main-nav .nav-link:hover {
  color: var(--c-primary-deep);
  background: #fff1d9;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-download-nav {
  padding: 9px 20px;
  font-size: 14px;
}

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

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--c-primary-deep);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

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

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

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

.main-nav.open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid var(--c-line);
  padding: 12px 20px 20px;
  gap: 4px;
}

.main-nav.open .nav-link {
  padding: 12px 10px;
  font-size: 16px;
}

/* ---------- Hero ---------- */
.hero {
  padding: 44px 0 60px;
  background:
    radial-gradient(820px 420px at 12% -8%, rgba(255, 184, 0, 0.2), transparent 60%),
    radial-gradient(720px 400px at 92% 115%, rgba(255, 107, 107, 0.14), transparent 60%),
    var(--c-bg);
}

.hero-grid {
  display: grid;
  gap: 36px;
}

.hero-copy {
  max-width: 560px;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.2px;
  color: var(--c-primary-deep);
  background: #fff1d9;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.hero-title {
  font-size: 42px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: 3px;
  margin-bottom: 14px;
  background: var(--grad-main);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: 16px;
  color: var(--c-ink-soft);
  margin-bottom: 26px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 34px;
}

.hero-stats {
  display: flex;
  gap: 34px;
}

.stat dt {
  font-size: 24px;
  font-weight: 800;
  color: var(--c-ink);
}

.stat dd {
  font-size: 13px;
  color: var(--c-ink-soft);
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-mascot-wrap {
  position: relative;
  width: min(320px, 78vw);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-mascot-wrap::before {
  content: "";
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 28%, #fff6d9 0%, #ffe0ad 45%, #ffc46b 100%);
  box-shadow: 0 24px 60px rgba(255, 150, 40, 0.26);
}

.hero-mascot {
  position: relative;
  width: 74%;
  height: 74%;
  object-fit: contain;
  border-radius: 24px;
  transform: rotate(-4deg);
  filter: drop-shadow(0 16px 30px rgba(255, 140, 26, 0.3));
}

/* ---------- 区块通用 ---------- */
.section {
  padding: 60px 0;
}

.section:nth-child(even) {
  background: #ffffff;
}

.section-head {
  text-align: center;
  margin-bottom: 36px;
}

.section-head-left {
  text-align: left;
  margin-bottom: 18px;
}

.section-head h2 {
  font-size: 27px;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.section-desc {
  color: var(--c-ink-soft);
  font-size: 15px;
}

/* ---------- 特色功能 ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 18px;
}

.feature-card {
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 38px rgba(255, 140, 26, 0.16);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--grad-soft);
  color: var(--c-primary-deep);
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
}

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

/* ---------- 漫画分类 ---------- */
.section-category {
  background: var(--grad-soft);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 24px 16px 20px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.category-item:hover {
  transform: translateY(-4px);
  border-color: var(--c-gold);
  box-shadow: 0 14px 30px rgba(255, 176, 32, 0.18);
}

.category-icon {
  color: var(--c-primary);
}

.category-name {
  font-size: 17px;
  font-weight: 800;
}

.category-count {
  font-size: 12px;
  color: var(--c-ink-soft);
}

/* ---------- 热门榜单 ---------- */
.rank-wrap {
  display: grid;
  gap: 28px;
}

.rank-list {
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 12px 22px;
  box-shadow: var(--shadow-card);
}

.rank-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px dashed var(--c-line);
}

.rank-item:last-child {
  border-bottom: none;
}

.rank-no {
  font-size: 18px;
  font-weight: 800;
  font-style: italic;
  color: #e8cba5;
  min-width: 34px;
}

.rank-no-1 { color: #ffb020; }
.rank-no-2 { color: #b9a88c; }
.rank-no-3 { color: #e08a5e; }

.rank-name {
  flex: 1;
  font-size: 16px;
  font-weight: 700;
}

.rank-name:hover {
  color: var(--c-primary-deep);
}

.rank-heat {
  font-size: 13px;
  color: var(--c-ink-soft);
}

.rank-feature {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(255, 140, 26, 0.2);
}

.rank-feature-img {
  width: 100%;
  height: 100%;
  max-height: 460px;
  object-fit: cover;
  object-position: center 22%;
}

.rank-feature-info {
  position: absolute;
  inset: auto 0 0 0;
  padding: 26px 22px 22px;
  background: linear-gradient(to top, rgba(56, 32, 4, 0.85), rgba(56, 32, 4, 0));
  color: #fff;
}

.rank-feature-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: #ffe9a8;
  background: rgba(255, 176, 32, 0.18);
  border: 1px solid rgba(255, 209, 102, 0.5);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.rank-feature-info h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 6px;
}

.rank-feature-info p:not(.rank-feature-tag) {
  font-size: 14px;
  opacity: 0.92;
  margin-bottom: 14px;
}

.rank-feature .btn {
  background: var(--grad-main);
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}

/* ---------- 经典名作 ---------- */
.pick-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.pick-card {
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pick-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(255, 140, 26, 0.16);
}

.pick-cover {
  position: relative;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #fdf3e1;
}

.pick-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.pick-card:hover .pick-cover img {
  transform: scale(1.04);
}

.pick-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: var(--grad-main);
  padding: 4px 12px;
  border-radius: 999px;
}

.pick-title {
  margin-top: 12px;
  font-size: 16px;
  font-weight: 800;
}

.pick-title a:hover {
  color: var(--c-primary-deep);
}

.pick-meta {
  font-size: 13px;
  color: var(--c-ink-soft);
  margin-top: 4px;
}

/* ---------- 软件更新 ---------- */
.news-timeline {
  max-width: 720px;
  margin: 0 auto;
}

.news-item {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px dashed var(--c-line);
  align-items: start;
}

.news-item:last-child {
  border-bottom: none;
}

.news-date {
  font-size: 20px;
  font-weight: 800;
  color: var(--c-primary-deep);
  background: #fff1d9;
  border-radius: 12px;
  text-align: center;
  padding: 12px 0;
  line-height: 1.2;
}

.news-body h3 {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 6px;
}

.news-body p {
  font-size: 14px;
  color: var(--c-ink-soft);
}

/* ---------- 关于软件 ---------- */
.about-wrap {
  display: grid;
  gap: 32px;
}

.about-copy p {
  color: var(--c-ink-soft);
  margin-bottom: 16px;
}

.about-points {
  margin-top: 20px;
  display: grid;
  gap: 10px;
}

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

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

.about-img {
  width: 100%;
  height: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 20px 48px rgba(255, 140, 26, 0.2);
}

/* ---------- 下载引导 ---------- */
.section-download {
  padding: 0 0 72px;
}

.download-banner {
  text-align: center;
  background:
    radial-gradient(520px 260px at 85% 0%, rgba(255, 255, 255, 0.2), transparent 60%),
    var(--grad-main);
  color: #fff;
  border-radius: 24px;
  padding: 56px 24px;
  box-shadow: 0 24px 60px rgba(255, 120, 30, 0.32);
}

.download-banner h2 {
  font-size: 30px;
  font-weight: 900;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.download-banner p {
  font-size: 15px;
  opacity: 0.95;
  margin-bottom: 26px;
}

.btn-download-lg {
  background: #fff;
  color: var(--c-primary-deep);
  font-size: 17px;
  font-weight: 800;
  padding: 15px 46px;
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(140, 62, 0, 0.26);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-download-lg:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(140, 62, 0, 0.32);
}

/* ---------- 页脚 ---------- */
.site-footer {
  border-top: 1px solid var(--c-line);
  background: #fff;
  padding: 34px 0 40px;
}

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

.footer-brand {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 1px;
}

.footer-links {
  display: flex;
  gap: 20px;
  font-size: 14px;
  color: var(--c-ink-soft);
}

.footer-links a:hover {
  color: var(--c-primary-deep);
}

.footer-copy {
  font-size: 13px;
  color: #b7a88e;
}

/* ---------- 响应式：平板 768px ---------- */
@media (min-width: 768px) {
  body {
    font-size: 16px;
  }

  .main-nav {
    display: flex;
    gap: 6px;
  }

  .nav-toggle {
    display: none;
  }

  .hero-title {
    font-size: 54px;
  }

  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 40px;
  }

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

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

  .rank-wrap {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: stretch;
  }

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

  .about-wrap {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 48px;
  }

  .section {
    padding: 84px 0;
  }

  .section-head h2 {
    font-size: 32px;
  }
}

/* ---------- 桌面 1024px ---------- */
@media (min-width: 1024px) {
  .hero {
    padding: 72px 0 88px;
  }

  .hero-sub {
    font-size: 17px;
  }

  .hero-mascot-wrap {
    width: 360px;
  }
}
