:root {
  --paper: #f3ecd9;
  --paper-dark: #e8dfc8;
  --ink: #1a1a1a;
  --ink-light: #4a4a4a;
  --peach: #f2a65a;
  --peach-light: #fce4cc;
  --leaf: #4f6b44;
  --line: #d4c8b0;
  --font-serif: "Songti SC", "SimSun", "STSong", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "Courier New", Consolas, monospace;
}

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

body {
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    linear-gradient(90deg, transparent 95%, rgba(0,0,0,0.02) 100%),
    linear-gradient(rgba(0,0,0,0.015) 1px, transparent 1px);
  background-size: 20px 100%, 100% 28px;
}

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

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

button, .btn {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 900;
  line-height: 1.2;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(243, 236, 217, 0.95);
  backdrop-filter: blur(4px);
  border-bottom: 2px solid var(--ink);
  padding: 0 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: bold;
  font-size: 1.2rem;
  font-family: var(--font-serif);
}

.logo-img {
  height: 32px;
  width: auto;
}

.nav-index {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-download {
  background-color: var(--ink);
  color: var(--peach);
  padding: 10px 20px;
  font-weight: bold;
  font-size: 1rem;
  border: 1px solid var(--ink);
  transition: transform 0.2s, background-color 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
}

.btn-download:hover {
  background-color: #333;
  transform: translateY(-2px);
}

.menu-toggle {
  display: block;
  font-size: 1.5rem;
  color: var(--ink);
}

/* Main */
main {
  padding-bottom: 60px;
}

section {
  padding: 60px 5%;
  position: relative;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 12px;
  letter-spacing: 1px;
  border-left: 6px solid var(--peach);
  padding-left: 12px;
}

.section-desc {
  color: var(--ink-light);
  margin-bottom: 32px;
  font-size: 1.05rem;
  max-width: 800px;
}

/* Hero */
.hero {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-top: 40px;
  border-bottom: 1px dashed var(--line);
}

.hero-text {
  flex: 1;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 20px;
  letter-spacing: 2px;
}

.hero p {
  font-size: 1.1rem;
  color: var(--ink-light);
  margin-bottom: 30px;
  max-width: 500px;
}

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

.btn-secondary {
  border: 1px solid var(--ink);
  padding: 10px 20px;
  color: var(--ink);
  font-weight: bold;
  transition: background 0.2s;
}

.btn-secondary:hover {
  background: var(--paper-dark);
}

.hero-trust {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--ink-light);
  border-top: 1px solid var(--line);
  padding-top: 16px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-visual {
  flex: 2;
  position: relative;
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 20px;
}

/* Cover Cards General */
.cover-card {
  flex: 0 0 200px;
  background: #fff;
  border: 1px solid var(--ink);
  padding: 8px;
  position: relative;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.05);
  transition: transform 0.3s;
}

.cover-card:hover {
  transform: translateY(-5px) rotate(0deg) !important;
}

.cover-img-wrap {
  aspect-ratio: 3 / 4;
  position: relative;
  overflow: hidden;
  background: var(--paper-dark);
  border: 1px solid var(--line);
}

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

.tag {
  position: absolute;
  top: -10px;
  left: 10px;
  background: var(--peach);
  color: var(--ink);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  padding: 2px 6px;
  border: 1px solid var(--ink);
  font-weight: bold;
  z-index: 2;
}

.cover-meta {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-light);
}

.cover-meta h4 {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 4px;
}

.card-rot-1 { transform: rotate(-1deg); }
.card-rot-2 { transform: rotate(1deg); }
.card-rot-3 { transform: rotate(-1.5deg); }

/* Sections */
.sec-original {
  background-color: var(--peach);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}

.sec-original .section-desc { color: var(--ink); }

.process-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}

.step-item {
  background: rgba(255,255,255,0.4);
  border: 1px solid var(--ink);
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.step-item strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  margin-bottom: 4px;
  color: var(--ink);
}

.sec-inner-dark {
  background-color: var(--ink);
  color: #fff;
}

.sec-inner-dark .section-title {
  color: #fff;
  border-left-color: var(--peach);
}

.sec-inner-dark .section-desc {
  color: #ccc;
}

/* Read section */
.read-layout {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.side-notes {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #aaa;
  border-left: 1px dashed #555;
  padding-left: 16px;
}

.side-notes p {
  margin-bottom: 16px;
}

.phone-mock {
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  border: 10px solid #333;
  border-radius: 24px;
  background: #111;
  padding: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  position: relative;
}

.phone-screen {
  background: var(--paper);
  height: 500px;
  overflow-y: auto;
  padding: 16px;
  color: var(--ink);
  border-radius: 4px;
}

.phone-text {
  font-family: var(--font-serif);
  line-height: 1.8;
  margin-bottom: 16px;
}

.phone-img {
  aspect-ratio: 3/4;
  margin: 16px 0;
  border: 1px solid var(--line);
}

/* World Section */
.world-board {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.world-card {
  flex: 1 1 160px;
  aspect-ratio: 3/4;
  background: #222;
  border: 1px solid #444;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: transform 0.3s;
}

.world-card:hover {
  transform: scale(1.02);
  border-color: var(--peach);
}

.world-card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--peach);
}

