* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #1f2937;
  background: #f4f7fb;
}

[v-cloak] {
  display: none;
}

.auth-page {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(27, 85, 156, 0.92), rgba(31, 41, 55, 0.88)),
    url("https://images.unsplash.com/photo-1551434678-e076c223a692?auto=format&fit=crop&w=1600&q=80");
  background-size: cover;
  background-position: center;
}

.login-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 48px 9vw;
}

.login-panel {
  width: min(420px, 100%);
  padding: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.26);
}

.brand-block,
.aside-brand,
.card-header {
  display: flex;
  align-items: center;
}

.brand-block {
  gap: 14px;
  margin-bottom: 28px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #fff;
  background: #2563eb;
  font-weight: 700;
  font-size: 22px;
}

.brand-mark.small {
  width: 34px;
  height: 34px;
  font-size: 16px;
}

.brand-block h1 {
  margin: 0;
  font-size: 26px;
  letter-spacing: 0;
}

.brand-block p {
  margin: 6px 0 0;
  color: #64748b;
}

.full-button {
  width: 100%;
  margin-top: 8px;
}

.admin-layout {
  min-height: 100vh;
}

.admin-aside {
  background: #172033;
  transition: width 0.18s ease;
  overflow-x: hidden;
}

.aside-brand {
  height: 64px;
  gap: 10px;
  padding: 0 18px;
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
}

.admin-aside.is-collapsed .aside-brand {
  justify-content: center;
  padding: 0;
}

.admin-aside.is-collapsed .brand-title {
  display: none;
}

.admin-aside .el-menu {
  border-right: 0;
}

.admin-aside .el-menu--collapse {
  width: 64px;
}

.admin-aside .el-menu-item,
.admin-aside .el-submenu__title {
  overflow: hidden;
}

.admin-header {
  height: 64px !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
}

.admin-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.sidebar-toggle {
  flex: 0 0 auto;
}

.admin-header h2 {
  margin: 0;
  font-size: 18px;
}

.admin-header span {
  color: #64748b;
  font-size: 13px;
}

.admin-main {
  padding: 20px;
}

.metric-row {
  margin-bottom: 16px;
}

.metric-card {
  margin-bottom: 16px;
}

.metric-card span {
  display: block;
  color: #64748b;
  font-size: 13px;
  margin-bottom: 8px;
}

.metric-card strong {
  font-size: 22px;
  color: #111827;
}

.db-info-card .el-card__body {
  min-height: 88px;
}

.db-info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.db-info-grid small {
  display: block;
  margin-bottom: 4px;
  color: #64748b;
  font-size: 12px;
}

.db-info-grid strong {
  display: block;
  overflow: hidden;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.content-card {
  margin-bottom: 16px;
  border-radius: 8px;
}

.card-header {
  justify-content: space-between;
  gap: 12px;
}

.status-alert {
  margin-bottom: 16px;
}

.query-form {
  padding: 12px 12px 0;
  margin-bottom: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f8fafc;
}

.card-filter-panel {
  padding: 12px 12px 10px;
  margin-bottom: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f8fafc;
}

.card-filter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0 8px;
}

.card-filter-form .el-form-item {
  margin-right: 0;
  margin-bottom: 10px;
}

.card-keyword-filter {
  width: 220px;
}

.card-status-filter {
  width: 130px;
}

.card-filter-shortcuts {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 4px;
}

.pagination-bar {
  display: flex;
  justify-content: flex-end;
  padding-top: 16px;
}

.danger-link {
  color: #dc2626;
}

.danger-link:hover,
.danger-link:focus {
  color: #b91c1c;
}

.batch-result {
  margin-top: 16px;
}

.result-table {
  margin-top: 12px;
}

.exchange-keyword-filter {
  width: 260px;
}

.exchange-record-keyword-filter {
  width: 300px;
}

.exchange-select-filter {
  width: 140px;
}

