/* ============================================================
   谜妹漫画 mimeimah.cn — style.css
   四色体系：金黄 #F9C732 + 深棕红 #BD6B55 + 米白 + 深墨
   硬实线 · 硬阴影 · 无圆角 · 无渐变
   ============================================================ */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold: #F9C732;         /* logo 主色 */
  --gold-dark: #D4A618;
  --brown: #BD6B55;        /* 强对比深棕 */
  --brown-dark: #8C4938;
  --cream: #FFFBF2;        /* 页面底 */
  --cream-2: #FFF5DC;      /* 浅米 */
  --ink: #1A1208;          /* 深墨 */
  --line: #2A1C0C;
  --white: #FFFFFF;
  --shadow: 6px 6px 0 var(--ink);   /* 硬阴影，方向统一右下 */
  --shadow-sm: 3px 3px 0 var(--ink);
  --border: 3px solid var(--ink);
}

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", -apple-system, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ 顶栏 ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.brand img {
  width: 42px;
  height: 42px;
  border: 2px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
}
.brand-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 1px;
}

.site-nav {
  display: flex;
  gap: 28px;
}
.nav-link {
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  padding: 6px 0;
  position: relative;
}
.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--ink);
  transition: width .2s ease;
}
.nav-link:hover::after { width: 100%; }

.header-cta {
  background: var(--gold);
  color: var(--ink);
  border: 2px solid var(--ink);
  padding: 8px 20px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 2px 2px 0 var(--ink);
  transition: transform .1s ease;
}
.header-cta:hover { transform: translate(-1px, -1px); }

/* ============ 英雄区：漫画书架墙 ============ */
.hero {
  background: var(--cream-2);
  border-bottom: var(--border);
  padding: 64px 0 80px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  background: var(--ink);
  color: var(--gold);
  padding: 4px 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.hero-h1 {
  font-size: 56px;
  font-weight: 900;
  letter-spacing: 4px;
  margin-bottom: 12px;
  line-height: 1.1;
}

.hero-slogan {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--brown-dark);
}

.hero-desc {
  font-size: 16px;
  margin-bottom: 28px;
  color: #3D2C18;
}

.hero-stats {
  display: flex;
  gap: 20px;
  margin-bottom: 28px;
}
.stat {
  border: 2px solid var(--ink);
  padding: 12px 16px;
  background: var(--white);
  text-align: center;
  flex: 1;
  box-shadow: var(--shadow-sm);
}
.stat strong {
  display: block;
  font-size: 20px;
  font-weight: 900;
  color: var(--brown-dark);
}
.stat span {
  font-size: 12px;
  color: var(--ink);
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
}

.btn-main {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  color: var(--ink);
  border: 3px solid var(--ink);
  padding: 14px 32px;
  text-decoration: none;
  font-weight: 800;
  font-size: 16px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform .1s ease, box-shadow .1s ease;
}
.btn-main:hover {
  transform: translate(2px, 2px);
  box-shadow: 4px 4px 0 var(--ink);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  color: var(--ink);
  border: 3px solid var(--ink);
  padding: 14px 28px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { background: var(--gold); }

.btn-lg { padding: 18px 48px; font-size: 18px; }

.hero-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.badge {
  border: 2px solid var(--ink);
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 600;
  background: var(--white);
}

/* === 书脊墙 === */
.bookshelf {
  position: relative;
  padding: 30px 24px 20px;
  background: var(--white);
  border: var(--border);
  box-shadow: var(--shadow);
}
.book-row {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
  align-items: flex-end;
  justify-content: flex-end;
}
.book {
  width: 48px;
  border: 2px solid var(--ink);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 6px 2px;
  box-shadow: 3px 3px 0 var(--ink);
  transform-origin: bottom left;
}
.book span {
  writing-mode: vertical-rl;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--ink);
}
.book-a { background: var(--gold); }
.book-b { background: var(--brown); color: var(--white); }
.book-b span { color: var(--white); }
.book-c { background: var(--cream-2); }
.book-d { background: #F5E0A0; }
.book-e { background: #E89D85; }
.shelf-shadow {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 10px;
  background: var(--ink);
}

/* ============ Section 通用 ============ */
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}
.section-tag {
  display: inline-block;
  background: var(--ink);
  color: var(--gold);
  padding: 4px 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  margin-bottom: 14px;
}
.section-title {
  font-size: 34px;
  font-weight: 900;
  margin-bottom: 10px;
  letter-spacing: 2px;
}
.section-sub {
  font-size: 15px;
  color: #4A351C;
}

/* ============ 四象限功能阵 ============ */
.features {
  padding: 80px 0;
  background: var(--white);
  border-bottom: var(--border);
}

.quadrant {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 0;
  border: var(--border);
  box-shadow: var(--shadow);
}
.quad {
  padding: 40px 36px;
  border-right: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
}
.quad:nth-child(2n) { border-right: none; }
.quad:nth-last-child(-n+2) { border-bottom: none; }
.quad h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 12px;
}
.quad p {
  font-size: 15px;
  color: #2C1E0E;
  line-height: 1.75;
}
.q-icon {
  font-size: 36px;
  margin-bottom: 14px;
  display: block;
}
.q-yellow { background: var(--gold); }
.q-cream { background: var(--cream-2); }
.q-brown { background: var(--brown); color: var(--white); }
.q-brown h3, .q-brown p { color: var(--white); }
.q-dark { background: var(--ink); color: var(--gold); }
.q-dark h3 { color: var(--gold); }
.q-dark p { color: #E8D089; }

/* ============ 手机样机展示 ============ */
.showcase {
  padding: 80px 0;
  background: var(--cream-2);
  border-bottom: var(--border);
}

.showcase-wrap {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  align-items: center;
}

.thumbs-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.thumb-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 2px solid var(--ink);
  background: var(--white);
  padding: 8px 10px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: transform .1s ease;
}
.thumb-btn:hover { transform: translate(-1px, -1px); }
.thumb-btn.active {
  background: var(--gold);
  transform: translate(-3px, -3px);
  box-shadow: 5px 5px 0 var(--ink);
}
.thumb-btn img {
  width: 42px;
  height: 64px;
  object-fit: cover;
  border: 1.5px solid var(--ink);
  flex-shrink: 0;
}

