:root {
  --bg-base: #faf6ff;
  --bg-white: #ffffff;
  --lavender: #f0e6ff;
  --pink-light: #ffe4f2;
  --purple: #8b5cf6;
  --purple-deep: #6d3fd4;
  --pink: #f0569b;
  --cyan: #22c7d6;
  --text-main: #2a1b40;
  --text-light: #63557a;
  --border: #2a1b40;
  --shadow-solid: 4px 4px 0 #2a1b40;
  --shadow-hover: 8px 8px 0 #2a1b40;
  --radius: 12px;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-base);
  color: var(--text-main);
  line-height: 1.6;
  background-image: radial-gradient(#d8c8f0 1px, transparent 1px);
  background-size: 20px 20px;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; object-fit: cover; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* 通用样式 */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 24px; font-weight: bold; border-radius: 8px;
  border: 2px solid var(--border); transition: var(--transition);
  box-shadow: var(--shadow-solid); font-size: 16px;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--border); }
.btn-primary { background: var(--purple); color: #fff; }
.btn-secondary { background: var(--pink-light); color: var(--text-main); }
.section-title { font-size: 28px; font-weight: 900; text-align: center; margin-bottom: 40px; position: relative; display: inline-block; left: 50%; transform: translateX(-50%); }
.section-title::after { content: ''; position: absolute; bottom: 2px; left: 0; width: 100%; height: 8px; background: var(--cyan); opacity: 0.5; z-index: -1; border-radius: 4px; }

/* 导航 */
header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--border); transition: 0.3s;
}
.nav-inner { display: flex; justify-content: space-between; align-items: center; height: 70px; }
.logo-area { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 20px; }
.logo-img { height: 32px; border-radius: 6px; border: 1px solid var(--border); }
.nav-links { display: flex; gap: 20px; align-items: center; }
.nav-links a { font-weight: bold; font-size: 15px; transition: 0.2s; }
.nav-links a:hover { color: var(--purple); }
.nav-actions { display: flex; gap: 15px; align-items: center; }
.search-box {
  border: 2px solid var(--border); border-radius: 20px; padding: 4px 12px;
  display: flex; align-items: center; background: #fff;
}
.search-box input { border: none; outline: none; width: 80px; font-size: 14px; background: transparent; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { width: 25px; height: 3px; background: var(--border); border-radius: 2px; }

/* 首屏 */
.hero { padding: 120px 0 60px; }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.badge-tag {
  display: inline-block; background: var(--cyan); color: var(--text-main);
  padding: 4px 12px; border-radius: 20px; border: 2px solid var(--border);
  font-weight: bold; font-size: 14px; margin-bottom: 20px;
}
.hero h1 { font-size: 42px; line-height: 1.3; margin-bottom: 20px; font-weight: 900; text-shadow: 2px 2px 0 var(--lavender); }
.hero-desc { font-size: 18px; color: var(--text-light); margin-bottom: 30px; }
.hero-cta { display: flex; gap: 20px; margin-bottom: 30px; }
.data-strip { display: flex; gap: 20px; background: #fff; border: 2px solid var(--border); padding: 15px 20px; border-radius: 12px; box-shadow: var(--shadow-solid); display: inline-flex; }
.data-item { font-weight: bold; font-size: 15px; display: flex; align-items: center; gap: 5px; }
.data-item span { color: var(--pink); font-size: 18px; }

/* 首屏漫画分镜 */
.comic-cover { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 15px; position: relative; }
.frame { border: 3px solid var(--border); border-radius: 8px; overflow: hidden; position: relative; background: #fff; box-shadow: var(--shadow-solid); transition: var(--transition); }
.frame:hover { transform: translateY(-5px) rotate(1deg); box-shadow: var(--shadow-hover); }
.frame-main { grid-row: span 2; aspect-ratio: 3/4; }
.frame-side { aspect-ratio: 1/1; }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame-num {
  position: absolute; top: 8px; left: 8px; background: var(--border); color: #fff;
  padding: 2px 8px; font-size: 12px; font-weight: bold; font-family: monospace; border-radius: 4px;
}
.frame-tag { position: absolute; bottom: 8px; right: 8px; background: var(--pink); color: #fff; padding: 2px 8px; font-size: 12px; font-weight: bold; border-radius: 4px; border: 1px solid var(--border); }
.speech-bubble {
  position: absolute; top: 10%; right: -10%; background: #fff; border: 2px solid var(--border);
  padding: 10px 15px; border-radius: 20px; font-weight: bold; font-size: 14px;
  box-shadow: 2px 2px 0 var(--border); z-index: 10; max-width: 150px;
  animation: float 3s ease-in-out infinite;
}
.speech-bubble::after {
  content: ''; position: absolute; bottom: -10px; left: 20px;
  border-width: 10px 10px 0 0; border-style: solid; border-color: var(--border) transparent transparent transparent;
}
.speech-bubble::before {
  content: ''; position: absolute; bottom: -7px; left: 21px; z-index: 1;
  border-width: 8px 8px 0 0; border-style: solid; border-color: #fff transparent transparent transparent;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

/* 分镜片库 */
.library { padding: 80px 0; }
.filter-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 30px; }
.chip {
  padding: 8px 16px; border: 2px solid var(--border); border-radius: 20px;
  font-weight: bold; font-size: 14px; background: #fff; transition: var(--transition);
}
.chip.active, .chip:hover { background: var(--purple); color: #fff; }
.grid-library { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.card {
  background: #fff; border: 2px solid var(--border); border-radius: 12px;
  overflow: hidden; box-shadow: var(--shadow-solid); transition: var(--transition);
  display: flex; flex-direction: column; cursor: default;
}
.card:hover { transform: translateY(-8px) rotate(-1deg); box-shadow: var(--shadow-hover); }
.card-img-wrap { position: relative; aspect-ratio: 2/3; width: 100%; border-bottom: 2px solid var(--border); }
.card-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.card-info { padding: 12px; flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between; }
.card-title { font-weight: 900; font-size: 16px; margin-bottom: 5px; line-height: 1.2; }
.card-meta { font-size: 12px; color: var(--text-light); display: flex; justify-content: space-between; }
.score { color: var(--pink); font-weight: bold; }

/* 竖屏连看 */
.screen-zone { padding: 80px 0; background: var(--lavender); border-top: 2px solid var(--border); border-bottom: 2px solid var(--border); }
.split-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.feature-list { margin-top: 20px; }
.feature-item { display: flex; gap: 15px; margin-bottom: 25px; }
.feature-icon { width: 40px; height: 40px; background: #fff; border: 2px solid var(--border); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 20px; flex-shrink: 0; box-shadow: 2px 2px 0 var(--border); }
.feature-text h3 { font-size: 18px; margin-bottom: 5px; }
.feature-text p { font-size: 15px; color: var(--text-main); }
.phone-mockup {
  width: 300px; height: 600px; margin: 0 auto; border: 6px solid var(--border);
  border-radius: 40px; background: #000; position: relative; overflow: hidden;
  box-shadow: 10px 10px 0 var(--border);
}
.phone-screen { width: 100%; height: 100%; position: relative; overflow: hidden; }
.screen-frame { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.5s ease; }
.screen-frame.active { opacity: 1; z-index: 10; }
.screen-frame img { width: 100%; height: 100%; object-fit: cover; }
.swipe-hint {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  background: rgba(0,0,0,0.6); color: #fff; padding: 8px 16px; border-radius: 20px;
  font-size: 14px; display: flex; align-items: center; gap: 5px; z-index: 20;
}
.swipe-hint span { animation: bounce 1.5s infinite; display: inline-block; }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.dots { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #ccc; border: 1px solid var(--border); cursor: pointer; transition: 0.2s; }
.dot.active { background: var(--purple); transform: scale(1.2); }

/* 魔改工坊 */
.workshop { padding: 80px 0; background: var(--pink-light); border-bottom: 2px solid var(--border); }
.workshop-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.workshop-flow {
  display: flex; flex-direction: column; gap: 15px; background: #fff;
  padding: 20px; border: 2px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-solid);
}
.flow-step { display: flex; align-items: center; gap: 15px; padding: 10px; background: var(--bg-base); border-radius: 8px; border: 1px dashed var(--purple); }
.flow-icon { font-weight: bold; color: var(--purple); font-size: 20px; }
.flow-text { font-size: 15px; font-weight: bold; }
.preview-img { width: 100%; aspect-ratio: 2/3; border-radius: 8px; border: 2px solid var(--border); margin-top: 15px; object-fit: cover; }
.template-tags { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px; }
.template-tags span { background: var(--purple); color: #fff; padding: 5px 12px; border-radius: 15px; font-size: 13px; border: 1px solid var(--border); font-weight: bold; }

/* 用户评价 */
.reviews { padding: 80px 0; }
.score-board {
  text-align: center; margin-bottom: 40px;
}
.score-board strong { font-size: 60px; color: var(--purple); line-height: 1; }
.score-board span { font-size: 18px; color: var(--text-light); font-weight: bold; }
.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.bubble-card {
  background: #fff; border: 2px solid var(--border); border-radius: 15px;
  padding: 20px; position: relative; box-shadow: var(--shadow-solid);
  transition: var(--transition);
}
.bubble-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.bubble-card::after {
  content: ''; position: absolute; bottom: -10px; left: 30px;
  border-width: 10px 10px 0 0; border-style: solid; border-color: var(--border) transparent transparent transparent;
}
.bubble-card::before {
  content: ''; position: absolute; bottom: -7px; left: 31px; z-index: 1;
  border-width: 8px 8px 0 0; border-style: solid; border-color: #fff transparent transparent transparent;
}
.bubble-text { font-size: 15px; font-weight: bold; margin-bottom: 15px; font-style: italic; }
.bubble-author { font-size: 13px; color: var(--text-light); text-align: right; font-weight: bold; }

/* 常见问题 */
.faq { padding: 80px 0; background: var(--lavender); border-top: 2px solid var(--border); }
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { background: #fff; border: 2px solid var(--border); border-radius: 10px; margin-bottom: 15px; overflow: hidden; box-shadow: 3px 3px 0 var(--border); }
.faq-q { padding: 18px 20px; font-weight: bold; font-size: 16px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; user-select: none; }
.faq-q::after { content: '+'; font-size: 24px; color: var(--purple); transition: 0.3s; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; padding: 0 20px; background: var(--bg-base); }
.faq-a p { padding-bottom: 18px; font-size: 15px; color: var(--text-light); }
.faq-item.open .faq-a { max-height: 200px; }

/* 下载区与页脚 */
.download-zone { padding: 80px 0; text-align: center; }
.download-box {
  background: var(--purple); border: 4px solid var(--border); border-radius: 20px;
  padding: 50px 20px; position: relative; overflow: hidden; box-shadow: var(--shadow-hover);
  color: #fff;
}
.download-box::before {
  content: ''; position: absolute; top: -50px; left: -50px; width: 200px; height: 200px;
  background-image: radial-gradient(#fff 2px, transparent 2px); background-size: 15px 15px;
  opacity: 0.2; border-radius: 50%;
}
.download-box h2 { font-size: 32px; margin-bottom: 15px; font-weight: 900; position: relative; z-index: 1; }
.download-box p { font-size: 16px; margin-bottom: 30px; position: relative; z-index: 1; }
.download-box .btn { background: #fff; color: var(--purple); border-color: #fff; font-size: 18px; padding: 15px 40px; position: relative; z-index: 1; }
.download-box .btn:hover { background: var(--pink-light); color: var(--pink); }

footer { background: #fff; border-top: 2px solid var(--border); padding: 40px 20px 20px; font-size: 13px; color: var(--text-light); }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; margin-bottom: 20px; }
.footer-brand { max-width: 300px; }
.footer-brand p { margin-top: 10px; }
.footer-links { display: flex; gap: 40px; }
.footer-col h4 { font-size: 15px; color: var(--text-main); margin-bottom: 10px; }
.footer-col ul li { margin-bottom: 5px; }
.footer-col ul li a:hover { color: var(--purple); }
.footer-bottom { text-align: center; border-top: 1px solid #eee; padding-top: 20px; font-size: 12px; }
.footer-bottom a { color: var(--text-light); transition: 0.2s; }
.footer-bottom a:hover { color: var(--purple); }

/* 响应式 */
@media (max-width: 1024px) {
  .grid-library { grid-template-columns: repeat(3, 1fr); }
  .hero-inner { grid-template-columns: 1fr; gap: 30px; }
  .comic-cover { max-width: 600px; margin: 0 auto; width: 100%; }
  .split-layout { grid-template-columns: 1fr; }
  .phone-mockup { margin-top: 30px; }
  .workshop-inner { grid-template-columns: 1fr; }
  .hero h1 { font-size: 36px; }
}
@media (max-width: 768px) {
  .nav-links { display: none; position: absolute; top: 70px; left: 0; width: 100%; background: #fff; flex-direction: column; padding: 20px; border-bottom: 2px solid var(--border); gap: 15px; }
  .nav-links.active { display: flex; }
  .hamburger { display: flex; }
  .search-box { display: none; }
  .grid-library { grid-template-columns: repeat(2, 1fr); gap: 15px; }
  .hero h1 { font-size: 28px; }
  .hero { padding-top: 100px; }
  .hero-cta { flex-direction: column; }
  .data-strip { width: 100%; justify-content: space-between; }
  .comic-cover { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .frame-main { grid-column: span 2; aspect-ratio: 16/9; }
  .frame-side { aspect-ratio: 1/1; }
  .speech-bubble { top: -10%; right: 5%; font-size: 12px; }
  .section-title { font-size: 22px; }
  .download-box h2 { font-size: 24px; }
  .footer-links { flex-direction: column; gap: 20px; }
}