/* ============================================================
   HelloJobs 绠＄悊鍚庡彴 路 钃濈櫧璁捐璇█锛堜笌 App 涓€鑷达級
   鍘熷垯锛氭祬钃濈伆鍩哄簳 + 鍝佺墝钃?娣¤摑娓愬彉锛岀櫧鑹插崱鐗囷紝
         姣忎釜缁勪欢涓€鍧楃嫭绔嬬殑娴呰壊鑳屾櫙锛屽厠鍒剁殑鍦嗚涓庢煍鍜岄槾褰便€?   ============================================================ */
:root {
  --bg: #f4f7fa;
  --bg-soft: #e9f0f5;
  --surface: #ffffff;
  --surface-2: #f3f7fb;

  --matcha-50: #eef6fc;
  --matcha-100: #dcecf7;
  --matcha-200: #bcdaf0;
  --matcha-300: #8ec2e4;
  --matcha-400: #57a7d7;
  --matcha-500: #2f97cf;
  --matcha-600: #2193d0;
  --matcha-700: #1a77ab;

  --sage-100: #e6f1f9;
  --sage-200: #c9e2f1;
  --sage-400: #74b5da;
  --sage-600: #3288b5;

  --cream-100: #eef6fb;
  --cream-200: #d6e9f5;
  --cream-400: #85bede;
  --cream-600: #3a83a4;

  --terra-100: #f4e9e3;
  --terra-200: #e6cdc1;
  --terra-400: #bd8c76;
  --terra-600: #8a5c41;

  --ink: #1f2733;
  --ink-2: #46566a;
  --ink-3: #5c6f83;
  --line: #d4dde6;
  --line-soft: #e8eef4;

  --shadow-sm: 0 1px 2px rgba(31, 39, 51, .04), 0 2px 8px rgba(31, 39, 51, .05);
  --shadow-md: 0 4px 14px rgba(31, 39, 51, .07), 0 12px 32px rgba(31, 39, 51, .08);
  --shadow-lg: 0 10px 30px rgba(31, 39, 51, .10), 0 28px 64px rgba(31, 39, 51, .14);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }

/* ============================================================
   鐧诲綍椤?   ============================================================ */
.login-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(1200px 520px at 85% -10%, rgba(33, 147, 208, .28) 0%, transparent 60%),
    radial-gradient(900px 460px at -10% 110%, rgba(133, 190, 222, .22) 0%, transparent 55%),
    linear-gradient(160deg, #e7f2fa 0%, #f1f7fb 55%, #e9f0f5 100%);
  padding: 24px;
}
.login-card {
  width: 380px;
  max-width: 100%;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 44px 40px 40px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line-soft);
}
.login-brand {
  width: 52px;
  height: 52px;
  margin: 0 auto 18px;
  border-radius: 15px;
  background: linear-gradient(140deg, var(--matcha-400), var(--matcha-600));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(33, 147, 208, .32);
}
.login-brand svg { width: 27px; height: 27px; }
.login-title {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: .3px;
  text-align: center;
  color: var(--ink);
  margin-bottom: 6px;
}
.login-subtitle {
  text-align: center;
  color: var(--ink-3);
  font-size: 13px;
  margin-bottom: 30px;
}
.login-card .form-item { margin-bottom: 18px; }
.login-card .form-item label { color: var(--ink-2); font-weight: 600; }
.login-card input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 14px;
  background: var(--surface-2);
  transition: all .18s;
}
.login-card input:focus {
  outline: none;
  border-color: var(--matcha-400);
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(87, 167, 215, .22);
}
.login-error {
  color: var(--terra-600);
  background: var(--terra-100);
  border: 1px solid var(--terra-200);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  font-size: 13px;
}

/* ============================================================
   椤舵爮
   ============================================================ */
.topbar {
  height: 60px;
  background: linear-gradient(120deg, var(--matcha-500), var(--matcha-600));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(26, 119, 171, .22);
}
.topbar-left { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: rgba(255, 255, 255, .18);
  display: inline-block;
  position: relative;
}
.brand-mark::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50% 50% 50% 8px;
  transform: rotate(-45deg);
  background: #fff;
  box-shadow: inset -2px -2px 0 rgba(33, 147, 208, .35);
}
.brand-name { font-size: 16px; font-weight: 600; letter-spacing: .4px; }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.welcome { font-size: 13px; opacity: .92; }
.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, .35);
  background: rgba(255, 255, 255, .12);
  color: #fff;
  cursor: pointer;
  transition: all .18s;
  padding: 0;
  line-height: 1;
}
.btn-icon:hover { background: rgba(255, 255, 255, .26); border-color: rgba(255, 255, 255, .7); transform: translateY(-1px); }

/* ============================================================
   甯冨眬锛氫晶杈规爮 + 涓诲唴瀹?   ============================================================ */
.layout { display: flex; min-height: calc(100vh - 60px); }
.sidebar {
  width: 216px;
  background: var(--bg-soft);
  border-right: 1px solid var(--line);
  padding: 18px 12px 64px;
  flex-shrink: 0;
  position: sticky;
  top: 60px;
  height: calc(100vh - 60px);
  overflow-y: auto;
}
.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  margin-bottom: 4px;
  color: var(--ink-2);
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 14px;
  transition: all .18s;
  cursor: pointer;
}
.menu-ico { width: 19px; height: 19px; flex-shrink: 0; opacity: .85; }
.menu-item:hover { background: var(--matcha-100); color: var(--matcha-700); }
.menu-item:hover .menu-ico { opacity: 1; }
.menu-item.active {
  background: linear-gradient(135deg, var(--matcha-100), var(--matcha-200));
  color: var(--matcha-700);
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(87, 167, 215, .35);
}
.menu-item.active .menu-ico { opacity: 1; }

.main { flex: 1; padding: 26px 30px 76px; min-width: 0; }

