:root {
  --ink-blue: #1c2942;
  --ink-blue-light: #283a5c;
  --paper-bg: #f7f6f1;
  --paper-white: #fffefa;
  --gold-warm: #d3a349;
  --gold-light: #f5ead2;
  --text-main: #333333;
  --text-muted: #666666;
  --border-color: #e0dcd3;
  --book-shadow: 2px 4px 12px rgba(28, 41, 66, 0.08);
  --book-shadow-hover: 4px 8px 20px rgba(28, 41, 66, 0.12);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--paper-bg);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

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

/* 导航条 */
.navbar {
  position: sticky;
  top: 0;
  background-color: rgba(255, 254, 250, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  padding: 12px 0;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  height: 32px;
  width: auto;
  border-radius: 4px;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink-blue);
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  gap: 24px;
  font-size: 0.95rem;
}

.nav-links a {
  color: var(--ink-blue);
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--gold-warm);
}

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

.search-box {
  display: flex;
  align-items: center;
  background: var(--paper-bg);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 4px 12px;
}

.search-box input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.85rem;
  color: var(--text-main);
  width: 100px;
}

.btn-primary {
  background-color: var(--ink-blue);
  color: var(--gold-light);
  padding: 8px 20px;
  border-radius: 4px;
  font-weight: 600;
  border: 1px solid var(--ink-blue);
  transition: all 0.2s;
  display: inline-block;
  text-align: center;
}

.btn-primary:hover {
  background-color: var(--ink-blue-light);
  color: #fff;
}

.btn-outline {
  background-color: transparent;
  color: var(--ink-blue);
  padding: 8px 20px;
  border-radius: 4px;
  font-weight: 600;
  border: 1px solid var(--ink-blue);
  transition: all 0.2s;
  display: inline-block;
  text-align: center;
}

.btn-outline:hover {
  background-color: var(--ink-blue);
  color: var(--gold-light);
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: var(--ink-blue);
  cursor: pointer;
}

/* 首屏 Hero */
.hero {
  padding: 80px 0 60px;
  position: relative;
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.hero-content {
  flex: 1;
  max-width: 600px;
}

.hero-tags {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.tag {
  font-size: 0.8rem;
  background: var(--gold-light);
  color: #8a6d3b;
  padding: 4px 10px;
  border-radius: 2px;
  border: 1px solid #e8d5b5;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  color: var(--ink-blue);
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold-warm);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* 书页封面 */
.hero-book-wrapper {
  flex: 0 0 380px;
  position: relative;
  display: flex;
  justify-content: center;
}

.book-cover {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: var(--ink-blue);
  border-radius: 4px 12px 12px 4px;
  box-shadow: var(--book-shadow);
  position: relative;
  overflow: hidden;
  border-left: 8px solid #152036;
  display: flex;
  flex-direction: column;
}

.book-cover::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px 12px 12px 4px;
  pointer-events: none;
  z-index: 10;
}

.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

.book-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid var(--gold-warm);
  color: var(--gold-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: bold;
  letter-spacing: 1px;
  transform: rotate(15deg);
  background: rgba(28, 41, 66, 0.6);
  z-index: 2;
}

.bookmark {
  position: absolute;
  top: 0;
  right: 40px;
  width: 24px;
  height: 60px;
  background: var(--gold-warm);
  z-index: 2;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.bookmark::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 0;
  border-left: 12px solid var(--gold-warm);
  border-right: 12px solid var(--gold-warm);
  border-bottom: 12px solid transparent;
}

/* 章节导航 */
.section-dark {
  background-color: var(--ink-blue);
  color: #fff;
  padding: 60px 0;
  margin: 40px 0;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 40px;
  color: var(--ink-blue);
  text-align: center;
  font-weight: 700;
}

.section-dark .section-title {
  color: var(--gold-light);
}

.chapter-nav {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.chapter-item {
  flex: 1;
  background: var(--ink-blue-light);
  padding: 30px;
  border-radius: 4px;
  position: relative;
  border-left: 4px solid var(--gold-warm);
}

.chapter-num {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--gold-warm);
  line-height: 1;
  margin-bottom: 12px;
  font-family: serif;
}

.chapter-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #fff;
}

