/* ================================================================
   初禾成长 CHUHE GROWTH · UI 视觉规范 V2
   基于 LOGO 品红紫 #C54D9E + 嫩绿 #9CCC45
   对标竞品（佳禾月嫂 / 丫好儿童陪伴师）精致温暖风格
   ================================================================ */

:root {
  /* ===== 品牌色系（从 LOGO 提取） ===== */
  --brand: #C54D9E;              /* 主色：品红紫 */
  --brand-light: #D96BAE;        /* 浅品红 */
  --brand-dark: #A03B7D;         /* 深品红 */
  --brand-bg: #FFF0F7;           /* 品红淡底 */
  --brand-border: #F4C0D1;       /* 品红边框 */

  --green: #9CCC45;              /* 辅色：嫩绿（LOGO 叶子） */
  --green-light: #B8D97A;        /* 浅绿 */
  --green-dark: #7DA628;         /* 深绿 */
  --green-bg: #F4FCEB;           /* 绿淡底 */
  --green-border: #C0DD97;       /* 绿边框 */

  /* ===== 功能色 ===== */
  --coral: #FF7A8A;              /* 暖粉强调 */
  --warm-gold: #F5A623;          /* 暖金 */
  --warm-gold-bg: #FFF5E6;       /* 暖金淡底 */
  --success: #52C479;            /* 成功绿 */
  --warning: #FFAB00;            /* 警告橙 */
  --danger: #FF5A5A;             /* 危险红 */

  /* ===== 文字色 ===== */
  --text: #2D2D3A;               /* 主文字 */
  --text-secondary: #666;        /* 次要文字 */
  --muted: #999;                 /* 辅助文字 */
  --text-on-brand: #FFFFFF;      /* 有色底上的白字 */

  /* ===== 背景与分割 ===== */
  --bg: #FAF7FB;                 /* 页面背景（极浅品红灰） */
  --bg-warm: #FFF9FA;            /* 温暖白底 */
  --card: #FFFFFF;               /* 卡片背景 */
  --line: #F0E8EE;              /* 分割线（带品红调） */
  --line-hover: #E8D4E4;

  /* ===== 渐变 ===== */
  --grad: linear-gradient(135deg, #C54D9E 0%, #E87BBF 100%);
  --grad-green: linear-gradient(135deg, #9CCC45 0%, #B8D97A 100%);
  --grad-warm: linear-gradient(135deg, #FF7A8A 0%, #FFB347 100%);
  --grad-hero: linear-gradient(160deg, #C54D9E 0%, #D96BAE 40%, #E8A4CC 70%, #F4CDE3 100%);
  --grad-card-hover: linear-gradient(135deg, #FFF0F7 0%, #FFFFFF 100%);

  /* ===== 阴影（核心质感提升） ===== */
  --shadow-sm: 0 2px 8px rgba(197, 77, 158, 0.06);
  --shadow: 0 4px 20px rgba(197, 77, 158, 0.08);
  --shadow-md: 0 8px 30px rgba(197, 77, 158, 0.12);
  --shadow-lg: 0 16px 48px rgba(197, 77, 158, 0.16);
  --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.04), 0 0 1px rgba(197, 77, 158, 0.08);
  --shadow-card-hover: 0 8px 32px rgba(197, 77, 158, 0.14), 0 0 1px rgba(197, 77, 158, 0.12);
  --shadow-fab: 0 8px 24px rgba(197, 77, 158, 0.4);
  --shadow-inset: inset 0 1px 3px rgba(197, 77, 158, 0.06);

  /* ===== 圆角（全面放大） ===== */
  --radius-sm: 10px;
  --radius: 14px;
  --radius-md: 18px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --radius-full: 999px;

  /* ===== 字体 ===== */
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

/* ===== Reset & Base ===== */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  margin: 0; padding: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
#app { display: flex; justify-content: center; min-height: 100vh; }
.phone {
  width: 100%; max-width: 430px; min-height: 100vh;
  background: var(--bg);
  display: flex; flex-direction: column;
  position: relative;
  box-shadow: 0 0 60px rgba(197, 77, 158, 0.10);
}
@media (min-width: 480px) {
  .phone {
    margin: 18px 0;
    border-radius: var(--radius-xl);
    min-height: calc(100vh - 36px);
    overflow: hidden;
  }
}
@media (max-width: 479px) { .phone { box-shadow: none; } }

/* ==================== TOP BAR ==================== */
#topbar {
  position: sticky; top: 0; z-index: 30;
  background: var(--grad);
  color: var(--text-on-brand);
  padding: 14px 16px 12px;
  box-shadow: 0 2px 16px rgba(197, 77, 158, 0.20);
  backdrop-filter: blur(10px);
}
.topbar-row { display: flex; align-items: center; justify-content: space-between; }
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 17px;
  letter-spacing: 0.5px;
}
.brand .logo {
  width: 30px; height: 30px; border-radius: 10px;
  background: rgba(255,255,255,.22);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  font-weight: 900;
  color: var(--green);
  text-shadow: 0 1px 2px rgba(0,0,0,.1);
}
.role-pills { display: flex; gap: 6px; margin-top: 10px; }
.role-pill {
  font-size: 12px; padding: 5px 14px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,.17);
  color: #fff; cursor: pointer; border: none;
  transition: all .2s ease;
  font-weight: 500;
}
.role-pill.active {
  background: #fff;
  color: var(--brand);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
}
.role-pill:hover:not(.active) { background: rgba(255,255,255,.28); }

/* 用户登录态 Chip */
.user-chip {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.17);
  border-radius: var(--radius-full);
  padding: 4px 10px 4px 4px;
}
.uc-ava {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--grad-green);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
}
.uc-name { font-size: 12px; font-weight: 600; }
.uc-out {
  font-size: 11px; background: none; border: none;
  color: rgba(255,255,255,.8); cursor: pointer;
  padding: 2px 6px; border-radius: 6px;
  transition: .15s;
}
.uc-out:hover { color: #fff; background: rgba(255,255,255,.15); }

/* ==================== MAIN VIEW ==================== */
#view {
  flex: 1; overflow-y: auto;
  padding: 16px;
  padding-bottom: 84px;
  -webkit-overflow-scrolling: touch;
}

/* ==================== TAB BAR ==================== */
#tabbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px;
  background: rgba(255,255,255,.92);
  border-top: 1px solid var(--line);
  display: flex; z-index: 25;
  padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
  backdrop-filter: blur(12px);
}
.tab {
  flex: 1; text-align: center;
  font-size: 10.5px; color: var(--muted);
  cursor: pointer;
  display: flex; flex-direction: column;
  align-items: center; gap: 4px;
  padding: 4px 0;
  transition: color .2s;
}
.tab.active { color: var(--brand); font-weight: 700; }
.tab .ic { font-size: 21px; line-height: 1; }
.tab:hover:not(.active) { color: var(--text-secondary); }

