
:root{--rect-red:#c8102e;--rect-ink:#1f2328;--rect-line:#e1e3e5}*{box-sizing:border-box}
.rect-nav{display:flex;align-items:center;gap:25px;font-size:14px;font-weight:600}.rect-nav a,.rect-nav summary{color:#1f2328;text-decoration:none;cursor:pointer;padding:24px 0;display:block}.rect-nav details{position:relative}.rect-nav summary{list-style:none;display:flex;align-items:center;gap:8px}.rect-nav summary::-webkit-details-marker{display:none}.rect-nav summary:after{content:'';display:block;width:6px;height:6px;flex:0 0 6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:translateY(-1.5px) rotate(45deg)}.rect-nav details[open] summary{color:#c8102e}.rect-dropdown{position:absolute;top:100%;left:-24px;min-width:240px;background:white;border:1px solid #e1e3e5;box-shadow:0 12px 24px #0000000d;padding:12px 24px;z-index:1000}.rect-dropdown a{padding:13px 0;border-bottom:1px solid #eee;font-size:14px;font-weight:400}.rect-dropdown a:last-child{border:0}.rect-nav a:hover{color:#c8102e}
.rect-header{font:600 15px/1.5 Arial,'Microsoft YaHei',sans-serif;min-height:88px;border-bottom:1px solid #e1e3e5;display:flex;align-items:center;justify-content:space-between;padding:0 5%;gap:25px;background:white}.rect-header>a{color:#1f2328;text-decoration:none;font-size:20px;letter-spacing:.03em}.rect-header nav{display:flex;gap:25px}.rect-header nav a{color:inherit;text-decoration:none}.rect-main{max-width:1280px;margin:auto;padding:70px 40px;font:16px/1.75 Arial,'Microsoft YaHei',sans-serif;color:#1f2328}.rect-main h1{font-size:44px;line-height:1.2;font-weight:600;margin:0 0 22px}.rect-main h2{font-size:28px;line-height:1.3}.rect-main>p{color:#626a73;max-width:720px}.rect-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:36px 0}.rect-tabs a{padding:10px 20px;border:1px solid #ddd;text-decoration:none;color:#333}.rect-tabs a[aria-current=page]{background:#1f2328;color:white;border-color:#1f2328}.rect-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:30px}.rect-product{border-bottom:1px solid #e1e3e5;padding-bottom:20px}.rect-product a{color:inherit;text-decoration:none}.rect-placeholder{aspect-ratio:4/3;background:#f3f4f4;display:flex;align-items:center;justify-content:center;color:#879098;font-size:14px}.rect-product h2{font-size:19px;margin:15px 0 3px}.rect-product p{font-size:14px;margin:0;color:#626a73}.rect-custom{margin-top:80px;padding:44px;background:#f5f6f6;border-left:3px solid #c8102e}.rect-button{display:inline-block;background:#c8102e;color:white!important;text-decoration:none;padding:12px 24px;border:0;font:inherit;cursor:pointer}.rect-custom .rect-button{margin-top:16px}.rect-videos{padding:70px 40px;max-width:1280px;margin:auto;color:white}.rect-videos h2{font-size:38px;margin:0 0 12px}.rect-videos p{color:#bfc3c8}.rect-video-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;margin-top:32px}.rect-video-slot{aspect-ratio:16/10;background:#2b2f34;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;border:1px solid #41464c}.rect-video-slot span{font-size:30px;color:#a4aab1}.rect-video-slot small{color:#bfc3c8}.rect-video-slot video{width:100%;height:100%}.editor-layout{display:grid;grid-template-columns:260px 1fr;gap:45px;margin-top:40px}.editor-layout label{display:block;margin-bottom:20px}.editor-layout input:not([type=checkbox]),.editor-layout select,.editor-layout textarea{width:100%;display:block;border:1px solid #cdd1d5;border-radius:3px;padding:12px;font:inherit;margin-top:8px}.editor-layout .check{display:flex;gap:8px;align-items:center}.editor-layout button{cursor:pointer;padding:10px 18px;font:inherit;border:1px solid #cdd1d5;background:white;border-radius:3px}.editor-layout button[type=submit]{background:#c8102e;color:white;border-color:#c8102e}.editor-layout button:disabled{opacity:.5}.editor-layout #list button{display:block;width:100%;text-align:left;margin-top:12px}.editor-images{display:flex;gap:12px;flex-wrap:wrap}.editor-images img{width:120px;height:90px;object-fit:cover;display:block}.editor-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.case-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;margin-top:40px}.case-grid>a{padding:25px;border:1px solid #ddd;color:inherit;text-decoration:none}.case-body{white-space:pre-wrap;overflow-wrap:anywhere;max-width:780px}.case-photo{max-width:100%;max-height:700px;object-fit:contain;display:block;margin:24px 0}.case-date{color:#707780}.rect-main button:focus-visible,.rect-main a:focus-visible,.rect-nav a:focus-visible,.rect-nav summary:focus-visible{outline:3px solid #c8102e;outline-offset:4px}
@media(max-width:1180px){.rect-nav{gap:15px}.rect-nav a,.rect-nav summary{font-size:13px}}
@media(max-width:820px){.rect-nav{display:none!important}.sf-header.is-open .rect-nav,.sf-header.sf-mobile-open .rect-nav,.sf-header:has(.sf-mobile-toggle[aria-expanded=true]) .rect-nav{display:flex!important;flex-direction:column;align-items:stretch;width:100%;gap:0}.rect-nav a,.rect-nav summary{padding:14px}.rect-dropdown{position:static;box-shadow:none;margin:0 14px;padding:0 14px}.rect-header{padding:20px;align-items:flex-start;flex-direction:column;gap:14px}.rect-header nav{gap:15px;flex-wrap:wrap}.rect-main{padding:40px 20px}.rect-main h1{font-size:32px}.rect-grid,.case-grid{grid-template-columns:repeat(2,1fr);gap:18px}.rect-custom{padding:25px;margin-top:45px}.rect-video-grid{grid-template-columns:repeat(2,1fr)}.rect-videos{padding:45px 20px}.rect-videos h2{font-size:29px}.editor-layout{grid-template-columns:1fr;gap:25px}}@media(max-width:420px){.rect-grid,.case-grid{grid-template-columns:1fr}}

/* Case editor: show only the fields needed for the selected format. */
.case-mode{display:flex;gap:24px;border:1px solid #e1e3e5;padding:16px 20px;margin:0 0 28px}.case-mode legend{font-weight:600;padding:0 8px}.editor-layout .case-mode label{display:flex;align-items:center;gap:8px;margin:0;cursor:pointer}.editor-layout .case-mode input{width:auto;margin:0}.editor-hint{font-size:14px;color:#626a73;margin:-8px 0 24px}.required{font-size:12px;color:#c8102e;margin-left:8px}.editor-layout [hidden]{display:none!important}.editor-layout #list button[aria-current=true]{border-color:#c8102e;background:#fff7f8}.case-cover{display:block;width:100%;aspect-ratio:4/3;object-fit:cover;margin-bottom:18px}

.case-editor-main{max-width:980px;padding-top:40px}.case-editor-main .editor-layout{display:flex;flex-direction:column;gap:24px;margin-top:0}.case-editor-main #editor{width:100%;min-width:0;order:0}.case-editor-main .editor-layout>aside{order:1;width:100%}.case-editor-main .editor-layout>aside:has(#list:empty){display:none}

/* Compact case publishing workspace, aligned with the existing admin chrome. */
.case-editor-page{background:#f4f6f8;color:#1f2328;font-family:"Microsoft YaHei UI","Microsoft YaHei",system-ui,sans-serif}
.case-editor-page .case-editor-main{max-width:960px;padding:28px 24px 48px;font:15px/1.6 "Microsoft YaHei UI","Microsoft YaHei",system-ui,sans-serif}
.case-editor-page #editor{background:white;border:1px solid #dfe3e8;border-radius:10px;padding:26px 30px 18px}
.case-editor-page .case-mode{border:0;border-bottom:1px solid #e8ebee;padding:0 0 18px;margin:0 0 20px;gap:10px}
.case-editor-page .case-mode legend{float:left;padding:8px 0;margin-right:22px;font-size:14px;color:#68717d;font-weight:400}
.case-editor-page .case-mode label{padding:7px 16px;border:1px solid #dfe3e8;border-radius:5px;font-size:14px}
.case-editor-page .case-mode label:has(input:checked){color:#b30d29;background:#fff5f6;border-color:#c8102e}
.case-editor-page input[type=radio],.case-editor-page input[type=checkbox]{accent-color:#c8102e}
.case-editor-page .case-meta{display:grid;grid-template-columns:minmax(0,1fr) 180px;gap:20px}
.case-editor-page .editor-layout label{margin-bottom:18px;font-size:14px;font-weight:500}
.case-editor-page .editor-layout input:not([type=checkbox]):not([type=radio]),.case-editor-page .editor-layout select,.case-editor-page .editor-layout textarea{font-family:inherit;font-size:15px;line-height:1.6;padding:10px 12px;margin-top:7px;border:1px solid #cdd3db;border-radius:5px;background:#fff}
.case-editor-page .editor-layout textarea{height:232px;min-height:180px;resize:vertical}
.case-editor-page .editor-layout input:focus,.case-editor-page .editor-layout select:focus,.case-editor-page .editor-layout textarea:focus{outline:2px solid #c8102e22;border-color:#c8102e}
.case-editor-page .case-upload{padding:14px 16px;background:#f8f9fb;border:1px dashed #ccd3db;border-radius:6px}
.case-editor-page .case-upload small{font-size:12px;font-weight:400;color:#68717d;margin-left:8px}
.case-editor-page .editor-layout input[type=file]{border:0!important;background:transparent!important;padding:0!important;font-size:13px!important}
.case-editor-page input[type=file]::file-selector-button{font:inherit;background:white;border:1px solid #cdd3db;border-radius:4px;padding:6px 12px;margin-right:12px;cursor:pointer}
.case-editor-page .case-footer{display:flex;justify-content:space-between;align-items:center;gap:16px;padding-top:18px;border-top:1px solid #e8ebee}
.case-editor-page .case-footer .check{margin:0;font-weight:400}.case-editor-page .editor-actions{gap:10px}.case-editor-page .editor-actions button{font-size:14px;padding:9px 20px;border-radius:5px}.case-editor-page .editor-actions button[type=submit]{background:#c8102e;color:white;border-color:#c8102e}
.case-editor-page #status{font-size:12px;color:#68717d;margin:12px 0 0}.case-editor-page .editor-hint{font-size:12px;margin-top:-10px}.case-editor-page #preview-pane{border-top:1px solid #e8ebee;margin-top:20px;padding-top:20px}
@media(max-width:600px){.case-editor-page .case-editor-main{padding:18px 14px 32px}.case-editor-page #editor{padding:20px 16px 16px}.case-editor-page .case-meta{grid-template-columns:1fr;gap:0}.case-editor-page .case-footer{align-items:flex-start;flex-direction:column}.case-editor-page .case-mode legend{float:none;margin:0 0 10px;padding:0}.case-editor-page .case-mode{flex-wrap:wrap}.case-editor-page .case-upload small{display:block;margin-left:0}}

.case-editor-page .case-meta{grid-template-columns:minmax(0,1fr)}

.rich-label{font-size:14px;font-weight:500;margin:0 0 7px}.rich-shell{border:1px solid #cdd3db;border-radius:6px;overflow:hidden;margin-bottom:18px;background:white}.rich-shell:focus-within{border-color:#c8102e;box-shadow:0 0 0 2px #c8102e14}.rich-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:4px;padding:8px 10px;border-bottom:1px solid #e4e7eb;background:#f8f9fb}.case-editor-page .rich-toolbar button{display:inline-flex;align-items:center;justify-content:center;min-width:32px;min-height:32px;border:1px solid transparent;border-radius:4px;padding:4px 8px;font-size:13px;background:transparent;color:#414851}.case-editor-page .rich-toolbar button:hover{background:#e9edf2}.case-editor-page .rich-toolbar button[aria-pressed=true]{background:#fce7eb;color:#b20c28;border-color:#e8a0ae}.case-editor-page .rich-toolbar select{width:auto;min-width:95px;height:32px;padding:3px 7px;margin:0 6px 0 0;font-size:13px;border:1px solid #d8dde4}.rich-divider{height:18px;width:1px;background:#dfe3e8;margin:0 5px}.case-prose{font:16px/1.85 "Microsoft YaHei UI","Microsoft YaHei",Arial,sans-serif;color:#323940;max-width:760px;overflow-wrap:anywhere}.case-prose p{margin:0 0 1em;color:inherit}.case-prose h2{font-size:25px;line-height:1.4;margin:1.6em 0 .65em;font-weight:650;color:#1f2328}.case-prose h3{font-size:20px;line-height:1.5;margin:1.4em 0 .55em;color:#1f2328}.case-prose>:first-child{margin-top:0}.case-prose ul,.case-prose ol{padding-left:1.7em;margin:0 0 1em}.case-prose li{margin:.3em 0}.case-prose img{display:block;max-width:100%;height:auto;border-radius:6px;margin:1.3em auto}.case-prose a{color:#bd102c;text-decoration:underline;text-underline-offset:3px}.case-prose blockquote{margin:1em 0;padding:4px 20px;border-left:3px solid #c8102e;color:#68717d}.case-editor-page .rich-input{max-width:none;min-height:260px;max-height:560px;overflow-y:auto;padding:20px 22px;outline:none;font-size:15px;line-height:1.8}.rich-input:empty:before{content:attr(data-placeholder);color:#98a0aa;pointer-events:none}.rich-input h2{font-size:23px}.rich-input h3{font-size:19px}.case-editor-page .rich-input:focus{outline:none}.case-editor-page .rich-input p:last-child{margin-bottom:0}@media(max-width:600px){.rich-toolbar{gap:2px;padding:6px}.case-editor-page .rich-toolbar button{padding:4px 6px}.case-editor-page .rich-input{padding:16px;min-height:240px}}

.case-image-thumb{position:relative;width:120px;margin:6px 4px 18px 0}.case-editor-page .editor-layout .case-image-remove{position:absolute;top:-7px;right:-7px;display:flex;align-items:center;justify-content:center;width:24px;height:24px;min-height:24px;padding:0;border:1px solid #dfe3e8;border-radius:50%;background:#fff;color:#59616c;font:20px/1 Arial,sans-serif;box-shadow:0 2px 5px #1f232814;cursor:pointer}.case-editor-page .editor-layout .case-image-remove:hover{color:#c8102e;border-color:#c8102e;background:#fff5f6}.case-image-thumb img{border-radius:5px}

/* Case listing: readable summary on the left, project photograph on the right. */
.case-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:24px}
.case-grid>a{display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,38%);gap:32px;align-items:center;padding:28px;text-decoration:none;color:inherit}
.case-grid .case-summary{min-width:0;overflow-wrap:anywhere}
.case-grid .case-summary h2{margin:0 0 16px;line-height:1.35}
.case-grid .case-summary p{margin:0;line-height:1.8;color:#626a73;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
.case-grid .case-cover{display:block;width:100%;height:240px;object-fit:cover;margin:0}
.case-grid>a:not(:has(.case-cover)){grid-template-columns:minmax(0,1fr)}
@media(max-width:600px){.case-grid>a{grid-template-columns:minmax(0,1fr);gap:20px;padding:20px}.case-grid .case-cover{height:auto;max-height:300px;aspect-ratio:4/3}}

.case-public-page .sf-header{position:sticky!important;top:0!important;z-index:100!important;background:#fff}.case-public-page .rect-main{min-height:45vh}

/* Uploaded case media is published content, independent of the stock-photo filter. */
.case-public-page .rect-main img{visibility:visible;color:inherit}

/* Compact editorial list. */
.case-public-page .rect-main:has(>.case-grid){max-width:1000px;padding:32px 24px 40px;min-height:0}
.case-public-page .case-grid{margin-top:0;gap:0}
.case-public-page .case-grid>a{grid-template-columns:minmax(0,1fr) 180px;gap:24px;padding:20px 0;border:0;border-bottom:1px solid #e4e6e8;align-items:start}
.case-public-page .case-grid .case-summary h2{font-size:21px;margin:0 0 10px;line-height:1.45}
.case-public-page .case-grid .case-summary p{font-size:15px;line-height:1.7;-webkit-line-clamp:3}
.case-public-page .case-grid .case-cover{width:180px;height:120px;max-height:none;object-fit:cover;visibility:visible}
@media(max-width:600px){.case-public-page .rect-main:has(>.case-grid){padding:20px 20px 28px}.case-public-page .case-grid>a{grid-template-columns:minmax(0,1fr) 112px;gap:16px;padding:16px 0}.case-public-page .case-grid .case-cover{width:112px;height:84px;aspect-ratio:auto}.case-public-page .case-grid .case-summary h2{font-size:18px}.case-public-page .case-grid .case-summary p{font-size:14px;-webkit-line-clamp:2}}

/* Enclose each compact article in a complete border. */
.case-public-page .case-grid{gap:16px}
.case-public-page .case-grid>a{border:1px solid #dfe3e8;padding:20px;box-sizing:border-box}
@media(max-width:600px){.case-public-page .case-grid>a{padding:16px}}

.case-link-preview{display:grid;grid-template-columns:minmax(0,1fr) 180px;gap:24px;border:1px solid #dfe3e8;padding:20px;color:inherit;text-decoration:none;align-items:start;background:#fff}
.case-link-preview h2{font-size:21px;line-height:1.45;margin:0 0 10px;overflow-wrap:anywhere}.case-link-preview p{margin:0;color:#626a73;font-size:15px}.case-link-preview img{display:block;width:180px;height:120px;object-fit:cover;visibility:visible}.case-link-preview.without-image{grid-template-columns:1fr}
@media(max-width:600px){.case-link-preview{grid-template-columns:minmax(0,1fr) 112px;gap:16px;padding:16px}.case-link-preview img{width:112px;height:84px}.case-link-preview h2{font-size:18px}}

/* Keep editing actions separate from saved-article management. */
.case-editor-page .case-editor-main aside[aria-label="已保存案例"]{padding:24px;background:#fff;border:1px solid #dfe3e8;border-radius:8px}
.case-list-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}
.case-list-heading h2{font-size:19px;line-height:1.4;margin:0;color:#1f2328}
.case-list-actions{display:flex;align-items:center;gap:10px}
.case-editor-page .case-list-heading #new-entry{background:#c8102e;color:#fff;border-color:#c8102e}
.case-editor-main .case-list-toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:12px 0;margin:0 0 12px;border-top:1px solid #e7e9ed;border-bottom:1px solid #e7e9ed}
.case-selection{display:flex;align-items:center;gap:16px;color:#626a73;font-size:14px}
.case-editor-main .case-selection label{display:flex;align-items:center;margin:0;gap:8px;color:#30363d}
.case-editor-page #delete-selected:disabled{opacity:.35}
.case-editor-page .case-list-row{padding:4px 0;align-items:center}
.case-editor-page .case-footer{gap:20px;align-items:center}
.case-editor-page .case-footer>.check{margin:0}
.case-editor-page .case-footer .editor-actions{gap:10px;justify-content:flex-end}
@media(max-width:600px){.case-editor-page .case-editor-main aside[aria-label="已保存案例"]{padding:16px}.case-list-heading{flex-wrap:wrap}.case-editor-page .case-footer{display:flex;flex-wrap:wrap}.case-editor-page .case-footer .editor-actions{width:100%}.case-selection{gap:10px}}

/* Desktop workspace: article selection beside the editor. */
.case-editor-page .case-editor-main{max-width:1440px}
.case-editor-page .case-editor-main .editor-layout{display:grid;grid-template-columns:320px minmax(0,1fr);gap:24px;align-items:start}
.case-editor-page .case-editor-main .editor-layout>aside{order:0;width:auto;min-width:0;padding:20px;box-sizing:border-box}
.case-editor-page .case-editor-main #editor{order:1;width:100%;box-sizing:border-box}
.case-editor-page .case-list-heading{gap:12px}
.case-editor-page .case-list-heading h2{font-size:18px}
.case-editor-page .case-list-toolbar{gap:8px;flex-wrap:wrap}
.case-editor-page .case-selection{gap:10px}
.case-editor-page .case-list-toolbar #delete-selected{padding:7px 10px;font-size:13px}
@media(max-width:900px){.case-editor-page .case-editor-main .editor-layout{grid-template-columns:minmax(0,1fr)}.case-editor-page .case-editor-main #editor{order:0}.case-editor-page .case-editor-main .editor-layout>aside{order:1}}

@media(min-width:901px){.case-editor-page .case-editor-main .editor-layout{grid-template-columns:minmax(0,1fr) 320px}.case-editor-page .case-editor-main #editor{order:0}.case-editor-page .case-editor-main .editor-layout>aside{order:1}}

/* Right-hand article navigation. */
.case-editor-page .case-editor-main .editor-layout>aside{padding:0;overflow:hidden}
.case-editor-page .case-list-heading{padding:18px 20px;margin:0;border-bottom:1px solid #e7e9ed}
.case-editor-page .case-list-heading #reload-list{font-size:13px;padding:5px 10px;min-height:30px}
.case-editor-page .case-editor-main #list{display:block;max-height:65vh;overflow-y:auto;padding:8px 0}
.case-editor-page .case-list-row{position:relative;gap:8px;padding:0 12px}
.case-editor-page .case-list-row>input{width:15px;height:15px;margin:0 0 0 6px}
.case-editor-page .case-editor-main #list .case-list-row button{border:0;border-radius:0;border-left:3px solid transparent;background:transparent;margin:0;padding:14px 10px;text-align:left;font-size:14px;line-height:1.6;min-height:48px}
.case-editor-page .case-editor-main #list .case-list-row button:hover{background:#f5f6f8}
.case-editor-page .case-editor-main #list .case-list-row button[aria-current=true]{background:#fff3f5;border-left-color:#c8102e;color:#b80f2b;font-weight:600}
.case-editor-page .case-editor-main .case-list-toolbar{margin:0;padding:14px 18px;border-bottom:0;background:#fafbfc}
.case-editor-page #empty-list{padding:20px;margin:0;font-size:14px}
@media(min-width:901px){.case-editor-page .case-editor-main .editor-layout>aside{position:sticky;top:24px}}

/* Restore the vertical article workspace. */
.case-editor-page .case-editor-main{max-width:960px}
.case-editor-page .case-editor-main .editor-layout{display:flex;flex-direction:column;gap:24px}
.case-editor-page .case-editor-main #editor{order:0;width:100%}
.case-editor-page .case-editor-main .editor-layout>aside{order:1;position:static;width:100%;box-sizing:border-box}
.case-editor-page .case-editor-main #list{max-height:none}

/* Related sourcing guide recommendations are removed site-wide. */
.sf-guide-related{display:none!important}
