:root {
    --bg-base: #faf6ff;
    --bg-white: #ffffff;
    --bg-lavender: #f0e6ff;
    --bg-pink: #ffe4f2;
    --primary: #8b5cf6;
    --primary-dark: #6d3fd4;
    --accent-pink: #f0569b;
    --accent-cyan: #22c7d6;
    --ink: #2d1b4e;
    --ink-light: #6b5b8a;
    --border: #2d1b4e;
    --shadow: 4px 4px 0 var(--border);
    --shadow-sm: 2px 2px 0 var(--border);
    --radius: 12px;
    --font-main: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  }

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

  html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
  }

  body {
    font-family: var(--font-main);
    background-color: var(--bg-base);
    background-image: radial-gradient(var(--primary) 1px, transparent 1px);
    background-size: 24px 24px;
    color: var(--ink);
    line-height: 1.6;
    overflow-x: hidden;
  }

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

  ul {
    list-style: none;
  }

  /* 通用组件 */
  .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
  }

  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 16px;
    border: 2px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
  }
  .btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: var(--shadow);
  }
  .btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent-pink));
    color: #fff;
  }
  .btn-outline {
    background: var(--bg-white);
    color: var(--ink);
  }

  .section-title {
    font-size: 28px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    padding: 0 16px;
  }
  .section-title::before {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    right: 0;
    height: 10px;
    background: var(--bg-pink);
    z-index: -1;
    border-radius: 4px;
  }
  .section-desc {
    text-align: center;
    color: var(--ink-light);
    margin-bottom: 40px;
    font-size: 16px;
  }

  /* 导航条 */
  header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 2px solid var(--border);
  }
  .nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
  }
  .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 20px;
    color: var(--ink);
  }
  .brand img {
    height: 32px;
    width: auto;
    border-radius: 8px;
    border: 2px solid var(--border);
  }
  .nav-links {
    display: flex;
    gap: 20px;
  }
  .nav-links a {
    font-size: 15px;
    font-weight: 600;
    color: var(--ink-light);
    transition: color 0.2s;
  }
  .nav-links a:hover {
    color: var(--primary);
  }
  .nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .nav-search {
    display: flex;
    align-items: center;
    background: var(--bg-lavender);
    border-radius: 20px;
    padding: 6px 14px;
    border: 1px solid transparent;
    transition: border-color 0.2s;
  }
  .nav-search input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 14px;
    width: 120px;
    color: var(--ink);
  }
  .nav-search input::placeholder {
    color: #a08fbf;
  }
  .hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
  }
  .hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
  }

  /* 首屏 Hero */
  .hero {
    padding: 60px 0 80px;
    position: relative;
  }
  .hero-content {
    display: flex;
    align-items: center;
    gap: 40px;
  }
  .hero-text {
    flex: 1;
  }
  .hero-tag {
    display: inline-block;
    background: var(--bg-white);
    border: 2px solid var(--border);
    border-radius: 8px;
    padding: 4px 12px;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
    transform: rotate(-2deg);
  }
  .hero-text h1 {
    font-size: 40px;
    line-height: 1.25;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
  }
  .hero-text h1 span {
    color: var(--primary);
    background: linear-gradient(120deg, var(--primary), var(--accent-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  .hero-sub {
    font-size: 17px;
    color: var(--ink-light);
    margin-bottom: 32px;
    max-width: 500px;
  }
  .hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
  }
  .stats-bar {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
  }
  .stat-item {
    background: var(--bg-white);
    border: 2px solid var(--border);
    border-radius: 10px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .stat-item span {
    color: var(--accent-pink);
  }
  
  /* 分镜封面 (Hero 右侧) */
  .comic-cover {
    flex: 1;
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 12px;
    position: relative;
  }
  .comic-frame {
    border: 3px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
    background: #fff;
    transition: transform 0.3s;
  }
  .comic-frame:hover {
    transform: scale(1.02);
    z-index: 2;
  }
  .comic-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  .comic-frame.main {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
    aspect-ratio: 2 / 3;
  }
  .comic-frame.small {
    aspect-ratio: 1 / 1;
  }
  .frame-num {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--ink);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
  }
  .bubble {
    position: absolute;
    bottom: 20px;
    right: -20px;
    background: #fff;
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
    z-index: 3;
    white-space: nowrap;
  }
  .bubble::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 20px;
    width: 12px;
    height: 12px;
    background: #fff;
    border-right: 2px solid var(--border);
    border-bottom: 2px solid var(--border);
    transform: rotate(45deg);
  }

  /* 分镜片库 */
  .library {
    padding: 80px 0;
    background: var(--bg-white);
    border-top: 2px solid var(--border);
    border-bottom: 2px solid var(--border);
  }
  .grid-library {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
  }
  .card {
    border: 2px solid var(--border);
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
  }
  .card:hover {
    transform: translateY(-6px) rotate(-1deg);
    box-shadow: var(--shadow);
  }
  .card-cover {
    aspect-ratio: 2 / 3;
    overflow: hidden;
    position: relative;
    border-bottom: 2px solid var(--border);
  }
  .card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  .card-rating {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--accent-pink);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
    border: 2px solid var(--border);
  }
  .card-info {
    padding: 10px;
  }
  .card-title {
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .card-meta {
    font-size: 12px;
    color: var(--ink-light);
    display: flex;
    justify-content: space-between;
  }

  /* 竖屏连看 */
  .vertical-watch {
    padding: 80px 0;
  }
  .vertical-inner {
    display: flex;
    align-items: center;
    gap: 60px;
  }
  .vertical-text {
    flex: 1;
  }
  .vertical-text h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 20px;
  }
  .feature-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .feature-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
  }
  .feature-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-lavender);
    border: 2px solid var(--border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
    color: var(--primary);
    flex-shrink: 0;
  }
  .feature-item h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
  }
  .feature-item p {
    font-size: 14px;
    color: var(--ink-light);
  }
  
  /* 手机演示 */
  .phone-mockup {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
  }
  .phone-frame {
    width: 280px;
    height: 560px;
    border: 6px solid var(--border);
    border-radius: 36px;
    background: #000;
    position: relative;
    overflow: hidden;
    box-shadow: 8px 8px 0 var(--border);
  }
  .phone-screen {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
  }
  .phone-slide {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.4s;
  }
  .phone-slide.active {
    opacity: 1;
  }
  .swipe-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    animation: bounce 2s infinite;
    pointer-events: none;
  }
  @keyframes bounce {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, -10px); }
  }
  .phone-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
  }
  .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: 1px solid rgba(0,0,0,0.2);
    cursor: pointer;
  }
  .dot.active {
    background: var(--accent-pink);
    border-color: var(--accent-pink);
  }

  /* 魔改工坊 */
  .magic-workshop {
    padding: 80px 0;
    background: var(--bg-lavender);
    border-top: 2px solid var(--border);
    border-bottom: 2px solid var(--border);
  }
  .magic-inner {
    display: flex;
    gap: 60px;
    align-items: center;
  }
  .magic-text {
    flex: 1;
  }
  .magic-text h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 20px;
  }
  .tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
  }
  .tag {
    background: #fff;
    border: 2px solid var(--border);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
  }
  
  .workshop-preview {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: #fff;
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow);
  }
  .workshop-step {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px;
    background: var(--bg-base);
    border: 1px dashed var(--border);
    border-radius: 8px;
  }
  .step-num {
    width: 28px;
    height: 28px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    flex-shrink: 0;
  }
  .step-content {
    flex: 1;
  }
  .step-content strong {
    display: block;
    font-size: 14px;
    margin-bottom: 2px;
  }
  .progress-bar {
    height: 6px;
    background: #e5d8f5;
    border-radius: 3px;
    margin-top: 6px;
    overflow: hidden;
  }
  .progress-bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent-pink));
    border-radius: 3px;
  }

  /* 题材筛选 */
  .genre-filter {
    padding: 60px 0;
    text-align: center;
  }
  .chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
  }
  .chip {
    padding: 8px 20px;
    background: #fff;
    border: 2px solid var(--border);
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: var(--shadow-sm);
  }
  .chip:hover, .chip.active {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 3px 3px 0 var(--border);
  }

  /* 用户评价 */
  .reviews {
    padding: 80px 0;
    background: var(--bg-white);
    border-top: 2px solid var(--border);
    border-bottom: 2px solid var(--border);
  }
  .score-badge {
    width: 100px;
    height: 100px;
    background: var(--accent-cyan);
    border: 3px solid var(--border);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 40px;
    box-shadow: var(--shadow);
    transform: rotate(-3deg);
  }
  .score-badge .score {
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
    color: #fff;
    text-shadow: 2px 2px 0 var(--border);
  }
  .score-badge .label {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    margin-top: 4px;
  }
  .review-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
  .bubble-card {
    background: var(--bg-base);
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s;
  }
  .bubble-card:hover {
    transform: translateY(-4px);
  }
  .bubble-card::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 30px;
    width: 16px;
    height: 16px;
    background: var(--bg-base);
    border-right: 2px solid var(--border);
    border-bottom: 2px solid var(--border);
    transform: rotate(45deg);
  }
  .bubble-card p {
    font-size: 15px;
    margin-bottom: 12px;
    line-height: 1.5;
  }
  .bubble-author {
    font-size: 13px;
    font-weight: 700;
    color: var(--ink-light);
    text-align: right;
  }

  /* FAQ 手风琴 */
  .faq {
    padding: 80px 0;
  }
  .faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .faq-item {
    background: #fff;
    border: 2px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
  }
  .faq-question {
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
  }
  .faq-question::after {
    content: '+';
    font-size: 20px;
    color: var(--primary);
    transition: transform 0.3s;
  }
  .faq-item.open .faq-question::after {
    transform: rotate(45deg);
  }
  .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: var(--bg-base);
  }
  .faq-answer p {
    padding: 16px 20px;
    font-size: 15px;
    color: var(--ink-light);
  }

  /* 下载区 */
  .download-section {
    padding: 80px 0;
    background: var(--bg-lavender);
    border-top: 2px solid var(--border);
  }
  .download-box {
    background: #fff;
    border: 4px solid var(--border);
    border-radius: 24px;
    padding: 60px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 8px 8px 0 var(--border);
  }
  .download-box::before, .download-box::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: var(--bg-pink);
    border: 2px solid var(--border);
  }
  .download-box::before {
    width: 150px;
    height: 150px;
    top: -50px;
    left: -50px;
    background-image: radial-gradient(var(--border) 2px, transparent 2px);
    background-size: 10px 10px;
  }
  .download-box::after {
    width: 120px;
    height: 120px;
    bottom: -40px;
    right: -40px;
    background-image: radial-gradient(var(--primary) 2px, transparent 2px);
    background-size: 10px 10px;
  }
  .download-box h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
  }
  .download-box p {
    font-size: 16px;
    color: var(--ink-light);
    margin-bottom: 32px;
    position: relative;
    z-index: 1;
  }
  .download-btn {
    font-size: 18px;
    padding: 14px 48px;
    position: relative;
    z-index: 1;
  }

  /* 页脚 */
  footer {
    background: var(--ink);
    color: #fff;
    padding: 40px 0;
    font-size: 14px;
  }
  .footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
  }
  .footer-brand {
    font-weight: 800;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .footer-brand img {
    height: 24px;
    border-radius: 4px;
  }
  .footer-nav {
    display: flex;
    gap: 24px;
  }
  .footer-nav a {
    color: #cbb8f0;
    transition: color 0.2s;
  }
  .footer-nav a:hover {
    color: #fff;
  }
  .footer-copy {
    color: #a08fbf;
    font-size: 12px;
    text-align: center;
    width: 100%;
    margin-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
  }
  .footer-copy a {
    color: #a08fbf;
    margin-left: 8px;
  }
  .footer-copy a:hover {
    color: #fff;
  }

  /* 响应式 */
  @media (max-width: 1024px) {
    .nav-links {
      display: none;
    }
    .hamburger {
      display: flex;
    }
    .nav-links.mobile-active {
      display: flex;
      flex-direction: column;
      position: absolute;
      top: 72px;
      left: 0;
      width: 100%;
      background: #fff;
      border-bottom: 2px solid var(--border);
      padding: 20px;
      gap: 16px;
      z-index: 99;
    }
    .hero-content {
      flex-direction: column;
    }
    .comic-cover {
      width: 100%;
      max-width: 500px;
      margin: 0 auto;
    }
    .grid-library {
      grid-template-columns: repeat(3, 1fr);
    }
    .vertical-inner, .magic-inner {
      flex-direction: column;
      gap: 40px;
    }
    .review-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  @media (max-width: 768px) {
    .hero {
      padding: 40px 0 60px;
    }
    .hero-text h1 {
      font-size: 28px;
    }
    .hero-cta {
      flex-direction: column;
    }
    .stats-bar {
      justify-content: center;
    }
    .comic-cover {
      grid-template-columns: 1fr 1fr;
    }
    .comic-frame.main {
      grid-column: 1 / 3;
      grid-row: 1 / 2;
      aspect-ratio: 1 / 1;
    }
    .comic-frame.small {
      aspect-ratio: 1 / 1;
    }
    .bubble {
      right: 10px;
      bottom: 10px;
      font-size: 12px;
    }
    .grid-library {
      grid-template-columns: repeat(2, 1fr);
      gap: 16px;
    }
    .review-grid {
      grid-template-columns: 1fr;
    }
    .phone-frame {
      width: 240px;
      height: 480px;
    }
    .footer-inner {
      flex-direction: column;
      text-align: center;
    }
    .footer-nav {
      flex-wrap: wrap;
      justify-content: center;
    }
  }