/* 圖片有 width/height 屬性時保持原比例（防版面跳動，2026-10-29 健檢 M2/M4）；放最前面，後面同權重的規則照舊生效 */
.lp img { height: auto; }

    /* lp-reset：把官網 Bootstrap reboot 對標題、段落、按鈕的預設樣式歸零 */
    .lp h1, .lp h2, .lp h3, .lp h4, .lp h5, .lp h6 { margin: 0; font-size: inherit; font-weight: inherit; line-height: 1.2; color: inherit; }  /* line-height 1.2 與原頁 Bootstrap 標題一致 */
    .lp p, .lp ul, .lp ol, .lp dl, .lp figure, .lp blockquote { margin: 0; }
    .lp p, .lp ul, .lp ol { margin-bottom: 1rem; }  /* 原頁 Bootstrap 的 1rem 下邊距，部分區塊的間距靠它 */
    .lp p { font-size: inherit; line-height: inherit; }  /* 官網 p 是 18px／28px，原頁 p 吃父層 */
    .lp ul, .lp ol { padding: 0; }
    .lp a { color: inherit; text-decoration: none; }
    .lp img, .lp svg, .lp video { vertical-align: middle; max-width: 100%; }
    .lp button { font: inherit; color: inherit; background: none; border: 0; padding: 0; border-radius: 0; }
    .lp table { border-collapse: collapse; }
    .lp th { text-align: inherit; }
    .lp label { display: inline; margin: 0; }

    /* ══════════════════════════════════════
       麥塊 Python ｜ 兒童樂園風 + 麥塊像素元素
       — 明亮白底、草地綠主視覺、橘蘋橘 CTA
       — 5-9 年級「不想升級」留存課
    ══════════════════════════════════════ */

    .lp {
      /* 麥塊風 palette */
      --grass-green:  #4FAF3D;
      --grass-deep:   #3A8A2C;
      --grass-glow:   rgba(79, 175, 61, 0.35);
      --sky-blue:     #4FB7E8;
      --sky-deep:     #2E8FBE;
      --dirt-brown:   #8B5A2B;
      --dirt-deep:    #5C3A1B;
      --sun-yellow:   #FFD93D;
      --tnt-red:      #E55353;

      /* 橘蘋品牌 */
      --orange:       #FFA300;
      --orange-glow:  rgba(255, 163, 0, 0.4);

      /* 底色 / 字色 */
      --bg-light:     #FAF8F1;
      --bg-white:     #FFFFFF;
      --bg-soft:      #F4F0E5;
      --text-dark:    #2D2A24;
      --text-mute:    rgba(45, 42, 36, 0.82);
      --text-dim:     rgba(45, 42, 36, 0.72);
      --grass-text:   #2C7A24;   /* 文字專用深綠：過 AA 4.5（grass-deep 當小字僅 4.33）*/
      --tnt-text:     #C0392B;   /* 文字專用深紅：過 AA 4.5（tnt-red 當小字僅 3.69）*/

      --line-soft:    rgba(0, 0, 0, 0.08);
      --line-dim:     rgba(0, 0, 0, 0.14);
      --line-bright:  rgba(79, 175, 61, 0.4);
    }

    .lp, .lp *, .lp *::before, .lp *::after { box-sizing: border-box; }
    .lp {
      background: var(--bg-light);
      font-family: 'Noto Sans TC', sans-serif;
      font-size: 1rem;   /* 1rem = 18px（官網 html），與正式站一致；部分區塊釘 px，見 README */
      color: var(--text-dark);
      font-weight: 400;
      line-height: 1.7;
      overflow-x: clip;
    }

    .lp .mono { font-family: 'JetBrains Mono', monospace; }
    .lp .pixel { font-family: 'Pixelify Sans', monospace; letter-spacing: 0; }

    /* ── 麥塊風方塊邊框（多階陰影模擬像素厚度） ── */
    .lp .block-border {
      box-shadow:
        inset 0 -4px 0 rgba(0,0,0,0.18),
        inset 0 4px 0 rgba(255,255,255,0.4),
        inset -4px 0 0 rgba(0,0,0,0.10),
        inset 4px 0 0 rgba(255,255,255,0.18);
    }

    /* ══════════════════════════════════════ Layout ══════════════════════════════════════ */
    .lp .container-wide { max-width: 1280px; margin: 0 auto; padding: 0 48px; }
    .lp .container-narrow { max-width: 880px; margin: 0 auto; padding: 0 40px; }
    @media (max-width: 768px) {
      .lp .container-wide,
    .lp .container-narrow { padding: 0 22px; }
    }

    /* ══════════════════════════════════════ 章節通用 ══════════════════════════════════════ */
    .lp .chapter {
      padding: 96px 0;
      background: var(--bg-light);
      position: relative;
    }
    .lp .chapter.chapter-alt { background: var(--bg-soft); }
    .lp .chapter.chapter-white { background: var(--bg-white); }
    @media (max-width: 768px) {
      .lp .chapter { padding: 64px 0; }
    }

    /* ── Voxel 裝飾：grass-block 分隔條（章節間） ── */
    .lp .grass-strip {
      height: 22px;
      background:
        linear-gradient(180deg,
          var(--grass-green) 0 8px,
          var(--grass-deep) 8px 10px,
          var(--dirt-brown) 10px 22px);
      position: relative;
      border-top: 2px solid var(--grass-deep);
      border-bottom: 2px solid var(--dirt-deep);
    }
    .lp .grass-strip::before {
      content: '';
      position: absolute;
      top: 0; left: 0; right: 0;
      height: 8px;
      background-image:
        radial-gradient(circle at 8% 50%, var(--grass-deep) 0 2px, transparent 2px),
        radial-gradient(circle at 25% 30%, var(--grass-deep) 0 1.5px, transparent 1.5px),
        radial-gradient(circle at 42% 60%, var(--grass-deep) 0 2px, transparent 2px),
        radial-gradient(circle at 60% 40%, var(--grass-deep) 0 1.5px, transparent 1.5px),
        radial-gradient(circle at 75% 55%, var(--grass-deep) 0 2px, transparent 2px),
        radial-gradient(circle at 92% 35%, var(--grass-deep) 0 1.5px, transparent 1.5px);
    }
    .lp .grass-strip::after {
      content: '';
      position: absolute;
      left: 0; right: 0; bottom: 0;
      height: 12px;
      background-image:
        linear-gradient(90deg,
          transparent 0 10%,
          var(--dirt-deep) 10% 12%,
          transparent 12% 28%,
          var(--dirt-deep) 28% 30%,
          transparent 30% 50%,
          var(--dirt-deep) 50% 52%,
          transparent 52% 70%,
          var(--dirt-deep) 70% 72%,
          transparent 72% 88%,
          var(--dirt-deep) 88% 90%,
          transparent 90%);
      opacity: 0.5;
    }

    /* ── Voxel 浮動立方體裝飾 ── */
    .lp .voxel-deco {
      position: absolute;
      width: 32px; height: 32px;
      background: var(--grass-green);
      box-shadow:
        inset 0 -6px 0 var(--grass-deep),
        inset 0 4px 0 rgba(255,255,255,0.3),
        inset -4px 0 0 rgba(0,0,0,0.1),
        4px 4px 0 rgba(0,0,0,0.08);
      pointer-events: none;
      z-index: 1;
      animation: lp-float-cube 6s ease-in-out infinite;
    }
    .lp .voxel-deco.c-dirt {
      background: var(--dirt-brown);
      box-shadow:
        inset 0 -6px 0 var(--dirt-deep),
        inset 0 4px 0 rgba(255,255,255,0.2),
        inset -4px 0 0 rgba(0,0,0,0.15),
        4px 4px 0 rgba(0,0,0,0.08);
    }
    .lp .voxel-deco.c-sky {
      background: var(--sky-blue);
      box-shadow:
        inset 0 -6px 0 var(--sky-deep),
        inset 0 4px 0 rgba(255,255,255,0.4),
        inset -4px 0 0 rgba(0,0,0,0.08),
        4px 4px 0 rgba(0,0,0,0.08);
    }
    .lp .voxel-deco.c-gold {
      background: var(--sun-yellow);
      box-shadow:
        inset 0 -6px 0 #C7A52F,
        inset 0 4px 0 rgba(255,255,255,0.4),
        inset -4px 0 0 rgba(0,0,0,0.08),
        4px 4px 0 rgba(0,0,0,0.08);
    }
    .lp .voxel-deco.sm { width: 20px; height: 20px; }
    .lp .voxel-deco.lg { width: 48px; height: 48px; }
    @keyframes lp-float-cube {
      0%, 100% { transform: translateY(0) rotate(0deg); }
      50%      { transform: translateY(-12px) rotate(3deg); }
    }
    @media (max-width: 768px) {
      .lp .voxel-deco { display: none; } /* 手機隱藏避免擠 */
    }

    /* 章節大標 */
    .lp .epic-headline {
      font-size: clamp(2rem, 5vw, 48px);
      font-weight: 800;
      line-height: 1.15;
      letter-spacing: -1px;
      color: var(--text-dark);
      margin: 0 0 20px;
    }
    @media (max-width: 575px) {
      .lp .epic-headline { font-size: 1.7rem; letter-spacing: -0.5px; }
    }
    .lp .epic-headline .accent {
      color: var(--text-dark);
      position: relative;
      display: inline-block;
    }
    .lp .epic-headline .accent::after {
      content: '';
      position: absolute;
      left: 0; right: 0; bottom: -6px;
      height: 8px;
      background: var(--sun-yellow);
      z-index: -1;
      opacity: 0.7;
    }
    .lp .epic-headline .grass { color: var(--grass-deep); }

    .lp .epic-lede {
      font-size: clamp(16.8px, 1.6vw, 21.12px);
      line-height: 1.65;
      color: var(--text-mute);
      max-width: 720px;
      font-weight: 400;
    }
    .lp .epic-lede strong { color: var(--text-dark); font-weight: 700; }

    /* ══════════════════════════════════════ Hero / PROLOGUE — 全滿版 cinematic hero ══════════════════════════════════════ */
    .lp .hero {
      min-height: 88vh;
      position: relative;
      overflow: hidden;
      display: flex;
      align-items: center;
      background-image: url('./assets/hero-fullbleed.webp');
      background-size: cover;
      background-position: right center;
      background-repeat: no-repeat;
      background-color: #B5E2F5;  /* 圖載入前的淡藍備用色 */
      padding: 96px 0 56px;
    }
    /* hero 背景影片層：poster 頂著（影片到位前顯示原 hero 圖）、桌機鋪滿、手機隱藏 */
    .lp .hero-bg-video {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: right center;
      z-index: 0;
    }
    @media (max-width: 991px) { .lp .hero-bg-video { display: none; } }
    /* 左側淡色漸層 — 確保文字面板可讀 */
    .lp .hero::before {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(
        90deg,
        rgba(250, 248, 241, 0.93) 0%,
        rgba(250, 248, 241, 0.85) 18%,
        rgba(250, 248, 241, 0.55) 36%,
        rgba(250, 248, 241, 0.18) 50%,
        transparent 62%
      );
      pointer-events: none;
      z-index: 1;
    }
    /* 底部 grass-block 條紋（保留銜接 01 章） */
    .lp .hero::after {
      content: '';
      position: absolute;
      left: 0; right: 0; bottom: 0;
      height: 14px;
      background:
        linear-gradient(180deg,
          var(--grass-deep) 0 4px,
          var(--dirt-brown) 4px 14px);
      z-index: 3;
    }

    .lp .hero-main {
      display: block;  /* 滿版背景 — panel 靠真實左側，不被 container 居中 */
      position: relative;
      z-index: 2;
    }
    /* 桌機特例：hero 區 container 突破置中、靠左貼齊白漸層區 */
    @media (min-width: 992px) {
      .lp .hero .container-wide {
        max-width: none;
        margin: 0;
        padding-left: clamp(48px, 5vw, 96px);
        padding-right: 48px;
      }
    }
    @media (max-width: 991px) {
      .lp .hero {
        background-image: none;  /* 手機：實心淡藍天空底 + wood-frame 圖（2026-10-25 去漸層） */
        background: #B5E2F5;
        min-height: auto;
        padding: 56px 0 40px;
      }
      .lp .hero::before { display: none; }
      .lp .hero-main {
        display: grid;
        grid-template-columns: 1fr;
        gap: 36px;
      }
    }
    /* ── 左側 text panel — 緊湊型，剛好落在白漸層內、不壓角色 ── */
    .lp .hero-panel {
      max-width: 460px;  /* 配合滿版圖：寬到角色區會擋人，這寬度剛好在左 28-30% 內 */
      padding: 0;
    }
    @media (max-width: 991px) {
      .lp .hero-panel { max-width: 100%; }
    }

    /* ── 圖（手機 only：wood-frame thumbnail；桌機隱藏，用滿版背景） ── */
    .lp .hero-visual {
      display: none;  /* 桌機：藏 — 用 .hero 的滿版 background-image */
      position: relative;
      width: 100%;
      padding: 14px;
      background:
        repeating-linear-gradient(90deg,
          #A68045 0 18px,
          #8E6B36 18px 22px,
          #B58A4F 22px 44px,
          #8E6B36 44px 48px);
      border: 4px solid var(--text-dark);
      box-sizing: border-box;
      box-shadow:
        inset 0 4px 0 0 rgba(255,255,255,0.18),
        inset 0 -5px 0 0 rgba(0,0,0,0.25),
        inset 4px 0 0 0 rgba(255,255,255,0.10),
        inset -4px 0 0 0 rgba(0,0,0,0.20),
        12px 14px 0 rgba(0,0,0,0.18);
    }
    .lp .hero-visual img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: 75% center;  /* 往右偏 25%，焦點 Steve+電腦 */
      display: block;
      border: 2px solid rgba(0,0,0,0.4);
    }
    @media (max-width: 991px) {
      .lp .hero-visual {
        display: block;
        aspect-ratio: 4/3;  /* 4:3 比 21:9 更方，左側 Alex/狗/看書男孩會被裁掉 */
      }
    }

    .lp .hero-eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      padding: 10px 22px;
      background: var(--bg-white);
      border: 2px solid var(--grass-green);
      color: var(--grass-text);
      font-family: 'Pixelify Sans', monospace;
      font-size: 1rem;          /* 0.66 → 16px，Pixelify Sans 字寬窄要加大 */
      font-weight: 700;
      letter-spacing: 1.5px;     /* 2 → 1.5，新字體不需要這麼鬆 */
      margin-bottom: 28px;
      box-shadow: 0 4px 0 var(--grass-deep);
    }

    .lp .hero-title {
      font-size: clamp(2.2rem, 5.5vw, 4rem);
      font-weight: 800;
      line-height: 1.12;
      letter-spacing: -1.5px;
      color: var(--text-dark);
      margin: 0 0 28px;
    }
    .lp .hero-title .pop {
      color: #2D2E32;
      background: linear-gradient(180deg,
        transparent 0 55%,
        var(--sun-yellow) 55% 92%,
        transparent 92%);
      padding: 0 6px;
      box-decoration-break: clone;
      -webkit-box-decoration-break: clone;
    }
    .lp .hero-title .strike {
      text-decoration: line-through;
      color: var(--text-mute);
      font-weight: 700;
    }

    .lp .hero-sub {
      font-size: clamp(1.05rem, 1.7vw, 1.32rem);
      line-height: 1.7;
      color: var(--text-mute);
      max-width: 540px;
      margin: 0 0 36px;
    }
    @media (max-width: 991px) { .lp .hero-sub { margin: 0 auto 36px; } }
    .lp .hero-sub strong { color: var(--text-dark); font-weight: 700; }

    .lp .hero-actions {
      display: flex;
      gap: 18px;
      align-items: center;
      flex-wrap: wrap;
    }
    @media (max-width: 991px) { .lp .hero-actions { justify-content: center; } }

    /* 麥塊風主 CTA 按鈕 — 3D 凸起、按下凹陷 */
    .lp .btn-block {
      display: inline-flex;
      align-items: center;
      gap: 14px;
      padding: 18px 32px;
      background: var(--orange);
      color: var(--text-dark);
      font-family: 'Noto Sans TC', sans-serif;
      font-size: 1.08rem;
      font-weight: 800;
      letter-spacing: 1px;
      border: 3px solid var(--text-dark);
      border-radius: 11px;   /* 按鈕：2026-10-22 首頁定案全站統一 */
      cursor: pointer;
      box-shadow:
        0 6px 0 var(--text-dark),
        0 6px 0 3px var(--text-dark);
      transition: transform 0.12s ease, box-shadow 0.12s ease;
      text-decoration: none;
      position: relative;
    }
    @media (hover: hover) and (pointer: fine) {
      .lp .btn-block:hover {
      transform: translateY(-2px);
      box-shadow:
        0 8px 0 var(--text-dark),
        0 8px 0 3px var(--text-dark);
    }
    }
    .lp .btn-block:active {
      transform: translateY(4px);
      box-shadow:
        0 2px 0 var(--text-dark),
        0 2px 0 3px var(--text-dark);
    }
    .lp .btn-block .arrow { font-family: 'Pixelify Sans', monospace; font-size: 1.1rem; font-weight: 700; }
    .lp .btn-block .pixel-tag {
      font-family: 'Pixelify Sans', monospace;
      font-size: 0.92rem;       /* 0.6 → 0.92，Pixelify Sans 加大 */
      font-weight: 700;
      letter-spacing: 1px;
      background: var(--text-dark);
      color: var(--sun-yellow);
      padding: 5px 10px;
    }

    .lp .btn-ghost {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      color: var(--text-mute);
      font-size: 0.96rem;
      text-decoration: none;
      font-weight: 700;
      border-bottom: 2px dashed var(--text-mute);
      padding-bottom: 2px;
    }
    @media (hover: hover) and (pointer: fine) {
      .lp .btn-ghost:hover { color: #2D2E32; border-bottom-color: var(--orange); }
    }

    /* 手機 hero 元件縮放 — 必須在所有 base 定義之後才能正確 override */
    @media (max-width: 575px) {
      .lp .hero-eyebrow {
        font-size: 0.85rem;       /* 0.46 → 0.85，Pixelify Sans 加大 */
        letter-spacing: 1.2px;
        padding: 9px 16px;
        white-space: nowrap;
      }
      .lp .hero-title { font-size: 1.85rem; letter-spacing: -0.5px; }
      .lp .hero-sub { font-size: 1rem; }
      .lp .btn-block {
        padding: 14px 20px;
        font-size: 0.96rem;
        gap: 10px;
      }
      .lp .btn-block .pixel-tag {
        font-size: 0.78rem;       /* 0.5 → 0.78，Pixelify Sans 加大 */
        padding: 4px 8px;
      }
      .lp .btn-block .arrow { font-size: 0.95rem; }
    }

    /* 三十秒看完：一句話定義卡（沿用 BIOME 卡的像素風：3px 深墨框＋實心下陰影，淡底 --bg-light；標籤沿用章節編號的草綠框） */
    .lp .lp-definition { background: var(--bg-white); padding: 48px 0 16px; }
    .lp .lp-definition .lp-definition-card {
      max-width: 960px;
      background: var(--bg-light);
      border: 3px solid var(--text-dark);
      box-shadow: 0 6px 0 var(--text-dark);
      padding: 24px 32px 32px;
      position: relative;
    }
    .lp .lp-definition .lp-definition-label {
      display: inline-block;
      margin: 0 0 16px;
      padding: 4px 12px;
      font-size: 14px; font-weight: 700; line-height: 1.5; letter-spacing: 0.02em;
      color: var(--text-dark);
      background: var(--grass-glow);
      border: 2px solid var(--grass-green);
    }
    .lp .lp-definition .lp-definition-text { max-width: 860px; margin: 0; font-size: 18px; line-height: 1.7; color: var(--text-dark); }
    @media (max-width: 768px) {
      .lp .lp-definition { padding: 32px 0 16px; }
      .lp .lp-definition .lp-definition-card { padding: 16px 16px 24px; }
      .lp .lp-definition .lp-definition-label { margin-bottom: 12px; }
      .lp .lp-definition .lp-definition-text { font-size: 16px; }
    }

    /* ══════════════════════════════════════ 01 BIOME · 痛點 ══════════════════════════════════════ */
    .lp .biome-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 20px;
      margin-top: 40px;
    }
    @media (max-width: 991px) { .lp .biome-grid { grid-template-columns: 1fr; gap: 16px; } }
    .lp .biome-card {
      background: var(--bg-white);
      border: 3px solid var(--text-dark);
      padding: 28px 24px;
      position: relative;
      box-shadow: 0 6px 0 var(--text-dark);
    }
    .lp .biome-card-num {
      position: absolute;
      top: -16px; left: 20px;
      width: 36px; height: 36px;
      background: var(--tnt-red);
      color: var(--bg-white);
      font-family: 'Pixelify Sans', monospace;
      font-size: 0.84rem;
      display: flex;
      align-items: center;
      justify-content: center;
      border: 3px solid var(--text-dark);
      box-shadow: 0 3px 0 var(--text-dark);
    }
    .lp .biome-card h3 {
      font-size: 1.32rem;
      font-weight: 800;
      color: var(--text-dark);
      margin: 16px 0 12px;
      letter-spacing: -0.3px;
    }
    .lp .biome-card p {
      font-size: 0.96rem;
      color: var(--text-mute);
      margin: 0;
      line-height: 1.65;
    }
    .lp .biome-card p strong { color: var(--tnt-text); font-weight: 800; }

    /* ══════════════════════════════════════ 02 PORTAL · 為什麼是出路 ══════════════════════════════════════ */
    .lp .portal-wrap {
      display: grid;
      grid-template-columns: 1.1fr 1fr;
      gap: 56px;
      align-items: center;
    }
    @media (max-width: 991px) { .lp .portal-wrap { grid-template-columns: 1fr; gap: 32px; } }
    .lp .portal-list {
      list-style: none;
      padding: 0;
      margin: 32px 0 0;
      display: flex;
      flex-direction: column;
      gap: 16px;
    }
    .lp .portal-list li {
      display: grid;
      grid-template-columns: 72px 1fr;
      gap: 20px;
      padding: 18px;
      background: var(--bg-white);
      border-left: 6px solid var(--grass-green);
      box-shadow: 0 3px 0 var(--line-dim);
      align-items: center;
    }
    .lp .portal-list-ico {
      width: 72px; height: 72px;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
    }
    .lp .portal-list-ico img {
      width: 100%;
      height: 100%;
      object-fit: contain;
      display: block;
    }
    .lp .portal-list h4 {
      font-size: 17.28px;
      font-weight: 800;
      color: var(--text-dark);
      margin: 0 0 4px;
    }
    .lp .portal-list p {
      font-size: 14.72px;
      color: var(--text-mute);
      margin: 0;
      line-height: 1.55;
    }

    .lp .portal-visual {
      aspect-ratio: 4/3;
      background: var(--bg-white);
      border: 4px solid var(--text-dark);
      box-shadow: 0 8px 0 var(--text-dark);
      overflow: hidden;
    }
    .lp .portal-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }
    .lp .portal-visual-placeholder {
      width: 100%; height: 100%;
      background:
        repeating-linear-gradient(45deg, var(--bg-soft) 0 20px, var(--bg-light) 20px 40px);
      display: flex;
      align-items: center;
      justify-content: center;
      font-family: 'Pixelify Sans', monospace;
      font-size: 0.7rem;
      color: var(--text-mute);
      letter-spacing: 1.5px;
    }

    /* ══════════════════════════════════════ 03 GAMEPLAY · 孩子會做什麼 ══════════════════════════════════════ */
    .lp .gameplay-deck {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 24px;
      margin-top: 40px;
    }
    @media (max-width: 768px) {
      .lp .gameplay-deck { grid-template-columns: 1fr; gap: 16px; }
    }
    .lp .gameplay-card {
      background: var(--bg-white);
      border: 3px solid var(--text-dark);
      box-shadow: 0 6px 0 var(--text-dark);
      overflow: hidden;
      display: flex;
      flex-direction: column;
    }
    .lp .gameplay-card-img {
      aspect-ratio: 16/9;
      background: var(--bg-soft);
      display: flex;
      align-items: center;
      justify-content: center;
      font-family: 'Pixelify Sans', monospace;
      font-size: 0.7rem;
      color: var(--text-mute);
      letter-spacing: 1.5px;
      border-bottom: 3px solid var(--text-dark);
    }
    .lp .gameplay-card-img img,
    .lp .gameplay-card-img video { width: 100%; height: 100%; object-fit: cover; display: block; }
    .lp .gameplay-card-body { padding: 24px 22px; }
    .lp .gameplay-card h3 {
      font-size: 1.32rem;
      font-weight: 800;
      color: var(--text-dark);
      margin: 0 0 10px;
      letter-spacing: -0.3px;
      line-height: 1.3;
    }
    .lp .gameplay-card p {
      font-size: 0.96rem;
      color: var(--text-mute);
      margin: 0;
      line-height: 1.6;
    }
    /* 程式碼做成圖片（作品頁規則：程式碼不放網頁文字）；圖以 1:1 顯示保持 14px 字級，手機寬度不夠時左右滑動 */
    .lp .gameplay-card .code-snippet {
      margin-top: 14px;
      background: #2D2A24;
      border: 2px solid var(--text-dark);
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
    }
    .lp .gameplay-card .code-snippet img { display: block; max-width: none; height: auto; }

    /* ══════════════════════════════════════ 04 FLEXIBILITY · 彈性學習 ══════════════════════════════════════ */
    .lp .chapter#flexibility {
      background: var(--bg-soft);
      position: relative;
    }
    .lp .flex-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 18px;
      margin-top: 40px;
    }
    @media (max-width: 991px) { .lp .flex-grid { grid-template-columns: 1fr 1fr; } }
    @media (max-width: 480px) { .lp .flex-grid { grid-template-columns: 1fr; } }

    .lp .flex-card {
      background: var(--bg-white);
      border: 3px solid var(--text-dark);
      padding: 28px 22px 24px;
      box-shadow: 0 6px 0 var(--text-dark);
      text-align: center;
      position: relative;
    }
    .lp .flex-card-ico {
      width: 132px; height: 132px;
      margin: -8px auto 18px;
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
    }
    .lp .flex-card-ico img {
      width: 100%; height: 100%;
      object-fit: contain;
      display: block;
      filter: drop-shadow(0 4px 6px rgba(0,0,0,0.15));
      transition: transform 0.3s ease;
    }
    @media (hover: hover) and (pointer: fine) {
      .lp .flex-card:hover .flex-card-ico img { transform: translateY(-4px) scale(1.04); }
    }
    @media (max-width: 480px) {
      .lp .flex-card-ico { width: 110px; height: 110px; }
    }
    .lp .flex-card h4 {
      font-size: 1.08rem;
      font-weight: 800;
      color: var(--text-dark);
      margin: 0 0 8px;
    }
    .lp .flex-card p {
      font-size: 0.88rem;
      color: var(--text-mute);
      margin: 0;
      line-height: 1.55;
    }
    .lp .flex-card p strong { color: var(--text-dark); }

    .lp .flex-callout {
      max-width: 880px;
      margin: 40px auto 0;
      padding: 24px 28px;
      background: var(--bg-white);
      border: 3px dashed var(--grass-green);
      text-align: center;
      font-size: 1rem;
      color: var(--text-dark);
      line-height: 1.6;
    }
    .lp .flex-callout strong { color: var(--grass-text); }

    /* ══════════════════════════════════════ 05 ACADEMY · 橘蘋師資 ══════════════════════════════════════ */
    .lp .academy-wrap {
      display: grid;
      grid-template-columns: 1fr 1.3fr;
      gap: 48px;
      align-items: center;
    }
    @media (max-width: 991px) { .lp .academy-wrap { grid-template-columns: 1fr; gap: 32px; } }
    .lp .academy-stats {
      display: flex;
      flex-direction: column;
      gap: 24px;
    }
    .lp .academy-stat {
      padding: 20px 22px;
      background: var(--bg-white);
      border: 3px solid var(--text-dark);
      box-shadow: 0 4px 0 var(--text-dark);
    }
    .lp .academy-stat-num {
      font-family: 'Noto Sans TC', sans-serif;
      font-size: clamp(2rem, 4vw, 2.8rem);
      font-weight: 800;
      color: #2D2E32;
      letter-spacing: -1px;
      line-height: 1;
      margin-bottom: 8px;
      text-shadow:
        2px 2px 0 rgba(255,163,0,0.35);
    }
    .lp .academy-stat-label {
      font-size: 0.96rem;
      color: var(--text-mute);
      font-weight: 700;
      line-height: 1.4;
    }
    .lp .academy-list {
      list-style: none;
      padding: 0;
      margin: 0;
      display: flex;
      flex-direction: column;
      gap: 14px;
    }
    .lp .academy-list li {
      display: grid;
      grid-template-columns: 28px 1fr;
      gap: 16px;
      padding: 14px 18px;
      background: var(--bg-white);
      border-left: 6px solid var(--orange);
      align-items: start;
    }
    .lp .academy-list li::before {
      content: '✓';
      font-family: 'Pixelify Sans', monospace;
      color: var(--grass-green);
      font-size: 1rem;
      padding-top: 2px;
    }
    .lp .academy-list h4 {
      font-size: 1.02rem;
      font-weight: 800;
      color: var(--text-dark);
      margin: 0 0 4px;
    }
    .lp .academy-list p {
      font-size: 0.92rem;
      color: var(--text-mute);
      margin: 0;
      line-height: 1.55;
    }

    /* ══════════════════════════════════════ 06 BLUEPRINT · 課程地圖 ══════════════════════════════════════ */
    .lp .blueprint-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 22px;
      margin-top: 40px;
    }
    @media (max-width: 991px) {
      .lp .blueprint-grid {
        display: flex;
        flex-direction: row;
        gap: 14px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding: 6px 22px 18px;
        margin: 40px -22px 0;
        scrollbar-width: none;
      }
      .lp .blueprint-grid::-webkit-scrollbar { display: none; }
      .lp .blueprint-card { flex: 0 0 84%; scroll-snap-align: start; }
    }
    .lp .blueprint-card {
      background: var(--bg-white);
      border: 3px solid var(--text-dark);
      padding: 26px 22px 22px;
      box-shadow: 0 6px 0 var(--text-dark);
      position: relative;
    }
    .lp .blueprint-card-stage {
      display: inline-block;
      padding: 6px 12px;
      background: var(--grass-green);
      color: var(--bg-white);
      font-family: 'Pixelify Sans', monospace;
      font-size: 0.8rem;
      letter-spacing: 1.5px;
      margin-bottom: 14px;
      white-space: nowrap;  /* 標籤完整不換行 */
    }
    @media (max-width: 575px) {
      .lp .blueprint-card-stage { font-size: 0.68rem; letter-spacing: 1px; padding: 6px 10px; }
    }
    .lp .blueprint-card-stage.s2 { background: var(--sky-blue); }
    .lp .blueprint-card-stage.s3 { background: var(--orange); color: var(--text-dark); }
    .lp .blueprint-card h3 {
      font-size: 1.32rem;
      font-weight: 800;
      color: var(--text-dark);
      margin: 0 0 10px;
      letter-spacing: -0.3px;
    }
    .lp .blueprint-card-sub {
      font-family: 'JetBrains Mono', monospace;
      font-size: 0.78rem;
      color: var(--text-mute);
      letter-spacing: 1.5px;
      line-height: 28px;  /* 正式站這個 <p> 吃官網 p 的 28px 行高，照正式站 */
      margin-bottom: 16px;
    }
    .lp .blueprint-card ul {
      list-style: none;
      padding: 0;
      margin: 0;
      border-top: 2px dashed var(--line-dim);
      padding-top: 14px;
    }
    .lp .blueprint-card ul li {
      font-size: 0.92rem;
      color: var(--text-dark);
      padding: 6px 0;
      display: grid;
      grid-template-columns: 18px 1fr;
      gap: 8px;
    }
    .lp .blueprint-card ul li::before {
      content: '▸';
      color: var(--grass-green);
      font-weight: 800;
    }
    .lp .blueprint-card-foot {
      margin-top: 14px;
      padding-top: 12px;
      border-top: 2px dashed var(--line-dim);
      font-family: 'Pixelify Sans', monospace;
      font-size: 0.75rem;
      letter-spacing: 1.5px;
      line-height: 1.7;
      color: var(--text-mute);
    }
    @media (max-width: 575px) {
      .lp .blueprint-card-foot { font-size: 0.64rem; letter-spacing: 0.8px; line-height: 1.6; }
    }
    /* STAGE 3 未解鎖 / 籌備中：虛線框 + soft 底，不動不透明度以保 WCAG */
    .lp .blueprint-card.soon {
      border-style: dashed;
      background: var(--bg-soft);
    }
    .lp .blueprint-card-soon {
      font-size: 1rem;
      color: var(--text-dark);
      line-height: 1.75;
      margin: 0 0 16px;
    }

    /* ══════════════════════════════════════ 07 SPAWN · 報名方式 ══════════════════════════════════════ */
    .lp .spawn-pair {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 24px;
      margin-top: 40px;
    }
    @media (max-width: 991px) {
      .lp .spawn-pair {
        display: flex;
        flex-direction: row;
        gap: 14px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding: 6px 22px 18px;
        margin: 40px -22px 0;
        scrollbar-width: none;
      }
      .lp .spawn-pair::-webkit-scrollbar { display: none; }
      .lp .spawn-card { flex: 0 0 86%; scroll-snap-align: start; }
    }
    .lp .spawn-card {
      background: var(--bg-white);
      border: 3px solid var(--text-dark);
      padding: 32px 28px 28px;
      box-shadow: 0 6px 0 var(--text-dark);
      position: relative;
    }
    @media (max-width: 991px) { .lp .spawn-card { padding: 28px 24px 32px; } }  /* 手機卡片下緣多留空間，文字不貼邊 */
    .lp .spawn-card-tag {
      display: inline-block;
      padding: 6px 14px;
      font-family: 'Pixelify Sans', monospace;
      font-size: 10.56px;
      letter-spacing: 1.5px;
      margin-bottom: 18px;
    }
    .lp .spawn-card.path-a .spawn-card-tag {
      background: var(--grass-green);
      color: var(--bg-white);
    }
    .lp .spawn-card.path-b .spawn-card-tag {
      background: var(--sky-blue);
      color: var(--bg-white);
    }
    .lp .spawn-card h3 {
      font-size: 22.72px;
      font-weight: 800;
      color: var(--text-dark);
      margin: 0 0 14px;
      letter-spacing: -0.3px;
    }
    .lp .spawn-card p {
      font-size: 15.68px;
      color: var(--text-mute);
      line-height: 1.65;
      margin: 0 0 16px;
    }
    .lp .spawn-card p strong { color: var(--text-dark); }
    .lp .spawn-card-arrow {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      font-family: 'Pixelify Sans', monospace;
      font-size: 11.2px;
      letter-spacing: 1.5px;
      color: #2D2E32;
      padding: 8px 12px;
      background: var(--bg-light);
      border: 2px dashed var(--orange);
    }

    /* ══════════════════════════════════════ 08 ACHIEVEMENT · 完課成就 ══════════════════════════════════════ */
    .lp .ach-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 22px;
      margin-top: 40px;
    }
    @media (max-width: 991px) { .lp .ach-grid { grid-template-columns: 1fr 1fr; } }
    @media (max-width: 575px) { .lp .ach-grid { grid-template-columns: 1fr; } }

    .lp .ach-card {
      background: var(--bg-white);
      border: 3px solid var(--text-dark);
      padding: 24px 22px 22px;
      box-shadow: 0 6px 0 var(--text-dark);
      position: relative;
    }
    .lp .ach-card::before {
      content: '★';
      position: absolute;
      top: -14px; right: 18px;
      width: 36px; height: 36px;
      background: var(--sun-yellow);
      color: var(--text-dark);
      font-size: 1.2rem;
      font-weight: 800;
      display: flex;
      align-items: center;
      justify-content: center;
      border: 3px solid var(--text-dark);
      box-shadow: 0 3px 0 var(--text-dark);
    }
    .lp .ach-card h3 {
      font-size: 1.18rem;
      font-weight: 800;
      color: var(--text-dark);
      margin: 0 0 10px;
      letter-spacing: -0.3px;
      line-height: 1.3;
    }
    .lp .ach-card p {
      font-size: 0.92rem;
      color: var(--text-mute);
      margin: 0;
      line-height: 1.6;
    }

    .lp .ach-soft-note {
      max-width: 760px;
      margin: 40px auto 0;
      text-align: center;
      font-size: 0.94rem;
      color: var(--text-mute);
      padding: 18px;
      border-top: 2px dashed var(--line-dim);
    }

    /* ══════════════════════════════════════ 09 INVENTORY · FAQ ══════════════════════════════════════ */
    /* 延伸閱讀：連到相關橘蘋觀點文章 */
    .lp #inventory .inv-related { max-width: 880px; margin: 48px auto 0; padding-top: 24px; border-top: 1px solid var(--line-dim); }
    .lp #inventory .inv-related .inv-related-title { margin: 0 0 12px; font-size: 16px; font-weight: 700; line-height: 1.7; color: var(--text-dark); }
    .lp #inventory .inv-related ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
    .lp #inventory .inv-related li a { color: #00776B; font-size: 16px; line-height: 1.7; text-decoration: underline; text-underline-offset: 3px; }
    .lp .inv-list {
      max-width: 880px;
      margin: 40px auto 0;
      list-style: none;
      padding: 0;
      border-top: 2px solid var(--text-dark);
    }
    .lp .inv-item {
      border-bottom: 2px solid var(--line-dim);
      padding: 22px 0;
    }
    .lp .inv-q {
      display: grid;
      grid-template-columns: 96px 1fr 32px;  /* 96px：放得下 Pixelify Sans 字體的「FILE.0X」7 字符寬 */
      gap: 16px;
      align-items: baseline;
      cursor: pointer;
      list-style: none;
    }
    .lp .inv-q::-webkit-details-marker { display: none; }
    .lp .inv-q-num {
      font-family: 'Pixelify Sans', monospace;
      font-size: 0.68rem;
      color: #2D2E32;
      letter-spacing: 1.5px;
    }
    .lp .inv-q-text {
      font-size: 1.08rem;
      font-weight: 700;
      color: var(--text-dark);
      line-height: 1.45;
    }
    .lp .inv-q-toggle {
      width: 32px; height: 32px;
      background: var(--orange);
      color: var(--text-dark);
      font-family: 'Pixelify Sans', monospace;
      font-size: 0.88rem;
      display: flex;
      align-items: center;
      justify-content: center;
      border: 2px solid var(--text-dark);
      transition: transform 0.3s;
    }
    .lp .inv-item details[open] .inv-q-toggle {
      transform: rotate(45deg);
      background: #2E7D32; /* 2026-11-07：白色「＋」配草綠 #4FAF3D 只有 2.79，改深綠（約 5.1） */
      color: var(--bg-white);
    }
    .lp .inv-a {
      display: grid;
      grid-template-columns: 96px 1fr;  /* 對齊 .inv-q 第一欄寬度 */
      gap: 16px;
    }
    .lp .inv-item details[open] .inv-a { margin-top: 16px; }
    .lp .inv-a-inner {
      grid-column: 2;
      font-size: 0.96rem;
      color: var(--text-mute);
      line-height: 1.75;
    }
    .lp .inv-a-inner strong { color: var(--text-dark); }
    @media (max-width: 768px) {
      .lp .inv-q {
        grid-template-columns: 1fr 28px;
        grid-template-rows: auto auto;
        gap: 6px 12px;
      }
      .lp .inv-q-num { grid-column: 1 / -1; grid-row: 1; }
      .lp .inv-q-text { grid-column: 1; grid-row: 2; font-size: 1rem; }
      .lp .inv-q-toggle { grid-column: 2; grid-row: 2; align-self: center; }
      .lp .inv-a { grid-template-columns: 1fr; }
      .lp .inv-a-inner { grid-column: 1; }
    }

    /* ══════════════════════════════════════ ENDING · CTA ══════════════════════════════════════ */
    .lp .ending {
      padding: 96px 0 120px;
      background: var(--bg-soft);  /* 2026-10-25 去漸層，改實心 */
      text-align: center;
      position: relative;
    }
    .lp .ending::before {
      content: '';
      position: absolute;
      left: 0; right: 0; top: 0;
      height: 12px;
      background:
        repeating-linear-gradient(90deg,
          var(--grass-deep) 0 24px,
          var(--grass-green) 24px 48px);
    }
    .lp .ending-headline {
      font-size: clamp(2rem, 5vw, 48px);
      font-weight: 800;
      line-height: 1.15;
      color: var(--text-dark);
      margin: 0 0 20px;
      letter-spacing: -1px;
    }
    .lp .ending-headline .pop {
      color: #2D2E32;
      background: linear-gradient(180deg,
        transparent 0 55%,
        var(--sun-yellow) 55% 92%,
        transparent 92%);
      padding: 0 6px;
      box-decoration-break: clone;
      -webkit-box-decoration-break: clone;
    }
    .lp .ending-sub {
      font-size: 1.12rem;
      color: var(--text-mute);
      margin: 0 auto 36px;
      max-width: 540px;
      line-height: 1.65;
    }
    .lp .ending-warn {
      max-width: 600px;
      margin: 28px auto 0;
      padding: 14px 20px;
      background: var(--bg-white);
      border: 2px dashed var(--text-mute);
      font-size: 0.92rem;
      color: var(--text-mute);
      display: flex;
      gap: 10px;
      align-items: center;
      justify-content: center;
    }
    .lp .ending-warn .ico {
      font-family: 'Pixelify Sans', monospace;
      font-size: 0.8rem;
      color: #2D2E32;
    }

    /* slide 桌機隱形（不存在於 box tree，cards 直接被 grid 排版） */
    .lp .flex-slide,
    .lp .ach-slide { display: contents; }

    /* ══════════════════════════════════════ 手機橫滑改造 — 03 / 04 / 08 ══════════════════════════════════════ */
    @media (max-width: 575px) {
      /* 03 GAMEPLAY — 1 張卡可見、左右滑 */
      .lp .gameplay-deck {
        display: flex;
        flex-direction: row;
        gap: 14px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding: 6px 22px 18px;
        margin: 40px -22px 0;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
      }
      .lp .gameplay-deck::-webkit-scrollbar { display: none; }
      .lp .gameplay-card { flex: 0 0 88%; scroll-snap-align: start; }

      /* 04 FLEX — CSS Grid 2 列 × N 欄（每欄 = 1 slide 滿版） */
      .lp .flex-grid {
        display: grid;
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: calc(100vw - 44px);
        grid-template-rows: repeat(2, auto);
        gap: 14px 16px;  /* row gap 14, col gap 16 */
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding: 6px 22px 18px;
        margin: 40px -22px 0;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
      }
      .lp .flex-grid::-webkit-scrollbar { display: none; }
      .lp .flex-card { scroll-snap-align: start; }

      /* 08 ACH — CSS Grid 3 列 × N 欄 */
      .lp .ach-grid {
        display: grid;
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: calc(100vw - 44px);
        grid-template-rows: repeat(3, auto);
        gap: 14px 16px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding: 6px 22px 18px;
        margin: 40px -22px 0;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
      }
      .lp .ach-grid::-webkit-scrollbar { display: none; }
      .lp .ach-card { scroll-snap-align: start; }
    }
    /* ══════ 長頁浮動索引：往下捲出現、標示目前章節（比照首頁做法、像素風視覺）══════ */
    .lp .section-nav {
      position: fixed; left: 0; right: 0; top: var(--oa-header-offset, 0); z-index: 90;
      background: var(--bg-light);
      border-bottom: 3px solid var(--text-dark);
      box-shadow: 0 4px 0 rgba(45, 42, 36, 0.15);
      opacity: 0; visibility: hidden; pointer-events: none;
      transform: translateY(-110%);
      transition: opacity .22s ease, transform .28s ease, top .28s ease, visibility 0s linear .28s;
    }
    .lp .section-nav.is-visible {
      opacity: 1; visibility: visible; pointer-events: auto;
      transform: translateY(0); transition-delay: 0s;
    }
    .lp .section-nav-inner {
      max-width: 1240px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px);
      min-height: 56px; display: flex; align-items: center; gap: 16px;
    }
    .lp .section-nav-brand {
      font-family: 'Pixelify Sans', monospace; font-weight: 700;
      font-size: 0.95rem; letter-spacing: 1px; color: var(--text-dark); white-space: nowrap;
    }
    .lp .section-nav-toggle { display: none; }
    .lp .section-nav-links { display: flex; justify-content: center; flex: 1; min-width: 0; gap: 2px; }
    .lp .section-nav-links a {
      position: relative; min-height: 56px; display: inline-flex; align-items: center;
      padding: 0 14px; color: var(--text-mute); font-size: 0.92rem; font-weight: 700;
      text-decoration: none; white-space: nowrap; transition: color .18s ease, background-color .18s ease;
    }
    .lp .section-nav-links a::after {
      content: ''; position: absolute; left: 14px; right: 14px; bottom: 0; height: 3px;
      background: var(--orange); transform: scaleX(0); transition: transform .18s ease;
    }
    .lp .section-nav-links a[aria-current="location"] { color: var(--text-dark); background: rgba(255, 217, 61, 0.22); }
    @media (hover: hover) and (pointer: fine) {
      .lp .section-nav-links a:hover { color: var(--text-dark); background: rgba(255, 217, 61, 0.22); }
    }
    .lp .section-nav-links a[aria-current="location"]::after { transform: scaleX(1); }
    .lp .section-nav-cta {
      flex: 0 0 auto; padding: 9px 18px; border: 2px solid var(--text-dark); border-radius: 11px;
      background: var(--orange); color: var(--text-dark);
      font-family: inherit; font-size: 0.9rem; font-weight: 800; cursor: pointer;
      white-space: nowrap; box-shadow: 0 3px 0 var(--text-dark);
    }
    /* ══════ 老師講解影片 facade（點擊才載入 YouTube）══════ */
    .lp .video-facade {
      position: relative; max-width: 920px; margin: 36px auto 0;
      aspect-ratio: 16 / 9; cursor: pointer; overflow: hidden;
      border: 4px solid var(--text-dark); box-shadow: 0 10px 0 rgba(45, 42, 36, 0.22);
      background: #1a1712;
    }
    .lp .video-facade-thumb { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease, filter .3s ease; }
    @media (hover: hover) and (pointer: fine) {
      .lp .video-facade:hover .video-facade-thumb { transform: scale(1.03); filter: brightness(1.05); }
    }
    .lp .video-facade-play {
      position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
      width: 84px; height: 84px; display: flex; align-items: center; justify-content: center;
      background: var(--orange); color: var(--text-dark);
      border: 3px solid var(--text-dark); box-shadow: 0 5px 0 var(--text-dark);
      font-size: 28px; padding-left: 6px; transition: transform .16s ease;
    }
    @media (hover: hover) and (pointer: fine) {
      .lp .video-facade:hover .video-facade-play { transform: translate(-50%, -50%) scale(1.09); }
    }
    .lp .video-facade-badge {
      position: absolute; left: 14px; bottom: 14px;
      font-family: 'Pixelify Sans', monospace; font-size: 13px; font-weight: 700; letter-spacing: 1px;
      background: var(--text-dark); color: var(--sun-yellow); padding: 5px 10px;
    }
    .lp .video-facade iframe { width: 100%; height: 100%; border: 0; display: block; }
    .lp #portal,
    .lp #gameplay,
    .lp #teacher-video,
    .lp #blueprint,
    .lp #flexibility,
    .lp #inventory { scroll-margin-top: calc(72px + var(--oa-header-offset, 0px)); }
    @media (max-width: 820px) {
      .lp .section-nav-inner { flex-wrap: wrap; }
      .lp .section-nav-brand { display: none; }
      .lp .section-nav-toggle {
        flex: 1; min-height: 52px; display: flex; align-items: center; gap: 8px;
        background: none; border: 0; cursor: pointer; font-family: inherit;
        font-size: 0.95rem; font-weight: 800; color: var(--text-dark);
      }
      .lp .section-nav-current { flex: 1; text-align: left; }
      .lp .section-nav-chevron { transition: transform .2s ease; }
      .lp .section-nav.is-open .section-nav-chevron { transform: rotate(180deg); }
      .lp .section-nav-links {
        flex: 0 0 100%; flex-direction: column; gap: 0;
        max-height: 0; overflow: hidden; transition: max-height .28s ease;
      }
      .lp .section-nav.is-open .section-nav-links { max-height: 360px; }
      .lp .section-nav-links a { min-height: 46px; width: 100%; justify-content: flex-start; border-top: 1px solid var(--line-soft); }
      .lp .section-nav-links a::after { display: none; }
      .lp .section-nav-cta { display: none; }
    }
    /* hero 字級釘成 px（與正式站一致）：本頁其他字級用 rem（官網 1rem = 18px），只有 hero 以 16px 基準釘死 */
    .lp .hero .hero-eyebrow { font-size: 16px; }
    .lp .hero .hero-title { font-size: clamp(35.2px, 5.5vw, 64px); }
    .lp .hero .hero-sub { font-size: clamp(16.8px, 1.7vw, 21.12px); }
    .lp .hero .btn-block { font-size: 17.28px; }
    .lp .hero .btn-block .arrow { font-size: 17.6px; }
    .lp .hero .btn-block .pixel-tag { font-size: 14.72px; }
    .lp .hero .btn-ghost { font-size: 15.36px; }
    @media (max-width: 575px) {
      .lp .hero .hero-eyebrow { font-size: 13.6px; }
      .lp .hero .hero-title { font-size: 29.6px; }
      .lp .hero .hero-sub { font-size: 16px; }
      .lp .hero .btn-block { font-size: 15.36px; }
      .lp .hero .btn-block .pixel-tag { font-size: 12.48px; }
      .lp .hero .btn-block .arrow { font-size: 15.2px; }
    }

    /* 鍵盤焦點框：深墨 3px 外框，配合像素粗黑邊（2026-10-25） */
    .lp a:focus-visible,
    .lp button:focus-visible,
    .lp summary:focus-visible,
    .lp [tabindex]:focus-visible {
      outline: 3px solid #2D2E32;
      outline-offset: 3px;
    }
    .lp .section-nav-links a:focus-visible { outline-offset: -3px; }

    /* ── 進場動畫（取代 AOS）：有 JS 才隱藏，捲到才出現 ── */
    .lp.lp-js .lp-reveal { opacity: 0; transform: translateY(40px); transition: opacity .6s ease, transform .6s ease; }
    .lp.lp-js .lp-reveal.is-in { opacity: 1; transform: none; }
    @media (prefers-reduced-motion: reduce) {
      .lp.lp-js .lp-reveal { opacity: 1; transform: none; transition: none; }
      .lp .voxel-deco { animation: none; }
      .lp .video-facade-thumb, .lp .video-facade-play { transition: none; }
      .lp .flex-card-ico img { transition: none; }
      .lp .btn-block, .lp .inv-q-toggle, .lp .section-nav, .lp .section-nav-links, .lp .section-nav-chevron { transition: none; }
      /* 全域護欄（來源頁的 *{…!important} 改成限定本頁、不用 !important；放在樣式最後，同權重時靠順序勝出） */
      .lp.lp-minecraft-python,
      .lp.lp-minecraft-python *,
      .lp.lp-minecraft-python *::before,
      .lp.lp-minecraft-python *::after { animation-duration: .01ms; animation-iteration-count: 1; transition-duration: .01ms; scroll-behavior: auto; }
      .lp .hero-bg-video { display: none; }  /* 減少動態偏好：不播背景影片，底下的 hero 靜態圖（同 poster）就是畫面 */
    }

