/* 活动图卡片样式（只在 #actCard 作用域内生效，不影响主界面） */
#actCard, #actCard * { margin:0; padding:0; box-sizing:border-box; }
#actCard {
  --act-ink:#0F172A;
  --act-ink2:#55637A;
  --act-accent:#0284C7;
  --act-soft:rgba(2,132,199,0.10);
  --act-surface:rgba(255,255,255,0.72);
  --act-surface2:rgba(255,255,255,0.45);
  --act-line:rgba(15,23,42,0.12);
  --act-tip:rgba(255,255,255,0.42);
  --act-shadow:0 16px 34px rgba(15,23,42,0.07), inset 0 1px 0 rgba(255,255,255,0.9);
  --act-badge-logi:#0369A1;
  --act-badge-logi-bg:rgba(3,105,161,0.10);
  --act-badge-mail:#7C3AED;
  --act-badge-mail-bg:rgba(124,58,237,0.10);
}
#actCard {
    width:1080px;
    font-family:"OPPOSans","Microsoft YaHei","PingFang SC",sans-serif;
    -webkit-font-smoothing:antialiased;
    text-rendering:optimizeLegibility;
  }
#actCard .canvas { width:1080px; padding:66px 62px 58px; background:transparent; }
#actCard .rule { width:46px; height:4px; border-radius:2px; background:var(--act-accent); margin-bottom:24px; }
#actCard h1 { font-size:66px; line-height:1.1; letter-spacing:3px; font-weight:800; color:var(--act-ink); }
#actCard .period { display:inline-flex; align-items:center; gap:12px; margin-top:24px; padding:12px 24px; border-radius:999px;
            background:var(--surface-2); border:1px solid var(--act-line); font-size:23px; color:var(--act-ink2); }
#actCard .period b { color:var(--act-ink); font-weight:700; letter-spacing:.5px; }
#actCard .period s { text-decoration:none; opacity:.45; }
#actCard .product { display:flex; justify-content:space-between; align-items:flex-end; gap:24px;
             margin-top:26px; padding-bottom:24px; border-bottom:1px solid var(--act-line); }
#actCard .product .pl { font-size:18px; letter-spacing:4px; color:var(--act-ink2); margin-bottom:8px; }
#actCard .product .pn { font-size:31px; font-weight:700; color:var(--act-ink); letter-spacing:.5px; }
#actCard .product .code { text-align:right; }
#actCard .product .code .cv { font-family:ui-monospace,Consolas,monospace; font-size:23px; color:var(--act-ink2); letter-spacing:1px; }
#actCard .product .code .cv.empty { color:var(--act-ink2); opacity:.55; border-bottom:2px dashed var(--act-line); padding-bottom:4px; }
#actCard .product.blank { align-items:center; padding-bottom:0; border-bottom:none; margin-top:26px; }
#actCard .product.blank .box { flex:1; display:flex; align-items:center; gap:16px; padding:22px 26px;
                        border-radius:18px; border:1px dashed var(--act-line); background:var(--surface-2); }
#actCard .product.blank .box .dot { width:8px; height:8px; border-radius:50%; background:var(--act-accent); opacity:.5; flex:none; }
#actCard .product.blank .box .h { font-size:24px; font-weight:700; color:var(--act-ink2); letter-spacing:1px; }
#actCard .product.blank .box .m { font-size:19px; color:var(--act-ink2); opacity:.7; letter-spacing:.5px; }
#actCard .section { margin-top:50px; }
#actCard .slabel { display:flex; align-items:center; gap:14px; }
#actCard .slabel i { display:block; width:6px; height:24px; border-radius:3px; background:var(--act-accent); }
#actCard .slabel span { font-size:22px; letter-spacing:7px; font-weight:700; color:var(--act-ink2); }
#actCard .benefit { display:flex; align-items:center; gap:24px; margin-top:16px; padding:26px 30px;
             border-radius:22px; background:var(--act-surface); border:1px solid var(--act-line); box-shadow:var(--act-shadow); }
