:root{color-scheme:light;--paper:#f7f9f3;--ink:#30332f;--green:#5b9e40;--deep:#276d13;--pale:#b8e58c;--muted:#74836c}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:"Microsoft YaHei","PingFang SC",sans-serif}button{font:inherit;color:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}button:focus-visible,.carousel:focus-visible{outline:3px solid #397e27;outline-offset:7px}.preview{width:100%;min-height:100svh;display:flex;flex-direction:column;justify-content:center;padding:20px 0}.board-wrap{position:relative;width:100%;overflow:hidden}.board{width:2000px;height:830px;position:relative;transform-origin:top left}.board h1{position:absolute;left:76px;top:72px;margin:0;height:54px;line-height:1}.board h1 img{width:765px;height:auto;display:block}.cards-panel{position:absolute;left:76px;top:168px;width:810px;height:618px}.states-panel{position:absolute;left:993px;top:168px;width:925px;height:618px}.section-heading{display:flex;align-items:center;gap:27px;white-space:nowrap}.section-heading h2{font-size:32px;line-height:1.4;font-weight:500;color:#111;margin:0}.section-heading p{font-size:20px;line-height:1.5;color:#656a61;margin:0}.states-panel .section-heading{gap:28px}.carousel{position:absolute;top:46px;left:0;width:810px;height:468px;touch-action:pan-y;user-select:none;outline:none}.card-deck{position:absolute;inset:0}.flower-card{position:absolute;left:218px;top:0;width:374px;height:475px;border:0;padding:0;background:transparent;transform-origin:50% 67%;will-change:transform,opacity;user-select:none}.flower-card img{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none;-webkit-user-drag:none}.flower-card[aria-current=true]{cursor:grab}.flower-card[aria-current=true]:active{cursor:grabbing}.arrow{position:absolute;z-index:20;top:235px;width:44px;height:44px;border:1px solid #c4d6ba;border-radius:50%;background:rgba(247,249,243,.94);display:grid;place-items:center;transition:background .15s,scale .15s}.arrow:hover{background:#e4efd9;scale:1.06}.arrow:active{scale:.95}.arrow.previous{left:-6px}.arrow.next{right:-6px}.arrow svg{width:23px;height:23px;fill:none;stroke:var(--deep);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.carousel-controls{position:absolute;top:531px;left:0;width:100%;height:28px;display:flex;align-items:center;justify-content:center;gap:20px}.dots{display:flex;gap:5px;align-items:center;height:30px}.dot{border:0;background:transparent;padding:8px 5px;min-width:22px;min-height:30px;display:grid;place-items:center}.dot span{width:9px;height:9px;border-radius:7px;background:#b3d59e;transition:width .3s,background .3s}.dot[aria-current=true] span{width:32px;background:var(--green)}.dot:hover span{background:var(--green)}.play-toggle{width:32px;height:32px;border:1px solid #c9d7c1;border-radius:50%;background:transparent;display:grid;place-items:center;color:var(--deep);padding:0;font-size:15px;line-height:1}.play-toggle:hover{background:#e4efd9}.carousel-caption{position:absolute;top:575px;left:0;width:100%;display:flex;justify-content:center;align-items:center;gap:16px;font-size:17px;line-height:24px}.current-name{color:#47603e}.mode-status{color:#87917f;font-size:14px;border-left:1px solid #cbd7c3;padding-left:16px}.gesture-hint{position:absolute;top:608px;left:0;width:100%;margin:0;text-align:center;font-size:15px;color:#88937f;transition:opacity .2s}.gesture-hint.learned{opacity:0}.state-grid{position:absolute;top:74px;left:0;width:925px;display:grid;grid-template-columns:repeat(4,1fr);gap:20px}.state-card{height:346px;position:relative;padding:0;border:2px solid #dfe1dd;border-radius:20px;background:white;overflow:hidden;transition:border-color .2s,box-shadow .2s}.state-card:hover{border-color:#90bc77;box-shadow:0 5px 20px #4270300d}.state-card[aria-pressed=true]{border:3px solid var(--pale)}.state-image{position:absolute;left:0;top:11px;width:100%;height:301px;object-fit:contain;pointer-events:none}.state-ribbon{position:absolute;left:0;right:0;bottom:0;height:56px;display:flex;align-items:center;justify-content:center;font-size:25px;font-weight:600;color:var(--deep);background:var(--pale);opacity:0;translate:0 5px;transition:opacity .2s,translate .2s}.state-card[aria-pressed=true] .state-ribbon{opacity:1;translate:0 0}.mobile-label{display:none}.timeline{position:absolute;top:452px;left:0;width:100%;height:12px;border-radius:12px;background:#b1d39d;overflow:hidden}.timeline-fill{height:100%;width:62.7%;background:var(--green);border-radius:12px;transition:width .35s}.stage-labels{position:absolute;left:0;top:443px;width:100%;display:grid;grid-template-columns:repeat(4,1fr);gap:20px}.stage-label{display:flex;align-items:center;flex-direction:column;color:#74866a;font-size:23px;line-height:1.5;position:relative}.stage-dot{height:23px;width:23px;margin:0 0 16px;border-radius:50%;border:3px solid #56694a;background:#fff}.stage-label.passed .stage-dot{border-color:var(--green);background:var(--green)}.stage-label.selected{color:var(--deep);font-weight:600}.stage-label.selected .stage-dot{width:33px;height:33px;border:8px solid var(--green);margin-top:-5px;margin-bottom:11px;background:#fff}.stage-label small{font-size:18px;font-weight:400}.states-caption{position:absolute;top:575px;left:0;width:100%;margin:0;text-align:center;font-size:15px;color:#88937f;display:flex;align-items:center;justify-content:center;gap:15px;line-height:24px}.species{font-size:17px;color:#47603e}.states-caption>span+span{padding-left:15px;border-left:1px solid #cbd7c3}.preview-note{display:flex;justify-content:space-between;align-items:center;max-width:1400px;width:calc(100% - 80px);margin:0 auto;padding:16px 0 8px;border-top:1px solid #e2e8dc;color:#809175;font-size:12px;line-height:1.5}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}body.demo{padding:0}.demo .preview{padding:0;display:block;min-height:0}.demo .preview-note{display:none}.demo .gesture-hint{opacity:0}.demo button{pointer-events:none}.demo .mode-status{display:none}.demo *{transition:none!important}
@media(max-width:700px){.preview{display:block;padding:30px 0 20px}.board-wrap{height:auto!important}.board{width:100%;height:auto;transform:none!important;padding:0 20px}.board h1{position:static;height:auto;margin:0 0 30px}.board h1 img{width:100%;max-width:600px}.cards-panel,.states-panel{position:relative;left:auto;top:auto;width:100%;height:auto}.section-heading{display:block;white-space:normal}.section-heading h2{font-size:21px;font-weight:500;line-height:1.5}.section-heading p{font-size:12px;line-height:1.6;margin-top:5px}.carousel{position:relative;left:auto;top:auto;width:100%;height:auto;aspect-ratio:810/490;margin-top:7px;overflow:visible}.card-deck{transform-origin:top left;width:810px;height:490px}.arrow{top:53%;width:34px;height:34px}.arrow.previous{left:-8px}.arrow.next{right:-8px}.arrow svg{width:18px;height:18px}.carousel-controls{position:relative;top:auto;left:auto;margin-top:6px;gap:10px}.dot{padding:8px 4px}.dot span{width:7px;height:7px}.dot[aria-current=true] span{width:24px}.play-toggle{height:30px;width:30px}.carousel-caption{position:relative;top:auto;left:auto;margin-top:16px;font-size:13px;gap:12px}.mode-status{font-size:11px;padding-left:12px}.gesture-hint{position:relative;top:auto;font-size:11px;margin-top:5px}.states-panel{margin-top:34px}.state-grid{position:relative;top:auto;left:auto;width:100%;gap:10px;margin-top:20px;grid-template-columns:repeat(4,1fr)}.state-card{height:190px;border-radius:12px;border-width:1px}.state-card[aria-pressed=true]{border-width:2px}.state-image{top:5px;height:137px}.state-ribbon{height:29px;bottom:0;font-size:12px;display:none}.mobile-label{display:block;position:absolute;bottom:0;left:0;right:0;padding:8px 0;color:#728567;font-size:12px;background:#f1f6eb}.state-card[aria-pressed=true] .mobile-label{background:var(--pale);color:var(--deep);font-weight:600}.timeline,.stage-labels{display:none}.states-caption{position:relative;top:auto;left:auto;margin-top:15px;font-size:11px;gap:12px}.species{font-size:13px}.states-caption>span+span{padding-left:12px}.preview-note{width:calc(100% - 40px);margin-top:34px;font-size:10px;gap:20px;align-items:flex-start}.preview-note>span:first-child{white-space:nowrap}}
@media(max-width:440px){.state-card{height:155px}.state-image{height:114px}.mobile-label{font-size:11px;padding:7px 0}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
@media(max-width:440px){.carousel{aspect-ratio:630/490}}

/* Two alternative hierarchies share the same flower-card composition. */
.comparison-controls{display:flex;flex-direction:column;align-items:center;gap:10px;margin:12px auto 0;padding:0 20px}
.scheme-buttons{display:flex;gap:8px}.scheme-buttons button{border:1px solid #d5dfcc;border-radius:24px;padding:10px 23px;background:transparent;font-size:14px;color:#748269;transition:background .18s,color .18s}
.scheme-buttons button[aria-pressed=true]{background:#e5efdc;border-color:#a9c494;color:#306d1c;font-weight:600}.scheme-buttons button:hover{border-color:#8eaf76}
.scheme-description{margin:0;font-size:12px;line-height:1.6;color:#7a8870;text-align:center}
.state-card{cursor:default;transition:border-color .16s;background:#fff;-webkit-tap-highlight-color:transparent}.state-card:hover{box-shadow:none;border-color:#dfe1dd}
.state-image{top:12px;height:318px;will-change:transform,opacity}
.state-card[aria-pressed=true]{border:2px solid #8fbe6c;background:#fff}
.state-card[aria-pressed=true]::after{content:'';position:absolute;inset:0;z-index:3;border:2px solid #8fbe6c;border-radius:18px;pointer-events:none}
[data-scheme="2"] .state-card{cursor:pointer}[data-scheme="2"] .state-card:hover{border-color:#8fbe6c}
.state-card:focus-visible{outline:3px solid #397e27;outline-offset:5px}
.stage-labels{top:438px;display:grid;gap:20px}
.stage-label{color:#718167;font-size:21px;line-height:1.5;font-weight:400;gap:3px}
.step-number{height:28px;min-width:28px;display:grid;place-items:center;font-size:15px;color:#8b9982;line-height:1}
.step-name{font-size:21px;line-height:1.5;font-weight:400}
.step-track{display:block;width:72%;height:4px;overflow:hidden;border-radius:4px;background:#dce7d3;margin-top:12px}
.step-fill{display:block;width:100%;height:100%;background:var(--green);transform:scaleX(0);transform-origin:left;border-radius:4px}
.stage-label.selected{color:var(--deep);font-weight:400}.stage-label.selected .step-name{font-weight:600}
.stage-label.selected .step-number{border-radius:50%;color:var(--deep);background:#e2eed7}
.stage-label.passed .step-number{color:#70935b}
[data-scheme="1"] .stage-labels{top:439px}
[data-scheme="1"] .stage-label{color:#718167}
[data-scheme="1"] .stage-label:not(:last-child)::after{content:'›';position:absolute;right:-16px;top:24px;color:#b5c4aa;font-size:25px;font-weight:400}
[data-scheme="1"] .step-track{display:none}
.demo .comparison-controls{display:none}
@media(max-width:700px){
  .comparison-controls{margin:0 auto 27px;gap:9px}.scheme-buttons button{font-size:12px;padding:9px 16px}.scheme-description{font-size:10px}
  .state-card,.state-card[aria-pressed=true]{border-width:1px;height:190px}.state-card[aria-pressed=true]{border-color:#77ac53}
  .state-card[aria-pressed=true]::after{border-color:#77ac53;border-radius:11px}
  .state-image{top:6px;height:174px}.mobile-label{display:none}
  .stage-labels,[data-scheme="1"] .stage-labels{position:relative;top:auto;left:auto;display:grid;gap:10px;margin-top:12px}
  .stage-label{gap:1px}.step-number{font-size:11px;height:23px;min-width:23px}.step-name{font-size:13px;white-space:nowrap}
  .step-track{height:3px;width:86%;margin-top:8px}
  [data-scheme="1"] .stage-label:not(:last-child)::after{font-size:17px;right:-9px;top:19px}
  .states-caption{margin-top:22px}.demo .board h1{margin-top:0}
}
@media(max-width:440px){.state-card,.state-card[aria-pressed=true]{height:155px}.state-image{height:139px}.step-name{font-size:11px}}


/* Embedded portfolio composition: content determines the frame height. */
.preview{display:block;min-height:0;padding:0}
.board-wrap{overflow:clip}
@media(max-width:700px){.board{padding-top:26px;padding-bottom:26px}}
