/* ============================================================
   MUA Studio 设计系统
   极简柔雾轻奢 · 玫瑰金渐变 · 奶米白底
   ============================================================ */

:root {
  --bg:        #F4ECDF;
  --bg-2:      #EADCC9;
  --bg-card:   #FFFFFF;
  --bg-cream:  #F9F1E2;
  --bg-veil:   #F0E4D0;

  --t-1:       #2E2418;
  --t-2:       #5A4A38;
  --t-3:       #947D64;
  --t-4:       #C2A88B;
  --t-white:   #FFFFFF;

  --ac:        #D9A982;
  --ac-d:      #B88256;
  --ac-l:      #EBC9A8;
  --ac-bg:     #FAEEDB;
  --ac-bg-2:   #F4DEC2;

  --s-rose:    #D58981;
  --s-rose-bg: #F7DDD8;
  --s-sage:    #9DB088;
  --s-sage-bg: #E2EAD8;
  --s-amber:   #C99547;
  --s-amber-bg:#F2E2BD;
  --s-lav:     #A89BC0;
  --s-lav-bg:  #E5DEEC;
  --s-clay:    #B07D5E;
  --s-clay-bg: #EFD9C9;

  --r-xl: 24px; --r-lg: 20px; --r-md: 14px; --r-sm: 10px; --r-btn: 999px;
  --sh-card:  0 2px 14px rgba(170,130,90,.08);
  --sh-float: 0 6px 22px rgba(170,130,90,.12);
  --sh-pop:   0 18px 48px rgba(120,80,50,.22);
  --ff: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --ff-num: "DIN Alternate", "Helvetica Neue", -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
*::before, *::after { box-sizing: border-box; }

html, body {
  font-family: var(--ff);
  background: linear-gradient(135deg, #E8D4B8 0%, #D9A982 100%);
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  color: var(--t-1);
  font-size: 14px; line-height: 1.5;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
button, input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; border: none; outline: none; background: transparent; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

.phone-frame {
  width: 390px; height: 844px;
  background: #1A1410;
  border-radius: 54px;
  padding: 10px;
  position: relative;
  box-shadow:
    0 0 0 2px #2A201A,
    0 30px 70px rgba(0,0,0,.35),
    inset 0 0 0 1px rgba(255,255,255,.04);
}
.phone-notch {
  position: absolute; top: 18px; left: 50%;
  transform: translateX(-50%);
  width: 120px; height: 32px;
  background: #1A1410;
  border-radius: 18px;
  z-index: 200;
}
.phone-screen {
  width: 100%; height: 100%;
  background: var(--bg);
  border-radius: 44px;
  overflow: hidden;
  position: relative;
}
.phone-home-bar {
  position: absolute; bottom: 8px; left: 50%;
  transform: translateX(-50%);
  width: 134px; height: 5px;
  background: rgba(0,0,0,.2);
  border-radius: 3px;
  z-index: 300;
}

.status-bar {
  height: 0;
  flex-shrink: 0;
  position: relative; z-index: 10;
}

/* 桌面端手机壳内顶部留白 */
@media (min-width: 769px) {
  .status-bar { height: 28px; }
}
.status-bar .sb-time { font-family: var(--ff-num); }
.status-bar .sb-icons { display: flex; gap: 5px; align-items: center; }
.status-bar .sb-icons svg { display: block; }

.page-header {
  padding: 6px 20px 14px;
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
}
.page-header .ph-left { display: flex; align-items: center; gap: 10px; }
.page-header .ph-back {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  box-shadow: var(--sh-card);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: var(--t-2);
  cursor: pointer;
}
.page-header .ph-title { font-size: 22px; font-weight: 700; color: var(--t-1); letter-spacing: .02em; }
.page-header .ph-sub { font-size: 12px; color: var(--t-3); margin-top: 2px; font-weight: 400; }
.page-header .ph-right { display: flex; gap: 8px; }

.section-title {
  padding: 18px 20px 10px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 14px; font-weight: 600; color: var(--t-2);
}
.section-title .st-action { font-size: 12px; color: var(--ac-d); font-weight: 500; }

.page {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  background: var(--bg);
  animation: pageIn .28s ease;
}
@keyframes pageIn {
  from { opacity: 0; transform: translateX(10px); }
  to   { opacity: 1; transform: translateX(0); }
}
.page-scroll {
  flex: 1; overflow-y: auto; overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 100px;
}
.page-scroll::-webkit-scrollbar { display: none; }

.tabbar {
  position: absolute; left: 14px; right: 14px; bottom: 14px;
  height: 64px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 32px;
  box-shadow: 0 8px 28px rgba(120,80,50,.14);
  display: flex; align-items: center; justify-content: space-around;
  padding: 0 10px;
  z-index: 100;
}
.tab-item {
  flex: 1; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px;
  color: var(--t-3);
  font-size: 11px;
  transition: color .2s;
  position: relative;
}
.tab-item .tab-icon {
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
}
.tab-item .tab-icon svg { width: 22px; height: 22px; }
.tab-item.active {
  color: var(--ac-d);
}
.tab-item.active .tab-icon {
  background: linear-gradient(135deg, var(--ac) 0%, var(--ac-d) 100%);
  width: 44px; height: 28px;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(184,130,86,.4);
  color: #fff;
}
.tab-item.active .tab-icon svg { color: #fff; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; padding: 11px 22px;
  border-radius: var(--r-btn);
  font-size: 14px; font-weight: 600;
  white-space: nowrap;
  transition: transform .15s;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  background: linear-gradient(135deg, var(--ac) 0%, var(--ac-d) 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(184,130,86,.28);
}
.btn-secondary {
  background: var(--ac-bg);
  color: var(--ac-d);
}
.btn-ghost {
  background: var(--bg-card);
  color: var(--t-2);
  border: 1px solid var(--t-4);
}
.btn-text { padding: 6px 4px; color: var(--ac-d); font-size: 13px; font-weight: 500; }
.btn-danger { background: var(--s-rose-bg); color: var(--s-rose); }
.btn-sm { padding: 6px 14px; font-size: 12px; }
.btn-lg { padding: 14px 28px; font-size: 15px; }
.btn-block { width: 100%; }

.tag {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 3px 10px;
  border-radius: var(--r-btn);
  font-size: 11px; font-weight: 500;
  line-height: 1.5;
}
.tag-rose     { background: var(--s-rose-bg);  color: var(--s-rose); }
.tag-sage     { background: var(--s-sage-bg);  color: var(--s-sage); }
.tag-amber    { background: var(--s-amber-bg); color: var(--s-amber); }
.tag-lav      { background: var(--s-lav-bg);   color: var(--s-lav); }
.tag-clay     { background: var(--s-clay-bg);  color: var(--s-clay); }
.tag-accent   { background: var(--ac-bg);     color: var(--ac-d); }
.tag-gray     { background: #EEE3D3;           color: var(--t-3); }
.tag-dot::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; display: inline-block; }

.card {
  background: var(--bg-card);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-card);
  padding: 16px;
  margin: 0 16px 12px;
}
.card-cream {
  background: linear-gradient(135deg, #F9EDD9 0%, #F2DDC1 100%);
  border-radius: var(--r-xl);
  padding: 20px;
  margin: 0 16px 14px;
  box-shadow: 0 6px 20px rgba(184,130,86,.12);
  position: relative;
  overflow: hidden;
}
.card-cream::after {
  content: '';
  position: absolute; right: -20px; top: -20px;
  width: 140px; height: 140px;
  background: radial-gradient(circle, rgba(255,255,255,.35) 0%, transparent 70%);
  pointer-events: none;
}

.form-section { padding: 0 16px; }
.form-field { margin-bottom: 14px; }
.form-label {
  display: block;
  font-size: 12px; color: var(--t-3);
  margin-bottom: 6px; font-weight: 500;
}
.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid #EFE4D2;
  border-radius: var(--r-md);
  font-size: 14px; color: var(--t-1);
  transition: border-color .2s;
}
.form-input:focus, .form-textarea:focus, .form-select:focus { border-color: var(--ac); }
.form-textarea { resize: none; min-height: 80px; }
.form-textarea-tall { min-height: 120px; }
.form-row { display: flex; gap: 10px; }
.form-row > * { flex: 1; }

.avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ac-bg) 0%, var(--ac-bg-2) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 600;
  color: var(--ac-d);
  flex-shrink: 0;
  overflow: hidden;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(170,130,90,.12);
}
.avatar-lg { width: 72px; height: 72px; font-size: 24px; }
.avatar-sm { width: 36px; height: 36px; font-size: 14px; border-width: 1px; }

.row { display: flex; align-items: center; }
.row-between { display: flex; align-items: center; justify-content: space-between; }
.row-end { display: flex; align-items: center; justify-content: flex-end; }
.gap-4 { gap: 4px; } .gap-6 { gap: 6px; } .gap-8 { gap: 8px; } .gap-10 { gap: 10px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; }
.text-12 { font-size: 12px; } .text-13 { font-size: 13px; } .text-16 { font-size: 16px; } .text-18 { font-size: 18px; } .text-20 { font-size: 20px; } .text-22 { font-size: 22px; } .text-24 { font-size: 24px; } .text-28 { font-size: 28px; }
.text-t1 { color: var(--t-1); } .text-t2 { color: var(--t-2); } .text-t3 { color: var(--t-3); } .text-t4 { color: var(--t-4); } .text-ac { color: var(--ac-d); }
.fw-500 { font-weight: 500; } .fw-600 { font-weight: 600; } .fw-700 { font-weight: 700; }
.mt-4 { margin-top: 4px; } .mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; }
.mb-4 { margin-bottom: 4px; } .mb-8 { margin-bottom: 8px; } .mb-12 { margin-bottom: 12px; } .mb-16 { margin-bottom: 16px; }
.divider { height: 1px; background: linear-gradient(90deg, transparent, #ECDCC4, transparent); margin: 8px 0; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.ico { display: inline-flex; align-items: center; justify-content: center; line-height: 1; }
.ico svg { width: 1em; height: 1em; }

.modal-mask {
  position: fixed; inset: 0;
  background: rgba(30,20,12,.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex; align-items: flex-end; justify-content: center;
  animation: fadeIn .2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-sheet {
  width: 390px; max-height: 80vh;
  background: var(--bg);
  border-radius: 28px 28px 0 0;
  padding: 20px;
  overflow-y: auto;
  animation: sheetUp .28s cubic-bezier(.2,.8,.3,1);
}
@keyframes sheetUp { from { transform: translateY(100%);} to { transform: translateY(0);} }
.modal-sheet .sheet-handle {
  width: 40px; height: 4px; background: #D8C5A8; border-radius: 2px;
  margin: 0 auto 16px;
}
.modal-center {
  width: 320px;
  background: var(--bg-card);
  border-radius: 20px;
  padding: 22px 20px 18px;
  box-shadow: var(--sh-pop);
  text-align: center;
}

.toast {
  position: fixed; top: 70px; left: 50%;
  transform: translateX(-50%);
  background: rgba(40,28,18,.88);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--r-btn);
  font-size: 13px;
  z-index: 2000;
  animation: toastIn .2s ease;
}
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, -10px);} to { opacity: 1; transform: translate(-50%, 0);} }