.world-card p {
  font-size: 0.9rem;
  color: #ccc;
}

/* Storyboard */
.storyboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.story-frame {
  aspect-ratio: 3/4;
  background: #222;
  border: 1px solid #444;
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #eee;
  position: relative;
}

.story-frame.desc {
  background: #1a1a1a;
}

.story-frame h4 {
  color: var(--peach);
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.frame-tag {
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-size: 0.75rem;
  color: #666;
}

/* Genre */
.genre-layout {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.genre-list {
  display: flex;
  overflow-x: auto;
  gap: 12px;
  padding-bottom: 10px;
}

.genre-btn {
  background: #fff;
  border: 1px solid var(--ink);
  padding: 8px 16px;
  white-space: nowrap;
  font-family: var(--font-mono);
  transition: background 0.2s;
}

.genre-btn.active {
  background: var(--ink);
  color: var(--peach);
}

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

/* Collection */
.collection-layout {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

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

.collection-panel {
  background: #fff;
  border: 2px solid var(--ink);
  padding: 20px;
  box-shadow: 6px 6px 0 var(--paper-dark);
}

.collection-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

.btn-collect {
  display: inline-block;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  background: var(--peach-light);
  border: 1px solid var(--ink);
  padding: 4px 8px;
  text-align: center;
  width: 100%;
}

/* Stats */
.sec-stats {
  background-color: var(--peach);
  border-top: 2px solid var(--ink);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.stat-item {
  text-align: center;
}

.stat-num {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--ink);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--ink-light);
}

.quotes-wall {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.quote-note {
  background: #fff;
  padding: 12px;
  border: 1px solid var(--line);
  font-size: 0.85rem;
  box-shadow: 2px 2px 0 rgba(0,0,0,0.05);
  transform: rotate(-1deg);
}

/* FAQ */
.faq-layout {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}

.faq-q {
  font-family: var(--font-serif);
  font-weight: bold;
  font-size: 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-a {
  margin-top: 12px;
  color: var(--ink-light);
  font-size: 0.95rem;
  display: none;
}

.faq-item.open .faq-a {
  display: block;
}

/* Footer */
.footer {
  background: var(--ink);
  color: #888;
  padding: 40px 5% 20px;
  font-size: 0.8rem;
  border-top: 4px solid var(--peach);
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 32px;
}

.footer-brand h3 {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.footer-links a {
  color: #ccc;
}

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Breakpoints */
@media (min-width: 768px) {
  .header {
    height: 72px;
  }
  .hero {
    flex-direction: row;
    align-items: center;
  }
  .hero-visual {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
  }
  .cover-card {
    flex: 0 0 220px;
  }
  .hero h1 {
    font-size: 3.5rem;
  }
  .read-layout {
    flex-direction: row;
  }
  .side-notes {
    flex: 1;
  }
  .phone-mock {
    flex: 1;
    margin: 0;
  }
  .storyboard-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .genre-layout {
    flex-direction: row;
  }
  .genre-list {
    flex-direction: column;
    flex: 0 0 200px;
    overflow-x: visible;
  }
  .genre-wall {
    grid-template-columns: repeat(3, 1fr);
    flex: 1;
  }
  .collection-layout {
    flex-direction: row;
    align-items: flex-start;
  }
  .collection-wall {
    flex: 2;
    grid-template-columns: repeat(3, 1fr);
  }
  .collection-panel {
    flex: 1;
    position: sticky;
    top: 100px;
  }
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .faq-layout {
    flex-direction: row;
    gap: 60px;
  }
  .faq-left {
    flex: 1;
    position: sticky;
    top: 100px;
  }
  .faq-right {
    flex: 2;
  }
  .footer-links {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1024px) {
  .nav-index {
    display: flex;
    gap: 16px;
    font-size: 0.85rem;
    font-family: var(--font-mono);
  }
  .nav-index a {
    border-top: 2px solid transparent;
    padding-top: 4px;
    transition: border-color 0.2s;
  }
  .nav-index a:hover {
    border-top-color: var(--peach);
  }
  .menu-toggle {
    display: none;
  }
  .hero h1 {
    font-size: 4rem;
  }
  .genre-wall {
    grid-template-columns: repeat(4, 1fr);
  }
  .collection-wall {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}