#actCard .benefit .num { font-family:ui-monospace,Consolas,monospace; font-size:31px; font-weight:800; color:var(--act-accent); opacity:.9; min-width:58px; }
#actCard .benefit .body { flex:1; }
#actCard .benefit .txt { font-size:33px; font-weight:700; color:var(--act-ink); line-height:1.42; letter-spacing:.5px; }
#actCard .benefit .sub { margin-top:7px; font-size:22px; font-weight:400; color:var(--act-ink2); }
#actCard .steps { display:flex; gap:14px; margin-top:18px; }
#actCard .step { position:relative; flex:1; padding:26px 24px 24px; border-radius:20px;
          background:var(--act-surface); border:1px solid var(--act-line); box-shadow:var(--act-shadow); overflow:hidden; }
#actCard .step .ghost { position:absolute; right:14px; top:6px; font-family:ui-monospace,Consolas,monospace;
                 font-size:56px; font-weight:800; color:var(--act-accent); opacity:.12; }
#actCard .step .k { font-size:20px; letter-spacing:3px; font-weight:800; color:var(--act-accent); }
#actCard .step .v { margin-top:12px; font-size:22px; line-height:1.55; color:var(--act-ink); font-weight:500; }
#actCard .tips { margin-top:18px; padding:30px 32px 28px; border-radius:22px;
          background:var(--act-tip); border:1px dashed var(--act-line); }
#actCard .tips li { list-style:none; position:relative; padding-left:26px; font-size:21px; line-height:1.95;
             color:var(--act-ink2); font-weight:400; }
#actCard .tips li::before { content:''; position:absolute; left:8px; top:15px; width:6px; height:6px;
                     border-radius:50%; background:var(--act-accent); opacity:.6; }
#actCard .timebar { display:flex; align-items:center; gap:18px; margin-top:26px; padding:26px 30px;
             border-radius:22px; background:var(--act-soft); border:1px solid var(--act-line); }
#actCard .timebar .ic { width:44px; height:44px; border-radius:12px; background:var(--act-soft);
                 border:1px solid var(--act-line); display:flex; align-items:center; justify-content:center;
                 font-size:22px; color:var(--act-accent); font-weight:800; flex:none; }
#actCard .timebar .lb { font-size:19px; letter-spacing:4px; color:var(--act-accent); font-weight:700; }
#actCard .timebar .vv { font-size:25px; color:var(--act-ink); font-weight:700; margin-top:6px; letter-spacing:.5px; }
#actCard .grant { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-top:16px;
           padding:28px 30px; border-radius:22px; background:var(--act-surface);
           border:1px solid var(--act-line); box-shadow:var(--act-shadow); }
#actCard .grant .left { display:flex; align-items:center; gap:22px; flex:1; min-width:0; }
#actCard .grant .num { font-family:ui-monospace,Consolas,monospace; font-size:29px; font-weight:800; color:var(--act-accent); opacity:.9; min-width:54px; }
#actCard .grant .txt { font-size:31px; font-weight:700; color:var(--act-ink); line-height:1.42; }
#actCard .badge { flex:none; padding:11px 22px; border-radius:999px; font-size:21px; font-weight:800; letter-spacing:1px; white-space:nowrap; }
#actCard .badge.logi { color:var(--act-badge-logi); background:var(--act-badge-logi-bg); border:1px solid var(--act-badge-logi); }
#actCard .badge.mail { color:var(--act-badge-mail); background:var(--act-badge-mail-bg); border:1px solid var(--act-badge-mail); }
#actCard .empty { margin-top:16px; padding:44px 30px; border-radius:22px; text-align:center;
           background:var(--surface-2); border:1px dashed var(--act-line); }
#actCard .empty .t { font-size:26px; font-weight:700; color:var(--act-ink2); }
#actCard .empty .d { margin-top:10px; font-size:20px; color:var(--act-ink2); opacity:.75; }
#actCard .samples { display:flex; gap:18px; margin-top:44px; align-items:flex-start; }
#actCard .sample { flex:1; display:flex; flex-direction:column; gap:15px; }
#actCard .sample .cap { text-align:center; }
#actCard .sample .cap .l1 { font-size:23px; font-weight:700; color:var(--act-ink); letter-spacing:.5px; }
#actCard .sample .cap .l1 em { font-style:normal; font-weight:800; color:var(--act-accent); }
#actCard .sample .cap .l2 { margin-top:6px; font-size:19px; color:var(--act-ink2); letter-spacing:.5px; }
#actCard .sample .frame { height:300px; border-radius:18px; overflow:hidden; background:#fff;
                   border:1px solid var(--act-line); box-shadow:var(--act-shadow);
                   display:flex; align-items:center; justify-content:center; }