.chapter-desc {
  font-size: 0.9rem;
  color: #a0aec0;
}

/* 题材书架 */
.shelf-section {
  padding: 60px 0;
}

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

.shelf-item {
  display: flex;
  background: var(--paper-white);
  border-radius: 4px;
  padding: 16px;
  box-shadow: var(--book-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

.shelf-item:hover {
  transform: translateX(8px);
  box-shadow: var(--book-shadow-hover);
}

.shelf-thumb {
  width: 76px;
  height: 114px;
  flex-shrink: 0;
  border-radius: 2px;
  overflow: hidden;
  margin-right: 16px;
  background: var(--border-color);
}

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

.shelf-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.shelf-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink-blue);
  margin-bottom: 8px;
}

.shelf-meta {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.shelf-tag {
  font-size: 0.75rem;
  color: var(--gold-warm);
  background: var(--gold-light);
  padding: 2px 6px;
  border-radius: 2px;
}

.shelf-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* 分集目录 */
.catalog-section {
  padding: 60px 0;
  background: var(--paper-white);
}

.catalog-cols {
  display: flex;
  gap: 40px;
}

.catalog-col {
  flex: 1;
}

.catalog-header {
  display: flex;
  align-items: baseline;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 10px;
}

.catalog-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ink-blue);
  margin-right: 12px;
}

.catalog-count {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.catalog-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.catalog-item {
  display: flex;
  align-items: center;
  background: var(--paper-bg);
  padding: 12px;
  border-radius: 4px;
  border-left: 3px solid var(--gold-warm);
}

.catalog-cover {
  width: 60px;
  height: 90px;
  border-radius: 2px;
  overflow: hidden;
  margin-right: 16px;
  background: var(--border-color);
}

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

.catalog-info {
  flex: 1;
}

.catalog-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink-blue);
  margin-bottom: 4px;
}

.catalog-status {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
}

.ep-num {
  color: var(--gold-warm);
  font-weight: 600;
}

/* 热播榜 */
.rank-section {
  padding: 60px 0;
}

.rank-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rank-item {
  display: flex;
  align-items: center;
  background: var(--paper-white);
  padding: 16px 20px;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  transition: transform 0.2s, background 0.2s;
}

.rank-item:hover {
  transform: translateX(8px);
  background: #fdfcf8;
  border-color: var(--gold-warm);
}

.rank-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ink-blue);
  width: 40px;
  flex-shrink: 0;
  font-style: italic;
}

.rank-item:nth-child(-n+3) .rank-num {
  color: var(--gold-warm);
}

.rank-cover {
  width: 50px;
  height: 75px;
  border-radius: 2px;
  overflow: hidden;
  margin-right: 20px;
  flex-shrink: 0;
}

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

.rank-info {
  flex: 1;
}

.rank-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink-blue);
  margin-bottom: 4px;
}

.rank-meta {
  display: flex;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.rank-score {
  font-size: 1.1rem;
  font-weight: 700;
  color: #d35400;
}

/* 竖屏体验 */
.screen-section {
  padding: 60px 0;
  background: var(--paper-bg);
}

.screen-inner {
  display: flex;
  align-items: center;
  gap: 60px;
}

.screen-features {
  flex: 1;
}

.feature-list {
  list-style: none;
  margin-top: 24px;
}

.feature-list li {
  font-size: 1.1rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  color: var(--ink-blue);
  font-weight: 500;
}

.feature-list li::before {
  content: "✦";
  color: var(--gold-warm);
  margin-right: 12px;
  font-size: 1.2rem;
}

.phone-demo {
  flex: 0 0 280px;
  height: 560px;
  background: #111;
  border-radius: 30px;
  padding: 12px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  position: relative;
  overflow: hidden;
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  background: #000;
}

.screen-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.screen-slide.active {
  opacity: 1;
}

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

.swipe-hint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 0.9rem;
  animation: bounce 2s infinite;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
  z-index: 10;
}