/* ========== 品牌 Logo ========== */
.brand-logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}
.brand-logo .brand-name {
  line-height: 1.1;
  font-size: 26px; font-weight: 700; color: var(--t-1);
  letter-spacing: .2em;
  font-family: 'Times New Roman', 'Trajan Pro', serif;
  padding-left: .2em;
}
.brand-logo .brand-zh {
  margin-top: 8px;
  font-size: 16px; font-weight: 700; color: var(--t-1);
  letter-spacing: .3em;
  font-family: 'Songti SC', 'STSong', 'SimSun', serif;
  padding-left: .3em;
}
.brand-logo .brand-sub {
  margin-top: 6px;
  font-size: 11px; font-weight: 500; color: var(--t-3);
  letter-spacing: .25em;
  font-family: 'PingFang SC', sans-serif;
  padding-left: .25em;
}

/* ========== 分类导航栏（客户页顶部）========== */
.cat-tabs {
  display: flex; gap: 8px;
  padding: 2px 16px 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tab {
  flex-shrink: 0;
  padding: 7px 16px;
  border-radius: var(--r-btn);
  background: var(--bg-card);
  font-size: 13px; color: var(--t-2);
  white-space: nowrap;
  box-shadow: var(--sh-card);
  cursor: pointer;
  transition: all .15s;
}
.cat-tab.active {
  background: linear-gradient(135deg, var(--ac) 0%, var(--ac-d) 100%);
  color: #fff; font-weight: 600;
  box-shadow: 0 4px 12px rgba(184,130,86,.3);
}
/* ========== 子分类（主分类下方展开）========== */
.subcat-tabs {
  display: flex; gap: 6px;
  padding: 0 16px 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.subcat-tabs::-webkit-scrollbar { display: none; }
.subcat-tab {
  flex-shrink: 0;
  display: flex; align-items: center; gap: 5px;
  padding: 4px 11px;
  border-radius: 20px;
  background: transparent;
  border: 1px solid #E8DDD0;
  font-size: 12px; color: var(--t-3);
  font-weight: 400;
  cursor: pointer;
  transition: all .15s;
}
.subcat-tab .subcat-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  opacity: .5;
}
.subcat-tab.active {
  background: #FBF6F0;
  border-color: var(--ac);
  color: var(--t-1);
  font-weight: 600;
}
.subcat-tab.active .subcat-dot {
  opacity: 1;
}
.subcat-tab .subcat-del {
  margin-left: 4px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: rgba(213,137,129,.15);
  color: #D58981;
  font-size: 10px;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
  flex-shrink: 0;
}
.subcat-tab .subcat-del:active {
  background: rgba(213,137,129,.35);
}
/* 加号按钮 */
.cat-tab.cat-add {
  background: transparent;
  border: 1px dashed #D9B88E;
  color: #C2A88B;
  font-size: 16px;
  padding: 7px 14px;
  font-weight: 400;
}
.subcat-tab.subcat-add {
  background: transparent;
  border: 1px dashed #D9B88E;
  color: #C2A88B;
  font-size: 11px;
  padding: 4px 11px;
}
.subcat-tab.subcat-add .subcat-dot { display: none; }

/* ========== 首页大卡片装饰 ========== */
.hero-deco {
  position: absolute;
  right: -6px; top: 4px;
  width: 130px; height: 130px;
  opacity: .95;
  pointer-events: none;
  z-index: 1;
}
.hero-card > *:not(.hero-deco) { position: relative; z-index: 2; }

/* ========== 首页 ========== */
.hero-card {
  background: linear-gradient(160deg, #FBEAD0 0%, #F0CFA8 55%, #D9A982 100%);
  border-radius: var(--r-xl);
  margin: 0 16px 18px;
  padding: 22px 22px 20px;
  box-shadow: 0 10px 30px rgba(184,130,86,.20);
  position: relative;
  overflow: hidden;
}
.hero-card::after {
  content: '';
  position: absolute; right: -50px; top: -50px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(255,255,255,.5) 0%, transparent 70%);
  pointer-events: none;
}
.hero-card .hc-top {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 6px;
}
.hero-card .hc-title {
  font-size: 24px; font-weight: 700; color: var(--t-1);
  letter-spacing: .04em;
  font-family: 'Times New Roman','Songti SC',serif;
}
.hero-card .hc-tag {
  display: inline-flex; align-items: center;
  padding: 3px 12px; background: #EFD2B0;
  border-radius: var(--r-btn);
  font-size: 12px; color: #7A5638; font-weight: 500;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4);
}
.hero-card .hc-sub {
  font-size: 12px; color: var(--t-2); margin-top: 4px;
}
.hero-card .hc-booking {
  margin-top: 14px;
  display: flex; align-items: center; gap: 10px;
}
.hero-card .hc-bullet {
  width: 4px; height: 22px; border-radius: 2px; background: #fff;
  opacity: .8;
}
.hero-card .hc-binfo { flex: 1; }
.hero-card .hc-binfo .b-name { font-size: 18px; font-weight: 700; color: var(--t-1); }
.hero-card .hc-binfo .b-time { font-size: 16px; color: var(--t-2); margin-left: 8px; }
.hero-card .hc-binfo .b-where { font-size: 12px; color: var(--t-3); margin-top: 4px; }
.hero-card .hc-actions { display: flex; gap: 8px; margin-top: 16px; }
.hero-card .hc-actions .btn { flex: 1; }
.hero-card .hc-actions .btn-secondary { background: rgba(255,255,255,.55); color: #6B4A30; border: 1px solid rgba(255,255,255,.6); box-shadow: none; }
.hero-card .hc-actions .btn-primary { background: linear-gradient(135deg, #D9A982 0%, #B07845 100%); color: #fff; box-shadow: 0 4px 12px rgba(176,120,69,.28); }

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 4px 16px 18px;
}
.quick-item {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  cursor: pointer;
}
.quick-item .qi-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #F5DDC0 0%, #E5BC8E 100%);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 22px;
  box-shadow: 0 6px 16px rgba(184,130,86,.2);
  position: relative;
  overflow: hidden;
}
.quick-item .qi-icon::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.5), transparent 50%);
}
.quick-item .qi-label { font-size: 12px; color: var(--t-2); font-weight: 500; }

