.user-app { min-height: 100vh; }

.u-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-2);
}
.u-header-inner {
  max-width: 1080px;
  margin: 0 auto;
  height: 54px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 16px;
  color: var(--ink);
}
.brand .logo {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, #0d9488, #0f766e);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  box-shadow: 0 4px 10px rgba(13, 148, 136, 0.3);
}
.u-header-actions { display: flex; align-items: center; gap: 4px; }
.bell-btn { position: relative; }
.bell-dot {
  position: absolute;
  top: 6px;
  right: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--danger);
  border: 2px solid #fff;
}

.u-main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 18px 16px 92px;
}

.u-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line-2);
  display: flex;
  padding-bottom: env(safe-area-inset-bottom);
}
.u-bottom-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 0 6px;
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
}
.u-bottom-nav a.active { color: var(--primary-dark); }
.u-bottom-nav a i { width: 21px; height: 21px; }

/* auth pages */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  background:
    radial-gradient(560px 260px at 12% -5%, rgba(13, 148, 136, 0.14), transparent 60%),
    radial-gradient(480px 260px at 95% 10%, rgba(217, 119, 6, 0.1), transparent 60%),
    #f4f6f8;
}
.auth-card {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(16, 24, 40, 0.08);
  padding: 28px 24px;
}
.auth-card .brand { justify-content: center; margin-bottom: 6px; }
.auth-title { text-align: center; font-size: 20px; font-weight: 800; margin-top: 14px; }
.auth-sub { text-align: center; color: var(--muted); font-size: 13px; margin-top: 4px; margin-bottom: 22px; }
.auth-switch { text-align: center; margin-top: 16px; font-size: 13px; color: var(--muted); }
.auth-switch a { font-weight: 700; }
.demo-tip {
  margin-top: 16px;
  background: var(--accent-soft);
  border: 1px solid #fde3b8;
  color: #92400e;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 12px;
  line-height: 1.7;
}

