/* B3: architectural motion, stable text, native accessible panels. */
#yunqi-b-design .b3-header{position:sticky;top:0;z-index:40;background:#f5f5f2;border-bottom:1px solid #d4d6d1;min-height:82px;padding:14px 4%;gap:24px}
.b3-nav{display:flex;align-items:center;gap:22px}.b3-nav>a,.b3-nav>button{position:relative;min-height:44px;display:flex;align-items:center;font-size:14px;white-space:nowrap;background:none;border:0;color:#292d2d;gap:10px;padding:0}.b3-nav>a:after,.b3-nav>button:after{content:'';position:absolute;bottom:3px;left:0;right:0;height:1px;background:currentColor;transform:scaleX(0);transform-origin:left;transition:transform .25s}.b3-nav>a:hover:after,.b3-nav>button[aria-expanded=true]:after{transform:scaleX(1)}
#yunqi-b-design .yq-tools{gap:14px;font-size:13px}#yunqi-b-design .yq-tools button{border:0;background:none;color:#292d2d;min-height:44px;font:inherit}#yunqi-b-design #yq-menu{display:none}.b3-badge{display:inline-grid;place-items:center;min-width:23px;height:23px;border:1px solid #b7bcb7;font-size:12px;border-radius:50%;font-variant-numeric:tabular-nums}
#yunqi-b-design select{appearance:auto;border:1px solid #a7aaa8;background:#f5f5f2;color:#292d2d;border-radius:0;padding:10px 12px;min-height:44px;max-width:100%;line-height:1.5}#yunqi-b-design .yq-tools select{border:1px solid #d4d6d1;padding:8px;min-width:72px;max-width:98px}
.b3-dialog{color:#292d2d;background:#f5f5f2;border:1px solid #bfc3bd;padding:28px 36px;width:min(1120px,92vw);max-width:calc(100vw - 32px);max-height:calc(100dvh - 115px);overflow:auto;box-sizing:border-box;box-shadow:0 20px 60px #0002;font-family:inherit}.b3-dialog::backdrop{background:#18201d55;backdrop-filter:blur(3px)}.b3-dialog[open]{animation:b3-panel-in .32s cubic-bezier(.16,1,.3,1)}.b3-mega{margin:88px auto 0}.b3-panel-head{display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid #d4d6d1;padding-bottom:18px;margin-bottom:26px;font-size:14px}.b3-panel-head button{min-height:44px;border:0;background:transparent;font:inherit;color:inherit;padding:8px}.b3-mega-desktop{display:grid;grid-template-columns:240px 1fr;gap:40px}.b3-tabs{position:relative;display:flex;flex-direction:column;border-right:1px solid #d4d6d1;padding-right:20px;isolation:isolate}.b3-tabs button{min-height:80px;border:0;background:none;text-align:left;display:flex;align-items:center;gap:15px;color:inherit;font:inherit;padding:15px;z-index:1}.b3-tabs small{font-size:10px;color:#65564a}.b3-tabs button span{margin-left:auto}.b3-tab-indicator{position:absolute;top:0;left:0;right:20px;height:80px;background:#e5e5e0;transition:transform .3s cubic-bezier(.16,1,.3,1),height .3s;z-index:0}.b3-group{display:grid;grid-template-columns:1fr 45%;gap:28px;min-height:300px}.b3-group[hidden],.b3-study-info[hidden]{display:none}.b3-group h2{font-size:30px;margin:4px 0 16px;font-weight:400;line-height:1.4}.b3-group p{font-size:15px;line-height:1.65;max-width:320px;color:#58605b}.b3-group figure{margin:0;animation:b3-image-in .35s ease-out}.b3-group figure img{width:100%;height:260px;object-fit:contain;background:#e5e5e0}.b3-group figcaption{font-size:11px;margin-top:12px;color:#65564a}.b3-sub-links{margin:24px 0}.b3-sub-links a{display:flex;justify-content:space-between;gap:18px;padding:12px 0;border-bottom:1px solid #d4d6d1;font-size:14px}.b3-drawer-links{display:none}
.b3-search{margin:110px auto auto;width:min(900px,92vw)}.b3-search-row{display:grid;grid-template-columns:1fr minmax(130px,200px) auto;gap:12px;margin-top:10px}.b3-search-row input{min-width:0}.b3-search label,.b3-search-hint{font-size:14px}.b3-search-hint{color:#58605b}.b3-search ul{list-style:none;padding:0;max-height:43vh;overflow:auto}.b3-search li{display:grid;grid-template-columns:48px 1fr auto;align-items:center;gap:16px;min-height:70px;border-bottom:1px solid #d4d6d1;padding:8px 12px;cursor:pointer}.b3-search li[aria-selected=true],.b3-search li:hover{background:#e5e5e0}.b3-search li img{width:48px;height:48px;object-fit:contain}.b3-search li small{color:#65564a}.b3-search input{background:#fff;border:1px solid #a7aaa8;min-height:48px;padding:10px;font:inherit}
.b3-toolbar{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:35;display:flex;align-items:center;background:#292d2d;color:#f5f5f2;box-shadow:0 5px 20px #0002;padding:6px 12px;gap:4px;max-width:calc(100vw - 24px)}.b3-toolbar>a,.b3-toolbar>button{white-space:nowrap;font:inherit;font-size:13px;color:inherit;border:0;background:none;min-height:44px;padding:8px 14px;display:flex;gap:9px;align-items:center}.b3-toolbar>*+*{border-left:1px solid #626763}.b3-toolbar a:hover,.b3-toolbar button:hover{background:#424946}.b3-toolbar-form,.b3-input-active .b3-toolbar{display:none}#yunqi-b-design .yq-footnote{padding-bottom:110px}
.b3-hero{isolation:isolate;--hero-offset:0px}#yunqi-b-design .b3-hero>img{transform:translateY(var(--hero-offset)) scale(1.04);animation:b3-push 22s ease-in-out infinite alternate;animation-play-state:paused}.b3-hero.is-visible>img{animation-play-state:running!important}.b3-structure{position:absolute;inset:8% 5%;z-index:1;pointer-events:none;border:1px solid #ffffff30;transform:translateY(calc(var(--hero-offset)*-.5))}.b3-structure i:first-child{position:absolute;height:100%;width:1px;background:#ffffff20;left:64%}.b3-structure i:last-child{position:absolute;top:70%;height:1px;background:#ffffff20;width:100%}.b3-ready .b3-hero .yq-eyebrow{animation:b3-copy-in .65s both}.b3-ready .b3-hero h1{animation:b3-copy-in .8s .12s both}.b3-ready .b3-hero p{animation:b3-copy-in .8s .24s both}.b3-ready .b3-hero .yq-actions{animation:b3-copy-in .8s .36s both}
.b3-studies{padding:90px 5%;overflow:hidden;background:#e5e5e0;--spread:1}.b3-study-intro{max-width:680px}.b3-study-intro h2{font-weight:400;font-size:clamp(30px,4vw,58px);line-height:1.18;letter-spacing:-.03em;margin:22px 0}.b3-study-intro p{max-width:540px;line-height:1.7;color:#58605b;font-size:15px}.b3-study-layout{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(250px,1fr);gap:7%;align-items:center;margin-top:40px}.b3-study-stage{height:510px;position:relative;perspective:1200px}.b3-stage-lines{position:absolute;inset:10% 0;border:1px solid #a7aaa866;background:linear-gradient(90deg,transparent 49.9%,#a7aaa844 50%,transparent 50.1%),linear-gradient(0deg,transparent 49.9%,#a7aaa844 50%,transparent 50.1%);transform:rotate(-8deg)}.b3-study-card{position:absolute;margin:0;width:44%;top:18%;left:26%;background:#f5f5f2;padding:12px;box-shadow:0 15px 25px #292d2d14;transform:translate(calc(var(--dx,0px)*var(--spread)),calc(var(--dy,0px)*var(--spread))) rotate(var(--rotation,0deg)) scale(.75);transition:transform .7s cubic-bezier(.16,1,.3,1),opacity .4s;opacity:.85;z-index:calc(5 - var(--index))}.b3-study-card img{width:100%;height:260px;object-fit:contain}.b3-study-card figcaption{font-size:10px;letter-spacing:.08em;padding:10px 2px 0;color:#65564a}.b3-study-card.is-selected{transform:translate(0,0) rotate(-2deg) scale(1);z-index:10;opacity:1}.b3-study-tabs{display:flex;flex-direction:column}.b3-study-tabs button{min-height:64px;padding:15px 8px;background:transparent;border:0;border-bottom:1px solid #b8bcb6;display:flex;align-items:center;gap:16px;text-align:left;font:inherit;color:#292d2d;transition:background .25s}.b3-study-tabs button small{font-size:10px;min-width:40px;letter-spacing:.04em}.b3-study-tabs button span{margin-left:auto}.b3-study-tabs button[aria-selected=true]{background:#f5f5f2}.b3-study-info{font-size:13px;padding:16px 8px;min-height:90px}.b3-noscript{padding:20px;display:flex;gap:20px}
html[data-motion=still] .b3-hero>img{animation:none!important;transform:none!important}html[data-motion=still] .b3-structure{transform:none}html[data-motion=still] .b3-hero .yq-hero-copy>*{animation:none!important}html[data-motion=still] .b3-study-card{transition:none}html.b3-page-hidden .b3-hero>img{animation-play-state:paused!important}
@keyframes b3-push{from{transform:translateY(var(--hero-offset)) scale(1.04)}to{transform:translateY(var(--hero-offset)) scale(1.10)}}@keyframes b3-copy-in{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}@keyframes b3-panel-in{from{opacity:0;transform:translateY(-22px)}to{opacity:1;transform:none}}@keyframes b3-image-in{from{opacity:.4;transform:translateX(10px)}to{opacity:1;transform:none}}
#yunqi-b-design[lang=th] .b3-dialog,#yunqi-b-design[lang=th] .b3-studies{line-height:1.6}#yunqi-b-design[lang=th] .b3-study-intro h2{line-height:1.5;letter-spacing:0}
@media(max-width:1150px){.b3-nav{gap:12px}.b3-nav>a,.b3-nav>button{font-size:12px}#yunqi-b-design .yq-tools{gap:8px}.b3-search-open{display:none!important}.b3-mega-desktop{grid-template-columns:210px 1fr;gap:20px}}
@media(max-width:900px){.b3-nav{display:none}#yunqi-b-design #yq-menu{display:block}#yunqi-b-design .b3-header{padding:10px 5%;min-height:74px;gap:12px}#yunqi-b-design .yq-tools>a{font-size:0;gap:0}.b3-mega{margin:0 0 0 auto;width:min(420px,94vw);height:100dvh;max-height:100dvh;max-width:94vw;padding:20px 24px}.b3-mega-desktop{display:none}.b3-drawer-links{display:block}.b3-drawer-links details{border-bottom:1px solid #bfc3bd;padding:16px 0}.b3-drawer-links summary{min-height:44px;cursor:pointer;display:flex;align-items:center;justify-content:space-between;list-style:none}.b3-drawer-links p{font-size:14px;line-height:1.7;color:#58605b}.b3-drawer-links a{display:block;padding:14px 8px;font-size:15px}.b3-search{margin:30px auto auto;padding:20px;max-height:90dvh}.b3-search-row{grid-template-columns:1fr auto}.b3-search-row>input{grid-column:1/-1}.b3-search-row>label select{width:100%;font-size:14px}.b3-search-row button{padding:10px 15px}.b3-study-layout{gap:3%;grid-template-columns:1fr 1fr}.b3-study-card img{height:220px}.b3-study-stage{height:450px}.b3-study-tabs button{font-size:14px;gap:8px}.b3-toolbar{bottom:calc(12px + env(safe-area-inset-bottom));padding:4px 8px}.b3-toolbar>a,.b3-toolbar>button{font-size:12px;padding:8px}.b3-toolbar #b3-motion{max-width:110px;white-space:normal;line-height:1.4}}
@media(max-width:600px){.b3-studies{padding:50px 6%}.b3-study-layout{grid-template-columns:1fr;margin-top:12px}.b3-study-stage{height:330px}.b3-study-card{width:42%;top:15%;padding:8px}.b3-study-card img{height:185px}.b3-study-tabs{display:grid;grid-template-columns:1fr 1fr}.b3-study-tabs button{font-size:13px;min-height:70px;gap:8px;line-height:1.5}.b3-study-tabs button small{min-width:30px}.b3-study-tabs button span{display:none}.b3-study-info{min-height:75px}.b3-structure{inset:6%}.b3-toolbar{gap:0;width:max-content}.b3-toolbar>a,.b3-toolbar>button{font-size:11px;padding:7px}.b3-toolbar .b3-badge{min-width:19px;height:19px}#yunqi-b-design .yq-tools select{min-width:60px;padding:6px}.b3-dialog .b3-panel-head{margin-bottom:18px}}
@media(prefers-reduced-motion:reduce){.b3-dialog[open],.b3-group figure,.b3-hero>img,.b3-ready .b3-hero .yq-hero-copy>*{animation:none!important}.b3-study-card,.b3-tab-indicator{transition:none!important}.b3-structure{transform:none!important}}
/* Override the B2 scoped image/reset rules only on the new surfaces. */
#yunqi-b-design .b3-group h2{font-size:30px;line-height:1.45}
#yunqi-b-design .b3-group figure img{height:290px;width:100%;object-fit:contain}
#yunqi-b-design .b3-study-card img{height:260px;width:100%;object-fit:contain}
#yunqi-b-design .b3-study-tabs button[aria-selected=true]{background:#f5f5f2}
html{scroll-padding-top:110px;scroll-padding-bottom:110px}
.b3-study-stage{overflow:hidden;pointer-events:none}
.b3-study-controls{position:relative;z-index:12}
.b3-study-tabs button{scroll-margin-block:110px}
#yunqi-b-design .b3-glass-inset{position:absolute;z-index:11;width:21%;left:2%;top:18%;margin:0;padding:8px;background:#f5f5f2;box-shadow:0 10px 22px #292d2d18;transform:translateY(calc(var(--spread)*-28px));transition:transform .7s}
#yunqi-b-design .b3-glass-inset img{width:100%;height:120px;object-fit:cover}
.b3-glass-inset figcaption{font-size:10px;line-height:1.5;padding-top:8px}
html:not(.b3-ready) .b3-study-stage{height:auto;display:grid;grid-template-columns:1fr 1fr;gap:16px}
html:not(.b3-ready) .b3-study-card,html:not(.b3-ready) #yunqi-b-design .b3-glass-inset{position:static;transform:none;width:auto;opacity:1}
@media(max-width:600px){#yunqi-b-design .b3-study-card img{height:180px}#yunqi-b-design .b3-glass-inset img{height:74px}.b3-glass-inset figcaption{font-size:9px}}

/* B3 screenshot fixes: phone actions stay in document flow; hero copy gains stable contrast. */
.b3-hero::after{background:linear-gradient(90deg,rgba(15,20,18,.88) 0%,rgba(21,27,23,.56) 58%,rgba(22,26,23,.12) 100%)}
.b3-hero .yq-hero-copy{max-width:820px;text-shadow:0 2px 18px rgba(0,0,0,.34)}
.b3-hero .yq-hero-copy p{color:#fff;text-shadow:0 1px 8px rgba(0,0,0,.5)}
.b3-hero .yq-actions .yq-link{text-shadow:none}
@media(max-width:900px){
 .b3-toolbar{position:static;left:auto;bottom:auto;transform:none;z-index:auto;width:100%;max-width:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;padding:8px max(6%,env(safe-area-inset-right)) 8px max(6%,env(safe-area-inset-left));box-shadow:none;border-top:1px solid #505654;border-bottom:1px solid #505654}
 .b3-toolbar>a,.b3-toolbar>button{justify-content:center;min-width:0;min-height:48px;padding:8px 5px;font-size:13px;line-height:1.35;white-space:nowrap}
 .b3-toolbar>*+*{border-left:0}
 .b3-toolbar>a:nth-child(even),.b3-toolbar>button:nth-child(even){border-left:1px solid #626763}
 .b3-toolbar>a:nth-child(n+3),.b3-toolbar>button:nth-child(n+3){border-top:1px solid #626763}
 .b3-toolbar .b3-badge{flex:0 0 auto}
 #yunqi-b-design .yq-footnote{padding-bottom:18px}
 #yunqi-b-design .yq-hero-copy{width:100%;max-width:none;padding:48px 6% 90px}
 #yunqi-b-design .b3-hero h1{max-width:14ch;text-wrap:balance;font-size:clamp(35px,10vw,43px);line-height:1.12;overflow-wrap:normal}
 #yunqi-b-design .b3-hero p{max-width:32ch}
}
@media(max-width:380px){.b3-toolbar>a,.b3-toolbar>button{font-size:12px;padding-inline:2px;gap:5px}}
@media(max-width:900px){.b3-toolbar #b3-motion{max-width:none;white-space:nowrap;line-height:1.35}}