/* 椤佃剼锛氬弸鎯呴摼鎺ワ紙鍥哄畾鍦ㄨ鍙ｅ簳閮級 */
.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 11px 30px;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  font-size: 13px;
  color: var(--ink-3);
}
.footer-label {
  font-weight: 600;
  color: var(--ink-2);
  margin-right: 4px;
}
.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 13px;
  border-radius: 100px;
  color: var(--ink-2);
  transition: all .15s;
}
.footer-link:hover {
  background: var(--matcha-100);
  color: var(--matcha-700);
}
.footer-fav {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  object-fit: contain;
  flex-shrink: 0;
}
.download-cli-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.download-cli-item {
  position: relative;
}
.download-cli-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border-radius: 100px;
  background: var(--matcha-600);
  color: #fff;
  white-space: nowrap;
  transition: all .15s;
}
.download-cli-btn:hover {
  background: var(--matcha-700);
  color: #fff;
}
.download-cli-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}
.download-cli-icon svg {
  display: block;
}
.download-cli-name {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
}
.download-cli-btn.dragover {
  background: var(--matcha-700);
  outline: 2px dashed #fff;
  outline-offset: 2px;
}
.apk-pop {
  position: absolute;
  bottom: calc(100% + 12px);
  right: 0;
  width: 348px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  z-index: 120;
  text-align: left;
}
.apk-pop::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 12px;
}
.apk-pop-inner { padding: 0; }
.apk-pop-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 14px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--surface-2);
}
.apk-pop-t {
  font-weight: 700;
  font-size: 15px;
  color: var(--ink-1);
}
.apk-pop-sub {
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: .01em;
}
.apk-pop-body {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 20px;
}
.apk-qr-wrap {
  flex: 0 0 auto;
  padding: 8px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.apk-qr {
  width: 104px;
  height: 104px;
}
.apk-qr svg, .apk-qr img, .apk-qr canvas { width: 100%; height: 100%; display: block; }
.apk-qr-fallback { font-size: 11px; color: var(--ink-3); padding: 6px; }
.apk-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.apk-meta-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.apk-meta-k {
  font-size: 11.5px;
  color: var(--ink-3);
  letter-spacing: .02em;
}
.apk-meta-v {
  font-size: 14px;
  color: var(--ink-1);
  font-weight: 600;
  word-break: break-all;
}

/* ---------- APK 上传进度条 ---------- */
.apk-upload-panel {
  border-top: 1px solid var(--line-soft);
  padding: 14px 20px 16px;
  background: var(--surface);
}
.apk-upload-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.apk-upload-name {
  font-size: 13px;
  color: var(--ink-1);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.apk-upload-pct {
  font-size: 14px;
  font-weight: 700;
  color: var(--matcha-700);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.apk-upload-track {
  position: relative;
  height: 8px;
  border-radius: 100px;
  background: var(--line-soft);
  overflow: hidden;
}
.apk-upload-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  border-radius: 100px;
  background: linear-gradient(90deg, var(--matcha-500), var(--matcha-600), var(--matcha-700));
  transition: width .18s ease;
}
.apk-upload-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent);
  background-size: 200% 100%;
  animation: apk-shimmer 1.1s linear infinite;
}
@keyframes apk-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.apk-upload-foot {
  margin-top: 9px;
  font-size: 11.5px;
  color: var(--ink-3);
  min-height: 14px;
}
.apk-upload-speed {
  color: var(--ink-3);
}
.apk-upload-state-fail {
  color: var(--danger, #e5484d);
  font-weight: 600;
}
.apk-upload-state-done {
  color: var(--matcha-600);
  font-weight: 600;
}
.apk-upload-fail .apk-upload-fill {
  background: linear-gradient(90deg, var(--danger, #e5484d), #d93036);
}
.apk-upload-fail .apk-upload-pct {
  color: var(--danger, #e5484d);
}
.apk-upload-done .apk-upload-fill {
  background: linear-gradient(90deg, var(--matcha-500), var(--matcha-700));
}

.apk-pop-enter-active, .apk-pop-leave-active { transition: opacity .18s, transform .18s; }
.apk-pop-enter-from, .apk-pop-leave-to { opacity: 0; transform: translateY(6px); }

/* ============================================================
   闈㈡澘
   ============================================================ */
.panel {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 24px 26px;
  box-shadow: var(--shadow-sm);
  animation: panel-in .28s ease-out;
}
@keyframes panel-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-soft);
}
.panel-head h2 { font-size: 18px; font-weight: 700; color: var(--ink); letter-spacing: .2px; }
.panel-head h2 .muted { font-weight: 400; }
.panel-head .head-actions { display: flex; align-items: center; gap: 12px; }
.panel-head .mode-pill { margin: 0; min-width: 132px; justify-content: center; }
.sort-num { display: inline-block; min-width: 26px; text-align: center; font-size: 13px; color: #8a94a6; margin-right: 4px; }
.drag-handle { cursor: grab; color: #c2c9d6; margin-right: 6px; vertical-align: middle; }
.drag-handle:hover, .drag-handle:active { color: var(--matcha-600); }
.table tbody tr.dragging { opacity: .5; background: #f0f6ff; }
.table tbody tr[draggable="true"] { cursor: grab; }
.table tbody tr[draggable="true"]:active { cursor: grabbing; }
.table .btn-sm:disabled { opacity: .45; cursor: not-allowed; }
.table .btn-sm:disabled:hover { background: var(--matcha-100); color: var(--matcha-700); }

.filter-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  align-items: center;
  flex-wrap: wrap;
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}
.filter-bar select, .filter-bar input {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  background: var(--surface);
  min-width: 180px;
  color: var(--ink);
  transition: all .18s;
}
.filter-bar select:focus, .filter-bar input:focus {
  outline: none;
  border-color: var(--matcha-400);
  box-shadow: 0 0 0 4px rgba(87, 167, 215, .20);
}
.filter-bar select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238a94a6' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px;
  height: 40px;
  box-sizing: border-box;
  padding: 0 40px 0 20px;
  border-radius: 100px;
  min-width: 150px;
}
.filter-bar > input {
  height: 40px;
  box-sizing: border-box;
  padding: 0 20px;
  border-radius: 100px;
  min-width: 180px;
}
.filter-bar .btn { min-height: 40px; display: inline-flex; align-items: center; }
.filter-bar .btn > i { margin-right: 9px; }
.settings-group {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 4px 14px 4px 4px;
}
.settings-group .icon-btn {
  width: 34px; height: 34px; font-size: 13px;
  border: none;
  flex-shrink: 0;
}
.settings-group .icon-btn:hover { transform: none; box-shadow: none; }
.settings-group .ad-interval {
  margin-left: 0;
  padding-left: 10px;
  padding-right: 6px;
}
.ad-interval {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--ink-2); font-size: 13px; position: relative;
}
.ad-interval i { color: var(--matcha-600); }
.ad-interval input {
  min-width: 0; width: 72px; text-align: center;
  -moz-appearance: textfield;
  border: none; background: transparent;
  box-shadow: none; outline: none;
}
.ad-interval input:focus {
  box-shadow: 0 0 0 3px rgba(87, 167, 215, .20);
  border-radius: 6px;
}
.ad-interval .btn-plain {
  border: none;
  padding: 4px 10px;
  border-radius: 100px;
  background: var(--matcha-100);
  color: var(--matcha-700);
}
.ad-interval .btn-plain:hover { background: var(--matcha-200); color: var(--matcha-700); }
.ad-interval input::-webkit-outer-spin-button,
.ad-interval input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ad-interval .muted { white-space: nowrap; }
.filter-bar-split { justify-content: space-between; }

/* 瀹氭椂璋冨害鍣ㄦ椂闂寸嚎鍔ㄧ敾鏍峰紡瑙?frontend/js/scheduler-anim.js锛堝唴鑱旀敞鍏ワ級 */
.filter-bar-split .filter-left { display: flex; gap: 10px; align-items: center; min-width: 0; }
.btn.btn-square {
  width: 38px; height: 38px; padding: 0; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  line-height: 1;
}

/* ============================================================
   琛ㄦ牸
   ============================================================ */
.table { width: 100%; border-collapse: collapse; }
.table th, .table td {
  border-bottom: 1px solid var(--line-soft);
  padding: 12px 12px;
  text-align: left;
  font-size: 13.5px;
}
.table th {
  background: var(--matcha-50);
  color: var(--ink-2);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: .3px;
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
}
.table tr:first-child th:first-child { border-top-left-radius: var(--radius-sm); }
.table tr:first-child th:last-child { border-top-right-radius: var(--radius-sm); }
.table tbody tr { transition: background .14s; }
.table tbody tr:hover td { background: var(--matcha-50); }
.table tbody tr:last-child td { border-bottom: none; }
.table td { color: var(--ink); }
.empty { text-align: center; color: var(--ink-3); padding: 44px 0; font-size: 13.5px; }
.muted { color: var(--ink-3); }
.thumb {
  width: 108px;
  height: 46px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-soft);
  background: var(--surface-2);
}
.thumb-big {
  margin-top: 10px;
  width: 100%;
  max-width: 380px;
  max-height: 150px;
  object-fit: contain;
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-2);
  padding: 6px;
}
.nowrap { white-space: nowrap; }

/* ============================================================
   鏍囩
   ============================================================ */
.tag {
  display: inline-block;
  padding: 2px 11px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.7;
}
.tag-ok { background: var(--matcha-100); color: var(--matcha-700); }
.tag-off { background: var(--terra-100); color: var(--terra-600); }
.tag-err { background: var(--terra-100); color: var(--terra-600); }
.tag-warn { background: var(--cream-100); color: var(--cream-600); }
.tag-info { background: var(--sage-100); color: var(--sage-600); }

