/* 创建/编辑个人名片 · Figma 联诚采信 */
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
/* 批注栏继承 body 字体，不要用 MiSans */
body {
  background: #eef3f8;
  color: #111;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

:root {
  --cc-bg: #f6f7fb;
  --cc-primary: #2962d4;
  --cc-muted: #6c6c6c;
  --cc-placeholder: #999;
  --cc-line: #edecec;
  --cc-card: #fff;
  --cc-radius: 10px;
}

.create-card-phone {
  position: relative;
  width: 414px;
  height: 780px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 28px;
  background: var(--cc-bg);
  box-shadow: 0 18px 44px rgb(42 67 106 / 14%);
  display: flex;
  flex-direction: column;
  /* 常规字重：系统黑体 Regular，避免 MiSans 缺字重时显粗 */
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 400;
  font-synthesis: none;
}

/* 顶栏：status spacer(42) 已由 prototype-shell 注入，不再额外 margin-top */
.create-card-nav {
  position: relative;
  z-index: 2;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  margin: 0;
  padding: 6px 16px 8px;
}
/* 毛玻璃只铺在状态栏+导航高度内，不压住「基本信息」 */
.create-card-nav::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -32px;
  height: calc(32px + 100%);
  background: rgba(246, 247, 251, 0.82);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  pointer-events: none;
  z-index: -1;
}
.create-card-nav-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  font-size: 17px;
  font-weight: 600; /* MiSans Demibold */
  line-height: 1.2;
  color: #111;
  pointer-events: none;
  white-space: nowrap;
}
.create-card-glass,
.create-card-nav a.create-card-glass,
.create-card-nav button.create-card-glass {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 296px;
  color: #111;
  background: rgba(255,255,255,0.72);
  text-decoration: none;
  font: inherit;
  font-size: 15px;
  font-weight: 600; /* MiSans Demibold · 上一步/下一步/完成 */
  cursor: pointer;
  box-shadow: 0 8px 40px rgba(0,0,0,0.12);
  z-index: 1;
}
.create-card-glass--primary,
.create-card-nav a.create-card-glass--primary,
.create-card-nav button.create-card-glass--primary {
  color: var(--cc-primary) !important;
}
.create-card-glass svg { width: 20px; height: 20px; stroke-width: 2.2; }
.create-card-nav-spacer { width: 44px; height: 44px; flex: none; }

/* Figma: 标题块 left:16px，与白卡片/内容区左缘齐；勿再叠一层水平 padding */
.create-card-head {
  position: relative;
  z-index: 1;
  flex: none;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 11px 12px;
  align-items: start;
  padding: 28px 0 16px;
  background: transparent;
  border-bottom: 0;
}
.create-card-head h1 {
  margin: 0;
  grid-column: 1;
  font-size: 20px;
  font-weight: 500; /* MiSans Medium */
  line-height: 1.25;
  letter-spacing: 0;
  color: #111;
}
.create-card-head .step {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: start;
  padding-top: 4px;
  color: var(--cc-muted);
  font-size: 15px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  line-height: 14px;
}
.create-card-head .step b {
  color: #111;
  font-weight: 400;
}
.create-card-head p {
  margin: 0;
  grid-column: 1;
  color: var(--cc-muted);
  font-size: 12px;
  line-height: 14px;
  font-weight: 400;
}