.exchange-per-input {
  width: 130px;
  margin-left: 8px;
}

.exchange-metric strong {
  font-variant-numeric: tabular-nums;
}

.mono-text {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  color: #475569;
}

.exchange-user-cell {
  display: flex;
  flex-direction: column;
  gap: 3px;
  line-height: 1.35;
}

.exchange-user-cell strong {
  color: #1f2937;
  font-weight: 600;
}

.exchange-user-cell span {
  color: #64748b;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.exchange-config-form {
  max-width: 620px;
}

.exchange-config-updated {
  padding-top: 14px;
  color: #64748b;
  font-size: 13px;
  text-align: right;
}

.exchange-logic-map,
.wechat-logic-map {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.logic-step {
  min-height: 84px;
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f8fafc;
}

.logic-step strong {
  display: block;
  margin-bottom: 8px;
  color: #111827;
  font-size: 14px;
}

.logic-step span {
  display: block;
  color: #64748b;
  font-size: 12px;
  line-height: 1.6;
}

.exchange-rule-cell {
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: #475569;
  font-size: 13px;
  line-height: 1.45;
}

.exchange-rule-cell strong {
  color: #111827;
  font-weight: 700;
}

.task-layout {
  display: grid;
  grid-template-columns: minmax(420px, 0.9fr) minmax(0, 1.2fr);
  gap: 18px;
  margin-top: 16px;
  align-items: start;
}

.task-list-panel,
.task-editor-panel {
  min-height: 520px;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
}

.task-keyword-filter {
  width: 220px;
}

.task-scene-filter {
  width: 150px;
}

.task-name-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
  line-height: 1.35;
}

.task-name-cell strong {
  color: #111827;
  font-weight: 700;
}

.task-name-cell span {
  color: #64748b;
  font-size: 12px;
}

.task-form .el-select,
.task-form .el-input {
  max-width: 560px;
}

.task-flow {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}

.task-runner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  padding: 14px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #eff6ff;
}

.task-runner strong {
  display: block;
  margin-bottom: 4px;
  color: #1e3a8a;
}

.task-runner span {
  color: #64748b;
  font-size: 12px;
}

.task-run-logs {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  color: #475569;
  font-size: 13px;
}

.task-step-card {
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f8fafc;
}

.task-step-card.is-running {
  border-color: #409eff;
  background: #eff6ff;
}

.task-step-card.is-done {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.task-step-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.task-step-head strong {
  flex: 1;
  color: #111827;
}

.task-step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #409eff;
  color: #fff;
  font-weight: 700;
}

.task-step-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.task-reply-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.task-remark-item {
  margin-top: 16px;
}

.form-tip {
  margin-left: 10px;
  color: #64748b;
  font-size: 13px;
}

.block-tip {
  margin-left: 0;
  margin-top: 6px;
}

.yahoo-mail-form {
  max-width: 620px;
}

.yahoo-mail-result {
  margin-top: 18px;
}

.mail-preview {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  line-height: 1.6;
  color: #334155;
}

.mail-reader {
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
}

.mail-reader-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  border-bottom: 1px solid #e5e7eb;
  background: #f8fafc;
}

.mail-reader-subject {
  margin-bottom: 8px;
  color: #111827;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
}

.mail-reader-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: #64748b;
  font-size: 13px;
}

.mail-reader-info {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border-bottom: 1px solid #e5e7eb;
  background: #e5e7eb;
}

.mail-reader-info div {
  min-width: 0;
  padding: 14px 18px;
  background: #fff;
}

.mail-reader-info span {
  display: block;
  margin-bottom: 6px;
  color: #64748b;
  font-size: 12px;
}