/* 娑堟伅琛ㄦ牸鏍囬鍓嶇殑闂归挓鍥炬爣锛堝畾鏃朵腑锛夛紝棰滆壊璺熼殢鏂囧瓧锛岄棿姝囨檭鍔?*/
.msg-alarm {
  display: inline-block;
  margin-right: 6px;
  color: inherit;
  transform-origin: 50% 18%;
  animation: msg-alarm-ring 4s ease-in-out infinite;
}
@keyframes msg-alarm-ring {
  0%, 6% { transform: rotate(0); }
  12% { transform: rotate(-12deg); }
  18% { transform: rotate(10deg); }
  24% { transform: rotate(-7deg); }
  30% { transform: rotate(4deg); }
  36%, 50% { transform: rotate(0); }
  56% { transform: rotate(-12deg); }
  62% { transform: rotate(10deg); }
  68% { transform: rotate(-7deg); }
  74% { transform: rotate(4deg); }
  80%, 100% { transform: rotate(0); }
}

/* 琛ㄦ牸鍗曞厓鏍煎弻琛屽睍绀猴紙涓讳俊鎭?+ 杈呭姪淇℃伅锛?*/
.cell-main {
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 170px;
}
.cell-sub {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 170px;
}
.mono {
  font-family: Consolas, Monaco, "Courier New", monospace;
  font-size: 12px;
  color: var(--sage-700, #3288b5);
  word-break: break-all;
}

/* 浼氬憳灞曞紑琛?*/
.member-expand-row td {
  background: var(--surface-2, #f3f7fb) !important;
  padding: 12px 14px !important;
}
.member-expand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* 会员档案卡 */
.mem-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md, 12px);
  overflow: hidden;
}

/* 卡头：身份 + 平台 + 活跃状态 */
.mem-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: linear-gradient(90deg, var(--surface-2), #fff 55%);
  border-bottom: 1px solid var(--line-soft);
}
.mem-avatar {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--matcha-500), var(--matcha-600));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
}
.mem-ident { flex: 1; min-width: 0; }
.mem-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mem-userid {
  margin-top: 3px;
  font-size: 12px;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  gap: 4px;
}
.mem-userid .mono { color: var(--ink); }
.mem-head-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.mem-active {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--ink-2);
}
.mem-active-txt { white-space: nowrap; }

/* 卡体：设备 */
.mem-card-body { padding: 0; }
.mem-sec { padding: 16px; min-width: 0; }

.mem-sec-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .3px;
  color: var(--ink-2);
  margin-bottom: 12px;
  text-transform: uppercase;
}
.mem-sec-title i { color: var(--matcha-500); font-size: 13px; }

/* 分组：按相关性分栏，全部展开 */
.mem-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
  padding: 14px 16px 4px;
}
.mem-groups .mem-sec {
  padding: 12px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: var(--surface-2);
}
.mem-groups .mem-sec .spec { background: #fff; }
.mem-card-body > .mem-sec { padding: 8px 16px 16px; }
.mem-card-body > .mem-sec .mem-param-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.member-expand .mem-card .mem-time-line {
  padding: 10px 16px 14px;
  font-size: 12px;
  color: var(--ink-3);
}

/* 设备：2x2 规格格 */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.spec {
  min-width: 0;
  padding: 9px 11px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--surface-2);
}
.spec label {
  display: block;
  font-size: 11px;
  color: var(--ink-2);
  margin-bottom: 2px;
  letter-spacing: .2px;
}
.spec var {
  display: block;
  font-style: normal;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.spec var.mono { font-weight: 400; }

/* 详细参数：默认收起 */
.mem-detail { margin-top: 12px; }
.mem-detail summary {
  cursor: pointer;
  font-size: 12px;
  color: var(--matcha-600);
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.mem-param-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 16px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}
.mem-param {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 12px;
  min-width: 0;
}
.mem-param .k { color: var(--ink-2); flex: 0 0 auto; }
.mem-param .v { color: var(--ink); word-break: break-all; }

/* 卡尾：辅助时间（弱化） */
.mem-card-foot {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  padding: 10px 16px;
  background: var(--surface-2);
  border-top: 1px solid var(--line-soft);
  font-size: 12px;
  color: var(--ink-2);
}
.mem-card-foot b { font-weight: 500; color: var(--ink); }

/* 状态点 */
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  background: #c8d0da;
}
.dot.dot-on { background: var(--matcha-500); box-shadow: 0 0 0 3px rgba(47, 151, 207, .15); }

@media (max-width: 760px) {
  .mem-card-head { flex-wrap: wrap; }
  .mem-head-right { justify-content: flex-start; width: 100%; }
}

