:root {
  --alipay: #1677ff;
  --alipay-dark: #0f5ed7;
  --alipay-soft: #e6f4ff;
  --bg: #f5f6f8;
  --card: #ffffff;
  --text: rgba(0, 0, 0, 0.88);
  --sub: rgba(0, 0, 0, 0.45);
  --muted: rgba(0, 0, 0, 0.25);
  --line: #f0f0f0;
  --line2: #e5e6eb;
  --danger: #ff4d4f;
  --warn: #fa8c16;
  --ok: #52c41a;
  --radius: 12px;
  --tab-h: 56px;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-up: 0 -4px 24px rgba(0, 0, 0, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue",
    "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--alipay); text-decoration: none; }
button, input, textarea, select { font: inherit; }

.page { min-height: 100vh; padding-bottom: calc(var(--tab-h) + 16px); }

.nav {
  position: sticky; top: 0; z-index: 20;
  background: linear-gradient(135deg, #3d9bff 0%, var(--alipay) 55%, #0f6de8 100%);
  color: #fff; padding: 12px 16px 14px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: 0 2px 10px rgba(22, 119, 255, 0.25);
}
.nav .title { flex: 1; font-size: 17px; font-weight: 600; text-align: center; letter-spacing: 0.3px; }
.nav .back { color: #fff; min-width: 40px; opacity: 0.95; }

.banner {
  margin: 10px 12px 0; padding: 10px 12px; border-radius: 10px;
  background: #fffbe6; color: #ad6800; font-size: 13px;
  border: 1px solid #ffe58f;
}
.banner.danger { background: #fff2f0; color: #cf1322; border-color: #ffccc7; }
.banner.hide { display: none; }

.search-bar {
  margin: 12px; background: #fff; border-radius: 22px; padding: 10px 14px;
  display: flex; gap: 8px; align-items: center;
  border: 1px solid transparent; box-shadow: var(--shadow);
}
.search-bar:focus-within { border-color: #91caff; box-shadow: 0 0 0 3px rgba(22,119,255,.08); }
.search-bar .ico { color: var(--muted); font-size: 14px; }
.search-bar input { border: 0; outline: 0; flex: 1; background: transparent; color: var(--text); }
.search-bar input::placeholder { color: var(--muted); }

.chips {
  display: flex; gap: 8px; overflow-x: auto; padding: 0 12px 10px;
  -webkit-overflow-scrolling: touch;
}
.chips::-webkit-scrollbar { display: none; }
.chips-sub { padding-top: 0; }
.chips-sub .chip {
  padding: 5px 12px; font-size: 12px; border-radius: 14px;
  background: transparent; box-shadow: none;
}
.chips-sub .chip.active {
  background: #fff; box-shadow: var(--shadow);
}
.chip {
  white-space: nowrap; padding: 7px 14px; border-radius: 18px;
  background: #fff; color: var(--sub); border: 1px solid var(--line2);
  font-size: 13px; box-shadow: var(--shadow); transition: all .15s; cursor: pointer;
}
.chip.active {
  background: var(--alipay-soft); color: var(--alipay);
  border-color: #91caff; font-weight: 600;
}
.meta-line {
  margin-top: 8px; font-size: 12px; color: var(--alipay);
}
.flow-guide {
  margin: 0 12px 10px; padding: 12px 12px 10px;
  background: linear-gradient(180deg, #f0f7ff 0%, #fff 100%);
  border: 1px solid #d6e8ff; border-radius: 12px;
}
.flow-guide-title {
  font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 8px;
}
.flow-steps {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.flow-step {
  border: 1px solid #91caff; background: #fff; color: var(--alipay);
  border-radius: 14px; padding: 5px 10px; font-size: 12px; cursor: pointer;
}
.flow-step:active { background: var(--alipay-soft); }
.flow-hint {
  margin: 8px 0 0; font-size: 11px; color: var(--muted); line-height: 1.45;
}
.badge.step {
  background: #e6f4ff; color: #1677ff; border: 1px solid #91caff;
}
.badge.follow {
  background: #fff7e6; color: #d48806; border: 1px solid #ffd591;
}
.case-open {
  margin-top: 6px !important; font-size: 13px !important;
  max-height: 7.5em; overflow: hidden;
}

.list { padding: 0 12px 12px; }
.card {
  background: var(--card); border-radius: var(--radius); padding: 14px 14px 12px;
  margin-bottom: 10px; box-shadow: var(--shadow); border: 1px solid rgba(0,0,0,.02);
}
.card .row { display: flex; align-items: flex-start; gap: 8px; }
.card .code {
  color: var(--alipay); font-size: 11px; font-weight: 700;
  background: var(--alipay-soft); padding: 2px 6px; border-radius: 4px;
  line-height: 1.4; margin-top: 2px;
}
.card h3 { font-size: 16px; font-weight: 600; flex: 1; line-height: 1.4; }
.badge {
  font-size: 11px; padding: 2px 8px; border-radius: 10px;
  background: #f5f5f5; color: var(--sub); border: 1px solid var(--line2);
  white-space: nowrap; line-height: 1.5;
}
.badge.mine { background: var(--alipay-soft); color: var(--alipay); border-color: #91caff; }
.badge.share { background: #f6ffed; color: #389e0d; border-color: #b7eb8f; }
.badge.ask { background: #fff7e6; color: #d46b08; border-color: #ffd591; }
.card .trigger { color: var(--sub); font-size: 12px; margin-top: 8px; line-height: 1.4; }
.card .preview {
  margin-top: 8px; color: rgba(0,0,0,.55); font-size: 13px; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; height: var(--tab-h);
  background: rgba(255,255,255,.96); border-top: 1px solid var(--line);
  display: flex; z-index: 30; backdrop-filter: blur(10px);
  padding: 0 4px env(safe-area-inset-bottom, 0);
}
.tabbar a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--sub); font-size: 11px; gap: 3px; transition: color .15s;
  letter-spacing: 0.02em;
}
.tabbar a.active { color: var(--alipay); font-weight: 600; }
.tabbar .ico {
  width: 24px; height: 24px; margin-bottom: 0;
  background: currentColor;
  mask-size: contain; mask-repeat: no-repeat; mask-position: center;
  -webkit-mask-size: contain; -webkit-mask-repeat: no-repeat; -webkit-mask-position: center;
}
.tabbar a[data-tab="scripts"] .ico {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E");
}
.tabbar a[data-tab="ask"] .ico {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.12 2.12 0 0 1 3 3L7 19l-4 1 1-4Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.12 2.12 0 0 1 3 3L7 19l-4 1 1-4Z'/%3E%3C/svg%3E");
}
.tabbar a[data-tab="library"] .ico {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z'/%3E%3C/svg%3E");
}
.tabbar a[data-tab="mine"] .ico {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
}
.seg-bar {
  display: flex;
  margin: 10px 12px 4px;
  padding: 3px;
  background: #f0f2f5;
  border-radius: 10px;
  gap: 2px;
}
.seg-item {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--sub);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 0;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
}
.seg-item.active {
  background: #fff;
  color: var(--alipay);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.asset-file {
  width: 100%; margin-top: 10px; border-radius: 10px; max-height: 280px;
  object-fit: contain; background: #f7f8fa; border: 1px solid var(--line);
  display: block;
}
.asset-file-link {
  display: flex; align-items: center; gap: 10px; width: 100%;
  margin-top: 10px; padding: 12px 14px; border-radius: 10px;
  background: #f7f8fa; border: 1px solid var(--line); color: var(--text);
  cursor: pointer; text-align: left; font: inherit;
}
.asset-file-link b { flex: 1; font-size: 13px; font-weight: 500; word-break: break-all; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 8px; padding: 10px 16px; cursor: pointer;
  background: var(--alipay); color: #fff; font-weight: 500;
  transition: opacity .15s, transform .1s;
}
.btn:active { opacity: .88; transform: scale(.98); }
.btn.block { width: 100%; }
.btn.ghost {
  background: #fff; color: var(--alipay);
  border: 1px solid #91caff; box-shadow: none;
}
.btn.ghost:active { background: var(--alipay-soft); }
.btn.warn { background: var(--warn); }
.btn.danger { background: var(--danger); }
.btn.danger-text { color: var(--danger) !important; border-color: rgba(207,19,34,.35) !important; }
.btn.sm { padding: 7px 12px; font-size: 13px; border-radius: 7px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }

.login-wrap {
  min-height: 100vh;
  background: linear-gradient(165deg, #3d9bff 0%, var(--alipay) 38%, #f5f6f8 38%);
  padding: 56px 24px 24px;
}
.login-brand { color: #fff; text-align: center; margin-bottom: 40px; }
.login-brand::before {
  content: var(--login-brand-mark, "华"); display: flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 18px;
  background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.35);
  font-size: 28px; font-weight: 700; letter-spacing: 0;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.login-brand h1 { font-size: 30px; letter-spacing: 3px; font-weight: 700; }
.login-brand p { opacity: .92; margin-top: 10px; font-size: 14px; }
.login-card {
  background: #fff; border-radius: 16px; padding: 28px 22px;
  box-shadow: 0 8px 32px rgba(22, 119, 255, 0.12);
}
.login-card .btn { height: 46px; border-radius: 23px; font-size: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; color: var(--sub); font-size: 13px; margin-bottom: 8px; }
.field input, .field textarea, .field select {
  width: 100%; border: 1px solid var(--line2); border-radius: 10px;
  padding: 12px 14px; outline: none; background: #fafafa; transition: all .15s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--alipay); background: #fff;
  box-shadow: 0 0 0 3px rgba(22,119,255,.1);
}
.hint { margin-top: 16px; color: var(--sub); font-size: 12px; line-height: 1.7; }

.detail .card { padding: 16px; }
.detail .answer {
  background: #f7f8fa; border-radius: 10px; padding: 12px 14px;
  white-space: pre-wrap; word-break: break-word; margin-top: 8px;
  font-size: 14px; line-height: 1.65; border: 1px solid var(--line);
}
.section-title {
  font-size: 13px; color: var(--sub); margin: 18px 0 6px; font-weight: 500;
  display: flex; align-items: center; gap: 8px;
}
.section-title::before {
  content: ""; width: 3px; height: 12px; border-radius: 2px; background: var(--alipay);
}
.detail-actions .btn { border-radius: 20px; padding: 9px 14px; }
.hint-line {
  font-size: 12px; color: var(--muted); margin-top: 10px; text-align: center;
}
.case-thumb {
  width: 100%; margin-top: 10px; border-radius: 10px; max-height: 240px;
  object-fit: cover; background: #f0f2f5; display: block;
  border: 1px solid var(--line);
}

.toast {
  position: fixed; left: 50%; bottom: calc(var(--tab-h) + 20px);
  transform: translateX(-50%) translateY(8px);
  display: none; align-items: center; gap: 8px;
  min-width: 140px; max-width: min(86vw, 340px);
  padding: 11px 16px 11px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  font-size: 13.5px; font-weight: 500; line-height: 1.4;
  z-index: 300;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.14), 0 0 0 1px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0; pointer-events: none;
}
.toast.show {
  display: flex;
  animation: toastIn .28s cubic-bezier(.22, 1, .36, 1) forwards;
}
.toast.toast-out {
  display: flex;
  animation: toastOut .2s ease forwards;
}
.toast-ico {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: #fff;
}
.toast-ico::before { content: "i"; }
.toast-msg { flex: 1; word-break: break-word; }
.toast-info .toast-ico { background: var(--alipay); }
.toast-info .toast-ico::before { content: "i"; }
.toast-ok .toast-ico { background: var(--ok); }
.toast-ok .toast-ico::before { content: "✓"; font-size: 13px; }
.toast-warn .toast-ico { background: var(--warn); }
.toast-warn .toast-ico::before { content: "!"; }
.toast-error .toast-ico { background: var(--danger); }
.toast-error .toast-ico::before { content: "×"; font-size: 15px; line-height: 1; }
@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(12px) scale(.96); }
  to { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}
@keyframes toastOut {
  from { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
  to { opacity: 0; transform: translateX(-50%) translateY(8px) scale(.96); }
}

.grid9 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.grid9 img, .grid9 > div img {
  width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: #eee;
  border: 1px solid var(--line);
}
.grid9 > div { position: relative; }
.grid9 .ord {
  position: absolute; left: 6px; top: 6px; z-index: 1;
  min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px;
  background: rgba(0,0,0,.55); color: #fff; font-size: 11px;
  display: flex; align-items: center; justify-content: center;
}
.moment-ai-bar {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 4px;
}
.moment-ai-bar .btn { margin: 0; }
.moment-upload-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 4px;
}
.moment-add-btn {
  margin: 0; cursor: pointer; display: inline-flex; align-items: center;
  user-select: none; -webkit-tap-highlight-color: transparent;
}
.moment-file-input {
  position: absolute !important;
  width: 1px !important; height: 1px !important;
  padding: 0 !important; margin: -1px !important;
  overflow: hidden !important; clip: rect(0,0,0,0) !important;
  border: 0 !important; opacity: 0 !important;
}
.moment-ios-tip {
  margin: 6px 0 0; font-size: 12px; color: var(--muted); line-height: 1.45;
}
.moment-add-tile {
  aspect-ratio: 1; border-radius: 10px;
  border: 1.5px dashed var(--line2);
  background: #fafafa; color: var(--muted);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; cursor: pointer; user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.moment-add-tile:active { background: #f0f5ff; border-color: #91caff; color: #1677ff; }
.moment-add-tile .plus { font-size: 28px; line-height: 1; font-weight: 300; color: #1677ff; }
.moment-add-tile .lab { font-size: 11px; }
.moment-upload-float {
  position: fixed; left: 12px; right: 12px; bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  z-index: 180; pointer-events: none;
}
.moment-upload-float-inner {
  pointer-events: auto;
  padding: 12px 14px;
  background: rgba(22, 22, 22, 0.92);
  color: #fff; border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0,0,0,.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.moment-upload-float .upload-bar-head {
  color: rgba(255,255,255,.85); margin-bottom: 8px;
}
.moment-upload-float .upload-bar-track { background: rgba(255,255,255,.2); height: 8px; }
.moment-upload-float .upload-bar-fill { background: #69b1ff; }
.moment-upload-float .upload-bar-fill.indeterminate {
  width: 36% !important;
  animation: momentUploadPulse 1s ease-in-out infinite alternate;
}
@keyframes momentUploadPulse {
  from { transform: translateX(0); }
  to { transform: translateX(160%); }
}
.moment-grid > div {
  position: relative; user-select: none; border-radius: 10px;
  overflow: hidden; background: #f5f5f5;
}
.moment-grid > div.dragging { opacity: 0.4; }
.moment-grid > div.drop-target { outline: 2px solid var(--alipay); outline-offset: -2px; }
.moment-grid > div .rm {
  position: absolute; right: 4px; top: 4px; z-index: 2;
  width: 22px; height: 22px; border: 0; border-radius: 50%;
  background: rgba(0,0,0,.55); color: #fff; font-size: 14px; line-height: 20px;
  cursor: pointer; padding: 0;
}
.moment-grid > div .rm:active { background: #cf1322; }
.moment-sort-bar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; gap: 2px; padding: 4px;
  background: linear-gradient(transparent, rgba(0,0,0,.55));
}
.moment-sort-bar .sort-btn,
.moment-sort-bar .drag-handle {
  flex: 1; height: 28px; border: 0; border-radius: 6px;
  background: rgba(255,255,255,.92); color: #1677ff;
  font-size: 14px; font-weight: 600; cursor: pointer;
  touch-action: none;
}
.moment-sort-bar .sort-btn:disabled {
  opacity: 0.35; color: #999; cursor: not-allowed;
}
.moment-sort-bar .drag-handle {
  flex: 1.2; color: #666; letter-spacing: -2px; cursor: grab;
}
.moment-drag-ghost {
  position: fixed; left: 0; top: 0; z-index: 9999;
  width: 80px; height: 80px; pointer-events: none;
  opacity: 0.88; border-radius: 10px; overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
}
.moment-drag-ghost img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.moment-drag-ghost .moment-sort-bar,
.moment-drag-ghost .ord,
.moment-drag-ghost .rm { display: none !important; }
.moment-grid-empty {
  grid-column: 1 / -1; padding: 18px 12px; text-align: center;
  border: 1px dashed var(--line2); border-radius: 10px;
  color: var(--muted); font-size: 13px; background: #fafafa;
}
.upload-bar {
  margin-top: 10px; padding: 10px 12px; background: #f7f8fa;
  border-radius: 10px; border: 1px solid var(--line);
}
.upload-bar-head {
  display: flex; justify-content: space-between; font-size: 12px;
  color: var(--sub); margin-bottom: 6px;
}
.upload-bar-track {
  height: 6px; background: #e8e8e8; border-radius: 3px; overflow: hidden;
}
.upload-bar-fill {
  height: 100%; width: 0; background: var(--alipay); transition: width .12s linear;
}
.field input[type="file"] {
  padding: 10px; background: #fff; border-style: dashed;
}
.panel {
  background: #fff; margin: 12px; border-radius: var(--radius);
  padding: 16px; box-shadow: var(--shadow);
}
.empty {
  text-align: center; color: var(--sub); padding: 56px 16px;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  font-size: 14px;
}
.empty::before {
  content: ""; display: block; width: 48px; height: 48px; margin: 0 auto 12px;
  border-radius: 24px;
  background: linear-gradient(135deg, #e6f4ff, #bae0ff);
  box-shadow: inset 0 0 0 2px #91caff;
}

/* —— 底部弹层（分享等） —— */
.modal-mask {
  position: fixed; inset: 0; background: rgba(0,0,0,.48); z-index: 50;
  display: none; align-items: flex-end; justify-content: center;
  backdrop-filter: blur(2px);
}
.modal-mask.show { display: flex; animation: fadeIn .2s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.sheet {
  background: #fff; width: 100%; max-width: 640px;
  border-radius: 16px 16px 0 0; max-height: 85vh;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-up);
  animation: sheetUp .28s cubic-bezier(.22,.9,.3,1);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
@keyframes sheetUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.sheet-handle {
  width: 36px; height: 4px; border-radius: 2px; background: #e5e6eb;
  margin: 10px auto 0;
}
.sheet-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px 10px;
}
.sheet-head h3 { font-size: 17px; font-weight: 600; }
.sheet-head .x {
  width: 32px; height: 32px; border: 0; border-radius: 16px;
  background: #f5f5f5; color: var(--sub); font-size: 18px; cursor: pointer;
}
.sheet-body { padding: 0 16px 8px; overflow: auto; flex: 1; }
.sheet-foot {
  display: flex; gap: 10px; padding: 12px 16px 16px;
  border-top: 1px solid var(--line);
  background: #fff;
}
.sheet-foot .btn { flex: 1; height: 44px; border-radius: 22px; font-size: 16px; }

.scope-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.scope-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px; border-radius: 12px; border: 1.5px solid var(--line2);
  background: #fafafa; cursor: pointer; transition: all .15s;
}
.scope-item.active {
  border-color: var(--alipay); background: var(--alipay-soft);
  box-shadow: 0 0 0 3px rgba(22,119,255,.08);
}
.scope-item .radio {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid #c9cdd4; margin-top: 2px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.scope-item.active .radio { border-color: var(--alipay); }
.scope-item.active .radio::after {
  content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--alipay);
}
.scope-item .meta { flex: 1; min-width: 0; }
.scope-item .meta b { display: block; font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.scope-item .meta span { font-size: 12px; color: var(--sub); line-height: 1.45; }

.user-pick { display: none; margin-top: 4px; }
.user-pick.show { display: block; }
.user-pick .label {
  font-size: 13px; color: var(--sub); margin-bottom: 8px; font-weight: 500;
}
.user-list { max-height: 220px; overflow: auto; border-radius: 12px; border: 1px solid var(--line); }
.user-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-bottom: 1px solid var(--line); cursor: pointer;
  background: #fff;
}
.user-item:last-child { border-bottom: 0; }
.user-item:active { background: #f7f8fa; }
.user-item .av {
  width: 36px; height: 36px; border-radius: 18px;
  background: linear-gradient(135deg, #69b1ff, var(--alipay));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600; flex-shrink: 0;
}
.user-item .info { flex: 1; min-width: 0; }
.user-item .info b { display: block; font-size: 14px; font-weight: 500; }
.user-item .info span { font-size: 12px; color: var(--sub); }
.user-item .ck {
  width: 22px; height: 22px; border-radius: 6px;
  border: 1.5px solid #c9cdd4; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: transparent; font-size: 14px; font-weight: 700;
}
.user-item.on .ck {
  background: var(--alipay); border-color: var(--alipay); color: #fff;
}

/* 确认框 */
.confirm-mask {
  position: fixed; inset: 0; z-index: 320;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center; padding: 24px;
}
.confirm-mask.show { display: flex; animation: confirmFade .2s ease; }
@keyframes confirmFade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.confirm-box {
  width: 100%; max-width: 312px; background: #fff;
  border-radius: 18px; overflow: hidden;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.22);
  animation: popIn .28s cubic-bezier(.22, 1, .36, 1);
  text-align: center;
}
@keyframes popIn {
  from { opacity: 0; transform: scale(.92) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.confirm-ico {
  width: 48px; height: 48px; margin: 22px auto 0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 700; color: #fff;
  box-shadow: 0 6px 16px rgba(22, 119, 255, 0.28);
}
.confirm-ico::before { content: "?"; }
.confirm-ico.info { background: linear-gradient(145deg, #3d9bff, var(--alipay)); }
.confirm-ico.danger {
  background: linear-gradient(145deg, #ff7875, var(--danger));
  box-shadow: 0 6px 16px rgba(255, 77, 79, 0.3);
}
.confirm-ico.danger::before { content: "!"; }
.confirm-box .ct { padding: 14px 22px 20px; text-align: center; }
.confirm-box .ct h4 {
  font-size: 17px; font-weight: 600; margin-bottom: 8px; letter-spacing: 0.2px;
}
.confirm-box .ct p { font-size: 14px; color: var(--sub); line-height: 1.6; }
.confirm-box .ft {
  display: flex; gap: 10px; padding: 0 16px 16px;
  border-top: 0;
}
.confirm-box .ft button {
  flex: 1; height: 42px; border: 0; border-radius: 12px;
  font-size: 15px; cursor: pointer; transition: background .15s, transform .1s;
}
.confirm-box .ft button:active { transform: scale(.98); }
.confirm-box .ft button + button { border-left: 0; }
.confirm-box .ft .cancel {
  background: #f5f6f8; color: var(--sub); font-weight: 500;
}
.confirm-box .ft .cancel:hover { background: #eef0f3; }
.confirm-box .ft .ok {
  background: var(--alipay); color: #fff; font-weight: 600;
  box-shadow: 0 4px 12px rgba(22, 119, 255, 0.28);
}
.confirm-box .ft .ok:hover { background: var(--alipay-dark); }
.confirm-box .ft .ok.danger {
  background: var(--danger); color: #fff;
  box-shadow: 0 4px 12px rgba(255, 77, 79, 0.28);
}
.confirm-box .ft .ok.danger:hover { background: #d9363e; }

/* 完善话术全屏编辑 */
.edit-sheet {
  position: fixed; inset: 0; z-index: 80;
  background: var(--bg);
  display: none; flex-direction: column;
}
.edit-sheet.show { display: flex; }
.edit-sheet-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px 12px;
  background: linear-gradient(135deg, #3d9bff 0%, var(--alipay) 100%);
  color: #fff; flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(22,119,255,.2);
}
.edit-sheet-bar .tit { flex: 1; text-align: center; font-weight: 600; font-size: 16px; }
.edit-sheet-bar .link {
  border: 0; background: transparent; color: #fff;
  font-size: 15px; min-width: 52px; cursor: pointer; padding: 6px 0; opacity: .95;
}
.edit-sheet-bar .link.strong {
  font-weight: 600; background: rgba(255,255,255,.2);
  border-radius: 14px; padding: 6px 12px;
}
.edit-sheet-body { flex: 1; overflow: auto; padding: 12px; padding-bottom: 28px; }
.edit-block {
  background: #fff; border-radius: 12px; padding: 14px;
  margin-bottom: 10px; box-shadow: var(--shadow);
}
.edit-block label {
  display: block; font-size: 12px; color: var(--sub); margin-bottom: 8px; font-weight: 500;
}
.edit-label-row {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px;
}
.edit-label-row label { margin-bottom: 0; }
.edit-block .sub-lab {
  display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; font-weight: 500;
}
.ai-link {
  border: 0; background: var(--alipay-soft); color: var(--alipay);
  font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 12px; cursor: pointer;
}
.ai-link:disabled { opacity: .5; cursor: wait; }
.ai-tip { font-size: 11px; color: var(--muted); margin: -2px 0 10px; line-height: 1.4; }
.ask-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 10px 12px;
  background: #f7f8fa;
  border-radius: 10px;
  font-size: 13px;
  color: var(--text);
}
.ask-toggle input { width: 18px; height: 18px; }
.row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.ask-hist-card {
  border: 1px solid var(--border, #eee);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
  background: #fff;
}
.ask-hist-card .q {
  font-size: 14px;
  font-weight: 560;
  line-height: 1.45;
  margin-bottom: 6px;
}
.ask-hist-card .a {
  font-size: 13px;
  color: rgba(0,0,0,.65);
  line-height: 1.5;
  max-height: 4.5em;
  overflow: hidden;
}
.ask-hist-card .meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
}
.ask-hist-card .ops { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.load-more {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  padding: 16px 12px 28px;
}
.load-more.done { color: rgba(0,0,0,.28); }
.load-more.loading { color: var(--alipay); }
.edit-block input, .edit-block textarea {
  width: 100%; border: 1px solid var(--line2); border-radius: 10px;
  padding: 11px 12px; outline: none; background: #fafafa;
  font-size: 15px; line-height: 1.55; transition: all .15s;
}
.edit-block input:focus, .edit-block textarea:focus {
  border-color: var(--alipay); background: #fff;
  box-shadow: 0 0 0 3px rgba(22,119,255,.1);
}
.edit-block textarea { min-height: 140px; resize: vertical; }
.edit-tabs {
  display: flex; gap: 4px; background: #fff; border-radius: 12px;
  padding: 4px; margin-bottom: 10px; box-shadow: var(--shadow);
}
.edit-tabs button {
  flex: 1; border: 0; background: transparent; padding: 10px;
  font-size: 13px; color: var(--sub); cursor: pointer; border-radius: 10px;
}
.edit-tabs button.active {
  background: var(--alipay-soft); color: var(--alipay); font-weight: 600;
}
.diff-pane { display: none; }
.diff-pane.show { display: block; }
.diff-card {
  background: #fff; border-radius: 12px; padding: 14px;
  margin-bottom: 10px; box-shadow: var(--shadow);
}
.diff-card .h {
  font-size: 12px; color: var(--sub); margin-bottom: 8px;
  display: flex; justify-content: space-between; align-items: center; font-weight: 500;
}
.diff-card .body {
  font-size: 14px; line-height: 1.7; white-space: pre-wrap; word-break: break-word;
  background: #fafafa; border-radius: 10px; padding: 12px;
  max-height: 40vh; overflow: auto; border: 1px solid var(--line);
}
.diff-del { background: #fff1f0; color: #cf1322; text-decoration: line-through; border-radius: 2px; }
.diff-add { background: #f6ffed; color: #389e0d; border-radius: 2px; }
.diff-same { color: var(--text); }
.diff-legend { font-size: 12px; color: var(--sub); margin: 0 0 10px; }
.diff-legend i {
  display: inline-block; width: 10px; height: 10px; border-radius: 2px;
  margin-right: 4px; vertical-align: middle;
}
.diff-legend .g { background: #b7eb8f; }
.diff-legend .r { background: #ffa39e; }

/* 图片预览 */
.previewable { cursor: zoom-in; }
.img-viewer {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0, 0, 0, 0.94);
  display: none; flex-direction: column; touch-action: none;
}
.img-viewer.show { display: flex; }
.img-viewer-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; color: #fff; font-size: 14px; flex-shrink: 0;
}
.img-viewer-top .close {
  width: 36px; height: 36px; border: 0; border-radius: 18px;
  background: rgba(255,255,255,.15); color: #fff; font-size: 20px; cursor: pointer;
}
.img-viewer-stage {
  flex: 1; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden; min-height: 0;
}
.img-viewer-stage img {
  max-width: 100%; max-height: 100%;
  object-fit: contain; user-select: none; -webkit-user-drag: none;
}
.img-viewer-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border: 0; border-radius: 20px;
  background: rgba(255,255,255,.18); color: #fff; font-size: 22px;
  cursor: pointer; z-index: 2;
}
.img-viewer-nav.prev { left: 8px; }
.img-viewer-nav.next { right: 8px; }
.img-viewer-nav:disabled { opacity: .3; }
.img-viewer-foot {
  display: flex; gap: 8px; padding: 14px 12px calc(14px + env(safe-area-inset-bottom, 0));
  flex-shrink: 0; justify-content: center; flex-wrap: wrap;
}
.img-viewer-foot .btn { min-width: 96px; border-radius: 22px; flex: 1 1 auto; }

/* 头像替换手动编辑 */
.av-editor {
  position: fixed; inset: 0; z-index: 220;
  background: #111; color: #fff;
  display: none; flex-direction: column;
}
.av-editor.show { display: flex; }
.av-editor-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px; background: #1a1a1a; flex-shrink: 0;
}
.av-editor-bar .tit { font-size: 16px; font-weight: 600; }
.av-editor-bar .link {
  border: 0; background: transparent; color: rgba(255,255,255,.85);
  font-size: 15px; padding: 8px 4px; cursor: pointer; min-width: 48px;
}
.av-editor-bar .link.strong { color: #69b1ff; font-weight: 600; }
.av-editor-tools {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  padding: 6px 10px; background: #222; flex-shrink: 0;
}
.av-editor-tools .btn {
  background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.2);
  padding: 5px 8px;
}
.av-editor-tools .btn.av-step {
  min-width: 40px; font-size: 15px; font-weight: 600; padding: 4px 6px;
}
.av-editor-sep {
  width: 1px; height: 18px; background: rgba(255,255,255,.2); margin: 0 2px;
}
.av-radius-lab {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: rgba(255,255,255,.75);
}
.av-radius-lab input[type="range"] {
  width: 72px; accent-color: #69b1ff; vertical-align: middle;
}
#avEditorApplyAll {
  background: #1677ff; border-color: #1677ff; color: #fff; font-weight: 600;
}
.av-editor-body {
  position: relative;
  flex: 1; min-height: 0;
  display: flex; flex-direction: column;
  background: #0a0a0a;
}
.av-editor-stage {
  flex: 1; min-height: 0; overflow: auto;
  display: block;
  padding: 8px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-x pan-y;
}
.av-editor-stage.dragging,
.av-editor-stage.pinching {
  overflow: hidden; touch-action: none;
}
.av-editor-canvas-wrap {
  position: relative; display: block;
  width: 100%;
  max-width: none;
  margin: 0 auto;
  line-height: 0;
  box-shadow: 0 8px 32px rgba(0,0,0,.45);
}
.av-editor-canvas-wrap img {
  display: block; width: 100%; height: auto; max-width: none;
  user-select: none; -webkit-user-drag: none; pointer-events: none;
}
.av-editor-layer {
  position: absolute; inset: 0;
  /* 空白穿透 → 单指可滑长图；头像框单独接事件 */
  pointer-events: none;
}
.av-zoom-dock {
  position: absolute;
  left: 50%; bottom: 28px;
  transform: translateX(-50%);
  z-index: 8;
  display: flex; align-items: center;
  pointer-events: auto;
  background: rgba(20,20,20,.88);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 22px;
  padding: 4px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 6px 20px rgba(0,0,0,.45);
}
.av-zoom-btn {
  min-width: 48px; height: 40px; border: 0; border-radius: 20px;
  background: transparent; color: #fff; font-size: 22px; font-weight: 600;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.av-zoom-btn:active { background: rgba(255,255,255,.18); }
.av-zoom-btn.av-zoom-pct {
  min-width: 58px; font-size: 13px; font-weight: 600; color: #69b1ff;
  font-variant-numeric: tabular-nums;
}
.av-editor-hint {
  position: absolute;
  left: 0; right: 0; bottom: 6px;
  z-index: 7;
  text-align: center;
  font-size: 11px; color: rgba(255,255,255,.42);
  pointer-events: none;
}
.av-box {
  position: absolute; box-sizing: border-box;
  border: 0;
  border-radius: var(--av-r, 18%);
  background: transparent;
  pointer-events: auto;
  touch-action: none; cursor: move;
  box-shadow: none;
  z-index: 1;
}
.av-box.selected {
  z-index: 3;
}
.av-box .av-box-preview {
  position: absolute; inset: 0; border-radius: var(--av-r, 16%);
  background-size: cover; background-position: center;
  pointer-events: none; opacity: 1;
}
.av-box .av-box-handle {
  position: absolute; right: -6px; bottom: -6px;
  width: 14px; height: 14px; border-radius: 3px;
  background: rgba(255,255,255,.92); border: 1px solid rgba(0,0,0,.35);
  cursor: nwse-resize; touch-action: none;
  box-shadow: 0 1px 3px rgba(0,0,0,.3);
  z-index: 4;
  opacity: 0;
  pointer-events: none;
}
.av-box.selected .av-box-handle {
  opacity: 1;
  pointer-events: auto;
}
.av-box .av-box-idx {
  position: absolute; left: 1px; top: 1px;
  min-width: 14px; height: 14px; padding: 0 3px;
  border-radius: 7px; background: rgba(0,0,0,.4);
  color: #fff; font-size: 9px; line-height: 14px; text-align: center;
  pointer-events: none;
  opacity: 0;
}
.av-box.selected .av-box-idx {
  opacity: 0.85;
}
#avEditorApplySize {
  background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.28);
}

.mine-page {
  padding: 12px 12px 8px;
}
.mine-hero {
  display: flex; align-items: center; gap: 14px;
  padding: 20px 16px;
  border-radius: 16px;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(255,255,255,.22), transparent 55%),
    linear-gradient(135deg, #4ea3ff 0%, var(--alipay) 55%, #0f6de8 100%);
  color: #fff;
  box-shadow: 0 10px 28px rgba(22, 119, 255, 0.22);
  margin-bottom: 12px;
}
.mine-av {
  width: 58px; height: 58px; border-radius: 50%;
  background: rgba(255,255,255,.22);
  border: 2px solid rgba(255,255,255,.55);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 700; flex-shrink: 0;
  overflow: hidden; position: relative; padding: 0;
  cursor: pointer;
}
.mine-av img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.mine-av .mine-av-tip {
  position: absolute; inset: auto 0 0; padding: 2px 0;
  font-size: 9px; font-weight: 500; letter-spacing: 0;
  background: rgba(0,0,0,.4); text-align: center; line-height: 1.2;
}
.mine-av-hint {
  margin: -4px 0 12px; font-size: 12px; color: var(--sub); text-align: center;
}
.mine-hero-text { min-width: 0; flex: 1; }
.mine-hero-name {
  font-size: 20px; font-weight: 600; letter-spacing: 0.2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mine-hero-sub {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px;
  margin-top: 8px;
}
.mine-role {
  font-size: 11px; padding: 2px 8px; border-radius: 999px;
  background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.35);
}
.mine-company {
  font-size: 12px; opacity: 0.92;
  max-width: 100%;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mine-card {
  background: #fff; border-radius: 14px;
  box-shadow: var(--shadow); border: 1px solid rgba(0,0,0,.03);
  margin-bottom: 12px; overflow: hidden;
}
.mine-info-card { padding: 2px 16px; }
.mine-kv {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px;
}
.mine-kv:last-child { border-bottom: 0; }
.mine-kv span { color: var(--sub); flex-shrink: 0; }
.mine-kv em {
  font-style: normal; color: var(--text); text-align: right;
  word-break: break-all; font-weight: 500;
}
.mine-kv.warn em { color: var(--warn); }
.mine-kv.ok em { color: #389e0d; }
.mine-kv.danger em { color: var(--danger); }
.mine-row {
  display: flex; align-items: center; gap: 12px;
  width: 100%; padding: 14px 16px; color: inherit;
  border: 0; background: #fff; text-align: left; cursor: pointer;
  font: inherit;
}
.mine-row:active { background: #f7f8fa; }
.mine-row.open { background: #fafbfd; }
.mine-row-ico {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; flex-shrink: 0;
}
.mine-row-ico.admin {
  background: var(--alipay-soft); color: var(--alipay);
}
.mine-row-ico.pwd {
  background: #fff7e6; color: #d48806;
}
.mine-row-ico.case {
  background: #e6f4ff; color: #1677ff;
}
.mine-row-ico.ai {
  background: #f6ffed; color: #389e0d;
  font-size: 11px;
}
.mine-row-ico.list {
  background: #f5f5f5; color: #595959;
}
.sheet.sheet-tall .sheet-body {
  max-height: min(70vh, 560px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.ai-case-preview {
  background: #f0f0f0;
  border-radius: 10px;
  min-height: 180px;
  max-height: 320px;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ai-case-preview img {
  width: 100%;
  display: block;
}
.ai-av-preview {
  margin-top: 8px;
  min-height: 0;
}
.ai-av-preview img {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  display: block;
  background: #eee;
}
.mine-row-main { flex: 1; min-width: 0; }
.mine-row-main b {
  display: block; font-size: 15px; font-weight: 600;
}
.mine-row-main em {
  display: block; margin-top: 2px; font-style: normal;
  font-size: 12px; color: var(--muted);
}
.mine-row-arrow {
  color: var(--muted); font-size: 20px; line-height: 1;
  width: 20px; text-align: center; transition: transform .15s;
}
.mine-row.open .mine-row-arrow {
  color: var(--alipay); transform: rotate(90deg);
}
.mine-pwd {
  padding: 0 16px 16px;
  border-top: 1px solid var(--line);
  animation: minePwdIn .18s ease;
}
@keyframes minePwdIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}
.mine-pwd .field { margin: 12px 0 0; }
.mine-pwd .field label {
  display: block; font-size: 12px; color: var(--sub); margin-bottom: 6px;
}
.mine-pwd .field input {
  width: 100%; height: 42px; padding: 0 12px;
  border: 1px solid var(--line2); border-radius: 10px;
  background: #fafbfc; outline: none;
}
.mine-pwd .field input:focus {
  border-color: #91caff; background: #fff;
  box-shadow: 0 0 0 3px rgba(22,119,255,.1);
}
.mine-pwd-actions {
  display: flex; gap: 10px; margin-top: 14px;
}
.mine-pwd-actions .btn { flex: 1; }
.mine-logout {
  display: block; width: 100%; margin: 4px 0 16px;
  height: 46px; border-radius: 14px;
  background: #fff; color: var(--danger); font-size: 15px; font-weight: 500;
  box-shadow: var(--shadow); border: 1px solid rgba(0,0,0,.03);
  cursor: pointer;
}
.mine-logout:active { background: #fff2f0; }
.sec-card-title {
  font-size: 15px; font-weight: 600; margin-bottom: 12px; color: var(--text);
}
