* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #f4f5f7;
  color: #1d1d1f;
  -webkit-text-size-adjust: 100%;
  line-height: 1.5;
}

/* ===== 顶部 ===== */
.top {
  background: #fff;
  padding: 28px 20px 24px;
  border-bottom: 1px solid #eceef1;
  text-align: center;
}
.top h1 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: .3px; color: #1d1d1f; }
.top h1 .accent { color: #4f6ef2; }
.top .sub { margin: 8px 0 0; font-size: 13.5px; color: #8a8f98; }

/* ===== Tab 切换（胶囊） ===== */
.tabs { display: flex; gap: 8px; max-width: 1040px; margin: 20px auto 0; padding: 0 16px; }
.tab {
  flex: 0 0 auto;
  padding: 10px 24px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 999px;
  background: #e9ebef;
  color: #6b7280;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.tab:hover { background: #dfe2e8; }
.tab.active { background: #4f6ef2; color: #fff; }

/* ===== 两栏布局 ===== */
.layout { display: flex; gap: 20px; align-items: flex-start; max-width: 1040px; margin: 18px auto 0; padding: 0 16px; }
.col-form { flex: 1 1 auto; min-width: 0; }
.col-side { flex: 0 0 360px; position: sticky; top: 16px; }

@media (max-width: 860px) {
  .layout { flex-direction: column; }
  .col-side { position: static; flex-basis: auto; width: auto; }
}

/* ===== Panel（仅控制显隐，背景交给分组卡片） ===== */
.panel { display: none; }
.panel.active { display: block; }
.sep { border: none; border-top: 1px dashed #e6e8ec; margin: 18px 0 4px; }

/* ===== 字段 ===== */
.field { display: block; margin: 0 0 15px; }
.field > span { display: block; font-size: 13px; font-weight: 600; color: #4b5563; margin-bottom: 7px; }
.field input[type=text], .field input[type=url], .field select, .field textarea {
  width: 100%;
  padding: 11px 13px;
  font-size: 15px;
  color: #1d1d1f;
  border: 1.5px solid #e6e8ec;
  border-radius: 11px;
  background: #fbfbfc;
  font-family: inherit;
  transition: border-color .15s, background .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: #4f6ef2;
  background: #fff;
}
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='"'"'http://www.w3.org/2000/svg'"'"' width='"'"'12'"'"' height='"'"'8'"'"' viewBox='"'"'0 0 12 8'"'"'><path d='"'"'M1 1l5 5 5-5'"'"' fill='"'"'none'"'"' stroke='"'"'%23999'"'"' stroke-width='"'"'2'"'"' stroke-linecap='"'"'round'"'"'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.field textarea { resize: vertical; line-height: 1.55; }
.field input[type=color] { width: 58px; height: 40px; border: 1.5px solid #e6e8ec; border-radius: 10px; background: #fff; padding: 3px; cursor: pointer; }
.field input[type=checkbox] { width: 18px; height: 18px; margin: 0; accent-color: #4f6ef2; cursor: pointer; }
.field:has(input[type=checkbox]) { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.field:has(input[type=checkbox]) > span { margin-bottom: 0; }
.hint { display: block; margin-top: 6px; font-size: 12px; color: #a0a6b0; line-height: 1.5; }

/* ===== 分组卡片 ===== */
.form-group {
  background: #fff;
  border-radius: 16px;
  padding: 18px 18px 4px;
  margin-bottom: 16px;
  box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 6px 20px rgba(16,24,40,.03);
}
.form-group:last-child { margin-bottom: 0; }
.group-head { display: flex; align-items: center; gap: 9px; margin: 0 0 14px; }
.group-head .gi { font-size: 17px; line-height: 1; }
.group-head h3 { margin: 0; font-size: 15px; font-weight: 700; color: #1d1d1f; }
.group-head .go { margin-left: auto; font-size: 12px; color: #9ca3af; font-weight: 500; }
.grp-tip { font-size: 12.5px; color: #8a8f98; line-height: 1.6; margin: 0 0 14px; }

/* ===== 侧栏预览 ===== */
.preview {
  background: #fff;
  border-radius: 16px;
  padding: 18px 16px;
  box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 6px 20px rgba(16,24,40,.03);
  text-align: center;
}
.preview h2 { margin: 0 0 14px; font-size: 15px; font-weight: 700; color: #1d1d1f; text-align: left; }

.card-prev { background: #f7f8fa; border: 1px solid #eef0f3; border-radius: 12px; padding: 14px; margin-bottom: 16px; }
.card-prev-label { font-size: 12px; color: #9ca3af; margin-bottom: 8px; text-align: left; }
.jc-preview { border-radius: 10px; overflow: hidden; }
.jc-prev-empty { color: #bbb; font-size: 13px; text-align: center; padding: 30px 10px; line-height: 1.8; }
.jc-prev-empty span { font-size: 12px; }

.qr-wrap { background: #f7f8fa; border-radius: 12px; padding: 12px; display: flex; justify-content: center; margin-bottom: 12px; }
.qr-wrap canvas { max-width: 100%; height: auto; border-radius: 8px; }

.url-box { display: flex; gap: 8px; align-items: center; margin: 0 0 12px; background: #f7f8fa; border-radius: 10px; padding: 10px 12px; }
.url-box code { flex: 1; font-size: 12px; color: #6b7280; word-break: break-all; text-align: left; }
.mini { flex: 0 0 auto; border: 1.5px solid #e6e8ec; background: #fff; color: #4f6ef2; border-radius: 9px; padding: 7px 13px; font-size: 13px; font-weight: 600; cursor: pointer; }
.mini:active { background: #f0f2f8; }

/* 操作按钮（网格） */
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 4px; }
.actions button, .actions a {
  border: none;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
}
.actions .primary { background: #4f6ef2; color: #fff; grid-column: 1 / -1; }
.actions .primary:active { background: #3f5bd8; }
.actions .sec { background: #f0f1f4; color: #3a3f47; }
.actions .sec:active { background: #e6e8ec; }

.verify-result { margin-top: 12px; font-size: 13px; min-height: 18px; text-align: left; }
.verify-result.ok { color: #07c160; }
.verify-result.err { color: #e0413b; }
.verify-result.warn { color: #f59a23; background: #fff7e6; padding: 6px 10px; border-radius: 6px; }

/* 二维码美化（折叠） */
.beauty { margin-top: 16px; padding-top: 14px; border-top: 1px solid #eef0f3; text-align: left; }
.beauty summary { font-size: 14px; font-weight: 600; color: #1d1d1f; cursor: pointer; list-style: none; user-select: none; display: flex; align-items: center; }
.beauty summary::-webkit-details-marker { display: none; }
.beauty summary::after { content: '"'"'›'"'"'; margin-left: auto; color: #c0c4cc; font-size: 20px; transition: transform .2s; }
.beauty[open] summary::after { transform: rotate(90deg); }
.beauty-row { display: flex; align-items: center; gap: 12px; margin: 12px 0 6px; }
.beauty-row > span { font-size: 13px; font-weight: 600; color: #4b5563; margin: 0; min-width: 56px; }

.tip { margin: 16px 2px 0; font-size: 12px; color: #a6abb4; line-height: 1.6; text-align: left; }

/* 高级设置 */
.advanced-box { margin-top: 14px; background: #fff; border-radius: 16px; box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 6px 20px rgba(16,24,40,.03); overflow: hidden; }
.advanced-box summary { padding: 15px 18px; font-size: 14px; font-weight: 600; color: #1d1d1f; cursor: pointer; list-style: none; user-select: none; display: flex; align-items: center; }
.advanced-box summary::-webkit-details-marker { display: none; }
.advanced-box summary::after { content: '"'"'›'"'"'; margin-left: auto; color: #c0c4cc; font-size: 20px; transition: transform .2s; }
.advanced-box[open] summary::after { transform: rotate(90deg); }
.advanced-box .base-box { margin: 0; box-shadow: none; border-radius: 0; padding: 0 18px 18px; }
.base-status { margin-top: 8px; font-size: 13px; }
.base-status.ok { color: #07c160; }
.base-status.warn { color: #e08e0b; }
.link { color: #4f6ef2; font-size: 12px; text-decoration: none; margin-left: 6px; }
.link:active { opacity: .6; }

.foot { text-align: center; color: #c2c6cd; font-size: 12px; padding: 18px 14px 30px; }

/* ============ 跳转小卡片 · 5 种样式（首页预览 / 落地页共用） ============ */
.jc-root { background: #fff; border: 1px solid #eef0f3; border-radius: 12px; overflow: hidden; text-align: left; font-family: inherit; }
.jc-btn { display: inline-block; border: none; border-radius: 22px; padding: 11px 26px; font-size: 15px; font-weight: 700; cursor: pointer; font-family: inherit; }
.jc-btn.block { display: block; width: 100%; box-sizing: border-box; }
.jc-btn.sec { background: #f0f1f3 !important; color: #333 !important; }
.jc-btn-sm { padding: 8px 16px; font-size: 13px; border-radius: 18px; }

/* 经典横版 */
.jc-classic { display: flex; gap: 14px; align-items: flex-start; padding: 16px; }
.jc-left { width: 120px; height: 120px; flex: 0 0 120px; border-radius: 12px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.jc-leftimg { width: 104px; height: 104px; object-fit: cover; border-radius: 8px; background: #fff; }
.jc-sticker { font-size: 17px; font-weight: 800; color: #111; text-align: center; padding: 8px; line-height: 1.3; }
.jc-right { flex: 1; min-width: 0; }
.jc-title { margin: 0 0 5px; font-size: 19px; color: #111; font-weight: 700; }
.jc-sub { margin: 0 0 9px; color: #666; font-size: 13px; }
.jc-intro { margin: 0 0 11px; color: #444; font-size: 12.5px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.jc-intro-light { color: rgba(255,255,255,.92); }
.jc-wechat { margin: 9px 0 0; color: #999; font-size: 12px; }
.jc-phone { margin: 5px 0 0; color: #999; font-size: 12px; }
.jc-extra { margin: 5px 0 0; color: #bbb; font-size: 11.5px; }

/* 海报竖版 */
.jc-poster { padding: 22px 18px; text-align: center; color: #fff; }
.jc-poster .jc-title { color: #fff; font-size: 22px; }
.jc-poster .jc-sub { color: rgba(255,255,255,.9); font-size: 14px; }
.jc-badge { display: inline-block; background: rgba(255,255,255,.25); border: 1px solid rgba(255,255,255,.5); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 20px; margin-bottom: 14px; }
.jc-poster .jc-btn { margin-top: 16px; }
.jc-qr-sm { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; background: #fff; margin: 16px auto 0; display: block; }

/* 极简 */
.jc-minimal { text-align: center; }
.jc-topbar { height: 8px; }
.jc-min-body { padding: 20px 18px 22px; }
.jc-min-body .jc-btn { margin-top: 14px; }
.jc-min-body .jc-qr-sm { width: 90px; height: 90px; object-fit: cover; border-radius: 10px; background: #f2f3f5; margin: 14px auto 0; display: block; }

/* 图文 */
.jc-image .jc-hero { width: 100%; height: 180px; object-fit: cover; display: block; background: #eee; }
.jc-image { padding-bottom: 16px; }
.jc-image .jc-title { margin: 14px 16px 5px; }
.jc-image .jc-sub { margin: 0 16px 9px; }
.jc-image .jc-intro { margin: 0 16px 11px; }
.jc-image .jc-btn { margin: 4px 16px 0; }
.jc-image .jc-wechat, .jc-image .jc-phone, .jc-extra { margin-left: 16px; margin-right: 16px; }

/* 紧凑胶囊 */
.jc-compact { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.jc-icon { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 18px; font-weight: 800; }
.jc-mid { flex: 1; min-width: 0; }
.jc-mtitle { font-size: 15px; font-weight: 700; color: #111; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jc-msub { font-size: 12px; color: #888; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 音视频卡片 */
.jc-media-card { }
.jc-media-head { }
.jc-media-head .jc-topbar { height: 6px; }
.jc-media-headbody { padding: 14px 16px 4px; }
.jc-media { padding: 0 16px; }
.jc-media-card .jc-intro { margin: 10px 16px; }
.jc-media-card .jc-btn { margin: 4px 16px 16px; }
.jc-contact { margin: 12px 0 0; padding: 12px; background: #f6f7f9; border-radius: 10px; }
.jc-line { font-size: 14px; color: #333; margin: 5px 0; word-break: break-all; }
.jc-tip { margin: 9px 0 0; font-size: 11.5px; color: #aaa; }

