/* 动漫共和国 - 全局样式表 */
:root {
  --c-orange: #FF7A45;
  --c-orange-light: #FF9E75;
  --c-blue: #4FA1FF;
  --c-purple: #7B61FF;
  --c-purple-dark: #5D43D9;
  --c-dark: #1F2331;
  --c-gray: #5A6072;
  --c-light: #F7F8FC;
  --c-border: #E6E8F0;
  --c-white: #FFFFFF;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 8px 24px rgba(31, 35, 49, 0.08);
  --shadow-hover: 0 16px 40px rgba(31, 35, 49, 0.14);
  --max-w: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  color: var(--c-dark);
  background: var(--c-light);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--c-blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4, p {
  margin: 0;
}

.container {
  width: 92%;
  max-width: var(--max-w);
  margin: 0 auto;
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--c-orange), var(--c-orange-light));
  color: var(--c-white);
  box-shadow: 0 6px 18px rgba(255, 122, 69, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(255, 122, 69, 0.45);
  text-decoration: none;
}

.btn-outline {
  background: var(--c-white);
  color: var(--c-orange);
  border: 2px solid var(--c-orange);
}

.btn-outline:hover {
  background: var(--c-orange);
  color: var(--c-white);
  text-decoration: none;
}

/* 导航 */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-border);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--c-dark);
  font-size: 1.2rem;
}

.brand img {
  height: 44px;
  width: auto;
}

.brand:hover {
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: var(--c-gray);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--c-orange);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--c-dark);
  cursor: pointer;
}