/* home */
.hero-band {
  border-radius: 10px;
  padding: 20px;
  color: #fff;
  background:
    linear-gradient(120deg, rgba(13, 148, 136, 0.95), rgba(15, 118, 110, 0.9)),
    #0f766e;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15, 118, 110, 0.22);
}
.hero-band::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}
.hero-title { font-size: 18px; font-weight: 800; }
.hero-sub { opacity: 0.85; font-size: 13px; margin-top: 4px; }
.hero-stats { display: flex; gap: 26px; margin-top: 16px; position: relative; z-index: 1; }
.hero-stat b { display: block; font-size: 20px; }
.hero-stat span { font-size: 11px; opacity: 0.8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; position: relative; z-index: 1; }
.btn-white { background: #fff; color: var(--primary-dark); }
.btn-white:hover { background: #ecfeff; }
.btn-glass { background: rgba(255, 255, 255, 0.16); color: #fff; border: 1px solid rgba(255, 255, 255, 0.28); }
.btn-glass:hover { background: rgba(255, 255, 255, 0.24); }

.section-title { font-size: 15px; font-weight: 800; margin: 22px 0 10px; display: flex; align-items: center; gap: 8px; }
.section-title .more { margin-left: auto; font-size: 12px; font-weight: 600; }

.announce-item {
  display: block;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-2);
}
.announce-item:last-child { border-bottom: 0; }
.announce-item h4 { font-size: 14px; color: var(--ink); }
.announce-item p { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.announce-item time { font-size: 11px; color: #94a3b8; }

.track-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.track-chip {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12.5px;
  color: var(--ink-2);
  font-weight: 600;
}
.track-chip:hover { border-color: var(--primary); color: var(--primary-dark); background: var(--primary-soft); }

.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.quick-item {
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  padding: 13px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--ink);
}
.quick-item:hover { border-color: var(--primary); }
.quick-item i { color: var(--primary); }
.quick-item b { font-size: 13px; }
.quick-item span { font-size: 11px; color: var(--muted); }

/* studio */
.studio-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.studio-grid > * { min-width: 0; }
.studio-panel { padding: 16px; }
.source-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-template-rows: 56px;
  gap: 6px;
  margin-bottom: 12px;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  contain: layout style;
}
.source-tab {
  -webkit-appearance: none;
  appearance: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 7px;
  box-sizing: border-box;
  flex: 1 1 0;
  width: 100%;
  max-width: 100%;
  height: 56px;
  min-height: 56px;
  max-height: 56px;
  padding: 8px 4px;
  font-size: 12.5px;
  line-height: 1.2;
  font-weight: 600;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  overflow: hidden;
  touch-action: manipulation;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}
.source-tab span {
  display: block;
  min-width: 0;
  max-width: 100%;
  font-size: inherit;
  line-height: inherit;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.source-tab svg {
  flex: none;
  width: 16px;
  height: 16px;
}
.source-tab.active { border-color: var(--primary); color: var(--primary-dark); background: var(--primary-soft); }
.module-clear-row { display: flex; justify-content: flex-end; margin-top: 4px; }

@media (max-width: 640px) {
  .source-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    grid-template-columns: none;
    gap: 8px;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .source-tabs::-webkit-scrollbar {
    display: none;
  }
  .source-tab {
    flex: 0 0 auto;
    width: auto;
    min-width: 104px;
    max-width: none;
  }
}

.hist-filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.hist-filter-btn {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 7px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}
.hist-filter-btn.active { border-color: var(--primary); color: var(--primary-dark); background: var(--primary-soft); }

.range-row { display: flex; align-items: center; gap: 10px; }
.range-row input[type="range"] { flex: 1; accent-color: var(--primary); }
.range-val { min-width: 58px; text-align: right; font-weight: 700; color: var(--primary-dark); font-size: 13px; }

.toolbar { display: flex; flex-wrap: wrap; gap: 8px; }
.tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 7px;
  padding: 7px 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
}
.tool-btn:hover { border-color: var(--primary); color: var(--primary-dark); }
.tool-btn:disabled { opacity: 0.45; cursor: not-allowed; }

.stage-list { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.stage {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 4px 10px;
}
.stage.done { color: var(--primary-dark); background: var(--primary-soft); border-color: #b8e5df; }
.stage.active { color: #b45309; background: var(--accent-soft); border-color: #f7d9a8; }

.preview-tabs { display: flex; gap: 2px; overflow-x: auto; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.preview-tab {
  border: 0;
  background: transparent;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  flex-shrink: 0;
}
.preview-tab.active { color: var(--primary-dark); border-bottom-color: var(--primary); }
.preview-content { width: 100%; min-width: 0; max-width: 100%; min-height: 320px; }
.title-picker {
  border: 1px solid var(--line-2);
  border-radius: 8px;
  padding: 12px;
  background: linear-gradient(180deg, #f8fbfa 0%, #fff 100%);
}
.title-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.title-picker-head > div { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.title-picker-head b { font-size: 14px; white-space: nowrap; }
.title-picker-list {
  display: grid;
  gap: 6px;
  max-height: 248px;
  overflow: auto;
  padding-right: 3px;
}
.title-option {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 38px;
  text-align: left;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink-2);
  cursor: pointer;
  font-size: 13px;
  line-height: 1.5;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.title-option > span {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}
.title-option b { font-weight: 600; overflow-wrap: anywhere; }
.title-option i {
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  color: var(--primary-dark);
  white-space: nowrap;
}
.title-option:hover { border-color: var(--primary); background: var(--primary-soft); }
.title-option.selected {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(13, 148, 136, 0.12);
}
.title-option.selected > span { background: var(--primary); color: #fff; }
.publish-audit {
  border: 1px solid var(--line-2);
  border-radius: 8px;
  padding: 11px 12px;
  background: #fff;
}
.publish-audit.pass { border-color: rgba(13, 148, 136, 0.32); background: linear-gradient(180deg, #f3fbf8, #fff); }
.publish-audit.warn { border-color: rgba(217, 119, 6, 0.35); background: linear-gradient(180deg, #fffbeb, #fff); }
.audit-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.audit-score {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  line-height: 1.1;
  flex: 0 0 auto;
}
.publish-audit.pass .audit-score { background: linear-gradient(135deg, #0f766e, #0d9488); }
.publish-audit.warn .audit-score { background: linear-gradient(135deg, #b45309, #d97706); }
.audit-score b { font-size: 18px; font-weight: 800; }
.audit-score span { font-size: 10px; opacity: 0.85; }
.audit-status { display: flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 700; }
.publish-audit.pass .audit-status { color: #0f766e; }
.publish-audit.warn .audit-status { color: #b45309; }
.audit-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-left: auto;
  justify-content: flex-end;
}
.audit-meta span {
  font-size: 11px;
  padding: 3px 7px;
  border-radius: 5px;
  background: rgba(15, 23, 42, 0.06);
  color: var(--muted);
  white-space: nowrap;
}
.audit-issues,
.audit-tips {
  display: grid;
  gap: 4px;
  margin-top: 9px;
}
.audit-issues b,
.audit-tips b { font-size: 12px; margin-bottom: 1px; }
.publish-audit.warn .audit-issues b { color: #b45309; }
.audit-issues span,
.audit-tips span {
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink-2);
  padding-left: 10px;
  position: relative;
}
.audit-issues span::before,
.audit-tips span::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--muted);
}
.audit-tips { margin-top: 6px; }
.audit-tips b { color: var(--primary-dark); }
.article-view {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  line-height: 1.9;
  font-size: 14.5px;
  color: #2b3648;
  overflow-wrap: break-word;
  word-break: break-word;
}
.article-view img,
.article-view video,
.article-view iframe,
.article-view table { max-width: 100%; }
.article-view img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 12px auto;
  border-radius: 8px;
}
.article-view pre,
.article-view code { max-width: 100%; overflow-x: auto; }
.article-view a { word-break: break-all; }
.article-view h2 { font-size: 17px; margin: 18px 0 8px; }
.article-view h3 { font-size: 15px; margin: 14px 0 6px; }
.article-view p { margin: 8px 0; }
.article-view ul, .article-view ol { margin: 8px 0; padding-left: 22px; }
.article-view blockquote { margin: 10px 0; padding: 6px 12px; border-left: 3px solid var(--primary); background: var(--primary-soft); border-radius: 4px; }
.html-preview { border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 14px; min-height: 260px; }
.html-preview iframe { display: block; width: 100%; min-height: 320px; border: 0; background: #fff; }
.wx-preview-scroll {
  overflow: auto;
  padding: 14px;
  border-radius: 8px;
  background: #edf0f4;
  border: 1px solid var(--line);
  max-height: 620px;
}
.wx-preview-device {
  width: 375px;
  max-width: 100%;
  margin: 0 auto;
  border: 6px solid #20242a;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.14);
  box-sizing: border-box;
}
.wx-device-top {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  background: #20242a;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.wx-preview-device iframe {
  display: block;
  width: 100%;
  height: 560px;
  border: 0;
  background: #fff;
}
.iphone-preview-wrap { display: flex; justify-content: center; padding: 10px 0 4px; }
.iphone-frame {
  position: relative;
  width: 300px;
  max-width: 100%;
  background: #1b1b1f;
  border-radius: 44px;
  padding: 12px 12px 16px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.28), inset 0 0 0 2px rgba(255, 255, 255, 0.06);
}
.iphone-statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 10px 6px;
}
.iphone-island {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 92px;
  height: 24px;
  border-radius: 999px;
  background: #000;
  z-index: 2;
}
.iphone-screen {
  height: 560px;
  background: #fff;
  border-radius: 32px;
  overflow: hidden;
  position: relative;
}
.iphone-screen iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}
.iphone-home {
  width: 96px;
  height: 4px;
  margin: 10px auto 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
}
.codebox.hidden-code { display: none; }
.cover-list { display: grid; gap: 10px; }
.cover-item { border: 1px solid var(--line-2); border-radius: 8px; padding: 12px; background: #fff; }
.cover-item b { display: block; font-size: 13px; margin-bottom: 6px; color: var(--primary-dark); }
.cover-item p { font-size: 12.5px; color: var(--ink-2); margin: 4px 0; }
.cover-item .prompt { background: var(--surface-2); border-radius: 6px; padding: 8px; font-size: 12px; color: var(--muted); }

.generate-btn {
  width: 100%;
  padding: 13px;
  font-size: 15px;
  border-radius: 8px;
}
.gen-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(126px, 1fr));
  gap: 8px;
  margin-top: 12px;
}
.gen-actions .btn {
  width: 100%;
  min-width: 0;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-app .gen-actions [data-act="import"] {
  border: 2px solid var(--primary);
  color: var(--primary-dark);
  background: #fff;
}
.user-app .gen-actions [data-act="import"]:hover {
  border-color: var(--primary-dark);
  background: var(--primary-soft);
  color: var(--primary-dark);
}

/* wechat accounts */
.wechat-channel-hint {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 10px;
  padding: 14px;
  border-radius: 10px;
  background: linear-gradient(135deg, #eef6ff 0%, #f0fdf6 100%);
  border: 1px solid #d5e7ff;
  color: var(--ink-2);
  font-size: 12.5px;
  line-height: 1.6;
}
.wechat-hint-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 10px;
  background: #fff;
  color: var(--primary);
  border: 1px solid #d8e7ff;
  box-shadow: 0 4px 12px rgba(30, 86, 214, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}
.wechat-hint-body { flex: 1; min-width: 0; }
.wechat-hint-title { font-size: 14px; font-weight: 800; color: var(--ink); }
.wechat-channel-hint p { margin: 4px 0 10px; }
.wechat-ip-box {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  background: #fff;
  border: 1px dashed #b9d6ff;
  border-radius: 8px;
  padding: 8px 10px;
}
.wechat-ip-box code {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-dark);
  word-break: break-all;
}
.wechat-ip-box .btn { flex-shrink: 0; }
.wechat-hint-actions { margin-top: 10px; display: flex; }
.wechat-hint-actions .btn { display: inline-flex; align-items: center; gap: 6px; }
.wechat-list { display: grid; gap: 12px; }
.wechat-account { display: grid; gap: 12px; }
.wechat-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0d9488, #2563eb);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 17px;
  flex-shrink: 0;
  overflow: hidden;
}
.wechat-avatar img { width: 100%; height: 100%; object-fit: cover; }
.wechat-ops { display: flex; flex-wrap: wrap; gap: 6px; }
.wechat-logs { border-top: 1px solid var(--line-2); padding-top: 10px; }
.wechat-log {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--ink-2);
  padding: 5px 0;
}
.wechat-log span:first-child { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wechat-log.failed { color: var(--danger); }
.wechat-log time { color: #94a3b8; font-size: 11px; flex-shrink: 0; }
.wechat-pick { display: flex; align-items: center; gap: 10px; }
.wechat-summary .level { position: absolute; top: 16px; right: 18px; background: rgba(13, 148, 136, 0.9); padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }

/* agent center */
.agent-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.agent-stat-grid .stat-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  padding: 14px;
}
.agent-stat-grid .stat-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.agent-stat-grid .stat-icon,
.agent-stat-grid .stat-icon.teal,
.agent-stat-grid .stat-icon.blue,
.agent-stat-grid .stat-icon.amber,
.agent-stat-grid .stat-icon.rose {
  position: relative;
  background: linear-gradient(145deg, #252d38 0%, #0e1319 100%);
  color: #d7b56d;
  border: 1px solid rgba(215, 181, 109, 0.45);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.agent-stat-grid .stat-icon::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  pointer-events: none;
}
.agent-stat-grid b { display: block; font-size: 15px; }
.agent-stat-grid span { font-size: 12px; color: var(--ink-2); }
.agent-level-tip {
  margin-top: 12px;
  padding: 12px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  color: var(--ink-2);
}
.agent-level-tip b { color: var(--ink); }
.agent-level-tip p { margin: 6px 0 0; font-size: 13px; }
.agent-reject {
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #be123c;
  font-size: 13px;
}
.agent-settlement-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  list-style: none;
}
.agent-settlement-summary::-webkit-details-marker { display: none; }
.agent-settlement-card[open] .agent-settlement-summary { margin-bottom: 14px; }
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.detail-block {
  border: 1px solid var(--line-2);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}
.detail-block h4 { font-size: 13px; margin-bottom: 8px; color: var(--ink); }
.detail-block p { margin: 4px 0; }
@media (max-width: 720px) {
  .agent-stat-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-grid { grid-template-columns: 1fr; }
}
.parsed-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.wechat-image-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; max-height: 420px; overflow: auto; padding-right: 2px; }
.wechat-image-item { position: relative; aspect-ratio: 3 / 4; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.wechat-image-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wechat-image-item span { position: absolute; left: 6px; top: 6px; background: rgba(15, 23, 42, 0.72); color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 999px; }
.wechat-image-item.redrawn { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.18); }
.wechat-image-item.redrawn span { background: var(--primary); }
.wechat-image-item.removed img { opacity: 0.28; filter: grayscale(1); }
.img-toggle-btn {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 0;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  cursor: pointer;
}
.wechat-image-item.removed .img-toggle-btn { background: var(--primary); }
.wechat-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }

@media (max-width: 640px) {
  .wechat-image-grid {
    grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
    gap: 6px;
    max-height: 56vh;
  }
  .wechat-image-item {
    height: 118px;
    aspect-ratio: auto;
  }
  .img-toggle-btn {
    min-height: 26px;

    left: 4px;
    right: 4px;
    bottom: 4px;
    padding: 4px 4px;
  }
}
.html-preview { max-height: 480px; overflow: auto; }
details summary { cursor: pointer; font-size: 12.5px; color: var(--primary-dark); font-weight: 600; }

/* history */
.history-list { display: grid; gap: 10px; }
.history-item {
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  padding: 14px;
}
.history-item.is-selected {
  border-color: var(--primary);
  background: var(--primary-soft);
  box-shadow: 0 0 0 1px rgba(30, 86, 214, 0.12);
}
.history-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.history-head h4 {
  min-width: 0;
  word-break: break-word;
}
.history-head .hist-check {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  margin-top: 3px;
  accent-color: var(--primary);
  cursor: pointer;
}
.history-item h4 { font-size: 14.5px; }
.history-item .meta { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); margin-top: 6px; flex-wrap: wrap; }
.history-item .ops { display: flex; gap: 4px; margin-top: 10px; }

/* card page */
.member-card {
  border-radius: 10px;
  padding: 20px;
  color: #fff;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  position: relative;
  overflow: hidden;
}
.member-card::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -60px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 24px solid rgba(13, 148, 136, 0.25);
}
.member-card .days { font-size: 34px; font-weight: 900; line-height: 1; margin-top: 10px; }
.member-card .days small { font-size: 13px; font-weight: 600; opacity: 0.7; }
.member-card .exp { font-size: 12px; opacity: 0.75; margin-top: 8px; }
.member-card .level { position: absolute; top: 16px; right: 18px; background: rgba(13, 148, 136, 0.9); padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }

.activate-box {
  display: flex;
  gap: 8px;
}
.activate-box .input { font-family: Consolas, monospace; text-transform: uppercase; letter-spacing: 1px; }

/* profile */
.profile-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-2);
}
.profile-row:last-child { border-bottom: 0; }
.profile-row .label { color: var(--muted); font-size: 13px; min-width: 76px; }
.profile-row .value { flex: 1; font-weight: 600; font-size: 13.5px; word-break: break-all; }
.account-id-card {
  position: relative;
  overflow: hidden;
  padding: 20px;
  color: #f5f2ea;
  background: linear-gradient(145deg, #121a24 0%, #1b2531 55%, #263441 100%);
  border: 1px solid rgba(201, 168, 106, 0.35);
  border-radius: 10px;
}
.account-id-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 22px, rgba(201, 168, 106, 0.07) 22px 23px, transparent 23px),
    linear-gradient(transparent 0 22px, rgba(201, 168, 106, 0.07) 22px 23px, transparent 23px);
  background-size: 24px 24px;
}
.account-id-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, #c9a86a, #f0dcae 45%, #8e7444);
}
.account-id-head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
}
.account-avatar {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  color: #1a1408;
  background: linear-gradient(135deg, #f0dcae, #c9a86a 55%, #9d7f47);
  border: 2px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
}
.account-id-name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 17px;
  font-weight: 800;
  color: #fff;
}
.account-id-name .account-verify { color: #e4c98d; }
.account-id-sub {
  margin-top: 3px;
  font-size: 12px;
  color: rgba(245, 242, 234, 0.66);
}
.account-status {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.account-status.on {
  color: #f0dcae;
  background: rgba(201, 168, 106, 0.16);
  border: 1px solid rgba(201, 168, 106, 0.45);
}
.account-status.off {
  color: rgba(245, 242, 234, 0.72);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.account-id-line {
  position: relative;
  height: 1px;
  margin: 16px 0 14px;
  background: linear-gradient(90deg, rgba(201, 168, 106, 0.55), rgba(255, 255, 255, 0.08) 55%, transparent);
}
.account-id-meta {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
}
.account-id-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.account-id-icon {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e4c98d;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.account-id-item > div { min-width: 0; }
.account-id-label {
  display: block;
  margin-bottom: 2px;
  font-size: 12px;
  color: rgba(245, 242, 234, 0.6);
}
.account-id-item b {
  display: block;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
  word-break: break-all;
}
.account-id-item .account-days {
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  color: #f0dcae;
}
.account-id-item .account-days em {
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
  color: rgba(245, 242, 234, 0.7);
}
.api-config-head {
  flex-wrap: nowrap;
  align-items: flex-start;
}
.api-config-head > div { min-width: 0; }
.api-config-head .badge {
  flex: 0 0 auto;
  white-space: nowrap;
  font-size: 12px;
  line-height: 1.2;
  padding: 2px 9px;
  border-radius: 999px;
}

/* help */
.help-group { margin-bottom: 8px; border: 1px solid var(--line-2); border-radius: 8px; background: #fff; overflow: hidden; }
.help-q {
  width: 100%;
  border: 0;
  background: #fff;
  padding: 13px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
}
.help-q i { transition: transform 0.2s; color: var(--muted); }
.help-group.open .help-q i { transform: rotate(180deg); }
.help-a { display: none; padding: 0 14px 14px; color: var(--ink-2); font-size: 13px; line-height: 1.85; white-space: pre-line; }
.help-group.open .help-a { display: block; }

/* tutorial */
.tutorial { line-height: 1.85; font-size: 13.5px; color: var(--ink-2); }
.tutorial-h3 { font-size: 15px; font-weight: 800; color: var(--ink); margin-bottom: 8px; }
.tutorial h4 { font-size: 14px; font-weight: 700; color: var(--ink); margin: 14px 0 6px; }
.tutorial p { margin: 4px 0 8px; }
.tutorial-toc { display: grid; gap: 4px; }
.tutorial-toc a { color: var(--primary-dark); font-weight: 600; font-size: 13px; padding: 3px 0; }
.tutorial-toc a:hover { color: var(--primary); }
.t-list { margin: 6px 0 0; padding-left: 20px; }
.t-list li { margin-bottom: 6px; }
.t-tip {
  margin-top: 12px;
  background: var(--primary-soft);
  border: 1px solid #b8e5df;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--primary-dark);
}
.t-tip.t-warn { background: var(--accent-soft); border-color: #f7d9a8; color: #b45309; }
.tutorial code {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 12px;
  color: var(--ink-2);
  word-break: break-all;
}

/* comic generator */
.comic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.comic-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.comic-item img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.comic-item-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
}

@media (max-width: 640px) {
  .comic-grid {
    grid-template-columns: 1fr;
  }
  .comic-item img {
    cursor: zoom-in;
  }
}
.comic-preview { border: 1px solid var(--line); }
.comic-preview .article-view { max-height: 440px; overflow: auto; padding-right: 4px; }
.comic-preview img { border-radius: 8px; margin: 12px auto; }

/* notifications */
.notify-list { display: grid; gap: 8px; }
.notify-item {
  display: flex;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  padding: 13px 14px;
}
.notify-item.unread { border-left: 3px solid var(--primary); }
.notify-icon { width: 34px; height: 34px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.notify-icon.expiry { background: var(--danger-soft); color: var(--danger); }
.notify-icon.update { background: var(--primary-soft); color: var(--primary); }
.notify-icon.system { background: var(--info-soft); color: var(--info); }
.notify-item h4 { font-size: 13.5px; }
.notify-item p { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.notify-item time { font-size: 11px; color: #94a3b8; }

@media (min-width: 820px) {
  .u-main { padding-top: 26px; }
  .studio-grid { grid-template-columns: 400px 1fr; align-items: start; }
  .studio-panel.left { position: sticky; top: 70px; max-height: calc(100vh - 90px); overflow-y: auto; }
  .quick-grid { grid-template-columns: repeat(4, 1fr); }
  .u-bottom-nav { display: none; }
}

/* ============ 商务化改版覆盖层 ============ */
.user-app,
.auth-page {
  --primary: #1e56d6;
  --primary-dark: #163f9e;
  --primary-soft: #eaf0ff;
  --ink: #101828;
  --ink-2: #344054;
  --muted: #667085;
  --line: #e4e7ec;
  --line-2: #eaecf0;
  --bg: #f6f7f9;
  --surface-2: #f8f9fb;
  --accent: #d97706;
  --accent-soft: #fef3e2;
  --danger: #dc2626;
  --danger-soft: #fee2e2;
  --info: #2563eb;
  --info-soft: #e0edff;
  --ok: #16a34a;
  --ok-soft: #dcfce7;
}

.user-app {
  background: var(--bg);
}

.u-header {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 1px 0 rgba(16, 24, 40, 0.06);
}
.u-header-inner { height: 56px; }
.brand { font-size: 15px; }
.brand-logo { width: 30px; height: 30px; object-fit: contain; border-radius: 8px; }
.brand .logo {
  background: var(--primary);
  border-radius: 6px;
  box-shadow: none;
  font-weight: 800;
}
.u-header-actions .icon-btn {
  border: 1px solid var(--line-2);
  border-radius: 6px;
  color: var(--ink-2);
}
.u-header-actions .icon-btn:hover { background: var(--surface-2); color: var(--ink); }

.u-main { padding: 18px 16px 96px; }
.legal-notice {
  margin-top: 18px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.legal-notice p {
  margin: 0 auto;
  max-width: 720px;
  font-size: 11.5px;
  line-height: 1.75;
  color: var(--muted);
}

.u-bottom-nav {
  background: #fff;
  border-top: 1px solid var(--line);
}
.u-bottom-nav a { color: var(--muted); font-size: 11px; }
.u-bottom-nav a.active { color: var(--primary); }

.u-contact-float {
  position: fixed;
  right: 14px;
  bottom: 86px;
  z-index: 46;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(30, 86, 214, 0.32);
}
.u-contact-float:hover { background: var(--primary-dark); color: #fff; }

/* public landing */
.landing-page { min-height: 100vh; background: #f7f9fc; color: var(--ink); }
.landing-container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; box-sizing: border-box; }
.landing-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #e5eaf1;
}
.landing-header-inner {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  height: 62px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.landing-brand { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 800; color: var(--ink); text-decoration: none; min-width: 0; }
.landing-brand-logo { width: 30px; height: 30px; object-fit: contain; border-radius: 8px; flex-shrink: 0; }
.landing-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #111827;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.landing-nav { display: flex; align-items: center; gap: 4px; }
.landing-nav-link {
  border: 0;
  background: transparent;
  color: #475467;
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
}
.landing-nav-link:hover { color: var(--ink); background: #f2f4f7; }
.landing-auth { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.landing-login {
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
}
.landing-login:hover { background: #f2f4f7; }
.landing-register {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #111827;
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  padding: 9px 16px;
  border-radius: 8px;
  text-decoration: none;
}
.landing-register:hover { background: #1f2937; }
.landing-main { overflow: hidden; }

.landing-hero { position: relative; background: #fff; padding: 64px 0 76px; }
.landing-hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.55;
  pointer-events: none;
  background-image:
    linear-gradient(#eef2f7 1px, transparent 1px),
    linear-gradient(90deg, #eef2f7 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 82%);
}
.landing-hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.landing-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #b45309;
  background: #fffbeb;
  border: 1px solid #fde68a;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 18px;
}
.landing-hero h1 { font-size: 44px; line-height: 1.18; letter-spacing: 0; color: #111827; margin: 0 0 18px; }
.landing-hero-copy > p { font-size: 15.5px; line-height: 1.8; color: #475467; margin: 0 0 26px; max-width: 520px; }
.landing-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.landing-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #111827;
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid #111827;
}
.landing-btn-primary:hover { background: #1f2937; }
.landing-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #fff;
  color: #111827;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 700;
  border: 1px solid #d0d5dd;
  cursor: pointer;
}
.landing-btn-ghost:hover { background: #f2f4f7; }
.landing-hero-trust { display: flex; flex-wrap: wrap; gap: 10px 18px; color: #344054; font-size: 13px; }
.landing-hero-trust span { display: inline-flex; align-items: center; gap: 6px; }

.landing-mock {
  border: 1px solid #e5eaf1;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(16, 24, 40, 0.1);
  overflow: hidden;
}
.landing-mock-top {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  background: #f8fafc;
  border-bottom: 1px solid #e5eaf1;
}
.landing-mock-top .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.landing-mock-top .dot-red { background: #fca5a5; }
.landing-mock-top .dot-amber { background: #fcd34d; }
.landing-mock-top .dot-green { background: #86efac; }
.landing-mock-top em { margin-left: 8px; font-style: normal; color: #98a2b3; font-size: 11.5px; }
.landing-mock-body { padding: 22px; }
.landing-mock-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.landing-mock-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #047857;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  margin-bottom: 0;
}
.landing-mock-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 0;
  background: transparent;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 0;
  cursor: pointer;
}
.landing-mock-link:hover { color: #1e40af; }
.landing-mock-link i { transition: transform 0.15s ease; }
.landing-mock-link:hover i { transform: translateX(2px); }
.landing-mock-cta {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 16px;
  padding: 10px 14px;
  background: #111827;
  color: #fff;
  border: 0;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.landing-mock-cta:hover { background: #1f2937; }
.landing-mock-body h3 { font-size: 18px; line-height: 1.45; color: #111827; margin: 0 0 10px; }
.landing-mock-body p { font-size: 13px; line-height: 1.8; color: #475467; margin: 0 0 16px; }
.landing-mock-flow { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.landing-mock-flow span {
  font-size: 11.5px;
  color: #475467;
  background: #f8fafc;
  border: 1px solid #e5eaf1;
  padding: 5px 9px;
  border-radius: 6px;
}
.landing-mock-flow i { width: 16px; height: 1px; background: #d0d5dd; }

.landing-section { padding: 72px 0; }
.landing-section-head { max-width: 620px; margin-bottom: 34px; }
.landing-kicker { color: #b45309; font-size: 12px; font-weight: 800; }
.landing-section-head h2 { font-size: 28px; line-height: 1.3; color: #111827; margin: 8px 0 10px; }
.landing-section-head p { font-size: 14px; line-height: 1.7; color: #475467; margin: 0; }
.landing-features { background: #f7f9fc; }
.landing-feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.landing-feature-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #fff;
  border: 1px solid #e5eaf1;
  border-radius: 8px;
  padding: 18px;
}
.landing-feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #eef2ff;
  color: #4338ca;
  display: flex;
  align-items: center;
  justify-content: center;
}
.landing-feature-card h3 { font-size: 15px; color: #111827; margin: 0 0 6px; }
.landing-feature-card p { font-size: 12.5px; line-height: 1.7; color: #475467; margin: 0; }

.landing-flow { background: #fff; }
.landing-flow-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.landing-flow-step {
  position: relative;
  border: 1px solid #e5eaf1;
  border-radius: 8px;
  background: #f8fafc;
  padding: 18px 14px 14px;
}
.landing-flow-num {
  position: absolute;
  top: 10px;
  right: 12px;
  color: #d0d5dd;
  font-size: 22px;
  font-weight: 800;
}
.landing-flow-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #ecfdf5;
  color: #047857;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.landing-flow-step b { display: block; font-size: 14px; color: #111827; margin-bottom: 6px; }
.landing-flow-step p { font-size: 12px; line-height: 1.6; color: #667085; margin: 0; }

.landing-faq { background: #f7f9fc; }
.landing-faq-list { max-width: 760px; display: grid; gap: 10px; }
.landing-faq-item { background: #fff; border: 1px solid #e5eaf1; border-radius: 8px; overflow: hidden; }
.landing-faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 0;
  background: transparent;
  padding: 15px 16px;
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  text-align: left;
  cursor: pointer;
}
.landing-faq-q i { color: #98a2b3; transition: transform 0.2s ease; flex-shrink: 0; }
.landing-faq-item.open .landing-faq-q i { transform: rotate(180deg); }
.landing-faq-a { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.landing-faq-a p { margin: 0; padding: 0 16px 15px; font-size: 13px; line-height: 1.75; color: #475467; }

.landing-cta { padding: 64px 0; background: #111827; }
.landing-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.landing-cta h2 { font-size: 28px; line-height: 1.3; color: #fff; margin: 0 0 10px; }
.landing-cta p { font-size: 14px; line-height: 1.7; color: #cbd5e1; margin: 0; }
.landing-cta .landing-btn-primary { background: #f59e0b; border-color: #f59e0b; color: #111827; }
.landing-cta .landing-btn-primary:hover { background: #d97706; }

.landing-footer { background: #0f172a; color: #94a3b8; padding: 40px 0 22px; }
.landing-footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 48px; padding-bottom: 30px; border-bottom: 1px solid rgba(148, 163, 184, 0.16); }
.landing-footer-brand { display: flex; align-items: center; gap: 8px; color: #f8fafc; font-size: 15px; font-weight: 800; margin-bottom: 10px; }
.landing-footer-brand img { width: 26px; height: 26px; object-fit: contain; border-radius: 6px; }
.landing-footer p { max-width: 480px; font-size: 13px; line-height: 1.85; margin: 10px 0 0; color: #94a3b8; }
.landing-footer-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 28px; min-width: 220px; }
.landing-footer-links a { color: #cbd5e1; font-size: 13px; text-decoration: none; }
.landing-footer-links a:hover { color: #fff; }
.landing-footer-links .landing-agreement-link { justify-self: start; }
.landing-footer-bottom { padding-top: 20px; font-size: 12px; color: #64748b; }
.landing-footer-bottom .landing-icp { color: #94a3b8; text-decoration: none; }
.landing-footer-bottom .landing-icp:hover { color: #fff; text-decoration: underline; }

@media (max-width: 980px) {
  .landing-feature-grid { grid-template-columns: repeat(2, 1fr); }
  .landing-flow-grid { grid-template-columns: repeat(3, 1fr); }
  .landing-hero-inner { gap: 40px; }
}

@media (max-width: 820px) {
  .landing-nav { display: none; }
  .landing-hero { padding: 44px 0 52px; }
  .landing-hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .landing-section { padding: 52px 0; }
  .landing-cta { padding: 48px 0; }
  .landing-cta-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .landing-header-inner { padding: 0 14px; }
  .landing-container { padding: 0 14px; }
  .landing-login { padding: 8px 10px; }
  .landing-register { padding: 9px 12px; }
  .landing-feature-grid { grid-template-columns: 1fr; }
  .landing-flow-grid { grid-template-columns: repeat(2, 1fr); }
  .landing-footer-inner { flex-direction: column; }
}

/* landing visual polish */
.landing-header {
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.05);
}
.landing-header-inner { height: 68px; }
.landing-brand { font-size: 16px; }
.landing-brand-logo, .landing-mark { width: 34px; height: 34px; border-radius: 10px; }
.landing-nav-link { font-size: 13px; color: #344054; }
.landing-register { box-shadow: 0 8px 18px rgba(15, 23, 42, 0.14); }

.landing-hero { padding: 84px 0 96px; }
.landing-hero-grid {
  opacity: 0.8;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.045) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), transparent 88%);
}
.landing-hero-inner { gap: 68px; }
.landing-eyebrow {
  background: #fff;
  border-color: #dbeafe;
  box-shadow: 0 6px 18px rgba(30, 86, 214, 0.08);
  color: #1d4ed8;
}
.landing-hero h1 { font-size: 54px; line-height: 1.08; margin-bottom: 26px; }
.landing-hero-line {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: #334155;
  margin-bottom: 10px;
}
.landing-hero-accent {
  display: block;
  font-size: 54px;
  line-height: 1.1;
  font-weight: 900;
  background: linear-gradient(100deg, #0f766e 0%, #2563eb 45%, #7c3aed 70%, #2563eb 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
  animation: landingShimmer 6s linear infinite;
  filter: drop-shadow(0 8px 20px rgba(37, 99, 235, 0.16));
}
.landing-hero-accent::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #22d3ee, #818cf8);
  opacity: 0.65;
}
@keyframes landingShimmer {
  0% { background-position: 0% center; }
  100% { background-position: 220% center; }
}
.landing-hero-copy > p { font-size: 16px; color: #475467; margin-bottom: 30px; }
.landing-hero-cta { gap: 14px; margin-bottom: 32px; }
.landing-btn-primary, .landing-btn-ghost { padding: 13px 22px; font-size: 15px; border-radius: 10px; }
.landing-btn-primary { box-shadow: 0 12px 26px rgba(15, 23, 42, 0.2); }
.landing-hero-trust { gap: 10px 16px; }
.landing-hero-trust span {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid #e5eaf1;
  border-radius: 999px;
  padding: 7px 12px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}
.landing-tech-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: -6px 0 24px; }
.landing-tech-chips span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 700;
  color: #155e75;
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(14, 165, 233, 0.24);
  border-radius: 8px;
  padding: 6px 10px;
}
.landing-hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #e5eaf1;
}
.landing-hero-stats > div {
  background: #fff;
  border: 1px solid #e5eaf1;
  border-radius: 10px;
  padding: 12px 14px;
  text-align: left;
}
.landing-hero-stats b { display: block; font-size: 22px; font-weight: 900; color: #111827; line-height: 1.1; }
.landing-hero-stats span { display: block; margin-top: 4px; font-size: 11.5px; color: #667085; }

.landing-mock {
  position: relative;
  border-radius: 12px;
  border-color: #e5eaf1;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.14), 0 4px 16px rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(34, 211, 238, 0.22);
  transform: rotate(0.6deg);
}
.landing-mock-corner { position: absolute; width: 18px; height: 18px; z-index: 3; pointer-events: none; }
.landing-mock-corner.tl { left: -1px; top: -1px; border-left: 2px solid #06b6d4; border-top: 2px solid #06b6d4; border-radius: 12px 0 0 0; }
.landing-mock-corner.tr { right: -1px; top: -1px; border-right: 2px solid #06b6d4; border-top: 2px solid #06b6d4; border-radius: 0 12px 0 0; }
.landing-mock-corner.bl { left: -1px; bottom: -1px; border-left: 2px solid #06b6d4; border-bottom: 2px solid #06b6d4; border-radius: 0 0 0 12px; }
.landing-mock-corner.br { right: -1px; bottom: -1px; border-right: 2px solid #06b6d4; border-bottom: 2px solid #06b6d4; border-radius: 0 0 12px 0; }
.landing-mock-scan {
  position: absolute;
  left: 6%;
  right: 6%;
  height: 1px;
  z-index: 2;
  background: linear-gradient(90deg, transparent, #22d3ee, transparent);
  opacity: 0;
  animation: landingScan 4.2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes landingScan {
  0% { top: 8%; opacity: 0; }
  14% { opacity: 0.85; }
  80% { opacity: 0.85; }
  100% { top: 94%; opacity: 0; }
}
.landing-mock-status { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.landing-mock-status span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  color: #155e75;
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(14, 165, 233, 0.22);
  border-radius: 8px;
  padding: 6px 9px;
}
.landing-mock-top { background: #f8fafc; }
.landing-mock-body { padding: 24px; }
.landing-mock-body h3 { font-size: 19px; }
.landing-mock-body p { font-size: 13.5px; }
.landing-mock-cta { border-radius: 10px; }

.landing-section { padding: 88px 0; scroll-margin-top: 84px; }
.landing-section-head { margin-bottom: 42px; }
.landing-section-head h2 { font-size: 32px; margin-top: 10px; }
.landing-section-head p { font-size: 15px; color: #667085; }
.landing-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #0f766e;
  font-size: 12px;
  font-weight: 800;
}
.landing-kicker::before { content: ""; width: 22px; height: 2px; border-radius: 999px; background: #f59e0b; }

.landing-feature-grid { gap: 18px; }
.landing-feature-card {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border-color: #e5eaf1;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.landing-feature-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, #0d9488, #2563eb);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.landing-feature-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(15, 23, 42, 0.1); border-color: #cbd5e1; }
.landing-feature-card:hover::before { opacity: 1; }
.landing-feature-icon { width: 44px; height: 44px; border-radius: 10px; }
.landing-feature-card h3 { font-size: 16px; }
.landing-feature-card p { font-size: 13px; color: #667085; }

.landing-flow { background: #fff; }
.landing-flow-grid { gap: 16px; }
.landing-flow-step {
  border-color: #e5eaf1;
  background: #fff;
  padding: 22px 16px 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.landing-flow-step:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(15, 23, 42, 0.09); }
.landing-flow-num { font-size: 26px; color: #e2e8f0; }
.landing-flow-icon { width: 38px; height: 38px; border-radius: 10px; background: #f0fdfa; color: #0f766e; }
.landing-flow-step b { font-size: 15px; }
.landing-flow-step p { font-size: 12.5px; }

.landing-faq-list { gap: 12px; }
.landing-faq-item { border-color: #e5eaf1; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.landing-faq-item:hover { border-color: #cbd5e1; box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06); }
.landing-faq-q { padding: 17px 18px; }

.landing-cta { padding: 78px 0; }
.landing-cta-inner { position: relative; }
.landing-cta h2 { font-size: 32px; }
.landing-cta p { font-size: 15px; }
.landing-cta .landing-btn-primary { border-radius: 10px; padding: 14px 24px; }

.landing-footer { padding: 48px 0 26px; }
.landing-footer-brand { font-size: 16px; }

@media (max-width: 980px) {
  .landing-hero-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .landing-hero { padding: 56px 0 64px; }
  .landing-hero-inner { gap: 40px; }
  .landing-section { padding: 64px 0; }
}

@media (max-width: 560px) {
  .landing-header-inner { height: 60px; }
  .landing-hero { padding: 44px 0 54px; }
  .landing-hero-stats { grid-template-columns: repeat(2, 1fr); }
  .landing-mock { transform: none; }
  .landing-tech-chips { gap: 6px; }
  .landing-section { padding: 54px 0; }
}

.user-app .btn,
.auth-page .btn { border-radius: 6px; }
.user-app .btn-primary,
.auth-page .btn-primary { background: var(--primary); }
.user-app .btn-primary:hover,
.auth-page .btn-primary:hover { background: var(--primary-dark); }
.user-app .btn-outline { border-color: #d0d5dd; color: var(--ink-2); }
.user-app .btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.user-app .btn-ghost { color: var(--muted); }
.user-app .btn-danger { background: var(--danger); }
.user-app .btn-sm { padding: 6px 10px; }

.user-app .card,
.auth-page .card {
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}
.user-app .card-pad { padding: 18px; }

/* auth */
.auth-page { background: var(--bg); padding: 24px 16px; }
.auth-card {
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 8px 24px rgba(16, 24, 40, 0.06);
  padding: 32px 28px;
}
.auth-card .brand .logo { background: var(--primary); }
.auth-title { font-size: 20px; }
.auth-sub { color: var(--muted); }
.auth-agreement {
  margin-top: 12px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}
.agreement-link {
  color: var(--primary-dark);
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}
.agreement-doc { font-size: 13px; line-height: 1.85; color: var(--ink-2); }
.agreement-doc h4 { font-size: 14px; font-weight: 800; color: var(--ink); margin: 16px 0 8px; }
.agreement-doc p { margin: 6px 0; }
.agreement-doc ol { margin: 6px 0; padding-left: 20px; }
.agreement-doc li { margin-bottom: 5px; }
.agreement-meta { color: var(--muted); font-size: 12px; }
.agreement-top {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 12px 14px;
  color: #78350f;
}
.agreement-danger {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 12px 14px;
  color: #7f1d1d;
}
.landing-agreement-link {
  color: #cbd5e1;
  font-size: 13px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.landing-agreement-link:hover { color: #fff; }
.password-field { position: relative; }
.password-field .input { padding-right: 44px; }
.password-toggle {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.password-toggle:hover { color: var(--ink); background: var(--surface-2); }
.demo-tip {
  background: #f8fafc;
  border-color: var(--line);
  color: #475467;
}

/* home */
.hero-band {
  border-radius: 8px;
  padding: 22px 24px;
  background: linear-gradient(120deg, #163f9e 0%, #1e56d6 60%, #2e6be6 100%);
  box-shadow: 0 6px 18px rgba(30, 86, 214, 0.18);
}
.hero-band::after { display: none; }
.hero-title { font-size: 20px; }
.hero-sub { font-size: 13px; opacity: 0.9; }
.hero-stats { gap: 28px; }
.hero-stat b { font-size: 20px; }
.btn-white { color: var(--primary-dark); }
.btn-white:hover { background: #f4f7ff; }
.btn-glass {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.3);
}
.btn-glass:hover { background: rgba(255, 255, 255, 0.24); }

.section-title { font-size: 15px; color: var(--ink); }
.quick-grid { gap: 10px; }
.quick-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 12px;
  gap: 5px;
}
.quick-item i {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.quick-item b { font-size: 13px; }
.quick-item span { font-size: 11px; color: var(--muted); }

.track-chip {
  border-color: var(--line);
  color: var(--ink-2);
}
.track-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-soft);
}

/* studio */
.studio-panel { padding: 16px; }
.source-tab { border-radius: 6px; }
.source-tab.active {
  background: var(--primary-soft);
  border-color: var(--primary);
  color: var(--primary-dark);
}
.tool-btn { border-radius: 6px; }
.tool-btn:hover { border-color: var(--primary); color: var(--primary); }
.generate-btn { border-radius: 6px; }
.stage.done {
  color: var(--primary-dark);
  background: var(--primary-soft);
  border-color: #c9d9ff;
}
.preview-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.article-view { color: var(--ink-2); }
.article-view blockquote {
  border-left-color: var(--primary);
  background: var(--primary-soft);
}
.html-preview { border-radius: 6px; }
.cover-item { border-color: var(--line); }
.cover-item b { color: var(--primary-dark); }

/* member card */
.member-card {
  border-radius: 8px;
  background: linear-gradient(135deg, #101828, #1e56d6);
  padding: 22px;
}
.member-card::after { display: none; }
.member-card .days { font-size: 34px; }
.member-card .level {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

/* tables */
.user-app .table th {
  background: var(--surface-2);
  color: var(--muted);
}
.user-app .table td { color: var(--ink-2); }

/* profile / help / notify */
.profile-row .label { color: var(--muted); }
.help-group, .notify-item { border-color: var(--line); }
.notify-item.unread { border-left-color: var(--primary); }
.notify-icon.update { background: var(--primary-soft); color: var(--primary); }
.notify-icon.system { background: var(--info-soft); color: var(--info); }

/* wechat */
.wechat-avatar { background: linear-gradient(135deg, var(--primary), #2e6be6); }
.wechat-image-item.redrawn {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(30, 86, 214, 0.18);
}
.wechat-image-item.redrawn span { background: var(--primary); }
.wechat-summary .level { background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.24); }

/* contact */
.contact-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.contact-hero-main b { font-size: 15px; display: block; }
.contact-hero-main p { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.contact-channel-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 12px;
}
.contact-qr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.contact-qr-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}
.contact-qr-item b { display: block; font-size: 13px; margin-bottom: 8px; }
.contact-qr-item img { width: 100%; height: auto; border-radius: 6px; }
.contact-channel {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}
.contact-channel-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-channel-icon.teal { background: var(--primary-soft); color: var(--primary); }
.contact-channel-icon.blue { background: var(--info-soft); color: var(--info); }
.contact-channel-icon.amber { background: var(--accent-soft); color: #b45309; }
.contact-channel-icon.rose { background: var(--danger-soft); color: var(--danger); }
.contact-channel-icon.qq { background: #e5f5ff; color: #12B7F5; }
.contact-channel-icon.wechat { background: #e5f9ef; color: #07C160; }
.contact-list { display: grid; gap: 10px; }
.contact-item h4 { font-size: 14px; margin-top: 8px; }
.contact-item p { white-space: pre-wrap; }
.contact-reply {
  border-left: 3px solid var(--primary);
  background: #f4f7ff;
  padding: 8px 10px;
  border-radius: 4px;
  font-size: 12.5px;
  color: var(--ink-2);
}

@media (max-width: 760px) {
  .u-main { padding: 14px 14px 96px; }
  .hero-band { padding: 18px 16px; }
  .hero-actions { gap: 6px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-channel-grid { grid-template-columns: 1fr; }
  .contact-hero { align-items: flex-start; flex-direction: column; }
  .member-card { padding: 18px; }
  .account-id-head { flex-wrap: wrap; }
  .account-status { margin-left: 0; }
  .account-id-meta { grid-template-columns: 1fr; }
}

@media (min-width: 820px) {
  .u-contact-float { bottom: 24px; right: 24px; }
  .u-main { padding-top: 26px; }
  .quick-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ============ 首页高端改版 ============ */
.home-hero {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(135deg, #ffffff 0%, #f0fdfa 55%, #e0f2fe 100%);
  border: 1px solid #d9f3ef;
  color: #0f172a;
  padding: 24px 20px 22px;
  box-shadow: 0 10px 26px rgba(13, 148, 136, 0.08);
}
.home-hero-accent {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, #0d9488, #2563eb);
}
.home-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.home-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #0f766e;
  background: #d7f3ec;
  border: 1px solid #b8e5df;
  border-radius: 999px;
  padding: 5px 10px;
}
.home-hero-title { font-size: 24px; font-weight: 800; margin-top: 12px; line-height: 1.3; color: #0f172a; }
.home-hero-title::after {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, #0d9488, #2563eb);
  margin-top: 10px;
}
.home-hero-sub {
  font-size: 13px;
  color: #475569;
  margin-top: 6px;
  line-height: 1.7;
  max-width: 620px;
}
.home-hero-slogan {
  margin-left: auto;
  max-width: 280px;
  text-align: right;
  padding-left: 18px;
  border-left: 1px solid #b8e5df;
}
.home-hero-slogan b {
  display: block;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.3;
  background: linear-gradient(90deg, #0d9488, #2563eb);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.home-hero-slogan span {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #475569;
}
@media (max-width: 760px) {
  .home-hero { padding: 18px 16px 16px; }
  .home-hero-title {  margin-top: 8px; }
  .home-hero-meta { margin-top: 8px; }
  .home-capabilities { margin-top: 10px; gap: 6px; }
  .home-capabilities span { padding: 5px 8px;  }
  .home-stats { margin-top: 14px; grid-template-columns: repeat(4, 1fr) !important; gap: 6px; }
  .home-stat { padding: 8px 6px !important; }
  .home-actions { margin-top: 12px; gap: 6px; }
  .home-actions .btn { min-width: 0; flex: 1 1 auto; }
  .home-hero-slogan {
    margin-left: 0;
    text-align: left;
    padding-left: 0;
    border-left: 0;
    max-width: 100%;
  }
  .home-hero-slogan span {  margin-top: 4px; }
}
.home-hero-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.home-hero-meta .badge {
  background: #ffffff;
  color: #0f766e;
  border: 1px solid #b8e5df;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 11.5px;
}
.home-capabilities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.home-capabilities span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid #d9f3ef;
  border-radius: 6px;
  padding: 6px 9px;
  font-size: 11.5px;
  color: #334155;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}
.home-capabilities svg { color: #0d9488; }
.home-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 20px;
}
.home-stats, .home-actions { flex: 1 1 100%; }
.home-stat {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #d9f3ef;
  border-radius: 10px;
  padding: 10px 12px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}
.home-stat:nth-child(1) { border-top: 2px solid #0d9488; }
.home-stat:nth-child(2) { border-top: 2px solid #2563eb; }
.home-stat:nth-child(3) { border-top: 2px solid #d97706; }
.home-stat:nth-child(4) { border-top: 2px solid #7c3aed; }
.home-stat b { display: block; font-size: 22px; font-weight: 800; color: #0f766e; }
.home-stat b small { font-size: 12px; font-weight: 600; opacity: 0.85; }
.home-stat span { font-size: 11.5px; color: #64748b; }
.home-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.home-actions .btn { border-radius: 6px; }
.home-actions .btn { min-width: 108px; justify-content: center; }
.home-hero .btn-white { background: #0d9488; color: #fff; border-color: #0d9488; }
.home-hero .btn-white:hover { background: #0f766e; }
.home-hero .btn-glass {
  background: #ffffff;
  color: #0f766e;
  border-color: #b8e5df;
}
.home-hero .btn-glass:hover { background: #e6f6f4; }

.home-section { margin-top: 22px; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-2);
}
.section-head .section-title { margin: 0; }
.section-sub { font-size: 12px; color: var(--muted); }

.quick-grid { grid-template-columns: repeat(2, 1fr); }
.quick-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  text-align: left;
  position: relative;
  padding-right: 28px;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.quick-item::after {
  content: "›";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 18px;
  font-weight: 700;
}
.quick-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}
.quick-item i {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--primary-soft);
  color: var(--primary);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
}
.quick-item:nth-child(2) i { background: #e0edff; color: #2563eb; }
.quick-item:nth-child(3) i { background: #fef3e2; color: #d97706; }
.quick-item:nth-child(4) i { background: #fee2e2; color: #dc2626; }
.quick-item:nth-child(5) i { background: #f3e8ff; color: #7c3aed; }
.quick-item:nth-child(6) i { background: #dcfce7; color: #16a34a; }
.quick-item:nth-child(7) i { background: #cffafe; color: #0891b2; }
.quick-item:nth-child(8) i { background: #ffedd5; color: #ea580c; }
.quick-item div { flex: 1; min-width: 0; }
.quick-item b { display: block; font-size: 13px; color: var(--ink); }
.quick-item span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 2px;
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.flow-step {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 10px 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.flow-step i { color: var(--primary); }
.flow-step b { font-size: 12px; color: var(--ink-2); }
.flow-num {
  position: absolute;
  right: 8px;
  top: 8px;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

#home-announce .card { padding: 6px 16px; }
.announce-item { padding: 14px 2px; }

@media (min-width: 820px) {
  .home-hero { padding: 32px 36px; }
  .home-stats { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .quick-grid { grid-template-columns: repeat(5, 1fr); }
  .flow-steps { grid-template-columns: repeat(8, 1fr); }
}

/* 公众号手机预览：iPhone 17 风格 */
.wx-preview-scroll.phone-stage {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.12)),
    linear-gradient(180deg, #eef1f5 0%, #e7ebf0 55%, #dbe1e8 100%);
  border-color: #d8dee6;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 10px 28px rgba(15, 23, 42, 0.07);
  max-height: 650px;
}
.ios-device {
  position: relative;
  width: 292px;
  max-width: 100%;
  margin: 10px auto;
  padding: 4px;
  border-radius: 60px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0) 18%),
    linear-gradient(180deg, #434950 0%, #202429 36%, #060708 72%, #2b3036 100%);
  box-shadow:
    0 32px 64px rgba(15, 23, 42, 0.24),
    0 8px 20px rgba(15, 23, 42, 0.14),
    inset 0 0 0 1px rgba(255, 255, 255, 0.18),
    inset 0 0 0 3px rgba(0, 0, 0, 0.42),
    inset 0 1px 1px rgba(255, 255, 255, 0.22);
}
.ios-statusbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
  padding: 4px 18px 0 25px;
  border-radius: 56px 56px 0 0;
  background: #fff;
  color: #0b0d10;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}
.ios-display {
  position: relative;
  border-radius: 56px;
  overflow: hidden;
  background: #fff;
}
.ios-status-icons {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #0b0d10;
}
.ios-island {
  position: absolute;
  left: 50%;
  top: 6px;
  transform: translateX(-50%);
  width: 92px;
  height: 25px;
  border-radius: 19px;
  background: #000;
  z-index: 2;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.ios-screen {
  height: 510px;
  border-radius: 0;
  overflow: hidden;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.16), inset 0 0 0 3px rgba(255, 255, 255, 0.12);
}
.ios-screen iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

/* 公众号账号卡片移动端适配 */
.wechat-account {
  min-width: 0;
}
.wechat-account > .flex {
  align-items: flex-start;
  flex-wrap: wrap;
}
.wechat-account .grow {
  flex: 1 1 260px;
  min-width: 0;
  max-width: 100%;
}
.wechat-account .flex-between {
  flex-wrap: wrap;
  row-gap: 6px;
}
.wechat-account p {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.wechat-log {
  flex-wrap: wrap;
  row-gap: 4px;
  min-width: 0;
}
.wechat-log span:first-child {
  flex: 1 1 150px;
}
.wechat-log time {
  flex: 0 0 auto;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 640px) {
  .user-app .wechat-account.card-pad {
    padding: 14px;
  }
  .wechat-log {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 8px;
  }
  .wechat-log .badge {
    justify-self: end;
  }
  .wechat-log time {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

/* 创作台工作流单行展示 */
.studio-head {
  min-width: 0;
}
.studio-head-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}
.studio-head-top h2 {
  white-space: nowrap;
}
.studio-workflow-line {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin-top: 8px;
  min-height: 20px;
  line-height: 20px;
  white-space: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.studio-workflow-line::-webkit-scrollbar {
  display: none;
}
@media (max-width: 520px) {
  .studio-workflow-line {
    min-height: 0;
    line-height: 1.55;
    white-space: normal;
    overflow: visible;
  }
}

/* 个人中心联系管理员 */
.contact-admin-card {
  position: relative;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(201, 168, 106, 0.28);
  border-radius: 10px;
  background: linear-gradient(145deg, #15181c 0%, #1f242b 55%, #272e36 100%);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.contact-admin-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, #c9a86a, #f0dcae 42%, #8e7444 82%, transparent);
  opacity: 0.9;
}
.contact-admin-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 15px 16px;
  color: #f5f2ea;
}
.contact-admin-link:hover {
  color: #fff;
}
.contact-admin-icon {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #1a1408;
  background: linear-gradient(135deg, #f0dcae, #c9a86a 55%, #9d7f47);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.contact-admin-copy {
  flex: 1;
  min-width: 0;
}
.contact-admin-copy b {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
}
.contact-admin-copy small {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: rgba(245, 242, 234, 0.64);
  line-height: 1.5;
  word-break: break-word;
}
.contact-admin-arrow {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(240, 220, 174, 0.32);
  border-radius: 50%;
  color: #e4c98d;
  background: rgba(201, 168, 106, 0.1);
}
