/* ===== 基础与变量 ===== */
:root {
  --primary: #F2721D;
  --primary-deep: #D9580F;
  --primary-soft: #FFF0E2;
  --dark: #2E2A26;
  --text: #4A443E;
  --muted: #8A8177;
  --border: #F3E4D3;
  --bg: #FFF8F2;
  --card: #FFFFFF;
  --radius: 16px;
  --shadow: 0 12px 32px rgba(242, 114, 29, .14);
  --header-h: 68px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  scroll-margin-top: var(--header-h);
}

/* ===== 顶部导航 ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s;
}

.header.scrolled {
  box-shadow: 0 6px 24px rgba(46, 42, 38, .08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  color: var(--dark);
  white-space: nowrap;
}

.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
}

.nav {
  display: flex;
  gap: 4px;
}

.nav a {
  padding: 8px 12px;
  font-size: 15px;
  color: var(--text);
  border-radius: 8px;
  transition: color .2s, background .2s;
}

.nav a:hover,
.nav a.active {
  color: var(--primary);
  background: var(--primary-soft);
}

.btn-nav {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: var(--primary);
  padding: 9px 18px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background .25s;
}

.btn-nav:hover {
  background: var(--primary-deep);
}

/* ===== 通用 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  transition: transform .25s, box-shadow .25s, background .25s;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-deep);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-ghost {
  background: var(--card);
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-ghost:hover {
  background: var(--primary-soft);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.section {
  padding: 90px 0;
}

.section-title {
  font-size: 34px;
  font-weight: 800;
  color: var(--dark);
  text-align: center;
}

.section-sub {
  max-width: 640px;
  margin: 12px auto 48px;
  text-align: center;
  color: var(--muted);
  font-size: 16px;
}

/* ===== 首屏Hero ===== */
.hero {
  background: linear-gradient(180deg, #FFF1E2 0%, var(--bg) 100%);
  padding: calc(var(--header-h) + 70px) 0 90px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 60px;
  align-items: center;
}

.hero-text h1 {
  font-size: 46px;
  line-height: 1.25;
  font-weight: 800;
  color: var(--dark);
}

.hero-ver {
  color: var(--primary);
  font-size: .62em;
  background: var(--primary-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 16px;
  vertical-align: middle;
}

.hero-desc {
  margin: 20px 0 36px;
  max-width: 560px;
  font-size: 17px;
  color: var(--text);
}

.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-img {
  justify-self: center;
  max-width: 380px;
  width: 100%;
}

.hero-img img {
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(242, 114, 29, .2);
}

/* ===== 作品预览 ===== */
.works {
  background: var(--card);
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.work-card,
.feature-card,
.review-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform .3s, box-shadow .3s;
}

.work-card:hover,
.feature-card:hover,
.review-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.work-card {
  background: var(--card);
  overflow: hidden;
}

.work-card img {
  transition: transform .5s;
}

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

/* ===== 产品介绍 ===== */
.intro-cols {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  font-size: 16px;
}

.intro-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}

.intro-chips li {
  padding: 8px 22px;
  border-radius: 999px;
  background: var(--primary-soft);
  border: 1px solid var(--border);
  color: var(--primary-deep);
  font-size: 15px;
  font-weight: 600;
}

/* ===== 核心功能 ===== */
.features {
  background: var(--card);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--card);
  padding: 32px 26px;
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--primary-soft);
  color: var(--primary);
  margin-bottom: 18px;
}

.feature-card h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}

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

/* ===== 优势对比 ===== */
.compare-wrap {
  max-width: 960px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 8px 30px rgba(46, 42, 38, .05);
  overflow: hidden;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
}

.compare-table th,
.compare-table td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}

.compare-table thead th {
  background: var(--primary-soft);
  color: var(--dark);
  font-size: 17px;
  font-weight: 700;
}

.compare-table tbody tr:last-child td {
  border-bottom: none;
}

.compare-table tbody tr:hover {
  background: #FFFAF5;
}

.compare-table tbody td:first-child {
  font-weight: 600;
  color: var(--dark);
  text-align: left;
}

.tag-yes,
.tag-no {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 14px;
  white-space: nowrap;
}

.tag-yes {
  background: #E9F7EF;
  color: #1E8E4E;
}

.tag-no {
  background: #FDEFEC;
  color: #D9534F;
}

/* ===== 平台数据 ===== */
.data {
  background: linear-gradient(135deg, #332E28, #241F1A);
}

.data .section-title {
  color: #fff;
}

.data .section-sub {
  color: rgba(255, 255, 255, .6);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.stat {
  text-align: center;
  padding: 36px 16px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius);
  transition: transform .3s, border-color .3s;
}

.stat:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
}

.stat-num {
  font-size: 40px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}

.stat-num span {
  font-size: 22px;
}

.stat-label {
  margin-top: 8px;
  color: rgba(255, 255, 255, .75);
  font-size: 15px;
}

/* ===== 用户评价 ===== */
.reviews {
  background: var(--card);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.review-card {
  background: var(--bg);
  padding: 26px;
}

.review-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
}

.review-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--dark);
}

.stars {
  color: #FFB400;
  font-size: 14px;
  letter-spacing: 2px;
}