.mail-reader-info strong {
  display: block;
  overflow: hidden;
  color: #1f2937;
  font-size: 14px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mail-code-panel {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 22px 0;
  padding: 14px 16px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
}

.mail-code-panel span {
  color: #1d4ed8;
  font-size: 13px;
}

.mail-code-panel strong {
  color: #1e3a8a;
  font-size: 28px;
  letter-spacing: 2px;
}

.mail-body-card {
  margin: 18px 22px 22px;
  padding: 20px 22px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
}

.mail-html-frame-wrap {
  margin: 18px 22px 22px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
}

.mail-html-frame {
  display: block;
  width: 100%;
  min-height: 520px;
  border: 0;
  background: #ffffff;
}

.mail-body-line {
  color: #334155;
  font-size: 15px;
  line-height: 1.85;
  word-break: break-word;
}

.mail-body-line + .mail-body-line {
  margin-top: 10px;
}

.mail-query-keyword {
  width: 280px;
}

.mail-query-raw {
  max-height: 520px;
  margin: 16px 0 0;
  padding: 14px;
  overflow: auto;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f8fafc;
  color: #334155;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

.mail-latest-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mail-latest-code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #eff6ff;
}

.mail-latest-code span {
  color: #475569;
  font-size: 14px;
}

.mail-latest-code strong {
  color: #16a34a;
  font-size: 30px;
  letter-spacing: 0;
}

.mail-latest-actions {
  text-align: right;
}

.sms-code {
  display: inline-block;
  margin-right: 12px;
  color: #1d4ed8;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 2px;
}

.sms-result {
  max-height: 420px;
  margin: 0;
  padding: 14px;
  overflow: auto;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f8fafc;
  color: #334155;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

.email-search-input {
  width: 360px;
}

.email-link-input {
  width: 520px;
}

.status-filter {
  width: 120px;
}

.created-range-filter {
  width: 380px;
}

.email-suggestion-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.email-suggestion-item.is-disabled {
  color: #9ca3af;
  cursor: not-allowed;
}

.email-suggestion-remark {
  min-width: 0;
  flex: 1;
  color: #64748b;
  font-size: 12px;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.email-suggestion-item.is-disabled span {
  text-decoration: line-through;
}

.email-detail-title {
  margin: 0 0 10px;
  font-size: 18px;
}

.email-detail-meta {
  margin-bottom: 14px;
  color: #64748b;
  line-height: 1.6;
}

.email-detail-code {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding: 8px 12px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 600;
}

.email-detail-content {
  max-height: 520px;
  padding: 14px;
  overflow: auto;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f8fafc;
  color: #111827;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.7;
  white-space: pre-wrap;
}

.masked-text {
  display: inline-block;
  max-width: 120px;
  margin-right: 8px;
  overflow: hidden;
  color: #374151;
  text-overflow: ellipsis;
  vertical-align: middle;
  white-space: nowrap;
}

.token-preview {
  max-width: 190px;
}

.remark-preview {
  max-width: 140px;
}

.empty-text {
  color: #9ca3af;
}

.hoverable-text {
  cursor: pointer;
  border-bottom: 1px dashed #94a3b8;
}

.popover-content {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.popover-text {
  flex: 1;
  max-height: 180px;
  overflow: auto;
  color: #111827;
  line-height: 1.6;
  overflow-wrap: anywhere;
  word-break: break-all;
}

.remote-sync-layout {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.remote-sync-header {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.sync-table-panel,
.remote-sync-middle,
.remote-sync-footer {
  min-height: 180px;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f8fafc;
}

.remote-sync-middle {
  min-height: 160px;
}

.remote-sync-footer {
  min-height: 180px;
}

.sync-panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  color: #111827;
  font-size: 15px;
  font-weight: 700;
}

.sync-placeholder {
  display: flex;
  min-height: 100px;
  align-items: center;
  justify-content: center;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  color: #94a3b8;
  background: #fff;
  font-size: 14px;
}

.sync-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.sync-sort-select {
  width: 210px;
}

.sync-result-group {
  margin-top: 14px;
}

.sync-result-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #64748b;
  font-size: 13px;
}

.sync-result-empty {
  margin-top: 8px;
  padding: 12px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  color: #94a3b8;
  background: #fff;
}

.token-full {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
}

.wechat-openid-filter {
  width: 320px;
}

.wechat-reply-keyword {
  width: 300px;
}

.wechat-scene-filter {
  width: 130px;
}

.wechat-chat-dialog .el-dialog__body {
  padding-top: 10px;
}

.wechat-chat-shell {
  min-height: 360px;
  max-height: 64vh;
  padding: 16px;
  overflow: auto;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f8fafc;
}

.empty-chat,
.wechat-chat-event {
  padding: 14px;
  color: #94a3b8;
  text-align: center;
}

.wechat-chat-event span {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e5e7eb;
  color: #64748b;
  font-size: 12px;
}

.wechat-chat-event small {
  display: block;
  max-width: 620px;
  margin: 6px auto 0;
  color: #94a3b8;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.wechat-event-reply {
  max-width: min(620px, 78%);
  margin: 12px 0 0 auto;
}

.wechat-event-reply .wechat-chat-row {
  margin-bottom: 0;
  text-align: left;
}

.wechat-chat-row {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.wechat-chat-row.is-reply {
  flex-direction: row-reverse;
}

.wechat-chat-avatar {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #2563eb;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.wechat-chat-row.is-reply .wechat-chat-avatar {
  background: #16a34a;
}

.wechat-chat-main {
  max-width: min(620px, 78%);
}

.wechat-chat-row.is-reply .wechat-chat-main {
  text-align: right;
}

.wechat-chat-meta {
  margin-bottom: 5px;
  color: #64748b;
  font-size: 12px;
}

.wechat-chat-bubble {
  display: inline-block;
  max-width: 100%;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  color: #111827;
  line-height: 1.7;
  text-align: left;
  overflow-wrap: anywhere;
}

.wechat-chat-row.is-reply .wechat-chat-bubble {
  background: #ecfdf5;
  border-color: #bbf7d0;
}

.wechat-chat-image,
.wechat-chat-video {
  max-width: 280px;
  max-height: 220px;
  border-radius: 6px;
}

.wechat-chat-audio {
  width: 260px;
}

.wechat-chat-structured {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 240px;
}

.wechat-chat-structured strong {
  color: #111827;
}

.wechat-chat-structured span,
.wechat-chat-structured a {
  color: #475569;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.wechat-chat-actions {
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px solid #e5e7eb;
}

.wechat-reply-preview {
  margin: 0;
  white-space: pre-wrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
}

.wechat-raw-preview {
  max-height: 560px;
  margin: 0;
  padding: 14px;
  overflow: auto;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #0f172a;
  color: #e2e8f0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}

.hero-service-card {
  min-height: 150px;
  margin-bottom: 12px;
  padding: 14px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.hero-service-card:hover {
  border-color: #409eff;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.12);
  transform: translateY(-1px);
}

.hero-service-card-title {
  min-height: 42px;
  color: #111827;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

.hero-service-card-code {
  margin-top: 6px;
  color: #64748b;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
}

.hero-service-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 12px 0;
  color: #64748b;
}

.hero-service-card-meta strong {
  color: #2563eb;
  font-size: 16px;
}

.hero-activation-page {
  padding: 4px 8px 12px;
}

.hero-config-page {
  max-width: 860px;
}

.hero-config-form {
  margin-top: 18px;
}

.hero-placeholder-page {
  padding: 4px 0 12px;
}

.hero-placeholder-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0;
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.hero-product-status-filter {
  width: 210px;
}

.hero-product-table {
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
}

.hero-product-table .el-table__header th {
  background: #fafafa;
  color: #64748b;
  font-weight: 700;
}

.hero-product-skus {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 10px 16px;
  background: #f8fafc;
}

.hero-product-id {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #475569;
  font-weight: 700;
}

.hero-product-info {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.hero-product-image {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 8px;
  object-fit: cover;
  background: #f1f5f9;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.2);
}

.hero-product-image.placeholder,
.hero-product-detail-image.placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #111827, #334155);
  color: #fff;
  font-weight: 800;
}

.hero-product-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-product-main strong {
  color: #111827;
  font-size: 14px;
}

.hero-product-main span {
  color: #64748b;
  font-size: 12px;
}

.hero-product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.hero-product-price {
  color: #111827;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 15px;
  font-weight: 800;
}

.hero-product-currency {
  margin-left: 6px;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
}

.hero-sort-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 8px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  color: #64748b;
  background: #fff;
}

.hero-product-dialog .el-dialog__body {
  padding-top: 12px;
}

.hero-product-detail {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero-product-detail-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f8fafc;
}

.hero-product-detail-image {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  border-radius: 10px;
  object-fit: cover;
  background: #f1f5f9;
}

.hero-product-detail-title {
  min-width: 0;
  flex: 1;
}

.hero-product-detail-title h3 {
  margin: 0 0 6px;
  color: #0f172a;
  font-size: 20px;
}

.hero-product-detail-title p {
  margin: 0 0 8px;
  color: #64748b;
}

.hero-product-detail-price {
  min-width: 120px;
  text-align: right;
}

.hero-product-detail-price strong {
  display: block;
  color: #111827;
  font-size: 24px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.hero-product-detail-price span {
  color: #64748b;
  font-weight: 700;
}

.hero-card-sku {
  display: flex;
  flex-direction: column;
  gap: 4px;
  line-height: 1.3;
}

.hero-card-sku strong {
  color: #1f2937;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
}

.hero-card-sku span {
  color: #64748b;
  font-size: 12px;
}

.hero-card-secret-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 150px auto auto auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f8fafc;
}

.hero-bill-query {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 16px 0 6px;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f8fafc;
}

.hero-activation-toolbar {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 0 18px;
  border-bottom: 1px solid #e5e7eb;
}

.hero-activation-summary {
  display: grid;
  gap: 10px;
  min-width: 120px;
  color: #475569;
  font-size: 14px;
  line-height: 1.4;
}

.hero-activation-summary strong {
  margin-left: 6px;
  color: #111827;
  font-size: 18px;
}

.hero-export-button {
  border: 0;
  border-radius: 999px;
  background: #ede9fe;
  color: #6d5dfc;
  font-weight: 700;
}

.hero-search-input {
  width: 360px;
  margin-left: auto;
}

.hero-search-input .el-input__inner {
  height: 48px;
  border-radius: 8px;
  background: #eef2ff;
  font-size: 16px;
  font-weight: 600;
}

.hero-activation-order {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
}

.hero-filter-label {
  color: #475569;
  font-weight: 600;
  white-space: nowrap;
}

.hero-country-select {
  width: 260px;
}

.hero-service-select {
  width: 180px;
}

.hero-service-option,
.hero-service-cell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1;
  vertical-align: middle;
}

.hero-service-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 6px;
  object-fit: contain;
  background: #f8fafc;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.18);
}

.hero-price-panel {
  margin: 0 0 18px;
  padding: 14px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #f8fbff;
}

.hero-price-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.hero-price-panel-head strong {
  display: block;
  color: #0f172a;
  font-size: 15px;
}

.hero-price-panel-head span {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
}

.hero-price-table {
  border-radius: 8px;
  overflow: hidden;
}

.hero-price-table .el-table__header th {
  background: #eff6ff;
  color: #1e3a8a;
  font-weight: 800;
}

.hero-service-code {
  margin-left: 8px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #eef2ff;
  color: #64748b;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
}

.hero-price-value {
  color: #2563eb;
  font-size: 18px;
  font-weight: 800;
}

.hero-price-cny {
  color: #16a34a;
  font-size: 18px;
  font-weight: 800;
}

.hero-activation-table {
  overflow: hidden;
  border-radius: 8px;
}

.hero-activation-table .el-table__header th {
  background: #e9eefc;
  color: #111827;
  font-weight: 800;
}

.hero-code-pill {
  border: 0;
  border-radius: 4px;
  background: #1f1f1f;
  color: #ffffff;
  font-weight: 800;
}

.hero-code-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.hero-code-list .hero-code-pill {
  margin-left: 0;
}

.hero-code-pill:hover,
.hero-code-pill:focus {
  background: #111827;
  color: #ffffff;
}

.hero-renewal-desc {
  margin-top: 14px;
}

.hero-renewal-raw {
  max-height: 180px;
  margin-top: 14px;
}

.hero-record-dialog .el-dialog__body {
  padding-top: 12px;
}

.hero-record-detail {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero-record-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #eff6ff;
}

.hero-record-label {
  margin-bottom: 8px;
  color: #64748b;
  font-size: 13px;
}

.hero-record-codes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-empty-text {
  color: #94a3b8;
}

.hero-record-desc {
  margin-top: 2px;
}

.hero-record-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hero-record-section-title {
  color: #0f172a;
  font-size: 15px;
  font-weight: 700;
}

.hero-message-preview {
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f8fafc;
  color: #334155;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}

.hero-record-source {
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}

.hero-record-source .sms-result {
  max-height: 280px;
}

.hero-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid #f59e0b;
  border-radius: 8px;
  color: #92400e;
  font-weight: 700;
}

.hero-status-pill i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
}

.hero-status-pill.is-success {
  border-color: #22c55e;
  color: #16a34a;
}

.hero-status-pill.is-cancelled {
  border-color: #ef4444;
  color: #ef4444;
}

.wechat-user-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.wechat-user-name {
  max-width: 180px;
  overflow: hidden;
  color: #111827;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wechat-user-openid {
  max-width: 220px;
  overflow: hidden;
  color: #64748b;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.simple-menu-shell {
  display: grid;
  grid-template-columns: 328px 280px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin-top: 18px;
}

.simple-phone {
  overflow: hidden;
  border: 8px solid #111827;
  border-radius: 28px;
  background: #111827;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.2);
}

.simple-phone-title {
  height: 48px;
  padding-top: 18px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.simple-phone-screen {
  position: relative;
  height: 420px;
  margin: 0;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
  background: #f6f8fb;
}

.simple-phone-screen::before {
  position: absolute;
  top: 18px;
  left: 50%;
  width: 76px;
  height: 22px;
  border-radius: 999px;
  background: #e5e7eb;
  content: "";
  transform: translateX(-50%);
}

.simple-phone-empty {
  padding-top: 180px;
  color: #98a2b3;
  text-align: center;
}

.simple-submenu-list {
  position: absolute;
  right: 12px;
  bottom: 14px;
  left: 12px;
  display: flex;
  flex-direction: column-reverse;
  gap: 8px;
}

.simple-submenu-button {
  min-height: 42px;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  background: #fff;
  color: #344054;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.simple-submenu-button.active {
  border-color: #409eff;
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 700;
}

.simple-phone-nav {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  height: 58px;
  margin: 0 0 4px;
  border-top: 1px solid #d0d5dd;
  background: #fff;
}

.simple-menu-button {
  min-width: 0;
  border: 0;
  border-right: 1px solid #eaecf0;
  background: #fff;
  color: #344054;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease;
}

.simple-menu-button:last-child {
  border-right: 0;
}

.simple-menu-button span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.simple-menu-button.active {
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 700;
}

.simple-menu-button.disabled {
  color: #98a2b3;
}

.simple-menu-button.add {
  color: #409eff;
}

.simple-menu-editor {
  min-height: 532px;
  padding: 20px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.simple-level-panel {
  min-height: 532px;
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.simple-level-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #edf2f7;
}

.simple-level-head.secondary {
  margin-top: 22px;
}

.simple-level-head strong {
  color: #111827;
  font-size: 15px;
}

.simple-level-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.simple-level-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  background: #f8fafc;
  color: #344054;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.simple-level-item.child {
  padding-left: 18px;
}

.simple-level-item.active {
  border-color: #409eff;
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(64, 158, 255, 0.14);
}

.simple-level-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.simple-level-item em {
  flex: 0 0 auto;
  padding: 2px 7px;
  border-radius: 999px;
  background: #eef2f7;
  color: #64748b;
  font-style: normal;
  font-size: 12px;
}

.simple-editor-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid #edf2f7;
}

.simple-editor-head h3 {
  margin: 0 0 4px;
  color: #111827;
  font-size: 20px;
}

.simple-editor-head p {
  margin: 0;
  color: #667085;
  font-size: 13px;
}

.simple-child-panel {
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f8fafc;
}

.simple-child-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.simple-child-head strong {
  color: #111827;
  font-size: 14px;
}

.simple-child-head span {
  color: #64748b;
  font-size: 12px;
}

.simple-child-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.simple-child-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 180px;
  padding: 7px 10px;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  background: #fff;
  color: #344054;
  cursor: pointer;
}

.simple-child-item.active {
  border-color: #409eff;
  color: #1d4ed8;
  font-weight: 700;
}

.simple-child-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.simple-child-item em {
  flex: 0 0 auto;
  color: #98a2b3;
  font-style: normal;
  font-size: 12px;
}

.simple-child-empty {
  margin-bottom: 12px;
  color: #98a2b3;
  font-size: 13px;
}

.simple-menu-form .el-select,
.simple-menu-form .el-input {
  max-width: 560px;
}

.simple-menu-form .el-textarea {
  max-width: 640px;
}

.simple-menu-form .el-radio-button__inner {
  min-width: 104px;
}

.scene-setting-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 18px;
}

.scene-list-panel,
.scene-editor-panel {
  min-height: 520px;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
}

.scene-list-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.scene-list-item {
  position: relative;
  width: 100%;
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f8fafc;
  color: #1f2937;
  cursor: pointer;
  text-align: left;
}

.scene-list-item.active {
  border-color: #409eff;
  background: #ecf5ff;
}

.scene-list-item strong,
.scene-list-item span,
.scene-list-item em {
  display: block;
}

.scene-list-item span {
  margin-top: 6px;
  color: #64748b;
  font-size: 12px;
}

.scene-list-item em {
  position: absolute;
  top: 14px;
  right: 14px;
  color: #409eff;
  font-size: 12px;
  font-style: normal;
}

.scene-setting-form .el-select,
.scene-setting-form .el-input {
  max-width: 560px;
}

.scene-setting-form .el-textarea {
  max-width: 680px;
}

.scene-param-help {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 680px;
  margin-top: 10px;
}

.scene-param-help span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  background: #eff6ff;
  color: #475569;
  cursor: pointer;
  font-size: 12px;
}

