/* MX动漫 rbbjghq.cn - 动漫放映机主题
   四色：黑 + 白 + #E60012(鲜红) + #FFB400(金黄)
   硬性：无圆角 / 无柔和阴影 / 无渐变 / 硬实线 */

:root {
  --c-black: #1a1a1a;
  --c-white: #ffffff;
  --c-red: #E60012;
  --c-gold: #FFB400;
  --c-gray: #666;
  --c-light: #f4f2ee;
  --c-line: #1a1a1a;
  --shadow-red: 4px 4px 0 var(--c-red);
  --shadow-black: 4px 4px 0 var(--c-black);
  --shadow-gold: 4px 4px 0 var(--c-gold);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  background: var(--c-white);
  color: var(--c-black);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

a { color: inherit; text-decoration: none; }

/* ========== 顶栏 ========== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--c-white);
  border-bottom: 3px solid var(--c-black);
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 64px;
}

.topbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
}

.topbar-logo img {
  border: 2px solid var(--c-black);
  box-shadow: var(--shadow-red);
}

.topbar-brand { letter-spacing: 1px; }

.topbar-nav {
  display: flex;
  gap: 24px;
  flex: 1;
}

.topbar-nav a {
  font-size: 14px;
  font-weight: 600;
  padding: 6px 10px;
  border: 2px solid transparent;
  transition: none;
}

.topbar-nav a:hover {
  border: 2px solid var(--c-black);
  background: var(--c-gold);
}

.topbar-download {
  background: var(--c-red);
  color: var(--c-white) !important;
  border: 2px solid var(--c-black);
  padding: 10px 20px;
  font-weight: 700;
  font-size: 14px;
  box-shadow: var(--shadow-black);
}

.topbar-download:hover {
  background: var(--c-gold);
  color: var(--c-black) !important;
}

/* ========== 英雄区 ========== */
.hero {
  background: var(--c-light);
  border-bottom: 3px solid var(--c-black);
  padding: 60px 0 70px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-text { padding-right: 10px; }

.hero-badge {
  display: inline-block;
  background: var(--c-gold);
  border: 2px solid var(--c-black);
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  box-shadow: var(--shadow-black);
  margin-bottom: 20px;
}

.hero-text h1 {
  font-size: 72px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 4px;
  border-bottom: 4px solid var(--c-red);
  padding-bottom: 8px;
  margin-bottom: 14px;
}

.hero-subtitle {
  font-size: 20px;
  font-weight: 700;
  color: var(--c-red);
  margin-bottom: 16px;
}

.hero-desc {
  font-size: 15px;
  color: var(--c-gray);
  margin-bottom: 20px;
  max-width: 540px;
}

.hero-points {
  list-style: none;
  margin-bottom: 28px;
}

.hero-points li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  margin-bottom: 8px;
}

.hero-points li::before {
  content: "▶";
  position: absolute;
  left: 0;
  color: var(--c-red);
  font-size: 10px;
}

.btn-primary {
  display: inline-block;
  background: var(--c-red);
  color: var(--c-white);
  border: 3px solid var(--c-black);
  padding: 14px 32px;
  font-weight: 800;
  font-size: 16px;
  box-shadow: var(--shadow-black);
  cursor: pointer;
  transition: transform .08s ease;
}

.btn-primary:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--c-black); }
.btn-primary:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--c-black); }

.hero-meta {
  margin-top: 16px;
  font-size: 12px;
  color: var(--c-gray);
  letter-spacing: 1px;
}

/* 放映机 */
.projector {
  position: relative;
  display: flex;
  justify-content: center;
}

.projector-body {
  position: relative;
  width: 420px;
  padding: 32px 20px 40px;
  background: var(--c-black);
  border: 4px solid var(--c-black);
  box-shadow: var(--shadow-red);
}

.projector-reel {
  position: absolute;
  top: -22px;
  width: 70px;
  height: 70px;
  border: 4px solid var(--c-black);
  border-radius: 50%;
  background: var(--c-gold);
}

.projector-reel::before, .projector-reel::after {
  content: "";
  position: absolute;
  background: var(--c-black);
}

.projector-reel::before {
  top: 50%; left: 0; right: 0; height: 6px;
  transform: translateY(-50%);
}

.projector-reel::after {
  left: 50%; top: 0; bottom: 0; width: 6px;
  transform: translateX(-50%);
}

.projector-reel-left { left: 30px; }
.projector-reel-right { right: 30px; }

.projector-window {
  position: relative;
  border: 4px solid var(--c-white);
  background: var(--c-white);
}

.film-strip {
  height: 24px;
  background: var(--c-black);
  background-image:
    repeating-linear-gradient(90deg, transparent 0 10px, var(--c-white) 10px 14px);
}

