/* Compact product pages and matching everyday editor. */
.product-page,.simple-product-panel,.category-manager{font-family:"PingFang SC","Microsoft YaHei","Noto Sans CJK SC",Arial,sans-serif}
.product-page .pd-overview{padding-block:40px 32px}
.product-page .detail-gallery{position:static}
.product-page .detail-stage{aspect-ratio:1;max-height:640px}
.product-page .detail-image-button{padding:16px}
.product-page .pd-summary h1{font-size:clamp(28px,2.5vw,40px);margin:8px 0 16px}
.product-page .pd-lead{margin-bottom:20px}
.product-page .detail-actions{gap:12px;margin-top:22px}
.product-page .pd-key-specs{margin:20px 0}
.product-page .pd-key-specs th,.product-page .pd-key-specs td{padding:10px 8px}
.product-page .model-copy{margin-block:0 14px}
.product-page .model-copy button{min-height:40px;padding:6px 14px}
.product-page .pd-effects,.product-page .simple-related{padding-block:36px}
.product-page .pd-effects h2,.product-page .simple-related h2{font-size:28px;margin:0 0 22px}
.pd-effects-grid{display:grid;grid-template-columns:repeat(var(--effect-count),minmax(0,1fr));gap:16px;align-items:start}
.pd-effects-grid a{display:block;border:1px solid #dfe4da;background:#fff;border-radius:8px;overflow:hidden}
.pd-effects-grid img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:contain;transition:transform .22s ease}
.pd-effects-grid a:hover img{transform:scale(1.025)}
.product-page .product-video-section{padding-block:36px 44px}
.product-page .pd-demo-heading{margin-bottom:22px}
.product-page .pd-demo-heading h2{font-size:28px}
.product-page .pd-demo-heading p{margin-top:10px}
.product-page .pd-demo-card{gap:clamp(24px,5vw,72px)}
.product-page .pd-demo-poster{max-height:400px;aspect-ratio:16/10}
.product-page .pd-thumb-caption:empty,.gallery-caption:empty{display:none}
.simple-photo-dialog{width:min(1020px,94vw);max-height:92dvh;padding:20px;border:1px solid #dfe4da;border-radius:12px;background:#f9f9f4;color:#173c30}
.simple-photo-dialog::backdrop{background:rgba(8,25,19,.8)}
.simple-photo-dialog header,.simple-photo-dialog footer{display:flex;align-items:center;justify-content:space-between;gap:12px}
.simple-photo-dialog h2{font-size:20px;margin:0}
.simple-photo-dialog button{width:48px;height:48px;border:1px solid #dfe4da;border-radius:6px;color:inherit;background:transparent;font-size:24px;cursor:pointer}
.effect-image-well{position:relative;min-height:120px;text-align:center;margin-block:16px}
.effect-image-well>img{display:block;width:100%;height:min(62dvh,640px);object-fit:contain}
.effect-image-well p{padding:20px}
.simple-photo-dialog [hidden]{display:none!important}
.category-edit{border-top:1px solid #dfe4da}
.category-edit>summary{display:flex;align-items:center;gap:20px;min-height:58px;cursor:pointer;list-style:none;padding:12px 4px}
.category-edit>summary::-webkit-details-marker{display:none}
.category-edit summary small{font-weight:400;color:#607367}
.category-edit summary span{margin-left:auto;font-size:13px;color:#496b5b}
.category-edit summary span:after{content:' ＋'}
.category-edit[open] summary span:after{content:' −'}
.category-edit .category-row-header{display:none}
.category-edit .category-row{padding:12px 0 20px}
.category-manager .panel-heading{margin-bottom:10px}
.simple-product-editor{gap:22px}
.simple-product-editor fieldset{margin:0;padding:18px;border:1px solid #dfe4da;min-width:0}
.simple-product-editor legend{font-size:16px;font-weight:650;padding-inline:6px}
.simple-product-editor .form-grid{gap:16px}
.simple-product-editor textarea{min-height:76px}
.simple-edit-group{border:1px solid #dfe4da;border-radius:6px;overflow:hidden}
.simple-edit-group>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;min-height:58px;padding:14px 18px;font-weight:650;cursor:pointer;background:#f6f8f3}
.simple-edit-group>summary small{font-weight:400;font-size:13px;color:#607367;margin-left:auto;margin-right:16px}
.simple-edit-group>summary:after{content:'＋'}
.simple-edit-group[open]>summary:after{content:'−'}
.simple-edit-group>fieldset{border:0;border-top:1px solid #dfe4da}
.simple-spec-editor{width:100%;min-width:0;border-collapse:collapse;table-layout:fixed;margin-bottom:14px}
.simple-spec-editor th{font-size:12px;text-align:left;color:#607367;padding:8px 5px;font-weight:500}
.simple-spec-editor td{padding:5px;vertical-align:middle}
.simple-spec-editor input{padding:10px 8px;min-height:44px;font-size:14px;width:100%}
.simple-spec-editor th:last-child{width:58px}
.simple-spec-editor .text-button{padding:8px 2px;font-size:12px}
.simple-product-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 14px}
.simple-product-choices label{display:flex;align-items:center;gap:10px;padding:10px;border:1px solid #dfe4da;min-height:48px;cursor:pointer;font-size:14px}
.simple-product-choices input,.simple-effects-editor input{width:18px;height:18px;min-height:18px;flex:0 0 auto;accent-color:#173c30}
.simple-product-choices label:has(input:checked){background:#edf2e9;border-color:#3d7158}
.simple-effects-editor{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
.simple-effects-editor img{display:block;width:100%;height:110px;object-fit:contain;background:#f7f7f1}
.simple-effects-editor span{display:flex;gap:8px;align-items:center;margin-top:8px}
.simple-product-panel .editable-gallery{grid-template-columns:repeat(3,minmax(0,1fr))}
.simple-product-panel .gallery-editor-card{padding:10px;gap:8px}
.simple-product-panel .gallery-editor-card>img{height:140px}
.simple-product-panel .gallery-card-actions{flex-wrap:wrap}
.simple-product-panel .gallery-keep{display:none}
.simple-publish{align-items:center}
.product-page .pd-thumb-caption,.product-page .gallery-caption{display:none}
.product-page .simple-related .related-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.product-page .simple-related .product-card-link{display:grid;grid-template-columns:140px minmax(0,1fr);align-items:center;gap:18px;padding:12px;border:1px solid #dfe4da;border-radius:8px}
.product-page .simple-related .product-media{height:140px;min-height:0;aspect-ratio:1;margin:0}
.product-page .simple-related .product-media img{height:100%;width:100%;object-fit:contain}
.product-page .simple-related .product-meta{padding:0}
.product-page .simple-related .product-meta h3{font-size:19px;margin:8px 0}
.product-page .simple-related .product-meta p{font-size:14px;margin:8px 0;line-height:1.65}
.product-page .simple-related .product-card-more{margin-top:12px}
@media(max-width:900px){.product-page .simple-related .related-grid{grid-template-columns:1fr}}
@media(max-width:500px){.product-page .simple-related .product-card-link{grid-template-columns:100px minmax(0,1fr);gap:12px}.product-page .simple-related .product-media{height:100px}.product-page .simple-related .product-meta h3{font-size:17px}}
:is(.simple-product-panel,.category-manager,.pd-effects,.simple-photo-dialog) :is(a,button,input,summary,textarea,select):focus-visible{outline:3px solid #b32230;outline-offset:3px}
@media(max-width:900px){.product-page .detail-stage{max-height:none}.simple-product-panel .editable-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.product-page .pd-overview{padding-block:24px}.product-page .product-detail-grid{gap:24px}.product-page .detail-stage{aspect-ratio:1}.product-page .pd-summary h1{font-size:28px}.product-page .pd-effects,.product-page .simple-related,.product-page .product-video-section{padding-block:26px}.pd-effects-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.product-page .pd-demo-poster{max-height:340px}.product-page .pd-demo-card{gap:18px}.simple-spec-editor,.simple-spec-editor tbody,.simple-spec-editor tr,.simple-spec-editor td{display:block;width:100%}.simple-spec-editor thead{display:none}.simple-spec-editor tr{display:grid;grid-template-columns:1fr 1fr;gap:5px;border-bottom:1px solid #dfe4da;padding:10px 0}.simple-spec-editor td{padding:0}.simple-spec-editor td:last-child{grid-column:1/-1;text-align:right}.simple-spec-editor td:before{display:block;font-size:11px;color:#607367;margin:0 0 4px}.simple-spec-editor td:nth-child(1):before{content:'参数名称'}.simple-spec-editor td:nth-child(2):before{content:'参数值'}.simple-spec-editor td:nth-child(3):before{content:'English name'}.simple-spec-editor td:nth-child(4):before{content:'English value'}.simple-product-choices{grid-template-columns:1fr}.simple-effects-editor{grid-template-columns:repeat(2,minmax(0,1fr))}.category-edit>summary{gap:10px;flex-wrap:wrap}.simple-product-editor fieldset{padding:14px}.simple-photo-dialog{padding:12px}.effect-image-well>img{height:56dvh}}
@media(prefers-reduced-motion:reduce){.pd-effects-grid img{transition:none}.pd-effects-grid a:hover img{transform:none}}
