/* ========== BOOK-VERSIONS PAGE ========== */
.book-page, .book-page *, .book-page *::before, .book-page *::after { margin:0; padding:0; box-sizing:border-box; }

.book-page {
  --bg: #0a0c14;
  --card-bg: #11141f;
  --gold: #d4a843;
}

.book-page {
  background: var(--bg);
  color: #e0e0e0;
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  padding: 56px 24px 80px;
  background-image:
    radial-gradient(ellipse at 50% 0%, rgba(50,60,100,0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 100%, rgba(30,40,60,0.1) 0%, transparent 50%);
}

.book-page .header {
  text-align: center;
  margin-bottom: 56px;
}
.book-page .header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.6rem;
  font-weight: 800;
  background: linear-gradient(135deg, #d4a843, #e8c970, #d4a843, #c49030);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.book-page .header .sub {
  font-size: 0.92rem;
  opacity: 0.45;
  font-weight: 400;
}

.book-page .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 56px 36px;
  max-width: 1800px;
  margin: 0 auto;
}

.book-page .card {
  background: var(--card-bg);
  border-radius: 24px;
  padding: 52px 28px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid rgba(255,255,255,0.06);
  transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.book-page .card::before {
  content:'';
  position: absolute;
  inset:0;
  background: radial-gradient(ellipse at 50% 0%, rgba(212,168,67,0.05) 0%, transparent 55%);
  opacity:0;
  transition: opacity 0.4s;
}
.book-page .card:hover {
  border-color: rgba(212,168,67,0.25);
  transform: translateY(-8px);
  box-shadow: 0 24px 64px rgba(0,0,0,0.6), 0 0 0 1px rgba(212,168,67,0.12);
}
.book-page .card:hover::before { opacity:1; }
.book-page .card.selected {
  border-color: #e07040 !important;
  box-shadow: 0 0 0 5px rgba(224,112,64,0.18), 0 24px 64px rgba(0,0,0,0.6) !important;
  background: #181c2c;
}

.book-page .card-num {
  position: absolute;
  top: 16px;
  right: 24px;
  font-weight: 900;
  font-size: 3.2rem;
  opacity: 0.05;
  font-family: 'Poppins', sans-serif;
  color: #fff;
  pointer-events: none;
  line-height: 1;
}

.book-page .card-label {
  font-weight: 800;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 5px;
}
.book-page .card-name {
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 32px;
  text-align: center;
  color: #ccc;
}

/* ——— 3D BOOK SCENE ——— */
.book-page .scene {
  perspective: 1000px;
  perspective-origin: 50% 45%;
  margin-bottom: 12px;
}

.book-page .wrap {
  position: relative;
  width: 220px;
  height: 290px;
}

.book-page .book3d {
  width: 100%;
  height: 100%;
  position: relative;
  transform: rotateY(-20deg) rotateX(8deg) rotateZ(1.5deg);
  transform-style: preserve-3d;
  transition: transform 0.55s cubic-bezier(0.4,0,0.2,1);
}
.book-page .card:hover .book3d {
  transform: rotateY(-9deg) rotateX(4deg) rotateZ(0.5deg);
}

/* — back cover block — */
.book-page .back-block {
  position: absolute;
  inset: 3px;
  transform: translateZ(-18px);
}

/* page stack */
.book-page .page { position:absolute; inset:0; border-radius:0 4px 4px 0; }
.book-page .page.p1 { background: linear-gradient(180deg, .book-page #fbfaf6 0%, .book-page #f6f3ea 25%, .book-page #eeeadc 55%, .book-page #e4decb 100%); }
.book-page .page.p2 { right:1.5px; background: linear-gradient(180deg, .book-page #f9f7f2 0%, .book-page #f3efe4 25%, .book-page #ebe5d4 55%, .book-page #e1d9c2 100%); }
.book-page .page.p3 { right:3px; background: linear-gradient(180deg, .book-page #f7f4ed 0%, .book-page #f0ebdd 25%, .book-page #e7e0cc 55%, .book-page #ddd4b8 100%); }
.book-page .page.p4 { right:4.5px; background: linear-gradient(180deg, .book-page #f4f1e8 0%, .book-page #ede6d6 25%, .book-page #e3dbc4 55%, .book-page #d9cfae 100%); }
.book-page .page.p5 { right:6px; opacity:0.7; background: linear-gradient(180deg, .book-page #f1ede2 0%, .book-page #eae2ce 25%, .book-page #dfd6bc 55%, .book-page #d5c9a4 100%); }
.book-page .page.p6 { right:7.5px; opacity:0.45; background: linear-gradient(180deg, .book-page #eee9dc 0%, .book-page #e6ddc6 25%, .book-page #dbd0b2 55%, .book-page #d0c39a 100%); }
.book-page .page.p7 { right:9px; opacity:0.25; background: linear-gradient(180deg, .book-page #ebe5d6 0%, .book-page #e3d8be 25%, .book-page #d7caa8 55%, .book-page #cbbd90 100%); }

/* side page edge */
.book-page .page-side {
  position: absolute;
  top:0; right:-7px; bottom:0;
  width: 8px;
  background: linear-gradient(90deg, #eeeadc, #d9d2bb, #c5bda2);
  border-radius: 0 3px 3px 0;
  transform: translateZ(-9px);
  box-shadow: inset 2px 0 3px rgba(0,0,0,0.06);
}

/* back cover */
.book-page .cover-back {
  position: absolute;
  inset: 0;
  border-radius: 0 6px 6px 0;
  background: linear-gradient(175deg, #d8d1ba 0%, #c7bfa2 50%, #b8af8e 100%);
  transform: translateZ(-2px);
  box-shadow: 3px 0 12px rgba(0,0,0,0.12);
}

/* — spine — */
.book-page .spine {
  position: absolute;
  top:0; left:0; bottom:0;
  width: 28px;
  background: linear-gradient(90deg, #c4bda2 0%, #dbd4ba 30%, #d6ceb0 55%, #c7bfa2 85%, #bcb494 100%);
  border-radius: 6px 0 0 6px;
  transform: translateZ(-9px);
  box-shadow: inset -3px 0 8px rgba(0,0,0,0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.book-page .spine::after {
  content:'';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.06) 30%, rgba(255,255,255,0.02) 50%, transparent 100%);
}
.book-page .spine-text {
  font-size: 0.36rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: #746a50;
  transform: rotate(-90deg);
  white-space: nowrap;
  position: relative;
  z-index: 1;
}

/* — front cover — */
.book-page .cover {
  position: absolute;
  top:0; left:28px; right:0; bottom:0;
  border-radius: 0 10px 10px 0;
  transform: translateZ(4px);
  overflow: hidden;
  box-shadow: 10px 6px 32px rgba(0,0,0,0.5);
}

/* cover board thickness */
.book-page .cover::before {
  content:'';
  position: absolute;
  top:0; right:-3px; bottom:0;
  width: 4px;
  z-index: 20;
  border-radius: 0 10px 10px 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.15), rgba(0,0,0,0.25), rgba(0,0,0,0.08));
}

/* — gloss layers — */
.book-page .gloss-main {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  border-radius: 0 10px 10px 0;
  background: linear-gradient(
    140deg,
    rgba(255,255,255,0.2) 0%,
    rgba(255,255,255,0.06) 18%,
    transparent 32%,
    transparent 52%,
    rgba(255,255,255,0.04) 68%,
    rgba(255,255,255,0.1) 80%,
    rgba(255,255,255,0.15) 92%,
    rgba(255,255,255,0.05) 100%
  );
}

.book-page .gloss-band {
  position: absolute;
  top: -25%;
  left: -15%;
  width: 75%;
  height: 150%;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(255,255,255,0.04) 28%,
    rgba(255,255,255,0.12) 44%,
    rgba(255,255,255,0.22) 50%,
    rgba(255,255,255,0.12) 56%,
    rgba(255,255,255,0.04) 72%,
    transparent 100%
  );
  transform: rotate(-12deg);
  z-index: 11;
  pointer-events: none;
  border-radius: 0 10px 10px 0;
}

.book-page .gloss-spot {
  position: absolute;
  top: 8%;
  right: 12%;
  width: 50px;
  height: 50px;
  background: radial-gradient(ellipse, rgba(255,255,255,0.15) 0%, transparent 65%);
  z-index: 12;
  pointer-events: none;
}

/* — desk shadow — */
.book-page .shadow {
  position: absolute;
  bottom: -18px;
  left: 2%;
  width: 96%;
  height: 36px;
  background: radial-gradient(ellipse at 50% 0%, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.2) 40%, transparent 72%);
  filter: blur(14px);
  transform: rotateX(70deg);
}

/* —————— COVER 1: Crimson & Gold Foil —————— */
.book-page .c1 {
  background: linear-gradient(160deg, #8b1a1a 0%, #a82020 25%, #7a0e0e 55%, #5c0808 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  padding: 22px 14px 18px;
  position: relative;
}
.book-page .c1-matte {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 20%, rgba(255,200,100,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 30% 80%, rgba(0,0,0,0.25) 0%, transparent 50%);
  border-radius: 0 10px 10px 0;
}
.book-page .c1-rule {
  width: 64px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #d4a843, transparent);
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}
.book-page .c1-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
  z-index: 2;
  flex: 1;
  justify-content: center;
}
.book-page .c1-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.1;
  color: #f0d060;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  position: relative;
  z-index: 2;
  letter-spacing: -0.01em;
  padding: 0 2px;
}
.book-page .c1-sub {
  font-size: 0.52rem;
  color: rgba(255,220,160,0.8);
  line-height: 1.5;
  position: relative;
  z-index: 2;
  max-width: 92%;
  flex-shrink: 0;
}
.book-page .c1-badge {
  display: inline-block;
  padding: 6px 20px;
  border: 1.5px solid rgba(240,208,96,0.5);
  color: #f0d060;
  border-radius: 50px;
  font-size: 0.48rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  position: relative;
  z-index: 2;
  background: rgba(0,0,0,0.25);
  flex-shrink: 0;
}

/* —————— COVER 2: Deep Navy Luxe —————— */
.book-page .c2 {
  background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy-dark) 30%, #0b1830 60%, #060f1e 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 20px;
  position: relative;
}
.book-page .c2-light {
  position: absolute;
  top: -20%;
  left: 30%;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(100,160,220,0.14) 0%, transparent 65%);
  border-radius: 50%;
}
.book-page .c2-icon {
  font-size: 1.8rem;
  margin-bottom: 14px;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 2px 8px rgba(255,255,255,0.1));
}
.book-page .c2-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 10px;
  position: relative;
  z-index: 2;
}
.book-page .c2-rule {
  width: 48px;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, rgba(200,180,120,0.6), rgba(200,180,120,0.8), rgba(200,180,120,0.6), transparent);
  margin: 0 auto 10px;
  position: relative;
  z-index: 2;
}
.book-page .c2-sub {
  font-size: 0.44rem;
  color: rgba(180,200,220,0.7);
  line-height: 1.55;
  position: relative;
  z-index: 2;
  max-width: 82%;
}
.book-page .c2-tag {
  display: inline-block;
  margin-top: 16px;
  padding: 5px 16px;
  background: rgba(200,180,120,0.12);
  border: 1px solid rgba(200,180,120,0.3);
  color: #c8b878;
  border-radius: 50px;
  font-size: 0.4rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  position: relative;
  z-index: 2;
}

/* —————— COVER 3: Slate + Tangerine —————— */
.book-page .c3 {
  background: linear-gradient(155deg, #1e2230 0%, #242a3a 30%, #1c2030 60%, #151823 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px 20px;
  position: relative;
}
.book-page .c3-accent-bar {
  position: absolute;
  top: 0;
  left: 28px;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #ff6b35, #ff8c42, #ff6b35);
  z-index: 2;
  border-radius: 0 10px 0 0;
}
.book-page .c3-chinese {
  font-family: 'Poppins', sans-serif;
  font-size: 0.55rem;
  font-weight: 700;
  color: rgba(255,255,255,0.12);
  letter-spacing: 0.3em;
  margin-bottom: 6px;
  position: relative;
  z-index: 2;
}
.book-page .c3-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 5px;
  position: relative;
  z-index: 2;
  letter-spacing: -0.01em;
}
.book-page .c3-title span {
  color: #ff8c42;
}
.book-page .c3-sub {
  font-size: 0.44rem;
  color: rgba(200,210,220,0.6);
  line-height: 1.55;
  position: relative;
  z-index: 2;
  max-width: 82%;
}
.book-page .c3-tag {
  display: inline-block;
  margin-top: 16px;
  padding: 5px 16px;
  background: #ff6b35;
  color: #fff;
  border-radius: 50px;
  font-size: 0.4rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  position: relative;
  z-index: 2;
}

/* —————— COVER 4: Teal & Copper —————— */
.book-page .c4 {
  background: linear-gradient(155deg, #0a2a2a 0%, #0d3838 30%, #092525 60%, #061a1a 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px 18px;
  position: relative;
}
.book-page .c4-texture {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 3px,
      rgba(255,255,255,0.012) 3px,
      rgba(255,255,255,0.012) 4px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 3px,
      rgba(255,255,255,0.008) 3px,
      rgba(255,255,255,0.008) 4px
    );
  border-radius: 0 10px 10px 0;
}
.book-page .c4-diamond {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #e8a850, #c87a30);
  transform: rotate(45deg);
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 20px rgba(232,168,80,0.3);
}
.book-page .c4-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.15;
  color: #f0d080;
  margin-bottom: 10px;
  position: relative;
  z-index: 2;
  font-style: italic;
}
.book-page .c4-sub {
  font-size: 0.44rem;
  color: rgba(180,210,200,0.65);
  line-height: 1.55;
  position: relative;
  z-index: 2;
  max-width: 82%;
}
.book-page .c4-tag {
  display: inline-block;
  margin-top: 16px;
  padding: 5px 16px;
  background: linear-gradient(135deg, rgba(200,150,80,0.2), rgba(200,150,80,0.08));
  border: 1px solid rgba(200,150,80,0.4);
  color: #e8b860;
  border-radius: 50px;
  font-size: 0.4rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  position: relative;
  z-index: 2;
}

/* —————— COVER 5: Monochrome Black —————— */
.book-page .c5 {
  background: linear-gradient(160deg, #0a0a0c 0%, #111114 30%, #0c0c0e 55%, #050506 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 18px;
  position: relative;
}
.book-page .c5-vignette {
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 0 8px 8px 0;
  z-index: 1;
}
.book-page .c5-top-line {
  width: 32px;
  height: 1.5px;
  background: rgba(255,255,255,0.18);
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
}
.book-page .c5-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  color: #e8e8e8;
  margin-bottom: 10px;
  position: relative;
  z-index: 2;
  letter-spacing: 0.02em;
}
.book-page .c5-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  background: #b89440;
  border-radius: 50%;
  margin: 8px 0;
  position: relative;
  z-index: 2;
}
.book-page .c5-sub {
  font-size: 0.44rem;
  color: rgba(200,200,200,0.5);
  line-height: 1.55;
  position: relative;
  z-index: 2;
  max-width: 82%;
}
.book-page .c5-tag {
  display: inline-block;
  margin-top: 16px;
  padding: 5px 16px;
  color: #b89440;
  border-radius: 50px;
  font-size: 0.4rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  position: relative;
  z-index: 2;
  border: 1px solid rgba(184,148,64,0.35);
}

/* — descriptions — */
.book-page .desc {
  text-align: center;
  font-size: 0.48rem;
  color: rgba(200,200,200,0.5);
  line-height: 1.7;
  margin-top: 4px;
}

.book-page .actions {
  text-align: center;
  margin-top: 64px;
  opacity: 0.5;
  font-size: 0.85rem;
}

@media (max-width: 500px) {
  .grid { grid-template-columns: 1fr; gap: 40px; }
  .card { padding: 40px 16px 32px; }
  .wrap { width: 190px; height: 252px; }
}