.film-window {
  aspect-ratio: 9/16;
  background: var(--c-light);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.film-window img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: 100%;
}

.projector-lens {
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 40px;
  background: var(--c-red);
  border: 4px solid var(--c-black);
  border-radius: 40px 40px 6px 6px;
}

.projector-base {
  position: absolute;
  bottom: -58px;
  left: 50%;
  transform: translateX(-50%);
  width: 160px;
  height: 16px;
  background: var(--c-black);
  border: 2px solid var(--c-black);
}

.projector-floating {
  position: absolute;
  background: var(--c-white);
  border: 2px solid var(--c-black);
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: var(--shadow-black);
}

.projector-floating-a { top: 40px; left: 0; transform: rotate(-6deg); }
.projector-floating-b { bottom: 40px; right: -10px; transform: rotate(5deg); background: var(--c-gold); }

/* ========== 通用 section head ========== */
.section-head {
  text-align: center;
  margin-bottom: 48px;
}

.section-tag {
  display: inline-block;
  background: var(--c-black);
  color: var(--c-gold);
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 3px;
  margin-bottom: 16px;
}

.section-head h2 {
  font-size: 34px;
  font-weight: 900;
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.section-head p {
  font-size: 14px;
  color: var(--c-gray);
  max-width: 540px;
  margin: 0 auto;
}

/* ========== 核心特色：阶梯 ========== */
.features {
  padding: 80px 0;
  background: var(--c-white);
  border-bottom: 3px solid var(--c-black);
}

.stairs {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 20px 0 40px;
  overflow: hidden;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step-card {
  width: 180px;
  height: 240px;
  border: 3px solid var(--c-black);
  background: var(--c-white);
  padding: 16px 14px;
  box-shadow: var(--shadow-red);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.step-num {
  font-size: 36px;
  font-weight: 900;
  color: var(--c-red);
  line-height: 1;
  border-bottom: 2px solid var(--c-black);
  padding-bottom: 6px;
}

.step-card h3 {
  font-size: 15px;
  font-weight: 800;
}

.step-card p {
  font-size: 12px;
  color: var(--c-gray);
  line-height: 1.6;
}

.step-riser {
  width: 100%;
  height: 24px;
  background: var(--c-black);
  margin-top: 12px;
}

.step-1 { transform: translateY(0); }
.step-1 .step-card { background: var(--c-light); }
.step-2 { transform: translateY(-30px); }
.step-2 .step-card { background: var(--c-gold); }
.step-3 { transform: translateY(-60px); }
.step-3 .step-card { background: var(--c-light); }
.step-4 { transform: translateY(-90px); }
.step-4 .step-card { background: var(--c-gold); }
.step-5 { transform: translateY(-120px); }
.step-5 .step-card { background: var(--c-red); color: var(--c-white); }
.step-5 .step-num { color: var(--c-white); border-bottom-color: var(--c-white); }
.step-5 .step-card p { color: #f0f0f0; }

.step-1 .step-riser { background: var(--c-black); }
.step-2 .step-riser { background: var(--c-red); }
.step-3 .step-riser { background: var(--c-black); }
.step-4 .step-riser { background: var(--c-red); }
.step-5 .step-riser { display: none; }

/* ========== 阶梯式漫画架 ========== */
.gallery {
  padding: 80px 0;
  background: var(--c-light);
  border-bottom: 3px solid var(--c-black);
}

.shelf-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: flex-end;
  padding: 20px 10px 0;
}

.shelf-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transform: translateY(calc(-1 * var(--shelf-offset)));
}

.shelf-frame {
  width: 160px;
  aspect-ratio: 9/16;
  border: 3px solid var(--c-black);
  background: var(--c-white);
  padding: 4px;
  box-shadow: var(--shadow-black);
  overflow: hidden;
}

.shelf-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shelf-label {
  font-size: 12px;
  font-weight: 700;
  background: var(--c-red);
  color: var(--c-white);
  padding: 3px 12px;
  border: 2px solid var(--c-black);
  letter-spacing: 1px;
  box-shadow: var(--shadow-black);
}

/* ========== 时间轴便签 ========== */
.timeline-guide {
  padding: 80px 0;
  background: var(--c-white);
  border-bottom: 3px solid var(--c-black);
}

.timeaxis {
  position: relative;
  padding: 20px 0;
}

.axis-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: repeating-linear-gradient(
    to bottom,
    var(--c-black) 0 20px,
    var(--c-gold) 20px 40px
  );
  transform: translateX(-50%);
}

.note-card {
  position: relative;
  display: flex;
  width: 46%;
  margin-bottom: 40px;
}

.note-left { margin-right: auto; justify-content: flex-end; text-align: right; }
.note-right { margin-left: auto; justify-content: flex-start; text-align: left; }

.note-sticky {
  position: relative;
  width: 100%;
  padding: 20px 22px;
  background: var(--note-color);
  border: 3px solid var(--c-black);
  box-shadow: var(--shadow-black);
  color: var(--c-white);
  transform: rotate(-2deg);
}

.note-right .note-sticky { transform: rotate(2deg); }

.note-sticky::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  width: 36px;
  height: 20px;
  background: rgba(0,0,0,.25);
  transform: translateX(-50%) rotate(-4deg);
  border: 2px solid var(--c-black);
}