.remind-card {
  background: var(--bg-card);
  border-radius: var(--r-lg);
  margin: 0 16px 18px;
  padding: 16px 18px;
  box-shadow: var(--sh-card);
}
.remind-card .rc-title {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 15px; font-weight: 700; color: var(--t-1);
  margin-bottom: 12px;
}
.remind-card .rc-title .rc-arrow { color: var(--t-3); }
.remind-card .rc-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #F2E5D0;
  transition: background .15s;
  border-radius: 8px;
}
.remind-card .rc-item:active { background: rgba(217,169,130,.1); }
.remind-card .rc-item:last-child { border-bottom: none; }
.remind-card .rc-ico {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--ac-bg);
  display: flex; align-items: center; justify-content: center;
  color: var(--ac-d); font-size: 12px;
}
.remind-card .rc-ico.rose { background: var(--s-rose-bg); color: var(--s-rose); }
.remind-card .rc-ico.amber { background: var(--s-amber-bg); color: var(--s-amber); }
.remind-card .rc-ico.clay { background: var(--s-clay-bg); color: var(--s-clay); }
.remind-card .rc-text { flex: 1; font-size: 13px; color: var(--t-2); }
.remind-card .rc-amount { font-family: var(--ff-num); font-weight: 600; color: var(--t-1); }

