*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --pink:   #F472B6;
  --blue:   #4DAAFF;
  --yellow: #FFE600;
  --green:  #00E87A;
  --black:  #0D0D0D;
  --white:  #FFFFFF;
  --bg:     #EFEFEF;
  --border: 3px solid #0D0D0D;
  --radius: 16px;
  --font-cn: 'Noto Sans SC', sans-serif;
  --font-en: 'Space Grotesk', sans-serif;
  --font-display: 'Syne', sans-serif;
}
html { scroll-behavior: smooth; }
body { background: var(--bg); font-family: var(--font-cn); color: var(--black); min-height: 100vh; }

/* ── PAGE SYSTEM ── */
.page { display: none; }
.page.active { display: block; }

/* ── NAV (frosted glass) ── */
.nav-wrap { display: flex; justify-content: center; padding: 20px 0 10px; position: sticky; top: 10px; z-index: 100; }
.nav-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.65);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  border: 2.5px solid var(--black); border-radius: 9999px;
  padding: 6px 8px; box-shadow: 3px 3px 0 var(--black); min-width: 560px; justify-content: center;
}
.nav-item {
  padding: 8px 22px; border-radius: 8px; cursor: pointer; font-family: var(--font-cn);
  font-size: 15px; font-weight: 700; border: 2.5px solid transparent; background: none;
  transition: transform 120ms, box-shadow 120ms, background 120ms; white-space: nowrap; color: var(--black);
  position: relative;
}
.nav-item:hover { background: rgba(0,0,0,0.04); }
.nav-item.active {
  background: var(--white);
  border-color: var(--black);
  border-radius: 8px;
}
/* Macaron hard shadows — each nav item gets its own pastel */
.nav-item[data-page="home"].active    { box-shadow: 3px 3px 0 #FFC1D8; } /* pastel pink */
.nav-item[data-page="about"].active   { box-shadow: 3px 3px 0 #FFE89A; } /* pastel yellow */
.nav-item[data-page="articles"].active{ box-shadow: 3px 3px 0 #B6D8FF; } /* pastel blue */
.nav-item[data-page="portfolio"].active { box-shadow: 3px 3px 0 #B8F0D0; } /* pastel green */
.nav-item[data-page="products"].active{ box-shadow: 3px 3px 0 #DCC9F5; } /* pastel purple */

.nav-mail {
  width: 44px; height: 44px; border-radius: 9999px;
  background: var(--black); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; border: 2.5px solid var(--black);
  margin-left: 8px; padding: 0;
  box-shadow: 2px 2px 0 var(--pink);
  transition: transform 120ms, box-shadow 120ms;
}
.nav-mail:hover { transform: translate(-1px,-1px); box-shadow: 3px 3px 0 var(--pink); }
.nav-mail:active { transform: translate(1px,1px); box-shadow: 1px 1px 0 var(--pink); }
.nav-mail svg { width: 22px; height: 22px; display: block; }

/* ── CONTACT MODAL ── */
.contact-modal-mask {
  position: fixed; inset: 0; background: rgba(0,0,0,0.4);
  z-index: 1000; display: none; align-items: center; justify-content: center;
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  padding: 24px;
  animation: contactFade 180ms ease;
}
.contact-modal-mask.on { display: flex; }
@keyframes contactFade { from { opacity: 0; } to { opacity: 1; } }
.contact-modal {
  width: 100%; max-width: 460px;
  background: var(--white); border: 3px solid var(--black);
  border-radius: 24px; box-shadow: 8px 8px 0 var(--black);
  padding: 36px 32px 32px; position: relative;
  animation: contactPop 220ms cubic-bezier(.34,1.56,.64,1);
}
@keyframes contactPop { from { transform: scale(0.85) translateY(20px); opacity: 0; } to { transform: scale(1) translateY(0); opacity: 1; } }
.contact-close {
  position: absolute; top: 14px; right: 14px;
  width: 38px; height: 38px; border-radius: 50%;
  border: 2.5px solid var(--black); background: var(--white);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 18px; font-weight: 900;
  transition: transform 120ms;
}
.contact-close:hover { transform: rotate(90deg); background: #F5F5F5; }
.contact-title {
  font-family: var(--font-cn); font-size: 32px; font-weight: 900;
  text-align: center; margin-bottom: 24px; letter-spacing: 0.02em;
}
.contact-email-btn {
  display: block; width: 100%;
  padding: 18px 20px;
  background: var(--yellow); border: 3px solid var(--black);
  border-radius: 14px; box-shadow: 4px 4px 0 var(--black);
  font-family: var(--font-en); font-size: 22px; font-weight: 800;
  color: var(--black); text-align: center;
  text-decoration: none; cursor: pointer;
  transition: transform 120ms, box-shadow 120ms;
}
.contact-email-btn:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--black); }
.contact-email-btn:active { transform: translate(2px,2px); box-shadow: 1px 1px 0 var(--black); }
.contact-hint {
  text-align: center; font-size: 12px; color: #888;
  margin-top: 14px; font-family: var(--font-en); letter-spacing: 0.06em;
}

/* keep hl as alias */
.hl { display: inline-block; padding: 0 6px; font-weight: 900; }
.hl-pink   { background: var(--pink);   color: var(--white); }
.hl-blue   { background: var(--blue);   color: var(--white); }
.hl-yellow { background: var(--yellow); color: var(--black); }
.hl-green  { background: var(--green);  color: var(--black); }
.hl-black  { background: var(--black);  color: var(--white); }
/* Boxed pill highlight: thick black border + slight rotation */
.hl-skew {
  display: inline-block;
  padding: 2px 14px 4px;
  margin: 0 4px;
  border: 3px solid var(--black);
  vertical-align: baseline;
  line-height: 1.15;
  transition: transform 150ms, filter 150ms;
}
.hl-skew-inner { display: inline; font-weight: 900; }
.hl-skew-pink   { background: var(--pink);   transform: rotate(-2deg); }
.hl-skew-blue   { background: var(--blue);   transform: rotate(1.5deg); }
.hl-skew-yellow { background: var(--yellow); transform: rotate(-1.5deg); }
.hl-skew-green  { background: var(--green);  transform: rotate(2deg); }
.hl-skew-pink:hover   { filter: brightness(1.08); transform: rotate(-2deg)   scale(1.03); }
.hl-skew-blue:hover   { filter: brightness(1.08); transform: rotate(1.5deg)  scale(1.03); }
.hl-skew-yellow:hover { filter: brightness(1.08); transform: rotate(-1.5deg) scale(1.03); }
.hl-skew-green:hover  { filter: brightness(1.08); transform: rotate(2deg)    scale(1.03); }

/* ── CARDS ── */
.card {
  background: var(--white); border: var(--border); border-radius: var(--radius);
  box-shadow: 4px 4px 0 var(--black); overflow: hidden;
}
.card-hover { transition: transform 120ms, box-shadow 120ms; cursor: pointer; }
.card-hover:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--black); }

/* ── SECTION WRAPPER ── */
.section { max-width: 860px; margin: 0 auto; padding: 40px 24px; }

/* ── LAYOUT ── */
.row { display: flex; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }

/* ── SECTION TITLE ── */
.sec-title {
  font-family: var(--font-en); font-size: 42px; font-weight: 800; color: var(--black);
  border: var(--border); display: inline-block; padding: 4px 16px; margin-bottom: 24px;
  background: var(--white);
}

/* ── TAG CHIP ── */
.tag {
  display: inline-block; padding: 3px 10px; border: 2px solid var(--black);
  border-radius: 9999px; font-size: 11px; font-weight: 700; background: var(--pink); color: var(--white);
}
.tag-blue   { background: var(--blue); }
.tag-green  { background: var(--green); color: var(--black); }
.tag-yellow { background: var(--yellow); color: var(--black); }

/* ── BUTTON ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; border: var(--border); border-radius: 9999px;
  background: var(--white); font-family: var(--font-cn); font-size: 14px; font-weight: 700;
  cursor: pointer; box-shadow: 3px 3px 0 var(--black); transition: all 120ms;
}
.btn:hover { transform: translate(-1px,-1px); box-shadow: 4px 4px 0 var(--black); }
.btn:active { transform: translate(1px,1px); box-shadow: 1px 1px 0 var(--black); }
.btn-black { background: var(--black); color: var(--white); }
.btn-pink  { background: var(--pink);  color: var(--white); }

/* ── ARTICLE CARD ── */
.art-card { background: var(--white); border: var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: 4px 4px 0 var(--black); cursor: pointer; transition: all 120ms; }
.art-card:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--black); }
.art-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; background: var(--blue); }
.art-img-placeholder { width: 100%; aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; font-size: 32px; }
.art-body { padding: 14px; }
.art-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.art-date { font-size: 11px; color: #777; }
.art-title { font-size: 15px; font-weight: 700; line-height: 1.4; margin-bottom: 6px; }
.art-desc  { font-size: 12px; color: #666; line-height: 1.5; }

/* ── VIDEO CARD ── */
.vid-card { background: var(--white); border: var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: 4px 4px 0 var(--black); cursor: pointer; transition: all 120ms; }
.vid-card:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--black); }
.vid-thumb { width: 100%; aspect-ratio: 16/9; position: relative; overflow: hidden; }
.vid-thumb-bg { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 900; color: var(--white); }
.vid-dur { position: absolute; bottom: 8px; right: 8px; background: rgba(0,0,0,0.75); color: #fff; font-size: 11px; padding: 2px 6px; border-radius: 4px; font-family: var(--font-en); }
.vid-body { padding: 12px; }
.vid-title { font-size: 14px; font-weight: 700; line-height: 1.4; margin-bottom: 8px; }
.vid-stats { display: flex; align-items: center; gap: 12px; font-size: 12px; color: #666; }

/* ── HOME HERO ── */
.home-hero {
  max-width: 1000px; margin: 0 auto; padding: 32px 32px 48px;
  display: grid; grid-template-columns: 1fr 420px; gap: 40px; align-items: center;
  min-height: calc(100vh - 90px);
}
.hero-h1 {
  font-family: var(--font-cn); font-size: 62px; font-weight: 900;
  line-height: 1.45; margin-bottom: 20px; letter-spacing: -0.01em;
}
.hero-sub { font-family: var(--font-en); font-size: 15px; color: #666; line-height: 1.7; margin-bottom: 32px; }
.hero-img-box {
  width: 100%; aspect-ratio: 1/1; max-width: 420px;
  background: #EDE8E0; border-radius: 28px;
  border: 3px solid var(--black); box-shadow: 8px 8px 0 var(--black);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative;
}
.hero-img-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; color: #aaa; font-size: 14px; font-family: var(--font-en);
}

/* keep old avatar-box for other uses */
.avatar-box {
  width: 200px; height: 200px; border: var(--border); border-radius: 20px;
  background: var(--yellow); box-shadow: 6px 6px 0 var(--black);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  overflow: hidden; position: relative;
}

/* ── ABOUT PAGE ── */
.about-welcome { max-width: 860px; margin: 0 auto; padding: 48px 24px 0; }
.welcome-title { font-family: var(--font-cn); font-size: 48px; font-weight: 900; line-height: 1.2; margin-bottom: 28px; }
.about-body { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: start; }
.about-text { font-size: 15px; line-height: 1.85; color: #333; }
.about-text p { margin-bottom: 14px; }

/* ── ID CARD ── */
.id-card {
  width: 260px; background: var(--green); border: var(--border); border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--black); padding: 16px; flex-shrink: 0; position: relative;
}
.id-card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.id-label { font-family: var(--font-en); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; }
.id-school { font-size: 9px; color: #333; letter-spacing: 0.04em; }
.id-avatar-box { width: 80px; height: 90px; background: var(--yellow); border: 2px solid var(--black); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 32px; overflow: hidden; }
.id-fields { display: flex; flex-direction: column; gap: 6px; }
.id-field { background: var(--white); border: 2px solid var(--black); border-radius: 6px; padding: 5px 8px; }
.id-field-label { font-size: 9px; color: #888; font-family: var(--font-en); letter-spacing: 0.06em; margin-bottom: 2px; }
.id-field-value { font-size: 13px; font-weight: 700; }
.id-tags-row { display: flex; gap: 4px; margin: 8px 0; flex-wrap: wrap; }
.id-barcode { background: var(--white); border: 2px solid var(--black); border-radius: 6px; padding: 6px 8px; font-family: var(--font-en); font-size: 10px; letter-spacing: 0.1em; color: #555; margin-top: 8px; }
.id-stamp {
  position: absolute; top: 12px; right: 12px;
  width: 44px; height: 44px; background: var(--pink); border: 3px solid var(--black);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 900; color: var(--white); text-align: center; line-height: 1.2;
  transform: rotate(12deg);
}

/* ── STATEMENT v2 (typewriter expands yellow box inline) ── */
.statement-box { max-width: 860px; margin: 40px auto; padding: 0 24px; }
.statement-tag2 {
  display: inline-block; border: 2px solid var(--black); padding: 3px 10px;
  font-family: var(--font-en); font-size: 10px; font-weight: 700; letter-spacing: 0.1em;
  margin-bottom: 12px; background: #fff;
}
.statement-typed-wrap {
  font-size: 30px; font-weight: 900; line-height: 1.45; margin-bottom: 20px;
  text-align: left; min-height: calc(30px * 1.45 * 2);
}
.statement-lead {
  display: inline; font-size: 30px; font-weight: 900; font-family: var(--font-cn);
}
#typewriter-highlight {
  display: inline; background: var(--yellow);
  border: 3px solid var(--black); padding: 4px 10px;
  font-size: 30px; font-weight: 900; font-family: var(--font-cn);
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
#typewriter-cursor2 { display: inline; font-size: 30px; font-weight: 900; animation: blink 0.75s step-end infinite; }
.statement-sub { font-size: 14px; color: #555; text-align: center; line-height: 1.8; }

/* ── RECENT LIFE v2 ── */
.recent-wrap { max-width: 960px; margin: 0 auto; padding: 40px 24px; position: relative; }
.recent-scene { position: relative; min-height: 260px; padding: 40px 0 20px; }
.recent-label {
  display: inline-block; background: var(--pink); border: 3px solid var(--black);
  border-radius: 12px; padding: 8px 20px; font-size: 16px; font-weight: 900;
  box-shadow: 4px 4px 0 var(--black); transform: rotate(-1deg);
  position: absolute; top: 0; left: 30px; z-index: 2;
}
.recent-cards-row { display: flex; gap: 0; align-items: center; justify-content: center; margin-top: 48px; position: relative; }
.recent-card2 {
  width: 200px; background: var(--white); border: 3px solid var(--black);
  border-radius: 16px; padding: 16px 14px; position: relative; flex-shrink: 0;
}
.recent-card2-icon { width: 36px; height: 36px; border-radius: 10px; border: 2px solid var(--black); display: flex; align-items: center; justify-content: center; font-size: 18px; margin-bottom: 10px; }
.recent-card2-label { font-size: 11px; color: #888; font-weight: 700; margin-bottom: 6px; }
.recent-card2-value { font-size: 15px; font-weight: 900; line-height: 1.4; }
.recent-arrow { width: 80px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; position: relative; height: 40px; }
.recent-arrow svg { width: 80px; height: 40px; }
/* Decorative scatter */
.scatter { position: absolute; pointer-events: none; font-size: 18px; }
.scatter-star  { color: var(--black); }
.scatter-bolt  { color: var(--pink); }
.scatter-dot   { width: 10px; height: 10px; border-radius: 50%; border: 2.5px solid var(--black); display: inline-block; }
.scatter-dia   { color: var(--black); }
.recent-nav { position: absolute; top: 50%; transform: translateY(-50%); font-size: 22px; cursor: pointer; font-weight: 900; }
.recent-nav-l { left: 0; }
.recent-nav-r { right: 0; }
.recent-dots2 { display: flex; gap: 8px; justify-content: center; margin-top: 20px; }
.recent-dot2 { width: 10px; height: 10px; border-radius: 50%; border: 2.5px solid var(--black); }
.recent-dot2.on { background: var(--black); }

/* ── TIMELINE v2 (grid paper + colored shadows) ── */
.game-wrap { max-width: 900px; margin: 0 auto; padding: 40px 24px; }
.game-title { font-size: 36px; font-weight: 900; text-align: center; margin-bottom: 32px; font-family: var(--font-cn); }
.timeline-box {
  background:
    linear-gradient(rgba(0,0,0,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.07) 1px, transparent 1px);
  background-size: 24px 24px;
  background-color: #fff;
  border: 3px solid var(--black); border-radius: 20px;
  box-shadow: 6px 6px 0 var(--black); padding: 28px 24px 32px;
  position: relative;
}
.timeline-cols {
  display: flex; flex-direction: column; gap: 36px; position: relative; z-index: 1;
}
.tl-header-row, .tl-row {
  display: grid; grid-template-columns: 1fr 48px 1fr; align-items: center;
}
.tl-col-head-center { display: flex; justify-content: center; padding-top: 52px; }
.tl-col-head-right { text-align: right; }
.tl-axis {
  position: absolute; left: calc(50% - 1px); top: 108px; bottom: 28px; width: 2px; z-index: 0;
  background: repeating-linear-gradient(to bottom, var(--black) 0, var(--black) 6px, transparent 6px, transparent 14px);
  pointer-events: none;
}
.tl-dot-wrap { display: flex; justify-content: center; position: relative; z-index: 1; }
.timeline-col-title {
  font-size: 16px; font-weight: 900; background: var(--white);
  border: 3px solid var(--black); padding: 6px 18px; border-radius: 9999px;
  display: inline-block; margin-bottom: 20px; box-shadow: 3px 3px 0 var(--black);
}
.tl-center-col { display: flex; flex-direction: column; align-items: center; padding-top: 52px; }
.tl-top-btn {
  width: 32px; height: 32px; border: 2.5px solid var(--black); border-radius: 50%;
  background: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 13px; cursor: pointer; margin-bottom: 8px; box-shadow: 2px 2px 0 var(--black);
}
.tl-dashed-line { flex: 1; width: 2px; background: repeating-linear-gradient(to bottom, var(--black) 0, var(--black) 6px, transparent 6px, transparent 14px); min-height: 400px; }
.tl-dot2 { width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--black); background: #fff; box-shadow: 0 0 0 3px #fff; flex-shrink: 0; margin: 12px 0; }
/* compact timeline cards */
.tl2 { margin-bottom: 0; }
.tl2-card {
  border: 2.5px solid var(--black); border-radius: 12px; padding: 10px 12px;
  background: #fff; font-size: 12px; display: flex; align-items: center; gap: 10px;
  transition: transform 120ms, box-shadow 120ms;
}
.tl2-card.clickable { cursor: pointer; }
.tl2-card.clickable:hover { transform: translate(-2px,-2px); }
.tl2-card.clickable.shadow-blue:hover   { box-shadow: 6px 6px 0 var(--blue); }
.tl2-card.clickable.shadow-pink:hover   { box-shadow: 6px 6px 0 var(--pink); }
.tl2-card.clickable.shadow-green:hover  { box-shadow: 6px 6px 0 var(--green); }
.tl2-card.clickable.shadow-yellow:hover { box-shadow: 6px 6px 0 var(--yellow); }
.tl2-card.clickable.shadow-black:hover  { box-shadow: 5px 5px 0 var(--black); }
.tl2-arrow { font-size: 14px; font-weight: 900; color: #aaa; flex-shrink: 0; }
.tl2-card.clickable:hover .tl2-arrow { color: var(--black); }
.tl2-icon { width: 32px; height: 32px; border-radius: 8px; border: 2px solid var(--black); display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.tl2-body { flex: 1; min-width: 0; }
.tl2-tag { font-family: var(--font-en); font-size: 9px; font-weight: 700; padding: 1px 6px; border: 1.5px solid var(--black); border-radius: 3px; margin-bottom: 3px; display: inline-block; }
.tl2-date { font-size: 11px; font-weight: 700; color: #555; margin-bottom: 2px; }
.tl2-title { font-size: 12px; font-weight: 700; line-height: 1.4; }
/* colored shadows on cards */
.shadow-blue   { box-shadow: 4px 4px 0 var(--blue); }
.shadow-pink   { box-shadow: 4px 4px 0 var(--pink); }
.shadow-green  { box-shadow: 4px 4px 0 var(--green); }
.shadow-yellow { box-shadow: 4px 4px 0 var(--yellow); }
.shadow-black  { box-shadow: 3px 3px 0 var(--black); }

/* ── ARTICLES PAGE ── */
.journal-header { max-width: 860px; margin: 0 auto; padding: 48px 24px 32px; }
.journal-title { font-family: var(--font-en); font-size: 64px; font-weight: 800; line-height: 1; margin-bottom: 12px; }
.journal-sub { font-size: 15px; color: #555; margin-bottom: 24px; }
.search-box { display: flex; align-items: center; gap: 12px; background: var(--white); border: var(--border); border-radius: 9999px; padding: 12px 20px; box-shadow: 3px 3px 0 var(--black); }
.search-box input { border: none; outline: none; font-family: var(--font-cn); font-size: 14px; flex: 1; background: none; }
.art-list { max-width: 860px; margin: 0 auto; padding: 0 24px 48px; display: flex; flex-direction: column; gap: 16px; }
.art-list-item { background: var(--white); border: var(--border); border-radius: var(--radius); box-shadow: 4px 4px 0 var(--black); display: flex; gap: 0; overflow: hidden; cursor: pointer; transition: all 120ms; }
.art-list-item:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--black); }
.art-list-img { width: 200px; flex-shrink: 0; background: var(--blue); display: flex; align-items: center; justify-content: center; font-size: 36px; }
.art-list-body { padding: 20px 24px; flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.art-list-title { font-size: 20px; font-weight: 700; }
.art-list-desc  { font-size: 14px; color: #666; line-height: 1.5; }
.art-list-arrow { width: 40px; height: 40px; border: 2px solid var(--black); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; background: var(--black); color: var(--white); align-self: center; margin-right: 20px; flex-shrink: 0; }

/* ── VIDEO PAGE ── */
.video-header { max-width: 860px; margin: 0 auto; padding: 48px 24px 32px; display: flex; justify-content: space-between; align-items: flex-end; }
.video-title { font-family: var(--font-en); font-size: 56px; font-weight: 800; line-height: 1; }
.video-search { display: flex; align-items: center; gap: 10px; background: var(--white); border: var(--border); border-radius: 9999px; padding: 10px 16px; box-shadow: 3px 3px 0 var(--black); }
.video-search input { border: none; outline: none; font-family: var(--font-cn); font-size: 13px; width: 160px; background: none; }

/* ── PRODUCTS PAGE ── */
.prod-header { max-width: 860px; margin: 0 auto; padding: 48px 24px 32px; }
.prod-title { font-family: var(--font-en); font-size: 48px; font-weight: 800; margin-bottom: 12px; }
.prod-sub { font-size: 15px; color: #555; }
.prod-grid { max-width: 860px; margin: 0 auto; padding: 0 24px 48px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.prod-card { background: var(--white); border: var(--border); border-radius: var(--radius); box-shadow: 5px 5px 0 var(--black); padding: 28px; cursor: pointer; transition: all 120ms; }
.prod-card:hover { transform: translate(-2px,-2px); box-shadow: 7px 7px 0 var(--black); }
.prod-icon { width: 52px; height: 52px; border: 2px solid var(--black); border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 28px; margin-bottom: 16px; overflow: hidden; }
.prod-name { font-size: 20px; font-weight: 900; margin-bottom: 6px; }
.prod-desc { font-size: 14px; color: #666; line-height: 1.55; margin-bottom: 16px; }
.prod-status { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; }
.prod-status-dot { width: 8px; height: 8px; border-radius: 50%; }

/* ── AVATAR SVG ── */
.avatar-svg { width: 160px; height: 180px; }

/* ── ID CARD V2 (faithful replica) ── */
.id-card-v2 {
  width: 300px; flex-shrink: 0;
  background: #fff; border: 3px solid var(--black);
  border-radius: 20px; box-shadow: 8px 8px 0 var(--black);
  overflow: visible; position: relative;
  transform: rotate(1.5deg);
}
.id-card-v2-inner {
  border-radius: 17px; overflow: hidden; position: relative;
}
.id-card-v2-bg-pattern {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><g stroke='%2378C8B5' stroke-width='1.8' fill='none' opacity='1'><circle cx='30' cy='32' r='12'/><rect x='150' y='24' width='20' height='20' rx='2'/><path d='M88 50 L108 50 L98 68 Z'/><path d='M22 110 L42 110 M32 100 L32 120'/><rect x='130' y='110' width='26' height='16' rx='4'/><path d='M40 168 Q56 154 72 168 T104 168'/><path d='M150 172 L162 184 L150 196 L138 184 Z'/><circle cx='110' cy='150' r='4'/></g></svg>");
  background-size: 200px 200px;
  pointer-events: none; z-index: 0;
  opacity: 0.28;
}
.id-card-v2-header {
  background: var(--green); position: relative; z-index: 1;
  padding: 14px 16px 12px; border-bottom: 3px solid var(--black);
}
.id-card-v2-header .id-label { font-family: var(--font-en); font-size: 18px; font-weight: 900; letter-spacing: 0.02em; color: var(--black); }
.id-card-v2-header .id-school { font-family: var(--font-en); font-size: 11px; font-weight: 700; letter-spacing: 0.02em; color: var(--black); margin-top: 2px; }
.id-card-v2-body { display: flex; gap: 12px; padding: 14px; position: relative; z-index: 1; }
.id-card-v2-left { display: flex; flex-direction: column; gap: 8px; width: 108px; flex-shrink: 0; }
.id-avatar-v2 {
  width: 100%; height: 120px; background: #F0EBE0;
  border: 2.5px solid var(--black); border-radius: 12px;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  box-shadow: 2px 2px 0 var(--black);
}
.id-avatar-v2 img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.id-tags-row-v2 {
  display: flex; gap: 6px; padding: 0 14px 12px;
  position: relative; z-index: 1; white-space: nowrap;
}
/* New stacked tags under avatar */
.id-tags-stack {
  display: flex; flex-direction: column; gap: 6px;
  align-items: flex-start; margin-top: 2px;
}
.id-tags-stack .id-tag-v2 {
  font-size: 11px; padding: 4px 10px;
}
.id-tags-v2 { display: flex; gap: 5px; flex-wrap: wrap; }
.id-tag-v2 {
  font-family: var(--font-en); font-size: 10px; font-weight: 800;
  padding: 3px 9px; border: 2px solid var(--black); border-radius: 9999px;
  background: var(--pink); color: #fff;
  box-shadow: 2px 2px 0 var(--black);
}
.id-tag-v2-blue { background: var(--blue); }
.id-tag-v2-red { background: #E94B4B; }
.id-card-v2-right { flex: 1; display: flex; flex-direction: column; gap: 9px; }
.id-field-v2 {
  background: #fff; border: 2.5px solid var(--black);
  border-radius: 10px; padding: 6px 12px;
  box-shadow: 3px 3px 0 var(--black);
}
.id-field-v2-name  { background: #FFF1A8; }
.id-field-v2-major { background: #CFE3FF; }
.id-field-v2-job   { background: #E1D2FF; }
.id-field-v2 .lbl { font-family: var(--font-en); font-size: 9px; font-weight: 800; letter-spacing: 0.1em; color: #555; margin-bottom: 2px; }
.id-field-v2 .val { font-family: var(--font-cn); font-size: 15px; font-weight: 800; color: var(--black); }
.id-card-v2-footer { padding: 0 14px 14px; position: relative; z-index: 1; }
.id-no-label { font-family: var(--font-en); font-size: 10px; font-weight: 800; letter-spacing: 0.08em; color: var(--black); margin-bottom: 4px; }
.id-no-val { font-family: var(--font-en); font-size: 13px; font-weight: 800; color: var(--black); letter-spacing: 0.06em; margin-bottom: 8px; }
.id-barcode-v2 {
  background: #fff; border: 2.5px solid var(--black); border-radius: 8px; height: 36px;
  display: flex; align-items: center; justify-content: center; overflow: hidden; gap: 1px; padding: 6px 8px;
  box-shadow: 2px 2px 0 var(--black);
}
/* Stamp circles */
.id-stamp-v2 {
  position: absolute;
  border: 3px solid var(--black); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  z-index: 3;
}
.id-stamp-top {
  width: 72px; height: 72px;
  top: -22px; right: -22px; background: var(--pink);
  flex-direction: column; gap: 2px;
  transform: rotate(8deg);
  box-shadow: 3px 3px 0 var(--black);
}
.id-stamp-top svg { width: 34px; height: 24px; display: block; }
.id-stamp-top-text { font-size: 10px; font-weight: 900; color: #fff; font-family: var(--font-cn); letter-spacing: 0.02em; line-height: 1; }
.id-stamp-bot {
  bottom: -16px; right: -16px;
  width: 60px; height: 60px;
  background: #F472B6; border: 3px solid var(--black);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transform: rotate(-6deg);
}
.id-stamp-bot-inner-ring {
  width: 42px; height: 42px;
  background: #6BD9D9; border: 2.5px solid var(--black);
  border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 7px; font-weight: 900; font-family: var(--font-en);
  letter-spacing: 0.04em; line-height: 1.2;
  color: var(--black); text-align: center;
}
.id-stamp-bot-inner-ring .l1 { font-size: 7px; }
.id-stamp-bot-inner-ring .l2 { font-size: 9px; margin-top: 1px; font-family: var(--font-cn); }

/* ── TYPEWRITER ── */
.typewriter-wrap { position: relative; }
.typewriter-text { overflow: hidden; white-space: nowrap; border-right: 3px solid var(--black); width: 0; animation: typewriter 3s steps(30,end) 0.5s forwards, blink 0.75s step-end infinite; }
.typewriter-text.done { border-right: 3px solid var(--black); width: 100%; }
@keyframes typewriter { from { width: 0; } to { width: 100%; } }
@keyframes blink { 50% { border-color: transparent; } }

/* ── BROWSE LINK ── */
.browse-link { font-size: 13px; font-weight: 700; color: var(--black); text-decoration: none; display: flex; align-items: center; gap: 4px; cursor: pointer; }
.browse-link:hover { text-decoration: underline; }
.sec-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; }

/* ── BILIBILI TAG ── */
.bili-tag { display: inline-block; background: #00AEEC; color: #fff; font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 4px; font-family: var(--font-en); letter-spacing: 0.02em; }

/* ── ARTICLE DETAIL PAGE ── */
.article-wrap { max-width: 760px; margin: 0 auto; padding: 24px 24px 80px; }
.article-back {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--white); border: 2.5px solid var(--black); border-radius: 9999px;
  padding: 6px 16px; font-size: 13px; font-weight: 700; cursor: pointer;
  box-shadow: 3px 3px 0 var(--black); margin-bottom: 24px; transition: all 120ms;
  font-family: var(--font-cn);
}
.article-back:hover { transform: translate(-1px,-1px); box-shadow: 4px 4px 0 var(--black); }
.article-hero {
  width: 100%; aspect-ratio: 16/7; border: var(--border); border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--black); display: flex; align-items: center; justify-content: center;
  margin-bottom: 28px; position: relative; overflow: hidden;
}
.article-hero-emoji { font-size: 96px; }
.article-hero-stripes {
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(0,0,0,0.05) 0 12px, transparent 12px 24px);
  pointer-events: none;
}
.article-meta-row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.article-h1 {
  font-size: 38px; font-weight: 900; line-height: 1.25; margin-bottom: 20px;
  letter-spacing: -0.005em;
}
.article-lead {
  font-size: 17px; line-height: 1.75; color: #444; margin-bottom: 32px;
  padding: 16px 20px; border-left: 4px solid var(--black); background: #fafafa;
  border-radius: 0 8px 8px 0;
}
.article-body { font-size: 16px; line-height: 1.85; color: #222; }
.article-body h2 {
  font-size: 24px; font-weight: 900; margin: 40px 0 16px;
  padding-bottom: 6px; border-bottom: 3px solid var(--black);
  display: inline-block;
}
.article-body h3 { font-size: 18px; font-weight: 800; margin: 28px 0 10px; }
.article-body p { margin-bottom: 16px; }
.article-body strong { font-weight: 800; }
.article-body ul, .article-body ol { margin: 8px 0 20px 24px; }
.article-body li { margin-bottom: 8px; line-height: 1.75; }
.article-body blockquote {
  margin: 24px 0; padding: 14px 20px;
  background: #FFFDE7; border: 2.5px solid var(--black); border-radius: 10px;
  box-shadow: 4px 4px 0 var(--yellow); font-style: normal;
  position: relative;
}
.article-body blockquote::before {
  content: '"'; position: absolute; top: -4px; left: 8px; font-size: 36px; font-weight: 900;
  font-family: var(--font-display); color: var(--black);
}
.article-body blockquote p { margin: 0; padding-left: 18px; font-size: 15px; }
.article-body code {
  background: #0D0D0D; color: #FFE600; padding: 2px 8px; border-radius: 4px;
  font-family: var(--font-en); font-size: 13px; font-weight: 600;
}
.article-callout {
  display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start;
  padding: 16px 18px; border: 2.5px solid var(--black); border-radius: 12px;
  margin: 24px 0; box-shadow: 4px 4px 0 var(--black);
}
.article-callout-icon {
  width: 44px; height: 44px; border-radius: 10px; border: 2px solid var(--black);
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.article-callout-body { font-size: 14px; line-height: 1.7; }
.article-callout-body strong { font-weight: 800; display: block; margin-bottom: 4px; font-size: 15px; }

.article-divider {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin: 36px 0; color: #999;
}
.article-divider::before, .article-divider::after {
  content: ''; flex: 1; height: 2px; background: repeating-linear-gradient(90deg, #999 0 6px, transparent 6px 12px);
}

.article-footer {
  margin-top: 48px; padding-top: 24px; border-top: 3px solid var(--black);
}
.article-author {
  display: flex; align-items: center; gap: 14px; padding: 16px;
  background: var(--white); border: var(--border); border-radius: var(--radius);
  box-shadow: 4px 4px 0 var(--black); margin-bottom: 24px;
}
.article-author-avatar {
  width: 56px; height: 56px; min-width: 56px; min-height: 56px;
  border-radius: 50%; border: 2.5px solid var(--black);
  box-sizing: border-box; flex-shrink: 0;
  background: var(--yellow) url('avatar-author.webp') center / cover no-repeat;
}
.article-author-info { flex: 1; }
.article-author-name { font-size: 15px; font-weight: 900; margin-bottom: 2px; }
.article-author-desc { font-size: 12px; color: #666; }
.article-author-follow {
  padding: 8px 16px; border: 2.5px solid var(--black); border-radius: 9999px;
  background: var(--black); color: var(--white); font-size: 12px; font-weight: 700; cursor: pointer;
  box-shadow: 2px 2px 0 var(--pink);
}

.article-reactions {
  display: flex; gap: 10px; margin-bottom: 28px; flex-wrap: wrap;
}
.article-reaction {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border: 2.5px solid var(--black); border-radius: 9999px;
  background: var(--white); font-size: 13px; font-weight: 700; cursor: pointer;
  box-shadow: 3px 3px 0 var(--black); transition: all 120ms; font-family: var(--font-cn);
}
.article-reaction:hover { transform: translate(-1px,-1px); box-shadow: 4px 4px 0 var(--black); }
.article-reaction.on { background: var(--pink); color: var(--white); }
.article-reactions-note {
  align-self: center;
  font-size: 12px; font-weight: 500; line-height: 1.4; color: #888;
}

.article-related-title { font-size: 18px; font-weight: 900; margin-bottom: 14px; }
.article-related { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.article-related-card {
  background: var(--white); border: 2.5px solid var(--black); border-radius: 12px;
  padding: 12px 14px; cursor: pointer; box-shadow: 3px 3px 0 var(--black); transition: all 120ms;
  display: flex; align-items: center; gap: 12px;
}
.article-related-card:hover { transform: translate(-1px,-1px); box-shadow: 5px 5px 0 var(--black); }
.article-related-thumb {
  width: 56px; height: 56px; border-radius: 8px; border: 2px solid var(--black);
  display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0;
}
.article-related-info { flex: 1; min-width: 0; }
.article-related-tag { font-size: 10px; font-weight: 700; color: #888; margin-bottom: 3px; }
.article-related-title-sm { font-size: 13px; font-weight: 700; line-height: 1.4; }

.article-toc {
  position: fixed; right: 24px; top: 100px; width: 200px;
  background: var(--white); border: 2.5px solid var(--black); border-radius: 12px;
  padding: 14px 16px; box-shadow: 4px 4px 0 var(--black); font-size: 12px;
  display: none;
}
@media (min-width: 1180px) {
  .article-toc { display: block; }
}
.article-toc-title { font-family: var(--font-en); font-size: 10px; font-weight: 800; letter-spacing: 0.1em; color: #888; margin-bottom: 10px; }
.article-toc a { display: block; padding: 4px 0; color: #333; text-decoration: none; line-height: 1.4; font-weight: 600; border-left: 2px solid transparent; padding-left: 8px; margin-left: -10px; transition: all 120ms; }
.article-toc a:hover { color: var(--pink); border-left-color: var(--pink); }

/* ── QUEST DETAIL PAGE (主线工作经历) ── */
.quest-back-sticky {
  position: sticky; top: 76px; z-index: 200;
  align-self: flex-start; margin-bottom: 16px;
  pointer-events: auto;
}
.quest-meta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; align-items: center; }
.quest-meta-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border: 2px solid var(--black); border-radius: 9999px;
  font-size: 12px; font-weight: 700; background: #fff;
}
.quest-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  margin: 24px 0 32px;
}
.quest-stat {
  border: 2.5px solid var(--black); border-radius: 12px;
  padding: 14px 12px; background: #fff; box-shadow: 4px 4px 0 var(--black);
  text-align: center;
}
.quest-stat-num { font-family: var(--font-en); font-size: 24px; font-weight: 800; line-height: 1.1; }
.quest-stat-label { font-size: 11px; color: #666; margin-top: 4px; font-weight: 700; }
@media (max-width: 600px) { .quest-stats { grid-template-columns: repeat(2, 1fr); } }

.quest-tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 20px; }
.quest-skill-tag {
  display: inline-block; padding: 5px 12px; border: 2px solid var(--black);
  border-radius: 6px; font-size: 12px; font-weight: 700; background: #fff;
  box-shadow: 2px 2px 0 var(--black);
}
.quest-book-row {
  display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0 22px;
}
.quest-book-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border: 2px solid var(--black); border-radius: 8px;
  font-size: 13px; font-weight: 700; background: #FFFDE7;
}
.quest-book-chip-emoji { font-size: 14px; }

/* ── BOOK SERIES DETAIL PAGE ── */
.bookcat-wrap { max-width: 900px; margin: 0 auto; padding: 24px 24px 80px; }
.bookcat-hero {
  position: relative; padding: 40px 32px; border: var(--border); border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--black); margin-bottom: 28px; overflow: hidden;
}
.bookcat-hero-stripes {
  position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(45deg, rgba(0,0,0,0.05) 0 12px, transparent 12px 24px);
}
.bookcat-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  background: #0D0D0D; color: #fff; padding: 4px 12px; border-radius: 9999px;
  font-size: 11px; font-weight: 700; font-family: var(--font-en); letter-spacing: 0.08em;
  margin-bottom: 14px; position: relative;
}
.bookcat-hero-title { font-size: 38px; font-weight: 900; line-height: 1.15; margin-bottom: 12px; position: relative; }
.bookcat-hero-sub { font-size: 15px; line-height: 1.7; max-width: 620px; position: relative; }
.bookcat-meta-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; position: relative; }

.bookcat-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 32px;
}
.bookcat-stat {
  background: #fff; border: 2.5px solid var(--black); border-radius: 12px;
  padding: 14px 12px; text-align: center; box-shadow: 4px 4px 0 var(--black);
}
.bookcat-stat-num { font-family: var(--font-en); font-size: 22px; font-weight: 800; }
.bookcat-stat-label { font-size: 11px; color: #666; margin-top: 4px; font-weight: 700; }
@media (max-width: 640px) { .bookcat-stats { grid-template-columns: repeat(2, 1fr); } }

.bookcat-section-title {
  font-size: 20px; font-weight: 900; margin: 12px 0 16px;
  padding-bottom: 6px; border-bottom: 3px solid var(--black);
  display: inline-block;
}

/* Book detail row card */
.book-row {
  display: grid; grid-template-columns: 180px 1fr; gap: 24px;
  background: #fff; border: 2.5px solid var(--black); border-radius: 14px;
  box-shadow: 5px 5px 0 var(--black); padding: 22px; margin-bottom: 20px;
}
@media (max-width: 640px) { .book-row { grid-template-columns: 1fr; } }
.book-row-cover {
  width: 100%; aspect-ratio: 3/4; border: 2px solid var(--black); border-radius: 8px;
  overflow: hidden; position: relative; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 14px; text-align: center; gap: 8px;
}
.book-row-cover-emoji { font-size: 38px; }
.book-row-cover.has-image {
  background: #f3efe8 !important;
  padding: 0;
}
.book-row-cover.has-image > *:not(.book-row-cover-img) { display: none; }
.book-row-cover-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
  background: #f3efe8;
  transform: scale(1.1);
}
.book-row-cover-title { font-size: 14px; font-weight: 900; line-height: 1.3; }
.book-row-cover-author { font-family: var(--font-en); font-size: 9px; font-weight: 700; letter-spacing: 0.08em; opacity: 0.7; margin-top: auto; }
.book-row-cover-band {
  position: absolute; left: 0; right: 0; bottom: 32%;
  height: 18px; background: rgba(255,255,255,0.9);
  border-top: 1.5px solid var(--black); border-bottom: 1.5px solid var(--black);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-en); font-size: 8px; font-weight: 800; letter-spacing: 0.15em;
}
.book-row-coming {
  position: absolute; top: 6px; right: 6px;
  font-family: var(--font-en); font-size: 8px; font-weight: 800;
  background: rgba(0,0,0,0.6); color: #fff; padding: 2px 6px; border-radius: 4px;
  letter-spacing: 0.06em;
}
.book-row-body {}
.book-row-title { font-size: 22px; font-weight: 900; line-height: 1.25; margin-bottom: 6px; }
.book-row-subtitle { font-size: 13px; color: #777; margin-bottom: 12px; }
.book-row-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.book-row-tag {
  display: inline-block; padding: 2px 10px; border: 1.5px solid var(--black);
  border-radius: 9999px; font-size: 11px; font-weight: 700; background: #fff;
}
.book-row-desc { font-size: 14px; line-height: 1.75; color: #333; margin-bottom: 10px; }
.book-row-stats { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed #ccc; }
.book-row-stat { display: flex; align-items: baseline; gap: 6px; }
.book-row-stat-num { font-family: var(--font-en); font-size: 18px; font-weight: 800; }
.book-row-stat-label { font-size: 11px; color: #777; font-weight: 700; }
.book-row-behind {
  margin-top: 14px; padding: 12px 14px; background: #FFFDE7;
  border: 2px solid var(--black); border-radius: 8px; font-size: 13px; line-height: 1.7;
}
.book-row-behind-label {
  font-family: var(--font-en); font-size: 10px; font-weight: 800;
  letter-spacing: 0.08em; color: #555; margin-bottom: 4px;
}
.book-row-actions {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px;
}
.book-row-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border: 2.5px solid var(--black); border-radius: 9999px;
  font-size: 12px; font-weight: 800; text-decoration: none; color: var(--black);
  background: #fff; box-shadow: 3px 3px 0 var(--black);
  transition: transform 120ms, box-shadow 120ms;
  cursor: pointer;
}
.book-row-btn:hover { transform: translate(-1px,-1px); box-shadow: 4px 4px 0 var(--black); }
.book-row-btn:active { transform: translate(1px,1px); box-shadow: 1px 1px 0 var(--black); }
.book-row-btn-citic   { background: var(--yellow); }
.book-row-btn-bjty    { background: var(--pink); color: #fff; }
.book-row-btn-douban  { background: var(--green); color: #000; }
.book-row-btn[href="#"] { opacity: 0.45; cursor: not-allowed; }
.book-row-btn[href="#"]:hover { transform: none; box-shadow: 3px 3px 0 var(--black); }

/* ── PRODUCT DETAIL PAGE ── */
.product-wrap { max-width: 880px; margin: 0 auto; padding: 24px 24px 80px; }
.product-back {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--white); border: 2.5px solid var(--black); border-radius: 9999px;
  padding: 6px 16px; font-size: 13px; font-weight: 700; cursor: pointer;
  box-shadow: 3px 3px 0 var(--black); margin-bottom: 24px; transition: all 120ms;
  font-family: var(--font-cn);
}
.product-back:hover { transform: translate(-1px,-1px); box-shadow: 4px 4px 0 var(--black); }

.product-header {
  display: grid; grid-template-columns: 96px 1fr; gap: 20px;
  align-items: center; margin-bottom: 28px;
}
.product-header--no-icon {
  grid-template-columns: 1fr;
}
.product-header-icon {
  width: 96px; height: 96px; border: 3px solid var(--black); border-radius: 22px;
  display: flex; align-items: center; justify-content: center; font-size: 52px;
  box-shadow: 5px 5px 0 var(--black);
  image-rendering: pixelated; overflow: hidden;
}
.product-header-icon img { width: 60%; height: 60%; image-rendering: pixelated; }
.product-name {
  font-family: var(--font-display); font-size: 48px; font-weight: 800;
  line-height: 1; letter-spacing: -0.01em; margin-bottom: 8px;
}
.product-tagline { font-size: 16px; color: #555; line-height: 1.5; margin-bottom: 10px; }
.product-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.product-cta-row { display: flex; gap: 12px; margin-bottom: 28px; flex-wrap: wrap; }
.product-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; border: 3px solid var(--black); border-radius: 9999px;
  background: var(--black); color: var(--white); font-size: 14px; font-weight: 700;
  text-decoration: none; cursor: pointer;
  box-shadow: 4px 4px 0 var(--pink); transition: all 120ms;
  font-family: var(--font-cn);
}
.product-cta:hover { transform: translate(-1px,-1px); box-shadow: 5px 5px 0 var(--pink); }
.product-cta-ghost { background: var(--white); color: var(--black); box-shadow: 4px 4px 0 var(--black); }
.product-cta-ghost:hover { box-shadow: 5px 5px 0 var(--black); }

.product-hero {
  width: 100%; aspect-ratio: 16/8;
  border: 3px solid var(--black); border-radius: 20px;
  box-shadow: 8px 8px 0 var(--black); margin-bottom: 32px;
  overflow: hidden; position: relative;
}
.product-hero-pixels {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.08) 1px, transparent 1px);
  background-size: 32px 32px;
}
.product-hero-cats {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  gap: 10px; padding: 24px; flex-wrap: nowrap;
}
.product-hero-cats img {
  width: 128px; height: 256px; image-rendering: pixelated;
  object-fit: none; object-position: 0 0;
  flex-shrink: 0;
}
#page-product-caty .product-hero {
  aspect-ratio: 2 / 1; min-height: 300px;
}
.product-hero-placeholder {
  width: 100%; height: 100%;
  background-image: repeating-linear-gradient(45deg, rgba(0,0,0,0.06) 0 14px, transparent 14px 28px);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-en); font-size: 13px; color: #888; letter-spacing: 0.12em;
}

.product-section-title {
  display: inline-block;
  font-family: var(--font-en); font-size: 13px; font-weight: 800;
  letter-spacing: 0.14em; padding: 4px 12px;
  background: var(--black); color: var(--white);
  border-radius: 6px; margin: 32px 0 16px;
}
.product-body { font-size: 15px; line-height: 1.8; color: #333; }
.product-body p { margin-bottom: 12px; }

.product-features {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 8px;
}
.product-feature {
  border: 2.5px solid var(--black); border-radius: 14px; padding: 16px 18px;
  background: var(--white); box-shadow: 4px 4px 0 var(--black);
  display: flex; gap: 14px; align-items: flex-start;
}
.product-feature-icon {
  width: 40px; height: 40px; border-radius: 10px; border: 2px solid var(--black);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
  image-rendering: pixelated; overflow: hidden;
}
.product-feature-icon img { width: 26px; height: 26px; image-rendering: pixelated; }
.product-feature-title { font-size: 14px; font-weight: 900; margin-bottom: 4px; line-height: 1.3; }
.product-feature-desc { font-size: 12px; color: #666; line-height: 1.55; }

.product-stack {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px;
}
.product-stack-chip {
  font-family: var(--font-en); font-size: 12px; font-weight: 700;
  padding: 6px 12px; border: 2px solid var(--black); border-radius: 9999px;
  background: var(--white); box-shadow: 2px 2px 0 var(--black);
}

.product-roadmap {
  border: 2.5px solid var(--black); border-radius: 14px; padding: 18px 20px;
  background: #FFFDE7; box-shadow: 4px 4px 0 var(--yellow); margin-top: 8px;
}
.product-roadmap-item {
  display: flex; align-items: center; gap: 10px; font-size: 14px;
  padding: 4px 0;
}
.product-roadmap-check {
  width: 18px; height: 18px; border: 2px solid var(--black); border-radius: 4px;
  display: inline-block; flex-shrink: 0; background: #fff;
}

.product-screenshots {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 8px;
}
.product-screenshot {
  aspect-ratio: 1/1; border: 2.5px solid var(--black); border-radius: 12px;
  background: #EFEFEF; box-shadow: 3px 3px 0 var(--black);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-en); font-size: 11px; color: #999; letter-spacing: 0.1em;
  background-image: repeating-linear-gradient(45deg, rgba(0,0,0,0.04) 0 10px, transparent 10px 20px);
  text-align: center; padding: 12px;
}

/* Phone screenshots (e.g. 练友友记 mini program) */
.product-screenshots-group { margin-bottom: 36px; }
.product-screenshots-group-title {
  font-family: var(--font-en); font-size: 11px; font-weight: 800; letter-spacing: 0.12em;
  color: #00A854; margin-bottom: 14px;
}
.product-screenshots--phone {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px 16px; margin-top: 0;
}
.product-shot-item { min-width: 0; }
.product-shot-frame {
  border: 2.5px solid var(--black); border-radius: 12px;
  overflow: hidden; box-shadow: 3px 3px 0 var(--black);
  background: #fff; aspect-ratio: 9 / 16;
}
.product-shot-frame img {
  width: 100%; height: 100%; object-fit: cover; object-position: top center;
  display: block;
}
.product-shot-caption {
  margin-top: 10px; display: flex; flex-direction: column;
  align-items: flex-start; gap: 6px;
}
.product-shot-note {
  margin: 0; font-size: 11px; font-weight: 500; line-height: 1.5; color: #666;
}
.product-screenshots--caty {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px 16px;
}
.product-shot-frame--caty {
  aspect-ratio: auto; background: #F0EBE0; padding: 12px;
  display: flex; align-items: center; justify-content: center;
  min-height: 160px;
}
.product-shot-frame--caty img {
  width: 100%; height: auto; max-height: 300px;
  object-fit: contain; object-position: center;
  image-rendering: auto;
}

.product-footer-related {
  margin-top: 48px; padding-top: 24px; border-top: 3px solid var(--black);
}
.product-related-title { font-size: 18px; font-weight: 900; margin-bottom: 14px; }
.product-related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.product-related-card {
  background: var(--white); border: 2.5px solid var(--black); border-radius: 12px;
  padding: 14px; cursor: pointer; box-shadow: 3px 3px 0 var(--black); transition: all 120ms;
  display: flex; align-items: center; gap: 12px;
}
.product-related-card:hover { transform: translate(-1px,-1px); box-shadow: 5px 5px 0 var(--black); }
.product-related-icon {
  width: 44px; height: 44px; border-radius: 10px; border: 2px solid var(--black);
  display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0;
  overflow: hidden;
}
.product-related-name { font-size: 14px; font-weight: 800; margin-bottom: 2px; }
.product-related-desc { font-size: 11px; color: #666; line-height: 1.4; }

/* ── HOME PRODUCTS section ── */
.home-prod-card {
  background: var(--white); border: var(--border); border-radius: var(--radius);
  box-shadow: 4px 4px 0 var(--black); overflow: hidden; cursor: pointer;
  transition: all 120ms; padding: 20px;
  display: flex; flex-direction: column; gap: 10px;
}
.home-prod-card:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--black); }
.home-prod-card-icon {
  width: 48px; height: 48px; border: 2px solid var(--black); border-radius: 12px;
  display: flex; align-items: center; justify-content: center; font-size: 24px;
  image-rendering: pixelated; overflow: hidden;
}
.home-prod-card-icon img { width: 30px; height: 30px; image-rendering: pixelated; }
.home-prod-card-name { font-size: 16px; font-weight: 900; }
.home-prod-card-desc { font-size: 12px; color: #666; line-height: 1.55; flex: 1; }
.home-prod-card-tags { display: flex; gap: 6px; flex-wrap: wrap; }

/* ── PORTFOLIO ── */
.pf-header { max-width: 860px; margin: 0 auto; padding: 48px 24px 24px; }
.pf-title { font-family: var(--font-en); font-size: 56px; font-weight: 800; line-height: 1; margin-bottom: 10px; }
.pf-sub   { font-size: 15px; color: #555; margin-bottom: 18px; line-height: 1.6; }

.pf-filter-row { display: flex; gap: 10px; flex-wrap: wrap; }
.pf-filter {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border: 2.5px solid var(--black); border-radius: 9999px;
  background: var(--white); font-size: 13px; font-weight: 700; cursor: pointer;
  box-shadow: 3px 3px 0 var(--black); transition: all 120ms;
  font-family: var(--font-cn);
}
.pf-filter:hover { transform: translate(-1px,-1px); box-shadow: 4px 4px 0 var(--black); }
.pf-filter.on { background: var(--black); color: var(--white); box-shadow: 3px 3px 0 var(--pink); }
.pf-filter-count { font-family: var(--font-en); font-size: 11px; opacity: 0.7; }

.pf-section { max-width: 860px; margin: 0 auto; padding: 24px; }
.pf-section-header {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; margin-bottom: 18px; padding-bottom: 8px;
  border-bottom: 3px solid var(--black);
}
.pf-section-title-wrap { display: flex; align-items: baseline; gap: 12px; }
.pf-section-title {
  font-family: var(--font-en); font-size: 26px; font-weight: 800;
  letter-spacing: -0.01em;
}
.pf-section-zh { font-size: 16px; font-weight: 900; color: #555; }
.pf-section-count {
  font-family: var(--font-en); font-size: 12px; font-weight: 700;
  background: var(--black); color: var(--white); padding: 2px 10px; border-radius: 9999px;
}

/* Book grid */
.pf-book-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pf-book {
  background: var(--white); border: 2.5px solid var(--black); border-radius: 12px;
  box-shadow: 4px 4px 0 var(--black); padding: 12px; cursor: pointer;
  transition: all 120ms; display: flex; flex-direction: column; gap: 8px;
}
.pf-book:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--black); }
.pf-book-cover {
  width: 100%; aspect-ratio: 3/4; border: 2px solid var(--black); border-radius: 6px;
  overflow: hidden; position: relative;
  background-image: repeating-linear-gradient(45deg, rgba(0,0,0,0.06) 0 8px, transparent 8px 16px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 10px; text-align: center; gap: 6px;
}
.pf-book-cover-emoji { font-size: 28px; }
.pf-book-cover.has-image {
  background: #f3efe8 !important;
  padding: 0;
}
.pf-book-cover.has-image > *:not(.pf-book-cover-img) { display: none; }
.pf-book-cover-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
  background: #f3efe8;
  transform: scale(1.1);
}

/* ── Style A: macOS-style cover stack ── */
.cat-stack {
  position: relative; width: 100%; aspect-ratio: 3/4;
  border-radius: 8px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  padding: 10px 8px;
}
.cat-stack-pattern {
  position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(45deg, rgba(0,0,0,0.04) 0 10px, transparent 10px 20px);
}
.cat-stack-imgs {
  position: relative;
  width: 88%;
  aspect-ratio: 3/4;
}
.cat-stack-img {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  border-radius: 4px;
  background: #fff; object-fit: cover;
  box-shadow: 0 4px 10px rgba(0,0,0,0.18);
  transition: transform 250ms;
}
.cat-stack-img-back-2 {
  z-index: 1;
  transform: translate(8px, 10px) rotate(6deg);
  filter: brightness(0.92) saturate(0.85);
}
.cat-stack-img-back-1 {
  z-index: 2;
  transform: translate(-6px, 6px) rotate(-4deg);
  filter: brightness(0.96) saturate(0.92);
}
.cat-stack-img-top {
  z-index: 3;
  transform: rotate(-1deg);
  box-shadow: 0 8px 18px rgba(0,0,0,0.25);
}
.pf-book:hover .cat-stack-img-back-2 { transform: translate(16px, 14px) rotate(10deg); }
.pf-book:hover .cat-stack-img-back-1 { transform: translate(-14px, 10px) rotate(-8deg); }
.pf-book:hover .cat-stack-img-top    { transform: rotate(-1deg) translateY(-4px); }
.cat-stack-count {
  position: absolute; top: 10px; right: 10px;
  background: var(--black); color: #fff;
  padding: 3px 12px; border-radius: 9999px;
  font-family: var(--font-en); font-size: 11px; font-weight: 800;
  letter-spacing: 0.05em;
  z-index: 5;
}

/* ── Style B: Label only (no real covers) ── */
.cat-label {
  width: 100%; aspect-ratio: 3/4;
  border: 2px solid var(--black); border-radius: 6px;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 8px; padding: 16px;
}
.cat-label-pattern {
  position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(45deg, rgba(0,0,0,0.05) 0 8px, transparent 8px 16px);
}
.cat-label-emoji { font-size: 60px; line-height: 1; position: relative; }
.cat-label-en {
  font-family: var(--font-en); font-size: 9px; font-weight: 800;
  letter-spacing: 0.18em; opacity: 0.55; position: relative;
}
.cat-label-title { font-size: 18px; font-weight: 900; line-height: 1.2; position: relative; }
.cat-label-count {
  background: var(--black); color: #fff;
  padding: 3px 12px; border-radius: 9999px;
  font-family: var(--font-en); font-size: 11px; font-weight: 800;
  margin-top: 4px; position: relative;
}

/* Compare-style sub headers */
.pf-style-label {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--white); border: 2.5px solid var(--black);
  padding: 6px 14px; border-radius: 9999px;
  font-size: 12px; font-weight: 800;
  box-shadow: 3px 3px 0 var(--black);
  margin: 24px 0 16px;
}
.pf-style-label .badge {
  font-family: var(--font-en); font-size: 10px;
  background: var(--black); color: #fff;
  padding: 1px 7px; border-radius: 4px;
  letter-spacing: 0.1em;
}
.pf-book-cover-title {
  font-family: var(--font-cn); font-size: 13px; font-weight: 900; line-height: 1.25;
  color: var(--black); text-shadow: 1px 1px 0 rgba(255,255,255,0.4);
}
.pf-book-cover-author {
  font-family: var(--font-en); font-size: 9px; font-weight: 700;
  letter-spacing: 0.08em; color: rgba(0,0,0,0.6); margin-top: auto;
}
.pf-book-cover-band {
  position: absolute; left: 0; right: 0; bottom: 30%; height: 18px;
  background: rgba(255,255,255,0.9); border-top: 1.5px solid var(--black); border-bottom: 1.5px solid var(--black);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-en); font-size: 8px; font-weight: 800; letter-spacing: 0.15em;
}
.pf-book-title { font-size: 14px; font-weight: 900; line-height: 1.35; }
.pf-book-sub { font-size: 11px; color: #888; font-weight: 600; margin-top: 2px; }
.pf-book-badges { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.pf-book-badge {
  display: inline-block; padding: 2px 8px;
  border-radius: 9999px; font-size: 10px; font-weight: 800;
  letter-spacing: 0.02em;
  border: 1.5px solid var(--black);
}
.pf-book-badge-yellow { background: var(--yellow); color: #0D0D0D; }
.pf-book-badge-black  { background: var(--black);  color: #fff; }
.pf-book-badge-pink   { background: var(--pink);   color: #fff; }
.pf-book-badge-green  { background: var(--green);  color: #0D0D0D; }
.pf-book-meta { display: flex; align-items: center; gap: 6px; font-size: 10px; color: #777; }
.pf-book-role {
  font-family: var(--font-en); font-size: 9px; font-weight: 800;
  padding: 1px 6px; border: 1.5px solid var(--black); border-radius: 3px;
  background: var(--yellow); letter-spacing: 0.04em;
}

/* Image grid */
.pf-img-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pf-img-card {
  background: var(--white); border: 2.5px solid var(--black); border-radius: 14px;
  box-shadow: 4px 4px 0 var(--black); overflow: hidden; cursor: pointer;
  transition: all 120ms;
}
.pf-img-card:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--black); }
.pf-img-thumb {
  width: 100%; aspect-ratio: 1/1; position: relative; overflow: hidden;
  border-bottom: 2.5px solid var(--black);
  display: flex; align-items: center; justify-content: center;
}
.pf-img-thumb-stripes {
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(0,0,0,0.06) 0 10px, transparent 10px 20px);
  pointer-events: none;
}
.pf-img-thumb-label {
  font-family: var(--font-en); font-size: 10px; font-weight: 800;
  letter-spacing: 0.12em; padding: 4px 10px; background: #fff;
  border: 2px solid var(--black); border-radius: 4px; z-index: 2;
}
.pf-img-body { padding: 12px 14px; }
.pf-img-title { font-size: 13px; font-weight: 800; line-height: 1.4; margin-bottom: 4px; }
.pf-img-meta { font-size: 11px; color: #777; }
.pf-img-grid--duo { grid-template-columns: repeat(2, 1fr); max-width: 640px; }
@media (max-width: 640px) { .pf-img-grid--duo { grid-template-columns: 1fr; max-width: none; } }
.pf-img-thumb--photo img {
  width: 100%; height: 100%; object-fit: cover; display: block; position: relative; z-index: 1;
}
.pf-img-thumb--photo .pf-coming { display: none; }

/* Portfolio visual detail (images) */
.pfvis-wrap { max-width: 900px; margin: 0 auto; padding: 24px 24px 80px; }
.pfvis-intro {
  background: #fff; border: 2.5px solid var(--black); border-radius: 14px;
  padding: 18px 20px; margin-bottom: 28px; box-shadow: 4px 4px 0 var(--black);
  font-size: 14px; line-height: 1.75; color: #333;
}
.pfvis-intro strong { font-weight: 900; color: var(--black); }
.pfvis-gallery-note {
  font-size: 12px; color: #888; margin: -6px 0 16px; line-height: 1.5;
}
.pfvis-gallery {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px;
}
.pfvis-item {
  background: #fff; border: 2.5px solid var(--black); border-radius: 12px;
  overflow: hidden; box-shadow: 4px 4px 0 var(--black);
  cursor: zoom-in; transition: transform 120ms, box-shadow 120ms; margin: 0;
}
.pfvis-item:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--black); }
.pfvis-item-media {
  display: flex; align-items: center; justify-content: center;
  min-height: 120px; height: 168px; padding: 10px;
  background: #F5F5F3; border-bottom: 2.5px solid var(--black);
}
.pfvis-item img {
  max-width: 100%; max-height: 100%; width: auto; height: auto;
  display: block; object-fit: contain;
}
img.img-deferred {
  background: linear-gradient(135deg, #e8e8e8 0%, #f5f5f5 50%, #e8e8e8 100%);
  background-size: 200% 100%;
  animation: img-deferred-shimmer 1.2s ease-in-out infinite;
}
@keyframes img-deferred-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
.pfvis-cap {
  padding: 8px 12px; font-size: 10px; font-weight: 700; color: #666;
  background: #FAFAFA; font-family: var(--font-en); letter-spacing: 0.04em;
}
@media (max-width: 560px) {
  .pfvis-gallery { grid-template-columns: 1fr; }
  .pfvis-item-media { height: 200px; }
}
.pfvis-lightbox {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(13,13,13,0.88); align-items: center; justify-content: center;
  padding: 24px 16px;
}
.pfvis-lightbox.on { display: flex; }
.pfvis-lightbox-stage {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; max-width: min(96vw, 980px); width: 100%;
}
.pfvis-lightbox-nav {
  flex-shrink: 0; width: 44px; height: 44px;
  border: 2.5px solid var(--black); border-radius: 50%;
  background: #fff; color: var(--black);
  font-size: 26px; font-weight: 900; line-height: 1; cursor: pointer;
  box-shadow: 3px 3px 0 var(--black);
  transition: transform 120ms, background 120ms, opacity 120ms;
  padding: 0 0 2px;
}
.pfvis-lightbox-nav:hover:not(:disabled) {
  transform: translate(-2px,-2px); background: var(--yellow);
  box-shadow: 5px 5px 0 var(--black);
}
.pfvis-lightbox-nav:disabled {
  opacity: 0.28; cursor: not-allowed; box-shadow: 2px 2px 0 rgba(0,0,0,0.35);
  background: #e8e8e8;
}
@media (max-width: 520px) {
  .pfvis-lightbox-nav { width: 36px; height: 36px; font-size: 22px; }
  .pfvis-lightbox-stage { gap: 8px; }
}
.pfvis-lightbox-inner {
  flex: 1; min-width: 0; max-width: min(82vw, 860px); max-height: 88vh;
  background: #fff; border: 3px solid var(--black); border-radius: 14px;
  box-shadow: 8px 8px 0 var(--yellow); overflow: hidden;
}
.pfvis-lightbox-inner img {
  display: block; max-width: 100%; max-height: calc(88vh - 48px);
  width: auto; height: auto; margin: 0 auto;
}
.pfvis-lightbox-cap {
  padding: 10px 16px; font-size: 12px; font-weight: 800; font-family: var(--font-en);
  letter-spacing: 0.06em; border-top: 2.5px solid var(--black); background: #FAFAFA;
}
.pfvis-lightbox-close {
  position: absolute; top: 16px; right: 16px;
  width: 40px; height: 40px; border: 2.5px solid var(--black); border-radius: 50%;
  background: var(--yellow); font-size: 22px; font-weight: 900; cursor: pointer;
  box-shadow: 3px 3px 0 var(--black); line-height: 1; z-index: 201;
}
.pfvis-lightbox-close:hover { transform: translate(-1px,-1px); }

/* PPT grid */
.pf-ppt-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.pf-ppt-card {
  background: var(--white); border: 2.5px solid var(--black); border-radius: 14px;
  box-shadow: 4px 4px 0 var(--black); overflow: hidden; cursor: pointer;
  transition: all 120ms;
}
.pf-ppt-card:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--black); }
.pf-ppt-thumb {
  width: 100%; aspect-ratio: 16/9; position: relative; overflow: hidden;
  border-bottom: 2.5px solid var(--black);
  background-image: repeating-linear-gradient(45deg, rgba(0,0,0,0.05) 0 12px, transparent 12px 24px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.pf-ppt-thumb-inner {
  background: #fff; border: 2px solid var(--black); border-radius: 6px;
  padding: 16px 18px; box-shadow: 3px 3px 0 var(--black);
  font-size: 12px; font-weight: 900; text-align: center; line-height: 1.4;
  position: relative; z-index: 2;
  max-width: 70%;
}
.pf-ppt-thumb-tag {
  position: absolute; top: 12px; left: 12px;
  font-family: var(--font-en); font-size: 9px; font-weight: 800;
  letter-spacing: 0.12em; padding: 3px 8px; background: var(--black); color: #fff;
  border-radius: 3px; z-index: 3;
}
.pf-ppt-thumb-pages {
  position: absolute; bottom: 10px; right: 12px;
  font-family: var(--font-en); font-size: 10px; font-weight: 700;
  background: #fff; border: 1.5px solid var(--black); padding: 2px 7px; border-radius: 3px;
  z-index: 3;
}
.pf-ppt-body { padding: 14px 16px; }
.pf-ppt-title { font-size: 14px; font-weight: 800; line-height: 1.4; margin-bottom: 4px; }
.pf-ppt-meta { font-size: 11px; color: #777; }
.pf-ppt-thumb--cover .pf-ppt-cover {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1;
}
.pf-ppt-thumb--cover.has-cover .pf-ppt-thumb-inner { opacity: 0; pointer-events: none; }
.pf-ppt-thumb--cover.has-cover { padding: 0; }

/* Deck detail page */
.deck-wrap { max-width: 900px; margin: 0 auto; padding: 24px 24px 80px; }
.deck-grid-2 {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 24px;
}
@media (max-width: 720px) { .deck-grid-2 { grid-template-columns: 1fr; } }
.deck-block { margin-bottom: 8px; }
.deck-block-full { margin-bottom: 28px; }
.deck-text { font-size: 14px; line-height: 1.75; color: #333; margin: 0 0 12px; }
.deck-text-muted { font-size: 12px; color: #888; margin-top: 12px; }
.deck-list {
  margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.75; color: #333;
}
.deck-list li { margin-bottom: 8px; }
.deck-list strong { font-weight: 800; }
.deck-outline {
  display: flex; flex-direction: column; gap: 10px; margin-top: 12px;
}
.deck-outline-item {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 12px 14px; background: #fff; border: 2px solid var(--black);
  border-radius: 10px; box-shadow: 3px 3px 0 var(--black);
}
.deck-outline-num {
  flex-shrink: 0; font-family: var(--font-en); font-size: 11px; font-weight: 800;
  background: var(--yellow); border: 2px solid var(--black); padding: 4px 8px; border-radius: 4px;
}
.deck-outline-item div { flex: 1; min-width: 0; }
.deck-outline-item strong { display: block; font-size: 14px; margin-bottom: 2px; }
.deck-outline-item span { font-size: 12px; color: #666; line-height: 1.5; }
.deck-pdf-panel {
  background: #fff; border: 2.5px solid var(--black); border-radius: 14px;
  box-shadow: 5px 5px 0 var(--black); overflow: hidden; margin-bottom: 32px;
}
.deck-pdf-embed-wrap {
  position: relative; width: 100%; aspect-ratio: 16/10; min-height: 520px; background: #525659;
}
.deck-pdf-embed {
  width: 100%; height: 100%; border: 0; display: block; background: #525659;
}

/* Crowdfunding deck — Modian link cards */
.deck-link-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 32px;
}
@media (max-width: 720px) { .deck-link-grid { grid-template-columns: 1fr; } }
.deck-link-card {
  display: flex; flex-direction: column; gap: 12px;
  padding: 18px 18px 16px; background: #fff;
  border: 2.5px solid var(--black); border-radius: 14px;
  box-shadow: 5px 5px 0 var(--black);
  text-decoration: none; color: inherit;
  transition: transform 120ms, box-shadow 120ms;
}
.deck-link-card:not(.proto-card):hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--black);
}
.deck-link-card.proto-card:hover {
  transform: translate(-2px, -2px);
}
.deck-link-card--gold { background: linear-gradient(180deg, #FFFBEB 0%, #fff 48%); }
.deck-link-card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.deck-link-card-num {
  font-family: var(--font-en); font-size: 11px; font-weight: 800;
  background: var(--yellow); border: 2px solid var(--black);
  padding: 4px 10px; border-radius: 4px;
}
.deck-link-card-platform {
  font-family: var(--font-en); font-size: 10px; font-weight: 700;
  letter-spacing: 0.06em; color: #888;
}
.deck-link-card-title {
  font-size: 16px; font-weight: 900; line-height: 1.35; margin: 0;
}
.deck-link-card-desc {
  font-size: 13px; line-height: 1.65; color: #444; margin: 0; flex: 1;
}
.deck-link-card-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.deck-link-card-stats > div {
  padding: 10px 8px; background: #FAFAFA;
  border: 2px solid var(--black); border-radius: 8px; text-align: center;
}
.deck-link-stat-num {
  display: block; font-size: 14px; font-weight: 900; line-height: 1.2;
}
.deck-link-stat-label {
  display: block; font-size: 10px; color: #666; margin-top: 2px;
}
.deck-link-card-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding-top: 10px; border-top: 2px dashed rgba(0,0,0,0.15);
  font-size: 11px; color: #666;
}
.deck-link-card-cta {
  font-weight: 800; color: var(--black); white-space: nowrap;
}
.deck-link-card-media {
  margin: -18px -18px 0;
  height: 168px;
  border-bottom: 2.5px solid var(--black);
  border-radius: 11px 11px 0 0;
  background: #e8e8e8;
  overflow: hidden;
}
.deck-link-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 70%;
}
/* 原型产品页预览图：裁切/缩放写在 index.html → page-product-prototypes 各 <img> 的 style 里 */
.proto-link-grid .deck-link-card-media img {
  transform-origin: center center;
}

/* 原型Demo — 差异化卡片 */
.proto-link-grid .deck-link-card {
  gap: 10px;
  overflow: hidden;
  border-color: var(--black);
  box-shadow: 5px 5px 0 var(--black);
  transition: transform 120ms, box-shadow 120ms, border-color 160ms;
}
.proto-link-grid .deck-link-card-media {
  transition: border-color 160ms;
}
.proto-card-tags {
  display: flex; flex-wrap: wrap; gap: 5px; justify-content: flex-end;
}
.proto-link-grid .proto-card-tags .tag {
  font-size: 9px; padding: 2px 8px; border-width: 1.5px;
}
.proto-card-highlight {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  font-size: 12px; font-weight: 800; line-height: 1.3;
  padding: 6px 12px; border: 2px solid var(--black); border-radius: 8px;
  background: transparent;
}
.proto-link-grid .deck-link-card-head {
  flex-wrap: wrap; gap: 6px;
}
.proto-link-grid .deck-link-card-num {
  font-size: 12px; padding: 5px 12px;
  background: transparent;
}
.proto-link-grid .deck-link-card-platform {
  display: none;
}
.proto-link-grid .deck-link-card-title {
  font-size: 17px; margin-top: 2px;
}
.proto-link-grid .deck-link-card-desc {
  font-size: 12.5px; line-height: 1.6; color: #333; flex: 1;
}
.proto-link-grid .deck-link-card-foot {
  font-size: 11px; padding-top: 8px; margin-top: auto;
}
.proto-link-grid .deck-link-card-cta {
  padding: 6px 12px; border: 2px solid var(--black); border-radius: 999px;
  background: var(--white); font-size: 11px;
  transition: transform 100ms, background 160ms, color 160ms, border-color 160ms;
}
.proto-link-grid .deck-link-card:hover .deck-link-card-cta {
  transform: translateX(2px);
}

/* 01 古诗音乐启蒙 */
.proto-link-grid .deck-link-card.proto-card--music:hover {
  border-color: #9CB8D4;
  box-shadow: 7px 7px 0 #9CB8D4;
}
.proto-link-grid .deck-link-card.proto-card--music:hover .deck-link-card-media {
  border-bottom-color: #9CB8D4;
}
.proto-link-grid .deck-link-card.proto-card--music:hover .deck-link-card-cta {
  background: #4DAAFF; color: #fff; border-color: #4DAAFF;
}

/* 02 蒙德里安美育 */
.proto-link-grid .deck-link-card.proto-card--art:hover {
  border-color: #D4A0A0;
  box-shadow: 7px 7px 0 #D4A0A0;
}
.proto-link-grid .deck-link-card.proto-card--art:hover .deck-link-card-media {
  border-bottom-color: #D4A0A0;
}
.proto-link-grid .deck-link-card.proto-card--art:hover .deck-link-card-cta {
  background: #C98888; color: #fff; border-color: #C98888;
}

/* 03 八字学堂 */
.proto-link-grid .deck-link-card.proto-card--culture:hover {
  border-color: #D4B88A;
  box-shadow: 7px 7px 0 #D4B88A;
}
.proto-link-grid .deck-link-card.proto-card--culture:hover .deck-link-card-media {
  border-bottom-color: #D4B88A;
}
.proto-link-grid .deck-link-card.proto-card--culture:hover .deck-link-card-cta {
  background: #D4B88A; color: #000; border-color: #D4B88A;
}

/* 04 古诗音乐实验室 */
.proto-link-grid .deck-link-card.proto-card--lab:hover {
  border-color: #E0B0C8;
  box-shadow: 7px 7px 0 #E0B0C8;
}
.proto-link-grid .deck-link-card.proto-card--lab:hover .deck-link-card-media {
  border-bottom-color: #E0B0C8;
}
.proto-link-grid .deck-link-card.proto-card--lab:hover .deck-link-card-cta {
  background: #F472B6; color: #fff; border-color: #F472B6;
}

/* 05 小丑牌指南 */
.proto-link-grid .deck-link-card.proto-card--game:hover {
  border-color: #B0A5D0;
  box-shadow: 7px 7px 0 #B0A5D0;
}
.proto-link-grid .deck-link-card.proto-card--game:hover .deck-link-card-media {
  border-bottom-color: #B0A5D0;
}
.proto-link-grid .deck-link-card.proto-card--game:hover .deck-link-card-cta {
  background: #967ebf; color: #fff; border-color: #967ebf;
}

.deck-link-card--balatro { background: linear-gradient(180deg, #2d1b4e 0%, #fff 45%); }
.deck-link-card--balatro .deck-link-card-title { color: #1a0a2e; }
/* Crowdfunding product showcase */
.deck-cf-showcase-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 32px;
}
@media (max-width: 720px) { .deck-cf-showcase-grid { grid-template-columns: 1fr; } }
.deck-cf-project { margin-bottom: 0; }
.deck-cf-project--gold .deck-cf-project-num { background: #FFF0B3; }
.deck-cf-project-head {
  display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px;
}
.deck-cf-project-num {
  flex-shrink: 0; font-family: var(--font-en); font-size: 11px; font-weight: 800;
  background: #FFE0EF; border: 2px solid var(--black); padding: 4px 10px; border-radius: 4px;
}
.deck-cf-project-title {
  font-size: 15px; font-weight: 900; line-height: 1.35; margin: 0;
}
.deck-cf-hero {
  border: 2.5px solid var(--black); border-radius: 12px;
  box-shadow: 4px 4px 0 var(--black); background: #FAFAFA;
  padding: 8px; line-height: 0;
}
.deck-cf-hero img {
  width: 100%; height: auto; display: block;
  object-fit: contain; object-position: center;
}

/* Home portfolio mini-card */
.home-pf-card {
  background: var(--white); border: var(--border); border-radius: var(--radius);
  box-shadow: 4px 4px 0 var(--black); overflow: hidden; cursor: pointer;
  transition: all 120ms; display: flex; flex-direction: column;
}
.home-pf-card:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--black); }
.home-pf-thumb {
  width: 100%; aspect-ratio: 4/3; border-bottom: 2.5px solid var(--black);
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.home-pf-body { padding: 12px 14px; }
.home-pf-tag {
  display: inline-block; font-family: var(--font-en); font-size: 9px; font-weight: 800;
  letter-spacing: 0.12em; padding: 2px 7px; border: 1.5px solid var(--black);
  border-radius: 3px; margin-bottom: 6px;
}
.home-pf-title { font-size: 14px; font-weight: 800; line-height: 1.4; margin-bottom: 4px; }
.home-pf-desc  { font-size: 11px; color: #666; line-height: 1.55; }

/* Site footer · 备案信息 */
.site-footer {
  margin-top: 56px; padding: 28px 24px 40px;
  background: #fff; border-top: 3px solid var(--black);
  text-align: center;
}
.site-footer-inner { max-width: 900px; margin: 0 auto; }
.site-footer-copy { font-size: 12px; color: #888; font-weight: 700; margin-bottom: 10px; }
.site-footer-legal {
  font-size: 12px; color: #666; line-height: 1.8;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 10px;
}
.site-footer-legal a {
  color: #555; text-decoration: none; font-weight: 700;
  transition: color 100ms;
}
.site-footer-legal a:hover { color: var(--black); text-decoration: underline; }
.site-footer-legal-sep { color: #ccc; user-select: none; }
.site-footer-mps {
  display: inline-flex; align-items: center; gap: 5px; vertical-align: middle;
}
.site-footer-mps-icon {
  width: 16px; height: 16px; display: block; flex-shrink: 0;
}

/* Coming-soon overlay for portfolio placeholders */
.pf-coming {
  position: absolute; top: 8px; right: 8px;
  font-family: var(--font-en); font-size: 9px; font-weight: 800;
  background: var(--yellow); border: 1.5px solid var(--black);
  padding: 2px 7px; border-radius: 3px; letter-spacing: 0.08em;
  transform: rotate(3deg); z-index: 4;
}

/* ════════════════════════════════════════════════════════════════
   📱 MOBILE RESPONSIVE STYLES (tablet & phone)
   桌面端样式不受影响，只在屏幕变窄时生效
   ════════════════════════════════════════════════════════════════ */

/* ───────── TABLET BREAKPOINT (≤ 900px) ───────── */
@media (max-width: 900px) {
  /* Grids: 3-col → 2-col */
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .pf-book-grid { grid-template-columns: repeat(3, 1fr); }
  .product-screenshots { grid-template-columns: repeat(2, 1fr); }

  /* Hero: tighter padding, smaller image column */
  .home-hero {
    grid-template-columns: 1fr 340px;
    gap: 28px;
    padding: 24px 24px 36px;
  }
  .hero-h1 { font-size: 50px; }

  /* Section title smaller */
  .sec-title { font-size: 34px; }

  /* About body: ID card slightly smaller */
  .id-card-v2 { width: 260px; }
}

/* ───────── PHONE BREAKPOINT (≤ 640px) ───────── */
@media (max-width: 640px) {
  /* ───── NAV ───── */
  .nav-wrap {
    padding: 12px 12px 6px;
    top: 6px;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    justify-content: flex-start;
  }
  .nav-wrap::-webkit-scrollbar { display: none; }
  .nav-pill {
    min-width: 0;
    padding: 4px 6px;
    gap: 2px;
    flex-shrink: 0;
    margin: 0 auto;
  }
  .nav-item {
    padding: 6px 12px;
    font-size: 13px;
    border-width: 2px;
  }
  .nav-mail {
    width: 36px; height: 36px;
    margin-left: 4px;
    border-width: 2px;
  }
  .nav-mail svg { width: 18px; height: 18px; }

  /* ───── SECTION WRAPPER ───── */
  .section { padding: 28px 16px; }

  /* ───── HOME HERO ───── */
  .home-hero {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 16px 16px 32px;
    min-height: auto;
    text-align: left;
  }
  /* 头像放到上面、文字放到下面 */
  .home-hero > div:first-child { order: 2; }
  .home-hero .hero-img-box { order: 1; }
  .hero-h1 {
    font-size: 30px;
    line-height: 1.4;
    margin-bottom: 14px;
  }
  /* override inline white-space:nowrap on the "在 AI 时代..." span */
  .hero-h1 span[style*="nowrap"] { white-space: normal !important; }
  .hero-sub { font-size: 12px; margin-bottom: 20px; line-height: 1.6; }
  .hero-img-box {
    max-width: 220px;
    margin: 0 auto;
    border-radius: 20px;
    box-shadow: 5px 5px 0 var(--black);
  }
  .hl-skew { padding: 2px 10px 3px; }

  /* ───── SECTION HEADERS ───── */
  .sec-header {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
  }
  .sec-title {
    font-size: 26px;
    padding: 3px 12px;
    margin-bottom: 16px;
  }
  .browse-link { font-size: 12px; }

  /* ───── GRIDS：首页 3 列卡片在手机端依然保持 3 列，仅内部收紧 ───── */
  .grid-3 { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .grid-2 { grid-template-columns: 1fr; gap: 14px; }

  /* 文章卡（首页 Articles）：极致紧凑 */
  .art-card .art-img, .art-card .art-img-placeholder { font-size: 20px; }
  .art-body { padding: 7px 8px 8px; }
  .art-meta { gap: 4px; margin-bottom: 4px; flex-wrap: wrap; }
  .art-date { font-size: 8.5px; }
  .art-title { font-size: 11px; line-height: 1.3; margin-bottom: 3px;
               display: -webkit-box; -webkit-line-clamp: 2;
               -webkit-box-orient: vertical; overflow: hidden; }
  .art-desc  { font-size: 9.5px; line-height: 1.4;
               display: -webkit-box; -webkit-line-clamp: 2;
               -webkit-box-orient: vertical; overflow: hidden; }
  .tag { font-size: 8.5px; padding: 1.5px 6px; border-width: 1.5px; }

  /* 首页 Portfolio mini-card：极致紧凑 */
  .home-pf-body { padding: 7px 8px 8px; }
  .home-pf-tag  { font-size: 7.5px; padding: 1.5px 5px; margin-bottom: 3px; letter-spacing: 0.06em; }
  .home-pf-title { font-size: 11px; line-height: 1.3; margin-bottom: 2px;
                   display: -webkit-box; -webkit-line-clamp: 2;
                   -webkit-box-orient: vertical; overflow: hidden; }
  .home-pf-desc  { font-size: 9.5px; line-height: 1.4;
                   display: -webkit-box; -webkit-line-clamp: 2;
                   -webkit-box-orient: vertical; overflow: hidden; }

  /* 首页 Products mini-card：极致紧凑 */
  .home-prod-card { padding: 10px 9px; gap: 6px; }
  .home-prod-card-icon { width: 30px; height: 30px; font-size: 15px; border-radius: 8px; border-width: 1.5px; }
  .home-prod-card-icon img { width: 18px; height: 18px; }
  .home-prod-card-name { font-size: 11.5px; line-height: 1.3; }
  .home-prod-card-desc { font-size: 9.5px; line-height: 1.4;
                         display: -webkit-box; -webkit-line-clamp: 3;
                         -webkit-box-orient: vertical; overflow: hidden; }
  .home-prod-card-tags { gap: 3px; flex-wrap: wrap; }
  .home-prod-card-tags .tag { font-size: 8px !important; padding: 1px 5px; }

  /* 卡片阴影也缩小一些，避免拥挤 */
  .art-card, .home-pf-card, .home-prod-card { box-shadow: 3px 3px 0 var(--black); border-width: 2px; }
  .art-card:hover, .home-pf-card:hover, .home-prod-card:hover { box-shadow: 4px 4px 0 var(--black); }

  /* ───── CONTACT MODAL ───── */
  .contact-modal-mask { padding: 16px; }
  .contact-modal { padding: 28px 22px 24px; border-radius: 20px; }
  .contact-title { font-size: 26px; }
  .contact-email-btn { font-size: 16px; padding: 14px 16px; word-break: break-all; }

  /* ───── ABOUT PAGE ───── */
  .about-welcome { padding: 32px 16px 0; }
  .welcome-title { font-size: 30px; margin-bottom: 20px; }
  .about-body {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .about-text { font-size: 14px; line-height: 1.8; }
  .id-card-v2 {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    transform: rotate(0deg);
    box-shadow: 6px 6px 0 var(--black);
  }
  .id-card-v2-body { gap: 10px; padding: 12px; }
  .id-card-v2-left { width: 92px; }
  .id-avatar-v2 { height: 104px; }

  /* ───── STATEMENT (typewriter) ───── */
  .statement-box { margin: 28px auto; padding: 0 16px; }
  .statement-typed-wrap { font-size: 22px; line-height: 1.5; min-height: calc(22px * 1.5 * 3); }
  .statement-lead { font-size: 22px; }
  #typewriter-highlight, #typewriter-cursor2 { font-size: 22px; padding: 3px 8px; }
  .statement-sub { font-size: 13px; }

  /* ───── RECENT LIFE ───── */
  .recent-wrap { padding: 28px 16px; }
  .recent-label {
    left: 50%;
    transform: translateX(-50%) rotate(-1deg);
    font-size: 14px;
    padding: 6px 16px;
  }
  .recent-cards-row {
    flex-direction: column;
    gap: 12px;
    margin-top: 56px;
  }
  .recent-card2 {
    width: 100%;
    max-width: 280px;
  }
  .recent-arrow { transform: rotate(90deg); width: 40px; height: 30px; }
  .recent-arrow svg { width: 40px; height: 30px; }
  .recent-nav { display: none; }

  /* ───── TIMELINE / GAME ───── */
  .game-wrap { padding: 28px 16px; }
  .game-title { font-size: 26px; margin-bottom: 24px; }
  .timeline-box { padding: 20px 14px 24px; }
  .tl-header-row, .tl-row {
    grid-template-columns: 1fr 36px 1fr;
  }
  .timeline-col-title { font-size: 13px; padding: 5px 12px; }
  .tl2-card { padding: 8px 10px; font-size: 11px; gap: 8px; }
  .tl2-icon { width: 28px; height: 28px; font-size: 14px; }
  .tl2-title { font-size: 11px; }
  .tl2-date { font-size: 10px; }

  /* ───── ARTICLES PAGE ───── */
  .journal-header { padding: 32px 16px 24px; }
  .journal-title { font-size: 42px; }
  .journal-sub { font-size: 13px; }
  .art-list { padding: 0 16px 32px; gap: 12px; }
  /* 保持左右横向布局，缩略图缩小 */
  .art-list-item { flex-direction: row; align-items: stretch; }
  .art-list-img {
    width: 96px;
    aspect-ratio: 1/1;
    font-size: 28px;
    flex-shrink: 0;
  }
  .art-list-body { padding: 10px 12px; gap: 4px; }
  .art-list-title { font-size: 14px; line-height: 1.35; }
  .art-list-desc {
    font-size: 11.5px; line-height: 1.5;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
  }
  .art-list-arrow {
    width: 30px; height: 30px;
    margin: 0 12px 0 0;
    align-self: center;
    font-size: 14px;
  }

  /* ───── ARTICLE DETAIL ───── */
  .article-wrap { padding: 16px 16px 56px; }
  .article-hero { aspect-ratio: 16/9; margin-bottom: 20px; }
  .article-hero-emoji { font-size: 64px; }
  .article-h1 { font-size: 26px; margin-bottom: 16px; }
  .article-lead { font-size: 15px; padding: 14px 16px; margin-bottom: 24px; }
  .article-body { font-size: 15px; }
  .article-body h2 { font-size: 20px; margin: 28px 0 12px; }
  .article-body h3 { font-size: 16px; margin: 20px 0 8px; }
  .article-callout {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 14px 16px;
  }
  .article-callout-icon { width: 36px; height: 36px; font-size: 18px; }
  .article-related { grid-template-columns: 1fr; }
  .article-author { padding: 14px; gap: 12px; }

  /* ───── PRODUCTS PAGE ───── */
  .prod-header { padding: 32px 16px 24px; }
  .prod-title { font-size: 36px; }
  .prod-sub { font-size: 13px; }
  .prod-grid {
    grid-template-columns: 1fr;
    padding: 0 16px 32px;
    gap: 14px;
  }
  .prod-card { padding: 22px 20px; }
  .prod-name { font-size: 18px; }
  .prod-desc { font-size: 13px; }
  .prod-icon { width: 46px; height: 46px; font-size: 24px; }

  /* ───── PRODUCT DETAIL ───── */
  .product-wrap { padding: 16px 16px 56px; }
  .product-header {
    grid-template-columns: 72px 1fr;
    gap: 14px;
    margin-bottom: 22px;
  }
  .product-header-icon {
    width: 72px; height: 72px; font-size: 36px;
    border-radius: 18px;
  }
  .product-name { font-size: 32px; }
  .product-tagline { font-size: 14px; }
  .product-cta { padding: 9px 18px; font-size: 13px; }
  .product-hero { aspect-ratio: 4/3; margin-bottom: 24px; }
  .product-hero-cats {
    justify-content: center; overflow-x: auto; padding: 16px;
    -webkit-overflow-scrolling: touch;
  }
  .product-hero-cats img { width: 88px; height: 176px; }
  #page-product-caty .product-hero { aspect-ratio: 16 / 10; min-height: 220px; }
  .product-screenshots--caty { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-features { grid-template-columns: 1fr; gap: 12px; }
  .product-feature { padding: 14px 16px; }
  .product-screenshots { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .product-screenshots--phone { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
  .product-related-grid { grid-template-columns: 1fr; }
  .product-section-title { font-size: 12px; padding: 3px 10px; margin: 24px 0 12px; }

  /* ───── PORTFOLIO PAGE ───── */
  .pf-header { padding: 32px 16px 18px; }
  .pf-title { font-size: 38px; }
  .pf-sub { font-size: 13px; margin-bottom: 14px; }
  .pf-filter { padding: 6px 12px; font-size: 12px; }
  .pf-section { padding: 18px 16px; }
  .pf-section-header { padding-bottom: 6px; margin-bottom: 14px; }
  .pf-section-title { font-size: 22px; }
  .pf-section-zh { font-size: 14px; }
  .pf-book-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .pf-img-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .pf-ppt-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .pf-img-body { padding: 9px 11px; }
  .pf-img-title { font-size: 11.5px; line-height: 1.35; margin-bottom: 2px; }
  .pf-img-meta { font-size: 10px; }
  .pf-ppt-body { padding: 9px 11px; }
  .pf-ppt-title { font-size: 11.5px; line-height: 1.35; margin-bottom: 2px; }
  .pf-ppt-meta { font-size: 10px; }
  .pf-ppt-thumb { padding: 14px; }
  .pf-ppt-thumb-inner { padding: 10px 12px; font-size: 10px; max-width: 90%; }
  .pf-book-title { font-size: 12px; line-height: 1.3; }
  .pf-book-sub { font-size: 10px; }
  .pf-style-label { margin: 18px 0 12px; }

  /* ───── PORTFOLIO VISUAL DETAIL ───── */
  .pfvis-wrap { padding: 16px 16px 56px; }
  .pfvis-intro { padding: 16px 18px; font-size: 13px; }

  /* ───── BOOK CATEGORY DETAIL ───── */
  .bookcat-wrap { padding: 16px 16px 56px; }
  .bookcat-hero { padding: 28px 22px; margin-bottom: 22px; }
  .bookcat-hero-title { font-size: 28px; }
  .bookcat-hero-sub { font-size: 13px; }
  .deck-pdf-embed-wrap { min-height: 280px; aspect-ratio: 4/3; }
  .book-row { padding: 18px; gap: 18px; }
  .book-row-title { font-size: 19px; }
  .book-row-desc { font-size: 13px; }
  .book-row-cover { max-width: 200px; margin: 0 auto; }

  /* ───── QUEST DETAIL ───── */
  .quest-back-sticky { top: 64px; }
  .quest-meta-pill { font-size: 11px; padding: 3px 10px; }

  /* ───── FOOTER 备案 ───── */
  .site-footer { padding: 22px 16px 32px; }
  .site-footer-copy { font-size: 11px; }
  .site-footer-legal { font-size: 11px; gap: 4px 8px; }

  /* ───── LIGHTBOX ───── */
  .pfvis-lightbox { padding: 12px 8px; }
  .pfvis-lightbox-inner { max-width: calc(100vw - 96px); }
  .pfvis-lightbox-close { top: 10px; right: 10px; width: 36px; height: 36px; font-size: 20px; }
}

/* ───────── EXTRA-SMALL PHONE (≤ 380px) ───────── */
@media (max-width: 380px) {
  .nav-item { padding: 6px 10px; font-size: 12px; }
  .hero-h1 { font-size: 26px; }
  .hero-img-box { max-width: 190px; }
  .welcome-title { font-size: 24px; }
  .journal-title { font-size: 30px; }
  .pf-title { font-size: 30px; }
  .prod-title { font-size: 28px; }
  .product-name { font-size: 24px; }
  .section { padding: 22px 14px; }
  /* gap 更紧 */
  .grid-3, .pf-img-grid, .pf-ppt-grid, .pf-book-grid { gap: 8px; }
  /* 文章列表缩略图再小一点 */
  .art-list-img { width: 80px; }
}