/* === 手机框 === */
.phone-frame {
  position: relative;
  width: 260px;
  margin: 0 auto;
  background: var(--ink);
  border: 4px solid var(--ink);
  box-shadow: var(--shadow);
  padding: 14px;
}
.phone-notch {
  width: 90px;
  height: 18px;
  background: var(--ink);
  margin: 0 auto 8px;
  border-radius: 0;
}
.phone-screen {
  width: 100%;
  aspect-ratio: 9/16;
  background: var(--white);
  overflow: hidden;
  position: relative;
  border: 2px solid var(--ink);
}
.screen-slides { width: 100%; height: 100%; }
.screen-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .25s ease;
}
.screen-slide.active { opacity: 1; }
.screen-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.phone-home {
  width: 80px;
  height: 6px;
  background: #555;
  margin: 12px auto 0;
}

/* ============ 编号书签步骤卡 ============ */
.guide {
  padding: 80px 0;
  background: var(--white);
  border-bottom: var(--border);
}

.step-bookmarks {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 720px;
  margin: 0 auto;
}

.bookmark {
  position: relative;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 20px;
  padding: 28px 28px 28px 36px;
  border-left: 4px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  background: var(--cream-2);
  transition: background .2s ease;
}
.bookmark:last-child { border-bottom: 4px solid var(--ink); }
.bookmark.active { background: var(--gold); }
.bm-num {
  font-size: 48px;
  font-weight: 900;
  color: var(--ink);
  line-height: 1;
  letter-spacing: 2px;
}
.bm-body h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 6px;
}
.bm-body p {
  font-size: 15px;
  color: #3D2C18;
}

/* ============ 标签筛选 FAQ ============ */
.faq {
  padding: 80px 0;
  background: var(--cream-2);
  border-bottom: var(--border);
}

.faq-panel {
  max-width: 800px;
  margin: 0 auto;
  border: var(--border);
  box-shadow: var(--shadow);
  background: var(--white);
}

.faq-tabs {
  display: flex;
  border-bottom: 3px solid var(--ink);
  background: var(--ink);
  flex-wrap: wrap;
}
.tab-btn {
  flex: 1;
  min-width: 110px;
  background: transparent;
  color: var(--white);
  border: none;
  border-right: 2px solid var(--ink);
  padding: 14px 16px;
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.tab-btn:last-child { border-right: none; }
.tab-btn:hover { color: var(--gold); }
.tab-btn.active {
  background: var(--gold);
  color: var(--ink);
}

.faq-list { padding: 10px 0; }
.faq-item {
  padding: 22px 28px;
  border-bottom: 2px solid var(--cream-2);
}
.faq-item:last-child { border-bottom: none; }
.faq-item h3 {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--brown-dark);
}
.faq-item p {
  font-size: 15px;
  color: #2C1E0E;
  line-height: 1.8;
}
.faq-item[hidden] { display: none; }