/* 鎺ㄩ€侊細宸查€夎处鍙疯澶囦俊鎭垪琛?*/
.push-device-block {
  margin-top: 2px;
}
.push-device-table {
  table-layout: fixed;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.push-device-table th:nth-child(3), .push-device-table td:nth-child(3) { width: 20%; }
.push-device-table th:nth-child(4), .push-device-table td:nth-child(4) { width: 33%; }
.push-device-table td { padding: 8px 12px; }
.token-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}
.token-cell .token-code {
  display: inline-block;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.member-table .token-cell .btn {
  background: transparent;
  color: var(--matcha-600, #2e7d8c);
  padding: 4px 6px;
}
.member-table .token-cell .btn:hover {
  background: var(--matcha-100, #dcecf7);
  color: var(--matcha-700, #2e7d8c);
}

/* 浼氬憳琛ㄦ牸锛氭暣琛屽彲鐐瑰嚮灞曞紑 */
.member-table {
  table-layout: fixed;
}
.member-table th:nth-child(1), .member-table td:nth-child(1) { width: 20%; }
.member-table th:nth-child(2), .member-table td:nth-child(2) { width: 8%; }
.member-table th:nth-child(3), .member-table td:nth-child(3) { width: 14%; }
.member-table th:nth-child(4), .member-table td:nth-child(4) { width: 22%; }
.member-table th:nth-child(5), .member-table td:nth-child(5) { width: 16%; }
.member-table th:nth-child(6), .member-table td:nth-child(6) { width: auto; }
.member-table th:nth-child(7), .member-table td:nth-child(7) { width: 40px; }
.member-table td.member-del { padding-left: 2px; padding-right: 2px; text-align: center; }
.member-table .member-row td {
  vertical-align: middle;
}
.member-table .member-row {
  cursor: default;
  transition: background .15s;
}
.member-table .member-row:hover td,
.member-table .member-row.expanded td {
  background: var(--matcha-100, #dcecf7);
}
.member-table .member-row .btn-danger.btn-icon {
  width: 30px;
  height: 30px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease-in-out;
  vertical-align: middle;
}
.member-table .member-row:hover .btn-danger.btn-icon {
  opacity: 1;
  visibility: visible;
}
.member-table .member-row:hover .btn-toggle {
  background-color: transparent;
  box-shadow: none;
}
.member-del .btn-danger.btn-icon {
  background: transparent;
  color: var(--terra-500, #b3502e);
}
.member-del .btn-danger.btn-icon:hover {
  background: var(--terra-100);
  color: var(--terra-600);
}
.member-table .member-row .btn-danger.btn-icon:hover {
  background: var(--terra-200);
  color: var(--terra-600);
}
.member-table .member-row .btn-danger.btn-icon:disabled {
  opacity: .4;
}
.member-table td:nth-child(1) .cell-main { display: flex; align-items: center; }
.member-ops {
  /* 1. 恢复 td 正常的表格单元格特性，解决 flex 导致宽度塌陷、hover 背景色被截断的 Bug */
  display: table-cell !important;
  vertical-align: middle;
  white-space: nowrap;
}
.btn-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  font-size: 12.5px;
  border-radius: 8px;
}
.member-ops .btn-toggle {
  margin-right: 16px;
  background: transparent;
  color: var(--matcha-600);
}
.member-ops .btn-toggle:hover {
  background: var(--matcha-100);
  color: var(--matcha-700);
}
.member-ops .btn-danger.btn-icon { vertical-align: middle; }
.member-table td:nth-child(6) { text-align: left; }
.member-table td:nth-child(1) .cell-main { display: flex; align-items: center; }
.member-msg-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 6px;
  border: none; background: transparent; color: var(--matcha-600, #2e7d8c);
  font-size: 13px; cursor: pointer; margin-left: 6px;
  opacity: 0; transition: opacity .15s, background .15s;
}
.member-table .member-row:hover .member-msg-btn { opacity: 1; }
.member-msg-btn:hover { background: var(--matcha-100, #dcecf7); }
.platform-cell { text-align: center; }
.plat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  font-size: 17px;
  vertical-align: middle;
}
.plat-android { color: #3ddc84; }
.plat-ios { color: #111; }
.plat-xiaomi { color: #ff6700; }
.plat-huawei { color: #cf0a2c; }
.plat-oppo { color: #0a9447; }
.plat-vivo { color: #3b5bfd; }
.plat-samsung { color: #1428a0; }
.plat-other { color: #8a94a6; }

/* 鍒嗛〉姣忛〉鏉℃暟 */
.pager-per {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--ink-3);
  font-size: 12.5px;
  margin: 0 6px;
}
.sel-sm {
  padding: 2px 4px;
  font-size: 12.5px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

/* ============================================================
   鎸夐挳
   ============================================================ */
.btn {
  display: inline-block;
  padding: 8px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  background: var(--surface);
  color: var(--ink-2);
  transition: all .18s;
  line-height: 1.5;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.btn-primary {
  background: linear-gradient(135deg, var(--matcha-500), var(--matcha-600));
  color: #fff;
  box-shadow: 0 4px 12px rgba(33, 147, 208, .35);
}
.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--matcha-500), var(--matcha-600));
  box-shadow: 0 6px 16px rgba(33, 147, 208, .4);
}
.btn-primary:disabled { opacity: .6; }

.btn-ghost { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .4); }
.btn-ghost:hover { background: rgba(255, 255, 255, .24); border-color: rgba(255, 255, 255, .75); }
.btn-plain { background: var(--bg-soft); color: var(--ink-2); border-color: var(--line); }
.btn-plain:hover { background: var(--matcha-100); color: var(--matcha-700); }
.btn-close {
  background: transparent;
  color: var(--ink-3);
  border: none;
  font-size: 20px;
  line-height: 1;
  padding: 5px 9px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all .15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-close:hover { color: var(--ink); background: var(--bg-soft); }
.btn-sm { padding: 4px 12px; font-size: 12.5px; background: var(--matcha-100); color: var(--matcha-700); border-radius: 100px; }
.btn-sm:hover { background: var(--matcha-200); color: var(--matcha-700); }
.btn-danger { background: var(--terra-100); color: var(--terra-600); }
.btn-danger:hover { background: var(--terra-200); color: var(--terra-600); }
.btn-warning { background: var(--cream-100); color: var(--cream-600); }
.btn-warning:hover { background: var(--cream-200); color: var(--cream-600); }
.action-group { display: inline-flex; vertical-align: middle; }
.action-group .btn { border-radius: 0; padding: 4px 8px; }
.action-group .btn:first-child { border-radius: 100px 0 0 100px; }
.action-group .btn:last-child { border-radius: 0 100px 100px 0; }
.action-group .btn + .btn { margin-left: 0; border-left: 1px solid var(--line); }
.action-group .btn:hover,
.action-group .btn:active { transform: none; }
.btn-block { width: 100%; margin-top: 8px; padding: 12px; font-size: 15px; font-weight: 600; letter-spacing: 4px; }

.pager {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 18px;
  color: var(--ink-3);
  font-size: 13px;
}
.pager .btn:disabled { opacity: .5; cursor: not-allowed; }

/* ============================================================
   琛ㄥ崟
   ============================================================ */
.form-item { margin-bottom: 16px; }
.form-item label { display: block; margin-bottom: 7px; color: var(--ink-2); font-size: 13px; font-weight: 600; }
.form-item input:not([type="checkbox"]):not([type="radio"]), .form-item select {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  background: var(--surface-2);
  color: var(--ink);
  transition: all .18s;
}
.form-item input:not([type="checkbox"]):not([type="radio"]):focus, .form-item select:focus {
  outline: none;
  border-color: var(--matcha-400);
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(87, 167, 215, .20);
}
.form-item textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  background: var(--surface-2);
  color: var(--ink);
  font-family: inherit;
  transition: all .18s;
}
.form-item textarea:focus {
  outline: none;
  border-color: var(--matcha-400);
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(87, 167, 215, .20);
}
.form-item label.inline { display: flex; align-items: center; gap: 6px; margin: 0; cursor: pointer; }
.upload-row { display: flex; gap: 8px; }
.datetime-row { display: flex; gap: 8px; align-items: center; }
.datetime-row input { flex: 1; min-width: 0; }

/* 轮播图编辑弹窗：上部 左(标题/位置/推荐尺寸) + 右(图片)，下部剩余字段 */
/* 轮播图编辑弹窗：区域分隔标题 */
.form-section {
  display: flex; align-items: center; gap: 8px;
  margin: 0 0 16px; padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink); font-size: 14px; font-weight: 700; letter-spacing: .2px;
}
.form-section i { font-size: 12px; color: var(--matcha-500); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; min-width: 0; }
.form-grid .form-full { grid-column: 1 / -1; }
.banner-preview {
  display: grid; grid-template-columns: minmax(0, 1fr) 280px; column-gap: 20px; align-items: stretch;
  margin-bottom: 12px; padding: 18px 18px 14px;
  background: var(--surface-2); border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
}
.banner-preview .bp-info { min-width: 0; }
.banner-preview .bp-info .form-item:last-child { margin-bottom: 0; }
.banner-preview .bp-media { display: flex; flex-direction: column; min-width: 0; }
.banner-preview .bp-media .upload-drop { flex: 1; }
.banner-preview .bp-media input {
  margin-top: 8px; width: 100%; box-sizing: border-box; padding: 9px 12px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 13.5px;
  background: var(--surface-2); color: var(--ink); transition: all .18s;
}
.banner-preview .bp-media input:focus {
  outline: none; border-color: var(--matcha-400); background: var(--surface);
  box-shadow: 0 0 0 4px rgba(87, 167, 215, .20);
}
.bp-size { display: flex; align-items: center; gap: 6px; min-height: 38px; }

/* ============================================================
   多选下拉（职位类型 / 行业类型）
   ============================================================ */
.multi-select { position: relative; }
.multi-select-box {
  width: 100%;
  min-height: 38px;
  padding: 5px 30px 5px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all .18s;
  position: relative;
}
.multi-select.is-open .multi-select-box {
  border-color: var(--matcha-400);
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(87, 167, 215, .20);
}
.multi-select-arrow {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-3);
  font-size: 12px;
  pointer-events: none;
  transition: transform .18s;
}
.multi-select.is-open .multi-select-arrow { transform: translateY(-50%) rotate(180deg); }
.multi-select-placeholder { color: var(--ink-3); font-size: 13.5px; }
.multi-select-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 7px;
  background: var(--matcha-100);
  color: var(--matcha-700);
  border-radius: 100px;
  font-size: 12.5px;
  line-height: 1.4;
}
.multi-select-tag i { cursor: pointer; font-size: 11px; }
.multi-select-tag i:hover { color: var(--terra-600); }
.multi-select-panel {
  position: absolute;
  z-index: 60;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.multi-select-panel.up {
  top: auto;
  bottom: calc(100% + 6px);
}
.multi-select-search { padding: 8px; border-bottom: 1px solid var(--line-soft); }
.multi-select-search input {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 13px;
  background: var(--surface-2);
  color: var(--ink);
}
.multi-select-search input:focus {
  outline: none;
  border-color: var(--matcha-400);
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(87, 167, 215, .20);
}
.multi-select-options { max-height: 300px; overflow-y: auto; padding: 6px; }
.multi-select-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--ink-2);
  cursor: pointer;
  transition: background .15s;
}
.multi-select-option:hover { background: var(--matcha-50); }
.multi-select-option.is-selected { background: var(--matcha-100); color: var(--matcha-700); font-weight: 600; }
.multi-select-option.is-selected i { color: var(--matcha-600); font-size: 12px; }
.multi-select-empty { padding: 12px; text-align: center; color: var(--ink-3); font-size: 13px; }

/* ============================================================
   鍗＄墖锛堟帹閫佺鐞嗕笁澶фā鍧楋細涓€妯″潡涓€搴曡壊锛?   ============================================================ */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .22s, transform .22s;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--matcha-300), var(--matcha-500));
}
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.card-head h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
}
.card-head h3::before {
  content: "";
  width: 9px; height: 9px; border-radius: 3px;
  background: currentColor; flex-shrink: 0;
}

/* 妯″潡涓€锛氭帹閫佸唴瀹?鈥斺€?鎶硅尪锛堢粺涓€鐧藉簳 + 椤堕儴鑹叉潯鍖哄垎妯″潡锛屽噺灏戝ぇ闈㈢Н鑹插潡锛?*/
.card-tint-matcha::before { background: linear-gradient(90deg, var(--matcha-400), var(--matcha-500)); }
.card-tint-matcha .card-head h3 { color: var(--matcha-700); }

/* 妯″潡浜岋細鍙戦€?鈥斺€?榧犲熬鑽?*/
.card-tint-sage::before { background: linear-gradient(90deg, var(--sage-200), var(--sage-400)); }
.card-tint-sage .card-head h3 { color: var(--sage-600); }

/* 妯″潡涓夛細鍙戦€佽褰?鈥斺€?濂舵补 */
.card-tint-cream::before { background: linear-gradient(90deg, var(--cream-200), var(--cream-400)); }
.card-tint-cream .card-head h3 { color: var(--cream-600); }

/* 鍏煎鏃х被鍚嶏紙tint-blue / tint-green / tint-amber锛夋槧灏勫埌鎶硅尪鑹茬郴 */
.card-tint-blue::before { background: linear-gradient(90deg, var(--sage-200), var(--sage-400)); }
.card-tint-blue .card-head h3 { color: var(--sage-600); }
.card-tint-green::before { background: linear-gradient(90deg, var(--matcha-400), var(--matcha-500)); }
.card-tint-green .card-head h3 { color: var(--matcha-700); }
.card-tint-amber::before { background: linear-gradient(90deg, var(--cream-200), var(--cream-400)); }
.card-tint-amber .card-head h3 { color: var(--cream-600); }

/* ============================================================
   鎺ㄩ€佺鐞?   ============================================================ */
.mode-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px; border-radius: 100px; border: 1px solid transparent;
  font-size: 12.5px; font-weight: 600; cursor: pointer; transition: all .18s;
  letter-spacing: .3px;
}
.mode-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.mode-pill-test { background: var(--matcha-100); color: var(--matcha-700); border-color: var(--matcha-300); }
.mode-pill-test:hover { background: var(--matcha-200); }
.mode-pill-prod { background: var(--terra-100); color: var(--terra-600); border-color: var(--terra-200); }
.mode-pill-prod:hover { background: var(--terra-200); }

/* ---------- 圆形图标按钮 + 悬浮提示 + 状态切换动画 ---------- */
.icon-btn {
  position: relative;
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid transparent;
  font-size: 15px;
  cursor: pointer;
  background: var(--matcha-100); color: var(--matcha-700); border-color: var(--matcha-300);
  transition: background .18s, color .18s, border-color .18s, transform .18s, box-shadow .18s;
}
.icon-btn:hover { background: var(--matcha-200); transform: translateY(-1px); box-shadow: 0 4px 10px rgba(31, 39, 51, .12); }
.icon-btn:active { transform: scale(.9); box-shadow: none; }
.icon-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.icon-btn.is-primary { background: linear-gradient(135deg, var(--matcha-500), var(--matcha-600)); color: #fff; border-color: transparent; box-shadow: 0 4px 12px rgba(33, 147, 208, .35); }
.icon-btn.is-primary:hover { background: linear-gradient(135deg, var(--matcha-500), var(--matcha-600)); box-shadow: 0 6px 16px rgba(33, 147, 208, .4); }
.icon-btn.is-on { background: var(--terra-100); color: var(--terra-600); border-color: var(--terra-400); }
.icon-btn.is-on:hover { background: var(--terra-200); }

/* 状态切换：图标旋转 + 缩放交替（类似播放器切换） */
.icon-swap-enter-active { transition: all .22s cubic-bezier(.6, -.28, .735, .045); }
.icon-swap-leave-active { transition: all .2s cubic-bezier(.175, .885, .32, 1.275); }
.icon-swap-enter-from { opacity: 0; transform: scale(.3) rotate(-120deg); }
.icon-swap-leave-to { opacity: 0; transform: scale(.3) rotate(120deg); }

/* 悬浮提示（tooltip）：data-tip 文案可含 \n 换行
   默认显示在按钮下方，右缘对齐按钮，避免靠上/靠右时被遮挡或溢出 */
[data-tip]::after {
  content: attr(data-tip);
  position: absolute; top: calc(100% + 14px); right: 0;
  transform: translateY(6px);
  background: #1f2733; color: #fff;
  padding: 10px 14px; border-radius: 8px;
  font-size: 14px; line-height: 1.7; white-space: pre-line;
  width: max-content; max-width: 280px; text-align: left;
  opacity: 0; visibility: hidden;
  transition: opacity .15s, transform .15s, visibility .15s;
  pointer-events: none; z-index: 80;
  box-shadow: 0 6px 16px rgba(31, 39, 51, .18);
}
[data-tip]::before {
  content: '';
  position: absolute; top: calc(100% + 8px); right: 16px;
  transform: none;
  border: 6px solid transparent; border-bottom-color: #1f2733; border-top: none;
  opacity: 0; visibility: hidden;
  transition: opacity .15s, transform .15s, visibility .15s;
  pointer-events: none; z-index: 80;
}
[data-tip]:hover::after,
[data-tip]:hover::before { opacity: 1; visibility: visible; transform: translateY(0); }
[data-tip]:disabled:hover::after,
[data-tip]:disabled:hover::before { opacity: 0; visibility: hidden; }
/* 「新增」按钮：tooltip 向上弹出，避免与下方设置组（排序/广告间隔）重叠 */
.tip-up[data-tip]::after { top: auto; bottom: calc(100% + 14px); }
.tip-up[data-tip]::before {
  top: auto; bottom: calc(100% + 8px);
  border: 6px solid transparent; border-bottom: none;
  border-top-color: #1f2733;
}


.push-field { margin-bottom: 18px; }
.push-field:last-child { margin-bottom: 0; }
.push-label {
  display: block;
  margin-bottom: 7px;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
}
.push-control { min-width: 0; }

.push-control input:not([type="checkbox"]):not([type="radio"]), .push-control textarea {
  width: 100%; padding: 10px 13px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: 13.5px; background: var(--surface); color: var(--ink);
  transition: all .18s;
}
.push-control input:not([type="checkbox"]):not([type="radio"]):focus, .push-control textarea:focus {
  outline: none; border-color: var(--matcha-400);
  box-shadow: 0 0 0 4px rgba(87, 167, 215, .20);
}

/* 鍙戦€佽寖鍥存彁绀烘潯 */
.push-hint {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px 13px;
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--sage-400);
  border-radius: var(--radius-sm);
  color: var(--ink-2);
  font-size: 13px;
}
.push-hint b { color: var(--sage-600); }
.push-hint .phi { flex-shrink: 0; font-size: 14px; line-height: 1.4; }

.receiver-wrap { position: relative; }
.receiver-input-wrap { position: relative; }
.receiver-input-wrap input { padding-right: 36px; }
.receiver-input-wrap input.input-ok { border-color: var(--matcha-500); box-shadow: 0 0 0 4px rgba(33, 147, 208, .18); }
.receiver-input-wrap input.input-bad { border-color: var(--terra-400); box-shadow: 0 0 0 4px rgba(189, 140, 118, .18); }
.receiver-clear {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: var(--bg-soft); border: none; border-radius: 50%;
  width: 21px; height: 21px; line-height: 1;
  color: var(--ink-2); font-size: 13px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.receiver-clear:hover { background: var(--matcha-200); color: var(--matcha-700); }

.receiver-dropdown {
  position: absolute; left: 0; right: 0; top: calc(100% + 5px);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  max-height: 260px; overflow-y: auto; z-index: 30;
}
.receiver-option {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 13px; cursor: pointer;
  border-bottom: 1px solid var(--line-soft);
  transition: background .12s;
}
.receiver-option:hover { background: var(--matcha-50); }
.receiver-option:last-child { border-bottom: none; }
.opt-account { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.opt-userid {
  font-size: 12px; color: var(--ink-3); font-family: Consolas, monospace;
  opacity: 0; transition: opacity .15s;
}
.receiver-option:hover .opt-userid { opacity: 1; color: var(--matcha-600); }

.dropdown-section { padding: 3px 0; }
.dropdown-title {
  padding: 7px 13px 5px;
  font-size: 12px;
  color: var(--ink-3);
  border-bottom: 1px solid var(--line-soft);
  font-weight: 600;
  letter-spacing: .5px;
}
.receiver-empty { padding: 16px; text-align: center; color: var(--ink-3); font-size: 13px; }

.search-feedback { margin-top: 8px; font-size: 12.5px; }
.sf-ok { color: var(--matcha-700); }
.sf-bad { color: var(--terra-600); }

/* 缂栬緫鍣ㄥ浘鐗囩粺璁?*/
.img-stat { margin-top: 8px; font-size: 12.5px; padding: 7px 11px; border-radius: var(--radius-sm); }
.img-stat-ok { color: var(--matcha-700); background: var(--matcha-50); }
.img-stat-warn { color: var(--cream-600); background: var(--cream-100); }
.img-stat .muted { color: var(--ink-3); font-size: 12px; }
/* 宸查€夋帴鏀朵汉 */
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; }
.mini-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 13px; border: 1px solid var(--matcha-200); border-radius: 100px;
  background: var(--matcha-50); font-size: 13px; cursor: pointer; transition: all .15s;
}
.mini-chip:hover { background: var(--matcha-100); border-color: var(--matcha-400); }
.mini-mail { color: var(--ink); }
.selected-block { margin-top: 10px; }
.mini-chip.selected { background: var(--matcha-100); border-color: var(--matcha-400); }
.mini-x { font-weight: 700; color: var(--terra-400); margin-left: 2px; display: inline-flex; align-items: center; }
.mini-x i { font-size: 11px; line-height: 1; }

/* Font Awesome 鍥炬爣鍦ㄦ寜閽腑鐨勯棿璺濓紙绾浘鏍囨寜閽笉鐢熸晥锛?*/
.btn > i.fa-solid:not(:only-child),
.btn > i.fa-regular:not(:only-child),
.btn > i.fa-brands:not(:only-child) { margin-right: 9px; }
.receiver-clear i { font-size: 12px; line-height: 1; }

.push-actions {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-wrap: wrap; padding-top: 14px; margin-top: 4px;
  border-top: 1px dashed var(--line-soft);
}
.btn-send {
  padding: 11px 34px; font-size: 14px; font-weight: 600;
  border-radius: 100px; letter-spacing: .3px;
  background: linear-gradient(135deg, var(--matcha-500), var(--matcha-600));
  color: #fff; border: none;
  box-shadow: 0 4px 12px rgba(33, 147, 208, .35);
}
.btn-send:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--matcha-500), var(--matcha-600));
  box-shadow: 0 6px 16px rgba(33, 147, 208, .4);
  transform: translateY(-1px);
}
.btn-send:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.push-warn { margin-top: 10px; color: var(--terra-600); font-size: 12.5px; display: flex; align-items: flex-start; gap: 6px; line-height: 1.6; }