.create-card-scroll {
  flex: 1 1 auto;
  min-height: 0;
  padding: 0 16px 24px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.create-card-scroll::-webkit-scrollbar { display: none; }

.create-card-foot {
  flex: none;
  display: grid;
  gap: 10px;
  padding: 12px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  background: transparent;
  border-top: 0;
}
.create-card-foot--split { grid-template-columns: 1fr 1fr; }
.create-card-foot--hidden { display: none !important; }
.create-card-btn {
  display: grid;
  place-items: center;
  height: 48px;
  border-radius: 90px;
  border: 0;
  font: inherit;
  font-size: 15px;
  font-weight: 400;
  text-decoration: none;
  cursor: pointer;
}
.create-card-btn--primary {
  color: #111;
  background: #fff;
}
.create-card-btn--ghost {
  color: #111;
  background: #fff;
  border: 0;
}
.create-card-btn--solid {
  color: #fff;
  background: var(--cc-primary);
}

/* —— Step 1 基本信息 —— */
.cci-group {
  margin-bottom: 10px;
  /* Figma 标签 left:30 ≈ 外边距16 + 内边距14 */
  padding: 0 14px;
  border-radius: var(--cc-radius);
  background: var(--cc-card);
  overflow: hidden;
}
.cci-row-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 55px;
}
.cci-row-item + .cci-row-item { border-top: 1px solid var(--cc-line); }
.cci-label {
  flex: none;
  min-width: 72px;
  color: #111;
  font-size: 15px;
  line-height: 14px;
  white-space: nowrap;
}
.cci-label .req { color: #ef4444; }
.cci-input,
.cci-textarea {
  flex: 1 1 auto;
  min-width: 0;
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  margin: 0;
  color: #6c6c6c;
  background: transparent;
  font: inherit;
  font-size: 15px;
  line-height: 14px;
  text-align: right;
  outline: none;
}
.cci-input::placeholder,
.cci-textarea::placeholder { color: var(--cc-placeholder); }
.cci-textarea {
  min-height: 20px;
  resize: none;
  padding: 18px 0;
  line-height: 1.4;
}
.cci-select {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #6c6c6c;
  font: inherit;
  font-size: 15px;
  line-height: 14px;
  text-align: right;
  cursor: pointer;
}
.cci-select span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 220px;
}
.cci-select span[data-placeholder] { color: var(--cc-placeholder); font-weight: 400; }
.cci-select svg {
  flex: none;
  width: 10px;
  height: 12px;
  color: #999;
}
.cci-sign-wrap { align-items: flex-start; }
.cci-sign-side {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-width: 72px;
  padding-top: 20px;
}
.cci-sign-wrap .cci-label { padding-top: 0; min-width: 0; }
.cci-sign-field {
  flex: 1 1 auto;
  min-width: 0;
}
.cci-sign-field .cci-textarea {
  width: 100%;
  overflow: hidden;
}
/* 超过 50 字时出现在「个性签名」标签下方 */
.cci-count {
  display: none;
  margin: 0;
  padding: 0;
  font-size: 11px;
  line-height: 1;
  color: var(--cc-placeholder);
  pointer-events: none;
}
.cci-count.cci-count--show { display: block; }
.cci-field { display: block; }
.cci-row { display: contents; }