/* ==================== CARDS ==================== */
.card {
  background: var(--card);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  box-shadow: var(--shadow-card);
  margin-bottom: 16px;
  transition: transform .2s ease, box-shadow .2s ease;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad);
  opacity: 0;
  transition: opacity .2s;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--brand-border);
}
.card:hover::before { opacity: 1; }
.card.tight { padding: 14px 16px; }

.section-title {
  font-size: 17px; font-weight: 700;
  margin: 4px 0 14px;
  display: flex; align-items: center; gap: 8px;
  color: var(--text);
}
.section-sub {
  font-size: 13px; font-weight: 700;
  color: var(--brand); margin: 16px 0 6px;
}
.muted { color: var(--muted); font-size: 12.5px; }
.hint { color: var(--muted); font-size: 12.5px; line-height: 1.55; }

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; border: none; cursor: pointer;
  height: 50px; border-radius: var(--radius-full);
  font-size: 15.5px; font-weight: 600;
  padding: 0 24px;
  transition: all .18s ease;
  position: relative; overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.12) 0%, transparent 60%);
  pointer-events: none;
}
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 6px 20px rgba(197, 77, 158, 0.32);
}
.btn-primary:hover { box-shadow: 0 8px 28px rgba(197, 77, 158, 0.40); transform: translateY(-1px); }
.btn-primary:active { transform: scale(.97); box-shadow: 0 4px 12px rgba(197, 77, 158, 0.28); }
.btn-ghost {
  background: #fff; color: var(--brand);
  border: 1.5px solid var(--brand-border);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { background: var(--brand-bg); border-color: var(--brand-light); }
.btn-ghost:active { transform: scale(.97); }
.btn-sm { height: 38px; font-size: 13px; padding: 0 16px; border-radius: var(--radius-full); }
.btn-block { width: 100%; }
.btn-gold { background: linear-gradient(135deg, #F5A623, #FFCB5A); color: #fff; box-shadow: 0 4px 16px rgba(245,166,35,.3); }
.btn-green { background: var(--grad-green); color: #fff; box-shadow: 0 4px 16px rgba(156,204,69,.3); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* ==================== INPUTS ==================== */
.field { margin-bottom: 16px; }
.field label {
  display: block; font-size: 12px; color: var(--text-secondary);
  margin-bottom: 6px; font-weight: 600;
}
.input, .textarea, select.input {
  width: 100%; height: 48px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 0 15px;
  font-size: 15px;
  background: #fff;
  color: var(--text);
  outline: none;
  transition: all .18s ease;
  font-family: inherit;
}
.input:focus, .textarea:focus, select.input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(197, 77, 158, .10), var(--shadow-sm);
}
.textarea {
  height: auto; min-height: 110px;
  padding: 12px 15px;
  resize: vertical; line-height: 1.6;
}
.row { display: flex; gap: 10px; }
.row > * { flex: 1; }
.input::placeholder, .textarea::placeholder { color: var(--muted); }

/* ==================== HERO / BANNER ==================== */
.hero {
  background: var(--grad-hero);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  color: #fff;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.hero::before {
  content: '';
  position: absolute;
  top: -40px; right: -30px;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -20px; left: -20px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: rgba(156,204,69,.10);
  pointer-events: none;
}
.hero h1 { margin: 0 0 8px; font-size: 25px; font-weight: 800; letter-spacing: -0.3px; position: relative; }
.hero p { margin: 0; opacity: .92; font-size: 14px; line-height: 1.5; position: relative; }

.banner {
  height: 160px; border-radius: var(--radius-lg);
  padding: 24px; color: #fff;
  display: flex; flex-direction: column;
  justify-content: flex-end; margin-bottom: 14px;
  position: relative; overflow: hidden;
  box-shadow: var(--shadow);
}
.banner h3 { margin: 0; font-size: 21px; font-weight: 700; position: relative; }
.banner p { margin: 4px 0 0; font-size: 13px; opacity: .9; position: relative; }

/* ==================== TRUST BADGE STRIP（新增） ===== */
.trust-strip {
  display: flex; gap: 8px;
  overflow-x: auto;
  padding: 4px 0 2px;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 14px;
}
.trust-strip::-webkit-scrollbar { display: none; }
.trust-badge {
  flex: none;
  display: flex; flex-direction: column;
  align-items: center; gap: 5px;
  padding: 12px 16px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  min-width: 78px;
  transition: .15s;
}
.trust-badge:hover { border-color: var(--brand-border); transform: translateY(-1px); }
.trust-badge .tb-icon { font-size: 24px; line-height: 1; }
.trust-badge .tb-label { font-size: 11px; color: var(--text-secondary); font-weight: 600; white-space: nowrap; }

/* ==================== SERVICE ICON GRID（新增） ======= */
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.service-item {
  display: flex; flex-direction: column;
  align-items: center; gap: 8px;
  padding: 18px 8px 14px;
  background: var(--card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all .18s ease;
}
.service-item:hover {
  border-color: var(--brand-border);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.service-item .si-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  transition: transform .2s;
}
.service-item:hover .si-icon { transform: scale(1.08); }
.service-item .si-label {
  font-size: 12px; font-weight: 600;
  color: var(--text);
  text-align: center;
  line-height: 1.3;
}

/* ==================== TAGS ==================== */
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  border-radius: var(--radius-sm);
  padding: 5px 11px;
  font-size: 11.5px; font-weight: 600;
  margin: 3px 4px 3px 0;
  line-height: 1.35;
  letter-spacing: 0.2px;
}
.tag.skill, .tag.t-skill { background: #FFF0F7; color: #C54D9E; }
.tag.edu, .tag.t-edu { background: #F0EDFC; color: var(--brand); }
.tag.exp, .tag.t-exp { background: #EBF5FF; color: #2B6CB0; }
.tag.cert, .tag.t-cert { background: #EDF8F1; color: var(--success); }
.tag.gold, .tag.t-gold { background: var(--warm-gold-bg); color: var(--warm-gold); }
.tag.basic { background: #F5F5F5; color: var(--muted); }
.tag.t-life { background: #F4FCEB; color: var(--green-dark); }
.tag.x { background: #FFF0F0; color: var(--danger); }

/* ==================== BADGES ==================== */
.badge-rank {
  width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(135deg, #F5A623, #FFCB5A);
  color: #fff;
  font-size: 12.5px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex: none;
  box-shadow: 0 2px 6px rgba(245,166,35,.35);
}
.badge-rank.top { box-shadow: 0 0 0 3px rgba(245,166,35,.25), 0 2px 8px rgba(245,166,35,.35); }
.auth-badge {
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--warm-gold); font-size: 12px; margin-right: 10px;
  font-weight: 600;
}

/* ==================== COMPANION CARD ==================== */
.cp-card { display: flex; gap: 12px; align-items: center; }
.avatar {
  width: 56px; height: 56px; border-radius: 16px;
  flex: none; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 20px; font-weight: 700;
  background: var(--grad);
  box-shadow: 0 4px 12px rgba(197, 77, 158, 0.25);
}
.cp-meta { flex: 1; min-width: 0; }
.cp-name { font-weight: 700; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.cp-sub { color: var(--muted); font-size: 12px; margin-top: 3px; }
.match-pill {
  font-size: 11.5px; font-weight: 700; color: var(--brand);
  background: var(--brand-bg);
  padding: 3px 10px; border-radius: var(--radius-full);
}

/* Ring chart */
.ring { position: relative; width: 54px; height: 54px; flex: none; }
.ring svg { transform: rotate(-90deg); }
.ring .val {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; color: var(--brand);
}

/* ==================== MODAL ==================== */
#modal-root { position: fixed; inset: 0; z-index: 50; display: none; }
#modal-root.show { display: block; }
.modal-mask {
  position: absolute; inset: 0;
  background: rgba(45, 45, 58, .45);
  backdrop-filter: blur(4px);
}
.modal {
  position: absolute; left: 50%; bottom: 0;
  transform: translateX(-50%);
  width: 100%; max-width: 430px;
  background: #fff;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  max-height: 88vh; overflow-y: auto;
  padding: 24px 20px calc(24px + env(safe-area-inset-bottom));
  animation: slideUp .3s ease both;
  box-shadow: 0 -8px 40px rgba(0,0,0,.12);
}
@keyframes slideUp { from { opacity: 0; transform: translateX(-50%) translateY(20px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }
.modal-title { font-size: 18px; font-weight: 700; margin-bottom: 14px; }
.modal-close {
  position: absolute; right: 18px; top: 18px;
  font-size: 22px; color: var(--muted);
  cursor: pointer; width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; transition: .15s;
}
.modal-close:hover { background: var(--bg); color: var(--text); }

/* ==================== DRAWER ==================== */
.drawer {
  position: fixed; top: 0; right: 0; height: 100%;
  width: 86%; max-width: 380px;
  background: #fff; z-index: 60;
  transform: translateX(100%);
  transition: .3s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column;
  box-shadow: -8px 0 40px rgba(0,0,0,.12);
}
.drawer.show { transform: translateX(0); }
.drawer-head {
  padding: 16px 18px; font-weight: 700; font-size: 16px;
  border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
}
.drawer-body { flex: 1; overflow-y: auto; padding: 14px 18px; }

/* ==================== TOAST ==================== */
#toast {
  position: fixed; left: 50%; bottom: 120px;
  transform: translateX(-50%);
  background: rgba(45, 45, 58, .92);
  color: #fff;
  padding: 12px 22px;
  border-radius: var(--radius-full);
  font-size: 13px; font-weight: 500;
  z-index: 80; opacity: 0; transition: .25s;
  pointer-events: none; max-width: 80%; text-align: center;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-lg);
}
#toast.show { opacity: 1; }

/* ==================== MISC ==================== */
.divider { height: 1px; background: var(--line); margin: 16px 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat-box {
  background: var(--card); border-radius: var(--radius);
  padding: 16px 12px; text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}
.stat-box .v { font-size: 24px; font-weight: 800; color: var(--brand); }
.stat-box .l { font-size: 11.5px; color: var(--muted); margin-top: 4px; }

.flow-step { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.flow-num {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--grad); color: #fff; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px;
  box-shadow: 0 3px 10px rgba(197, 77, 158, .3);
}
.sticky-bar {
  /* 之前 position:fixed; bottom:0 与底部 #tabbar(同样 fixed bottom:0) 完全重叠，
     "生成分享"按钮被 tab 栏盖住——1280×900 与多数窄视口下点不到。
     偏移到 tabbar 上方并提高层级，确保规划师必点的"生成分享"始终可点。
     tabbar 实际高度 ~56-60px，64px 留一点视觉间隙。 */
  position: fixed; bottom: calc(64px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px;
  background: rgba(255,255,255,.95);
  border-top: 1px solid var(--line);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  display: flex; gap: 10px; z-index: 25;
  backdrop-filter: blur(12px);
}
.qr {
  width: 180px; height: 180px; margin: 10px auto;
  background: repeating-conic-gradient(#2D2D3A 0 25%, #fff 0 50%) 0/24px 24px;
  border-radius: var(--radius); border: 8px solid #fff;
  box-shadow: var(--shadow);
}
.cond-chip {
  display: inline-flex; background: var(--brand-bg); color: var(--brand);
  border-radius: var(--radius-sm); padding: 5px 11px;
  font-size: 11.5px; margin: 3px 4px 3px 0;
  font-weight: 500;
}
.empty { text-align: center; color: var(--muted); padding: 44px 12px; font-size: 13px; }
.line-item {
  display: flex; justify-content: space-between;
  padding: 12px 0; border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.line-item:last-child { border-bottom: none; }

.pill-nav { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.pill-nav::-webkit-scrollbar { display: none; }
.pill-nav .pn {
  flex: none; background: #fff; border: 1.5px solid var(--line);
  border-radius: var(--radius-full); padding: 8px 16px;
  font-size: 13px; color: var(--text-secondary); font-weight: 500;
  transition: .15s;
}
.pill-nav .pn.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.drag-handle { cursor: grab; color: var(--muted); font-size: 18px; padding: 0 6px; align-self: center; }
.dragging { opacity: .45; }
.drop-before { box-shadow: 0 -3px 0 var(--brand); }
.upgrade-note {
  background: var(--warm-gold-bg); border: 1px solid #F0D898;
  color: #8a6d2f; border-radius: var(--radius);
  padding: 10px 14px; font-size: 12px; margin-bottom: 12px;
}

/* ==================== 多孩表单 ==================== */
.child-card {
  background: var(--bg-warm);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px; margin-bottom: 10px;
  position: relative; transition: .15s;
}
.child-card:hover { border-color: var(--brand-border); box-shadow: var(--shadow-sm); }
.child-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.child-label { font-size: 14px; font-weight: 700; color: var(--brand); }
.btn-x {
  width: 24px; height: 24px; border-radius: 50%; border: none;
  background: #FFF0F0; color: var(--danger);
  font-size: 14px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  line-height: 1; transition: .15s;
}
.btn-x:hover { background: #FFD0D0; transform: scale(1.1); }
.child-card .field { margin-bottom: 8px; }
.child-card .field label { font-size: 11px; }

/* 工作台顶部 hero */
.work-hero {
  background: var(--grad-hero); border-radius: var(--radius-lg);
  padding: 22px 24px; color: #fff; margin-bottom: 14px;
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-md);
}
.work-hero::before {
  content: ''; position: absolute; top: -30px; right: -20px;
  width: 140px; height: 140px; border-radius: 50%;
  background: rgba(255,255,255,.07);
}
.work-hero h2 { margin: 0; font-size: 21px; font-weight: 800; position: relative; }
.work-hero p { margin: 5px 0 0; font-size: 13px; opacity:.9; position: relative; }

/* 快捷入口 */
.quick-entry {
  display: flex; gap: 12px; align-items: center;
  background: var(--card); border-radius: var(--radius-md);
  padding: 16px 18px;
  box-shadow: var(--shadow-card);
  cursor: pointer; border: 1.5px solid transparent;
  transition: all .18s ease;
}
.quick-entry:hover {
  border-color: var(--brand-border);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
  background: var(--brand-bg);
}
.quick-entry .qe-icon { font-size: 24px; flex: none; }
.quick-entry .qe-body { flex: 1; }
.quick-entry .qe-title { font-weight: 700; font-size: 14.5px; color: var(--text); }
.quick-entry .qe-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* 卡片微调 */
.card.lift { transition: transform .15s, box-shadow .15s; }
.card.lift:active { transform: scale(.98); }

/* 匹配结果卡片 */
.match-item { transition: all .2s ease; }
.match-item:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-2px); }

/* 分享弹窗美化 */
.share-qr-area { text-align: center; padding: 16px 0; }
.share-qr-area .qr-large {
  width: 200px; height: 200px; margin: 0 auto 12px;
  background: repeating-conic-gradient(#2D2D3A 0 25%, #fff 0 50%) 0/22px 22px;
  border-radius: var(--radius-lg); border: 10px solid #fff;
  box-shadow: var(--shadow-lg);
}
.share-link-box {
  background: var(--bg); border-radius: var(--radius);
  padding: 12px; display: flex; gap: 8px; align-items: center;
}
.share-link-box input { flex: 1; font-size: 12px; }

/* 测验选项 */
.opt { transition: all .15s ease; border-color: var(--line)!important; background: #fff; }
.opt:hover { border-color: var(--brand-border)!important; background: var(--brand-bg); }
.opt.on { border-color: var(--brand)!important; background: var(--brand-bg); color: var(--brand); font-weight: 700; }

/* Loading */
.spinner {
  display: inline-block; width: 22px; height: 22px;
  border: 3px solid var(--line); border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin .6s linear infinite; flex: none;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-mask {
  position: absolute; inset: 0;
  background: rgba(255,255,255,.75);
  display: flex; align-items: center; justify-content: center;
  z-index: 10; border-radius: inherit;
}
.btn .spinner { width: 18px; height: 18px; border-width: 2.5px; margin-right: 6px; }

/* 骨架屏 */
.skeleton {
  background: linear-gradient(90deg, #f8f6fa 25%, #ede8f4 50%, #f8f6fa 75%);
  background-size: 200% 100%;
  animation: skeleton 1.2s ease-in-out infinite;
  border-radius: 8px;
}
@keyframes skeleton { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

/* 状态标签 */
.status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 6px; flex: none; }
.status-dot.green { background: var(--success); }
.status-dot.gold { background: var(--warm-gold); }
.status-dot.red { background: var(--danger); }

/* 动画过渡 */
.fade-in { animation: fadeIn .3s ease both; }
@keyframes fadeIn { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:translateY(0)} }

/* 悬浮录入按钮 */
#fab {
  /* 之前 bottom:78px 会与匹配结果页的 .sticky-bar（修复后 bottom:64px、高约 70-80px）视觉重叠，
     遮住"生成分享链接"按钮的"维"字。偏移到 sticky-bar 上方 12-16px。
     匹配结果页 sticky-bar 不出现时，FAB 仍在 tabbar 上方合理位置。 */
  position: fixed; right: max(18px, calc(50% - 215px + 18px)); bottom: 144px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--grad); color: #fff; font-size: 28px; line-height: 58px;
  text-align: center; box-shadow: var(--shadow-fab);
  cursor: pointer; display: none; user-select: none; transition: .2s cubic-bezier(.34,1.56,.64,1);
  border: none;
}
#fab:hover { transform: scale(1.1) rotate(90deg); box-shadow: 0 12px 32px rgba(197, 77, 158, .5); }
#fab:active { transform: scale(.94); }
@media (max-width: 479px) { #fab { right: 18px; } }

/* AI 智能录入 */
.ai-intake { background: var(--brand-bg); border: 1px solid var(--brand-border); border-radius: var(--radius); padding: 12px; margin-bottom: 6px; }
.ai-intake-hint { font-size: 12.5px; color: #8a3b6a; line-height: 1.65; margin-bottom: 10px; }
.ai-intake-hint b { color: var(--brand-dark); }
.attach-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.attach-btn {
  display: inline-flex; align-items: center; gap: 4px;
  background: #fff; border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); padding: 8px 14px;
  font-size: 13px; color: var(--text); cursor: pointer;
  transition: .15s;
}
.attach-btn:hover { border-color: var(--brand); color: var(--brand); }
.attach-prev { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.thumb {
  position: relative; width: 64px; height: 64px;
  border-radius: var(--radius-sm); overflow: hidden;
  background: var(--bg); border: 1.5px solid var(--line);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.vid { display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 22px; color: var(--brand); }
.thumb-x {
  position: absolute; top: 1px; right: 2px;
  width: 18px; height: 18px; border-radius: 50%;
  background: rgba(45,45,58,.75); color: #fff;
  font-size: 12px; line-height: 18px; text-align: center; cursor: pointer;
}
.ai-note { margin-top: 10px; }
.ai-ok, .ai-loading { background: #EDF8F1; color: #2f7d4f; border-radius: var(--radius-sm); padding: 9px 14px; font-size: 12.5px; line-height: 1.5; }
/* 进度中：外观与成功态一致，但 class 必须分开——自动化测试靠 .ai-ok 判断「解析完了」 */
.ai-loading { background: #F1F5F9; color: #475569; }
.ai-warn { background: #FFF6E9; color: #B26A00; border-radius: var(--radius-sm); padding: 8px 12px; font-size: 12px; line-height: 1.5; margin-top: 6px; }
.kv { display: flex; gap: 10px; padding: 6px 0; border-bottom: 1px solid rgba(0,0,0,.05); font-size: 13px; }
.kv:last-child { border-bottom: none; }
.kv .k { flex: 0 0 88px; color: var(--muted); }
.kv .v { flex: 1; color: var(--text); font-weight: 600; word-break: break-word; }
.docx-stats { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.docx-stats .ds { flex: 1; min-width: 56px; background: var(--bg); border-radius: var(--radius-sm); padding: 8px 4px; text-align: center; }
.docx-stats .ds .v { font-size: 18px; font-weight: 800; color: var(--brand); }
.docx-stats .ds .l { font-size: 11px; color: var(--muted); margin-top: 2px; }
.docx-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.docx-thumb { position: relative; aspect-ratio: 1/1; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg); display: flex; align-items: center; justify-content: center; }
.docx-thumb img { width: 100%; height: 100%; object-fit: cover; }
.docx-thumb.vid { color: var(--brand); font-size: 22px; text-decoration: none; }
.docx-thumb.vid span { position: absolute; bottom: 4px; left: 4px; right: 4px; font-size: 10px; color: var(--text); background: rgba(255,255,255,.8); border-radius: 4px; padding: 1px 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ole-card { display:flex; align-items:center; gap:10px; padding:10px 12px; background:#FAF8FF; border:1px solid #EDE8FC; border-radius:var(--radius-sm); margin-bottom:6px; }
.ole-icon { font-size:22px; flex-shrink:0; }
.ole-info { flex:1; min-width:0; }
.ole-info b { font-size:13px; display:block; }
.ole-info .hint { font-size:11px; word-break:break-all; }
.gal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.gal-img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: var(--radius-sm); background: var(--bg); }
.vid-player { width: 100%; border-radius: var(--radius-md); background: #000; max-height: 280px; }


/* ================================================================
   PRD 视觉规范 V2 — 高端教育感（品红+嫩绿版）
   ================================================================ */

.big-title { font-size: 25px; font-weight: 800; line-height: 1.25; color: var(--text); }
.mod-title { font-size: 17.5px; font-weight: 700; line-height: 1.4; display: flex; align-items: center; gap: 10px; color: var(--text); margin-bottom: 4px; }
.mod-title .mt-bar { width: 4px; height: 18px; border-radius: 2px; background: linear-gradient(180deg, var(--warm-gold), #FFCB5A); flex: none; }


/* ===== 家长公开详情页：280px 品红渐变头图 ===== */
.phero {
  position: relative; height: 280px;
  background: var(--grad-hero); color: #fff;
  overflow: hidden;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  margin: -16px -16px 24px;
  box-shadow: 0 14px 40px rgba(197, 77, 158, .22);
}
.phero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 88% 14%, rgba(245,166,97,.30) 0, transparent 38%),
    radial-gradient(circle at 8% 92%, rgba(232,160,191,.25) 0, transparent 42%);
  pointer-events: none;
}
.phero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 80px;
  background: linear-gradient(180deg, transparent, rgba(45,45,58,.5));
  pointer-events: none;
}
.phero svg.phero-deco { position: absolute; right: -30px; top: -20px; opacity: .18; pointer-events: none; }
.phero-top { display: flex; justify-content: space-between; padding: 18px 16px 0; position: relative; z-index: 2; }
.phero-back, .phero-fav {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.18); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  color: #fff; cursor: pointer; border: none;
  font-size: 18px; transition: .15s;
}
.phero-back:hover, .phero-fav:hover { background: rgba(255,255,255,.32); }
.phero-fav.on { background: var(--warm-gold); color: #fff; }
.phero-fav.on::before { content: "♥"; }
.phero-fav::before { content: "♡"; }
.phero-content { position: absolute; left: 18px; right: 18px; bottom: 22px; display: flex; align-items: flex-end; gap: 16px; z-index: 2; }
.phero-avatar {
  width: 84px; height: 84px; border-radius: 50%; flex: none;
  background: var(--card); display: flex; align-items: center; justify-content: center;
  font-size: 32px; font-weight: 800; color: var(--brand);
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  border: 4px solid #fff;
}
.phero-text { flex: 1; min-width: 0; padding-bottom: 2px; }
.phero-name { font-size: 25px; font-weight: 800; line-height: 1.2; text-shadow: 0 2px 6px rgba(0,0,0,.18); }
.phero-meta { margin-top: 6px; font-size: 13px; opacity:.92; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.phero-meta .dot { opacity: .55; }
.phero-academy {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--warm-gold); color: #fff;
  padding: 4px 10px; border-radius: var(--radius-sm);
  font-size: 11px; font-weight: 800; margin-top: 8px;
  box-shadow: 0 2px 6px rgba(245,166,35,.3);
}


/* ===== 认证标识栏 ===== */
.verify-bar {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  background: var(--card); border-radius: var(--radius-md);
  padding: 16px 10px; box-shadow: var(--shadow-card); margin-bottom: 16px;
}
.verify-item { text-align: center; font-size: 11.5px; color: var(--warm-gold); font-weight: 700; line-height: 1.5; }
.verify-item .vic { font-size: 22px; display: block; margin-bottom: 4px; }
.verify-item.off { color: var(--muted); opacity: .5; }
.verify-item.off .vic { color: var(--muted); }


/* ===== 核心标签 横向滚动 ===== */
.tag-row { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 4px; -webkit-overflow-scrolling: touch; }
.tag-row::-webkit-scrollbar { display: none; }
.tag-row .tag { flex: none; margin: 0; }


/* ===== 基本信息 2 列网格 ===== */
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.info-cell { display: flex; flex-direction: column; gap: 5px; padding: 6px 0; }
.info-cell .l { font-size: 12px; color: var(--muted); font-weight: 500; }
.info-cell .v { font-size: 14.5px; color: var(--text); font-weight: 700; }
.info-cell .v.gold { color: var(--brand); font-weight: 800; font-size: 19px; }


/* ===== 教育/工作 时间线 ===== */
.timeline { position: relative; padding-left: 26px; }
.timeline::before {
  content: ""; position: absolute; left: 8px; top: 10px; bottom: 10px;
  width: 2px; background: linear-gradient(180deg, var(--brand), var(--brand-light) 60%, transparent);
}
.tl-item { position: relative; padding: 0 0 24px 8px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: -22px; top: 6px;
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff; border: 3px solid var(--brand);
  box-shadow: 0 0 0 5px var(--brand-bg);
}
.tl-item.tl-cert::before { border-color: var(--warm-gold); box-shadow: 0 0 0 4px var(--warm-gold-bg); }
.tl-period { font-size: 12.5px; color: var(--warm-gold); font-weight: 800; letter-spacing: .3px; }
.tl-title { font-size: 15.5px; font-weight: 700; color: var(--text); margin-top: 6px; line-height: 1.5; }
.tl-meta { font-size: 13px; color: var(--muted); margin-top: 6px; line-height: 1.7; }
.tl-body { font-size: 13.5px; color: var(--text); margin-top: 10px; line-height: 1.85; }
.tl-result {
  margin-top: 10px; background: #EDF8F1; color: #2f7d4f;
  border-radius: 10px; padding: 8px 14px; font-size: 12.5px; display: inline-block; font-weight: 600;
  line-height: 1.6;
}


/* ===== 证书卡片 ===== */
.cert-list { display: grid; grid-template-columns: 1fr; gap: 10px; }
.cert-item {
  background: var(--bg-warm); border: 1px solid var(--line);
  border-radius: var(--radius-md); padding: 12px 14px;
  display: flex; gap: 12px; align-items: center;
  transition: box-shadow .2s;
}
.cert-item:hover { box-shadow: var(--shadow-card-hover); }
.cert-item .ci-ic {
  width: 36px; height: 36px; border-radius: 10px;
  background: #EDF8F1; color: var(--success);
  flex: none; display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.cert-item .ci-name { font-size: 13px; font-weight: 700; color: var(--text); }
.cert-item .ci-meta { font-size: 11px; color: var(--muted); margin-top: 2px; }


/* ===== 育儿主张 引用样式 ===== */
.quote-card {
  position: relative;
  background: linear-gradient(135deg, #FFF0F7, #FCE8F5);
  border-radius: var(--radius); padding: 18px 18px 16px 38px;
  border-left: 4px solid var(--brand); margin: 0;
}
.quote-card::before {
  content: "\201C"; position: absolute; left: 10px; top: 2px;
  font-size: 46px; line-height: 1; color: var(--brand-light);
  font-family: Georgia, serif; opacity: .35;
}
.quote-card .qt { font-size: 14.5px; line-height: 1.85; color: var(--text); font-weight: 500; }
.quote-card .qa { margin-top: 8px; font-size: 12px; color: var(--brand); font-weight: 700; text-align: right; }


/* ===== 特长技能 — 宽松卡片式布局 ===== */
.skill-cat { display: grid; grid-template-columns: 1fr; gap: 12px; }
.skill-cat .sc {
  background: var(--bg-warm); border: 1px solid var(--line);
  border-radius: var(--radius-md); padding: 14px 16px;
  transition: box-shadow .2s, transform .15s;
}
.skill-cat .sc:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-1px);
}
.skill-cat .sc-name { font-size: 12px; font-weight: 800; color: var(--brand); letter-spacing: .5px; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.skill-cat .sc-name::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); flex: none; }
.skill-cat .sc-vals { font-size: 14px; color: var(--text); line-height: 1.9; }


/* ===== 视频 16:9 ===== */
.vid-wrap { position: relative; width: 100%; aspect-ratio: 16/9; background: #000; border-radius: var(--radius-md); overflow: hidden; }
.vid-wrap video { width: 100%; height: 100%; object-fit: cover; }


/* ===== 照片墙 3 列 ===== */
.photo-wall { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.photo-wall .ph {
  aspect-ratio: 1/1; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--brand-bg), #FDF2F8);
  overflow: hidden; display: flex; align-items: center; justify-content: center;
  color: var(--brand-light); font-size: 32px; font-weight: 700;
  border: 1px solid var(--line);
}


/* ===== 视频/照片占位 ===== */
.media-empty {
  background: repeating-linear-gradient(45deg, var(--bg-warm) 0 12px, #fff 12px 24px);
  border: 1.5px dashed var(--line); border-radius: var(--radius);
  color: var(--muted); text-align: center; padding: 30px 10px; font-size: 12px;
}


/* ===== 分享落地页 顾问品牌头 ===== */
.share-hero {
  position: relative; margin: -16px -16px 18px;
  background: var(--grad-hero); color: #fff;
  padding: 24px 18px 64px;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  box-shadow: 0 14px 40px rgba(197, 77, 158, .2);
  overflow: hidden;
}
.share-hero::after {
  content: ""; position: absolute; right: -30px; top: -30px;
  width: 140px; height: 140px; border-radius: 50%;
  background: rgba(245,166,97,.18);
}
.share-hero .sh-eyebrow { font-size: 12px; opacity:.85; letter-spacing: 2px; font-weight: 600; }
.share-hero .sh-h { font-size: 23px; font-weight: 800; margin-top: 6px; line-height: 1.3; }
.share-hero .sh-sub { margin-top: 6px; font-size: 13px; opacity:.9; }
.share-hero .sh-advisor {
  position: absolute; left: 18px; bottom: 18px;
  display: flex; align-items: center; gap: 10px; z-index: 2;
}
.share-hero .sh-advisor .ava {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.22);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 17px; color: #fff;
}
.share-hero .sh-advisor .name { font-weight: 700; font-size: 14px; }
.share-hero .sh-advisor .role { font-size: 12px; opacity:.82; }


/* ===== 分享落地页 推荐卡片 ===== */
.rec-card {
  position: relative; background: var(--card);
  border-radius: var(--radius-lg); padding: 16px 16px 14px;
  box-shadow: var(--shadow-card); margin-bottom: 12px;
  cursor: pointer; transition: all .18s ease;
  border: 1.5px solid transparent;
  overflow: hidden;
}
.rec-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: var(--grad); opacity: 0;
  transition: opacity .18s;
}
.rec-card:hover {
  transform: translateY(-2px); box-shadow: var(--shadow-card-hover);
  border-color: var(--brand-border);
}
.rec-card:hover::before { opacity: 1; }
.rec-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.rec-avatar {
  width: 54px; height: 54px; border-radius: 14px; flex: none;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 20px;
  background: var(--grad);
  box-shadow: 0 4px 12px rgba(197, 77, 158, .25);
}
.rec-meta { flex: 1; min-width: 0; }
.rec-name { font-size: 16px; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 6px; }
.rec-name .rank {
  width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(135deg, #F5A623, #FFCB5A);
  color: #fff; font-size: 11px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex: none;
}
.rec-name .rank.top { box-shadow: 0 0 0 3px rgba(245,166,25,.25); }
.rec-sub { font-size: 12px; color: var(--muted); margin-top: 3px; }
.rec-score { display: flex; flex-direction: column; align-items: center; gap: 2px; flex: none; }
.rec-score .pct { font-size: 19px; font-weight: 800; color: var(--brand); line-height: 1; }
.rec-score .lbl { font-size: 10px; color: var(--muted); }
.rec-score.gold .pct { color: var(--warm-gold); }
.rec-reason {
  font-size: 13px; line-height: 1.7; color: var(--text);
  background: var(--bg); border-radius: var(--radius-sm);
  padding: 10px 12px; border-left: 3px solid var(--brand-light);
  margin-top: 8px; position: relative;
}
.rec-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.rec-cta { margin-top: 10px; display: flex; justify-content: space-between; align-items: center; }
.rec-cta .ct-pill { font-size: 12px; font-weight: 700; color: var(--brand); background: var(--brand-bg); padding: 4px 10px; border-radius: var(--radius-full); }
.rec-cta .ct-more { font-size: 12px; color: var(--brand); font-weight: 600; }


/* ===== 招聘广告卡片 ===== */
.brand-strip { display: flex; gap: 8px; overflow-x: auto; padding: 2px; -webkit-overflow-scrolling: touch; }
.brand-strip::-webkit-scrollbar { display: none; }
.brand-strip .bs {
  flex: none; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 10px 12px; min-width: 120px;
}
.brand-strip .bs .v { font-size: 18px; font-weight: 800; color: var(--brand); }
.brand-strip .bs .l { font-size: 11px; color: var(--muted); }


/* ===== 简历库管理页 ===== */
.lib-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.lib-stat {
  background: var(--card); border-radius: var(--radius);
  padding: 14px 10px; text-align: center;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
}
.lib-stat .v { font-size: 22px; font-weight: 800; color: var(--brand); line-height: 1.2; }
.lib-stat .l { font-size: 11px; color: var(--muted); margin-top: 3px; }
.lib-toolbar { display: flex; gap: 8px; margin-bottom: 12px; align-items: center; flex-wrap: wrap; }
.lib-toolbar .input { flex: 1; min-width: 140px; height: 40px; font-size: 13px; padding: 0 12px; }
.lib-toolbar select.input { height: 40px; flex: none; width: auto; min-width: 96px; }
.lib-view { flex: none; display: flex; background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.lib-view button {
  height: 40px; border: none; background: #fff;
  color: var(--muted); cursor: pointer; font-size: 13px; padding: 0 14px;
  font-weight: 500; transition: .15s;
}
.lib-view button.on { background: var(--brand); color: #fff; }

/* 简历库表格式视图 */
.lib-table {
  width: 100%; background: var(--card);
  border-radius: var(--radius-md); overflow: hidden;
  box-shadow: var(--shadow-card); font-size: 13px;
}
.lib-table .ltr {
  display: grid; grid-template-columns: 42px 1fr 80px 60px 70px 56px;
  border-bottom: 1px solid var(--line); align-items: center;
}
.lib-table .ltr:last-child { border-bottom: none; }
.lib-table .ltr.head { background: var(--bg); color: var(--text-secondary); font-size: 12px; font-weight: 700; }
.lib-table .ltr.head span { padding: 10px 8px; }
.lib-table .ltr > * { padding: 10px 8px; }
.lib-table .ltb {
  background: none; border: none; color: var(--brand);
  cursor: pointer; font-size: 16px; padding: 6px; line-height: 1;
  border-radius: 6px; transition: .12s;
}
.lib-table .ltb:hover { background: var(--brand-bg); }
.lib-pic {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--grad); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 13px;
}

/* 简历库卡片视图 */
.lib-card {
  background: var(--card); border-radius: var(--radius-md);
  padding: 14px; margin-bottom: 10px;
  box-shadow: var(--shadow-card);
  display: flex; gap: 12px; align-items: flex-start;
  transition: all .18s ease; cursor: pointer;
  border: 1.5px solid transparent;
}
.lib-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-card-hover); border-color: var(--brand-border); }
.lib-card .lc-avt {
  width: 54px; height: 54px; border-radius: 14px; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 20px; color: #fff;
  background: var(--grad);
}
.lib-card .lc-body { flex: 1; min-width: 0; }
.lib-card .lc-name { font-size: 15px; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.lib-card .lc-meta { font-size: 12px; color: var(--muted); margin-top: 4px; line-height: 1.5; }
.lib-card .lc-meta b { color: var(--text); font-weight: 600; }
.lib-card .lc-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 6px; }
.lib-card .lc-tags .tag { padding: 2px 8px; font-size: 11px; margin: 0; }
.lib-card .lc-bar { margin-top: 8px; display: flex; align-items: center; gap: 10px; }
.lib-card .lc-bar .comp { font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.lib-card .lc-bar .pb { flex: 1; height: 4px; background: #F0EDF8; border-radius: 4px; overflow: hidden; max-width: 80px; }
.lib-card .lc-bar .pb > span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--brand-light)); }
.lib-card .lc-actions { display: flex; flex-direction: column; gap: 6px; flex: none; }
.lib-card .lc-actions button {
  padding: 0 10px; height: 30px; font-size: 12px;
  border-radius: var(--radius-sm); border: 1.5px solid var(--line);
  background: #fff; color: var(--text); cursor: pointer;
  font-weight: 600; white-space: nowrap; transition: .12s;
}
.lib-card .lc-actions button.share { background: var(--grad); color: #fff; border-color: transparent; }
.lib-card .lc-actions button.share:hover { transform: scale(1.04); }
.lib-card .lc-actions button:hover { border-color: var(--brand); color: var(--brand); }


/* ===== 简历详情内部备注预览 ===== */
.note-strip {
  background: var(--warm-gold-bg); border: 1px solid #F0D898;
  border-radius: var(--radius-sm); padding: 8px 10px;
  font-size: 12px; color: #8a6d2f; margin-top: 6px;
  display: flex; align-items: flex-start; gap: 6px; line-height: 1.5;
}
.note-strip::before { content: "\1F4CC"; flex: none; }


/* ===== 分享链接 弹窗 ===== */
.share-result { background: var(--bg); border-radius: var(--radius); padding: 12px; margin-top: 10px; }
.share-result .lk {
  font-family: Menlo, Consolas, monospace; font-size: 11.5px;
  color: var(--brand); word-break: break-all;
  background: #fff; padding: 8px 10px;
  border-radius: var(--radius-sm); border: 1px solid var(--line);
  margin-bottom: 8px; user-select: all;
}


/* ===== 文案配置中心 ===== */
.cfg-group { border: 1.5px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; background: #fff; }
.cfg-group-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px; font-weight: 700; font-size: 15px;
  cursor: pointer;
  background: linear-gradient(90deg, rgba(197,77,158,.06), rgba(255,170,150,.05));
}
.cfg-caret { transition: transform .2s; color: var(--muted); font-size: 13px; }
.cfg-caret.collapsed { transform: rotate(-90deg); }
.cfg-group-body { padding: 14px 16px; }


/* ================================================================
   运营管理后台 · 数据看板视觉升级
   ================================================================ */

/* 三列统计格 */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }

/* 统计盒 · 带品牌强调色 */
.stat-box .sb-ic { font-size: 18px; margin-bottom: 4px; opacity: .92; }
.stat-box .v { line-height: 1.15; }
.stat-box.accent-pink { border-color: var(--brand-border); background: linear-gradient(160deg, #FFF0F7, #FFFFFF); }
.stat-box.accent-gold { border-color: #F0D898; background: linear-gradient(160deg, #FFF5E6, #FFFFFF); }
.stat-box.accent-green { border-color: var(--green-border); background: linear-gradient(160deg, #F4FCEB, #FFFFFF); }

/* 分布条形图 */
.bar-row { display: flex; align-items: center; gap: 10px; margin: 9px 0; }
.bar-label { flex: none; width: 66px; font-size: 12.5px; color: var(--text-secondary); }
.bar-track { flex: 1; height: 10px; background: #F1EDF1; border-radius: var(--radius-full); overflow: hidden; }
.bar-fill { height: 100%; border-radius: var(--radius-full); transition: width .6s cubic-bezier(.4,0,.2,1); }
.bar-val { flex: none; width: 36px; text-align: right; font-size: 12.5px; font-weight: 700; color: var(--text); }

/* 标签墙 */
.tag-wrap { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }

/* 转化漏斗 */
.funnel-row { margin: 12px 0; }
.funnel-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; margin-bottom: 6px; }
.funnel-head b { color: var(--brand); font-size: 15px; }
.funnel-track { height: 22px; background: #F4EEF2; border-radius: var(--radius-sm); overflow: hidden; }
.funnel-fill { height: 100%; border-radius: var(--radius-sm); transition: width .7s cubic-bezier(.4,0,.2,1); }

/* 需求空态卡片 */
.req-empty {
  text-align: center; padding: 36px 16px;
  background: linear-gradient(160deg, #FFF0F7, #FFFFFF);
  border-radius: var(--radius-md); border: 1px dashed var(--brand-border);
}
.req-empty .re-ic {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--grad-green); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; margin: 0 auto 12px; box-shadow: var(--shadow-card);
}
.req-empty .re-t { font-weight: 700; font-size: 15px; margin-bottom: 6px; color: var(--text); }
.req-empty .re-d { color: var(--muted); font-size: 12.5px; line-height: 1.6; margin-bottom: 16px; }


/* ================================================================
   视觉升级 V2 · Hero Pro / 斜角丝带 / 玻璃拟态 / 自绘 SVG 图标
   ================================================================ */

/* —— Hero Pro：LOGO 当主角 + 数据玻璃卡 —— */
.hero-pro {
  background: var(--grad-hero);
  border-radius: var(--radius-xl);
  color: #fff;
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  padding: 16px 22px 20px;
  min-height: 340px;
  display: flex; flex-direction: column;
}
.hero-pro .hero-deco {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.hero-pro .hero-top-row {
  display: flex; align-items: center; justify-content: space-between;
  position: relative; z-index: 2;
  font-weight: 700; font-size: 13.5px;
  letter-spacing: .5px;
}
.hero-pro .hero-top-row .ht-right {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.2);
  padding: 4px 11px;
  border-radius: var(--radius-full);
  font-size: 11.5px; font-weight: 600;
  backdrop-filter: blur(8px);
}
.hero-pro .hero-logo-mark {
  display: flex; justify-content: center;
  margin: 10px 0 8px;
  position: relative; z-index: 2;
}
.hero-pro .hero-logo-mark svg {
  width: 120px; height: 120px;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,.20));
}
.hero-pro .hero-headline {
  text-align: center;
  position: relative; z-index: 2;
  margin-bottom: 18px;
}
.hero-pro .hero-headline h1 {
  margin: 0 0 6px; font-size: 25px; font-weight: 800;
  letter-spacing: -.5px;
  text-shadow: 0 2px 10px rgba(0,0,0,.18);
  line-height: 1.25;
}
.hero-pro .hero-headline p {
  margin: 0; font-size: 13px; opacity: .92;
  font-weight: 500;
}
.hero-pro .hero-glass {
  position: relative; z-index: 2;
  background: rgba(255,255,255,.20);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radius);
  padding: 13px 8px;
  border: 1px solid rgba(255,255,255,.30);
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: auto;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25);
}
.hero-glass-item {
  text-align: center;
  position: relative;
}
.hero-glass-item:not(:last-child)::after {
  content: ''; position: absolute; right: -3px; top: 16%; height: 68%;
  width: 1px; background: rgba(255,255,255,.30);
}
.hero-glass-item b {
  display: block; font-size: 20px; font-weight: 800;
  text-shadow: 0 1px 3px rgba(0,0,0,.14);
  letter-spacing: -.5px;
  line-height: 1.1;
}
.hero-glass-item span {
  display: block; font-size: 10.5px; opacity: .92;
  margin-top: 3px; font-weight: 500;
}

/* —— 自绘 SVG 服务图标：浮在彩色渐变方块上 —— */
.service-item .si-icon svg {
  width: 32px; height: 32px;
  display: block;
}

/* —— 斜角丝带促销条（对标丫好"平台补贴"） —— */
.promo-banner {
  background: linear-gradient(135deg, #FFB347 0%, #FF7A8A 55%, #E8618A 100%);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  display: flex; align-items: center; gap: 14px;
  color: #fff; position: relative; overflow: hidden;
  box-shadow: 0 10px 28px rgba(255,122,138,.32);
  margin-bottom: 16px;
}
.promo-banner::before {
  content: ''; position: absolute; top: -36px; right: -28px;
  width: 130px; height: 130px; border-radius: 50%;
  background: rgba(255,255,255,.16);
}
.promo-banner::after {
  content: ''; position: absolute; bottom: -50px; left: -10px;
  width: 110px; height: 110px; border-radius: 50%;
  background: rgba(255,255,255,.10);
}
.promo-banner .pb-icon {
  width: 54px; height: 54px; flex: none;
  border-radius: 16px;
  background: rgba(255,255,255,.28);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  position: relative; z-index: 2;
  box-shadow: inset 0 1px 2px rgba(255,255,255,.35);
}
.promo-banner .pb-body {
  flex: 1; min-width: 0; position: relative; z-index: 2;
}
.promo-ribbon {
  display: inline-block;
  background: #fff; color: #E55A6A;
  font-weight: 800; font-size: 10.5px;
  padding: 3px 9px;
  border-radius: 4px;
  letter-spacing: .8px;
  transform: rotate(-3deg);
  box-shadow: 0 3px 10px rgba(0,0,0,.12);
}
.promo-banner .pb-title {
  font-size: 18px; font-weight: 800; line-height: 1.3;
  margin-top: 6px;
  text-shadow: 0 1px 3px rgba(0,0,0,.14);
  letter-spacing: -.2px;
}
.promo-banner .pb-desc {
  font-size: 11.5px; opacity: .94; margin-top: 2px;
  font-weight: 500;
}
.promo-banner .pb-cta {
  background: #fff; color: #E55A6A;
  font-weight: 700; font-size: 13px;
  padding: 9px 16px;
  border-radius: var(--radius-full);
  border: none; flex: none;
  position: relative; z-index: 2;
  box-shadow: 0 6px 14px rgba(0,0,0,.16);
  cursor: pointer;
  transition: transform .15s;
}
.promo-banner .pb-cta:active { transform: scale(.95); }

/* —— Hero 装饰层（叶子 + 圆点 + 火花） —— */
.hero-deco .deco-leaf {
  position: absolute;
  animation: leafFloat 6s ease-in-out infinite;
  opacity: .9;
}
.hero-deco .deco-leaf:nth-of-type(2) { animation-delay: -2s; }
.hero-deco .deco-leaf:nth-of-type(3) { animation-delay: -4s; }
@keyframes leafFloat {
  0%, 100% { transform: translateY(0) rotate(-8deg); }
  50% { transform: translateY(-10px) rotate(8deg); }
}
.hero-deco .deco-dot {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  animation: dotPulse 4s ease-in-out infinite;
}
.hero-deco .deco-dot:nth-of-type(odd) { animation-delay: -1.5s; }
@keyframes dotPulse {
  0%, 100% { opacity: .3; transform: scale(1); }
  50% { opacity: .8; transform: scale(1.3); }

/* —— 角色 / B端入口图标框（自绘 SVG 居中） —— */
.role-ic-box svg { width: 30px; height: 30px; display: block; }
.role-ic-box.sm svg { width: 26px; height: 26px; display: block; }
}

/* ==================== 图片资产适配（v2新增） ==================== */

/* Hero 照片背景层：在渐变之上叠加真人摄影主视觉 */
.hero-photo {
  background-image:
    linear-gradient(160deg, rgba(197,77,158,.82) 0%, rgba(217,107,174,.72) 40%, rgba(232,164,204,.60) 70%, rgba(244,205,227,.50) 100%),
    url('/images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
}

/* 服务入口：圆形真人照片替代SVG图标 */
.si-photo {
  width: 56px; height: 56px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  border: 3px solid rgba(255,255,255,.85);
  box-shadow: 0 3px 10px rgba(0,0,0,.12);
  flex: none;
}
.si-photo-wrap {
  display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  margin: 0 auto 10px;
}

/* 陪伴师真人头像 */
.avatar-photo {
  width: 44px; height: 44px;
  border-radius: 50%;
  background-size: cover;
  background-position: center top;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.10);
  flex: none;
  display: inline-block;
}
.avatar-photo.lg { width: 64px; height: 64px; border-width: 3px; }

/* 品牌页配图横幅 */
.brand-photo-banner {
  width: 100%; height: 160px;
  border-radius: var(--radius-md);
  background-size: cover;
  background-position: center;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}