@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, -8px); }
}

.indicator-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-color);
  transition: background 0.3s;
}

.dot.active {
  background: var(--gold-warm);
}

/* 用户评价 */
.review-section {
  padding: 60px 0;
  background: var(--paper-white);
}

.review-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
}

.score-box {
  font-size: 3rem;
  font-weight: 800;
  color: var(--gold-warm);
  line-height: 1;
}

.score-label {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 500;
}

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

.review-card {
  background: var(--paper-bg);
  padding: 24px;
  border-left: 4px solid var(--gold-warm);
  border-radius: 0 4px 4px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.review-text {
  font-size: 1rem;
  color: var(--text-main);
  margin-bottom: 16px;
  font-style: italic;
}

.review-author {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: right;
}

/* 常见问题 */
.faq-section {
  padding: 60px 0;
  background: var(--paper-bg);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--paper-white);
  margin-bottom: 12px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  overflow: hidden;
}

.faq-q {
  padding: 20px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink-blue);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-q::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--gold-warm);
  transition: transform 0.3s;
}

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

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

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

/* 下载区 */
.download-section {
  padding: 80px 0;
}

.download-box {
  background: var(--ink-blue);
  border: 2px solid var(--gold-warm);
  border-radius: 8px;
  padding: 60px 40px;
  text-align: center;
  position: relative;
}

.download-box::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(211, 163, 73, 0.4);
  border-radius: 4px;
  pointer-events: none;
}

.download-title {
  font-size: 2.2rem;
  color: var(--gold-light);
  margin-bottom: 20px;
  font-weight: 800;
  letter-spacing: 2px;
}

.download-desc {
  color: #a0aec0;
  margin-bottom: 40px;
  font-size: 1.1rem;
}

.download-btn {
  font-size: 1.2rem;
  padding: 16px 48px;
  background: var(--gold-warm);
  color: var(--ink-blue);
  border-color: var(--gold-warm);
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(211, 163, 73, 0.3);
}

.download-btn:hover {
  background: var(--gold-light);
  color: var(--ink-blue);
  border-color: var(--gold-light);
}

/* 页脚 */
.footer {
  background: var(--ink-blue);
  color: #8892b0;
  padding: 40px 0 20px;
  font-size: 0.85rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  max-width: 300px;
}

.footer-brand h4 {
  color: var(--gold-light);
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.footer-links {
  display: flex;
  gap: 60px;
}

.link-group h5 {
  color: #fff;
  margin-bottom: 12px;
  font-weight: 500;
}

.link-group a {
  display: block;
  margin-bottom: 8px;
  transition: color 0.2s;
}

.link-group a:hover {
  color: var(--gold-warm);
}

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

.footer-bottom a {
  color: #a0aec0;
}

.footer-bottom a:hover {
  color: #fff;
}

/* 响应式断点 */
@media (max-width: 1024px) {
  .hero-title { font-size: 2.2rem; }
  .hero-book-wrapper { flex: 0 0 300px; }
  .shelf-grid { grid-template-columns: repeat(2, 1fr); }
  .chapter-nav { flex-wrap: wrap; }
  .chapter-item { flex: 1 1 30%; }
  .review-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .search-box { display: none; }
  .menu-toggle { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--paper-white);
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    gap: 16px;
    z-index: 999;
  }
  .hero-inner { flex-direction: column; text-align: center; }
  .hero-content { max-width: 100%; }
  .hero-tags { justify-content: center; }
  .hero-cta { justify-content: center; flex-direction: column; }
  .hero-stats { justify-content: center; flex-wrap: wrap; gap: 20px; }
  .hero-book-wrapper { margin-top: 40px; width: 100%; max-width: 320px; }
  .chapter-nav { flex-direction: column; }
  .shelf-grid { grid-template-columns: 1fr; }
  .catalog-cols { flex-direction: column; gap: 40px; }
  .screen-inner { flex-direction: column; gap: 40px; }
  .download-title { font-size: 1.6rem; }
  .footer-links { flex-direction: column; gap: 20px; }
}