.hb2-toolbar{display:flex;align-items:center;gap:8px;margin-bottom:12px}.hb2-pages{display:flex;gap:8px}.hb2{display:grid;grid-template-columns:340px minmax(430px,1fr) 500px;gap:14px;height:calc(100vh - 150px);background:#f2f4f7}.hb2-palette,.hb2-properties{overflow:auto;background:#fff;border:1px solid #e1e6ee}.hb2-group{border-bottom:10px solid #f3f4f6}.hb2-group-title{width:100%;height:58px;display:flex;align-items:center;justify-content:space-between;padding:0 20px;border:0;background:#fff;font-size:17px}.hb2-group>div{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:0 20px 18px}.hb2-group>div>button{height:46px;display:flex;align-items:center;justify-content:flex-start;gap:11px;padding:0 18px;border:1px solid #e1e6ed;background:#fff}.hb2-group>div>button:hover{border-color:#6c5ce7;color:#6c5ce7}.hb2-group>div i{width:22px;text-align:center;font-size:18px;font-style:normal}.hb2-group.closed>div{display:none}.hb2-group.closed .hb2-group-title span{transform:rotate(180deg)}.hb2-stage{display:flex;min-width:0;flex-direction:column;align-items:center;justify-content:center;background:#e8ecf1;border:1px solid #d9e0e9}.hb2-stage>small{margin-top:16px;color:#7b8798}.hb2-phone{width:375px;height:700px;position:relative;overflow:hidden;border-radius:36px;background:#f5f6fa;box-shadow:0 0 0 8px #1e1e1e,0 0 0 10px #3a3a3a,0 20px 40px rgba(0,0,0,.25)}.hb2-status{height:30px;display:flex;align-items:center;justify-content:space-between;padding:0 20px;background:#fff;border-bottom:1px solid #eee;font-size:12px;font-weight:600}.hb2-scroll{height:670px;overflow-y:auto;padding-bottom:20px;background:#f5f6fa}.hb2-component{position:relative;margin:0 12px 8px;border:2px solid transparent;border-radius:12px;background:#fff;cursor:pointer;box-shadow:0 2px 8px rgba(0,0,0,.04)}.hb2-component.active{border-color:#6c5ce7;box-shadow:0 0 0 2px #e4e0ff}.hb2-component.hidden-component{opacity:.4}.hb2-component>aside{position:fixed;z-index:30;display:flex;flex-direction:column;margin-left:385px;margin-top:-4px;padding:5px;border:1px solid #e0e5ec;border-radius:22px;background:#fff;box-shadow:0 5px 14px rgba(30,41,59,.15)}.hb2-component>aside button{width:30px;height:30px;padding:0;border:0;background:#fff;color:#7f8a99;font-size:17px}.hb2-search{display:flex;align-items:center;padding:8px 12px;border-radius:12px}.hb2-search span{height:38px;flex:1;padding:11px 18px;border-radius:19px;background:#f5f6fa;color:#2d3436}.hb2-search b{height:38px;margin-left:8px;padding:10px 20px;border-radius:19px;background:#6c5ce7;color:#fff;font-weight:500}.hb2-banner{height:150px;position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden;border-radius:10px;background:linear-gradient(120deg,#a29bfe,#6c5ce7);color:#fff;font-size:20px;box-shadow:0 4px 12px rgba(108,92,231,.2)}.hb2-banner img{width:100%;height:100%;object-fit:cover}.hb2-banner>b{position:absolute}.hb2-banner>i{position:absolute;bottom:6px;font-size:10px;font-style:normal}.hb2-nav{display:grid;grid-template-columns:repeat(4,1fr);padding:16px 8px 0;border-radius:14px}.hb2-nav span{display:flex;flex-direction:column;align-items:center;gap:8px;margin-bottom:16px;font-size:12px}.hb2-nav i{width:56px;height:56px;display:grid;place-items:center;overflow:hidden;border-radius:18px;background:#ffeaa7;font-size:26px;font-style:normal;box-shadow:0 4px 10px rgba(0,0,0,.06)}.hb2-nav img{width:100%;height:100%;object-fit:cover}.hb2-nav span:nth-child(2) i{background:#dfe6e9}.hb2-nav span:nth-child(3) i{background:#fab1a0}.hb2-nav span:nth-child(4) i{background:#81ecec}.hb2-nav span:nth-child(5) i{background:#a29bfe}.hb2-nav span:nth-child(6) i{background:#fd79a8}.hb2-nav span:nth-child(7) i{background:#fdcb6e}.hb2-nav span:nth-child(8) i{background:#55efc4}.hb2-nav b{font-weight:500}.hb2-notice{display:flex;align-items:center;gap:8px;padding:10px 14px;border-radius:10px;background:#fff9e6;color:#e17055}.hb2-title{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-radius:12px}.hb2-title b{font-size:16px}.hb2-title span{color:#636e72;font-size:13px}.hb2-products{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:8px 0}.hb2-products span{display:flex;overflow:hidden;flex-direction:column;border-radius:12px;background:#fff;box-shadow:0 2px 8px rgba(0,0,0,.04)}.hb2-products i{height:110px;display:grid;place-items:center;background:#dfe6e9;font-size:32px;font-style:normal}.hb2-products b,.hb2-products em{padding:7px 12px 0}.hb2-products em{padding-bottom:10px;color:#e17055;font-style:normal}.hb2-media{min-height:120px;display:grid;place-items:center;overflow:hidden;border-radius:10px;background:#dfe6e9;color:#636e72}.hb2-media img{width:100%;height:auto}.hb2-generic{padding:18px;display:flex;justify-content:space-between}.hb2-properties{background:#f4f5f7}.hb2-editor-title{height:88px;display:flex;align-items:center;gap:12px;padding:0 28px;background:#fff;border-bottom:10px solid #f4f5f7;font-size:21px}.hb2-editor-title i{width:6px;height:30px;background:#6c5ce7}.hb2-properties nav{height:58px;display:grid;grid-template-columns:repeat(3,1fr);background:#fff;border-bottom:1px solid #dce2ea}.hb2-properties nav button{border:0;background:#fff}.hb2-properties nav button.active{color:#6c5ce7;border-bottom:2px solid #6c5ce7}.hb2-properties>div>section{min-height:calc(100% - 146px);padding:28px 38px;background:#fff}.hb2-properties label{min-height:54px;display:grid;grid-template-columns:110px 1fr;align-items:center;color:#728096}.hb2-properties input,.hb2-properties select,.hb2-properties textarea{width:100%;min-width:0}.hb2-properties textarea{height:80px}.hb2-properties section>button{margin:12px 0}.hb2-properties small{display:block;color:#8c98a8}.hb2-check{display:flex!important;gap:8px}.hb2-check input{width:auto}.hb2-nav-editor article{display:grid;grid-template-columns:68px 1fr 1.3fr 26px;gap:7px;margin-bottom:8px;padding:8px;border:1px solid #dce3ec}.hb2-nav-editor article>button:first-child{height:58px;padding:0;font-size:24px}.hb2-nav-editor img{width:100%;height:100%;object-fit:cover}.hb2-nav-editor input,.hb2-nav-editor select{height:34px}.hb2-nav-editor article>button:last-child{height:26px;padding:0;border:0;border-radius:50%;background:#aeb7c4;color:#fff}@media(max-width:1350px){.hb2{grid-template-columns:280px minmax(400px,1fr) 430px}.hb2-group>div{padding:0 12px 16px;gap:8px}}
.hb2-component{margin:0;border-radius:0;background:transparent;box-shadow:none}.hb2-component.active{box-shadow:none}.hb2-search{margin:12px 12px 8px}.hb2-nav{margin:8px 12px 12px}.hb2-notice{margin:8px 12px}.hb2-title{margin:8px 12px}.hb2-products{margin:0}.hb2-title b small{display:block;margin-top:3px;color:#8b95a3;font-size:11px;font-weight:400}.hb2-products.large{grid-template-columns:1fr}.hb2-products.list{grid-template-columns:1fr}.hb2-products.list span{display:grid;grid-template-columns:92px 1fr}.hb2-products.list i{height:82px;grid-row:1/3}.hb2-range{display:grid;grid-template-columns:1fr 62px;gap:8px;align-items:center}.hb2-range output{height:34px;padding:7px 5px;border:1px solid #dce2ea;background:#fff;text-align:center;color:#586579}.hb2-card-list article,.hb2-notice-editor article{display:grid;grid-template-columns:100px 1fr 28px;gap:8px;margin-bottom:10px;padding:9px;border:1px solid #dce3ec}.hb2-card-list article>button:first-child{height:62px;padding:0;overflow:hidden}.hb2-card-list img{width:100%;height:100%;object-fit:cover}.hb2-card-list article>button:last-child,.hb2-notice-editor article>button{height:28px;padding:0;border:0;border-radius:50%;background:#aeb7c4;color:#fff}.hb2-notice-editor article{grid-template-columns:1fr 1fr 28px}.hb2-nav-editor article{grid-template-columns:68px 1fr 26px}.hb2-nav-editor article>div{display:grid;grid-template-columns:74px 1fr;gap:6px}.hb2-nav-editor article>div select{grid-column:1/3}.hb2-hint{color:#7d8998}
.hb2-color{display:flex;align-items:center;gap:8px}.hb2-color input[type=color]{width:34px;height:34px;flex:0 0 34px;padding:4px;border:1px solid #d8dee8;border-radius:4px;background:#fff}.hb2-color input[type=color]::-webkit-color-swatch-wrapper{padding:0}.hb2-color input[type=color]::-webkit-color-swatch{border:0;border-radius:2px}.hb2-color input[type=text]{width:100px;flex:0 0 100px;height:34px;text-transform:uppercase}
.hb2-nav-editor article>div{display:grid!important;grid-template-columns:1fr!important;gap:6px}.hb2-nav-editor article>div select{grid-column:auto!important}.hb2-nav-editor article>button:first-child{display:flex;flex-direction:column;align-items:center;justify-content:center}.hb2-nav-editor article>button:first-child b{font-size:24px}.hb2-nav-editor article>button:first-child small{font-size:11px;color:#8793a4}.hb2-fixed-size{margin:8px 0 12px;color:#6b7788!important}
.hb2-link-field{width:100%;min-height:34px;padding:6px 12px;border:1px solid #d8e0eb;background:#edf5ff;color:#607086;text-align:left}.hb2-link-field:hover{border-color:#409eff;color:#409eff}.hb2-link-modal{width:min(970px,calc(100vw - 70px))!important;height:min(720px,calc(100vh - 70px))!important;max-width:none!important}.hb2-link-picker{height:100%;display:flex;flex-direction:column}.hb2-link-picker>nav{display:flex;gap:28px;height:58px;padding:0 20px;border-bottom:1px solid #dce3ec}.hb2-link-picker>nav button{border:0;border-bottom:2px solid transparent;background:#fff}.hb2-link-picker>nav button.active{border-color:#409eff;color:#409eff}.hb2-link-body{min-height:0;flex:1;display:grid;grid-template-columns:140px 1fr}.hb2-link-body>aside{padding:14px 12px;border-right:1px solid #e2e7ef}.hb2-link-body>aside button{width:100%;height:38px;padding:0 10px;border:0;background:#fff;text-align:left}.hb2-link-body>aside button.active{background:#eaf3ff;color:#409eff}.hb2-link-body>main{overflow:auto;padding:20px}.hb2-link-search input{width:360px}.hb2-link-grid{display:grid;grid-template-columns:repeat(5,minmax(100px,1fr));gap:10px;margin-top:20px}.hb2-link-grid button{height:42px;border:1px solid #d7dee9;background:#fff}.hb2-link-grid button.active{border-color:#409eff;background:#edf6ff;color:#409eff}.hb2-link-fields{width:520px;padding:24px}.hb2-link-fields label{display:grid;grid-template-columns:110px 1fr;align-items:center;margin-bottom:16px}.hb2-link-fields input{height:38px}.hb2-link-fields small{display:block;margin-left:110px;color:#8a96a7}.hb2-link-picker>footer{height:64px;display:flex;align-items:center;gap:10px;padding:0 20px;border-top:1px solid #e1e6ee}
.hb2-link-modal{overflow:hidden!important}.hb2-link-modal #modal-body{height:calc(100% - 52px);min-height:0;padding:0!important;overflow:hidden}.hb2-link-picker>nav{flex:0 0 58px!important;min-height:58px;overflow:hidden!important;align-items:stretch}.hb2-link-picker>nav button{flex:0 0 auto}.hb2-link-body{overflow:hidden}.hb2-link-body>aside{min-height:0;overflow:auto}.hb2-link-picker>footer{flex:0 0 64px}
.hb2-link-modal{width:min(760px,calc(100vw - 40px))!important;height:min(560px,calc(100vh - 40px))!important}.hb2-link-body{grid-template-columns:126px 1fr}.hb2-link-body>aside{padding:12px 10px}.hb2-link-body>aside button{height:36px}.hb2-link-body>main{padding:18px}.hb2-link-search input{width:100%;max-width:360px}.hb2-link-grid{grid-template-columns:repeat(3,minmax(120px,1fr));gap:8px;margin-top:14px}.hb2-link-grid button{height:auto;min-height:40px;padding:7px 10px}.hb2-link-grid button b,.hb2-link-grid button small{display:block;overflow:hidden;text-overflow:ellipsis}.hb2-link-grid button small{margin-top:3px;color:#8a96a7;font-size:11px}.hb2-link-section{margin-top:16px}.hb2-link-section h3{margin:0 0 4px;font-size:14px}.hb2-link-section p{margin:0;color:#8a96a7;font-size:12px}.hb2-category-grid button,.hb2-product-grid button{text-align:left}.hb2-link-fields{width:auto;max-width:500px;padding:18px}.hb2-link-fields label{grid-template-columns:90px 1fr;margin-bottom:14px}.hb2-link-fields small{margin-left:90px}.hb2-link-picker>footer{height:58px;flex-basis:58px;padding:0 16px}
.hb2-category-cascade{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));height:190px;margin-top:12px;border:1px solid #d8e0eb}.hb2-category-cascade>div{display:flex;min-width:0;flex-direction:column;border-right:1px solid #d8e0eb}.hb2-category-cascade>div:last-child{border-right:0}.hb2-category-cascade h4{height:40px;margin:0;padding:11px 13px;background:#f3f6fa;font-size:13px}.hb2-category-cascade section{min-height:0;flex:1;overflow:auto}.hb2-category-cascade button{width:100%;min-height:36px;padding:7px 12px;border:0;border-bottom:1px solid #edf0f4;background:#fff;text-align:left}.hb2-category-cascade button:hover,.hb2-category-cascade button.active{background:#eaf3ff;color:#2878e8}.hb2-category-cascade section>p{padding:28px 10px;text-align:center}
.hb2-link-field{min-width:0!important;height:34px!important;min-height:34px!important;padding:6px 8px!important;overflow:hidden;font-size:11px;line-height:20px;text-overflow:ellipsis;white-space:nowrap}.hb2-nav-editor article>button:first-child{align-self:center}.hb2-nav-editor article>button:first-child img{display:block;object-fit:contain}.hb2-nav-editor .hb2-nav-size{color:#65758a;font-size:12px!important;line-height:16px;white-space:nowrap}
.hb2{grid-template-columns:340px minmax(430px,1fr) 560px}.hb2-properties{min-width:0}.hb2-nav-editor article>div{min-width:0}@media(max-width:1450px){.hb2{grid-template-columns:290px minmax(400px,1fr) 500px}}
.hb2-notice-text{display:block!important}.hb2-notice-text>span{display:block;margin-bottom:8px}.hb2-notice-text textarea{height:132px!important;resize:vertical;line-height:1.7}
.hb2-page-list{margin-top:10px;border-top:10px solid #f3f4f6}.hb2-page-list>header{display:flex;align-items:center;justify-content:space-between;padding:16px 14px}.hb2-page-list>header button{height:32px;padding:0 9px;color:#2563eb}.hb2-page-list>div{padding:0 10px 14px}.hb2-page-list article{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 8px;border-bottom:1px solid #e8edf4}.hb2-page-list article.active{background:#eef5ff}.hb2-page-list article>span{min-width:0}.hb2-page-list article>span>b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hb2-page-list article>span>small{color:#2563eb}.hb2-page-list article nav{display:flex;flex:none;gap:3px}.hb2-page-list article nav button{width:27px;height:27px;padding:5px;border:0;background:transparent;color:#526175}.hb2-page-list article nav button:hover{background:#dceaff;color:#2563eb}.hb2-page-list article nav button:disabled{color:#aab4c2}.hb2-page-list svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.hb2-page-setting-form{min-width:560px}.hb2-page-setting-form>label{display:grid;grid-template-columns:90px 1fr;align-items:start;margin-bottom:16px}.hb2-page-setting-form>label small{grid-column:2}.hb2-page-share-image{width:210px;height:168px;overflow:hidden}.hb2-page-share-image img{width:100%;height:100%;object-fit:contain}.hb2-page-address{display:flex;gap:18px;padding:16px;border:1px solid #e0e6ef;background:#f7f9fc}.hb2-page-address img{width:130px;height:130px}.hb2-page-address [data-share-code]{display:flex;flex:none;align-items:center;justify-content:center;width:130px;height:130px;font-size:12px;color:#64748b}.hb2-page-address label{display:flex;flex-wrap:wrap;align-items:center;gap:6px}.hb2-page-address label b{width:100%}.hb2-page-address select{flex:1;min-width:0;height:34px}.hb2-page-address label button{height:34px;padding:0 8px}.hb2-page-address span{display:flex;min-width:0;flex:1;flex-direction:column;gap:10px}.hb2-page-setting-form footer{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}.hb2-page-levels{display:grid;grid-template-columns:1fr 1fr;gap:8px}.hb2-page-levels label{display:flex;align-items:center;gap:8px;padding:10px;border:1px solid #e0e6ef}.hb2-page-levels input{width:auto}
.hb2-page-list article[data-page-select]{cursor:pointer}.hb2-page-list article[data-page-select]:hover{background:#f6f9fd}.hb2-page-list article[data-page-select].active{background:#eef5ff}
.hb2-workspace {
  --hb2-accent: #2563eb;
  --hb2-line: #e2e8f0;
  --hb2-muted: #52637b;
  --hb2-panel: #f7f8fa;
  display: grid;
  grid-template-rows: auto minmax(0,1fr) auto;
  height: calc(100dvh - 110px);
  min-height: 505px;
  border: 1px solid var(--hb2-line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  color: #152238;
}
.hb2-workspace .hb2-toolbar,
.hb2-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 10px 16px;
  background: #fff;
}
.hb2-workspace .hb2-toolbar { margin: 0; border-bottom: 1px solid var(--hb2-line); }
.hb2-toolbar h2 { display: inline; margin: 0 12px 0 0; font-size: 17px; }
#hb2-state { font-size: 12px; color: var(--hb2-muted); }
.hb2-toolbar-actions, .hb2-footer>div, .hb2-field-actions, .hb2-entry-head>div {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hb2-toolbar-actions label { display: flex; align-items: center; gap: 8px; font-size: 13px; white-space: nowrap; }
.hb2-workspace .hb2 {
  grid-template-columns: clamp(220px, 19vw, 300px) minmax(0, 1fr) clamp(330px, 29vw, 500px);
  grid-template-rows: minmax(0, 1fr);
  height: auto;
  gap: 0;
  background: var(--hb2-panel);
}
.hb2-workspace .hb2-palette, .hb2-workspace .hb2-properties { min-height: 0; border: 0; }
.hb2-workspace .hb2-properties { overflow: hidden; background: #fff; }
.hb2-workspace .hb2-stage {
  min-height: 0;
  border: 0;
  border-inline: 1px solid var(--hb2-line);
  background: var(--hb2-panel);
  padding: 22px 66px 22px 22px;
}
.hb2-canvas { position: relative; width: 385px; height: 822px; flex-shrink: 0; }
.hb2-workspace .hb2-phone {
  position: absolute;
  inset: 0 auto auto 0;
  width: 385px;
  height: 822px;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border: 5px solid #1e2a3e;
  border-radius: 25px;
  box-shadow: 0 12px 32px #16243b1f;
  transform-origin: left top;
}
.hb2-workspace .hb2-status { flex: 0 0 44px; height: 44px; background: #2563eb; color: #fff; border: 0; }
#hb2-phone-header {
  position: relative;
  height: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  flex-shrink: 0;
  background: #2563eb;
  color: #fff;
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}
#hb2-phone-header strong { font-weight: 550; }
.hb2-wechat-capsule { position: absolute; right: 10px; display: grid; place-items: center; width: 76px; height: 28px; border: 1px solid #ffffff55; border-radius: 18px; font-size: 14px; background: #102d7e33; }
#hb2-mini-tabbar { position: absolute; z-index: 20; inset: auto 0 0; }
.hb2-shared-view { display: block; }
#hb2-phone-header img { max-height: 32px; max-width: 80%; object-fit: contain; }
.hb2-header-search { width: 100%; border-radius: 18px; padding: 6px 10px; background: #f1f5f9; }
.hb2-workspace .hb2-scroll { height: auto; flex: 1; min-height: 0; padding: 0 0 67px; background-size: cover; background-position: center top; }
.hb2-workspace .hb2-component { margin: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.hb2-workspace .hb2-component.active { outline: 2px solid var(--hb2-accent); outline-offset: -2px; }
.hb2-workspace .hb2-component.hidden-component { opacity: .44; }
.hb2-workspace .hb2-component:not(.active):hover { outline: 1px solid #91b5fc; outline-offset: -1px; }
.hb2-workspace .interactive .hb2-component:hover { outline: 0; }
.hb2-workspace svg { display: block; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.hb2-component-tools:not([hidden]) {
  position: absolute;
  z-index: 10;
  left: calc(100% + 12px);
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 40px;
  padding: 5px;
  border: 1px solid var(--hb2-line);
  border-radius: 21px;
  background: #fff;
  box-shadow: 0 4px 16px #1e2a3e0d;
}
.hb2-component-tools button {
  display: grid;
  place-items: center;
  width: 28px;
  min-width: 0;
  height: 30px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: #667085;
}
.hb2-component-tools button:hover:not(:disabled) { color: var(--hb2-accent); background: #eff5ff; }
.hb2-component-tools button[data-cmd="remove"]:hover { color: #dc2626; background: #fff1f2; }
.hb2-component-tools button:disabled, .hb2-entry-icon:disabled { opacity: .3; cursor: default; }
.hb2-workspace button:focus-visible { outline: 2px solid var(--hb2-accent); outline-offset: 2px; }
.hb2-empty-canvas, .hb2-preview-empty { padding: 20px 9px; text-align: center; font-size: 13px; color: var(--hb2-muted); }
.hb2-workspace .hb2-group { border-bottom: 8px solid var(--hb2-panel); }
.hb2-workspace .hb2-group-title { height: 56px; padding: 0 18px; font-size: 15px; }
.hb2-workspace .hb2-group-title svg { width: 16px; height: 16px; color: var(--hb2-muted); }
.hb2-workspace .hb2-group.closed .hb2-group-title svg { transform: rotate(180deg); }
.hb2-workspace .hb2-group>div { padding: 0 16px 18px; gap: 10px; }
.hb2-workspace .hb2-group>div>button { justify-content: flex-start; gap: 9px; padding: 0 12px; height: 46px; font-size: 13px; border-radius: 4px; color: #28364d; }
.hb2-workspace .hb2-group>div>button svg { width: 18px; height: 18px; }
.hb2-workspace .hb2-group>div>button span { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hb2-workspace .hb2-group>div>button:hover { border-color: var(--hb2-accent); color: var(--hb2-accent); }
#hb2-theme { display: block; width: calc(100% - 32px); margin: 14px 16px; }
.hb2-workspace .hb2-page-list { margin-top: 0; border: 0; }
.hb2-workspace .hb2-page-list>header { padding: 10px; }
.hb2-workspace .hb2-page-list>div { max-height: 200px; overflow: auto; padding: 0 7px 5px; }
.hb2-workspace .hb2-page-list article { cursor: default; padding: 7px 5px; }
.hb2-workspace .hb2-page-list article nav button { width: 22px; height: 26px; padding: 3px; }
#hb2-editor { display: flex; flex-direction: column; height: 100%; min-height: 0; }
#hb2-editor .hb2-editor-title { height: 82px; flex: none; padding: 0 26px; border: 0; border-bottom: 10px solid var(--hb2-panel); font-size: 19px; color: #243248; }
#hb2-editor .hb2-editor-title b { font-weight: 550; }
#hb2-editor .hb2-editor-title::before { content: ""; width: 4px; height: 24px; border-radius: 2px; background: #409eff; }
#hb2-editor>nav { display: flex; height: 52px; flex: none; margin: 0; padding: 0 14px; background: #fff; border-bottom: 1px solid var(--hb2-line); }
#hb2-editor nav button { flex: 1; min-width: 0; padding: 6px 8px; font-size: 13px; color: #475770; }
#hb2-editor nav button:hover { color: var(--hb2-accent); background: #f8faff; }
#hb2-editor nav .active { color: var(--hb2-accent); border-color: var(--hb2-accent); }
#hb2-editor>section { display: flex; flex: 1; min-height: 0; flex-direction: column; gap: 18px; overflow: auto; padding: 24px 22px; }
#hb2-editor>section>* { flex-shrink: 0; }
#hb2-editor label { min-height: 0; font-size: 13px; color: #667085; }
#hb2-editor .hb2-field { display: grid; grid-template-columns: 102px minmax(0, 1fr); gap: 12px; align-items: center; margin: 0; font-size: 13px; }
#hb2-editor :is(input:not([type="checkbox"]):not([type="color"]), select) { min-height: 34px; height: 34px; padding: 5px 9px; }
.hb2-field>input, .hb2-field>select, .hb2-field>button { width: 100%; min-width: 0; }
.hb2-stacked { display: flex !important; flex-direction: column; gap: 6px; }
#hb2-editor .hb2-spacing-panel { gap: 28px; padding: 26px; }
.hb2-spacing-group { display: grid; gap: 18px; min-width: 0; margin: 0; padding: 0; border: 0; }
.hb2-spacing-group legend { width: 100%; margin-bottom: 20px; padding: 0; color: #344054; font-size: 13px; font-weight: 550; line-height: 20px; }
.hb2-spacing-group+.hb2-spacing-group { padding-top: 24px; border-top: 1px solid #f0f2f6; }
.hb2-spacing-field { display: grid; grid-template-columns: 74px minmax(0,1fr); align-items: center; gap: 12px; }
#hb2-editor .hb2-spacing-field>label { margin: 0; color: #8a94a4; font-size: 12px; line-height: 20px; }
.hb2-slider-control { display: grid; grid-template-columns: 72px minmax(50px,1fr); align-items: center; gap: 16px; min-width: 0; }
.hb2-number-unit { display: flex; align-items: center; overflow: hidden; height: 32px; border: 1px solid #dce2eb; border-radius: 5px; background: #fff; }
.hb2-number-unit:focus-within { border-color: #409eff; box-shadow: 0 0 0 2px #409eff12; }
#hb2-editor .hb2-number-unit input[type="number"] { min-width: 0; width: 44px; height: 30px; min-height: 0; padding: 4px 5px; border: 0; border-radius: 0; outline: 0; box-shadow: none; text-align: center; font-size: 12px; color: #52637b; appearance: textfield; }
.hb2-number-unit input::-webkit-inner-spin-button, .hb2-number-unit input::-webkit-outer-spin-button { margin: 0; appearance: none; }
.hb2-number-unit>span { display: grid; place-items: center; align-self: stretch; flex: 1; border-left: 1px solid #e4e8ef; background: #f8f9fc; color: #98a2b3; font-size: 12px; }
#hb2-editor .hb2-slider-control input[type="range"] { width: 100%; min-width: 0; height: 6px; min-height: 0; padding: 0; margin: 0; border: 0; border-radius: 6px; outline: 0; appearance: none; background: linear-gradient(to right, #409eff var(--hb2-range-fill,0%), #e4e7ed var(--hb2-range-fill,0%)); cursor: pointer; }
.hb2-slider-control input[type="range"]::-webkit-slider-thumb { width: 15px; height: 15px; border: 2px solid #409eff; border-radius: 50%; appearance: none; background: #fff; box-shadow: 0 1px 3px #34405412; }
.hb2-slider-control input[type="range"]::-moz-range-thumb { width: 12px; height: 12px; border: 2px solid #409eff; border-radius: 50%; background: #fff; }
.hb2-slider-control input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px #409eff26; }
.hb2-entry-list { display: grid; gap: 14px; min-width: 0; }
.hb2-entry-list article { display: grid; gap: 12px; border: 1px solid var(--hb2-line); border-radius: 5px; padding: 12px; background: #fff; }
.hb2-entry-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--hb2-muted); }
.hb2-entry-head button, .hb2-field-actions button { min-width: 0; padding: 5px 7px; font-size: 12px; }
.hb2-entry-body { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.hb2-entry-picture { width: 76px; flex: none; }
.hb2-entry-fields { flex: 1; display: grid; min-width: 0; gap: 12px; }
.hb2-entry-list article label:not(.hb2-check) { display: flex; flex-direction: column; align-items: stretch; gap: 6px; margin: 0; }
.hb2-entry-head .hb2-entry-icon { width: 24px; height: 24px; padding: 3px; min-width: 0; min-height: 0; display: grid; place-items: center; border: 0; background: none; border-radius: 4px; color: #98a2b3; }
.hb2-entry-head .hb2-entry-icon svg { width: 17px; height: 17px; }
.hb2-entry-icon:hover:not(:disabled) { color: var(--hb2-accent); background: #eff5ff; }
.hb2-entry-list .hb2-entry-media { position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 3px; width: 76px; height: 76px; padding: 0; overflow: hidden; border: 1px dashed #cfd7e3; border-radius: 3px; background: var(--hb2-panel); color: #98a2b3; }
.hb2-entry-media img { display: block; width: 100%; height: 100%; object-fit: contain; background: #fff; }
.hb2-entry-media>span:not(.hb2-picture-plus) { position: absolute; inset: auto 0 0; background: #17223b9e; color: #fff; font-size: 11px; line-height: 22px; }
.hb2-entry-media .hb2-picture-plus { font-size: 28px; line-height: 28px; }
.hb2-entry-list .hb2-picture-clear { display: block; width: 100%; margin-top: 5px; padding: 0; border: 0; background: transparent; font-size: 11px; color: var(--hb2-muted); }
.hb2-entry-list input, .hb2-entry-list textarea { min-width: 0; }
.hb2-add-entry { justify-self: stretch; min-height: 38px; border-style: dashed; color: var(--hb2-accent); }
.hb2-footer { border-top: 1px solid var(--hb2-line); }
.hb2-new-page, .hb2-preview-form, .hb2-publish-review, .hb2-choice-form { display: grid; gap: 14px; min-width: min(420px, 72vw); }
.hb2-new-page label { display: grid; grid-template-columns: 90px minmax(0,1fr); align-items: center; gap: 8px; }
.hb2-new-page footer, .hb2-publish-review footer, .hb2-choice-form footer { display: flex; justify-content: flex-end; gap: 8px; }
.hb2-choice-list, .hb2-history { max-height: 60vh; overflow: auto; }
.hb2-choice-list label { display: block; padding: 8px; }
.hb2-publish-review ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.hb2-publish-review li { display: flex; gap: 9px; }
.hb2-error { color: #b42318; }
.hb2-qr-result { display: grid; justify-items: center; gap: 8px; font-size: 13px; }
.hb2-qr-result img { width: 185px; max-width: 100%; }
.hb2-view { box-sizing: border-box; overflow: hidden; }
.hb2-preview-grid { display: grid; min-width: 0; }
.hb2-preview-link { min-width: 0; width: 100%; border: 0; background: none; border-radius: 0; padding: 0; text-align: inherit; color: inherit; }
.hb2-preview-tile, .hb2-preview-product { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--icon-gap, 5px); overflow: hidden; position: relative; }
.hb2-preview-tile.presses:active { transform: scale(.98); }
.hb2-preview-tile i { font-style: normal; font-size: 21px; }
.hb2-preview-tile .hb2-icon-image { width: var(--icon-size,40px); height: var(--icon-size,40px); object-fit: contain; }
.hb2-cover, .hb2-preview-slide img { display: block; width: 100%; height: 100%; object-fit: var(--image-fit, cover); }
.hb2-preview-slide { width: 100%; overflow: hidden; }
.hb2-view-carousel { position: relative; }
.hb2-preview-step { position: absolute; top: 50%; transform: translateY(-50%); z-index: 1; border: 0; border-radius: 50%; width: 27px; height: 27px; padding: 0; color: #fff; background: #23344b9c; }
.hb2-preview-step.previous { left: 6px; }
.hb2-preview-step.next { right: 6px; }
.hb2-view-printers .hb2-cover { position: absolute; inset: 0; opacity: .75; }
.hb2-view-printers strong, .hb2-view-printers small { z-index: 1; }
.hb2-view-printers strong { font-size: 26px; color: #15336b; }
.hb2-view-printers small { font-size: 12px; color: #273956; }
.hb2-preview-dots { display: block; background: #52637b; padding: 4px 9px; }
.hb2-preview-media-slot { width: 100%; min-height: 64px; display: grid; place-items: center; color: var(--hb2-muted); background: #eef2f8; }
.hb2-preview-search, .hb2-preview-heading { display: flex; align-items: center; gap: 8px; }
.hb2-preview-search>span { flex: 1; padding: 8px; border-radius: 16px; }
.hb2-preview-search button, .hb2-preview-heading button { width: auto; padding: 5px 8px; }
.hb2-preview-heading small, .hb2-preview-row small, .hb2-preview-service small { display: block; opacity: .75; }
.hb2-preview-heading.decoration-line { border-left: 3px solid var(--component-theme); padding-left: 8px; }
.hb2-preview-title { margin-bottom: 9px; font-weight: 650; font-size: 16px; }
.hb2-preview-notice { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb2-preview-row { display: flex; align-items: center; gap: 8px; min-height: 38px; padding: 3px 0; }
.hb2-list-image { width: 58px; height: 40px; object-fit: cover; border-radius: 5px; }
.hb2-preview-product { align-items: stretch; text-align: left; padding-bottom: 6px; }
.hb2-preview-product.is-list { flex-direction: row; align-items: center; justify-content: flex-start; padding: 0; }
.hb2-preview-product.is-list :is(.hb2-product-image, .hb2-preview-media-slot) { width: 30%; min-width: 36px; flex-shrink: 0; }
.hb2-product-copy { display: flex; flex-direction: column; min-width: 0; }
.hb2-floating-preview { position: absolute; inset: 0; pointer-events: none; z-index: 6; }
.hb2-floating { position: absolute; display: flex; flex-direction: column; align-items: stretch; gap: 5px; pointer-events: auto; }
.hb2-floating-top-right, .hb2-floating-top-left { top: 70px; }
.hb2-floating-bottom-right, .hb2-floating-bottom-left { bottom: 14px; }
.hb2-floating-top-right, .hb2-floating-bottom-right { right: 12px; }
.hb2-floating-top-left, .hb2-floating-bottom-left { left: 12px; }
.hb2-floating-items:not([hidden]) { display: flex; flex-direction: column; gap: 5px; }
.hb2-floating-items button, .hb2-floating-toggle { display: flex; align-items: center; justify-content: center; gap: 5px; border-radius: var(--quick-radius); padding: 6px 9px; min-height: 25px; background: var(--quick-bg); color: var(--quick-text); }
.hb2-floating-items img { width: 18px; height: 18px; object-fit: contain; }
.hb2-floating .hb2-floating-toggle { background: var(--quick-theme); color: white; }
.hb2-preview-product :is(strong, em, small) { padding-inline: 6px; overflow-wrap: anywhere; }
.hb2-preview-product em { font-style: normal; color: #ad2634; }
.hb2-product-image { width: 100%; aspect-ratio: var(--product-ratio, 1); object-fit: cover; }
.hb2-preview-rich { white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 1350px) {
  .hb2-workspace .hb2-group>div>button { gap: 6px; padding: 0 8px; font-size: 12px; }
}
@media (max-width: 1250px) {
  .hb2-workspace .hb2 { grid-template-columns: 205px minmax(0,1fr) 310px; }
  .hb2-workspace .hb2-group>div { padding-inline: 10px; gap: 7px; }
  .hb2-workspace .hb2-group>div>button { gap: 6px; padding: 0 8px; }
  #hb2-editor>section { padding: 20px 16px; }
  #hb2-editor .hb2-spacing-panel { padding: 22px 16px; }
  .hb2-spacing-field { grid-template-columns: 64px minmax(0,1fr); gap: 8px; }
  .hb2-slider-control { grid-template-columns: 68px minmax(40px,1fr); gap: 10px; }
  #hb2-editor .hb2-field { grid-template-columns: 92px minmax(0,1fr); }
  .hb2-entry-picture { width: 64px; }
  .hb2-entry-list .hb2-entry-media { width: 64px; height: 64px; }
}
@media (max-width: 920px) {
  .hb2-workspace .hb2 { grid-template-columns: 145px minmax(190px,1fr) 245px; }
  .hb2-workspace .hb2-group>div { grid-template-columns: 1fr; }
  .hb2-toolbar h2 { font-size: 14px; }
  .hb2-workspace .hb2-toolbar { flex-wrap: wrap; }
}
.hb2-pages-screen{min-height:calc(100vh - 112px);background:#f5f6f8;padding:24px;color:#172b46}.hb2-pages-screen>header{display:flex;justify-content:space-between;align-items:center;background:#fff;padding:24px 28px;border:1px solid #e7ebf0;border-radius:8px;margin-bottom:20px}.hb2-pages-screen h2{font-size:21px;font-weight:600;margin:0 0 6px}.hb2-pages-screen p{margin:0;color:#7b8798;font-size:13px}.hb2-pages-body{background:white;border:1px solid #e7ebf0;border-radius:8px;padding:24px 28px}.hb2-pages-search{display:flex;align-items:center;gap:14px;margin-bottom:24px;color:#64748b;font-size:13px}.hb2-pages-search input{width:300px;height:36px;border:1px solid #dce2ec;border-radius:4px;padding:0 12px}.hb2-pages-table{overflow:auto}.hb2-pages-table table{width:100%;border-collapse:collapse;white-space:nowrap}.hb2-pages-table th{color:#7b8798;font-weight:500;background:#fafbfc;text-align:left}.hb2-pages-table td,.hb2-pages-table th{line-height:20px;padding:4px 16px;border-bottom:1px solid #edf0f5}.hb2-pages-table td:first-child{font-variant-numeric:tabular-nums;color:#728096;width:100px}.hb2-page-name{border:0;background:transparent;color:#253b54;padding:0;cursor:pointer}.hb2-page-name:hover{color:#409eff}.hb2-home-badge{color:#169f66;background:#eaf8f1;padding:4px 9px;border-radius:4px;font-size:12px}.hb2-page-actions{display:flex;align-items:center;gap:8px;min-height:32px}.hb2-page-actions button{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;flex:0 0 32px;width:32px;min-width:32px;height:32px;padding:0;margin:0;line-height:1;border:0;border-radius:50%;background:#edf5ff;color:#409eff;cursor:pointer}.hb2-page-actions svg{display:block;flex:none;width:16px;height:16px;margin:0;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}.hb2-page-actions button:focus-visible{outline:2px solid #409eff;outline-offset:2px}.hb2-page-actions button:hover{background:#dbeaff}.hb2-page-actions button[data-page-action=delete]{color:#ec6973;background:#fff0f1}.hb2-page-actions button:disabled{opacity:.3;cursor:not-allowed}.hb2-pages-empty{text-align:center;padding:48px!important;color:#8190a3}.hb2-toolbar #hb2-back{border:0;background:none;color:#758398;padding:0 12px 0 0;cursor:pointer}.hb2-footer>span{font-size:12px;color:#8290a3}

/* The editor hosts the existing media library in a fixed first-frame dialog. */
.modal-card.hb2-media-modal{position:relative;display:flex;flex-direction:column;width:min(1180px,calc(100vw - 48px))!important;min-width:0;height:min(620px,calc(100dvh - 48px))!important;max-height:calc(100dvh - 48px);overflow:hidden!important}
.hb2-media-modal>.modal-head{flex:0 0 52px}
.hb2-media-modal>:is(#modal-body,.modal-body){display:flex;flex:1;min-height:0;padding:0;overflow:hidden}
.hb2-media-modal :is(#hb2-media-host,#hb2-page-media-host){display:flex;flex:1;min-width:0;min-height:0}
.hb2-media-modal :is(#hb2-media-host,#hb2-page-media-host)>.mall-media-library.inline{flex:1;min-width:0;min-height:0;height:100%}
.hb2-media-modal .mall-media-library-card{width:100%;height:100%;min-height:0;border:0;border-radius:0;box-shadow:none}
.hb2-media-modal .mall-media-library-body{height:100%;min-height:0}
.hb2-media-modal .mall-media-library-body>main{height:100%;min-height:0;overflow:hidden}
.hb2-media-modal .media-library-grid{min-height:0;overflow:auto}
.hb2-media-modal .mall-media-library-body main>footer{min-height:48px;flex-shrink:0}
.hb2-media-modal .media-library-tools{min-width:0;flex-wrap:wrap;gap:8px}
.hb2-media-modal .media-library-tools>[data-search]{flex:1 1 160px;min-width:140px}
.hb2-media-modal .media-library-tools>button{padding:8px 12px}
.hb2-media-modal .mall-media-library-body main>footer{min-width:0;flex-wrap:wrap;gap:8px}
.hb2-media-modal .mall-media-library-body main>footer>[data-count],.hb2-media-modal .mall-media-library-body main>footer>[data-total],.hb2-media-modal .media-pagination,.hb2-media-modal .media-page-jump,.hb2-media-modal [data-confirm]{flex:0 0 auto}
.hb2-media-modal .media-page-jump{width:auto;margin:0}
.hb2-media-modal .media-pagination{gap:4px}
.hb2-media-modal .media-pagination button{min-width:30px;padding:0 6px}
.hb2-media-modal .mall-media-library-body main>footer [data-confirm]{margin-left:0}