.review-card p {
  margin-top: 14px;
  font-size: 15px;
  color: var(--text);
}

/* ===== 版本更新 ===== */
.version-card {
  max-width: 860px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: 0 8px 30px rgba(46, 42, 38, .05);
}

.version-top {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.version-tag {
  background: var(--primary);
  color: #fff;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
}

.version-date {
  color: var(--muted);
  font-size: 15px;
}

.version-list {
  list-style: none;
  margin-top: 22px;
  display: grid;
  gap: 12px;
}

.version-list li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  color: var(--text);
}

.version-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

/* ===== FAQ ===== */
.faq-list {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.faq-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: box-shadow .3s;
}

.faq-item.open {
  box-shadow: 0 8px 24px rgba(46, 42, 38, .06);
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px 22px;
  font-size: 16px;
  font-weight: 600;
  color: var(--dark);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  gap: 16px;
}

.faq-icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  transition: transform .3s;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}

.faq-a p {
  padding: 0 22px 20px;
  font-size: 15px;
  color: var(--text);
}

.faq-item.open .faq-a {
  max-height: 320px;
}

/* ===== 下载区域 ===== */
.download {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%);
  text-align: center;
}

.download h1 {
  font-size: 38px;
  font-weight: 800;
  color: #fff;
}

.download-meta {
  margin: 16px 0 40px;
  font-size: 15px;
  color: rgba(255, 255, 255, .92);
  white-space: nowrap;
}

.download-btns {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--primary-deep);
  padding: 16px 40px;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 700;
  transition: transform .25s, box-shadow .25s;
}

.btn-white:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .18);
}

.download-tip {
  margin-top: 26px;
  color: rgba(255, 255, 255, .95);
  font-size: 15px;
}

/* ===== 页脚 ===== */
.footer {
  background: #241F1A;
  padding: 34px 0;
  text-align: center;
  color: rgba(255, 255, 255, .7);
  font-size: 14px;
}

.footer-link {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.footer-link:hover {
  color: var(--primary);
}

/* ===== 返回顶部 ===== */
.back-top {
  position: fixed;
  right: 26px;
  bottom: 30px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(242, 114, 29, .35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .3s, transform .3s, visibility .3s, background .25s;
  z-index: 99;
}

.back-top.show {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.back-top:hover {
  background: var(--primary-deep);
}

/* ===== 平板适配 ===== */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 38px;
  }

  .nav a {
    padding: 8px 9px;
    font-size: 14px;
  }

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

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

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

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

/* ===== 手机适配 ===== */
@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }

  .nav {
    display: none;
  }

  .section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 26px;
  }

  .section-sub {
    font-size: 14px;
    margin-bottom: 32px;
  }

  .hero {
    padding: calc(var(--header-h) + 36px) 0 56px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero-text h1 {
    font-size: 30px;
  }

  .hero-desc {
    font-size: 15px;
    margin: 16px 0 28px;
  }

  .hero-btns {
    flex-direction: column;
    gap: 14px;
  }

  .hero-btns .btn {
    width: 100%;
  }

  .hero-img {
    max-width: 300px;
  }

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

  .intro-cols {
    grid-template-columns: 1fr;
    gap: 16px;
    font-size: 15px;
  }

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

  .compare-wrap {
    overflow: visible;
    border: none;
    background: none;
    box-shadow: none;
  }

  .compare-table thead {
    display: none;
  }

  .compare-table,
  .compare-table tbody,
  .compare-table tr,
  .compare-table td {
    display: block;
  }

  .compare-table tr {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 14px;
    padding: 0;
  }

  .compare-table td {
    border-bottom: 1px dashed var(--border);
    padding: 12px 16px;
  }

  .compare-table tbody td:first-child {
    background: var(--primary-soft);
    border-bottom: 1px solid var(--border);
    border-radius: 12px 12px 0 0;
    padding: 14px 16px;
    font-size: 15px;
    color: var(--primary);
    font-weight: 700;
  }

  .compare-table tbody tr:last-child td:last-child {
    border-radius: 0 0 12px 12px;
  }

  .compare-table tbody td:nth-child(2),
  .compare-table tbody td:nth-child(3) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .compare-table tbody td:nth-child(2)::before {
    content: "栗子漫画免费版";
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
  }

  .compare-table tbody td:nth-child(3)::before {
    content: "其他漫画平台";
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
  }

  .compare-table td:last-child {
    border-bottom: none;
  }

  .tag-yes,
  .tag-no {
    font-size: 13px;
    padding: 4px 12px;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .stat {
    padding: 26px 12px;
  }

  .stat-num {
    font-size: 30px;
  }

  .stat-num span {
    font-size: 17px;
  }

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

  .version-card {
    padding: 26px 20px;
  }

  .download h1 {
    font-size: 28px;
  }

  .download-meta {
    font-size: 12px;
    margin: 12px 0 30px;
  }

  .download-btns {
    flex-direction: column;
    align-items: stretch;
    max-width: 340px;
    margin: 0 auto;
  }

  .download-tip {
    font-size: 14px;
  }

  .back-top {
    right: 16px;
    bottom: 20px;
  }
}