.scene-param-help strong {
  color: #2563eb;
  font-weight: 600;
}

.menu-template-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.reply-param-example {
  margin-top: 16px;
  border-radius: 8px;
}

.reply-param-example pre {
  margin: 0;
  white-space: pre-wrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 1.7;
}

.wechat-menu-editor {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  margin-top: 16px;
}

.wechat-phone {
  overflow: hidden;
  border: 1px solid #d8dee9;
  border-radius: 22px;
  background: #111827;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
}

.wechat-phone-bar {
  height: 54px;
  padding-top: 22px;
  color: #fff;
  font-size: 13px;
  text-align: center;
}

.wechat-phone-screen {
  position: relative;
  height: 460px;
  margin: 0 10px;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
  background: #f4f6f8;
}

.wechat-phone-empty {
  padding-top: 190px;
  color: #98a2b3;
  text-align: center;
}

.wechat-phone-submenus {
  position: absolute;
  right: 8px;
  bottom: 10px;
  left: 8px;
  display: flex;
  flex-direction: column-reverse;
  gap: 8px;
}

.wechat-phone-submenu {
  min-height: 42px;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  background: #fff;
  color: #344054;
  cursor: pointer;
}

.wechat-phone-submenu.active {
  border-color: #409eff;
  color: #1d4ed8;
  font-weight: 600;
}