/* ========== 客户档案 ========== */
.profile-hero {
  background: linear-gradient(135deg, #F5DDC0 0%, #EBC9A8 100%);
  border-radius: var(--r-xl);
  margin: 0 16px 16px;
  padding: 20px;
  box-shadow: 0 6px 20px rgba(184,130,86,.12);
  position: relative;
  overflow: hidden;
}
.profile-hero .ph-row {
  display: flex; align-items: center; gap: 14px;
  position: relative; z-index: 2;
}
.profile-hero .ph-info { flex: 1; min-width: 0; }
.profile-hero .ph-name { font-size: 20px; font-weight: 700; color: var(--t-1); display: flex; align-items: center; gap: 8px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.profile-hero .ph-sub { font-size: 12px; color: var(--t-2); margin-top: 4px; }
.profile-hero .ph-actions { display: flex; gap: 6px; }
.profile-hero .ph-actions .ph-icon {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,.6);
  display: flex; align-items: center; justify-content: center;
  color: var(--ac-d); font-size: 14px;
  cursor: pointer;
}
.profile-hero .ph-pills { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.profile-hero .ph-pill {
  padding: 4px 10px; background: rgba(255,255,255,.5);
  border-radius: var(--r-btn);
  font-size: 11px; color: var(--t-2);
}
.profile-hero .ph-dots {
  display: flex; gap: 4px; margin-top: 12px;
}
.profile-hero .ph-dots i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--t-4);
}
.profile-hero .ph-dots i.active { background: var(--ac-d); }

.info-card {
  background: var(--bg-card);
  border-radius: var(--r-lg);
  margin: 0 16px 12px;
  padding: 16px 18px;
  box-shadow: var(--sh-card);
}
.info-card .ic-title {
  font-size: 15px; font-weight: 700; color: var(--t-1);
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #F2E5D0;
}
.info-card .ic-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px;
  padding: 6px 0;
}
.info-card .ic-row .ic-k { color: var(--t-3); }
.info-card .ic-row .ic-v { color: var(--t-1); font-weight: 500; }
.info-card .ic-copy {
  margin-left: 6px; cursor: pointer; opacity: .4;
  font-size: 12px; transition: opacity .2s; flex-shrink: 0;
}
.info-card .ic-copy:active { opacity: 1; }
.info-card .ic-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }

.photo-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  padding: 0 16px;
}
.photo-grid .pg-item {
  aspect-ratio: 3/4;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, #F5DDC0, #E5BC8E);
  position: relative;
  overflow: hidden;
  display: flex; align-items: flex-end;
  padding: 8px;
}
.photo-grid .pg-item .pg-label {
  background: rgba(255,255,255,.7);
  padding: 2px 8px; border-radius: 8px;
  font-size: 11px; color: var(--t-1);
}
.photo-grid .pg-upload {
  background: var(--bg-card);
  border: 2px dashed var(--t-4);
  display: flex; align-items: center; justify-content: center;
  color: var(--t-3);
  font-size: 22px;
}

/* ========== 日历 ========== */
.calendar {
  background: var(--bg-card);
  border-radius: var(--r-lg);
  margin: 0 16px 16px;
  padding: 16px 12px;
  box-shadow: var(--sh-card);
}
.calendar .cal-head {
  display: grid; grid-template-columns: repeat(7, 1fr);
  text-align: center; font-size: 11px; color: var(--t-3);
  margin-bottom: 8px;
}
.calendar .cal-grid {
  display: grid; grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.calendar .cal-day {
  aspect-ratio: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 14px; color: var(--t-1);
  border-radius: 50%;
  position: relative;
  cursor: pointer;
  font-family: var(--ff-num);
}
.calendar .cal-day.muted { color: var(--t-4); }
.calendar .cal-day.has-event::after {
  content: ''; position: absolute; bottom: 4px;
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--ac);
}
.calendar .cal-day.today {
  background: linear-gradient(135deg, var(--ac) 0%, var(--ac-d) 100%);
  color: #fff; font-weight: 700;
  box-shadow: 0 4px 12px rgba(184,130,86,.4);
}
.calendar .cal-day.selected {
  background: var(--ac-bg);
  color: var(--ac-d);
  font-weight: 700;
}

