.dof-lab{
  --bg:#0a111b;--panel:#111c2a;--panel2:#172536;--line:#2d4056;--text:#f5f7fb;--muted:#afbdcc;
  --accent:#ffb448;--accent2:#ffd37d;--cyan:#57d5c9;--green:#64dc91;--red:#ff7d7d;--shadow:0 24px 70px rgba(0,0,0,.28);
  width:100%;max-width:1440px;margin:0 auto;padding:clamp(16px,3vw,42px);box-sizing:border-box;color:var(--text);
  background:radial-gradient(circle at 85% 4%,rgba(44,100,135,.25),transparent 28%),linear-gradient(160deg,#09111b,#0b1521 52%,#0a121c);
  border-radius:28px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans TC",sans-serif;line-height:1.55;
  isolation:isolate;overflow:hidden
}
.dof-lab *{box-sizing:border-box}.dof-lab button,.dof-lab input{font:inherit}.dof-lab button{cursor:pointer}
.dof-hero{display:flex;justify-content:space-between;gap:30px;align-items:flex-end;padding:16px 4px 28px}
.dof-eyebrow,.dof-kicker{margin:0 0 7px;color:var(--accent);font-size:.78rem;font-weight:800;letter-spacing:.16em;text-transform:uppercase}
.dof-hero h1{font-size:clamp(1.72rem,4.2vw,3.35rem);line-height:1.05;margin:0 0 16px;letter-spacing:-.045em}
.dof-lead{max-width:760px;margin:0;color:var(--muted);font-size:clamp(1rem,1.6vw,1.2rem)}
.dof-hero-badges{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.dof-hero-badges span{white-space:nowrap;padding:8px 12px;border:1px solid var(--line);border-radius:999px;background:rgba(255,255,255,.035);color:#dce7f3;font-size:.86rem}
.dof-stepper{display:flex;gap:8px;padding:7px;border:1px solid var(--line);background:rgba(8,15,24,.75);border-radius:16px;margin-bottom:18px;position:sticky;top:8px;z-index:20;backdrop-filter:blur(16px)}
.dof-stepper button{flex:1;border:0;border-radius:11px;padding:10px 12px;background:transparent;color:var(--muted);font-weight:750}
.dof-stepper button:hover,.dof-stepper button.is-active{background:var(--panel2);color:var(--text)}
.dof-workspace{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(340px,.72fr);gap:18px;align-items:start}
.dof-preview-card,.dof-controls-card,.dof-diagram-card,.dof-learning-note{
  border:1px solid var(--line);background:linear-gradient(180deg,rgba(22,35,51,.97),rgba(14,25,38,.97));border-radius:22px;box-shadow:var(--shadow)
}
.dof-preview-card,.dof-controls-card{padding:clamp(15px,2.5vw,24px)}
.dof-card-head,.dof-section-heading{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:16px}
.dof-card-head.compact{margin-bottom:12px}.dof-card-head h2,.dof-section-heading h2{margin:0;font-size:clamp(1.15rem,2vw,1.55rem)}
.dof-status-pill{padding:7px 11px;border-radius:999px;background:rgba(87,213,201,.13);border:1px solid rgba(87,213,201,.38);color:#9ef2e9;font-size:.84rem;font-weight:800}
.dof-scene{--subject-scale:1;position:relative;aspect-ratio:3/2;border-radius:18px;overflow:hidden;background:#708ca0;box-shadow:inset 0 0 0 1px rgba(255,255,255,.1)}
.dof-layer{position:absolute;inset:-20px;will-change:filter,transform;transition:filter .28s ease,transform .28s ease}
.dof-far{background:linear-gradient(#77b5d2 0 55%,#89a772 55% 100%);transform:scale(1.05)}
.dof-sun{position:absolute;width:70px;height:70px;border-radius:50%;background:#ffe4a1;right:12%;top:11%;box-shadow:0 0 45px rgba(255,226,147,.65)}
.dof-mountain{position:absolute;bottom:34%;width:60%;height:45%;background:#557f80;clip-path:polygon(0 100%,32% 18%,52% 61%,70% 30%,100% 100%)}
.dof-mountain.one{left:-8%}.dof-mountain.two{right:-12%;background:#426c71;transform:scale(.78);transform-origin:bottom right}
.dof-city{position:absolute;left:0;right:0;bottom:20%;height:22%;opacity:.62;background:repeating-linear-gradient(90deg,#34515c 0 15px,transparent 15px 24px),linear-gradient(transparent 35%,#314d57 36%)}
.dof-mid{transform:scale(1.05)}
.dof-tree{position:absolute;bottom:11%;width:76px;height:48%;background:linear-gradient(90deg,transparent 42%,#533d2b 43% 57%,transparent 58%)}
.dof-tree:before,.dof-tree:after{content:"";position:absolute;border-radius:50%;background:#2f6b55}
.dof-tree:before{width:130px;height:130px;left:-26px;top:-30px}.dof-tree:after{width:100px;height:100px;left:8px;top:38px;background:#397b5f}
.dof-tree.t1{left:8%}.dof-tree.t2{right:6%;transform:scale(.78)}
.dof-bokeh{position:absolute;border-radius:50%;background:rgba(255,220,134,.75);box-shadow:0 0 15px rgba(255,220,134,.6)}
.dof-bokeh.b1{width:24px;height:24px;left:23%;top:32%}.dof-bokeh.b2{width:34px;height:34px;right:24%;top:26%}.dof-bokeh.b3{width:18px;height:18px;right:37%;top:42%}
.dof-subject-layer{display:grid;place-items:end center;transform:scale(var(--subject-scale));transform-origin:50% 82%;z-index:4}
.dof-girl{
  position:relative;width:176px;height:90%;max-height:440px;min-height:255px;
  filter:drop-shadow(0 14px 20px rgba(0,0,0,.28))
}
.dof-girl-hair-back{
  position:absolute;z-index:1;left:50%;top:3%;translate:-50% 0;width:114px;height:154px;
  border-radius:52% 52% 43% 43%;background:linear-gradient(145deg,#4b2d35,#241d29 72%);
  box-shadow:inset 10px 0 0 rgba(255,255,255,.06)
}
.dof-girl-head{
  position:absolute;z-index:5;left:50%;top:8%;translate:-50% 0;width:88px;height:101px;
  border-radius:48% 48% 45% 45%;background:linear-gradient(145deg,#ffd3bd,#efaa92);
  box-shadow:inset -6px -7px 0 rgba(193,102,94,.08)
}
.dof-girl-hair-front{
  position:absolute;z-index:2;left:-5px;right:-5px;top:-9px;height:48px;
  border-radius:55% 55% 38% 38%;background:#34222e;
  clip-path:polygon(0 0,100% 0,100% 70%,83% 57%,73% 83%,59% 52%,46% 78%,31% 50%,16% 76%,0 64%)
}
.dof-girl-eye{
  position:absolute;z-index:4;top:48%;width:11px;height:14px;border-radius:50%;
  background:#302432;box-shadow:inset 3px 2px 0 rgba(255,255,255,.86)
}
.dof-girl-eye:after{
  content:"";position:absolute;left:-2px;right:-2px;top:-4px;height:5px;
  border-top:2px solid #3f2a35;border-radius:50%
}
.dof-girl-eye.left{left:21%}.dof-girl-eye.right{right:21%}
.dof-girl-cheek{
  position:absolute;z-index:3;top:66%;width:17px;height:8px;border-radius:50%;
  background:rgba(239,111,126,.35);filter:blur(.3px)
}
.dof-girl-cheek.left{left:12%}.dof-girl-cheek.right{right:12%}
.dof-girl-smile{
  position:absolute;z-index:4;left:50%;bottom:15%;translate:-50%;width:25px;height:12px;
  border-bottom:3px solid #a24d62;border-radius:50%
}
.dof-girl-neck{
  position:absolute;z-index:3;left:50%;top:30%;translate:-50%;width:31px;height:34px;
  border-radius:0 0 12px 12px;background:#e9a083
}
.dof-girl-body{
  position:absolute;z-index:2;left:50%;bottom:0;translate:-50%;width:150px;height:67%
}
.dof-girl-dress{
  position:absolute;inset:0 7px 0;border-radius:48px 48px 17px 17px;
  background:linear-gradient(145deg,#ff8fb2,#da5f93 62%,#bd477c);
  clip-path:polygon(18% 0,82% 0,100% 100%,0 100%);
  box-shadow:inset 9px 0 0 rgba(255,255,255,.09)
}
.dof-girl-dress:after{
  content:"";position:absolute;left:14%;right:14%;top:48%;height:9px;border-radius:99px;
  background:rgba(255,255,255,.25)
}
.dof-girl-collar{
  position:absolute;z-index:3;left:50%;top:0;translate:-50%;width:68px;height:33px;
  background:#fff4ee;clip-path:polygon(0 0,48% 25%,50% 100%,52% 25%,100% 0,82% 72%,50% 100%,18% 72%);
  filter:drop-shadow(0 2px 2px rgba(0,0,0,.12))
}
.dof-girl-arm{
  position:absolute;z-index:-1;top:18%;width:34px;height:62%;border-radius:30px;
  background:linear-gradient(#efaa8e 0 42%,#d85f91 43% 100%)
}
.dof-girl-arm.left{left:-2px;rotate:8deg}.dof-girl-arm.right{right:-2px;rotate:-8deg}
.dof-girl-bow{
  position:absolute;z-index:8;left:69%;top:3%;width:52px;height:37px;rotate:10deg
}
.dof-girl-bow i{
  position:absolute;top:4px;width:28px;height:25px;background:#ffd55f;border:3px solid #e6a934
}
.dof-girl-bow i:first-child{left:0;border-radius:65% 32% 55% 35%;rotate:-12deg}
.dof-girl-bow i:nth-child(2){right:0;border-radius:32% 65% 35% 55%;rotate:12deg}
.dof-girl-bow b{
  position:absolute;z-index:2;left:50%;top:9px;translate:-50%;width:17px;height:17px;
  border-radius:50%;background:#ffb647;border:3px solid #e39a2f
}
.dof-focus-box{position:absolute;z-index:8;left:50%;top:23%;translate:-50% -50%;width:112px;height:105px;filter:drop-shadow(0 2px 5px rgba(0,0,0,.3))}
.dof-focus-box span{position:absolute;width:22px;height:22px;border-color:#ffe76d;border-style:solid}
.dof-focus-box span:nth-child(1){left:0;top:0;border-width:3px 0 0 3px}.dof-focus-box span:nth-child(2){right:0;top:0;border-width:3px 3px 0 0}
.dof-focus-box span:nth-child(3){left:0;bottom:0;border-width:0 0 3px 3px}.dof-focus-box span:nth-child(4){right:0;bottom:0;border-width:0 3px 3px 0}
.dof-front{z-index:6;pointer-events:none}.dof-leaf{position:absolute;width:90px;height:38px;border-radius:100% 0 100% 0;background:#235743}
.dof-leaf.l1{left:-2%;bottom:12%;rotate:38deg}.dof-leaf.l2{left:8%;bottom:2%;rotate:65deg;scale:1.4}.dof-leaf.l3{left:1%;top:20%;rotate:18deg}
.dof-leaf.r1{right:1%;bottom:4%;rotate:-42deg;scale:1.5}.dof-leaf.r2{right:-3%;top:28%;rotate:-70deg}
.dof-viewfinder{position:absolute;z-index:12;left:12px;right:12px;bottom:9px;display:flex;justify-content:space-between;color:#fff;font-weight:800;text-shadow:0 1px 5px #000;font-size:.83rem}
.dof-sim-note{position:absolute;z-index:12;right:10px;top:10px;padding:5px 8px;border-radius:8px;background:rgba(0,0,0,.44);font-size:.68rem;color:#fff}
.dof-observation{display:flex;gap:13px;align-items:flex-start;margin-top:14px;padding:13px;border-radius:14px;background:#0c1723;border:1px solid #25394c}
.dof-observation-icon{display:grid;place-items:center;flex:0 0 38px;height:38px;border-radius:12px;background:rgba(255,180,72,.14)}
.dof-observation strong{display:block;margin-bottom:2px}.dof-observation p{margin:0;color:var(--muted);font-size:.9rem}
.dof-result-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:10px}
.dof-result-grid article{padding:10px;border:1px solid #26394c;border-radius:12px;background:rgba(8,16,25,.43)}
.dof-result-grid span{display:block;color:var(--muted);font-size:.74rem}.dof-result-grid strong{font-size:1rem}
.dof-icon-button{border:1px solid var(--line);width:40px;height:40px;border-radius:12px;background:#0d1824;color:var(--text);font-size:1.3rem}
.dof-icon-button:hover{border-color:var(--accent);color:var(--accent)}
.dof-mode-switch{display:grid;grid-template-columns:1fr 1fr;background:#0b1520;padding:5px;border-radius:12px;border:1px solid var(--line)}
.dof-mode-switch button{border:0;padding:9px 8px;border-radius:8px;background:transparent;color:var(--muted);font-size:.82rem;font-weight:800}
.dof-mode-switch button.is-active{background:var(--panel2);color:var(--text)}
.dof-mode-help{margin:8px 2px 15px;color:var(--muted);font-size:.78rem;min-height:2.4em}
.dof-control{padding:14px 0;border-top:1px solid rgba(76,101,127,.35)}
.dof-control.is-highlighted{animation:dofPulse 1.35s ease}
@keyframes dofPulse{0%,100%{background:transparent}35%{background:rgba(255,180,72,.11);box-shadow:0 0 0 8px rgba(255,180,72,.11)}}
.dof-control-title,.dof-control-title>div{display:flex;align-items:center;justify-content:space-between;gap:10px}
.dof-control-title>div{justify-content:flex-start}.dof-control-title strong{display:block}.dof-control-title small{display:block;color:var(--muted);font-size:.72rem}
.dof-control-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:rgba(255,180,72,.12);color:var(--accent)}
.dof-control output{font-weight:850;color:var(--accent2);font-size:1.12rem}
.dof-control input[type="range"]{width:100%;height:26px;margin:9px 0 0;accent-color:var(--accent);touch-action:pan-y}
.dof-scale{display:flex;justify-content:space-between;color:#8294a8;font-size:.67rem;margin-top:-2px}
.dof-one-variable{padding:12px;border:1px solid #2a3e52;border-radius:14px;background:#0c1723;margin-top:5px}
.dof-one-variable p{display:flex;justify-content:space-between;gap:8px;margin:0 0 8px}.dof-one-variable p span{color:var(--muted);font-size:.72rem}
.dof-one-variable>div{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
.dof-one-variable button{padding:8px 4px;border-radius:9px;border:1px solid #324a61;background:#132233;color:#d9e5ef;font-size:.74rem;font-weight:750}
.dof-one-variable button:hover{border-color:var(--accent);color:var(--accent)}
.dof-factor-summary{margin-top:12px;padding:12px;border-radius:14px;background:linear-gradient(135deg,rgba(87,213,201,.09),rgba(255,180,72,.07));border:1px solid #2b4952}
.dof-factor-summary>p{margin:0 0 9px}.dof-factor-row{display:grid;grid-template-columns:70px 1fr 24px;gap:8px;align-items:center;margin:7px 0;font-size:.75rem}
.dof-factor-row>div{height:6px;border-radius:999px;background:#1b3040;overflow:hidden}.dof-factor-row i{display:block;height:100%;width:50%;border-radius:inherit;background:linear-gradient(90deg,var(--cyan),var(--accent))}
.dof-factor-row b{text-align:right;color:var(--accent2)}.dof-factor-summary>small{display:block;color:#8fa2b4;font-size:.66rem;line-height:1.4;margin-top:8px}
.dof-diagram-card,.dof-learning-note{margin-top:18px;padding:clamp(16px,3vw,28px)}
.dof-legend{display:flex;gap:7px;flex-wrap:wrap}.dof-legend span{padding:5px 8px;border-radius:999px;font-size:.7rem;border:1px solid var(--line)}
.dof-legend .near{color:#7ce3d9}.dof-legend .focus{color:#ffe07f}.dof-legend .far{color:#9fb9ff}
.dof-distance-map{position:relative;height:155px;margin:10px 8px 0;overflow:hidden}
.dof-track{position:absolute;left:4%;right:3%;top:76px;height:4px;background:#41566d;border-radius:99px}
.dof-depth-band{position:absolute;top:61px;height:34px;border:1px solid rgba(87,213,201,.7);background:linear-gradient(90deg,rgba(87,213,201,.18),rgba(87,213,201,.45),rgba(116,151,255,.2));border-radius:8px;transition:left .25s,width .25s}
.dof-camera-marker,.dof-near-marker,.dof-focus-marker,.dof-far-marker{position:absolute;top:29px;translate:-50%;text-align:center;transition:left .25s}
.dof-camera-marker{left:4%;top:34px}.dof-camera-marker span{display:block;font-size:2rem}.dof-camera-marker b{font-size:.7rem;color:var(--muted)}
.dof-near-marker i,.dof-focus-marker i,.dof-far-marker i{display:block;width:2px;height:68px;margin:auto;background:currentColor}.dof-near-marker{color:var(--cyan)}.dof-focus-marker{color:var(--accent)}.dof-far-marker{color:#88a9ff}
.dof-near-marker b,.dof-focus-marker b,.dof-far-marker b{display:block;margin-top:3px;font-size:.7rem;white-space:nowrap}
.dof-infinity{position:absolute;right:2%;top:62px;font-size:1.35rem;color:#71869c}
.dof-conclusion{display:flex;gap:10px;align-items:center;padding:12px 14px;border-radius:14px;background:#0b1622;border:1px solid #263a4c}
.dof-conclusion p{margin:0;color:var(--muted)}.dof-conclusion strong{color:var(--text)}
.dof-progress{min-width:150px}.dof-progress span{display:block;text-align:right;color:var(--muted);font-size:.76rem;margin-bottom:5px}
.dof-progress>div{height:7px;border-radius:99px;background:#26394c;overflow:hidden}.dof-progress i{display:block;width:0;height:100%;background:linear-gradient(90deg,var(--cyan),var(--green));transition:width .3s}
.dof-challenge-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.dof-challenge-card{padding:16px;border:1px solid #2c4054;border-radius:17px;background:#0e1a27;display:flex;flex-direction:column}
.dof-challenge-top{display:flex;justify-content:space-between;gap:10px;color:var(--muted);font-size:.72rem}.dof-challenge-top b{color:#8fa2b4}
.dof-challenge-card.is-complete{border-color:rgba(100,220,145,.7);box-shadow:inset 0 0 0 1px rgba(100,220,145,.15)}
.dof-challenge-card.is-complete .dof-challenge-top b{color:var(--green)}
.dof-challenge-emoji{font-size:2rem;margin:13px 0 4px}.dof-challenge-card h3{margin:0 0 5px}.dof-challenge-card p{margin:0 0 14px;color:var(--muted);font-size:.85rem;flex:1}
.dof-challenge-card button{width:100%;border:1px solid #334a60;border-radius:10px;padding:9px 10px;background:#132334;color:#dce8f2;font-weight:800;font-size:.78rem;margin-top:7px}
.dof-challenge-card button.primary{background:var(--accent);border-color:var(--accent);color:#2c1c07}.dof-challenge-card button:hover{filter:brightness(1.08)}
.dof-feedback{min-height:0;margin-top:9px;border-radius:10px;font-size:.76rem;color:var(--muted)}
.dof-feedback:not(:empty){padding:9px;background:#142332}.dof-feedback.success{color:#9aefb9;background:rgba(100,220,145,.1)}.dof-feedback.error{color:#ffc0c0;background:rgba(255,125,125,.09)}
.dof-learning-note h2{margin-top:0}.dof-learning-note>div{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.dof-learning-note article{display:flex;gap:10px;align-items:flex-start;padding:13px;border-radius:14px;background:#0e1a27;border:1px solid #293d50}
.dof-learning-note article>span{display:grid;place-items:center;flex:0 0 31px;height:31px;border-radius:50%;background:var(--accent);color:#2b1a03;font-weight:900}
.dof-learning-note article p{margin:2px 0 0;color:var(--muted);font-size:.85rem}.dof-learning-note article strong{color:var(--text)}
.dof-disclaimer{margin:14px 0 0;color:#8295a8;font-size:.72rem}
@media(max-width:980px){
  .dof-workspace{grid-template-columns:1fr}.dof-controls-card{position:static}.dof-learning-note>div{grid-template-columns:1fr}
}
@media(max-width:680px){
  .dof-lab{padding:12px;border-radius:18px}.dof-hero{display:block;padding-top:8px}.dof-hero-badges{justify-content:flex-start;margin-top:14px}
  .dof-stepper{top:4px}.dof-stepper button{font-size:.72rem;padding:9px 4px}
  .dof-card-head,.dof-section-heading{align-items:flex-start}.dof-preview-card,.dof-controls-card,.dof-diagram-card,.dof-learning-note{border-radius:17px}
  .dof-scene{aspect-ratio:4/3}.dof-girl{min-height:210px;width:135px}.dof-girl-head{width:72px;height:84px}.dof-girl-hair-back{width:94px;height:128px}.dof-girl-body{width:122px}
  .dof-result-grid{grid-template-columns:1fr 1fr}.dof-result-grid article{padding:9px}
  .dof-section-heading{display:block}.dof-progress{margin-top:12px}.dof-progress span{text-align:left}
  .dof-legend{margin-top:10px}.dof-distance-map{height:145px;margin-inline:0}.dof-one-variable>div{grid-template-columns:1fr}
  .dof-one-variable button,.dof-challenge-card button{min-height:44px}.dof-mode-switch button{min-height:42px}
}
@media(prefers-reduced-motion:reduce){.dof-lab *{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
.dof-lab h1,
.dof-lab h2,
.dof-lab h3,
.dof-lab .dof-eyebrow,
.dof-lab .dof-kicker{
  color:#fff !important;
}
/* v1.2.0：頁首精簡與行銷頁尾 */
.dof-hero{
  align-items:flex-start;
}
.dof-hero > div:first-child{
  max-width:920px;
}
.dof-marketing-footer{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:18px;
  margin-top:18px;
  padding:18px 20px;
  border:1px solid var(--et-border, #2b394b);
  border-radius:18px;
  background:linear-gradient(135deg,rgba(24,34,49,.98),rgba(12,23,35,.98));
  box-shadow:0 18px 50px rgba(0,0,0,.22);
}
.dof-author-block span{
  display:block;
  color:var(--et-muted, #aeb9c8);
  font-size:.75rem;
}
.dof-author-block strong{
  display:block;
  margin-top:2px;
  color:#fff;
  font-size:1.12rem;
}
.dof-marketing-footer a{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:44px;
  padding:10px 14px;
  border-radius:12px;
  background:var(--et-accent, #ffb44a);
  color:#2a1902 !important;
  text-decoration:none !important;
  font-weight:850;
}
.dof-marketing-footer a:hover{
  filter:brightness(1.06);
  transform:translateY(-1px);
}
.dof-marketing-footer a:focus-visible{
  outline:3px solid rgba(255,180,74,.35);
  outline-offset:3px;
}
@media(max-width:680px){
  .dof-marketing-footer{
    display:block;
    padding:16px;
  }
  .dof-marketing-footer a{
    width:100%;
    justify-content:center;
    margin-top:12px;
  }
}
/* v1.2.3：精簡導覽與控制台 */
.dof-controls-heading{
  margin-bottom:4px;
}
.dof-controls-heading .dof-kicker{
  margin-bottom:0;
}
@media(max-width:680px){
  .dof-hero h1{
    font-size:clamp(1.62rem,8.4vw,2.45rem);
  }
}
/* v1.2.4：文字層級與版面精簡 */
.dof-lead-prominent{
  margin:0;
  color:#fff !important;
  font-size:clamp(1.15rem,2vw,1.55rem) !important;
  font-weight:700;
  line-height:1.5;
  max-width:980px;
}
.dof-reset-only{
  justify-content:flex-end;
  margin-bottom:4px;
}
.dof-control-title strong,
.dof-control-title small{
  color:#fff !important;
  font-size:clamp(1.15rem,2vw,1.55rem) !important;
  line-height:1.35;
}
.dof-control-title small{
  margin-top:3px;
  font-weight:500;
}
.dof-learning-note article p,
.dof-learning-note article strong{
  color:#fff !important;
  font-size:clamp(1.15rem,2vw,1.55rem) !important;
  line-height:1.5;
}
@media(max-width:680px){
  .dof-lead-prominent,
  .dof-control-title strong,
  .dof-control-title small,
  .dof-learning-note article p,
  .dof-learning-note article strong{
    font-size:1.15rem !important;
  }
}
/* v1.2.5：標題、品牌頁尾與內容精簡 */
.dof-heading-equal{
  color:#fff !important;
  font-size:clamp(1.4rem,2.4vw,1.9rem) !important;
  line-height:1.35;
}
.dof-author-line{
  color:#fff !important;
  font-size:clamp(1.12rem,1.8vw,1.4rem) !important;
  line-height:1.45;
  font-weight:800;
}
.dof-site-button-blue{
  background:#1677ff !important;
  color:#fff !important;
  border:1px solid rgba(255,255,255,.12) !important;
}
.dof-site-button-blue span,
.dof-site-button-blue b{
  color:#fff !important;
}
.dof-site-button-blue:hover{
  background:#0f67df !important;
}
@media(max-width:680px){
  .dof-heading-equal{
    font-size:1.35rem !important;
  }
  .dof-author-line{
    font-size:1.12rem !important;
  }
}
/* v1.2.6：景深狀態置中與介面精簡 */
.dof-preview-card .dof-card-head{
  display:flex;
  justify-content:center;
  align-items:center;
  margin-bottom:16px;
}
.dof-preview-card .dof-card-head > div:empty{
  display:none;
}
.dof-status-centered{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin:0 auto;
  padding:10px 20px;
  color:#fff !important;
  font-size:clamp(1.65rem,3vw,2.25rem) !important;
  line-height:1.2;
  font-weight:900;
  text-align:center;
  background:rgba(87,213,201,.12);
  border:1px solid rgba(87,213,201,.38);
}
@media(max-width:680px){
  .dof-status-centered{
    font-size:1.55rem !important;
    padding:9px 16px;
  }
}
/* v1.2.7：焦距改變時，同步改變背景取景範圍 */
.dof-scene{
  --fov-scale:1;
}
.dof-sky,
.dof-far,
.dof-mid,
.dof-front{
  transform:scale(var(--fov-scale,1)) !important;
  transform-origin:center center;
}
/* v1.2.8：放大景深範圍圖中的標示文字 */
.dof-marker b,
.dof-camera b{
  font-size:clamp(1.05rem,1.8vw,1.28rem) !important;
  line-height:1.35;
  font-weight:800;
}
@media(max-width:680px){
  .dof-marker b,
  .dof-camera b{
    font-size:1rem !important;
  }
}
/* v1.2.9：全幅相機計算說明 */
.dof-calculation-note{
  margin:18px 2px 0;
  color:#fff;
  font-size:.95rem;
  line-height:1.6;
  text-align:center;
  opacity:.9;
}
@media(max-width:680px){
  .dof-calculation-note{
    font-size:.88rem;
  }
}
/* v1.3.3：主體改為可愛微笑的貓 */
.dof-cat{
  position:relative;
  width:190px;
  height:90%;
  max-height:440px;
  min-height:250px;
  filter:drop-shadow(0 14px 20px rgba(0,0,0,.28));
}
.dof-cat-body{
  position:absolute;
  left:50%;
  bottom:6%;
  transform:translateX(-50%);
  width:122px;
  height:156px;
  border-radius:42% 42% 34% 34%;
  background:linear-gradient(180deg,#ffcc8d 0%,#f3aa5f 62%,#df8a44 100%);
  border:3px solid rgba(93,53,21,.18);
}
.dof-cat-belly{
  position:absolute;
  left:50%;
  top:26px;
  transform:translateX(-50%);
  width:74px;
  height:98px;
  border-radius:46% 46% 42% 42%;
  background:linear-gradient(180deg,#fff2dd 0%,#ffe0bb 100%);
  opacity:.96;
}
.dof-cat-paw{
  position:absolute;
  bottom:-6px;
  width:34px;
  height:48px;
  border-radius:18px 18px 22px 22px;
  background:linear-gradient(180deg,#ffd29b 0%,#efaa67 100%);
  box-shadow:inset 0 -6px 0 rgba(255,244,228,.35);
}
.dof-cat-paw.left{left:18px}
.dof-cat-paw.right{right:18px}
.dof-cat-tail{
  position:absolute;
  right:12px;
  bottom:62px;
  width:76px;
  height:112px;
  border:16px solid #e49a56;
  border-left:0;
  border-bottom:0;
  border-radius:0 88px 0 0;
  transform:rotate(20deg);
  box-shadow:inset -5px 0 0 rgba(255,240,217,.24);
}
.dof-cat-head{
  position:absolute;
  left:50%;
  top:10px;
  transform:translateX(-50%);
  width:138px;
  height:126px;
  border-radius:49% 49% 46% 46%;
  background:linear-gradient(180deg,#ffd6a3 0%,#f8b870 88%);
  border:3px solid rgba(93,53,21,.18);
  z-index:2;
}
.dof-cat-face-patch{
  position:absolute;
  left:50%;
  bottom:12px;
  transform:translateX(-50%);
  width:88px;
  height:62px;
  border-radius:44px;
  background:linear-gradient(180deg,#fff5e5 0%,#ffe3c2 100%);
  opacity:.98;
}
.dof-cat-ear{
  position:absolute;
  top:-14px;
  width:44px;
  height:44px;
  background:linear-gradient(180deg,#efb16d 0%,#e0924e 100%);
  border:3px solid rgba(93,53,21,.18);
  border-radius:8px 38px 8px 38px;
  z-index:-1;
}
.dof-cat-ear.left{
  left:13px;
  transform:rotate(-34deg);
}
.dof-cat-ear.right{
  right:13px;
  transform:scaleX(-1) rotate(-34deg);
}
.dof-cat-ear span{
  position:absolute;
  inset:9px;
  border-radius:6px 28px 6px 28px;
  background:#ffcea8;
}
.dof-cat-eye{
  position:absolute;
  top:48px;
  width:18px;
  height:18px;
  border-radius:50%;
  background:#352217;
  box-shadow:0 0 0 4px rgba(255,255,255,.14) inset;
}
.dof-cat-eye.left{left:35px}
.dof-cat-eye.right{right:35px}
.dof-cat-eye::after{
  content:"";
  position:absolute;
  width:5px;
  height:5px;
  border-radius:50%;
  background:#fff;
  left:3px;
  top:3px;
}
.dof-cat-blush{
  position:absolute;
  top:71px;
  width:18px;
  height:10px;
  border-radius:50%;
  background:rgba(255,138,150,.42);
}
.dof-cat-blush.left{left:22px}
.dof-cat-blush.right{right:22px}
.dof-cat-nose{
  position:absolute;
  left:50%;
  top:67px;
  transform:translateX(-50%);
  width:12px;
  height:9px;
  background:#d57272;
  clip-path:polygon(50% 100%,0 0,100% 0);
}
.dof-cat-mouth{
  position:absolute;
  left:50%;
  top:76px;
  width:28px;
  height:18px;
  transform:translateX(-50%);
}
.dof-cat-mouth::before,
.dof-cat-mouth::after{
  content:"";
  position:absolute;
  top:0;
  width:14px;
  height:12px;
  border-bottom:3px solid #7a4332;
  border-radius:0 0 16px 16px;
}
.dof-cat-mouth::before{left:0;transform:rotate(8deg)}
.dof-cat-mouth::after{right:0;transform:scaleX(-1) rotate(8deg)}
.dof-cat-whisker{
  position:absolute;
  top:74px;
  width:34px;
  height:2px;
  background:rgba(91,57,33,.82);
  transform-origin:center;
}
.dof-cat-whisker.w1{left:-1px;transform:rotate(-10deg)}
.dof-cat-whisker.w2{left:-1px;top:82px;transform:rotate(10deg)}
.dof-cat-whisker.w3{right:-1px;transform:rotate(10deg)}
.dof-cat-whisker.w4{right:-1px;top:82px;transform:rotate(-10deg)}
.dof-cat-bow{
  position:absolute;
  left:50%;
  bottom:118px;
  transform:translateX(-50%);
  width:54px;
  height:28px;
  z-index:3;
}
.dof-cat-bow i,
.dof-cat-bow b{
  position:absolute;
  display:block;
}
.dof-cat-bow i{
  top:0;
  width:24px;
  height:24px;
  background:linear-gradient(180deg,#7bc6f7 0%,#4ca7ea 100%);
  border-radius:8px 16px;
}
.dof-cat-bow i.left{left:0;transform:rotate(12deg)}
.dof-cat-bow i.right{right:0;transform:scaleX(-1) rotate(12deg)}
.dof-cat-bow b{
  left:50%;
  top:6px;
  transform:translateX(-50%);
  width:14px;
  height:14px;
  border-radius:50%;
  background:#fff4dd;
  box-shadow:0 0 0 2px rgba(102,55,16,.08);
}
@media(max-width:680px){
  .dof-cat{
    width:156px;
    min-height:220px;
  }
  .dof-cat-head{
    width:120px;
    height:110px;
  }
  .dof-cat-body{
    width:108px;
    height:142px;
  }
}
/* v1.3.4：主體改為可愛微笑的狗 */
.dof-dog{
  position:relative;
  width:196px;
  height:90%;
  max-height:440px;
  min-height:250px;
  filter:drop-shadow(0 14px 20px rgba(0,0,0,.28));
}
.dof-dog-body{
  position:absolute;
  left:50%;
  bottom:6%;
  transform:translateX(-50%);
  width:128px;
  height:154px;
  border-radius:42% 42% 34% 34%;
  background:linear-gradient(180deg,#d7a26a 0%,#bf7f46 62%,#9f6538 100%);
  border:3px solid rgba(93,53,21,.18);
}
.dof-dog-belly{
  position:absolute;
  left:50%;
  top:28px;
  transform:translateX(-50%);
  width:76px;
  height:94px;
  border-radius:46% 46% 42% 42%;
  background:linear-gradient(180deg,#fff1de 0%,#f4d6b3 100%);
  opacity:.98;
}
.dof-dog-paw{
  position:absolute;
  bottom:-6px;
  width:35px;
  height:50px;
  border-radius:18px 18px 22px 22px;
  background:linear-gradient(180deg,#dfae78 0%,#bf834f 100%);
  box-shadow:inset 0 -6px 0 rgba(255,244,228,.28);
}
.dof-dog-paw.left{left:18px}
.dof-dog-paw.right{right:18px}
.dof-dog-tail{
  position:absolute;
  right:2px;
  bottom:94px;
  width:74px;
  height:18px;
  border-radius:18px;
  background:linear-gradient(90deg,#bf834f 0%,#d6a16e 100%);
  transform:rotate(28deg);
  transform-origin:left center;
  box-shadow:0 0 0 3px rgba(93,53,21,.08);
}
.dof-dog-head{
  position:absolute;
  left:50%;
  top:14px;
  transform:translateX(-50%);
  width:140px;
  height:124px;
  border-radius:48% 48% 44% 44%;
  background:linear-gradient(180deg,#e2b07a 0%,#cb8b57 88%);
  border:3px solid rgba(93,53,21,.18);
  z-index:2;
}
.dof-dog-ear{
  position:absolute;
  top:8px;
  width:34px;
  height:56px;
  background:linear-gradient(180deg,#8a5734 0%,#6f4327 100%);
  border-radius:18px 18px 26px 26px;
  z-index:-1;
}
.dof-dog-ear.left{left:8px;transform:rotate(10deg)}
.dof-dog-ear.right{right:8px;transform:rotate(-10deg)}
.dof-dog-face-patch{
  position:absolute;
  left:50%;
  bottom:10px;
  transform:translateX(-50%);
  width:92px;
  height:66px;
  border-radius:46px;
  background:linear-gradient(180deg,#fff5e8 0%,#f6dfc3 100%);
  opacity:.98;
}
.dof-dog-eye{
  position:absolute;
  top:50px;
  width:16px;
  height:16px;
  border-radius:50%;
  background:#2f2117;
  box-shadow:0 0 0 4px rgba(255,255,255,.14) inset;
}
.dof-dog-eye.left{left:36px}
.dof-dog-eye.right{right:36px}
.dof-dog-eye::after{
  content:"";
  position:absolute;
  width:5px;
  height:5px;
  border-radius:50%;
  background:#fff;
  left:3px;
  top:3px;
}
.dof-dog-blush{
  position:absolute;
  top:72px;
  width:18px;
  height:10px;
  border-radius:50%;
  background:rgba(255,138,150,.35);
}
.dof-dog-blush.left{left:22px}
.dof-dog-blush.right{right:22px}
.dof-dog-nose{
  position:absolute;
  left:50%;
  top:62px;
  transform:translateX(-50%);
  width:20px;
  height:14px;
  border-radius:50% 50% 60% 60%;
  background:#4d3223;
}
.dof-dog-mouth{
  position:absolute;
  left:50%;
  top:77px;
  width:30px;
  height:18px;
  transform:translateX(-50%);
}
.dof-dog-mouth::before,
.dof-dog-mouth::after{
  content:"";
  position:absolute;
  top:0;
  width:14px;
  height:12px;
  border-bottom:3px solid #7a4332;
  border-radius:0 0 16px 16px;
}
.dof-dog-mouth::before{left:0;transform:rotate(8deg)}
.dof-dog-mouth::after{right:0;transform:scaleX(-1) rotate(8deg)}
.dof-dog-tongue{
  position:absolute;
  left:50%;
  top:87px;
  transform:translateX(-50%);
  width:14px;
  height:16px;
  border-radius:0 0 10px 10px;
  background:#ef7f86;
}
.dof-dog-collar{
  position:absolute;
  left:50%;
  bottom:152px;
  transform:translateX(-50%);
  width:88px;
  height:16px;
  border-radius:14px;
  background:linear-gradient(90deg,#5ec0ff 0%,#2f95ee 100%);
  z-index:3;
  box-shadow:0 0 0 2px rgba(255,255,255,.18) inset;
}
@media(max-width:680px){
  .dof-dog{
    width:160px;
    min-height:220px;
  }
  .dof-dog-head{
    width:122px;
    height:110px;
  }
  .dof-dog-body{
    width:112px;
    height:140px;
  }
}
/* v1.3.5：使用使用者提供的前景、背景、主體教學圖 */
.dof-scene{
  background:linear-gradient(180deg,#8ed1ff 0%,#a5ddff 44%,#cfefff 100%);
  overflow:hidden;
}
.dof-sky{
  inset:-4% -6%;
  background-image:url("images/background-mountains.jpg");
  background-size:cover;
  background-position:center center;
  opacity:1;
}
.dof-far{
  inset:-3% -6%;
  background-image:url("images/background-mountains.jpg");
  background-size:cover;
  background-position:center center;
  opacity:.78;
  mix-blend-mode:normal;
}
.dof-mid{
  inset:-1% -4%;
  background-image:url("images/background-mountains.jpg");
  background-size:cover;
  background-position:center center;
  opacity:.42;
  transform:scale(calc(var(--fov-scale,1) * 1.03)) !important;
}
.dof-front{
  left:-2%;
  right:-2%;
  bottom:-1%;
  top:54%;
  background-image:url("images/foreground-flowers.png");
  background-size:cover;
  background-position:center bottom;
  background-repeat:no-repeat;
  opacity:1;
  z-index:4;
  transform:scale(calc(var(--fov-scale,1) * 1.06)) !important;
}
.dof-subject-layer{
  z-index:5;
  left:50%;
  bottom:0;
  width:min(44%, 340px);
  height:92%;
  display:flex;
  align-items:flex-end;
  justify-content:center;
  transform:
    translateX(-50%)
    scale(var(--subject-scale,1));
  transform-origin:center bottom;
}
.dof-subject-photo{
  width:100%;
  height:100%;
  display:flex;
  align-items:flex-end;
  justify-content:center;
}
.dof-subject-photo img{
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:center bottom;
  display:block;
  filter:drop-shadow(0 14px 18px rgba(0,0,0,.22));
}
.dof-viewfinder{
  z-index:6;
}
.dof-bokeh{
  z-index:3;
}
@media(max-width:680px){
  .dof-subject-layer{
    width:min(52%, 250px);
    height:90%;
  }
  .dof-front{
    top:60%;
  }
}
/* v1.3.6：使用 girl2、花草前景與山景背景教學圖 */
.dof-scene{
  isolation:isolate;
  background:#8ed1ff;
}
.dof-far{
  inset:-5% -7% !important;
  background-image:url("images/background-mountains.jpg") !important;
  background-size:cover !important;
  background-position:center center !important;
  background-repeat:no-repeat !important;
  opacity:1 !important;
  z-index:1 !important;
}
.dof-far > *,
.dof-mid > *,
.dof-front > *{
  display:none !important;
}
.dof-mid{
  background:none !important;
  opacity:0 !important;
  pointer-events:none !important;
}
.dof-subject-layer{
  inset:auto auto 0 50% !important;
  width:min(50%,390px) !important;
  height:95% !important;
  display:flex !important;
  align-items:flex-end !important;
  justify-content:center !important;
  z-index:5 !important;
  transform:translateX(-50%) scale(var(--subject-scale,1)) !important;
  transform-origin:center bottom !important;
}
.dof-subject-photo{
  width:100%;
  height:100%;
  display:flex;
  align-items:flex-end;
  justify-content:center;
  user-select:none;
  pointer-events:none;
}
.dof-subject-photo img{
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:center bottom;
  filter:drop-shadow(0 14px 18px rgba(0,0,0,.22));
  user-select:none;
  pointer-events:none;
}
.dof-front{
  inset:auto -5% -4% -5% !important;
  height:47% !important;
  background-image:url("images/foreground-flowers.png") !important;
  background-size:cover !important;
  background-position:center bottom !important;
  background-repeat:no-repeat !important;
  opacity:1 !important;
  z-index:6 !important;
  pointer-events:none !important;
  transform:scale(calc(var(--fov-scale,1) * 1.06)) !important;
  transform-origin:center bottom !important;
}
.dof-viewfinder,
.dof-sim-note{
  z-index:12 !important;
}
@media(max-width:680px){
  .dof-subject-layer{
    width:min(58%,290px) !important;
    height:92% !important;
  }
  .dof-front{
    height:42% !important;
  }
}
/* v1.3.7：放大主體女生的初始顯示比例 */
.dof-subject-layer{
  width:min(56%,440px) !important;
}
@media(max-width:680px){
  .dof-subject-layer{
    width:min(64%,320px) !important;
  }
}
/* v1.3.8：主體女生初始比例再放大 25% */
.dof-subject-layer{
  width:min(62%,500px) !important;
}
@media(max-width:680px){
  .dof-subject-layer{
    width:min(70%,360px) !important;
  }
}
/* v1.3.9：主體縮小 10%，前景花草失焦更自然 */
.dof-subject-layer{
  width:min(58%,470px) !important;
}
.dof-front{
  opacity:.96 !important;
  mask-image:linear-gradient(to top, rgba(0,0,0,1) 58%, rgba(0,0,0,.92) 72%, rgba(0,0,0,.55) 88%, rgba(0,0,0,0) 100%);
  -webkit-mask-image:linear-gradient(to top, rgba(0,0,0,1) 58%, rgba(0,0,0,.92) 72%, rgba(0,0,0,.55) 88%, rgba(0,0,0,0) 100%);
}
@media(max-width:680px){
  .dof-subject-layer{
    width:min(66%,335px) !important;
  }
}
/* v1.4.1：焦距控制背景取景，對焦距離只控制人物大小 */
.dof-far{
  transform:scale(var(--background-zoom,1)) !important;
  transform-origin:center center !important;
  transition:transform .34s ease,filter .28s ease !important;
  will-change:transform,filter;
}
.dof-front{
  transform:scale(var(--foreground-zoom,1)) !important;
  transform-origin:center bottom !important;
  transition:transform .34s ease,filter .28s ease !important;
  will-change:transform,filter;
}
.dof-subject-layer{
  transition:transform .34s ease !important;
  will-change:transform;
}
/* v1.4.2：對焦距離同步改變人物與前景大小 */
.dof-front{
  transform-origin:center bottom !important;
}
/* v1.4.3：取消示範照片上的黃色對焦框 */
.dof-focus-box{
  display:none !important;
}
