/* 编辑器样式（自制，系统字体） */
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Noto Sans CJK SC", sans-serif; background: linear-gradient(160deg, #fff4e6, #ffe3ec 50%, #e7e3ff); color: #2b2d42; min-height: 100vh; }
[hidden] { display: none !important; }
.top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 22px; flex-wrap: wrap; }
.brand { font-weight: 800; font-size: 22px; letter-spacing: .3px; }
.proto { font-size: 11px; font-weight: 600; background: #2b2d42; color: #fff; border-radius: 999px; padding: 2px 8px; vertical-align: middle; }
.premium { border: 2px dashed #9b5de5; background: #fff; color: #6a1fb5; border-radius: 999px; padding: 8px 14px; font-weight: 700; cursor: pointer; }
.welcome { margin: 0 auto 6px; max-width: 980px; background: #2b2d42; color: #fff; border-radius: 12px; padding: 10px 16px; }
.wrap { display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 400px); gap: 20px; justify-content: center; padding: 8px 18px 40px; align-items: start; }
@media (max-width: 900px) { .wrap { grid-template-columns: 1fr; } }
.panel { background: rgba(255,255,255,.92); border-radius: 18px; padding: 18px 22px 22px; box-shadow: 0 10px 30px rgba(80,30,90,.12); }
h2 { font-size: 16px; margin: 16px 0 10px; } h2:first-child { margin-top: 0; } h2 small { font-weight: 500; color: #6c757d; }
.tpls { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tpl { border: 2px solid transparent; border-radius: 14px; padding: 10px; cursor: pointer; text-align: left; font: inherit; color: inherit; min-height: 92px; }
.tpl b { display: block; font-size: 14px; } .tpl span { font-size: 12px; opacity: .8; }
.tpl[aria-checked="true"] { border-color: #2b2d42; box-shadow: 0 0 0 3px rgba(43,45,66,.15); }
.tpl.birthday { background: linear-gradient(135deg, #fff1c1, #ffc2d1); }
.tpl.love { background: linear-gradient(135deg, #ffe5ec, #ff8fab); }
.tpl.newyear { background: linear-gradient(135deg, #1b1f4b, #3a1c4a); color: #ffd60a; }
label { display: block; font-size: 13px; font-weight: 600; margin: 10px 0 0; }
input:not([type=file]), textarea, select { display: block; width: 100%; margin-top: 4px; font: inherit; font-weight: 400; padding: 9px 11px; border: 1px solid #d0d3e0; border-radius: 10px; background: #fff; }
textarea { resize: vertical; }
.count { text-align: right; font-size: 12px; color: #6c757d; }
.photoInfo { display: flex; gap: 12px; align-items: center; margin-top: 10px; font-size: 13px; }
.photoInfo img { width: 72px; height: 90px; object-fit: cover; border-radius: 6px; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.note { font-size: 12px; color: #6c757d; line-height: 1.5; }
.primary { background: #2b2d42; color: #fff; border: 0; border-radius: 999px; padding: 12px 20px; font-weight: 700; font-size: 15px; cursor: pointer; }
.ghost { display: inline-block; border: 2px solid #2b2d42; color: #2b2d42; border-radius: 999px; padding: 10px 18px; font-weight: 700; text-decoration: none; }
.link { background: none; border: 0; color: #c9184a; padding: 0; cursor: pointer; text-decoration: underline; font: inherit; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.result textarea { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 11px; word-break: break-all; }
.stat { font-size: 12px; color: #495057; margin-top: 6px; line-height: 1.6; }
.err { color: #c1121f; font-size: 13px; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: #2b2d42; color: #fff; padding: 12px 20px; border-radius: 999px; font-weight: 600; box-shadow: 0 10px 30px rgba(0,0,0,.25); z-index: 10; }
.ghost-btn { background: #fff; color: #2b2d42; border: 2px solid #2b2d42; border-radius: 999px; padding: 10px 18px; font-weight: 700; font-size: 15px; cursor: pointer; }
.foot { text-align: center; font-size: 12px; color: #6c757d; padding: 0 0 28px; }
.foot a { color: inherit; }
.warnbox { background: #fff3bf; color: #5c3c00; border: 1px solid #f59f00; border-radius: 10px; padding: 10px 12px; font-size: 13px; line-height: 1.5; }
.notice { font-style: italic; }