/* —— 底部弹窗（职位多选 / 地区滚轮） —— */
.cci-sheet {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: flex-end;
  background: rgb(0 0 0 / 45%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}
.cci-sheet[data-open="true"] {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.cci-sheet-panel {
  width: 100%;
  max-height: 72%;
  display: flex;
  flex-direction: column;
  border-radius: 16px 16px 0 0;
  background: #fff;
  transform: translateY(100%);
  transition: transform 0.24s ease;
  overflow: hidden;
}
.cci-sheet[data-open="true"] .cci-sheet-panel {
  transform: translateY(0);
}
.cci-sheet-head {
  flex: none;
  display: grid;
  grid-template-columns: 64px 1fr 64px;
  align-items: center;
  height: 48px;
  padding: 0 8px;
  border-bottom: 1px solid #f0f0f0;
}
.cci-sheet-head button {
  height: 40px;
  border: 0;
  padding: 0 10px;
  background: transparent;
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}
.cci-sheet-cancel { color: #111; text-align: left; }
.cci-sheet-ok { color: #1769e8; font-weight: 600; text-align: right; }
.cci-sheet-title {
  margin: 0;
  color: #8a8a8a;
  font-size: 15px;
  font-weight: 500;
  text-align: center;
}
.cci-sheet-list {
  flex: 1 1 auto;
  min-height: 0;
  max-height: 360px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.cci-sheet-list::-webkit-scrollbar { display: none; }

/* Figma 2130:6280 · 职位选择底部弹层 */
.cci-position-panel {
  max-height: none;
  padding: 0 0 calc(16px + env(safe-area-inset-bottom, 0px));
  border-radius: 20px 20px 0 0;
  background: #f6f7fb;
}
.cci-sheet-handle {
  flex: none;
  width: 34px;
  height: 6px;
  margin: 10px auto 0;
  border-radius: 10px;
  background: #a3a3a3;
}
.cci-position-head {
  flex: none;
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr 56px;
  align-items: center;
  min-height: 44px;
  margin-top: 8px;
  padding: 0 16px;
}
.cci-position-back {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-left: -10px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}
.cci-position-back img {
  display: block;
  width: 25px;
  height: 25px;
}
.cci-position-title {
  margin: 0;
  color: #111;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
}
.cci-position-save {
  justify-self: end;
  height: 44px;
  border: 0;
  padding: 0;
  color: #2962d4;
  background: transparent;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}
.cci-position-card {
  flex: none;
  margin: 12px 16px 0;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}
.cci-position-list {
  max-height: none;
  overflow: visible;
}
.cci-check-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 55px;
  padding: 0 14px 0 14px;
  border: 0;
  border-bottom: 1px solid #edecec;
  background: #fff;
  color: #111;
  font: inherit;
  font-size: 15px;
  line-height: 14px;
  text-align: left;
  cursor: pointer;
}
.cci-position-list .cci-check-row:last-child { border-bottom: 0; }
.cci-check {
  flex: none;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 1px solid #eee;
  border-radius: 90px;
  background: #fff;
  overflow: hidden;
}
.cci-check-row[aria-checked="true"] .cci-check {
  border: 0;
  background: transparent;
}
.cci-check img {
  display: block;
  width: 20px;
  height: 20px;
}

/* 地区滚轮选择器 · Figma 2130:6250 */
.cci-region-panel {
  max-height: none;
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  border-radius: 20px 20px 0 0;
  background: #f6f7fb;
}
.cci-region-card {
  flex: none;
  margin: 12px 16px 0;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}
.cci-region-wheels {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  height: 291px;
  overflow: hidden;
}
.cci-region-wheels::before,
.cci-region-wheels::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  z-index: 2;
  height: 1px;
  background: #edecec;
  pointer-events: none;
}
.cci-region-wheels::before { top: calc(50% - 27.5px); }
.cci-region-wheels::after { top: calc(50% + 27.5px); }
.cci-wheel {
  height: 100%;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.cci-wheel::-webkit-scrollbar { display: none; }
.cci-wheel-pad {
  height: calc(50% - 27.5px);
  flex: none;
  pointer-events: none;
}
.cci-wheel-item {
  display: grid;
  align-items: center;
  height: 55px;
  padding: 0 24px;
  color: #000;
  font-size: 17px;
  font-weight: 500;
  line-height: 14px;
  opacity: 0.1;
  scroll-snap-align: center;
  transition: opacity 0.12s ease;
}
.cci-wheel-item[data-fade="1"] { opacity: 0.3; }
.cci-wheel-item[data-fade="0"],
.cci-wheel-item.is-active { opacity: 1; }
.cci-wheel--left .cci-wheel-item { justify-content: start; text-align: left; }
.cci-wheel--center .cci-wheel-item { justify-content: center; text-align: center; padding: 0 8px; }
.cci-wheel--right .cci-wheel-item { justify-content: end; text-align: right; }

/* —— Step 2 封面 —— */
.cc-hint {
  margin: 0 0 12px;
  color: #c9a227;
  font-size: 12px;
}
.cc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.cc-thumb {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 12px;
  background: #f0f0f0;
}
.cc-thumb[hidden] { display: none !important; }
.cc-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cc-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1;
  padding: 3px 8px;
  border-radius: 4px;
  color: #fff;
  background: rgb(0 0 0 / 55%);
  font-size: 11px;
  font-weight: 600;
}
/* 已设封面：仅右下角圆形删除 */
.cc-del {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 1;
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgb(0 0 0 / 55%);
  cursor: pointer;
}
.cc-del svg { width: 13px; height: 13px; }
/* 未设封面：右下角两个分开的小按钮 */
.cc-actions {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 6px;
}
.cc-set {
  height: 26px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgb(0 0 0 / 55%);
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}
.cc-actions .cc-del {
  position: static;
}
.cc-upload {
  display: grid;
  place-items: center;
  gap: 8px;
  aspect-ratio: 1;
  border: 0;
  border-radius: 12px;
  color: #8a8a8a;
  background: #f2f2f2;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.cc-upload svg { width: 36px; height: 36px; color: #bdbdbd; }

/* —— Step 3 价值亮点 —— */
.ch-tip {
  margin: 0 0 12px;
  color: #9a9a9a;
  font-size: 13px;
}
.ch-list { display: grid; gap: 10px; }
.ch-item {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ch-card {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f5f5f5;
  text-decoration: none;
  color: inherit;
}
.ch-card-copy { flex: 1; min-width: 0; }
.ch-card-copy small {
  display: block;
  margin-bottom: 4px;
  color: #9a9a9a;
  font-size: 11px;
}
.ch-card-copy b {
  display: block;
  overflow: hidden;
  color: #111;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.ch-card > svg {
  flex: none;
  width: 16px;
  height: 16px;
  color: #c0c0c0;
}
.ch-remove {
  flex: none;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: #e53935;
  cursor: pointer;
}
.ch-remove svg { width: 14px; height: 14px; }
.ch-add {
  display: grid;
  place-items: center;
  width: 100%;
  height: 48px;
  margin-top: 2px;
  border: 0;
  border-radius: 10px;
  color: #111;
  background: #f5f5f5;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.cs-stage { margin: 0 0 8px; }
.cs-stage [data-panel][hidden] { display: none !important; }

/* —— Preview 主页 —— */
.cp-phone {
  display: flex;
  flex-direction: column;
  background: #f5f6f8;
}
.cp-hero {
  position: relative;
  flex: none;
  height: 280px;
  background: center / cover no-repeat;
}
.cp-hero-nav {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cp-hero-nav a {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  color: #111;
  background: rgb(255 255 255 / 92%);
  text-decoration: none;
  box-shadow: 0 2px 8px rgb(0 0 0 / 8%);
}
.cp-dots {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 88px;
  display: flex;
  gap: 5px;
  transform: translateX(-50%);
}
.cp-dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgb(255 255 255 / 45%);
}
.cp-dots i:first-child {
  width: 14px;
  border-radius: 999px;
  background: #fff;
}
.cp-profile {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  margin-top: -72px;
  border-radius: 24px 24px 0 0;
  background: #fff;
  box-shadow: 0 -8px 24px rgb(0 0 0 / 8%);
  overflow: hidden;
}
.cp-profile-main {
  flex: none;
  padding: 22px 16px 14px;
  background: #fff;
}
.cp-profile-main h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  text-align: center;
}
.cp-role {
  margin: 6px 0 14px;
  color: #8b9199;
  font-size: 14px;
  text-align: center;
}
.cp-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.cp-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.cp-badge svg {
  width: 14px;
  height: 14px;
  flex: none;
}
.cp-badge--green { color: #0d8f5f; background: #e8f8f1; }
.cp-badge--blue { color: #1769e8; background: #edf4ff; }
.cp-badge--orange { color: #c47a00; background: #fff6e8; }
.cp-lines {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid #f0f1f3;
}
.cp-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 6px;
  color: #a0a6ae;
  font-size: 12px;
  line-height: 1.45;
}
.cp-line:last-child { margin-bottom: 0; }
.cp-line svg {
  flex: none;
  width: 14px;
  height: 14px;
  margin-top: 1px;
  color: #b8bcc4;
}
.cp-tabs {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px 12px;
  overflow-x: auto;
  scrollbar-width: none;
  background: #f5f6f8;
  border-top: 1px solid #f0f1f3;
  -webkit-overflow-scrolling: touch;
}
.cp-tabs::-webkit-scrollbar { display: none; }
.cp-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  height: 40px;
  padding: 0 14px;
  border: 1px solid #e8eaed;
  border-radius: 999px;
  background: #fff;
  color: #6b7280;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}
.cp-tab svg {
  width: 16px;
  height: 16px;
  flex: none;
}
.cp-tab.active {
  border-color: #1a1a1a;
  background: #1a1a1a;
  color: #fff;
}
.cp-scroll {
  flex: 1 1 auto;
  min-height: 0;
  padding: 4px 16px 96px;
  overflow-y: auto;
  background: #f5f6f8;
  scrollbar-width: none;
}
.cp-scroll::-webkit-scrollbar { display: none; }
.cp-panel[hidden] { display: none; }
.cp-section { margin-bottom: 16px; }
.cp-section > h2 {
  margin: 0 0 10px;
  padding-left: 2px;
  color: #9aa0a8;
  font-size: 13px;
  font-weight: 600;
}
.cp-card {
  padding: 14px 16px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 4px rgb(0 0 0 / 4%);
}
.cp-company {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cp-company-icon {
  display: grid;
  flex: none;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 12px;
  color: #1769e8;
  background: #edf4ff;
}
.cp-company b {
  flex: 1;
  min-width: 0;
  color: #1769e8;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}
.cp-empty {
  margin: 0;
  color: #9aa0a8;
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
}
.cp-save-bar {
  flex: none;
  position: relative;
  z-index: 5;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  background: #fff;
  border-top: 1px solid #f0f0f0;
  box-shadow: 0 -8px 20px rgb(16 24 40 / 6%);
}

@media (max-width: 414px) {
  .create-card-phone {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
    box-shadow: none;
  }
}


/* —— Step2 封面 · Figma 1072:5111 —— */
.cc-hint {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 0 16px;
  padding: 10px 12px;
  border-radius: 10px;
  color: #2962d4;
  background: #e3edff;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.2;
}
.cc-hint::before { content: none; }
.cc-hint img {
  display: block;
  flex: none;
  width: 16px;
  height: 16px;
}
.cc-grid {
  display: grid;
  grid-template-columns: repeat(3, 116px);
  gap: 11px;
  justify-content: start;
}
.cc-thumb,
.cc-upload {
  position: relative;
  box-sizing: border-box;
  width: 116px;
  height: 116px;
  aspect-ratio: auto;
  border-radius: 10px;
  overflow: hidden;
}
.cc-thumb {
  background: #ececec;
}
/* 只用直接子图：勿写成 img:first-child，否则会命中 .cc-del 内的 × 并拉成 100% */
.cc-thumb > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
}
.cc-badge {
  position: absolute;
  z-index: 1;
  left: 5px;
  top: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 16px;
  padding: 2px 7px 1px;
  border-radius: 90px;
  color: #fff;
  background: #000;
  font-size: 10px;
  font-weight: 600;
  line-height: normal;
}
.cc-actions {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 11px;
  display: flex;
  justify-content: center;
  padding: 0;
  gap: 0;
}
.cc-set {
  border: 0.5px solid rgba(255, 255, 255, 0.5);
  border-radius: 90px;
  padding: 3px 10px;
  color: #fff;
  background: rgba(0, 0, 0, 0.7);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: normal;
  white-space: nowrap;
  cursor: pointer;
}
.cc-del {
  position: absolute;
  z-index: 2;
  top: 5px;
  right: 5px;
  bottom: auto;
  left: auto;
  display: grid;
  width: 16px;
  height: 16px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  padding: 0;
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
}
.cc-del img,
.cc-del svg {
  display: block;
  width: 6px;
  height: 6px;
}
.cc-actions .cc-del { position: absolute; }
.cc-upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 26px;
  border: 0;
  background: #fff;
  color: #999;
  font: inherit;
  font-size: 10px;
  font-weight: 400;
  line-height: normal;
  cursor: pointer;
}
.cc-upload img,
.cc-upload svg {
  display: block;
  flex: none;
  width: 33px;
  height: 33px;
}

/* —— highlights Figma —— */
.ch-tip { display: none; }
.ch-list { display: grid; gap: 10px; }
.ch-item {
  display: flex;
  align-items: center;
  min-height: 55px;
  padding: 0 14px 0 10px;
  border-radius: 10px;
  background: #fff;
}
.ch-drag {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 44px;
  margin: 0 2px 0 -6px;
  color: #c0c0c0;
  touch-action: none;
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
.ch-drag svg {
  width: 20px;
  height: 20px;
  pointer-events: none;
}
.ch-item.is-dragging {
  position: relative;
  z-index: 6;
  box-shadow: 0 10px 24px rgb(24 33 51 / 16%);
  cursor: grabbing;
}
.ch-item.is-dragging .ch-drag { color: #8b8b8b; cursor: grabbing; }
.ch-list.is-sorting {
  -webkit-user-select: none;
  user-select: none;
  touch-action: none;
}
.ch-list.is-sorting .ch-item:not(.is-dragging) {
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.ch-list.is-sorting .ch-item.is-drop-before {
  box-shadow: inset 0 2px 0 #2962d4;
}
.ch-list.is-sorting .ch-item.is-drop-after {
  box-shadow: inset 0 -2px 0 #2962d4;
}
.ch-list.is-sorting .ch-card,
.ch-list.is-sorting .ch-edit,
.ch-list.is-sorting .ch-remove {
  pointer-events: none;
}
.ch-card {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  padding: 0;
  color: #111;
  text-decoration: none;
  background: transparent;
  border: 0;
}
.ch-card-copy { display: block; min-width: 0; }
.ch-card-copy small { display: none; }
.ch-card-copy b {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 400;
  line-height: 14px;
}
.ch-card > svg { display: none; }
.ch-actions {
  flex: none;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: 12px;
}
.ch-edit,
.ch-remove {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 0;
  padding: 0;
  color: #999;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
}
.ch-edit svg,
.ch-remove svg { width: 18px; height: 18px; }
.ch-add {
  display: grid;
  place-items: center;
  min-height: 55px;
  border-radius: 10px;
  color: var(--cc-primary);
  background: #fff;
  font-size: 15px;
  text-decoration: none;
}

/* —— style page · Figma 1083:5487 / 5621 / 1107:5812 —— */
.cs-preview {
  position: relative;
  width: 100%;
  height: 208px;
  min-height: 208px;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  color: #111;
}
.cs-preview--business {
  padding: 0;
}
.cs-biz-art {
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
  width: 122px;
  height: 100%;
  overflow: hidden;
  border-radius: 0 10px 10px 0;
  pointer-events: none;
}
.cs-biz-stripe-wrap {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cs-biz-stripe-wrap--green {
  top: -42.27px;
  left: 33.72px;
  width: 53.854px;
  height: 276.568px;
}
.cs-biz-stripe-wrap--blue {
  top: -38.32px;
  left: -0.47px;
  width: 122.246px;
  height: 268.676px;
}
.cs-biz-stripe {
  flex: none;
  width: 30px;
  height: 275px;
}
.cs-biz-stripe--green {
  background: #36be69;
  transform: rotate(-5deg);
}
.cs-biz-stripe--blue {
  background: #2962d4;
  transform: rotate(-20deg);
}
.cs-biz-logo {
  position: absolute;
  z-index: 2;
  top: 21px;
  right: 14px;
  width: 114px;
  height: 114px;
  object-fit: cover;
  border-radius: 10px;
  background: #fff;
}
.cs-biz-body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 21px 16px 18px;
  box-sizing: border-box;
}
.cs-biz-name {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0;
  line-height: 1.1;
}
.cs-biz-name b {
  color: #111;
  font-size: 30px;
  letter-spacing: -0.4px;
}
.cs-biz-name small {
  color: #111;
  font-size: 12px;
  letter-spacing: -0.4px;
}
.cs-biz-role {
  margin: 10px 0 0;
  color: #111;
  font-size: 12px;
  letter-spacing: -0.4px;
}
.cs-biz-rows {
  display: grid;
  gap: 5px;
  margin-top: auto;
  max-width: 210px;
}
.cs-biz-row {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  color: #111;
  font-size: 10px;
  letter-spacing: -0.4px;
}
.cs-biz-row > span:not(.cs-biz-ico) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cs-biz-ico {
  flex: none;
  display: grid;
  width: 14px;
  height: 14px;
  place-items: center;
  overflow: hidden;
}
.cs-biz-ico--company {
  border-radius: 8.78px;
  background: #111;
}
.cs-biz-ico img {
  display: block;
  width: 14px;
  height: 14px;
}
.cs-biz-verified {
  flex: none;
  width: 9px;
  height: 9px;
}

/* 时尚 · 左图右文 */
.cs-preview--fashion {
  display: grid;
  grid-template-columns: 208px minmax(0, 1fr);
  padding: 0;
  color: #111;
  background: #fff;
}
.cs-fashion-media {
  width: 208px;
  height: 208px;
  overflow: hidden;
  border-radius: 10px 0 0 10px;
  background: #111;
}
.cs-fashion-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cs-fashion-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 21px 14px 18px;
  box-sizing: border-box;
  color: #111;
  background: #fff;
}
.cs-fashion-name {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  line-height: normal;
}
.cs-fashion-name b {
  font-size: 25px;
  letter-spacing: -0.4px;
}
.cs-fashion-name small {
  font-size: 12px;
  letter-spacing: -0.4px;
}
.cs-fashion-role {
  margin: 12px 0 0;
  font-size: 12px;
  letter-spacing: -0.4px;
}
.cs-fashion-company {
  margin: auto 0 0;
  max-width: 100%;
  font-size: 10px;
  letter-spacing: -0.4px;
  line-height: 1.35;
  word-break: break-word;
}
.cs-fashion-verified {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-left: 3px;
  vertical-align: -1px;
}
/* 时尚配色：星岩灰 / 曜石黑 / 云雾银 / 暮影灰（id 1→4） */
.cs-preview--fashion[data-variant="graphite"] .cs-fashion-copy {
  background: #636365;
  color: #fff;
}
.cs-preview--fashion[data-variant="ink"] .cs-fashion-copy {
  background: #000;
  color: #fff;
}
.cs-preview--fashion[data-variant="mist"] .cs-fashion-copy {
  background: #ebebeb;
  color: #000;
}
.cs-preview--fashion[data-variant="rock"] .cs-fashion-copy {
  background: #636365;
  color: #000;
}
.cs-preview--fashion[data-variant="graphite"] .cs-fashion-copy :is(b, small, p, span),
.cs-preview--fashion[data-variant="ink"] .cs-fashion-copy :is(b, small, p, span) {
  color: #fff;
}
.cs-preview--fashion[data-variant="mist"] .cs-fashion-copy :is(b, small, p, span),
.cs-preview--fashion[data-variant="rock"] .cs-fashion-copy :is(b, small, p, span) {
  color: #000;
}

/* 简约 · 全幅方图 + 底部渐变文案 */
.cs-preview--minimal {
  height: 370px;
  min-height: 370px;
  color: #fff;
  background: #111;
}
.cs-minimal-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}
.cs-minimal-fade {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 0;
  height: 91px;
  border-radius: 0 0 10px 10px;
  background: linear-gradient(to bottom, rgba(0,0,0,0), #000);
  pointer-events: none;
}
.cs-minimal-copy {
  position: absolute;
  z-index: 2;
  left: 14px;
  right: 14px;
  bottom: 25px;
  color: #fff;
  background: none;
  padding: 0;
}
.cs-minimal-name {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  line-height: normal;
}
.cs-minimal-name b {
  font-size: 25px;
  letter-spacing: -0.4px;
}
.cs-minimal-name small {
  font-size: 12px;
  letter-spacing: -0.4px;
}
.cs-minimal-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
  margin: 7px 0 0;
  font-size: 12px;
  letter-spacing: -0.4px;
  line-height: normal;
}
.cs-minimal-company {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-width: 0;
  max-width: 100%;
}
.cs-minimal-company [data-company] {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cs-minimal-verified {
  flex: none;
  display: block;
  width: 9px;
  height: 9px;
}

.cs-variants { display: none !important; }
.cs-colors {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 30px;
}
.cs-stage[data-style="fashion"] .cs-colors { display: grid; }
.cs-colors-title {
  grid-column: 1 / -1;
  margin: 0 0 0;
  color: #6c6c6c;
  font-size: 12px;
  line-height: 14px;
}
.cs-color {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 70px;
  padding: 0 36px 0 14px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: #fff;
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.cs-color.is-active { border-color: #2962d4; }
.cs-color-dot { width: 10px; height: 10px; flex: none; }
.cs-color-copy { display: grid; gap: 10px; }
.cs-color-copy b { font-size: 14px; color: #111; line-height: 14px; }
.cs-color-copy span { font-size: 12px; color: #6c6c6c; line-height: 14px; }
.cs-color-check {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border-radius: 90px;
  border: 1px solid #ebebeb;
  background: #fff;
  box-sizing: border-box;
}
.cs-color.is-active .cs-color-check {
  border-color: transparent;
  background: #2962d4 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M2.5 6.2 5 8.7 9.5 3.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.create-card-phone--section {
  background: #fff;
}
.create-card-phone--section .create-card-nav::before {
  background: rgba(255,255,255,0.7);
}


/* Figma 1083:5579 Segmented control — exact */
.create-card-phone .cs-tabs,
.create-card-scroll .cs-tabs,
.cs-tabs {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  align-items: stretch !important;
  gap: 0 !important;
  width: 100% !important;
  height: 32px !important;
  margin: 0 0 16px !important;
  padding: 2px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
}
.create-card-phone .cs-tabs button,
.create-card-scroll .cs-tabs button,
.cs-tabs button {
  display: grid !important;
  place-items: center !important;
  height: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 8px !important;
  border: 0 !important;
  border-radius: 999px !important;
  color: #000000 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-family: inherit !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  cursor: pointer !important;
  -webkit-tap-highlight-color: transparent !important;
}
.create-card-phone .cs-tabs button[aria-selected="true"],
.create-card-scroll .cs-tabs button[aria-selected="true"],
.cs-tabs button[aria-selected="true"] {
  color: #ffffff !important;
  background: #000000 !important;
  font-weight: 400 !important;
  box-shadow: none !important;
}
.create-card-phone .cs-tabs button[aria-selected="false"],
.create-card-scroll .cs-tabs button[aria-selected="false"],
.cs-tabs button[aria-selected="false"] {
  color: #000000 !important;
  background: transparent !important;
}


/* 手机壳默认 Regular；Figma Medium/Demibold 由具体选择器覆盖 */
.create-card-phone {
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif !important;
  font-weight: 400;
  font-synthesis: none !important;
}
.create-card-phone .create-card-nav-title,
.create-card-phone .create-card-glass,
.create-card-phone .create-card-nav a.create-card-glass,
.create-card-phone .create-card-nav button.create-card-glass {
  font-weight: 600 !important;
}
.create-card-phone .create-card-head h1 {
  font-weight: 500 !important;
}
/* 名片预览姓名跟 Figma Semibold */
.create-card-phone .cs-biz-name b,
.create-card-phone .cs-fashion-name b,
.create-card-phone .cs-minimal-name b {
  font-weight: 600 !important;
}