/* 鍙戦€佹ā寮忛€夋嫨 */
.mode-radio {
  display: block; cursor: pointer; padding: 10px 13px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 8px;
  transition: all .15s; background: var(--surface);
}
.mode-radio:has(input:checked) { border-color: var(--matcha-400); background: var(--matcha-50); }
.mode-radio input { margin-right: 8px; }
.mode-name { font-weight: 600; color: var(--ink); margin-right: 10px; }
.mode-tip { font-size: 12px; color: var(--ink-3); }
.auto-detect {
  display: flex; align-items: center; gap: 8px;
  margin-top: 4px; padding: 9px 13px;
  background: var(--sage-100); border: 1px solid var(--sage-200); border-radius: var(--radius-sm);
  font-size: 13px; color: var(--sage-600);
}
.ad-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--matcha-500); flex-shrink: 0; }

.log-filter { display: flex; gap: 8px; }
.log-filter input, .log-filter select {
  padding: 8px 11px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 13px; background: var(--surface); color: var(--ink);
}
.log-filter select { cursor: pointer; }
.log-actions { margin-top: 12px; display: flex; justify-content: flex-end; }

.send-result { margin-top: 16px; }
.send-result-error {
  padding: 11px 13px; border: 1px solid var(--terra-200); background: var(--terra-100);
  border-radius: var(--radius-sm); color: var(--terra-600);
}
.send-result-summary {
  padding: 10px 13px; background: var(--matcha-50); border-radius: var(--radius-sm); font-size: 13px;
  border: 1px solid var(--matcha-100); color: var(--ink-2);
}
.result-groups { margin-top: 12px; display: flex; flex-direction: column; gap: 9px; }
.result-group { border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; background: var(--surface); }
.rg-head {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 13px; background: var(--matcha-50); border-bottom: 1px solid var(--line-soft);
}
.rg-account { color: var(--matcha-700); font-weight: 600; }
.rg-uid { font-size: 12px; color: var(--ink-3); font-family: Consolas, monospace; }
.rg-items { display: flex; flex-direction: column; }
.rg-item { display: flex; align-items: center; gap: 10px; padding: 9px 13px; }
.rg-item + .rg-item { border-top: 1px solid var(--line-soft); }
.rg-desc { font-size: 12px; color: var(--ink-3); }

