/* ================================
   漫蛙3 manwa3 dogejg.cn 主样式
   四色：#111黑  #FFF白  #7DC020(logo绿)  #FF5A1F(对比橙红)
   硬实线 · 无圆角 · 无渐变
================================= */

:root {
  --c-bg: #ffffff;
  --c-ink: #111111;
  --c-mid: #eaeaea;
  --c-green: #7DC020;
  --c-green-dark: #5E9E14;
  --c-orange: #FF5A1F;
  --shadow-dir: 4px 4px 0 #111;
  --shadow-dir-l: -4px 4px 0 #111;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font: 14px/1.7 "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--c-ink); text-decoration: none; }
h1, h2, h3, b, strong { font-weight: 700; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.fade { opacity: 0; transform: translateY(20px); transition: opacity .55s ease, transform .55s ease; }
.fade.in { opacity: 1; transform: none; }

/* ===== 顶栏 ===== */
.mast {
  position: sticky; top: 0; z-index: 50;
  background: var(--c-bg);
  border-bottom: 3px solid var(--c-ink);
}
.mast-bar {
  display: flex; align-items: center; gap: 16px;
  height: 64px;
}
.mast-brand {
  display: inline-flex; align-items: center; gap: 10px;
  border-right: 2px solid var(--c-ink);
  padding-right: 18px;
}
.mast-brand img { width: 34px; height: 34px; object-fit: contain; }
.mast-brand b { font-size: 17px; letter-spacing: 1px; }
.mast-links {
  display: flex; gap: 22px;
  flex: 1;
}
.mast-links a {
  font-size: 14px; padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.mast-links a:hover { border-bottom-color: var(--c-green); color: var(--c-green-dark); }
.mast-tap {
  display: inline-flex; align-items: center; justify-content: center;
  height: 40px; padding: 0 18px;
  background: var(--c-green); color: #fff; font-weight: 700;
  border: 3px solid var(--c-ink);
  box-shadow: var(--shadow-dir);
  transition: transform .08s linear, box-shadow .08s linear;
}
.mast-tap:hover { transform: translate(2px,2px); box-shadow: none; }
.mast-burger {
  display: none; background: none; border: none; padding: 6px; cursor: pointer;
}
.mast-burger span { display: block; width: 22px; height: 3px; background: var(--c-ink); margin: 3px 0; }

/* ===== 英雄区：海报墙 ===== */
.hero { padding: 56px 0 72px; }
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
}
.eyebrow {
  display: inline-block; padding: 5px 12px;
  background: var(--c-ink); color: #fff; font-size: 12px; letter-spacing: 1px;
  margin-bottom: 16px;
}
.hero-text h1 {
  font-size: 56px; line-height: 1; margin: 0 0 20px; letter-spacing: 2px;
  border-bottom: 4px solid var(--c-green); padding-bottom: 16px;
  display: inline-block;
}
.lead { font-size: 15px; line-height: 1.85; margin: 0 0 20px; }
.tags { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
.tag-a, .tag-b, .tag-c {
  display: inline-block; padding: 5px 12px; font-size: 12px; font-weight: 700;
  border: 2px solid var(--c-ink); background: #fff;
}
.tag-b { background: var(--c-green); color: #fff; border-color: var(--c-green-dark); }
.tag-c { background: var(--c-orange); color: #fff; border-color: var(--c-ink); }
.action { display: flex; gap: 14px; align-items: center; margin-bottom: 30px; }
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 28px;
  background: var(--c-green); color: #fff; font-size: 15px; font-weight: 700;
  border: 3px solid var(--c-ink);
  box-shadow: var(--shadow-dir);
}
.btn-primary:hover { transform: translate(2px,2px); box-shadow: none; }
.btn-ghost { padding: 10px 0; font-size: 14px; font-weight: 700; border-bottom: 2px solid var(--c-ink); }
.metrics { display: grid; grid-template-columns: repeat(3,1fr); gap: 0; border-top: 2px solid var(--c-ink); border-bottom: 2px solid var(--c-ink); }
.metrics > div { padding: 16px 10px; text-align: center; border-right: 2px solid var(--c-ink); }
.metrics > div:last-child { border-right: none; }
.metrics b { display: block; font-size: 24px; color: var(--c-green-dark); }
.metrics span { display: block; font-size: 12px; color: #555; margin-top: 4px; }

/* 右侧海报墙 */
.hero-visual { position: relative; }
.poster-wall {
  position: relative;
  height: 480px;
  background: #f5f5f5;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16'><path d='M0 16L16 0' stroke='%23e8e8e8' stroke-width='1'/></svg>");
  border: 3px solid var(--c-ink);
  padding: 30px 24px 24px;
  box-shadow: var(--shadow-dir);
}
.pw-line {
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--c-ink);
}
.pw {
  position: absolute; top: 36px;
  width: 150px; height: 240px;
  border: 3px solid var(--c-ink);
  background: #fff;
  padding: 10px 10px 34px;
  transition: transform .2s;
}
.pw img { width: 100%; height: 170px; object-fit: cover; border: 2px solid var(--c-ink); }
.pw-caption {
  position: absolute; left: 10px; right: 10px; bottom: 8px; text-align: center;
  font-size: 12px; font-weight: 700; color: var(--c-ink);
}
.pw-tip {
  position: absolute; top: -12px; left: 50%; width: 20px; height: 20px;
  background: var(--c-orange); border: 2px solid var(--c-ink);
  transform: translateX(-50%) rotate(45deg);
}
.pw-1 { left: 30px; transform: rotate(-6deg); box-shadow: 4px 4px 0 var(--c-green-dark); }
.pw-2 { left: 50%; transform: translateX(-50%) rotate(3deg); box-shadow: -4px 4px 0 var(--c-green-dark); }
.pw-3 { right: 30px; transform: rotate(7deg); box-shadow: 4px 4px 0 var(--c-green-dark); }
.pw:hover { transform: rotate(0deg) scale(1.05); z-index: 10; }
.pw-1:hover { left: 30px; }
.pw-2:hover { left: 50%; transform: translateX(-50%) scale(1.05); }
.pw-3:hover { right: 30px; }
.pw-tape { position: absolute; width: 70px; height: 20px; background: rgba(255,90,31,.55); border: 1px solid var(--c-ink); }
.pw-tape-tl { top: 14px; left: 16px; transform: rotate(-14deg); }
.pw-tape-tr { top: 14px; right: 16px; transform: rotate(10deg); }
.pw-tape-bl { bottom: 10px; left: 14px; transform: rotate(8deg); }

/* ===== 界面展示：横向手机导轨 ===== */
.rail { padding: 56px 0 60px; background: #fafafa; border-top: 3px solid var(--c-ink); border-bottom: 3px solid var(--c-ink); }
.rail-head { text-align: center; margin-bottom: 32px; }
.rail-head h2 { font-size: 28px; margin: 8px 0; }
.rail-head p { color: #555; margin: 0; }
.rail-eyebrow { display: inline-block; padding: 4px 10px; background: var(--c-green); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: 1px; }

.rail-track-wrap { position: relative; overflow: hidden; }
.rail-rail {
  position: absolute; left: 0; right: 0; bottom: 80px;
  height: 10px; background: var(--c-ink);
}
.rail-rail::before, .rail-rail::after {
  content: ""; position: absolute; top: -10px; width: 18px; height: 18px;
  background: var(--c-ink);
}
.rail-rail::before { left: 12px; }
.rail-rail::after { right: 12px; }
.rail-track {
  display: flex; gap: 36px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 20px 40px 100px;
  -ms-overflow-style: none; scrollbar-width: none;
}
.rail-track::-webkit-scrollbar { display: none; }
.rl-cell { flex: 0 0 auto; scroll-snap-align: center; text-align: center; }
.rl-phone {
  width: 220px; height: 420px;
  border: 4px solid var(--c-ink);
  background: #fff;
  padding: 28px 12px 12px;
  box-shadow: var(--shadow-dir);
  position: relative;
}
.rl-notch {
  position: absolute; top: 4px; left: 50%; transform: translateX(-50%);
  width: 60px; height: 8px; background: var(--c-ink);
}
.rl-phone img { width: 100%; height: calc(100%); object-fit: contain; object-position: center; display: block; background: #fff; }
.rl-cap { margin-top: 18px; display: flex; flex-direction: column; align-items: center; }
.rl-cap b { font-size: 15px; }
.rl-cap span { font-size: 12px; color: #666; margin-top: 2px; }
.rail-dots { display: flex; gap: 8px; justify-content: center; padding: 14px 0 0; }
.rail-dots button {
  width: 12px; height: 12px; padding: 0; border: 2px solid var(--c-ink);
  background: #fff; cursor: pointer;
}
.rail-dots button.active { background: var(--c-green); }

/* ===== 核心特色：Z型 ===== */
.zigzag { padding: 64px 0; position: relative; overflow: hidden; }
.zigzag-head { text-align: center; margin-bottom: 44px; }
.zigzag-head h2 { font-size: 28px; margin: 8px 0; }
.zigzag-head p { color: #555; margin: 0; }
.zigzag-eyebrow { display: inline-block; padding: 4px 10px; background: var(--c-ink); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: 1px; }

.zz-path { position: absolute; inset: 60px 20px; pointer-events: none; opacity: .25; }
.zz-path svg { width: 100%; height: 100%; }

.zz-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 32px; }
.zz-card {
  padding: 26px 24px;
  border: 3px solid var(--c-ink);
  background: #fff;
  position: relative;
}
.zz-card h3 { font-size: 18px; margin: 10px 0 8px; }
.zz-card p { font-size: 14px; margin: 0; line-height: 1.75; }
.zz-no {
  position: absolute; top: -18px; left: 20px;
  padding: 4px 12px;
  background: var(--c-green); color: #fff; font-size: 12px; font-weight: 700;
  border: 3px solid var(--c-ink);
}
.zz-a { transform: translate(0, 14px); box-shadow: 4px 4px 0 var(--c-orange); }
.zz-b { transform: translate(24px, -10px); box-shadow: -4px 4px 0 var(--c-orange); background: #fff8f2; }
.zz-c { transform: translate(-18px, 8px); box-shadow: 4px 4px 0 var(--c-green); }
.zz-d { transform: translate(16px, -14px); box-shadow: -4px 4px 0 var(--c-green); background: #f2fbec; }
.zz-e { transform: translate(0, 10px); box-shadow: 4px 4px 0 var(--c-orange); }
.zz-f { transform: translate(20px, -8px); box-shadow: -4px 4px 0 var(--c-orange); background: #fff8f2; }

/* ===== 使用指南：便签 ===== */
.notes { padding: 64px 0; background: #f4f4f4; border-top: 3px solid var(--c-ink); border-bottom: 3px solid var(--c-ink); }
.notes-head { text-align: center; margin-bottom: 44px; }
.notes-head h2 { font-size: 28px; margin: 8px 0; }
.notes-head p { color: #555; margin: 0; }
.notes-eyebrow { display: inline-block; padding: 4px 10px; background: var(--c-orange); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: 1px; }

.notes-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.nt {
  position: relative;
  padding: 36px 22px 22px;
  border: 2px solid var(--c-ink);
  border-top-width: 10px;
  box-shadow: 4px 4px 0 rgba(0,0,0,.15);
}
.nt-1 { background: #FFF7A0; border-top-color: #E6C300; transform: rotate(-1.2deg); }
.nt-2 { background: #FFD3B0; border-top-color: var(--c-orange); transform: rotate(1deg); }
.nt-3 { background: #BFE88A; border-top-color: var(--c-green-dark); transform: rotate(-.6deg); }
.nt-4 { background: #C7E8F5; border-top-color: #2A8FB2; transform: rotate(.8deg); }
.nt:hover { transform: rotate(0deg) translateY(-4px); box-shadow: 6px 6px 0 rgba(0,0,0,.2); }
.nt-pin {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  width: 22px; height: 22px; border-radius: 0;
  background: var(--c-orange); border: 2px solid var(--c-ink);
}
.nt-no { font-size: 11px; font-weight: 700; letter-spacing: 2px; color: #333; }
.nt h3 { font-size: 18px; margin: 8px 0 10px; }
.nt p { font-size: 13px; margin: 0; line-height: 1.75; }

/* ===== FAQ：双列折叠 ===== */
.faq { padding: 64px 0; }
.faq-head { text-align: center; margin-bottom: 40px; }
.faq-head h2 { font-size: 28px; margin: 8px 0; }
.faq-head p { color: #555; margin: 0; }
.faq-eyebrow { display: inline-block; padding: 4px 10px; background: var(--c-green); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: 1px; }

.faq-two { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.fq-row { border: 2px solid var(--c-ink); background: #fff; margin-bottom: 14px; }
.fq-row:last-child { margin-bottom: 0; }
.fq-row > summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 20px;
  font-weight: 700; font-size: 15px;
  border-bottom: 2px solid transparent;
  background: #fff;
}
.fq-row > summary::-webkit-details-marker { display: none; }
.fq-row > summary:hover { background: #f4f4f4; }
.fq-row[open] > summary { border-bottom-color: var(--c-ink); background: var(--c-green); color: #fff; }
.fq-row > summary i { font-style: normal; transition: transform .18s; flex: none; }
.fq-row[open] > summary i { transform: rotate(180deg); }
.fq-row p { margin: 0; padding: 16px 20px; font-size: 14px; line-height: 1.85; }

/* ===== 评论：气泡评论串 ===== */
.bubble { padding: 64px 0; background: #f4f4f4; border-top: 3px solid var(--c-ink); border-bottom: 3px solid var(--c-ink); }
.bubble-head { text-align: center; margin-bottom: 36px; }
.bubble-head h2 { font-size: 28px; margin: 8px 0; }
.bubble-head p { color: #555; margin: 0; }
.bubble-eyebrow { display: inline-block; padding: 4px 10px; background: var(--c-ink); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: 1px; }

.bb-chain { max-width: 820px; margin: 0 auto; }
.bb { margin-bottom: 18px; display: flex; }
.bb-left { justify-content: flex-start; }
.bb-right { justify-content: flex-end; }
.bb-card {
  max-width: 70%;
  border: 2px solid var(--c-ink);
  background: #fff;
  padding: 14px 16px;
  position: relative;
}
.bb-right .bb-card { background: var(--c-green); color: #fff; }
.bb-right .bb-card header { color: #fff; }
.bb-card header {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; margin-bottom: 8px; flex-wrap: wrap;
}
.bb-card header time { font-size: 11px; color: #777; margin-left: auto; }
.bb-right .bb-card header time { color: rgba(255,255,255,.75); }
.bb-star { color: #FFB400; font-size: 13px; letter-spacing: 1px; }
.bb-card p { margin: 0; font-size: 13px; line-height: 1.75; }
/* 气泡尖角 */
.bb-left .bb-card::before {
  content: ""; position: absolute; top: 14px; left: -10px;
  width: 0; height: 0; border-top: 8px solid transparent; border-bottom: 8px solid transparent;
  border-right: 10px solid var(--c-ink);
}
.bb-left .bb-card::after {
  content: ""; position: absolute; top: 16px; left: -7px;
  width: 0; height: 0; border-top: 6px solid transparent; border-bottom: 6px solid transparent;
  border-right: 7px solid #fff;
}
.bb-right .bb-card::before {
  content: ""; position: absolute; top: 14px; right: -10px;
  width: 0; height: 0; border-top: 8px solid transparent; border-bottom: 8px solid transparent;
  border-left: 10px solid var(--c-ink);
}
.bb-right .bb-card::after {
  content: ""; position: absolute; top: 16px; right: -7px;
  width: 0; height: 0; border-top: 6px solid transparent; border-bottom: 6px solid transparent;
  border-left: 7px solid var(--c-green);
}

/* ===== 下载条：海报主题 ===== */
.dl { padding: 56px 0; }
.dl-poster {
  display: flex; gap: 40px; align-items: center;
  background: #fff8f2;
  border: 3px solid var(--c-ink);
  padding: 36px;
  box-shadow: var(--shadow-dir);
  position: relative;
}
.dl-poster-art { position: relative; width: 200px; flex: none; }
.dl-poster-frame {
  border: 3px solid var(--c-ink);
  background: #fff;
  padding: 10px 10px 44px;
  box-shadow: 4px 4px 0 var(--c-green-dark);
  transform: rotate(-4deg);
  position: relative;
}
.dl-poster-frame img { width: 100%; height: 240px; object-fit: cover; border: 2px solid var(--c-ink); }
.dl-poster-tag {
  position: absolute; left: 10px; right: 10px; bottom: 10px;
  text-align: center; font-size: 11px; font-weight: 700;
  background: var(--c-orange); color: #fff; padding: 4px 6px;
  border: 2px solid var(--c-ink);
}
.dl-poster-tape {
  position: absolute; top: 4px; left: 30%;
  width: 80px; height: 20px;
  background: rgba(125,192,32,.7);
  border: 2px solid var(--c-ink);
  transform: rotate(-8deg);
  z-index: 5;
}
.dl-poster-nail {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 14px; height: 14px; background: var(--c-ink);
}
.dl-text { flex: 1; }
.dl-title { display: block; font-size: 22px; margin-bottom: 10px; }
.dl-sub { font-size: 14px; margin: 0 0 20px; line-height: 1.85; }
.dl-btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 52px; padding: 0 32px;
  background: var(--c-green); color: #fff; font-size: 15px; font-weight: 700;
  border: 3px solid var(--c-ink);
  box-shadow: var(--shadow-dir);
}
.dl-btn:hover { transform: translate(2px,2px); box-shadow: none; }

/* ===== 页脚 ===== */
.foot { background: var(--c-ink); color: #fff; padding: 40px 0 28px; }
.foot-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; }
.foot-brand { display: flex; align-items: center; gap: 14px; }
.foot-brand img { width: 44px; height: 44px; object-fit: contain; background: #fff; padding: 3px; border: 2px solid var(--c-green); }
.foot-brand b { display: block; font-size: 15px; }
.foot-brand span { display: block; font-size: 12px; color: #aaa; margin-top: 2px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 12px 22px; align-content: start; }
.foot-nav a { color: #ddd; font-size: 13px; border-bottom: 1px solid transparent; }
.foot-nav a:hover { border-bottom-color: var(--c-green); color: #fff; }
.foot-legal { grid-column: 1 / -1; border-top: 2px solid #333; margin-top: 20px; padding-top: 20px; }
.foot-legal p { font-size: 12px; color: #999; margin: 6px 0; }

/* ===== 返回顶部 ===== */
.back-top {
  position: fixed; right: 24px; bottom: 32px; z-index: 80;
  width: 44px; height: 44px;
  background: var(--c-ink); color: #fff; border: 2px solid var(--c-green);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  opacity: 0; pointer-events: none;
  transition: opacity .2s;
}
.back-top.show { opacity: 1; pointer-events: auto; }

/* ===================== 响应式 ===================== */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 520px; margin: 10px auto 0; }
  .zz-grid { grid-template-columns: 1fr; gap: 20px; }
  .zz-card { transform: none !important; }
  .notes-grid { grid-template-columns: repeat(2,1fr); }
  .faq-two { grid-template-columns: 1fr; }
  .foot-inner { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .mast-links { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #fff; border-bottom: 3px solid var(--c-ink); flex-direction: column; padding: 14px 20px; gap: 14px; }
  .mast-links.open { display: flex; }
  .mast-burger { display: block; }
  .mast-tap { margin-left: auto; height: 36px; padding: 0 14px; font-size: 13px; }
  .hero { padding: 40px 0 48px; }
  .hero-text h1 { font-size: 40px; }
  .poster-wall { height: 380px; padding: 22px 14px 18px; }
  .pw { width: 110px; height: 190px; padding: 6px 6px 28px; }
  .pw img { height: 130px; }
  .rail-track { gap: 20px; padding: 16px 20px 90px; }
  .rl-phone { width: 170px; height: 330px; padding: 22px 8px 8px; }
  .notes-grid { grid-template-columns: 1fr; }
  .dl-poster { flex-direction: column; padding: 24px; text-align: center; }
  .dl-poster-art { margin: 0 auto; }
  .bb-card { max-width: 85%; }
  .mast-bar { gap: 10px; height: 56px; }
  .mast-brand b { font-size: 15px; }
}
@media (max-width: 420px) {
  .hero-text h1 { font-size: 32px; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .metrics > div:nth-child(3) { grid-column: 1 / -1; border-right: none; border-top: 2px solid var(--c-ink); }
  .pw { width: 90px; height: 160px; }
  .pw img { height: 100px; }
}