.note-num {
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 8px;
  border-bottom: 2px solid var(--c-white);
  padding-bottom: 4px;
  display: inline-block;
}

.note-sticky h3 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 8px;
}

.note-sticky p {
  font-size: 13px;
  line-height: 1.7;
  opacity: .95;
}

/* ========== FAQ：折叠卡片 ========== */
.faq {
  padding: 80px 0;
  background: var(--c-light);
  border-bottom: 3px solid var(--c-black);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.faq-card {
  background: var(--c-white);
  border: 3px solid var(--c-black);
  box-shadow: var(--shadow-red);
  padding: 0;
  display: block;
}

.faq-card summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 700;
  font-size: 15px;
  list-style: none;
  background: var(--c-white);
}

.faq-card summary::-webkit-details-marker { display: none; }

.faq-plus {
  font-size: 24px;
  font-weight: 400;
  color: var(--c-red);
  line-height: 1;
  border: 2px solid var(--c-black);
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--c-gold);
}

.faq-card[open] summary .faq-plus {
  transform: rotate(45deg);
  background: var(--c-red);
  color: var(--c-white);
}

.faq-card p {
  padding: 0 22px 22px;
  font-size: 14px;
  color: var(--c-gray);
  border-top: 2px dashed var(--c-black);
  padding-top: 14px;
  line-height: 1.9;
}

.faq-card:nth-child(odd) summary { background: var(--c-gold); }
.faq-card:nth-child(even) summary { background: var(--c-light); }

/* ========== 漫画分镜评论 ========== */
.reviews {
  padding: 80px 0;
  background: var(--c-white);
  border-bottom: 3px solid var(--c-black);
}

.manga-pages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.manga-cell {
  border: 4px solid var(--c-black);
  background: var(--c-white);
  box-shadow: var(--shadow-gold);
  position: relative;
  padding: 16px;
}

.cell-frame {
  position: relative;
  padding: 14px;
  border: 2px solid var(--c-black);
  background: var(--c-light);
  min-height: 240px;
}

.cell-hatch {
  position: absolute;
  top: 6px; left: 6px; right: 6px; bottom: 6px;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    45deg,
    transparent 0 6px,
    rgba(230,0,18,.1) 6px 7px
  );
}

.cell-hatch-alt {
  background-image: repeating-linear-gradient(
    -45deg,
    transparent 0 6px,
    rgba(0,0,0,.08) 6px 7px
  );
}

.bubble {
  position: relative;
  background: var(--c-white);
  border: 2px solid var(--c-black);
  padding: 14px 16px 16px;
  z-index: 2;
}

.bubble::after {
  content: "";
  position: absolute;
  bottom: -14px;
  left: 28px;
  width: 0; height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 14px solid var(--c-black);
}

.bubble::before {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 30px;
  width: 0; height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 12px solid var(--c-white);
  z-index: 3;
}

.bubble p {
  font-size: 13px;
  line-height: 1.8;
  color: var(--c-black);
}

.cell-meta {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 2px solid var(--c-black);
  padding-top: 10px;
  position: relative;
  z-index: 2;
}

.cell-meta strong {
  font-size: 13px;
  color: var(--c-red);
}

.cell-meta span {
  font-size: 11px;
  color: var(--c-gray);
}

/* ========== 胶片下载条 ========== */
.download-strip {
  padding: 60px 0;
  background: var(--c-black);
  border-bottom: 3px solid var(--c-black);
}

.film-cta {
  display: flex;
  align-items: stretch;
  border: 4px solid var(--c-white);
  background: var(--c-white);
  box-shadow: 6px 6px 0 var(--c-red);
  overflow: hidden;
}

.film-left, .film-right {
  width: 52px;
  background: var(--c-black);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  padding: 20px 0;
}

.film-right { align-items: flex-end; }

.film-perforation {
  width: 34px;
  height: 18px;
  background: var(--c-white);
  border-radius: 2px;
}

.film-left .film-perforation { margin-left: 9px; }
.film-right .film-perforation { margin-right: 9px; }