/* ============ 时间线评论柱 ============ */
.comments {
  padding: 80px 0;
  background: var(--white);
  border-bottom: var(--border);
}

.timeline-col {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
  padding-left: 40px;
}
.tl-line {
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--ink);
}
.tl-item {
  position: relative;
  padding-bottom: 32px;
}
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
  position: absolute;
  left: -34px;
  top: 6px;
  width: 16px;
  height: 16px;
  background: var(--gold);
  border: 3px solid var(--ink);
  box-shadow: var(--shadow-sm);
}
.tl-card {
  border: 3px solid var(--ink);
  background: var(--cream-2);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
}
.tl-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.tl-name {
  font-weight: 800;
  font-size: 16px;
  color: var(--brown-dark);
}
.tl-time {
  font-size: 12px;
  color: #6B5338;
  margin-left: auto;
}
.tl-card p {
  font-size: 15px;
  line-height: 1.85;
  color: #2C1E0E;
}

/* ============ 书签主题下载条 ============ */
.download-bar {
  padding: 80px 0;
  background: var(--cream-2);
  border-bottom: var(--border);
}

.bookmark-cta {
  position: relative;
  display: grid;
  grid-template-columns: 40px 1fr;
  background: var(--white);
  border: var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.cta-spine {
  background: var(--gold);
  border-right: 3px solid var(--ink);
}
.cta-body {
  padding: 44px 48px;
  text-align: center;
}
.cta-title {
  font-size: 30px;
  font-weight: 900;
  margin-bottom: 12px;
  letter-spacing: 2px;
}
.cta-desc {
  font-size: 15px;
  color: #4A351C;
  margin-bottom: 28px;
}
.cta-btn-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.cta-hint {
  font-size: 13px;
  color: #6B5338;
  font-weight: 600;
}

/* ============ 页脚 ============ */
.site-footer {
  background: var(--ink);
  color: #E8D089;
  padding: 60px 0 28px;
}
.site-footer a {
  color: #E8D089;
  text-decoration: none;
}
.site-footer a:hover { color: var(--gold); }
.site-footer h4 {
  color: var(--gold);
  font-size: 15px;
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 2px solid #3A2C1C;
}
.foot-brand p {
  font-size: 14px;
  line-height: 1.8;
  color: #C4A860;
}
.foot-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.foot-logo img { border: 2px solid var(--gold); }
.foot-logo span {
  font-size: 18px;
  font-weight: 800;
  color: var(--gold);
}
.foot-col ul { list-style: none; }
.foot-col li {
  margin-bottom: 8px;
  font-size: 14px;
}

.foot-bottom {
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
  color: #8B7542;
}
.foot-bottom p { margin-bottom: 6px; }

/* ============ 返回顶部 ============ */
#back-top {
  position: fixed;
  left: 20px;
  bottom: 100px;
  width: 44px;
  height: 44px;
  background: var(--gold);
  border: 3px solid var(--ink);
  color: var(--ink);
  text-decoration: none;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 900;
  box-shadow: var(--shadow-sm);
  z-index: 99980;
}
#back-top.show { display: flex; }

/* ============ 入场动画 ============ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .5s ease, transform .5s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ 移动端 ============ */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .bookshelf { max-width: 400px; margin: 0 auto; }
  .showcase-wrap { grid-template-columns: 1fr; }
  .thumbs-col { flex-direction: row; overflow-x: auto; padding-bottom: 8px; }
  .thumb-btn { flex: 0 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .quadrant { grid-template-columns: 1fr; }
  .quad { border-right: none !important; }
  .section-title { font-size: 26px; }
  .hero-h1 { font-size: 40px; }
  .site-nav { display: none; }
}

@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .hero { padding: 40px 0 60px; }
  .hero-h1 { font-size: 34px; letter-spacing: 3px; }
  .hero-slogan { font-size: 18px; }
  .hero-stats { flex-wrap: wrap; }
  .stat { flex: 1 1 30%; }
  .hero-actions { flex-wrap: wrap; }
  .btn-main, .btn-ghost { width: 100%; }
  .bookmark { grid-template-columns: 60px 1fr; padding: 22px 18px; }
  .bm-num { font-size: 36px; }
  .cta-body { padding: 32px 20px; }
  .cta-title { font-size: 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .phone-frame { width: 220px; }
  .faq-item { padding: 18px 20px; }
  .tl-card { padding: 16px 18px; }
  .tl-time { margin-left: 0; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