.wechat-phone-nav {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  height: 58px;
  margin: 0 10px 12px;
  border-top: 1px solid #d0d5dd;
  background: #fff;
}

.wechat-phone-menu {
  min-width: 0;
  border: 0;
  border-right: 1px solid #eaecf0;
  background: #fff;
  color: #344054;
  cursor: pointer;
}

.wechat-phone-menu:last-child {
  border-right: 0;
}

.wechat-phone-menu span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wechat-phone-menu.active {
  color: #1d4ed8;
  font-weight: 600;
}

.wechat-phone-menu.disabled {
  color: #98a2b3;
}

.wechat-phone-menu.add {
  color: #409eff;
}

.wechat-menu-panel {
  min-height: 560px;
  padding: 18px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
}

.wechat-menu-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.wechat-menu-panel-head h3 {
  margin: 0 0 4px;
  color: #111827;
  font-size: 18px;
}

.wechat-menu-panel-head p {
  margin: 0;
  color: #667085;
  font-size: 13px;
}

.wechat-menu-form .el-select,
.wechat-menu-form .el-input {
  max-width: 520px;
}

.wechat-current-flow {
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #eff6ff;
}

.current-flow-title {
  margin-bottom: 10px;
  color: #1e3a8a;
  font-size: 14px;
  font-weight: 700;
}