.film-center {
  flex: 1;
  background: var(--c-white);
  padding: 28px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.film-frame-box {
  display: flex;
  align-items: center;
  gap: 18px;
}

.film-frame-box img {
  border: 3px solid var(--c-black);
  box-shadow: var(--shadow-red);
}

.film-text h3 {
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 6px;
  letter-spacing: 2px;
}

.film-text p {
  font-size: 13px;
  color: var(--c-gray);
}

.btn-film {
  padding: 16px 36px;
  font-size: 16px;
}

/* ========== 页脚 ========== */
.site-footer {
  background: var(--c-black);
  color: var(--c-white);
  padding: 48px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 2px solid var(--c-red);
}

.footer-brand img {
  border: 2px solid var(--c-gold);
  margin-bottom: 10px;
}

.footer-brand h4 {
  font-size: 18px;
  margin-bottom: 6px;
}

.footer-brand p {
  font-size: 13px;
  color: #aaa;
}

.footer-col h5 {
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--c-gold);
  letter-spacing: 1px;
  border-bottom: 2px solid var(--c-red);
  padding-bottom: 6px;
}

.footer-col ul { list-style: none; }

.footer-col ul li {
  font-size: 13px;
  margin-bottom: 8px;
}

.footer-col ul li a { color: #ccc; }
.footer-col ul li a:hover { color: var(--c-gold); text-decoration: underline; }

.footer-bottom {
  padding: 18px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 12px;
  color: #888;
  letter-spacing: 1px;
}

/* ========== 返回顶部 ========== */
.back-top {
  position: fixed;
  right: 24px;
  bottom: 150px;
  width: 44px;
  height: 44px;
  background: var(--c-gold);
  color: var(--c-black);
  border: 3px solid var(--c-black);
  box-shadow: var(--shadow-black);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99980;
}

.back-top.show { display: flex; }
.back-top:hover { background: var(--c-red); color: var(--c-white); }

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .projector { margin-top: 20px; }
  .projector-body { width: 360px; }
  .stairs { flex-wrap: wrap; gap: 16px; }
  .step-card { width: 160px; height: 220px; }
  .shelf-frame { width: 140px; }
  .manga-pages { grid-template-columns: repeat(2, 1fr); }
  .film-center { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 768px) {
  .topbar-inner { height: 56px; gap: 12px; }
  .topbar-nav { display: none; }
  .hero { padding: 40px 0 50px; }
  .hero-text h1 { font-size: 48px; }
  .hero-subtitle { font-size: 16px; }
  .projector-body { width: 300px; padding: 24px 14px 30px; }
  .projector-reel { width: 54px; height: 54px; top: -16px; }
  .projector-lens { bottom: -22px; width: 60px; height: 32px; }
  .projector-base { bottom: -46px; width: 120px; }

  .stairs { gap: 12px; padding-bottom: 20px; }
  .step-card { width: 130px; height: 200px; padding: 12px 10px; }
  .step-num { font-size: 28px; }
  .step-card h3 { font-size: 13px; }
  .step-card p { font-size: 11px; }
  .step-1 { transform: translateY(0); }
  .step-2 { transform: translateY(-18px); }
  .step-3 { transform: translateY(-36px); }
  .step-4 { transform: translateY(-54px); }
  .step-5 { transform: translateY(-72px); }

  .shelf-row {
    overflow-x: auto;
    justify-content: flex-start;
    padding: 10px 10px 20px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .shelf-card { flex: 0 0 auto; scroll-snap-align: center; transform: none !important; }
  .shelf-frame { width: 160px; max-width: 280px; }

  .features, .gallery, .timeline-guide, .faq, .reviews { padding: 50px 0; }
  .section-head h2 { font-size: 26px; }

  .axis-line { left: 20px; }
  .note-card { width: calc(100% - 40px); margin-left: 40px !important; margin-right: 0 !important; text-align: left; justify-content: flex-start; }
  .note-sticky, .note-right .note-sticky { transform: rotate(-2deg); }

  .faq-grid { grid-template-columns: 1fr; gap: 16px; }
  .faq-card summary { padding: 14px 16px; font-size: 14px; }

  .manga-pages { grid-template-columns: 1fr; gap: 20px; }

  .footer-inner { grid-template-columns: 1fr 1fr; gap: 24px; }
}

@media (max-width: 480px) {
  .hero-text h1 { font-size: 38px; }
  .step-card { width: 110px; height: 190px; }
  .step-num { font-size: 22px; }
  .step-card h3 { font-size: 12px; }
  .step-card p { font-size: 10px; }
  .shelf-frame { width: 150px; max-width: 280px; aspect-ratio: 9/16; }
  .footer-inner { grid-template-columns: 1fr; }
  .film-cta { flex-direction: column; }
  .film-left, .film-right { flex-direction: row; width: auto; height: 40px; padding: 0; gap: 12px; justify-content: center; }
  .film-right { display: none; }
  .film-cta .film-right { display: none; }
}