/* ============================================================
   鍥剧墖鎷栨嫿涓婁紶
   ============================================================ */
.upload-drop {
  position: relative; overflow: hidden; min-height: 96px;
  border: 2px dashed var(--matcha-300); border-radius: var(--radius-md);
  padding: 18px 16px; text-align: center; cursor: pointer;
  transition: all .18s; background: var(--matcha-50);
}
.upload-drop:hover { border-color: var(--matcha-500); background: var(--matcha-100); }
.upload-drop.dragging { border-color: var(--matcha-600); background: var(--matcha-100); }
.upload-drop-icon { font-size: 24px; margin-bottom: 6px; filter: saturate(.85); }
.upload-drop-text b { display: block; font-size: 13.5px; color: var(--ink); margin-bottom: 3px; }
.upload-drop-text span { font-size: 12px; color: var(--ink-3); }
.upload-drop.has-img { padding: 0; border-style: solid; border-color: var(--matcha-200); background: #fff; }
.upload-drop.has-img:hover { border-color: var(--matcha-500); background: #fff; }
.upload-drop.has-img.dragging { border-color: var(--matcha-600); }
.upload-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.upload-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px;
  background: rgba(31, 47, 61, .45); color: #fff;
  opacity: 0; transition: opacity .18s;
}
.upload-drop.has-img:hover .upload-overlay { opacity: 1; }
.upload-overlay-text { font-size: 14px; font-weight: 600; }
.upload-edit {
  font-size: 12px; padding: 4px 14px; border: 1px solid rgba(255, 255, 255, .75);
  border-radius: 14px; cursor: pointer;
}
.upload-edit:hover { background: rgba(255, 255, 255, .22); }

/* Splash 不同屏幕裁剪基线预览 */
.splash-guides {
  position: relative; display: flex; justify-content: center; height: 300px; margin-top: 8px;
  background: #0b0f14; border-radius: 8px; overflow: hidden; cursor: pointer;
}
.splash-guides.dragging { box-shadow: inset 0 0 0 2px var(--matcha-500); }
.sg-stage { position: relative; height: 100%; }
.sg-img { display: block; height: 100%; width: auto; }
.sg-line { position: absolute; left: 0; right: 0; border-top: 1px dashed rgba(255, 255, 255, .85); }
.sg-line.sg-overflow { border-top-color: #ff9f43; }
.sg-tag {
  position: absolute; right: 3px; top: 2px; font-size: 11px; line-height: 1.5;
  color: #fff; background: rgba(0, 0, 0, .55); padding: 0 5px; border-radius: 3px;
}
.sg-line.tag-above .sg-tag { top: auto; bottom: 2px; }
.sg-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px;
  background: rgba(31, 47, 61, .55); color: #fff;
  opacity: 0; transition: opacity .18s;
}
.splash-guides:hover .sg-overlay { opacity: 1; }
.sg-legend { margin-top: 6px; font-size: 12px; color: var(--ink-3); }

/* 鎺ㄨ崘灏哄鎻愮ず */
.size-tip {
  display: block; margin-top: 8px; padding: 7px 12px;
  background: var(--matcha-50); border-left: 3px solid var(--matcha-500);
  border-radius: 4px; font-size: 12px; color: #43566b;
}
.size-tip b { color: var(--matcha-700); }

/* ============================================================
   鍥剧墖缂栬緫锛堣鍓級寮圭獥
   ============================================================ */
.modal.modal-crop { width: 1080px; max-width: 100%; max-height: calc(100vh - 40px); display: flex; flex-direction: column; }
.modal-crop .modal-body { overflow-y: auto; min-height: 0; }
.crop-notice {
  width: 100%; margin-bottom: 14px; padding: 10px 14px; border-radius: 8px;
  background: var(--matcha-50); border: 1px solid var(--matcha-200);
  font-size: 13px; color: #43566b; line-height: 1.6;
}
.crop-notice b { color: var(--matcha-700); display: block; margin-bottom: 2px; }
.crop-stage {
  position: relative; width: 580px; max-width: 100%; height: 420px;
  margin: 0 auto; border-radius: 10px; overflow: hidden;
  background: #e7edf4;
  border: 2px solid var(--matcha-500);
  box-shadow: 0 0 0 4px #fff, 0 12px 30px rgba(0, 0, 0, .16);
}
.crop-stage img { display: block; max-width: 100%; }
.crop-toolbar { display: flex; align-items: center; gap: 10px; margin-top: 14px; width: 100%; }
.btn-fill { background: var(--matcha-500); color: #fff; }
.btn-fill:hover { background: var(--matcha-600); color: #fff; }
.crop-hint { text-align: center; margin-top: 8px; }

/* 裁剪弹窗：固定画框 + 图片填充（左右结构） */
.crop-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.crop-left { display: flex; justify-content: center; align-items: flex-start; }
.crop-right { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.crop-canvas { display: flex; justify-content: center; }
.crop-frame {
  position: relative; overflow: hidden; border: 2px solid var(--matcha-500);
  border-radius: 6px; box-shadow: 0 0 0 4px #fff, 0 12px 30px rgba(0, 0, 0, .16);
  cursor: grab; user-select: none;
}
.crop-frame:active { cursor: grabbing; }
.crop-frame-img { position: absolute; left: 0; display: block; max-width: none; pointer-events: none; }
.crop-guide-line { position: absolute; left: 0; right: 0; border-top: 1px dashed rgba(255, 255, 255, .9); pointer-events: none; }
.crop-guide-line::before { content: ''; position: absolute; left: 0; right: 0; top: -1px; border-top: 1px solid rgba(0, 0, 0, .35); }
.crop-guide-tag {
  position: absolute; right: 4px; top: 2px; font-size: 11px; line-height: 1.5;
  color: #fff; background: rgba(0, 0, 0, .5); padding: 0 5px; border-radius: 3px;
}
.crop-guide-line.tag-above .crop-guide-tag { top: auto; bottom: 2px; }
.crop-options {
  margin-top: 0; padding: 12px 14px; border-radius: 10px;
  background: var(--surface-2); border: 1px solid var(--line-soft);
  display: flex; flex-direction: column; gap: 10px;
}
.crop-opt-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; }
.crop-opt-label { color: var(--ink-3); min-width: 60px; }
.crop-opt-value { color: var(--matcha-700); font-weight: 600; }
.crop-guides-row { align-items: flex-start; }
.crop-guide-list { display: flex; flex-direction: column; gap: 7px; }
.crop-guide-chk { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; color: var(--ink); font-size: 13px; }
.cg-dot { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.cg-name { min-width: 46px; font-weight: 600; }
.cg-device { color: var(--ink-3); font-size: 12px; }
.crop-zoom-range { flex: 1; max-width: 260px; }
.crop-color { width: 36px; height: 26px; padding: 0; border: 1px solid var(--line); border-radius: 5px; background: none; cursor: pointer; }

/* ============================================================
   鎴愬姛鎻愮ず娴眰
   ============================================================ */
.toast-mask {
  position: fixed;
  inset: 0;
  background: rgba(31, 47, 61, .38);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 300;
  animation: toast-mask-in .18s ease-out;
}
@keyframes toast-mask-in { from { opacity: 0; } to { opacity: 1; } }

.toast-box {
  min-width: 300px;
  background: var(--surface);
  border-radius: 20px;
  padding: 36px 46px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  animation: toast-in .3s cubic-bezier(.2, .9, .25, 1.25);
  transition: transform .4s cubic-bezier(.5, -.3, .6, 1.4), opacity .4s ease;
  border: 1px solid var(--line-soft);
}
.toast-box.toast-out {
  opacity: 0;
  transform: translateY(-70px) scale(.9);
  transition: transform .4s ease, opacity .4s ease;
}
@keyframes toast-in {
  from { opacity: 0; transform: translateY(-24px) scale(.92); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.toast-check { width: 72px; height: 72px; margin: 0 auto 16px; }
.toast-check-svg { width: 72px; height: 72px; }
.toast-check-circle {
  stroke: var(--matcha-500);
  stroke-width: 3;
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  animation: check-circle .5s cubic-bezier(.65, 0, .45, 1) forwards;
}
.toast-check-path {
  stroke: var(--matcha-500);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: check-path .35s cubic-bezier(.65, 0, .45, 1) .55s forwards;
}
@keyframes check-circle { to { stroke-dashoffset: 0; } }
@keyframes check-path { to { stroke-dashoffset: 0; } }
.toast-title { font-size: 19px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.toast-sub { font-size: 14px; color: var(--ink-3); }

/* ============================================================
   寮圭獥
   ============================================================ */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(31, 47, 61, .42);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  z-index: 200;
  padding: 44px 16px;
  overflow-y: auto;
}
.modal {
  background: var(--surface);
  border-radius: var(--radius-lg);
  width: 540px;
  max-width: 100%;
  max-height: calc(100vh - 88px);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line-soft);
  animation: panel-in .24s ease-out;
}
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px; border-bottom: 1px solid var(--line-soft);
  flex-shrink: 0;
}
.modal-head h3 { font-size: 16px; font-weight: 700; }
.modal-body { padding: 22px; overflow-y: auto; min-height: 0; flex: 1 1 auto; }
.modal-foot {
  display: flex; justify-content: flex-end; gap: 10px;
  flex-shrink: 0;
  padding: 16px 22px; border-top: 1px solid var(--line-soft);
  background: var(--surface-2);
  border-bottom-left-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
}
.modal-wide { width: 800px; }
.modal-banner { width: 800px; }
.modal-stat {
  width: 760px; max-height: 82vh; display: flex; flex-direction: column; min-height: 0;
}
.modal-stat .modal-head h3.stat-heading {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}
.modal-stat .modal-head h3.stat-heading strong {
  font-size: 16px;
  font-weight: 800;
  color: var(--matcha-700);
}
.stat-title { margin: 0 0 14px; font-size: 15px; font-weight: 700; }
.stat-filter {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px;
  padding: 10px 12px; background: var(--surface-2); border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
}
.stat-filter-field {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-muted);
}
.stat-filter-field input[type="date"] {
  padding: 5px 8px; border: 1px solid var(--line); border-radius: var(--radius-md);
  font-size: 12.5px; color: var(--ink); background: var(--surface-1);
}
.stat-filter-field input[type="date"]:focus { border-color: var(--matcha-500); outline: none; }
.stat-filter select {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  font-size: 12.5px;
  color: var(--ink);
  background: var(--surface-1);
  cursor: pointer;
  line-height: 1.2;
}
.stat-filter select:focus { border-color: var(--matcha-500); outline: none; }
.stat-filter select option { font-size: 12.5px; }
.type-indicator {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-muted); cursor: default;
}
.type-indicator i { font-size: 14px; }
.type-indicator:hover { color: var(--matcha-700); }
.stat-chart-type { display: inline-flex; gap: 4px; }
.stat-chart-type .btn.is-on { background: var(--matcha-600); color: #fff; }
.stat-chart { width: 100%; height: 320px; margin-bottom: 16px; }
.stat-days-compact { max-height: 140px; }
.stat-cards { display: flex; gap: 12px; margin-bottom: 18px; }
.stat-card {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 14px; background: var(--surface-2); border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
}
.stat-card b { font-size: 22px; font-weight: 700; color: var(--matcha-700); }
.stat-card span { font-size: 12.5px; color: var(--ink-muted); }
.stat-days { display: flex; flex-direction: column; gap: 4px; overflow-y: auto; }
.stat-day {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 12px; background: var(--surface-1); border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg); font-size: 13px;
}
.stat-day span { color: var(--ink-muted); }
.stat-day b { font-weight: 700; }
.stat-day-date { flex: 1; }
.stat-day-nums { display: flex; gap: 14px; align-items: center; }
.stat-day-nums .s-show { color: var(--matcha-700); font-weight: 700; }
.stat-day-nums .s-click { color: var(--ink); }
.link-btn {
  background: none; border: none; padding: 0; margin: 0;
  color: var(--matcha-700); font-size: 14px; font-weight: 600;
  cursor: pointer; text-align: left;
}
.link-btn:hover { color: var(--matcha-600); text-decoration: underline; }
.link-btn i { margin-right: 4px; font-size: 12px; }
.log-account-chips { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.log-account-chip {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--surface-2); border: 1px solid var(--line-soft);
  border-radius: 100px; padding: 2px 10px; font-size: 12.5px; color: var(--ink);
  white-space: nowrap; max-width: 100%;
}
.chip-broadcast { background: transparent; border-color: transparent; color: var(--ink-2); padding-left: 0; }
.chip-user-icon {
  color: var(--matcha-700); font-size: 12px; cursor: pointer;
  padding: 3px 1px; transition: color .15s;
}
.chip-user-icon:hover { color: var(--matcha-500); }
.chip-account { cursor: pointer; overflow: hidden; text-overflow: ellipsis; }
.chip-account:hover { color: var(--matcha-700); text-decoration: underline; }
.log-table .log-op-actions { display: inline-flex; gap: 6px; align-items: center; }
.log-table .log-op-btn { opacity: 0; transition: opacity .15s; }
.log-table tr:hover .log-op-btn { opacity: 1; }
.log-op-btn.btn-envelope { background: var(--matcha-100); color: var(--matcha-700); }
.log-op-btn.btn-envelope:hover { background: var(--matcha-200); color: var(--matcha-700); }
.modal-preview { width: 520px; }
.txt-ok { color: var(--matcha-700); font-weight: 600; }
.txt-err { color: var(--terra-600); font-weight: 600; }
.phone {
  width: 280px; margin: 0 auto 18px; border-radius: 42px;
  background: #0d0f14; border: 7px solid #151922;
  padding: 10px; box-shadow: var(--shadow-lg);
}
.phone-screen {
  background: linear-gradient(160deg, #33455c 0%, #232f40 55%, #18202c 100%);
  border-radius: 34px; overflow: hidden; padding-bottom: 14px;
  position: relative;
}
.phone-notch {
  position: absolute; top: 9px; left: 50%; transform: translateX(-50%);
  width: 82px; height: 19px; background: #0d0f14; border-radius: 0 0 13px 13px;
}
.status-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 13px 18px 6px; color: #fff;
}
.st-time { font-size: 13px; font-weight: 700; letter-spacing: .3px; }
.st-icons { display: flex; align-items: center; gap: 5px; }
.st-icons svg { display: block; }
.desk-date {
  color: rgba(255, 255, 255, .9); font-size: 12.5px; font-weight: 600;
  text-align: center; margin: 16px 0 10px; letter-spacing: 1px;
}
.notif-card {
  background: #fff; margin: 0 10px; border-radius: 18px;
  padding: 13px 15px 15px; box-shadow: 0 14px 30px rgba(0, 0, 0, .38);
  position: relative; overflow: hidden;
}
.notif-card::before {
  content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 4px;
  background: linear-gradient(180deg, #2f9ad5, #2193d0); border-radius: 0 4px 4px 0;
}
.notif-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.notif-app { display: flex; align-items: center; gap: 8px; min-width: 0; }
.notif-app-icon {
  width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
  background: linear-gradient(135deg, #2f9ad5, #2193d0);
  color: #fff; font-size: 12px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 8px rgba(33, 147, 208, .45);
}
.notif-app-name { font-size: 13px; font-weight: 600; color: #3a3f47; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notif-right { display: flex; align-items: center; gap: 7px; flex-shrink: 0; }
.notif-time { font-size: 11.5px; color: #9aa0ac; }
.notif-chev { font-size: 10px; color: #b6bcc6; }
.notif-title { font-size: 15px; font-weight: 700; color: #1f232b; margin-bottom: 3px; line-height: 1.35; }
.notif-text {
  font-size: 13px; color: #5b616c; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.home-indicator {
  width: 118px; height: 4px; border-radius: 4px;
  background: rgba(255, 255, 255, .7); margin: 16px auto 0;
}
.preview-meta {
  background: var(--surface-2); border: 1px solid var(--line-soft);
  border-radius: 10px; padding: 4px 14px; margin-bottom: 18px;
}
.meta-row {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 9px 0; border-bottom: 1px dashed var(--line-soft);
  font-size: 13px;
}
.meta-row:last-child { border-bottom: none; }
.meta-k { color: var(--ink-2); flex-shrink: 0; }
.meta-v { color: var(--ink); text-align: right; word-break: break-all; }
.meta-v.mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; }
.modal-confirm-mask { align-items: center; }
.modal-confirm { width: 480px; }
.confirm-warn {
  display: flex; align-items: flex-start; gap: 8px;
  background: rgba(216, 102, 72, .08);
  border: 1px solid rgba(216, 102, 72, .25);
  color: var(--terra-600);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 18px;
}
.confirm-warn i { margin-top: 3px; }
.html-preview { line-height: 1.7; word-break: break-word; color: var(--ink); }
.html-preview img { max-width: 100%; border-radius: 8px; }
.html-preview table { border-collapse: collapse; }
.html-preview table td, .html-preview table th { border: 1px solid var(--line); padding: 6px 10px; }

/* ============================================================
   婊氬姩鏉★紙涓€鑷淬€佸厠鍒剁殑娴呰壊锛?   ============================================================ */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--matcha-200); border-radius: 100px; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: var(--matcha-300); border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-track { background: transparent; }

/* ============================================================
   鍝嶅簲寮忥紙绐勫睆涓嬩晶杈规爮鍙橀《閮ㄦí鎺掞級
   ============================================================ */
@media (max-width: 860px) {
  .layout { flex-direction: column; }
  .sidebar {
    width: 100%;
    position: static;
    height: auto;
    display: flex;
    gap: 4px;
    padding: 10px 12px;
    border-right: none;
    border-bottom: 1px solid var(--line);
    overflow-x: auto;
  }
  .menu-item { margin-bottom: 0; white-space: nowrap; flex-shrink: 0; }
  .main { padding: 18px 16px; }
}