/* Hero */
.hero {
  padding: 72px 0 90px;
  background: linear-gradient(160deg, #fff 0%, #F0F4FF 60%, #FFF5EF 100%);
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(127, 97, 255, 0.1);
  color: var(--c-purple-dark);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: 2.4rem;
  line-height: 1.25;
  margin-bottom: 18px;
}

.hero-desc {
  color: var(--c-gray);
  font-size: 1.1rem;
  max-width: 480px;
  margin-bottom: 28px;
}

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

.hero-phone {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone-frame {
  width: 280px;
  background: var(--c-dark);
  border-radius: 36px;
  padding: 10px;
  box-shadow: var(--shadow-hover);
  transform: rotate(2deg);
}

.phone-screen {
  border-radius: 26px;
  overflow: hidden;
  background: var(--c-white);
  aspect-ratio: 9 / 19.5;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 通用 section */
.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title h2 {
  font-size: 1.7rem;
  margin-bottom: 10px;
  color: var(--c-dark);
}

.section-title .sub {
  color: var(--c-gray);
  font-size: 1rem;
}

/* 功能卡片 */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--c-white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
}

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

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 18px;
}

.feature-icon.orange { background: #FFF2EB; color: var(--c-orange); }
.feature-icon.blue { background: #EAF3FF; color: var(--c-blue); }
.feature-icon.purple { background: #F0EBFF; color: var(--c-purple); }
.feature-icon.green { background: #E8FAF3; color: #2CC589; }

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--c-gray);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* 截图展示 */
.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.shot-item {
  background: var(--c-white);
  padding: 12px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.25s;
}

.shot-item:hover {
  transform: translateY(-4px);
}

.shot-item img {
  border-radius: var(--radius-sm);
  width: 100%;
  height: auto;
}

/* 深度内容入口 */
.content-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.content-card {
  background: var(--c-white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s;
  border-top: 4px solid var(--c-blue);
}

.content-card:nth-child(2) { border-top-color: var(--c-purple); }
.content-card:nth-child(3) { border-top-color: var(--c-orange); }

.content-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.content-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.content-card p {
  color: var(--c-gray);
  font-size: 0.95rem;
  flex: 1;
}

.content-card .link {
  margin-top: 18px;
  font-weight: 600;
  color: var(--c-blue);
}

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

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

.review-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--c-light);
  border-radius: 8px;
  padding: 20px;
}

.review-card p {
  color: var(--c-dark);
  font-size: 0.95rem;
  margin: 0 0 20px;
  line-height: 1.6;
}

.review-card .author {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 12px;
  color: var(--c-gray);
  font-size: 0.85rem;
}
.review-card .author strong { color: var(--c-dark); }
.review-card .author a { color: var(--c-blue); }

/* FAQ 摘要 */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  background: var(--c-white);
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

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

.faq-q .icon {
  transition: transform 0.2s;
  color: var(--c-orange);
}

.faq-item.active .faq-q .icon {
  transform: rotate(180deg);
}

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

.faq-item.active .faq-a {
  max-height: 400px;
  padding: 0 22px 20px;
}

.faq-a p {
  color: var(--c-gray);
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-more {
  text-align: center;
  margin-top: 32px;
}

/* 底部下载 */
.cta-bottom {
  background: linear-gradient(135deg, var(--c-purple), var(--c-blue));
  color: var(--c-white);
  text-align: center;
  padding: 80px 0;
}

.cta-bottom h2,
.cta-bottom h3 {
  font-size: 1.9rem;
  margin-bottom: 14px;
}

.cta-bottom p,
.cta-bottom .cta-sub {
  opacity: 0.92;
  max-width: 560px;
  margin: 0 auto 28px;
}

.cta-bottom .btn-primary {
  background: var(--c-white);
  color: var(--c-purple);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.cta-bottom .btn-primary:hover {
  background: var(--c-orange);
  color: var(--c-white);
}

/* Footer */
.footer {
  background: var(--c-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 50px 0 24px;
  font-size: 0.9rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--c-white);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 14px;
}

.footer-brand img {
  height: 38px;
}

.footer-desc {
  line-height: 1.7;
  opacity: 0.8;
}

.footer-links h4 {
  color: var(--c-white);
  font-size: 1rem;
  margin-bottom: 16px;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.disclaimer {
  width: 100%;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
}

/* 面包屑 */
.breadcrumb {
  padding: 16px 0;
  font-size: 0.85rem;
  color: var(--c-gray);
  background: var(--c-white);
  border-bottom: 1px solid var(--c-border);
}

.breadcrumb a {
  color: var(--c-gray);
}

/* 内页通用 */
.page-hero {
  background: linear-gradient(135deg, #F7F8FC, #F0EBFF);
  padding: 60px 0 70px;
}

.page-hero h1 {
  font-size: 2rem;
  margin-bottom: 14px;
}

.page-hero .lead {
  color: var(--c-gray);
  font-size: 1.05rem;
  max-width: 720px;
}

.article {
  background: var(--c-white);
  padding: 50px 0 80px;
}

.article-content {
  max-width: 820px;
  margin: 0 auto;
}

.article-content h2 {
  font-size: 1.4rem;
  margin: 36px 0 16px;
  color: var(--c-dark);
}

.article-content h3 {
  font-size: 1.15rem;
  margin: 26px 0 10px;
  color: var(--c-dark);
}

.article-content p {
  color: var(--c-gray);
  margin-bottom: 16px;
  font-size: 1rem;
}

.article-content ol,
.article-content ul {
  margin: 14px 0 20px 20px;
  color: var(--c-gray);
}

.article-content ul li {
  list-style: disc;
  margin-bottom: 8px;
}

.article-content .guide-steps li,
.article-content .feature-steps li {
  list-style: decimal;
  padding-left: 6px;
  margin-bottom: 16px;
  line-height: 1.8;
}

.article-content ol li {
  list-style: decimal;
  margin-bottom: 12px;
}

.release-list {
  margin: 24px 0 0 8px;
  border-left: 2px solid var(--c-border);
}

.release-entry {
  position: relative;
  padding: 0 0 28px 28px;
}

.release-entry::before {
  content: "";
  position: absolute;
  top: 7px;
  left: -7px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--c-purple);
}

.release-entry h2 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

.release-entry .release-label {
  margin: 0 0 6px;
  color: var(--c-dark);
  font-weight: 600;
}

.release-entry .release-date {
  margin: 0 0 10px;
  color: var(--c-gray);
  font-size: 0.9rem;
}

.release-entry ul { margin: 0 0 0 20px; }
.release-entry ul li:last-child { margin-bottom: 0; }

.tip-box {
  background: #FFF7F2;
  border-left: 4px solid var(--c-orange);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin: 22px 0;
}

.tip-box strong {
  color: var(--c-orange);
}

/* FAQ 页面详情 */
.faq-detail .faq-item {
  margin-bottom: 18px;
}

.faq-detail .faq-a {
  max-height: none;
  padding: 0 22px 22px;
}

/* 响应式 */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .content-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 840px) {
  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--c-white);
    flex-direction: column;
    gap: 0;
    padding: 12px 0;
    border-bottom: 1px solid var(--c-border);
    box-shadow: var(--shadow);
    transform: translateY(-150%);
    transition: transform 0.3s ease;
    align-items: stretch;
  }
  .nav-links.open {
    transform: translateY(0);
  }
  .nav-links a,
  .nav-links .btn {
    padding: 14px 24px;
    border-bottom: 1px solid var(--c-border);
  }
  .nav-toggle { display: block; }

  .hero .container { grid-template-columns: 1fr; }
  .hero-phone { order: -1; }
  .phone-frame { width: 220px; transform: none; }
  .hero h1 { font-size: 1.9rem; }

  .features-grid,
  .content-grid,
  .review-grid,
  .screenshots-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
}

/* 首屏安装信息 */
.hero-install {
  max-width: 520px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--c-border);
}
.hero-install h2 {
  margin-bottom: 12px;
  font-size: 1rem;
}
.hero-install dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 24px;
  margin: 0;
}
.hero-install dl > div {
  min-width: 0;
  font-size: 0.85rem;
  line-height: 1.5;
}
.hero-install dt { color: var(--c-gray); }
.hero-install dd { margin: 2px 0 0; font-weight: 700; overflow-wrap: anywhere; }
.hero-install .checksum-row { grid-column: 1 / -1; }
.hero-install code { font-size: 0.82rem; overflow-wrap: anywhere; }