.tab-segment {
  display: flex;
  background: var(--bg-card);
  border-radius: var(--r-btn);
  padding: 4px;
  margin: 0 16px 14px;
  box-shadow: var(--sh-card);
}
.tab-segment .seg-item {
  flex: 1; text-align: center; padding: 8px 0;
  font-size: 13px; color: var(--t-2);
  border-radius: var(--r-btn);
  font-weight: 500;
  transition: all .2s;
  cursor: pointer;
}
.tab-segment .seg-item.active {
  background: linear-gradient(135deg, var(--ac) 0%, var(--ac-d) 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(184,130,86,.3);
}

.booking-item {
  background: var(--bg-card);
  border-radius: var(--r-md);
  padding: 12px 14px;
  margin: 0 16px 10px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: var(--sh-card);
  position: relative;
  border-left: 3px solid var(--ac);
}
.booking-item .bi-time {
  font-family: var(--ff-num);
  font-size: 16px; font-weight: 700;
  color: var(--t-1);
  min-width: 50px;
}
.booking-item .bi-info { flex: 1; }
.booking-item .bi-name { font-size: 14px; font-weight: 600; color: var(--t-1); }
.booking-item .bi-meta { font-size: 12px; color: var(--t-3); margin-top: 2px; }
.booking-item .bi-action { font-size: 12px; color: var(--t-3); }
.booking-item .bi-action::after { content: ' ›'; }

.conflict-card {
  background: var(--s-rose-bg);
  border-radius: var(--r-md);
  padding: 12px 14px;
  margin: 0 16px 10px;
  display: flex; align-items: center; gap: 12px;
}
.conflict-card .cc-info { flex: 1; }
.conflict-card .cc-title { font-size: 13px; font-weight: 600; color: var(--s-rose); }
.conflict-card .cc-desc { font-size: 12px; color: var(--t-2); margin-top: 2px; }

/* ========== 库存 ========== */
.stat-tiles {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  padding: 0 16px 16px;
}
.stat-tile {
  background: linear-gradient(135deg, #FAEEDB 0%, #F4DEC2 100%);
  border-radius: var(--r-lg);
  padding: 14px 10px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.stat-tile::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 70% 20%, rgba(255,255,255,.5), transparent 50%);
}
.stat-tile .st-label { font-size: 12px; color: var(--t-2); position: relative; z-index: 1; }
.stat-tile .st-num { font-size: 24px; font-weight: 700; color: var(--t-1); font-family: var(--ff-num); position: relative; z-index: 1; }
.stat-tile .st-unit { font-size: 12px; color: var(--t-2); }
.stat-tile .st-foot {
  margin-top: 6px; display: inline-block;
  background: rgba(255,255,255,.5); border-radius: var(--r-btn);
  padding: 2px 8px; font-size: 10px; color: var(--ac-d);
  position: relative; z-index: 1;
}

.inv-list {
  background: var(--bg-card);
  border-radius: var(--r-lg);
  margin: 0 16px 12px;
  padding: 4px 16px;
  box-shadow: var(--sh-card);
}
.inv-list .il-head {
  padding: 12px 0 8px;
  font-size: 14px; font-weight: 700; color: var(--t-1);
  display: flex; align-items: center; justify-content: space-between;
}
.inv-list .il-item {
  padding: 10px 0;
  border-bottom: 1px solid #F2E5D0;
  display: flex; align-items: center; gap: 8px;
  font-size: 13px;
}
.inv-list .il-item:last-child { border-bottom: none; }
.inv-list .il-item .il-name { flex: 1; color: var(--t-1); }
.inv-list .il-item .il-tag { flex-shrink: 0; }

.checklist {
  background: var(--bg-card);
  border-radius: var(--r-lg);
  margin: 0 16px 12px;
  padding: 12px 16px;
  box-shadow: var(--sh-card);
}
.checklist .cl-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #F2E5D0;
  font-size: 13px; color: var(--t-2);
  cursor: pointer;
}
.checklist .cl-item:last-child { border-bottom: none; }
.checklist .cl-item.checked .cl-text { color: var(--t-3); text-decoration: line-through; }
.checklist .cl-check {
  width: 20px; height: 20px; border-radius: 50%;
  border: 1.5px solid var(--t-4);
  display: flex; align-items: center; justify-content: center;
  color: transparent; font-size: 11px;
  flex-shrink: 0;
}
.checklist .cl-item.checked .cl-check {
  background: linear-gradient(135deg, var(--ac) 0%, var(--ac-d) 100%);
  border-color: var(--ac);
  color: #fff;
}
.checklist .cl-text { flex: 1; }

/* ========== 财务 ========== */
.fin-stats {
  display: grid; grid-template-columns: 1.6fr 1fr; gap: 10px;
  padding: 0 16px 14px;
}
.fin-main {
  background: linear-gradient(135deg, #F5DDC0 0%, #E5BC8E 100%);
  border-radius: var(--r-lg);
  padding: 16px;
  position: relative; overflow: hidden;
}
.fin-main::after {
  content: ''; position: absolute; right: -30px; top: -30px;
  width: 150px; height: 150px;
  background: radial-gradient(circle, rgba(255,255,255,.5), transparent 70%);
}
.fin-main .fm-label { font-size: 12px; color: var(--t-2); position: relative; z-index: 1; }
.fin-main .fm-num { font-size: 26px; font-weight: 700; color: var(--t-1); font-family: var(--ff-num); position: relative; z-index: 1; margin-top: 4px; }
.fin-side { display: flex; flex-direction: column; gap: 8px; }
.fin-side-card {
  background: var(--bg-card);
  border-radius: var(--r-md);
  padding: 12px;
  box-shadow: var(--sh-card);
  flex: 1;
}
.fin-side-card .fsc-label { font-size: 11px; color: var(--t-3); }
.fin-side-card .fsc-num { font-size: 16px; font-weight: 700; color: var(--t-1); font-family: var(--ff-num); margin-top: 4px; }
.fin-side-card.warn { background: var(--s-rose-bg); }
.fin-side-card.warn .fsc-num { color: var(--s-rose); }

.fin-list {
  background: var(--bg-card);
  border-radius: var(--r-lg);
  margin: 0 16px 12px;
  padding: 4px 16px;
  box-shadow: var(--sh-card);
}
.fin-list .fl-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #F2E5D0;
}
.fin-list .fl-item:last-child { border-bottom: none; }
.fin-list .fl-info { flex: 1; }
.fin-list .fl-name { font-size: 13px; font-weight: 600; color: var(--t-1); }
.fin-list .fl-meta { font-size: 12px; color: var(--t-3); margin-top: 2px; }
.fin-list .fl-amount { font-family: var(--ff-num); font-size: 14px; font-weight: 700; color: var(--t-1); }
.fin-list .fl-tag { margin-left: 6px; }

/* 收入明细框（财务 tab 页可点击卡片） */
.fin-detail-box {
  background: var(--bg-card);
  border-radius: var(--r-lg);
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: var(--sh-card);
  cursor: pointer;
  transition: transform .15s;
}
.fin-detail-box:active { transform: scale(.98); }
.fdb-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.fdb-title {
  font-size: 15px; font-weight: 700; color: var(--t-1);
  display: flex; align-items: center; gap: 6px;
}
.fdb-ico { font-size: 16px; }
.fdb-arrow { font-size: 12px; color: var(--ac-d); }
.fdb-summary {
  display: flex; gap: 16px;
}
.fdb-item {
  flex: 1;
  display: flex; flex-direction: column; gap: 4px;
}
.fdb-label { font-size: 11px; color: var(--t-3); }
.fdb-val { font-size: 15px; font-weight: 700; color: var(--t-1); font-family: var(--ff-num); }


