* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: #0a0a0c; color: #f2f2f2; font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 14px; }
.hidden { display: none !important; }
.goods-config { margin-top: 14px; }
.goods-picked { display: grid; gap: 6px; margin: 8px 0 14px; }
.goods-pick-row { display: flex; align-items: center; gap: 6px; padding: 7px 8px; border: 1px solid #2a2a2e; border-radius: 7px; background: #111114; }
.goods-order { width: 20px; color: #e8c068; font-size: 12px; text-align: center; }
.goods-pick-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.goods-pick-row .btn-small { padding: 4px 7px; font-size: 12px; }
.goods-pick-row .btn-small:disabled { opacity: .35; cursor: not-allowed; }
.goods-available { display: grid; gap: 6px; border-top: 1px solid #2a2a2e; padding-top: 10px; }
.goods-option { display: flex; align-items: center; gap: 7px; padding: 6px 0; color: #d7d7dc; cursor: pointer; }
.goods-option input { width: auto; accent-color: #e8c068; }
.account-switcher{position:relative;margin-left:12px;z-index:20}.account-trigger{display:flex;align-items:center;gap:8px;padding:7px 10px;border:1px solid rgba(232,192,104,.28);border-radius:10px;background:rgba(22,22,26,.88);color:#f2ede4}.account-trigger:hover{border-color:#e8c068;background:#242329}.account-avatar{display:inline-grid;place-items:center;width:24px;height:24px;border-radius:50%;background:linear-gradient(135deg,#22d3ee,#818cf8);color:#101116;font-size:12px;font-weight:700}.account-chevron{color:#e8c068;font-size:16px;line-height:12px}.account-menu{display:none;position:absolute;right:0;top:calc(100% + 10px);width:250px;padding:8px;border:1px solid #383842;border-radius:12px;background:#17171c;box-shadow:0 18px 45px rgba(0,0,0,.48)}.account-menu.open{display:block}.account-row{display:flex;align-items:center;gap:4px;padding:3px;border-radius:8px}.account-row:hover{background:#24242b}.account-option{display:flex;flex:1;min-width:0;flex-direction:column;align-items:flex-start;gap:2px;padding:9px 10px;border:0;background:transparent;color:#eee;text-align:left}.account-option.active{color:#e8c068}.account-option-name{max-width:205px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}.account-option-user{color:#888;font-size:11px}.account-remove{width:24px;height:24px;padding:0;background:transparent;color:#888}.account-remove:hover{color:#e86d6d}.account-add{width:100%;margin-top:6px;padding:9px;border-top:1px solid #2d2d35;border-radius:0;background:transparent;color:#e8c068;text-align:left}.account-empty,.account-error{padding:10px;color:#888;font-size:12px}.account-error{color:#e86d6d}@media(max-width:850px){.topbar{flex-wrap:wrap}.account-switcher{margin-left:auto;order:0}.tabs{order:3;width:100%;overflow-x:auto}.account-menu{right:0}}
.visitor-stats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; margin-bottom:16px; }
.visitor-stat { padding:18px; border:1px solid #2a2a2e; border-radius:12px; background:#16161a; }
.visitor-stat strong { display:block; margin-top:8px; color:#e8c068; font-size:28px; }
.visitor-chart { height:120px; display:flex; align-items:flex-end; gap:3px; padding:12px 10px 8px; margin-bottom:12px; border:1px solid #2a2a2e; border-radius:12px; background:#111114; }
.visitor-bar { flex:1; min-width:2px; border-radius:3px 3px 0 0; background:linear-gradient(180deg,#22d3ee,#e8c068); opacity:.9; }
.visitor-status { margin-bottom:14px; }
.visitor-table-wrap { overflow-x:auto; }
@media(max-width:700px){.visitor-stats{grid-template-columns:1fr}.visitor-stat strong{font-size:24px}}

/* Impeccable pass: keyboard visibility and motion accessibility */
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid #e8c068; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }

/* 登录入口：深色纹理、闪电 Logo 与管理后台视觉 */
body::before { content:""; position:fixed; inset:0; pointer-events:none; opacity:.22; background-image:radial-gradient(#fff 0.6px,transparent .8px),radial-gradient(#e8b86d 0.5px,transparent .8px); background-size:5px 5px,9px 9px; background-position:0 0,3px 4px; mix-blend-mode:soft-light; }
.login-wrap { position:relative; min-height:100vh; display:flex; align-items:center; justify-content:center; padding:32px 16px; background:radial-gradient(circle at 50% 35%,rgba(39,46,61,.5),transparent 38%),radial-gradient(circle at 20% 80%,rgba(74,57,26,.2),transparent 30%),#090b0e; }
.login-box { position:relative; width:min(500px,100%); background:rgba(16,18,24,.94); border:1px solid #3a3328; border-radius:20px; padding:42px 48px 36px; box-shadow:0 24px 80px rgba(0,0,0,.55),0 0 70px rgba(232,184,109,.06); overflow:hidden; }
.login-box::after { content:""; position:absolute; right:18px; bottom:16px; width:34px; height:34px; border-right:1px solid #d7a955; border-bottom:1px solid #d7a955; opacity:.8; }
.brand { text-align:center; margin-bottom:28px; }
.brand-mark { position:relative; width:72px; height:72px; margin:0 auto 18px; display:grid; place-items:center; border-radius:50%; background:radial-gradient(circle at 35% 30%,#333a98,#101836 65%); box-shadow:0 0 24px rgba(63,92,255,.35),inset 0 0 18px #111; }
.brand-mark::before,.brand-mark::after { content:""; position:absolute; inset:-11px; border:1px dotted rgba(50,214,255,.7); border-radius:50%; animation:brand-spin 7s linear infinite; }
.brand-mark::after { inset:-18px; border-color:transparent transparent rgba(232,184,109,.8) transparent; animation-duration:4s; animation-direction:reverse; }
.brand-mark span { color:#ffd342; font-size:34px; line-height:1; text-shadow:0 0 12px #ffc928; animation:brand-pulse 1.8s ease-in-out infinite; }
.brand h1 { color:#e6e8ed; font-size:25px; margin:0 0 12px; letter-spacing:1px; }
.brand h1 b { color:#f5f5f5; font-weight:700; }.brand h1 b span { color:#4aa8ff; }.brand p { color:#888d98; font-size:14px; }
.auth-title { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }
.auth-tabs { display:flex; gap:0; background:#202126; border-radius:12px; padding:4px; margin:0 0 28px; }.auth-tabs button { flex:1; padding:12px; color:#999; background:transparent; }.auth-tabs button.active { color:#eee; background:#494234; box-shadow:0 0 0 1px rgba(232,184,109,.2); }
.login-box .field { margin-bottom:20px; }.login-box .field label { color:#989aa3; }.login-box input { height:54px; padding:0 16px; background:#111318; border-color:#2d3038; border-radius:10px; }.login-box input:focus { border-color:#c49346; box-shadow:0 0 0 3px rgba(196,147,70,.1); }
.login-box .btn-primary { position:relative; display:flex; align-items:center; justify-content:center; height:62px; border-radius:32px; padding:6px; background:#1c1d22; border:1px solid #b98b3d; color:#eee; font-size:16px; overflow:hidden; }.login-box .btn-primary i { position:absolute; left:6px; width:50px; height:50px; display:grid; place-items:center; border-radius:50%; background:#f0bd55; color:#151515; font-size:29px; font-style:normal; transition:transform .25s; }.login-box .btn-primary:hover i { transform:translateX(3px); }.login-box .btn-primary span { margin-left:16px; }
.login-box #authToggle { color:#a4a6ae; margin-top:18px; cursor:pointer; }.login-box #authMsg,.login-box #gateMsg { min-height:18px; color:#e88a7c; text-align:center; margin-top:14px; }
@keyframes brand-spin { to { transform:rotate(360deg); } } @keyframes brand-pulse { 50% { transform:scale(1.12); filter:brightness(1.3); } }

/* 参考 admin-web 登录页的完整视觉层 */
body { background:#0b0b0d; color:#f2ede4; background-image:radial-gradient(ellipse 80% 50% at 50% -10%,rgba(201,154,62,.06),transparent 60%),radial-gradient(ellipse 60% 40% at 100% 100%,rgba(201,154,62,.04),transparent 60%); background-attachment:fixed; }
body::before { opacity:.35; z-index:0; background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E"); mix-blend-mode:overlay; }
.login-bg{position:fixed;inset:0;overflow:hidden;z-index:0;pointer-events:none;background:radial-gradient(1100px 760px at 50% 40%,rgba(42,47,107,.28),rgba(16,19,46,.12) 45%,transparent 68%)}
.bg-aurora{position:absolute;border-radius:50%;filter:blur(90px);will-change:transform}.bg-aurora.a1{width:58vmax;height:58vmax;left:-18vmax;bottom:-26vmax;background:radial-gradient(circle,rgba(201,154,62,.17),transparent 65%);animation:drift1 26s ease-in-out infinite alternate}.bg-aurora.a2{width:54vmax;height:54vmax;right:-16vmax;top:-22vmax;background:radial-gradient(circle,rgba(34,211,238,.1),rgba(129,140,248,.11) 42%,transparent 70%);animation:drift2 32s ease-in-out infinite alternate}
@keyframes drift1{to{transform:translate(6vmax,-5vmax) scale(1.16)}}@keyframes drift2{to{transform:translate(-5vmax,5vmax) scale(1.12)}}
.bg-orbits{position:absolute;top:44%;left:50%}.bg-orbits i{position:absolute;top:0;left:0;transform:translate(-50%,-50%);border-radius:50%;border:1px dashed rgba(34,211,238,.13)}.bg-orbits .o1{width:360px;height:360px;animation:orbit 90s linear infinite}.bg-orbits .o2{width:580px;height:580px;border-color:rgba(224,178,88,.11);animation:orbit 150s linear infinite reverse}.bg-orbits .o3{width:860px;height:860px;border-color:rgba(129,140,248,.09);animation:orbit 220s linear infinite}.bg-orbits i::after{content:"";position:absolute;top:-3px;left:50%;width:5px;height:5px;margin-left:-3px;border-radius:50%;background:#22d3ee;box-shadow:0 0 12px #22d3ee}
@keyframes orbit{from{transform:translate(-50%,-50%) rotate(0)}to{transform:translate(-50%,-50%) rotate(360deg)}}
.bg-stars{position:absolute;inset:0}.bg-stars i{position:absolute;top:0;left:0;width:1px;height:1px;border-radius:50%;background:transparent}.bg-stars.s1 i{box-shadow:6vw 12vh #fff,18vw 6vh rgba(255,255,255,.6),27vw 22vh #fff,9vw 38vh rgba(255,255,255,.5),15vw 64vh #fff,4vw 82vh rgba(255,255,255,.6),71vw 6vh #fff,84vw 14vh rgba(255,255,255,.6),93vw 9vh #fff,78vw 70vh rgba(255,255,255,.75);animation:twinkle 3.6s ease-in-out infinite alternate}.bg-stars.s2 i{width:2px;height:2px;box-shadow:12vw 24vh #fff,25vw 45vh #e0b258,40vw 18vh #22d3ee,58vw 30vh rgba(255,255,255,.7),73vw 48vh #e0b258,90vw 74vh #22d3ee,48vw 68vh #e0b258;animation:twinkle 5.4s ease-in-out infinite alternate;animation-delay:-2.2s}@keyframes twinkle{from{opacity:.25}to{opacity:1}}
.bg-meteor{position:absolute;width:160px;height:1px;background:linear-gradient(90deg,transparent,#e0b258);opacity:0;animation:shoot 12s linear infinite}.bg-meteor.m1{top:12%;left:72%;animation-delay:3.5s}.bg-meteor.m2{top:5%;left:42%;width:110px;animation-duration:17s;animation-delay:10s;background:linear-gradient(90deg,transparent,#22d3ee)}@keyframes shoot{0%{opacity:0;transform:rotate(-33deg) translateX(0)}1.5%{opacity:1}7%,100%{opacity:0;transform:rotate(-33deg) translateX(-44vw) translateY(28.5vw)}}
.bg-grain{position:absolute;inset:0;opacity:.05;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E")}.bg-vignette{position:absolute;inset:0;background:radial-gradient(ellipse at center,transparent 42%,rgba(0,0,0,.52))}
.login-wrap{position:relative;min-height:100vh;max-width:none;margin:0;background:transparent;padding:32px 16px;border-radius:0;z-index:1;animation:riseIn .6s cubic-bezier(.16,1,.3,1) both}.login-box{width:min(400px,100%);background:linear-gradient(160deg,rgba(22,23,32,.82),rgba(11,11,13,.92));backdrop-filter:blur(14px);border:1px solid rgba(201,154,62,.16);border-radius:16px;padding:44px 36px 36px;box-shadow:0 24px 64px rgba(0,0,0,.55),0 0 90px rgba(201,154,62,.06),inset 0 1px 0 rgba(255,255,255,.05);position:relative}.login-box::before{content:"";position:absolute;top:0;left:24px;right:24px;height:1px;background:linear-gradient(90deg,transparent,#c99a3e,transparent);opacity:.5}.login-box::after{content:"";position:absolute;right:16px;bottom:16px;width:26px;height:26px;border-right:1px solid rgba(224,178,88,.4);border-bottom:1px solid rgba(224,178,88,.4);border-radius:0 0 7px 0}
@keyframes riseIn{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:translateY(0)}}.login-logo{display:flex;justify-content:center;margin-bottom:16px}.login-logo svg{width:72px;height:72px}.login-box .brand{display:none}.login-box>h1{font-size:24px;font-weight:700;letter-spacing:.04em;color:#f2ede4;text-align:center;margin:0 0 6px}.gt{background:linear-gradient(90deg,#22d3ee,#818cf8);-webkit-background-clip:text;background-clip:text;color:transparent}.login-subtitle{color:#8b8b93;font-size:13px;margin-bottom:28px;text-align:center}.auth-modes{display:flex;gap:8px;margin:0 0 22px;padding:4px;background:rgba(255,255,255,.05);border-radius:12px}.auth-mode{flex:1;padding:10px;border:0;border-radius:9px;color:#8b8b93;background:transparent;cursor:pointer;font:inherit}.auth-mode.active{color:#f2ede4;background:rgba(224,178,88,.18)}.login-box .field{margin-bottom:16px}.login-box .field label{display:block;color:#8b8b93;margin-bottom:6px;font-size:13px}.login-box input{height:auto;padding:10px 12px;background:#0f0f12;border:1px solid #2a2a2e;border-radius:8px}.login-box input:focus{border-color:#e8b86d;box-shadow:none}.login-box .btn-primary{height:auto;display:block;border:0;border-radius:8px;background:linear-gradient(135deg,#e8b86d,#d49a4e);color:#1a1a1a;padding:12px;font-weight:600}.login-box .auth-title{display:none}.login-box #authToggle{margin-top:16px;color:#8b8b93}.login-box #authMsg,.login-box #gateMsg{min-height:18px;text-align:center;color:#d97575;margin-top:10px}
@media (max-width:600px){.login-box{padding:36px 24px 30px}.bg-orbits .o2{width:420px;height:420px}.bg-orbits .o3{width:600px;height:600px}}

/* 与源代码一致：普通渐变按钮 + 悬停高光，不使用滑动箭头 */
.login-box .btn-primary{width:100%;height:auto;display:block;background:linear-gradient(135deg,#e0b258 0%,#c99a3e 100%);color:#1a1208;padding:13px;font-weight:600;letter-spacing:.06em;border:0;border-radius:7px;box-shadow:0 4px 16px rgba(201,154,62,.25);position:relative;overflow:hidden;transform:none}
.login-box .btn-primary:hover{transform:translateY(-1px);box-shadow:0 6px 22px rgba(201,154,62,.35);filter:brightness(1.06)}
.login-box .btn-primary:active{transform:translateY(0)}
.login-box .btn-primary::after{content:"";position:absolute;top:0;left:-100%;width:100%;height:100%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.25),transparent);transition:left .5s cubic-bezier(.4,0,.2,1)}
.login-box .btn-primary:hover::after{left:100%}
.auth-modes{position:relative;isolation:isolate;overflow:hidden}.auth-modes::before{content:"";position:absolute;z-index:-1;top:4px;bottom:4px;left:4px;width:calc(50% - 4px);border-radius:9px;background:rgba(224,178,88,.18);box-shadow:0 1px 8px rgba(0,0,0,.18);transition:transform .28s cubic-bezier(.16,1,.3,1)}.auth-modes.register-mode::before{transform:translateX(100%)}.auth-modes .auth-mode,.auth-modes .auth-mode.active{position:relative;background:transparent;color:#8b8b93;transition:color .2s}.auth-modes .auth-mode.active{color:#f2ede4}

/* 登录 */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.login-box { width: 360px; background: #16161a; padding: 40px; border-radius: 16px; }
.login-box h1 { font-size: 20px; margin-bottom: 24px; color: #e8b86d; }
.field { margin-bottom: 16px; }
.field label { display: block; color: #888; margin-bottom: 6px; font-size: 13px; }
input, select, textarea { width: 100%; background: #0f0f12; border: 1px solid #2a2a2e; border-radius: 8px; padding: 10px 12px; color: #fff; font-size: 14px; outline: none; }
input:focus, select:focus, textarea:focus { border-color: #e8b86d; }
textarea { resize: vertical; }
button { cursor: pointer; border: none; border-radius: 8px; font-size: 14px; }
.btn-primary { width: 100%; background: linear-gradient(135deg, #e8b86d, #d49a4e); color: #1a1a1a; padding: 12px; font-weight: 600; }
.btn-small { background: #e8b86d; color: #1a1a1a; padding: 8px 16px; font-weight: 600; }
.btn-small.success { background: #6de89a; }
.btn-small.danger { background: #e86d6d; color: #fff; }
.muted { color: #888; font-size: 12px; }

/* 布局 */
.app { display: none; }
.topbar { background: #0d0d0f; padding: 14px 28px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #222; gap: 16px; flex-wrap: wrap; }
.topbar .logo { color: #e8b86d; font-weight: 700; font-size: 18px; white-space: nowrap; }
.topbar select { width: auto; background: #16161a; color: #e8b86d; border-radius: 8px; padding: 6px 10px; border: 1px solid #333; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tab { padding: 8px 18px; border-radius: 20px; color: #888; background: transparent; }
.tab.active { background: #e8b86d; color: #1a1a1a; font-weight: 600; }
.body { padding: 24px 28px; }
.toolbar { margin-bottom: 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card { padding: 20px; border: 1px solid #292929; border-radius: 12px; background: #16161a; }
.card .num { font-size: 28px; font-weight: 700; color: #e8b86d; }
.card .label { color: #888; font-size: 13px; margin-top: 4px; }

table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px; text-align: left; border-bottom: 1px solid #222; font-size: 14px; }
th { color: #888; font-weight: 500; font-size: 13px; }
td img.thumb { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; background: #222; }
.price { color: #e8b86d; font-weight: 600; }
.link { color: #e8b86d; cursor: pointer; margin-right: 12px; }
.link.danger { color: #e86d6d; }
.tag { padding: 3px 10px; border-radius: 12px; font-size: 12px; }
.tag.on { background: #1a3a24; color: #6de89a; }
.tag.off { background: #2a2a2a; color: #888; }
.pager { margin-top: 12px; display: flex; gap: 8px; align-items: center; }
.pager button { background: #16161a; color: #fff; border: 1px solid #333; padding: 6px 12px; }

/* 弹窗 */
.mask { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.7); z-index: 10; align-items: center; justify-content: center; }
.modal { background: #16161a; border-radius: 16px; padding: 28px; width: 500px; max-height: 90vh; overflow: auto; }
.modal.media-modal { width: min(820px, calc(100vw - 32px)); }
.modal-title-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.modal-title-row h2 { font-size: 18px; }
.modal-close { width: 38px; height: 38px; border: 1px solid #3a3a3f; border-radius: 50%; background: transparent; color: #c9c9c9; font-size: 26px; line-height: 34px; }
.modal-close:hover { background: #29292e; color: #fff; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.image-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.image-actions input[type=file] { width: auto; padding: 6px; }
.image-preview-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.image-preview-list img { width: 80px; height: 80px; border-radius: 8px; object-fit: cover; background: #222; }
.image-preview-list .img-wrap { position: relative; }
.image-preview-list .img-x { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; background: #e86d6d; color: #fff; border-radius: 50%; font-size: 12px; line-height: 18px; text-align: center; cursor: pointer; }

/* 图片库 */
.media-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.media-toolbar input[type=file] { width: auto; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 14px; max-height: 60vh; overflow: auto; }
.media-item { padding: 8px; border: 1px solid #2e2e34; border-radius: 12px; background: #111114; cursor: pointer; }
.media-item:hover { border-color: #e8b86d; }
.media-item img { width: 100%; aspect-ratio: 1; border-radius: 8px; object-fit: cover; background: #222; }

/* 模版列表 + 编辑器 */
.tpl-list { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.tpl-card { border: 1px solid #2e2e34; border-radius: 12px; padding: 16px; background: #111114; min-width: 180px; cursor: pointer; }
.tpl-card.active { border-color: #e8b86d; }
.tpl-card .tpl-name { font-weight: 600; margin-bottom: 8px; }
.tpl-card .tpl-tag { font-size: 12px; color: #e8b86d; }
.tpl-card .tpl-ops { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.tpl-card .tpl-ops button { background: #222; color: #fff; padding: 5px 10px; font-size: 12px; }
.editor { border-top: 1px solid #222; padding-top: 18px; }
.editor-main { display: grid; grid-template-columns: 160px 1fr 280px; gap: 16px; }
.editor-palette { border: 1px solid #2e2e34; border-radius: 12px; padding: 12px; background: #111114; }
.palette-title { color: #888; font-size: 13px; margin-bottom: 10px; }
.palette-item { display: block; width: 100%; text-align: left; background: #1c1c20; color: #fff; padding: 10px; margin-bottom: 8px; border: 1px solid #2e2e34; }
.palette-item:hover { border-color: #e8b86d; }
.editor-canvas { border: 1px dashed #4c514e; border-radius: 12px; padding: 14px; min-height: 300px; background: #111714; }
.module-card { border: 1px solid #2e2e34; border-radius: 10px; padding: 12px; margin-bottom: 10px; background: #16161a; display: flex; align-items: center; gap: 12px; cursor: pointer; }
.module-card:active { cursor: grabbing; }
.module-card .drag { color: #666; font-size: 18px; cursor: grab; }
.module-card .m-info { flex: 1; }
.module-card .m-type { font-weight: 600; color: #e8b86d; }
.module-card .m-sum { color: #888; font-size: 12px; margin-top: 4px; }
.module-card .m-ops button { background: #222; color: #fff; padding: 5px 10px; font-size: 12px; margin-left: 6px; }
.editor-config { border: 1px solid #2e2e34; border-radius: 12px; padding: 14px; background: #111114; }
.editor-config .field { margin-bottom: 12px; }
.editor-config .cfg-img-row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.editor-config .cfg-img-row input { flex: 1; }

.form-box { background: #16161a; border: 1px solid #292929; border-radius: 12px; padding: 20px; max-width: 480px; margin-bottom: 16px; display: flex; flex-direction: column; gap: 10px; }
.form-box label { color: #888; font-size: 13px; }

.toast { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); background: #e8b86d; color: #1a1a1a; padding: 10px 24px; border-radius: 20px; display: none; z-index: 99; font-weight: 600; }

/* 手机预览 */
.preview-toolbar { margin-bottom: 14px; display: flex; justify-content: space-between; align-items: center; }
.phone { width: 320px; margin: 0 auto; border: 8px solid #1a1a1e; border-radius: 36px; background: #000; box-shadow: 0 0 30px rgba(0,0,0,.6); overflow: hidden; }
.phone-screen { background: #f5f6f8; color: #1f2937; min-height: 560px; padding-bottom: 20px; }
.phone-screen .ph-nav { background: #fff; padding: 12px; text-align: center; font-weight: 600; border-bottom: 1px solid #eee; color: #333; }
.phone-screen .ph-img { width: 100%; display: block; background: #e5e7eb; }
.phone-screen .ph-notice { background: #111; color: #fff; padding: 10px 14px; font-size: 13px; }
.phone-screen .ph-title { padding: 14px; font-weight: 700; font-size: 15px; color: #333; }
.phone-screen .ph-goods { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 12px; }
.phone-screen .ph-goods .g { background: #fff; border-radius: 10px; overflow: hidden; }
.phone-screen .ph-goods .g img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #eee; }
.phone-screen .ph-goods .g .n { font-size: 13px; padding: 6px 8px; color: #333; }
.phone-screen .ph-goods .g .p { font-size: 14px; font-weight: 700; color: #e85c3a; padding: 0 8px 8px; }
.center { text-align: center; margin-top: 10px; }
.hidden { display: none !important; }
#authToggle { cursor: pointer; text-decoration: underline; }
.module-card.dragging { opacity: .4; border-color: #e8b86d; }
.module-card .drag { cursor: grab; }

/* ===== 可视化拖拽装修器 ===== */
.editor-canvas { display: flex; justify-content: center; align-items: flex-start; background: #101318; border: 1px dashed #4c514e; border-radius: 12px; padding: 16px; }
.editor-canvas .phone { margin: 0; }
.pv-block { position: relative; border: 2px solid transparent; border-radius: 4px; transition: border-color .15s; }
.pv-block.selected { border-color: #e8b86d; }
.pv-block.drop-hint { border-top: 3px solid #e8b86d; }
.pv-block.dragging { opacity: .4; }
.pv-block .pv-drag { position: absolute; left: 6px; top: 6px; z-index: 5; width: 24px; height: 24px; background: rgba(0,0,0,.55); color: #fff; border-radius: 5px; text-align: center; line-height: 22px; cursor: grab; user-select: none; }
.pv-block .pv-del { position: absolute; right: 6px; top: 6px; z-index: 5; width: 22px; height: 22px; background: rgba(220,38,38,.9); color: #fff; border-radius: 50%; text-align: center; line-height: 20px; cursor: pointer; user-select: none; }
.pv-end { min-height: 36px; margin-top: 4px; border: 2px dashed #333; border-radius: 8px; color: #666; display: flex; align-items: center; justify-content: center; font-size: 12px; }
.palette-item { display: block; width: 100%; text-align: left; background: #1c1c20; color: #fff; padding: 10px; margin-bottom: 8px; border: 1px solid #2e2e34; cursor: grab; }
.palette-item:hover { border-color: #e8b86d; }
.editor-main { display: grid; grid-template-columns: 170px 1fr 300px; gap: 16px; align-items: start; }