/* 國中 Python 與麥塊 Python 比較表（2026-10-26 新增；兩頁文字逐字相同） */
.lp .lp-pycmp-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 16px; }
.lp .lp-pycmp-table { width: 100%; min-width: 600px; margin: 0; border-collapse: collapse; background: #fff; color: #2D2E32; font-size: 16px; line-height: 1.6; text-align: left; }
.lp .lp-pycmp-table caption { caption-side: top; padding: 0 0 8px; color: #2D2E32; font-size: 15px; font-weight: 700; text-align: left; }
.lp .lp-pycmp-table th, .lp .lp-pycmp-table td { padding: 12px 14px; border: 1px solid #d9dce1; vertical-align: top; text-align: left; }
.lp .lp-pycmp-table thead th { background: #f3f5f8; font-weight: 700; }
.lp .lp-pycmp-table tbody th { background: #fafbfc; font-weight: 700; white-space: nowrap; }
.lp .lp-pycmp-note { margin: 0; color: #2D2E32; font-size: 15px; line-height: 1.7; text-align: left; }
.lp .lp-pycmp-note a { color: #00776B; text-decoration: underline; }
    .lp #compare .lp-pycmp-scroll { margin-top: 24px; }
    .lp #inventory .inv-related + .inv-related { margin-top: 24px; }
    .lp .hero-sub .lp-shortdef { display: block; color: var(--text-dark); font-weight: 700; }
  /* lp-crumb：全站麵包屑（2026-10-27）。左緣對齊官網 header 的 logo（最寬 1296px、內距 28px／手機 18px）；底色＝本頁開頭區塊 */
.lp .lp-crumb { background: #fff; }
.lp .lp-crumb ol { list-style: none; margin: 0 auto; max-width: 1296px; padding: 5px 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; font-size: 13px; line-height: 1.6; color: #5B616D; }
.lp .lp-crumb li { margin: 0; padding: 0; }
.lp .lp-crumb li + li::before { content: "›"; margin-right: 8px; color: #8A8F98; }
.lp .lp-crumb a, .lp .lp-crumb a:visited { color: #5B616D; text-decoration: none; display: inline-block; padding: 6px 0; margin: -6px 0; }
.lp .lp-crumb a:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; border-radius: 3px; }
.lp .lp-crumb [aria-current] { color: #2D2E32; }
@media (hover: hover) and (pointer: fine) { .lp .lp-crumb a:hover { text-decoration: underline; } }
@media (max-width: 960px) { .lp .lp-crumb ol { padding: 5px 18px; } }
/* /lp-crumb */

/* 內容層次第一批：比較表手機滑動提示＋第一欄固定 */
.lp .lp-scroll-hint { display: none; }
@media (max-width: 767.98px) {
  .lp .lp-scroll-hint { display: block; margin: 8px 0; font-size: 13px; line-height: 1.5; color: #55565a; text-align: center; }
  .lp .lp-pycmp-table tr > :first-child { position: sticky; left: 0; z-index: 1; box-shadow: 2px 0 0 rgba(0,0,0,.08); }
}

/* 內容層次第一批：手機字級至少 12px、點擊範圍、裝飾不遮字 */
.lp .spawn-card-tag { font-size: 12px; }
@media (max-width: 575px) { .lp .blueprint-card-foot { font-size: 12px; } }
.lp .btn-ghost { min-height: 36px; }
/* 內容層次第三批：外部來源小字註腳（寫法同第一批 .lp-src） */
.lp .lp-src { margin: 8px 0 0; font-size: 14px; line-height: 1.7; color: #5B616D; }
.lp .lp-src a, .lp .lp-src a:visited { color: #5B616D; text-decoration: underline; text-underline-offset: 3px; }
/* lp-next：學完之後・下一步可以這樣走（2026-10-28；亮橘只用在短線與底線） */
.lp .lp-next-sec:not(#lp-nx) { box-sizing: border-box; display: block; width: 100%; margin: 0; padding: 0; background: #fff; color: #2D2E32; font-family: "Noto Sans TC", sans-serif; text-align: start; }
.lp .lp-next-sec:not(#lp-nx) *, .lp .lp-next-sec:not(#lp-nx) *::before, .lp .lp-next-sec:not(#lp-nx) *::after { box-sizing: border-box; }
.lp .lp-next-sec:not(#lp-nx) .lp-next-in { max-width: 1120px; margin: 0 auto; padding: 72px 24px; }
.lp .lp-next-sec:not(#lp-nx) .lp-next-eye { margin: 0 0 10px; padding: 0; color: #5B616D; font-size: 13px; font-weight: 700; line-height: 1.2; letter-spacing: .14em; text-align: start; }
.lp .lp-next-sec:not(#lp-nx) .lp-next-h { margin: 0 0 8px; padding: 0; color: #2D2E32; font-size: 30px; font-weight: 900; line-height: 1.35; text-align: start; background: none; }
.lp .lp-next-sec:not(#lp-nx) .lp-next-sub { margin: 0 0 32px; padding: 0; color: #5B616D; font-size: 15px; line-height: 1.7; text-align: start; }
.lp .lp-next-sec:not(#lp-nx) .lp-next-path { display: grid; grid-template-columns: 1.2fr 1fr 1fr; margin: 0; padding: 0; border-top: 2px solid #2D2E32; }
.lp .lp-next-sec:not(#lp-nx) .lp-next-path.lp-next-n2 { grid-template-columns: 1.2fr 1fr; }
.lp .lp-next-sec:not(#lp-nx) .lp-next-path.lp-next-n1 { grid-template-columns: 1fr; max-width: 560px; }
.lp .lp-next-sec:not(#lp-nx) .lp-next-st { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 24px 24px 26px; border-right: 1px solid #E6E2DA; color: #2D2E32; text-decoration: none; background: #fff; }
.lp .lp-next-sec:not(#lp-nx) .lp-next-st:last-child { border-right: 0; }
.lp .lp-next-sec:not(#lp-nx) .lp-next-st.lp-next-main { background: #FAF9F6; }
.lp .lp-next-sec:not(#lp-nx) .lp-next-st:focus-visible { outline: 3px solid #2D2E32; outline-offset: -3px; }
.lp .lp-next-sec:not(#lp-nx) .lp-next-k { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; color: #5B616D; font-size: 13px; font-weight: 800; line-height: 1.4; letter-spacing: .06em; }
.lp .lp-next-sec:not(#lp-nx) .lp-next-k i { display: block; flex-shrink: 0; width: 22px; height: 3px; border-radius: 2px; background: #FFA300; }
.lp .lp-next-sec:not(#lp-nx) .lp-next-k.lp-next-c2 i { background: #00C4B3; }
.lp .lp-next-sec:not(#lp-nx) .lp-next-k.lp-next-c3 i { background: #FF6F61; }
.lp .lp-next-sec:not(#lp-nx) .lp-next-n { color: #2D2E32; font-size: 20px; font-weight: 900; line-height: 1.4; }
.lp .lp-next-sec:not(#lp-nx) .lp-next-d { color: #45474D; font-size: 15px; line-height: 1.7; }
.lp .lp-next-sec:not(#lp-nx) .lp-next-go { margin-top: auto; padding-top: 12px; color: #2D2E32; font-size: 14px; font-weight: 800; }
@media (hover: hover) and (pointer: fine) {
  .lp .lp-next-sec:not(#lp-nx) .lp-next-st:hover .lp-next-n { text-decoration: underline; text-decoration-color: #FFA300; text-decoration-thickness: 2px; text-underline-offset: 5px; }
}
.lp .lp-next-sec:not(#lp-nx) .lp-next-more { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 28px; margin: 28px 0 0; padding: 0; font-size: 15px; line-height: 1.6; text-align: start; }
.lp .lp-next-sec:not(#lp-nx) .lp-next-more-lab { color: #5B616D; font-size: 13px; font-weight: 800; letter-spacing: .06em; }
.lp .lp-next-sec:not(#lp-nx) .lp-next-more a { padding-bottom: 1px; border-bottom: 2px solid #FFA300; color: #2D2E32; font-weight: 700; text-decoration: none; }
.lp .lp-next-sec:not(#lp-nx) .lp-next-more a:focus-visible { outline: 3px solid #2D2E32; outline-offset: 2px; }
.lp .lp-next-sec:not(#lp-nx) .lp-next-more small { margin-left: 6px; color: #5B616D; font-size: 13.5px; font-weight: 500; }
@media (max-width: 767.98px) {
  .lp .lp-next-sec:not(#lp-nx) .lp-next-in { padding: 48px 16px; }
  .lp .lp-next-sec:not(#lp-nx) .lp-next-h { font-size: 24px; }
  .lp .lp-next-sec:not(#lp-nx) .lp-next-sub { margin-bottom: 24px; }
  .lp .lp-next-sec:not(#lp-nx) .lp-next-path, .lp .lp-next-sec:not(#lp-nx) .lp-next-path.lp-next-n2 { grid-template-columns: 1fr; max-width: none; }
  .lp .lp-next-sec:not(#lp-nx) .lp-next-st { padding: 20px 16px; border-right: 0; border-bottom: 1px solid #E6E2DA; }
}

/* 對比修正（2026-10-29 健檢 axe color-contrast）：淺底彩色字改深墨、彩色底白字改深墨或加粗到大字門檻；亮橘不動 */
.lp:not(#lp-contrast) .hero-sub { color: #2D2E32; }
.lp:not(#lp-contrast) .blueprint-card-stage, .lp:not(#lp-contrast) .spawn-card-tag { color: #2D2E32; }
.lp .lp-updated { margin: 0; padding: 20px 16px 28px; text-align: center; font-size: 14px; line-height: 1.6; color: #5B616D; background: #FFFFFF; }