/* 今日收入区块 */
.today-income {
  margin: 0 16px 16px;
  background: var(--bg-card);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-card);
  overflow: hidden;
}
.ti-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px 8px;
}
.ti-title {
  font-size: 15px; font-weight: 700; color: var(--t-1);
  display: flex; align-items: center; gap: 6px;
}
.ti-date { font-size: 11px; color: var(--t-3); }
.ti-total-row {
  display: flex; align-items: baseline; gap: 8px;
  padding: 0 16px 12px;
}
.ti-total-label { font-size: 12px; color: var(--t-3); }
.ti-total-num {
  font-size: 28px; font-weight: 700; color: var(--ac-d);
  font-family: var(--ff-num); letter-spacing: .02em;
}
.ti-breakdown {
  display: flex; gap: 1px;
  background: #F0E8DA;
  border-top: 1px solid #F0E8DA;
}
.ti-bd-item {
  flex: 1; background: var(--bg-card);
  padding: 12px 8px; text-align: center;
}
.ti-bd-label { font-size: 11px; color: var(--t-3); margin-bottom: 4px; }
.ti-bd-num { font-size: 16px; font-weight: 700; color: var(--t-1); font-family: var(--ff-num); }
.ti-bd-num.red { color: var(--s-rose); }
.ti-list {
  border-top: 1px solid #F5EDDF;
  max-height: 200px; overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.ti-list-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid #F8F2E8;
}
.ti-list-item:last-child { border-bottom: none; }
.ti-li-ico {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--ac-bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; flex-shrink: 0;
}
.ti-li-ico.rose { background: var(--s-rose-bg); }
.ti-li-ico.sage { background: var(--s-sage-bg); }
.ti-li-ico.amber { background: var(--s-amber-bg); }
.ti-li-info { flex: 1; min-width: 0; }
.ti-li-name { font-size: 13px; font-weight: 600; color: var(--t-1); }
.ti-li-sub { font-size: 11px; color: var(--t-3); margin-top: 1px; }
.ti-li-amount { font-size: 15px; font-weight: 700; color: var(--ac-d); font-family: var(--ff-num); flex-shrink: 0; }
.ti-empty {
  padding: 24px 16px; text-align: center;
  color: var(--t-3); font-size: 13px;
}

/* 明细页顶部小条 */
.fin-mini-bar {
  display: flex; gap: 10px;
  padding: 0 16px 14px;
}
.fmb-item {
  flex: 1; background: var(--bg-card);
  border-radius: var(--r-md); padding: 12px;
  box-shadow: var(--sh-card);
  text-align: center;
}
.fmb-label { font-size: 11px; color: var(--t-3); }
.fmb-num { font-size: 18px; font-weight: 700; color: var(--t-1); font-family: var(--ff-num); margin-top: 4px; }

/* ========== 案例库 ========== */
.case-tabs {
  display: flex; gap: 8px;
  padding: 0 16px 14px;
  overflow-x: auto;
}
.case-tabs::-webkit-scrollbar { display: none; }
.case-tab {
  padding: 6px 14px;
  border-radius: var(--r-btn);
  background: var(--bg-card);
  font-size: 13px; color: var(--t-2);
  white-space: nowrap;
  box-shadow: var(--sh-card);
  cursor: pointer;
}
.case-tab.active {
  background: linear-gradient(135deg, var(--ac) 0%, var(--ac-d) 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(184,130,86,.3);
}

.case-search {
  display: flex; align-items: center; gap: 8px;
  margin: 0 16px 14px;
  background: var(--bg-card);
  border-radius: var(--r-btn);
  padding: 10px 16px;
  box-shadow: var(--sh-card);
  font-size: 13px; color: var(--t-4);
}
.case-search .cs-edit {
  margin-left: auto;
  padding: 4px 12px; background: var(--ac-bg);
  border-radius: var(--r-btn);
  color: var(--ac-d); font-size: 12px;
}

.case-card {
  background: var(--bg-card);
  border-radius: var(--r-lg);
  margin: 0 16px 14px;
  padding: 14px;
  box-shadow: var(--sh-card);
}
.case-card .cc-vs {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px;
  align-items: stretch;
}
.case-card .cc-photo {
  aspect-ratio: 3/4;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, #F5DDC0, #E5BC8E);
  position: relative;
  overflow: hidden;
  display: flex; align-items: flex-end; justify-content: center;
  padding: 8px;
}
.case-card .cc-photo .ccp-label {
  background: rgba(255,255,255,.7);
  padding: 2px 10px; border-radius: 8px;
  font-size: 11px; color: var(--t-1);
}
.case-card .cc-vs-mark {
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: var(--t-3);
  font-weight: 600;
}
.case-card .cc-info {
  margin-top: 10px;
  display: flex; align-items: flex-end; justify-content: space-between;
}
.case-card .cc-title { font-size: 15px; font-weight: 700; color: var(--t-1); }
.case-card .cc-meta { font-size: 12px; color: var(--t-3); margin-top: 4px; }
.case-card .cc-edit-btn {
  padding: 4px 12px; background: var(--ac-bg);
  border-radius: var(--r-btn);
  color: var(--ac-d); font-size: 12px;
}

.case-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  padding: 0 16px;
}
.case-grid .cg-item {
  background: var(--bg-card);
  border-radius: var(--r-md);
  padding: 8px;
  box-shadow: var(--sh-card);
}
.case-grid .cg-photo {
  aspect-ratio: 1;
  border-radius: var(--r-sm);
  background: linear-gradient(135deg, #F5DDC0, #E5BC8E);
  display: flex; align-items: flex-end; justify-content: center;
  padding: 6px;
  position: relative;
}
.case-grid .cg-photo::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 40%, rgba(255,255,255,.4), transparent 60%);
}
.case-grid .cg-name { font-size: 12px; font-weight: 600; color: var(--t-1); margin-top: 6px; text-align: center; }
.case-grid .cg-btn {
  margin-top: 6px;
  display: block; width: 100%;
  text-align: center; padding: 4px 0;
  background: var(--ac-bg);
  border-radius: var(--r-btn);
  color: var(--ac-d); font-size: 11px;
}