.current-flow-body {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.current-flow-body span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff;
  color: #1f2937;
  font-size: 12px;
}

.current-flow-body b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #3b82f6;
  color: #fff;
  font-size: 11px;
}

.form-section-title {
  margin: 20px 0 14px;
  padding-left: 10px;
  border-left: 3px solid #409eff;
  color: #111827;
  font-size: 14px;
  font-weight: 700;
}

.form-section-title:first-child {
  margin-top: 0;
}

.wechat-token-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.wechat-token-list .el-tag {
  height: auto;
  padding: 3px 8px;
  line-height: 1.5;
  cursor: pointer;
}

.wechat-menu-table-wrap {
  margin-top: 22px;
}

.subsection-title {
  margin-bottom: 12px;
  color: #111827;
  font-size: 15px;
  font-weight: 700;
}

.danger-text {
  color: #dc2626;
}

.el-table .submit-task-running-row > td {
  background: #fff7ed !important;
}

.el-table .submit-task-success-row > td {
  background: #f0fdf4 !important;
}

.el-table .submit-task-failed-row > td {
  background: #fef2f2 !important;
}

.ml-6 {
  margin-left: 6px;
}

@media (max-width: 768px) {
  .wechat-menu-editor {
    grid-template-columns: 1fr;
  }

  .exchange-logic-map,
  .wechat-logic-map {
    grid-template-columns: 1fr;
  }

  .task-layout {
    grid-template-columns: 1fr;
  }

  .task-step-grid {
    grid-template-columns: 1fr;
  }

  .task-runner {
    align-items: flex-start;
    flex-direction: column;
  }

  .simple-menu-shell {
    grid-template-columns: 1fr;
  }

  .simple-phone {
    max-width: 320px;
    margin: 0 auto;
  }

  .wechat-phone {
    max-width: 340px;
    margin: 0 auto;
  }

  .login-shell {
    justify-content: center;
    padding: 24px;
  }

  .login-panel {
    padding: 24px;
  }

  .admin-aside {
    display: none;
  }

  .admin-header {
    padding: 0 14px;
  }

  .card-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .pagination-bar {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .db-info-grid {
    grid-template-columns: 1fr;
  }

  .remote-sync-header {
    grid-template-columns: 1fr;
  }
}
