﻿*{box-sizing:border-box}html:has(body.tutorial-page),body.tutorial-page{max-width:100%;overflow-x:hidden;overscroll-behavior-x:none}body.tutorial-page{margin:0;color:#23262b;background:#f5f6f7;font-family:Inter,"PingFang SC","Microsoft YaHei",sans-serif;letter-spacing:0;touch-action:pan-y}.tutorial-page .front-page-layer{width:100%;max-width:100%;overflow-x:hidden}.tutorial-shell{width:100%;min-height:100vh;margin:0 auto;padding:10px 12px 100px}.tutorial-topbar{position:sticky;top:8px;z-index:40;display:grid;grid-template-columns:40px minmax(0,1fr) 40px;align-items:center;width:100%;min-height:52px;margin-bottom:12px;padding:5px 7px;border:1px solid rgba(30,35,41,.09);border-radius:999px;background:rgba(255,255,255,.96);box-shadow:0 10px 28px rgba(30,35,41,.09);backdrop-filter:blur(16px)}.tutorial-topbar strong{overflow:hidden;font-size:14px;font-weight:800;text-align:center;text-overflow:ellipsis;white-space:nowrap}.tutorial-topbar>a{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;color:#30343a}.tutorial-topbar>a:active{background:#f0f1f3;transform:scale(.96)}.tutorial-topbar svg{display:block;width:20px;height:20px;fill:currentColor}.tutorial-hero{display:grid;justify-items:center;padding:34px 10px 28px;text-align:center}.tutorial-hero>img{display:block;width:78px;height:78px;border:1px solid rgba(34,39,45,.08);border-radius:18px;object-fit:cover;background:#fff;box-shadow:0 8px 22px rgba(28,33,39,.07)}.tutorial-hero h1{margin:14px 0 0;font-size:20px;font-weight:850;line-height:1.35}.tutorial-list{display:grid;gap:11px}.tutorial-list-item{display:grid;grid-template-columns:88px minmax(0,1fr) 22px;align-items:center;gap:13px;min-height:123px;padding:15px;border:1px solid rgba(37,42,48,.075);border-radius:8px;background:rgba(255,255,255,.94);color:#292d32;box-shadow:0 5px 18px rgba(30,35,41,.04);transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}.tutorial-list-item:active{transform:scale(.99)}.tutorial-list-item>img{display:block;width:88px;height:88px;border-radius:8px;object-fit:cover;background:#eceff2}.tutorial-list-item>svg{width:18px;height:18px;fill:#a3a8ae}.tutorial-list-copy{display:grid;align-content:center;gap:13px;min-width:0}.tutorial-list-copy>strong{display:-webkit-box;overflow:hidden;font-size:14px;font-weight:800;line-height:1.55;-webkit-box-orient:vertical;-webkit-line-clamp:2}.tutorial-list-tags{display:flex;gap:5px;min-width:0;overflow:hidden}.tutorial-list-tags em,.tutorial-article-head em{flex:0 0 auto;padding:4px 8px;border-radius:999px;background:#eef1f4;color:#707780;font-size:9px;font-style:normal;font-weight:700;line-height:1.2}.tutorial-loading,.tutorial-empty{padding:54px 16px;color:#969ba2;font-size:12px;text-align:center}.tutorial-empty{display:grid;gap:7px}.tutorial-empty strong{color:#555a61;font-size:14px}.tutorial-empty p{margin:0}.tutorial-empty a{color:#30363d;font-weight:700}.tutorial-article{padding:3px 2px 8px}.tutorial-article-head{display:grid;grid-template-columns:70px minmax(0,1fr);align-items:center;gap:13px;padding:12px 4px 20px;border-bottom:1px solid rgba(40,45,51,.08)}.tutorial-article-head>img{width:70px;height:70px;border-radius:9px;object-fit:cover;background:#eef0f2}.tutorial-article-head h1{margin:0 0 10px;font-size:18px;font-weight:850;line-height:1.45;overflow-wrap:anywhere}.tutorial-article-head>div>span{display:flex;flex-wrap:wrap;gap:5px}.tutorial-article-body{display:grid;gap:20px;padding:20px 2px 4px}.tutorial-article-copy{display:grid;gap:22px;color:#51575e;font-size:13px;line-height:1.95;overflow-wrap:anywhere}.tutorial-article-intro,.tutorial-section-copy{padding:0 3px}.tutorial-content-section{display:grid;gap:11px}.tutorial-content-section h2{display:flex;align-items:center;gap:9px;margin:0;color:#24282e;font-size:16px;font-weight:850;line-height:1.45}.tutorial-content-section h2>span{display:block;width:4px;height:17px;flex:0 0 4px;border-radius:4px;background:#292d33}.tutorial-article-images{display:grid;gap:12px}.tutorial-article-images button{position:relative;display:block;width:100%;padding:0;overflow:hidden;border:0;border-radius:8px;background:#ebeef0;cursor:zoom-in}.tutorial-article-images button.image-load-failed{min-height:140px}.tutorial-article-images button.image-load-failed::after{position:absolute;inset:0;display:grid;place-items:center;color:#a0a5ab;font-size:12px;content:"鍥剧墖鍔犺浇澶辫触"}.tutorial-article-images img{position:relative;z-index:1;display:block;width:100%;height:auto;max-height:none;object-fit:contain;background:#eef0f2}.tutorial-article-images .image-load-failed img{visibility:hidden}.tutorial-image-viewer{position:fixed;inset:0;z-index:9000;display:none;grid-template-rows:minmax(0,1fr) auto;padding:max(14px,env(safe-area-inset-top)) 12px max(12px,env(safe-area-inset-bottom));background:rgba(17,19,22,.94);overscroll-behavior:none;touch-action:none}.tutorial-image-viewer.open{display:grid}.tutorial-image-stage{display:grid;place-items:center;min-width:0;min-height:0;overflow:hidden;cursor:zoom-in;touch-action:none}.tutorial-image-stage img{display:block;width:auto;height:auto;max-width:100%;max-height:100%;object-fit:contain;user-select:none;-webkit-user-drag:none;will-change:transform}.tutorial-image-viewer-foot{position:relative;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;min-height:54px;padding-top:8px}.tutorial-image-viewer-foot span{grid-column:1;justify-self:start;padding-left:8px;color:rgba(255,255,255,.66);font-size:11px;font-variant-numeric:tabular-nums}.tutorial-image-viewer-foot button{grid-column:2;min-width:106px;height:42px;padding:0 18px;border:1px solid rgba(255,255,255,.2);border-radius:999px;background:#fff;color:#22272d;font-size:12px;font-weight:800}.tutorial-image-open{overflow:hidden!important;touch-action:none!important}.tutorial-image-stage img.slide-next{animation:tutorialSlideNext .28s ease}.tutorial-image-stage img.slide-prev{animation:tutorialSlidePrev .28s ease}@keyframes tutorialSlideNext{from{opacity:.25;transform:translateX(34px)}to{opacity:1;transform:translateX(0)}}@keyframes tutorialSlidePrev{from{opacity:.25;transform:translateX(-34px)}to{opacity:1;transform:translateX(0)}}@media(min-width:700px){.tutorial-shell{padding-right:16px;padding-left:16px}.tutorial-list-item:hover{border-color:rgba(37,42,48,.15);box-shadow:0 9px 26px rgba(30,35,41,.07);transform:translateY(-2px)}}@media(max-width:360px){.tutorial-list-item{grid-template-columns:74px minmax(0,1fr) 18px;gap:10px;min-height:104px;padding:12px}.tutorial-list-item>img{width:74px;height:74px}.tutorial-hero{padding-top:28px}}
/* Keep tutorial content anchored to the top of the frame. */
.tutorial-shell{align-content:start!important;padding-top:8px!important}
.tutorial-hero{align-content:start;padding:14px 10px 18px!important}
.tutorial-detail-page .tutorial-article{align-self:start}
@media(max-width:360px){.tutorial-hero{padding-top:12px!important}}

/* Keep the tutorial image preview rounded without changing its zoom and swipe behavior. */
.tutorial-image-stage img{border-radius:16px;box-shadow:0 14px 34px rgba(0,0,0,.22)}
.tutorial-article-images button.image-load-failed::after{content:"图片加载失败"}

/* Keep the article image at its natural ratio, while the lightbox uses a portrait preview frame. */
.tutorial-article-images img{width:100%;height:auto;max-width:100%;max-height:none;aspect-ratio:auto;object-fit:contain}
.tutorial-image-stage{width:min(88vw,420px);height:min(76dvh,680px);aspect-ratio:3/4;margin:auto;overflow:hidden;border-radius:16px;background:#f1f3f5;box-shadow:0 18px 46px rgba(0,0,0,.28)}
.tutorial-image-stage img{width:100%;height:100%;max-width:none;max-height:none;border-radius:16px;object-fit:contain;background:#f7f8f9}
@media(max-width:520px){.tutorial-image-stage{width:min(88vw,390px);height:min(72dvh,620px)}}

/* Match the product preview: keep the viewer stage transparent and preserve the image's own ratio. */
.tutorial-image-stage{background:transparent;box-shadow:none}
.tutorial-image-stage img{width:auto;height:auto;max-width:100%;max-height:100%;background:transparent;box-shadow:0 18px 46px rgba(0,0,0,.26)}

/* Keep the tutorial page on the same canvas as the public home page. */
body.tutorial-page{background:transparent!important}