/* ========== 订单 ========== */
.order-card {
  background: var(--bg-card);
  border-radius: var(--r-lg);
  margin: 0 16px 12px;
  padding: 16px;
  box-shadow: var(--sh-card);
}
.order-card .oc-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.order-card .oc-customer { display: flex; align-items: center; gap: 10px; }
.order-card .oc-name { font-size: 15px; font-weight: 700; color: var(--t-1); }
.order-card .oc-svc { font-size: 12px; color: var(--t-3); }
.order-card .oc-amount { font-family: var(--ff-num); font-size: 18px; font-weight: 700; color: var(--t-1); }
.order-card .oc-amount small { font-size: 12px; color: var(--t-3); font-weight: 400; }
.order-card .oc-meta { font-size: 12px; color: var(--t-3); margin-top: 4px; }
.order-card .oc-progress {
  margin-top: 12px;
  height: 6px; background: var(--bg-2);
  border-radius: 3px; overflow: hidden;
}
.order-card .oc-progress span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--ac), var(--ac-d));
  border-radius: 3px;
}
.order-card .oc-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #F2E5D0;
}
.order-card .oc-info { font-size: 12px; color: var(--t-3); }
.order-card .oc-actions { display: flex; gap: 8px; }

/* ========== FAB ========== */
.fab {
  position: absolute; right: 18px; bottom: 90px;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ac) 0%, var(--ac-d) 100%);
  color: #fff; font-size: 26px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(184,130,86,.4);
  z-index: 50;
  cursor: pointer;
}
.fab:active { transform: scale(.95); }

/* ========== 空状态 ========== */
.empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 60px 20px;
  color: var(--t-3);
  gap: 10px;
}
.empty .em-ico {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--ac-bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 32px;
  color: var(--ac-d);
}
.empty .em-text { font-size: 13px; }

/* ========== 我的 / 列表入口 ========== */
.profile-banner {
  background: linear-gradient(135deg, #F5DDC0 0%, #E5BC8E 100%);
  border-radius: var(--r-xl);
  margin: 0 16px 16px;
  padding: 20px;
  display: flex; align-items: center; gap: 14px;
  position: relative; overflow: hidden;
}
.profile-banner::after {
  content: ''; position: absolute; right: -30px; top: -30px;
  width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(255,255,255,.4), transparent 70%);
}
.profile-banner .pb-avatar { width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,.6); display: flex; align-items: center; justify-content: center; color: var(--ac-d); font-size: 22px; font-weight: 700; }
.profile-banner .pb-info { flex: 1; position: relative; z-index: 1; }
.profile-banner .pb-name { font-size: 18px; font-weight: 700; color: var(--t-1); }
.profile-banner .pb-sub { font-size: 12px; color: var(--t-2); margin-top: 2px; }
.profile-banner .pb-edit {
  background: rgba(255,255,255,.5);
  padding: 6px 14px; border-radius: var(--r-btn);
  font-size: 12px; color: var(--ac-d);
  position: relative; z-index: 1;
}

.menu-list {
  background: var(--bg-card);
  border-radius: var(--r-lg);
  margin: 0 16px 12px;
  padding: 4px 0;
  box-shadow: var(--sh-card);
}
.menu-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid #F2E5D0;
  cursor: pointer;
}
.menu-item:last-child { border-bottom: none; }
.menu-item .mi-ico {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--ac-bg);
  display: flex; align-items: center; justify-content: center;
  color: var(--ac-d); font-size: 14px;
}
.menu-item .mi-text { flex: 1; font-size: 14px; color: var(--t-1); }
.menu-item .mi-arrow { color: var(--t-4); }
.menu-item .mi-tag {
  font-size: 12px; color: var(--t-3);
}

.mini-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  padding: 0 16px 16px;
}
.mini-stat {
  background: var(--bg-card);
  border-radius: var(--r-md);
  padding: 12px;
  text-align: center;
  box-shadow: var(--sh-card);
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.mini-stat:active {
  transform: scale(.96);
  box-shadow: 0 2px 8px rgba(184,130,86,.15);
}
.mini-stat .ms-num { font-family: var(--ff-num); font-size: 20px; font-weight: 700; color: var(--t-1); }
.mini-stat .ms-label { font-size: 11px; color: var(--t-3); margin-top: 2px; }

.chart-svg { width: 100%; height: 80px; }

/* K线趋势图 */
.kline-card { padding: 14px 14px 10px; }
.kline-head { display:flex; justify-content:space-between; align-items:center; margin-bottom: 6px; }
.kline-trend { font-size: 13px; font-weight: 700; }
.kline-trend.up { color: #E85D5D; }
.kline-trend.down { color: #3B82C4; }
.kline-svg { width: 100%; height: 110px; display: block; }

.search-bar {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-card);
  border-radius: var(--r-btn);
  padding: 10px 16px;
  margin: 0 16px 12px;
  box-shadow: var(--sh-card);
  font-size: 13px; color: var(--t-4);
}

/* ========== 搜索输入框 ========== */
.search-bar input {
  flex: 1; border: none; outline: none; background: transparent;
  font-size: 13px; color: var(--t-1);
}
.search-bar input::placeholder { color: var(--t-4); }

.case-search input {
  flex: 1; border: none; outline: none; background: transparent;
  font-size: 13px; color: var(--t-1);
}
.case-search input::placeholder { color: var(--t-4); }

/* ========== 标签选择器 ========== */
.tag.tag-selectable {
  cursor: pointer;
  transition: all .15s;
  user-select: none;
}
.tag.tag-selectable.tag-selected {
  background: linear-gradient(135deg, var(--ac) 0%, var(--ac-d) 100%);
  color: #fff;
  box-shadow: 0 4px 10px rgba(184,130,86,.25);
}

/* ========== 图片上传 ========== */
.pg-item.pg-has-img {
  background-size: cover;
  background-position: center;
}
.pg-item.pg-has-img .pg-label {
  display: none;
}
.pg-item.pg-upload {
  cursor: pointer;
  transition: all .15s;
}
.pg-item.pg-upload:active {
  transform: scale(.95);
}
.pg-item .pg-remove {
  position: absolute; top: 4px; right: 4px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(0,0,0,.4);
  color: #fff;
  font-size: 12px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 2;
}

/* ========== 头像图片 ========== */
.avatar img, .avatar-lg img, .pb-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
  min-width: 0; min-height: 0;
}
.avatar .avatar-placeholder {
  font-size: 20px; font-weight: 600; color: var(--ac-d);
}

/* ========== 拨号弹窗 ========== */
.modal-sheet .dial-row {
  display: flex; align-items: center; gap: 12px;
  padding: 16px;
  background: var(--bg-card);
  border-radius: var(--r-md);
  margin-bottom: 12px;
}
.modal-sheet .dial-row .dr-name { font-size: 15px; font-weight: 600; color: var(--t-1); }
.modal-sheet .dial-row .dr-phone { font-size: 13px; color: var(--t-3); margin-top: 4px; }
.modal-sheet .dial-actions { display: flex; gap: 10px; }
.modal-sheet .dial-actions .btn { flex: 1; }

/* ========== 编辑库存弹窗 ========== */
.modal-sheet .ms-section {
  font-size: 14px; font-weight: 600; color: var(--t-1);
  margin: 20px 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #F2E5D0;
}
.modal-sheet .ms-section:first-child { margin-top: 0; }

/* ========== 可编辑项 ========== */
.editable-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid #F2E5D0;
}
.editable-item:last-child { border-bottom: none; }
.editable-item .ei-label { font-size: 14px; color: var(--t-2); width: 80px; flex-shrink: 0; }
.editable-item .ei-value { flex: 1; font-size: 14px; color: var(--t-1); }
.editable-item .ei-input {
  flex: 1; border: none; outline: none; background: transparent;
  font-size: 14px; color: var(--t-1);
}

