:root {
  --bg:#f6f7fb; --surface:#fff; --soft:#f1f4f9; --text:#111827; --sub:#4b5563;
  --primary:#2563eb; --navy:#1e3a8a; --blue-soft:#eff6ff; --accent:#c44b0b;
  --orange-soft:#fff7ed; --green:#047857; --green-soft:#ecfdf5; --border:#e5e7eb;
  --shadow:0 8px 24px rgba(17,24,39,.06); --radius:16px;
}
* {box-sizing:border-box}
[hidden] {display:none!important}
body {margin:0;background:var(--bg);color:var(--text);font:15px/1.6 -apple-system,BlinkMacSystemFont,"PingFang SC","Helvetica Neue","Microsoft YaHei",sans-serif;-webkit-font-smoothing:antialiased;overflow-wrap:anywhere}
h1,h2,h3,h4,p,figure {margin:0}
button,input,textarea,select {font:inherit}
button,a,select {touch-action:manipulation}
button,.button {cursor:pointer;border:0;text-decoration:none}
button:disabled {cursor:wait;opacity:.65}
button:focus-visible,a:focus-visible,summary:focus-visible {outline:3px solid #93b4ff;outline-offset:2px}
input,textarea,select {width:100%;min-width:0;padding:10px 12px;color:var(--text);background:white;border:1px solid #cfd6e1;border-radius:10px;font-size:15px;line-height:1.45}
input:focus,textarea:focus,select:focus {outline:2px solid #bfdbfe;border-color:var(--primary)}
input[readonly] {background:var(--soft)}
textarea {resize:vertical;min-height:70px}
button,.button {font-weight:600;line-height:1.45}
.primary,.ghost,.button,.copy-btn,.pin,.pill,.status {display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:36px}
.primary,.copy-btn {background:var(--primary);color:white;padding:9px 16px;border-radius:10px;font-size:13px}
.primary:hover,.copy-btn:hover {background:#1d4ed8}
.ghost,.button {color:var(--text);background:var(--soft);padding:8px 12px;border-radius:8px;font-size:13px}
.ghost:hover,.button:hover {background:#e5e7eb}
.wide {width:100%}
.sr-only {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.container {max-width:1080px;margin:auto;padding:24px 16px 60px}
.lock-wrap,.admin-header,.case-card,.share-page {background:white;border:1px solid var(--border);box-shadow:var(--shadow)}
.lock-wrap {max-width:380px;margin:60px auto;padding:32px 24px;border-radius:20px;text-align:center}
.lock-icon {width:54px;height:54px;border-radius:16px;display:grid;place-items:center;background:var(--blue-soft);color:var(--primary);margin:0 auto 14px}
.lock-wrap h1 {font-size:19px;margin-bottom:6px}
.lock-wrap p {font-size:13px;color:var(--sub);margin:0 0 18px}
.lock-input {padding:12px 14px;border-radius:12px;text-align:center;font-size:16px;margin-bottom:12px}
.lock-wrap .wide {min-height:42px}
.admin-header {border-radius:var(--radius);padding:22px 24px;margin-bottom:20px}
.admin-top,.card-meta,.modal-head,.prompt-head,.form-foot,.section-head {display:flex;align-items:center;justify-content:space-between;gap:12px}
.admin-top {flex-wrap:wrap;margin-bottom:16px}
.brand,.actions,.stats,.badges,.pills,.filters,.checks,.tag-picks,.card-meta-left {display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.brand {flex-wrap:nowrap;gap:10px}
.brand-logo {width:38px;height:38px;flex-shrink:0;display:grid;place-items:center;border-radius:10px;color:#fff;background:linear-gradient(135deg,#2563eb,#f97316);font-size:14px;font-weight:800}
.centered {margin:0 auto 12px}
.brand h1 {font-size:19px;line-height:1.4}
.brand p,.small {font-size:12px;color:var(--sub)}
.search {background:var(--soft);padding:12px 16px;border:1.5px solid var(--border);border-radius:12px;margin-bottom:14px}
.search:focus {background:#fff}
.filters {justify-content:space-between;gap:10px}
.series-filter {width:auto;max-width:100%;font-size:13px}
.pill,.pin,.status {font-size:12px;color:var(--sub);background:#fff;border:1px solid var(--border);border-radius:999px;padding:5px 12px}
.pill.active,.tag-picks .active {background:var(--blue-soft);color:var(--primary);border-color:#bfdbfe}
.grid {display:grid;grid-template-columns:repeat(auto-fill,minmax(min(310px,100%),1fr));gap:16px}
.case-card {border-radius:var(--radius);padding:18px;display:flex;flex-direction:column;gap:10px;min-width:0;box-shadow:0 2px 10px #11182708;transition:transform .15s,box-shadow .15s}
@media(hover:hover){.case-card:hover {transform:translateY(-2px);box-shadow:var(--shadow)}}
.case-card h2 {font-size:17px;line-height:1.45}
.case-card .summary {font-size:13px;color:var(--sub);white-space:pre-line}
.tag,.stat-chip,.phone-badge {display:inline-block;border-radius:999px;background:var(--soft);color:var(--sub);padding:3px 10px;font-size:12px;font-weight:600}
.pin,.status {min-height:30px;padding:3px 9px;font-weight:600}
.pin.active,.stat-chip {color:var(--accent);background:var(--orange-soft);border-color:#fed7aa}
.status {border:0;background:var(--soft)}
.status.on {color:var(--green);background:var(--green-soft)}
.stat-chip {font-size:12px;border-radius:6px;padding:2px 8px}
.card-actions {margin-top:auto;padding-top:12px;border-top:1px solid var(--border)}
.empty {text-align:center;padding:35px 16px;color:var(--sub);grid-column:1/-1}
.modal-backdrop {position:fixed;inset:0;background:rgba(15,23,42,.55);z-index:20;overflow:auto;overscroll-behavior:contain;padding:36px 16px;display:flex;align-items:flex-start;justify-content:center}
.modal-box {width:100%;max-width:780px;background:#fff;border-radius:20px;padding:24px;box-shadow:0 24px 48px #0003;margin:auto 0}
.modal-head {align-items:flex-start;border-bottom:1px solid var(--border);padding-bottom:14px;margin-bottom:16px}
.modal-head h2 {font-size:19px}
.close {border:0;background:var(--soft);color:var(--text);width:36px;height:36px;flex-shrink:0;border-radius:50%;font-size:20px}
body.modal-open {overflow:hidden}
.section-title {font-size:16px;line-height:1.5;margin:20px 0 10px}
.prompt-block {padding:14px;border-radius:12px;background:#f8fafc;border:1px solid #e2e8f0;margin:0 0 12px}
.prompt-head {align-items:flex-start;margin-bottom:8px}
.prompt-head h3,.prompt-head h4 {font-size:14px;color:#1e293b}
.copy-btn {font-size:12px;padding:7px 12px;border-radius:8px;flex-shrink:0}
.copied {background:var(--green)!important;color:white!important}
.prompt-text,.pre {white-space:pre-wrap}
.prompt-text {font-size:14px;color:#334155;line-height:1.8}
.private-note {background:var(--orange-soft);border-color:#fed7aa}
.share-wrap {max-width:810px;margin:26px auto 60px;padding:0 16px}
.share-page {border-radius:20px;overflow:hidden}
.phone-topbar {background:linear-gradient(135deg,#1e3a8a,#ea580c);color:white;padding:26px 26px 22px}
.phone-brand {font-size:13px;margin-bottom:7px;font-weight:600}
.phone-title {font-size:clamp(21px,3vw,28px);line-height:1.4;margin:6px 0 10px}
.phone-series {font-size:13px}
.phone-badge {color:white;background:#0003;padding:3px 10px}
.phone-body {padding:18px 26px 26px}
.lead {color:var(--sub);white-space:pre-line}
.meta-line {font-size:13px;color:var(--sub);margin:5px 0}
.compare-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.compare-item {background:var(--soft);border:1px solid var(--border);border-radius:10px;padding:8px;text-align:center;min-width:0}
.compare-item figcaption {font-size:12px;color:var(--sub);line-height:1.45;margin-top:6px}
.compare-item strong {display:block;color:#334155;margin-bottom:2px}
.thumb,.compare-item video {display:grid;place-items:center;width:100%;aspect-ratio:4/3;border-radius:8px;color:#fff;font-size:12px;font-weight:650;overflow:hidden}
.thumb {padding:0}
.thumb img {width:100%;height:100%;object-fit:cover}
.t1 {background:linear-gradient(135deg,#475569,#71849d)}
.t2 {background:linear-gradient(135deg,#7335c2,#c85a18)}
.t3 {background:linear-gradient(135deg,#214fbd,#b83485)}
.compare-item video {background:#111827;object-fit:contain}
.zoom-img {display:block;max-width:100%;max-height:75vh;margin:auto;object-fit:contain}
.footer-card {background:linear-gradient(135deg,#eff6ff,#fff7ed);border:1px solid #fed7aa;border-radius:14px;padding:18px 14px;text-align:center;margin-top:20px}
.footer-card h2 {font-size:16px}
.footer-card p {font-size:13px;color:var(--sub);margin-top:3px}
.try-links {display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin-top:14px}
.try-link {display:block;color:white;text-decoration:none;border-radius:10px;padding:10px 15px;background:linear-gradient(120deg,#1e3a8a,#bd4a12);font-size:14px;font-weight:700}
.editor-section {margin:18px 0;border:0;padding:0}
.editor-section legend,.section-head h3 {font-weight:700;font-size:16px;margin:0 0 8px}
.fields {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.field {display:flex;flex-direction:column;gap:4px;min-width:0;font-size:13px;font-weight:600}
.field.full,.full {grid-column:1/-1}
.field small {font-weight:400;color:var(--sub)}
.checks label,.check {display:inline-flex;align-items:center;gap:8px;font-size:14px;cursor:pointer}
.checks input,.check input {width:17px;height:17px}
.tag-picks {margin:8px 0}
.tag-picks button {min-height:30px}
.entry {border:1px solid var(--border);background:#f8fafc;border-radius:12px;padding:12px;margin-bottom:10px}
.entry .field+.field,.entry .ghost {margin-top:8px}
.upload-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.upload-box {padding:10px;background:var(--soft);border-radius:10px;display:grid;align-content:start;gap:8px;font-size:13px}
.upload-box img,.upload-box video {width:100%;max-height:150px;object-fit:contain;background:#e1e7ef;border-radius:6px}
.upload-box input {font-size:12px;padding:5px;background:white}
.form-foot {border-top:1px solid var(--border);padding-top:14px;margin-top:16px}
.error,.lock-wrap .error {font-size:14px;color:#b42318;margin:8px 0;white-space:pre-line}
#toast {position:fixed;left:50%;bottom:calc(22px + env(safe-area-inset-bottom));z-index:1000;transform:translateX(-50%);max-width:90%;width:max-content;color:white;background:#111827;border-radius:999px;padding:9px 18px;font-size:13px;opacity:0;pointer-events:none;transition:opacity .15s}
#toast.show {opacity:1}
@media(max-width:640px){
  .container {padding:14px 12px 40px}.admin-header,.case-card {padding:16px}.admin-top {align-items:flex-start}
  .brand h1 {font-size:17px}.actions {gap:6px}.series-filter {width:100%}
  .fields {grid-template-columns:1fr}.upload-grid {grid-template-columns:1fr}
  .share-wrap {padding:0;margin:0 auto}.share-page {border:0;border-radius:0;min-height:100vh}
  .phone-topbar {padding:22px 16px 18px}.phone-body {padding:16px max(14px,env(safe-area-inset-right)) calc(22px + env(safe-area-inset-bottom))}
  .compare-grid {gap:5px}.compare-item {padding:5px}.thumb,.compare-item video {aspect-ratio:1/1}
  .try-links {flex-direction:column}.modal-backdrop {padding:12px 8px}.modal-box {padding:16px;border-radius:16px}
  .modal-head h2 {font-size:17px}input,textarea,select,.series-filter {font-size:16px}.copy-btn,.primary,.ghost,.button {min-height:40px}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important}}
.clip-area {position:fixed;left:0;top:0;width:1px;height:1px;min-height:0;opacity:0;padding:0;font-size:16px;pointer-events:none}
.caption-editor {margin-top:12px;font-size:13px}
.caption-editor summary {color:var(--navy);font-weight:600;cursor:pointer;margin-bottom:8px}
.checks {margin-top:10px}
