/* ============================================================
   deck.css —— 《电子商务物流》课程幻灯片 公共样式表
   由 Chapter01-09.html 的内联样式统一提取生成，所有章节共用。
   维护方式：改本文件即对所有章节生效。
   ============================================================ */

/* ============================================================
   VIEWPORT BASE (mandatory) — included in full, then overridden
   by the fixed 1920x1080 stage model below.
   ============================================================ */
html, body { height: 100%; overflow-x: hidden; }
html { scroll-behavior: smooth; }
.slide { width: 100vw; height: 100vh; height: 100dvh; overflow: hidden; scroll-snap-align: start; display: flex; flex-direction: column; position: relative; }
.slide-content { flex: 1; display: flex; flex-direction: column; justify-content: center; max-height: 100%; overflow: hidden; padding: var(--slide-padding); }
:root { --title-size: clamp(1.5rem,5vw,4rem); --h2-size: clamp(1.25rem,3.5vw,2.5rem); --h3-size: clamp(1rem,2.5vw,1.75rem); --body-size: clamp(.75rem,1.5vw,1.125rem); --small-size: clamp(.65rem,1vw,.875rem); --slide-padding: clamp(1rem,4vw,4rem); --content-gap: clamp(.5rem,2vw,2rem); --element-gap: clamp(.25rem,1vw,1rem); }
.card, .container, .content-box { max-width: min(90vw,1000px); max-height: min(80vh,700px); }
.feature-list, .bullet-list { gap: clamp(.4rem,1vh,1rem); }
.feature-list li, .bullet-list li { font-size: var(--body-size); line-height: 1.4; }
.grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,250px),1fr)); gap: clamp(.5rem,1.5vw,1rem); }
img, .image-container { max-width: 100%; max-height: min(50vh,400px); object-fit: contain; }
@media (prefers-reduced-motion: reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.2s!important;}html{scroll-behavior:auto;}}

/* ============================================================
   FIXED 1920x1080 STAGE (scaled uniformly to viewport)
   ============================================================ */
:root{
  --bg:#f4f6f9;
  --ink:#15181d;
  --ink-soft:#3a3f47;
  --muted:#5d6470;
  --orange:#ff6a2b;
  --blue:#1f6feb;
  --teal:#0fb5a0;
  --card:#ffffff;
  --line:rgba(21,24,29,0.10);
  --font-display:'Noto Sans SC', sans-serif;
  --font-body:'Noto Sans SC', sans-serif;
  --font-latin:'Space Grotesk', sans-serif;
  --e:cubic-bezier(.16,1,.3,1);
}
*{margin:0;padding:0;box-sizing:border-box;}
html,body{background:#cfd6e0;}
#viewport{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;background:#cfd6e0;overflow:hidden;}
#stage{position:relative;width:1920px;height:1080px;transform-origin:center center;background:var(--bg);overflow:hidden;}
/* glows */
#stage::before{content:"";position:absolute;inset:0;pointer-events:none;
  background:radial-gradient(circle at 90% 8%, rgba(255,106,43,.10) 0%, transparent 36%),
             radial-gradient(circle at 6% 94%, rgba(31,111,235,.10) 0%, transparent 40%);}
.slide{position:absolute;inset:0;width:1920px;height:1080px;display:flex;flex-direction:column;
  opacity:0;visibility:hidden;pointer-events:none;transition:opacity .5s var(--e);}
.slide.active{opacity:1;visibility:visible;pointer-events:auto;}

/* per-slide layout */
.slide-inner{position:absolute;inset:0;padding:104px 150px 96px;display:flex;flex-direction:column;justify-content:center;}
.eyebrow{display:flex;align-items:center;gap:16px;font-family:var(--font-latin);font-weight:700;
  letter-spacing:.26em;text-transform:uppercase;color:var(--orange);font-size:23px;margin-bottom:30px;}