#actCard .sample .frame img { display:block; max-width:100%; max-height:100%; width:auto; height:auto; }
#actCard .samples .ph { flex:1; aspect-ratio:4/3; border-radius:18px; border:1px dashed var(--act-line);
                 background:var(--surface-2); display:flex; flex-direction:column; align-items:center;
                 justify-content:center; gap:10px; }
#actCard .samples .ph .n { font-family:ui-monospace,Consolas,monospace; font-size:30px; font-weight:800; color:var(--act-accent); opacity:.35; }
#actCard .samples .ph .c { font-size:19px; color:var(--act-ink2); opacity:.7; letter-spacing:1px; }
#actCard .sign { margin-top:38px; padding-top:22px; border-top:1px solid var(--act-line);
          display:flex; justify-content:space-between; align-items:center; }
#actCard .sign .l { font-size:19px; letter-spacing:3px; color:var(--act-ink2); opacity:.8; }
#actCard .sign .r { font-size:18px; color:var(--act-ink2); opacity:.55; letter-spacing:1px; }

/* ================= 活动图高级排版 ================= */
.ae-overlay{position:fixed;inset:0;z-index:9500;background:#EEF1F5;display:flex;flex-direction:column}
.ae-overlay.hidden{display:none}
.ae-bar{display:flex;align-items:center;gap:8px;padding:8px 12px;background:var(--ui-bar);border-bottom:1px solid #0a0c10;
  flex-wrap:wrap;box-shadow:0 1px 0 rgba(255,255,255,.04) inset;z-index:2}
.ae-spacer{flex:1}
.ae-done{height:var(--ui-h);padding:0 16px;border-radius:var(--ui-radius);background:#7c3aed;color:#fff;
  font-size:12px;font-weight:800;border:0;cursor:pointer;font-family:inherit}
.ae-done:hover{background:#6d28d9}
.ae-zoomlabel{font-size:11px;font-weight:800;color:var(--ui-bar-muted);min-width:40px;text-align:center}
.ae-theme-btn{display:flex;align-items:center;gap:7px;height:var(--ui-h);padding:0 9px;border:1px solid var(--ui-bar-line);
  border-radius:var(--ui-radius);background:var(--ui-bar-soft);font-size:12px;font-weight:700;color:var(--ui-bar-text);
  cursor:pointer;font-family:inherit}
.ae-theme-btn:hover{background:rgba(255,255,255,.12)}
.ae-theme-btn i{width:14px;height:14px;border-radius:4px;display:block;border:1px solid rgba(0,0,0,.08)}
.ae-color{width:28px;height:var(--ui-h);padding:0;border:1px solid var(--ui-bar-line);border-radius:var(--ui-radius);background:var(--ui-bar-soft);cursor:pointer}
.ae-stage{flex:1;overflow:auto;display:flex;justify-content:center;align-items:flex-start;padding:36px 20px 72px}
.ae-zoom{flex:0 0 auto}
.ae-tip{position:fixed;bottom:14px;left:50%;transform:translateX(-50%);opacity:.75;font-size:11.5px;color:#94a3b8;
  background:rgba(255,255,255,.9);padding:5px 14px;border-radius:999px;border:1px solid #e5e7eb;pointer-events:none}

#actCard .ae-item{position:relative;outline:1px dashed transparent;outline-offset:2px;transition:outline-color .12s}
#actCard .ae-item:hover{outline-color:rgba(124,58,237,.55)}
#actCard [contenteditable]{cursor:text}
#actCard [contenteditable]:focus{outline:2px solid #7c3aed;outline-offset:2px;border-radius:4px}

.ae-float{position:fixed;display:none;gap:2px;padding:3px;background:#111827;border-radius:9px;z-index:9600;
  box-shadow:0 8px 20px rgba(0,0,0,.28)}
.ae-float button{width:30px;height:26px;border:0;border-radius:6px;background:transparent;color:#e5e7eb;
  font-size:13px;font-weight:800;cursor:pointer;font-family:inherit;line-height:1}
.ae-float button:hover{background:#374151;color:#fff}

.ae-theme-panel{position:absolute;top:52px;left:50%;transform:translateX(-50%);width:min(860px,94vw);max-height:60vh;
  overflow:auto;background:#fff;border:1px solid #e5e7eb;border-radius:16px;box-shadow:0 24px 60px rgba(15,23,42,.18);
  padding:16px 18px 20px;z-index:9700}
.ae-theme-panel.hidden{display:none}
.ae-tp-head{font-size:13px;font-weight:800;color:#111827;margin-bottom:6px}
.ae-tp-group{font-size:10.5px;font-weight:800;letter-spacing:1.2px;color:#9ca3af;margin:14px 0 8px}
.ae-tp-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(112px,1fr));gap:8px}
.ae-tp-item{display:flex;flex-direction:column;align-items:center;gap:6px;padding:8px 6px;border:1px solid #eceff3;
  border-radius:11px;background:#fff;cursor:pointer;font-family:inherit}
.ae-tp-item:hover{border-color:#c4b5fd;background:#faf8ff}
.ae-tp-item.is-on{border-color:#7c3aed;box-shadow:0 0 0 2px rgba(124,58,237,.15)}
.ae-tp-sw{width:100%;height:30px;border-radius:7px;display:block;border:1px solid rgba(0,0,0,.05)}
.ae-tp-nm{font-size:11px;font-weight:700;color:#374151;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}

/* 背景光斑 */
#actCard .canvas{position:relative;overflow:hidden}
#actCard .canvas > *:not(.ae-glow){position:relative;z-index:1}
#actCard .ae-glow{position:absolute;border-radius:50%;filter:blur(70px);pointer-events:none;z-index:0}
#actCard .ae-glow-a{width:460px;height:460px;top:-140px;right:-120px;background:var(--act-accent);opacity:.28}
#actCard .ae-glow-b{width:360px;height:360px;bottom:-120px;left:-100px;background:var(--act-accent);opacity:.18}

/* 示例图选中态 */
#actCard .sample .frame img{cursor:pointer;transition:outline-color .12s}
#actCard .sample .frame img.ae-img-on{outline:3px solid #7c3aed;outline-offset:2px;border-radius:8px}

/* 光晕面板 */
.ae-halo-panel{position:absolute;top:52px;left:50%;transform:translateX(-50%);width:300px;background:#fff;
  border:1px solid #e5e7eb;border-radius:14px;box-shadow:0 20px 50px rgba(15,23,42,.18);padding:14px 16px 16px;z-index:9700}
.ae-halo-panel.hidden{display:none}
.ae-hp-title{font-size:12.5px;font-weight:800;color:#111827;margin-bottom:4px}
.ae-hp-tip{font-size:11px;color:#9ca3af;line-height:1.6;margin-bottom:10px}
.ae-hp-tip b{color:#6b7280}
.ae-hp-row{display:flex;align-items:center;gap:10px;margin-bottom:10px;font-size:11.5px;color:#4b5563;font-weight:700}
.ae-hp-row span{width:28px;flex:none}
.ae-hp-row input[type=range]{flex:1;accent-color:#7c3aed}
.ae-hp-row input[type=color]{width:34px;height:24px;padding:0;border:1px solid #e5e7eb;border-radius:6px;background:#fff}
.ae-hp-row b{width:26px;text-align:right;font-size:11px;color:#111827}
.ae-hp-actions{display:flex;gap:8px;margin-top:4px}
.ae-hp-actions button{flex:1;height:30px;border-radius:8px;border:1px solid #e5e7eb;background:#fff;font-size:11.5px;
  font-weight:800;color:#374151;cursor:pointer;font-family:inherit}
.ae-hp-actions button:first-child{background:#7c3aed;border-color:#7c3aed;color:#fff}
.ae-hp-actions button:first-child:hover{background:#6d28d9}