/* ========== 设置-头像上传 ========== */
.settings-avatar-wrap {
  position: relative; cursor: pointer;
}
.settings-avatar-wrap .sa-edit-badge {
  position: absolute; bottom: 0; right: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ac) 0%, var(--ac-d) 100%);
  color: #fff; font-size: 12px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
  border: 2px solid #fff;
}

/* ========== 库存项可点击 ========== */
.inv-list .il-item { cursor: pointer; }
.inv-list .il-item:active { background: var(--ac-bg); }

/* ========== 案例可删除 ========== */
.cg-item .cg-delete {
  position: absolute; top: 4px; right: 4px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(0,0,0,.35);
  color: #fff; font-size: 13px;
  display: none;
  align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 2;
}
.cg-item .cg-photo { position: relative; }

/* ========== 试妆记录可编辑 ========== */
.trial-edit-btn {
  padding: 4px 12px;
  background: var(--ac-bg);
  border-radius: var(--r-btn);
  color: var(--ac-d);
  font-size: 12px;
  cursor: pointer;
}

/* ========== 客户列表卡片 ========== */
.cc-swipe {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  margin-bottom: 10px;
}
.cc-swipe-del {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 72px;
  background: linear-gradient(135deg, #E85D5D 0%, #D94444 100%);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.customer-card {
  position: relative;
  z-index: 1;
  background: var(--bg-card);
  border-radius: var(--r-lg);
  padding: 14px;
  margin: 0;
  box-shadow: var(--sh-card);
  cursor: pointer;
  transition: transform .25s ease;
}
.customer-card.swiped {
  transform: translateX(-72px);
}
.customer-card .cc-row {
  display: flex; align-items: center; gap: 12px;
}
.customer-card .cc-info { flex: 1; min-width: 0; }
.customer-card .cc-name { font-size: 15px; font-weight: 700; color: var(--t-1); }
.customer-card .cc-meta { font-size: 12px; color: var(--t-3); margin-top: 2px; }
.customer-card .cc-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #F2E5D0;
}
.customer-card .cc-tags { display: flex; gap: 6px; }
.customer-card .cc-actions-mini { display: flex; gap: 6px; }
.customer-card .cc-actions-mini .mi-btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 26px; padding: 0 10px;
  background: var(--ac-bg);
  border-radius: var(--r-btn);
  font-size: 12px; color: var(--ac-d);
  cursor: pointer;
}
.customer-card .cc-actions-mini .mi-btn:first-child {
  width: 26px; padding: 0; font-size: 12px;
}

/* ========== 操作菜单（长按弹出）========== */
.action-sheet {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: var(--bg-card);
  border-radius: 20px 20px 0 0;
  padding: 8px 0 20px;
  box-shadow: 0 -4px 24px rgba(0,0,0,.1);
  animation: sheetUp .25s ease;
}
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.action-sheet-handle {
  width: 36px; height: 4px; border-radius: 2px;
  background: #E0D5C5; margin: 4px auto 14px;
}
.action-item {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 24px;
  font-size: 15px; color: var(--t-1);
  cursor: pointer;
}
.action-item:active { background: var(--ac-bg); }
.action-item.action-danger { color: #E85D5D; }
.action-item.action-cancel {
  justify-content: center;
  border-top: 1px solid #F2E5D0;
  margin-top: 6px;
  color: var(--t-3);
  font-size: 14px;
}

/* ========== 移动端全屏适配（真实手机访问时去掉手机外壳，铺满屏幕）========== */
@media (max-width: 768px) {
  html, body {
    display: block !important;
    background: var(--bg) !important;
    overflow: hidden;
    touch-action: manipulation;
    -webkit-text-size-adjust: 100%;
    width: 100%;
    height: 100%;
  }
  .phone-frame {
    width: 100% !important;
    height: 100vh !important;
    height: 100dvh !important;
    background: var(--bg) !important;
    border-radius: 28px !important;
    padding: 0 !important;
    box-shadow: none !important;
  }
  .phone-notch { display: none !important; }
  .phone-home-bar { display: none !important; }
  .phone-screen {
    border-radius: 22px !important;
    width: 100% !important;
    height: 100% !important;
  }
  .status-bar {
    height: max(env(safe-area-inset-top), 22px);
  }
  .tabbar {
    bottom: calc(14px + env(safe-area-inset-bottom));
  }
  .fab {
    bottom: calc(90px + env(safe-area-inset-bottom));
  }
  .action-sheet {
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
  }
  .page-scroll {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
  }
  .modal-sheet {
    padding-bottom: env(safe-area-inset-bottom);
  }
}

/* ========== 平板横屏/桌面端：保留手机外壳居中显示 ========== */
@media (min-width: 769px) {
  html, body {
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
  }
}

/* ========== 全屏按钮（仅手机端显示）========== */
.fs-btn { display: none; }

@media (max-width: 768px) {
  .fs-btn {
    display: flex;
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px; height: 30px;
    align-items: center; justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,.55);
    color: var(--t-3);
    cursor: pointer;
    z-index: 20;
    -webkit-tap-highlight-color: transparent;
  }
  .fs-btn:active { background: rgba(255,255,255,.85); }
}

/* v20260805223138 */