.eyebrow .dot{width:13px;height:13px;border-radius:50%;background:var(--orange);box-shadow:0 0 0 6px rgba(255,106,43,.18);}
.eyebrow .cn{font-family:var(--font-body);letter-spacing:.12em;color:var(--muted);font-weight:500;font-size:23px;text-transform:none;}
h2.title{font-family:var(--font-display);font-weight:900;color:var(--ink);font-size:62px;line-height:1.12;letter-spacing:.02em;}
h2.title .num{color:var(--orange);font-family:var(--font-latin);}
.title-rule{width:96px;height:12px;background:var(--orange);border-radius:3px;margin:26px 0 38px;}
.sub{font-family:var(--font-body);font-weight:300;color:var(--muted);font-size:33px;line-height:1.55;}

/* stacked reveal children */
.stack{display:flex;flex-direction:column;gap:26px;}
.stack > *{opacity:0;transform:translateY(26px);transition:opacity .7s var(--e),transform .7s var(--e);}
.slide.active .stack > *{opacity:1;transform:none;}
.slide.active .stack > *:nth-child(1){transition-delay:.06s;}
.slide.active .stack > *:nth-child(2){transition-delay:.16s;}
.slide.active .stack > *:nth-child(3){transition-delay:.26s;}
.slide.active .stack > *:nth-child(4){transition-delay:.36s;}
.slide.active .stack > *:nth-child(5){transition-delay:.46s;}
.slide.active .stack > *:nth-child(6){transition-delay:.56s;}
.slide.active .stack > *:nth-child(7){transition-delay:.66s;}
.slide.active .stack > *:nth-child(8){transition-delay:.76s;}

/* bullets */
.bullets{list-style:none;display:flex;flex-direction:column;gap:22px;margin-top:6px;}
.bullets li{position:relative;padding-left:46px;font-family:var(--font-body);font-size:33px;line-height:1.5;color:var(--ink-soft);font-weight:400;}
.bullets li::before{content:"";position:absolute;left:0;top:16px;width:18px;height:18px;background:var(--orange);border-radius:4px;transform:rotate(45deg);}
.bullets li b{color:var(--ink);font-weight:700;}
.bullets li .en{font-family:var(--font-latin);font-weight:700;color:var(--blue);}

/* cards grid */
.cards{display:grid;gap:24px;margin-top:8px;}
.cards.c3{grid-template-columns:repeat(3,1fr);}
.cards.c4{grid-template-columns:repeat(4,1fr);}
.cards.c5{grid-template-columns:repeat(5,1fr);}
.cards.c6{grid-template-columns:repeat(3,1fr);}
.cards.c2{grid-template-columns:repeat(2,1fr);}
.card{background:var(--card);border:1px solid var(--line);border-radius:16px;padding:30px 30px 32px;
  box-shadow:0 10px 30px rgba(21,24,29,.06);position:relative;overflow:hidden;}
.card::after{content:"";position:absolute;left:0;top:0;width:100%;height:6px;background:var(--orange);opacity:.9;}
.card.blue::after{background:var(--blue);} .card.teal::after{background:var(--teal);}
.card .k{font-family:var(--font-latin);font-weight:700;font-size:26px;color:var(--orange);letter-spacing:.02em;}
.card.blue .k{color:var(--blue);} .card.teal .k{color:var(--teal);}
.card h3{font-family:var(--font-display);font-weight:700;font-size:34px;color:var(--ink);margin:10px 0 12px;line-height:1.2;}
.card p{font-family:var(--font-body);font-size:25px;line-height:1.5;color:var(--muted);font-weight:300;}
.card .en{font-family:var(--font-latin);font-weight:700;color:var(--blue);font-size:21px;display:block;margin-bottom:6px;}

/* quote block */
.quote{background:#fff;border-left:10px solid var(--orange);border-radius:0 16px 16px 0;padding:42px 52px;
  box-shadow:0 12px 34px rgba(21,24,29,.07);}
.quote .src{font-family:var(--font-latin);font-weight:700;color:var(--orange);font-size:24px;letter-spacing:.04em;margin-bottom:18px;}
.quote p{font-family:var(--font-display);font-weight:500;font-size:36px;line-height:1.7;color:var(--ink);}
.quote p .em{color:var(--orange);font-weight:700;}

/* two-column */
.two{display:grid;grid-template-columns:1fr 1fr;gap:34px;margin-top:8px;}

/* term chips */
.terms{display:flex;flex-wrap:wrap;gap:16px;margin-top:14px;}
.term{font-family:var(--font-body);font-size:27px;color:var(--ink);background:#fff;border:1px solid var(--line);
  border-radius:40px;padding:13px 30px;box-shadow:0 6px 16px rgba(21,24,29,.05);}
.term b{font-family:var(--font-latin);font-weight:700;color:var(--blue);margin-right:10px;}

/* image slide */
.img-slide .slide-inner{justify-content:center;align-items:center;text-align:center;gap:0;}
.img-wrap{background:#fff;border:1px solid var(--line);border-radius:18px;padding:26px;box-shadow:0 16px 44px rgba(21,24,29,.10);max-width:1180px;}
.img-wrap img{max-width:100%;max-height:620px;object-fit:contain;display:block;margin:0 auto;border-radius:8px;}
.caption{font-family:var(--font-body);font-weight:500;color:var(--muted);font-size:27px;margin-top:22px;letter-spacing:.02em;}
.caption b{color:var(--orange);font-family:var(--font-latin);}

/* section divider */
.slide.section .slide-inner{justify-content:center;}
.sec-num{font-family:var(--font-latin);font-weight:700;font-size:230px;line-height:.9;color:rgba(255,106,43,.16);}
.sec-title{font-family:var(--font-display);font-weight:900;color:var(--ink);font-size:96px;line-height:1.08;margin-top:-18px;}
.sec-title .sub2{display:block;font-family:var(--font-body);font-weight:300;color:var(--muted);font-size:36px;margin-top:24px;letter-spacing:.02em;}
.sec-route{margin-top:46px;}

/* exercise */
.exercise{display:grid;grid-template-columns:1.15fr .85fr;gap:40px;align-items:center;}
.exercise .q{font-family:var(--font-body);font-size:29px;line-height:1.6;color:var(--ink-soft);margin-bottom:16px;}
.exercise .q b{color:var(--orange);font-family:var(--font-latin);}
.exercise .fig{background:#fff;border:1px solid var(--line);border-radius:14px;padding:18px;box-shadow:0 12px 30px rgba(21,24,29,.08);}
.exercise .fig img{max-width:100%;max-height:560px;object-fit:contain;display:block;margin:0 auto;}

/* title slide */
.slide.title .slide-inner{justify-content:center;}
.title-eyebrow{font-family:var(--font-latin);font-weight:700;letter-spacing:.3em;text-transform:uppercase;color:var(--orange);font-size:26px;display:flex;align-items:center;gap:18px;}
.title-eyebrow .dot{width:14px;height:14px;border-radius:50%;background:var(--orange);box-shadow:0 0 0 7px rgba(255,106,43,.18);}
.title-eyebrow .cn{font-family:var(--font-body);letter-spacing:.12em;color:var(--muted);font-weight:500;font-size:26px;}
.title-h1{font-family:var(--font-display);font-weight:900;color:var(--ink);font-size:150px;line-height:1.04;margin-top:48px;letter-spacing:.02em;}
.title-h1 .hl{color:var(--orange);}
.title-sub{font-family:var(--font-body);font-weight:300;color:var(--muted);font-size:38px;margin-top:34px;max-width:1100px;line-height:1.5;}

/* closing */
.slide.closing .slide-inner{justify-content:center;align-items:center;text-align:center;}
.closing-h{font-family:var(--font-display);font-weight:900;color:var(--ink);font-size:130px;}
.closing-h .hl{color:var(--orange);}
.closing-sub{font-family:var(--font-body);font-weight:300;color:var(--muted);font-size:36px;margin-top:26px;}

/* route svg (reusable) */
.route{margin-top:54px;height:150px;width:100%;}
.route svg{width:100%;height:100%;overflow:visible;}
.route .path{fill:none;stroke:var(--ink);stroke-width:4;stroke-dasharray:10 14;stroke-linecap:round;opacity:.4;animation:dash 2.4s linear infinite;}
@keyframes dash{to{stroke-dashoffset:-240;}}
.route .node circle{fill:#fff;stroke-width:5;}
.route .node.n1 circle{stroke:var(--blue);} .route .node.n2 circle{stroke:var(--orange);} .route .node.n3 circle{stroke:var(--teal);}
.route .node .ring{fill:none;stroke-width:3;opacity:.5;transform-origin:center;animation:pulse 2.4s ease-out infinite;}
.route .node.n1 .ring{stroke:var(--blue);} .route .node.n2 .ring{stroke:var(--orange);} .route .node.n3 .ring{stroke:var(--teal);}
@keyframes pulse{0%{transform:scale(1);opacity:.55;}70%{transform:scale(2.4);opacity:0;}100%{opacity:0;}}
.route .node text{font-family:var(--font-body);font-size:26px;font-weight:500;fill:var(--ink);}
.route .node .en{font-family:var(--font-latin);font-size:20px;fill:var(--muted);font-weight:500;}

/* ============================================================
   GLOBAL CHROME (progress, nav dots, footer, page num)
   ============================================================ */
#progress{position:fixed;top:0;left:0;height:6px;background:linear-gradient(90deg,var(--orange),var(--blue));z-index:50;transition:width .5s var(--e);}
#dots{position:fixed;right:30px;top:50%;transform:translateY(-50%);display:flex;flex-direction:column;gap:13px;z-index:50;}
#dots button{width:13px;height:13px;border-radius:50%;border:none;background:rgba(21,24,29,.22);cursor:pointer;padding:0;transition:all .3s var(--e);}
#dots button.on{background:var(--orange);transform:scale(1.5);}
#footer{position:fixed;left:34px;bottom:26px;font-family:var(--font-body);font-size:21px;color:var(--muted);z-index:50;letter-spacing:.02em;}
#pagenum{position:fixed;right:34px;bottom:26px;font-family:var(--font-latin);font-weight:700;font-size:23px;color:var(--ink-soft);z-index:50;}
#hint{position:fixed;left:50%;bottom:26px;transform:translateX(-50%);font-family:var(--font-body);font-size:19px;color:var(--muted);z-index:50;opacity:.7;}

/* inline edit hotzone + toggle */
.edit-hotzone{position:fixed;top:0;left:0;width:80px;height:80px;z-index:60;cursor:pointer;}
.edit-toggle{position:fixed;top:18px;left:18px;z-index:61;opacity:0;pointer-events:none;transition:opacity .3s ease;
  background:var(--orange);color:#fff;border:none;border-radius:10px;width:48px;height:48px;font-size:22px;cursor:pointer;box-shadow:0 6px 18px rgba(255,106,43,.4);}
.edit-toggle.show,.edit-toggle.active{opacity:1;pointer-events:auto;}
[contenteditable]{outline:2px dashed var(--orange);outline-offset:3px;border-radius:6px;cursor:text;}
.editing [contenteditable]{background:rgba(255,106,43,.06);}

@media (prefers-reduced-motion: reduce){.route .path{animation:none;}.route .node .ring{animation:none;}}


/* ============================================================
   自适应修复：锁死 #stage 为 1920x1080，避免被 flex 父容器压缩
   ============================================================ */
/* ===== RESPONSIVE_FIT_V2 (CSS) ===== */
/* 防止 #stage 被 flex 容器 #viewport 缩小，保持 1920x1080 由 transform 等比缩放 */
#stage{
  flex-shrink:0 !important;
  width:1920px !important;
  height:1080px !important;
  min-width:1920px;
  min-height:1080px;
}
