html {
  scrollbar-gutter: stable;
}
html::-webkit-scrollbar,
.user-app *::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
html::-webkit-scrollbar-track,
.user-app *::-webkit-scrollbar-track {
  background: transparent;
}
html::-webkit-scrollbar-thumb,
.user-app *::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.58);
  background-clip: padding-box;
}
html::-webkit-scrollbar-thumb:hover,
.user-app *::-webkit-scrollbar-thumb:hover {
  background: rgba(100, 116, 139, 0.78);
  background-clip: padding-box;
}
.user-app { min-height: 100vh; }
.user-app.route-hot .u-contact-float,
.user-app.route-batch .u-contact-float {
  display: none;
}

.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);
}

/* 热点选题库 */
.hot-page-head {
  position: sticky;
  top: 57px;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  align-items: flex-start;
  gap: 16px;
  margin: -12px 0 2px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(228, 231, 236, 0.86);
  background: rgba(246, 247, 249, 0.97);
  backdrop-filter: blur(12px);
}
.hot-page-head > .btn {
  width: 112px;
  height: 38px;
  min-width: 112px;
  align-self: flex-start;
  justify-content: center;
  padding: 0 12px;
  white-space: nowrap;
}
.hot-page-head > .btn .spinner {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}
.hot-page-head > div {
  min-width: 0;
}
.hot-page-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  color: #c2410c;
  font-size: 12px;
  font-weight: 800;
}
.hot-page-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 21px;
  line-height: 1.3;
}
.hot-page-head p {
  max-width: 720px;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.hot-source-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}
.hot-source-item {
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  min-width: 0;
  min-height: 58px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.hot-source-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #98a2b3;
}
.hot-source-success .hot-source-dot { background: #16a34a; }
.hot-source-failed .hot-source-dot { background: #dc2626; }
.hot-source-running .hot-source-dot { background: #d97706; }
.hot-source-item b {
  display: block;
  color: var(--ink);
  font-size: 12.5px;
  line-height: 1.35;
}
.hot-source-item small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10.5px;
}
.hot-source-item em {
  color: #98a2b3;
  font-style: normal;
}
.hot-toolbar {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(120px, 150px) minmax(120px, 150px) auto minmax(220px, 290px);
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}
.hot-source-tabs {
  display: flex;
  gap: 4px;
  min-width: 0;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f2f4f7;
}
.hot-source-tabs button {
  flex: 1;
  min-width: 0;
  height: 32px;
  padding: 0 7px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #667085;
  font-size: 11.5px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hot-source-tabs button.active {
  color: #9a3412;
  background: #fff;
  box-shadow: 0 2px 7px rgba(16, 24, 40, 0.1);
}
.hot-bookmark-filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 38px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #667085;
  font-size: 11.5px;
  font-weight: 800;
  white-space: nowrap;
}
.hot-bookmark-filter.active {
  border-color: #f59e0b;
  color: #9a3412;
  background: #fff7ed;
}
.hot-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px;
  gap: 6px;
}
.hot-search .input {
  min-width: 0;
}
.hot-search .btn {
  width: 40px;
  padding: 0;
}
.hot-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 11.5px;
}
.hot-list-head b {
  color: #c2410c;
  font-size: 14px;
}
.hot-topic-list {
  display: grid;
  gap: 8px;
}
.hot-topic-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(16, 24, 40, 0.035);
}
.hot-topic-rank {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #fff7ed;
  color: #c2410c;
  font-size: 12px;
  font-weight: 900;
}
.hot-topic-main {
  min-width: 0;
}
.hot-topic-title-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}
.hot-topic-title-row h3 {
  min-width: 0;
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.hot-track {
  flex: none;
  max-width: 112px;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hot-topic-summary {
  display: -webkit-box;
  margin: 6px 0 0;
  overflow: hidden;
  color: #475467;
  font-size: 12px;
  line-height: 1.65;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.hot-topic-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 12px;
  margin-top: 7px;
  color: #98a2b3;
  font-size: 10.5px;
}
.hot-topic-sources {
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hot-topic-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
}
.hot-topic-actions .icon-btn.active {
  color: #d97706;
  background: #fff7ed;
}
.hot-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  padding: 38px 20px;
  border: 1px dashed #d6e1ef;
  border-radius: 8px;
  background: #f8fafc;
  color: #667085;
  text-align: center;
}
.hot-empty > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 10px;
  border-radius: 8px;
  background: #fff;
  color: #ea580c;
}
.hot-empty b {
  color: var(--ink);
  font-size: 14px;
}
.hot-empty p {
  margin: 7px 0 0;
  font-size: 12px;
}

@media (max-width: 980px) {
  .hot-toolbar {
    grid-template-columns: minmax(0, 1fr) minmax(120px, 1fr) minmax(120px, 1fr);
  }
  .hot-search {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .hot-page-head {
    grid-template-columns: minmax(0, 1fr) 104px;
    gap: 10px;
  }
  .hot-page-head > .btn {
    width: 104px;
    min-width: 104px;
    padding: 0 8px;
  }
  .hot-page-head h2 {
    font-size: 18px;
  }
  .hot-source-strip {
    grid-template-columns: minmax(0, 1fr);
  }
  .hot-toolbar {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .hot-source-tabs,
  .hot-search {
    grid-column: 1 / -1;
  }
  .hot-source-tabs {
    overflow-x: auto;
  }
  .hot-source-tabs button {
    flex: 0 0 auto;
    min-width: 78px;
  }
  .hot-bookmark-filter {
    width: 100%;
  }
  .hot-topic-item {
    grid-template-columns: 34px minmax(0, 1fr);
  }
  .hot-topic-rank {
    width: 34px;
    height: 34px;
  }
  .hot-topic-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
    padding-left: 45px;
  }
  .hot-topic-actions .btn {
    flex: 1;
  }
  .hot-topic-sources {
    max-width: 180px;
  }
}

@media (max-width: 430px) {
  .u-bottom-nav a {
    padding-left: 1px;
    padding-right: 1px;
    font-size: 10px;
    gap: 2px;
  }
  .u-bottom-nav a i {
    width: 19px;
    height: 19px;
  }
}

/* 批量文章生成 */
.batch-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.batch-page-head > div {
  min-width: 0;
}
.batch-page-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 800;
}
.batch-page-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 21px;
  line-height: 1.3;
}
.batch-page-head p {
  max-width: 720px;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.batch-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.18fr);
  gap: 16px;
  align-items: start;
}
.batch-form-card {
  min-width: 0;
  padding: 16px;
  border-radius: 8px;
}
.batch-form-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.batch-form-head > div {
  min-width: 0;
}
.batch-form-head b {
  display: block;
  color: var(--ink);
  font-size: 15px;
}
.batch-form-head span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11.5px;
}
.batch-count-stepper {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  gap: 8px;
  align-items: center;
}
.batch-count-step {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink-2);
  cursor: pointer;
}
.batch-count-step:hover:not(:disabled) {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-soft);
}
.batch-count-step:disabled {
  opacity: 0.42;
  cursor: default;
}
.batch-count-input {
  min-width: 0;
  height: 46px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.batch-count-input .input {
  width: 100%;
  height: 100%;
  padding: 0 4px 0 28px;
  border: 0;
  border-radius: 0;
  text-align: center;
  background: transparent;
  box-shadow: none;
  font-size: 20px;
  font-weight: 900;
}
.batch-count-input .input:focus {
  box-shadow: none;
}
.batch-count-input > span {
  padding-right: 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.batch-count-input .input::-webkit-inner-spin-button,
.batch-count-input .input::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
}
.batch-count-quick {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-top: 8px;
}
.batch-count-quick button {
  min-width: 0;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.batch-count-quick button:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
  background: var(--primary-soft);
}
.batch-count-quick button.active {
  border-color: var(--primary);
  color: var(--primary-dark);
  background: var(--primary-soft);
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.12);
}
.batch-results-panel {
  min-width: 0;
}
.batch-progress {
  margin-bottom: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.batch-progress-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.batch-progress-head > div {
  min-width: 0;
}
.batch-progress-kicker {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}
.batch-progress h3 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.batch-progress-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf1f6;
}
.batch-progress-track i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
  transition: width 0.25s ease;
}
.batch-progress-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 11.5px;
}
.batch-progress-meta b {
  color: var(--ink);
  font-size: 13px;
}
.batch-result-list {
  display: grid;
  gap: 10px;
}
.batch-result-item {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.batch-result-running {
  border-color: #f2c36b;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.08);
}
.batch-result-done {
  border-color: #bfe4dc;
}
.batch-result-failed {
  border-color: #f2b8b5;
}
.batch-result-head {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
}
.batch-result-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #f1f5f9;
  color: #475467;
  font-size: 11px;
  font-weight: 900;
}
.batch-result-title {
  min-width: 0;
}
.batch-result-title b {
  display: block;
  color: var(--ink);
  font-size: 13.5px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.batch-result-title small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  overflow-wrap: anywhere;
}
.batch-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f2f4f7;
  color: #667085;
  font-size: 10.5px;
  font-weight: 800;
  white-space: nowrap;
}
.batch-status .spinner {
  width: 11px;
  height: 11px;
  border-width: 2px;
}
.batch-status-running {
  background: #fff7e6;
  color: #b45309;
}
.batch-status-done,
.batch-status-completed {
  background: var(--primary-soft);
  color: var(--primary-dark);
}
.batch-status-completed_with_errors {
  background: #fff7e6;
  color: #b45309;
}
.batch-status-failed {
  background: #fef3f2;
  color: #b42318;
}
.batch-result-preview {
  margin: 10px 0 0 43px;
  color: #475467;
  font-size: 12px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.batch-result-error {
  margin: 10px 0 0 43px;
  color: #b42318;
  font-size: 12px;
  line-height: 1.6;
}
.batch-result-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 10px 0 0 43px;
}
.batch-result-foot > span {
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
}
.batch-result-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
}
.batch-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 360px;
  padding: 42px 22px;
  border: 1px dashed #cfd9e6;
  border-radius: 8px;
  background: #f8fafc;
  color: var(--muted);
  text-align: center;
}
.batch-empty > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 12px;
  border-radius: 8px;
  background: #fff;
  color: var(--primary);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.07);
}
.batch-empty b {
  color: var(--ink);
  font-size: 15px;
}
.batch-empty p {
  max-width: 430px;
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.7;
}
.batch-preview-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.batch-preview-meta span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #f2f4f7;
  color: #475467;
  font-size: 11px;
  font-weight: 700;
}
.batch-preview-content {
  max-height: 58vh;
  overflow: auto;
  color: #344054;
  font-size: 13px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}
.batch-preview-content p {
  margin: 0 0 12px;
}
.batch-preview-content img {
  display: block;
  width: auto;
  max-width: min(100%, 520px);
  max-height: 520px;
  height: auto;
  margin: 14px auto 18px;
  object-fit: contain;
  border-radius: 8px;
}

@media (max-width: 860px) {
  .batch-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .batch-empty {
    min-height: 260px;
  }
}

@media (max-width: 560px) {
  .batch-page-head {
    flex-direction: column;
  }
  .batch-page-head > .btn {
    width: 100%;
    justify-content: center;
  }
  .batch-form-head {
    flex-direction: column;
  }
  .batch-count-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .batch-count-quick button {
    flex: 1;
  }
  .batch-result-head {
    grid-template-columns: 30px minmax(0, 1fr);
  }
  .batch-result-index {
    width: 30px;
    height: 30px;
  }
  .batch-result-head .batch-status {
    grid-column: 2;
    justify-self: start;
  }
  .batch-result-preview,
  .batch-result-error,
  .batch-result-foot {
    margin-left: 0;
  }
  .batch-result-foot {
    align-items: stretch;
    flex-direction: column;
  }
  .batch-result-actions {
    justify-content: flex-start;
  }
}
.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: 8px; }
.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; }

#home-announce { margin-top: 24px; }
.announce-board {
  overflow: hidden;
  border: 1px solid #d7e0ec;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
}
.announce-board-head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 88% 12%, rgba(79, 190, 255, 0.18), transparent 31%),
    linear-gradient(125deg, #0c1b2e 0%, #15324e 64%, #10263d 100%);
}
.announce-board-head::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, #d9b86e, #f0dcae 46%, rgba(240, 220, 174, 0.12));
}
.announce-board-icon {
  position: relative;
  z-index: 1;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 1px solid rgba(137, 222, 255, 0.38);
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(145deg, #25b9d4, #1e66d0);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.announce-board-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
}
.announce-board-title {
  display: flex;
  align-items: center;
  gap: 8px;
}
.announce-board-title h3 {
  color: #fff;
  font-size: 16px;
  font-weight: 900;
}
.announce-board-title em {
  padding: 3px 7px;
  border: 1px solid rgba(240, 220, 174, 0.34);
  border-radius: 999px;
  color: #f0dcae;
  background: rgba(240, 220, 174, 0.1);
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}
.announce-board-copy p {
  margin-top: 4px;
  color: rgba(235, 245, 255, 0.66);
  font-size: 11.5px;
}
.announce-board-count {
  position: relative;
  z-index: 1;
  margin-left: auto;
  padding: 5px 9px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.07);
  font-size: 11px;
  white-space: nowrap;
}
.announce-list { padding: 0 18px; }
.announce-item {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line-2);
}
.announce-item:last-child { border-bottom: 0; }
.announce-item::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 47px;
  bottom: -17px;
  width: 1px;
  background: linear-gradient(180deg, #cbdcf0, rgba(203, 220, 240, 0.18));
}
.announce-item:last-child::before { display: none; }
.announce-index {
  position: relative;
  z-index: 1;
  width: 34px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #cfdef2;
  border-radius: 8px;
  color: #1e56d6;
  background: #f3f7ff;
  font-size: 11px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}
.announce-content { min-width: 0; }
.announce-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.announce-meta > span {
  color: #667085;
  font-size: 10px;
  font-weight: 800;
}
.announce-meta > span.is-latest {
  color: #0f766e;
}
.announce-meta time {
  color: #98a2b3;
  font-size: 11px;
  white-space: nowrap;
}
.announce-content h4 {
  margin-top: 5px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.5;
}
.announce-content p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.72;
}

.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; }
.studio-panel.left::-webkit-scrollbar {
  width: 6px;
}
.studio-panel.left::-webkit-scrollbar-thumb {
  border: 1px solid transparent;
  border-radius: 999px;
  background: rgba(30, 86, 214, 0.34);
  background-clip: padding-box;
}
.studio-panel.left::-webkit-scrollbar-thumb:hover {
  background: rgba(30, 86, 214, 0.58);
  background-clip: padding-box;
}
@supports not selector(::-webkit-scrollbar) {
  html {
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.58) transparent;
  }
  .user-app * {
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.58) transparent;
  }
  .studio-panel.left {
    scrollbar-width: thin;
    scrollbar-color: rgba(30, 86, 214, 0.36) transparent;
  }
}
.studio-grid.single-col {
  display: block;
}
.studio-grid.single-col > .studio-panel {
  max-width: 780px;
  margin: 0 auto;
}
.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); }
.studio-source-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.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; }
.preview-studio-panel {
  padding: 0;
  overflow: hidden;
  border-color: #d7e1ec;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
}
.preview-panel-head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 15px 16px;
  overflow: hidden;
  color: var(--ink);
  border-bottom: 1px solid #e2e9f2;
  background:
    radial-gradient(circle at 88% 10%, rgba(37, 99, 235, 0.08), transparent 28%),
    linear-gradient(135deg, #f8fbff 0%, #eef6ff 60%, #f7fcfb 100%);
}
.preview-panel-head::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, #1e56d6, #0d9488 52%, rgba(13, 148, 136, 0.08));
}
.preview-panel-icon {
  position: relative;
  z-index: 1;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(145deg, #13243a, #1e56d6);
  box-shadow: 0 8px 18px rgba(30, 86, 214, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.preview-panel-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
}
.preview-panel-copy h3 {
  color: #16202e;
  font-size: 15px;
  font-weight: 900;
}
.preview-panel-copy p {
  margin-top: 3px;
  color: #667085;
  font-size: 11px;
}
.preview-panel-status {
  position: relative;
  z-index: 1;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border: 1px solid #eadfb6;
  border-radius: 999px;
  color: #b45309;
  background: #fff9eb;
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
}
.preview-panel-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fbbf24;
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.12);
}
.preview-panel-status.ready i {
  background: #48e2a3;
  box-shadow: 0 0 0 3px rgba(72, 226, 163, 0.12);
}
.preview-panel-status.ready {
  border-color: #caead9;
  color: #0f766e;
  background: #f0fbf6;
}
.preview-panel-body {
  padding: 16px;
  background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
}
.preview-studio-panel .preview-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 3px;
  margin-bottom: 14px;
  padding: 3px;
  overflow: hidden;
  border: 1px solid #dfe7f1;
  border-radius: 10px;
  background: #f3f6fa;
}
.preview-studio-panel .preview-tab {
  min-width: 0;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 7px;
  border: 0;
  border-radius: 7px;
  color: #667085;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.preview-studio-panel .preview-tab.active {
  color: var(--primary-dark);
  background: #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}
.preview-studio-panel .preview-tab svg {
  flex: 0 0 auto;
}
.preview-studio-panel .preview-content {
  min-height: 380px;
}
.studio-empty-state {
  min-height: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 36px 22px;
  text-align: center;
  border: 1px dashed #cfd9e7;
  border-radius: 12px;
  background:
    linear-gradient(90deg, rgba(37, 99, 235, 0.025) 1px, transparent 1px),
    linear-gradient(rgba(37, 99, 235, 0.025) 1px, transparent 1px),
    linear-gradient(180deg, #fbfdff, #f6f9fd);
  background-size: 24px 24px, 24px 24px, auto;
}
.studio-empty-icon {
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #cfe0fa;
  border-radius: 16px;
  color: #1e56d6;
  background: linear-gradient(145deg, #edf4ff, #f6fbff);
  box-shadow: 0 10px 22px rgba(30, 86, 214, 0.1);
}
.studio-empty-state > b {
  margin-top: 16px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
}
.studio-empty-state > p {
  max-width: 390px;
  margin-top: 7px;
  color: #667085;
  font-size: 12.5px;
  line-height: 1.7;
}
.studio-empty-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 15px;
  padding: 5px 9px;
  border: 1px solid #d7e5f6;
  border-radius: 999px;
  color: #1e56d6;
  background: #f5f9ff;
  font-size: 10.5px;
  font-weight: 700;
}
@media (max-width: 560px) {
  .preview-panel-head {
    padding: 14px;
  }
  .preview-panel-body {
    padding: 14px;
  }
  .preview-studio-panel .preview-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    overflow: visible;
  }
  .preview-studio-panel .preview-tab {
    min-width: 0;
    padding: 8px 6px;
  }
  .studio-empty-state {
    min-height: 360px;
    padding: 30px 18px;
  }
}
.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); }
/* 去AI痕迹体检：生成时文风工程的实测指标 */
.audit-trace {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 9px;
  padding: 6px 10px;
  border-radius: 7px;
  background: rgba(16, 185, 129, 0.09);
  color: #0f766e;
  font-size: 12px;
  line-height: 1.5;
}
.audit-trace.is-warn {
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
}
/* 原创度 + 爆款潜力评分卡 */
.result-insights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.result-insights.single { grid-template-columns: minmax(0, 1fr); }
.insight-card {
  border: 1px solid var(--line-2);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
}
.insight-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-2);
}
.insight-head span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.insight-head b {
  font-size: 20px;
  line-height: 1;
  color: var(--muted);
}
.insight-head b.is-good { color: #0f766e; }
.insight-head b.is-mid { color: #b45309; }
.insight-head b.is-low { color: #b42318; }
.insight-metrics,
.insight-dims {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}
.insight-metrics span,
.insight-dims span {
  padding: 2px 7px;
  border-radius: 5px;
  background: rgba(15, 23, 42, 0.05);
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}
.insight-note {
  margin: 8px 0 0;
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--muted);
}
.title-tags {
  display: inline-flex;
  gap: 4px;
  margin-left: 6px;
  vertical-align: middle;
  font-style: normal;
}
.title-tags span {
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(13, 148, 136, 0.1);
  color: #0f766e;
  font-size: 10px;
  font-weight: 700;
}
.title-tags span.is-reco {
  background: linear-gradient(135deg, #0d9488, #0ea5e9);
  color: #fff;
}
.title-option i.title-reco {
  padding: 1px 6px;
  border-radius: 4px;
  background: linear-gradient(135deg, #0d9488, #0ea5e9);
  color: #fff;
  font-size: 10px;
}
@media (max-width: 720px) {
  .result-insights { grid-template-columns: minmax(0, 1fr); }
}
.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-config-guide {
  overflow: hidden;
  margin-top: 12px;
  border: 1px solid #cfdaea;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}
.wechat-guide-head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 110px 15px 16px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 86% 16%, rgba(56, 189, 248, 0.18), transparent 30%),
    linear-gradient(125deg, #0b1b2e 0%, #143450 62%, #10273e 100%);
}
.wechat-guide-head::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, #d9b86e, #f0dcae 45%, rgba(240, 220, 174, 0.12));
}
.wechat-guide-icon {
  position: relative;
  z-index: 1;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 1px solid rgba(137, 222, 255, 0.38);
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(145deg, #25b9d4, #1e66d0);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.wechat-guide-heading {
  position: relative;
  z-index: 1;
  min-width: 0;
}
.wechat-guide-heading > div {
  display: flex;
  align-items: center;
  gap: 8px;
}
.wechat-guide-heading h3 {
  color: #fff;
  font-size: 15px;
  font-weight: 900;
}
.wechat-guide-heading em {
  padding: 3px 7px;
  border: 1px solid rgba(240, 220, 174, 0.34);
  border-radius: 999px;
  color: #f0dcae;
  background: rgba(240, 220, 174, 0.1);
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}
.wechat-guide-heading p {
  margin-top: 4px;
  color: rgba(235, 245, 255, 0.66);
  font-size: 11px;
}
.wechat-guide-status {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: 16px;
  margin-left: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.08);
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
  transform: translateY(-50%);
}
.wechat-guide-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fbbf24;
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.12);
}
.wechat-guide-status.on i {
  background: #48e2a3;
  box-shadow: 0 0 0 3px rgba(72, 226, 163, 0.12);
}
.wechat-guide-body {
  padding: 16px;
  background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
}
.wechat-guide-desc {
  color: #475467;
  font-size: 12.5px;
  line-height: 1.75;
}
.wechat-guide-desc code {
  padding: 2px 6px;
  border: 1px solid #ffd7d3;
  border-radius: 5px;
  color: #c43221;
  background: #fff4f2;
  font-size: 11.5px;
  font-weight: 800;
}
.wechat-guide-ip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 11px;
  border: 1px solid #d8e3f2;
  border-radius: 9px;
  background: #f7faff;
}
.wechat-guide-ip-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #667085;
  font-size: 11px;
  white-space: nowrap;
}
.wechat-guide-ip code {
  min-width: 0;
  color: #123d9c;
  font-size: 13px;
  font-weight: 800;
  word-break: break-all;
}
.wechat-guide-ip .btn {
  flex: 0 0 auto;
}
.wechat-guide-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: nowrap;
  margin-top: 12px;
}
.wechat-guide-actions > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #667085;
  font-size: 10.5px;
  line-height: 1.45;
}
.wechat-guide-actions .btn {
  flex: 0 0 auto;
}
@media (max-width: 420px) {
  .wechat-guide-head {
    display: flex;
    gap: 11px;
    padding: 14px 100px 14px 14px;
  }
  .wechat-guide-heading {
    min-width: 0;
  }
  .wechat-guide-status {
    right: 14px;
  }
}
@media (max-width: 360px) {
  .wechat-guide-heading em {
    display: none;
  }
  .wechat-guide-heading h3 {
    font-size: 14px;
  }
}

/* Tutorial video */
.tutorial-video-card {
  margin-bottom: 16px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid #cfdae7;
  border-radius: 12px;
  background:
    radial-gradient(circle at 88% 8%, rgba(37, 99, 235, 0.09), transparent 30%),
    linear-gradient(135deg, #ffffff, #f5f8fc);
  box-shadow: 0 12px 30px rgba(24, 49, 82, 0.08);
}

.tutorial-video-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.tutorial-video-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #2563b8;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.1em;
}

.tutorial-video-head h3 {
  margin: 7px 0 0;
  color: #17263a;
  font-size: 19px;
  font-weight: 900;
}

.tutorial-video-head p {
  margin: 6px 0 0;
  color: #6b7b8f;
  font-size: 12px;
}

.tutorial-video-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid #d5e3f2;
  border-radius: 999px;
  color: #2563b8;
  background: #f4f8fd;
  font-size: 9.5px;
  font-weight: 800;
}

.tutorial-video-card video {
  width: 100%;
  max-height: 72vh;
  display: block;
  border-radius: 9px;
  background: #07111f;
}

.topic-image-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: -2px 0 10px;
  padding: 10px 11px;
  border: 1px solid #dce5ef;
  border-radius: 8px;
  background: #f8fafc;
}

.topic-image-toolbar > div {
  min-width: 0;
}

.topic-image-toolbar b {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ink);
  font-size: 12px;
}

.topic-image-toolbar span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.topic-image-result {
  margin: -2px 0 12px;
}

.topic-image-result-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 9px;
}

.topic-image-result-head b {
  color: var(--ink);
  font-size: 11.5px;
}

.article-view img[data-crop-image] {
  cursor: zoom-in;
  transition: filter 0.18s ease, box-shadow 0.18s ease;
}

.article-view img[data-crop-image]:hover {
  filter: brightness(0.96);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.image-cropper-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 11px;
}

.image-cropper-toolbar > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.image-cropper-toolbar b {
  color: var(--primary-dark);
  font-size: 11px;
}

.image-cropper-toolbar .btn {
  flex: 0 0 auto;
}

.image-cropper-viewport {
  max-height: 66vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  padding: 18px;
  border-radius: 10px;
  background: #111827;
  touch-action: none;
}

.image-cropper-stage {
  position: relative;
  width: fit-content;
  line-height: 0;
  user-select: none;
}

.image-cropper-stage > img {
  max-width: 100%;
  max-height: 62vh;
  display: block;
  pointer-events: none;
  user-select: none;
}

.crop-selection {
  position: absolute;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 9999px rgba(3, 7, 18, 0.58);
  cursor: move;
  touch-action: none;
}

.crop-selection::before,
.crop-selection::after {
  content: "";
  position: absolute;
  pointer-events: none;
  opacity: 0.45;
  background: #ffffff;
}

.crop-selection::before {
  left: 33.333%;
  right: 33.333%;
  top: 0;
  bottom: 0;
  border-left: 1px solid #fff;
  border-right: 1px solid #fff;
  background: transparent;
}

.crop-selection::after {
  top: 33.333%;
  bottom: 33.333%;
  left: 0;
  right: 0;
  border-top: 1px solid #fff;
  border-bottom: 1px solid #fff;
  background: transparent;
}

.crop-handle {
  position: absolute;
  width: 14px;
  height: 14px;
  padding: 0;
  border: 2px solid #2563eb;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.25);
}

.crop-handle-nw { left: -7px; top: -7px; cursor: nwse-resize; }
.crop-handle-n { left: 50%; top: -7px; margin-left: -7px; cursor: ns-resize; }
.crop-handle-ne { right: -7px; top: -7px; cursor: nesw-resize; }
.crop-handle-e { right: -7px; top: 50%; margin-top: -7px; cursor: ew-resize; }
.crop-handle-se { right: -7px; bottom: -7px; cursor: nwse-resize; }
.crop-handle-s { left: 50%; bottom: -7px; margin-left: -7px; cursor: ns-resize; }
.crop-handle-sw { left: -7px; bottom: -7px; cursor: nesw-resize; }
.crop-handle-w { left: -7px; top: 50%; margin-top: -7px; cursor: ew-resize; }

@media (max-width: 640px) {
  .image-cropper-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .image-cropper-viewport {
    padding: 10px;
  }

  .crop-handle {
    width: 18px;
    height: 18px;
  }

  .crop-handle-nw { left: -9px; top: -9px; }
  .crop-handle-n { top: -9px; margin-left: -9px; }
  .crop-handle-ne { right: -9px; top: -9px; }
  .crop-handle-e { right: -9px; margin-top: -9px; }
  .crop-handle-se { right: -9px; bottom: -9px; }
  .crop-handle-s { bottom: -9px; margin-left: -9px; }
  .crop-handle-sw { left: -9px; bottom: -9px; }
  .crop-handle-w { left: -9px; margin-top: -9px; }
}

@media (max-width: 560px) {
  .topic-image-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .topic-image-toolbar .btn {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .tutorial-video-card {
    padding: 14px;
  }

  .tutorial-video-head {
    flex-direction: column;
    gap: 10px;
  }

  .tutorial-video-card video {
    max-height: 52vh;
  }
}
.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-card {
  padding: 0;
  overflow: hidden;
  border: 1px solid #d7e1ec;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
}
.agent-settlement-summary {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 88% 12%, rgba(56, 189, 248, 0.18), transparent 30%),
    linear-gradient(125deg, #0b1b2e 0%, #143450 62%, #10273e 100%);
  cursor: pointer;
  list-style: none;
}
.agent-settlement-summary::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, #d9b86e, #f0dcae 45%, rgba(240, 220, 174, 0.12));
}
.agent-settlement-summary::-webkit-details-marker { display: none; }
.agent-settlement-summary-icon {
  position: relative;
  z-index: 1;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(137, 222, 255, 0.38);
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(145deg, #25b9d4, #1e66d0);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.agent-settlement-summary-copy {
  position: relative;
  z-index: 1;
  display: block;
  min-width: 0;
}
.agent-settlement-summary-title {
  display: flex;
  align-items: center;
  gap: 8px;
}
.agent-settlement-summary-title b {
  color: #fff;
  font-size: 15px;
  font-weight: 900;
}
.agent-settlement-summary-title em {
  padding: 3px 7px;
  border: 1px solid rgba(240, 220, 174, 0.34);
  border-radius: 999px;
  color: #f0dcae;
  background: rgba(240, 220, 174, 0.1);
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}
.agent-settlement-summary-copy > small {
  display: block;
  margin-top: 4px;
  color: rgba(235, 245, 255, 0.66);
  font-size: 11.5px;
}
.agent-settlement-status {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
  white-space: nowrap;
}
.agent-settlement-status.ready {
  color: #9df4cf;
  background: rgba(47, 209, 145, 0.12);
}
.agent-settlement-status.pending {
  color: #f1d89d;
  background: rgba(240, 204, 118, 0.12);
}
.agent-settlement-toggle {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: rgba(235, 245, 255, 0.78);
  font-size: 10.5px;
  white-space: nowrap;
}
.agent-settlement-toggle i {
  transition: transform 0.2s ease;
}
.agent-settlement-card[open] .agent-settlement-toggle i {
  transform: rotate(180deg);
}
.agent-settlement-body {
  padding: 18px;
  background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
}
.agent-settlement-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.agent-settlement-column {
  min-width: 0;
}
.agent-settlement-section-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
}
.agent-settlement-section-title > span {
  width: 28px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 1px solid #cfdef2;
  border-radius: 7px;
  color: #1e56d6;
  background: #f3f7ff;
  font-size: 10px;
  font-weight: 900;
}
.agent-settlement-section-title b,
.agent-settlement-section-title small {
  display: block;
}
.agent-settlement-section-title b {
  color: var(--ink);
  font-size: 13px;
}
.agent-settlement-section-title small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10.5px;
}
.agent-settlement-hint {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  color: #667085;
  font-size: 10.5px;
}
.agent-settlement-qr-panel {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}
.agent-settlement-qr-preview {
  width: 104px;
  height: 104px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  background: #f8fafc;
}
.agent-settlement-qr-preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.agent-settlement-qr-preview > span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  color: #98a2b3;
}
.agent-settlement-qr-preview > span small {
  font-size: 10px;
}
.agent-settlement-qr-copy {
  min-width: 0;
}
.agent-settlement-qr-copy > small {
  display: block;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.55;
}
.agent-settlement-upload-btn {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 9px;
  padding: 8px 10px;
  border: 1px solid #d6e1ef;
  border-radius: 8px;
  color: #1e56d6;
  background: #f7faff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}
.agent-settlement-upload-btn:hover {
  border-color: #9fc4f5;
  background: #eef5ff;
}
.agent-settlement-file {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.agent-settlement-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line-2);
}
.agent-settlement-footer > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
}
.agent-settlement-footer > span.ready {
  color: #0f766e;
}
.agent-settlement-footer > span.pending {
  color: #b45309;
}
.agent-settlement-footer .btn {
  flex: 0 0 auto;
}
@media (max-width: 720px) {
  .agent-settlement-summary {
    grid-template-columns: 42px minmax(0, 1fr) auto auto;
    gap: 8px 10px;
  }
  .agent-settlement-summary-icon {
    grid-column: 1;
    grid-row: 1;
  }
  .agent-settlement-summary-copy {
    grid-column: 2;
    grid-row: 1;
  }
  .agent-settlement-summary-copy > small {
    display: none;
  }
  .agent-settlement-status {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }
  .agent-settlement-toggle {
    grid-column: 4;
    grid-row: 1;
  }
  .agent-settlement-toggle small {
    display: none;
  }
  .agent-settlement-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 480px) {
  .agent-settlement-summary-title em {
    display: none;
  }
}
@media (max-width: 520px) {
  .agent-settlement-summary {
    padding: 14px;
  }
  .agent-settlement-body {
    padding: 14px;
  }
  .agent-settlement-footer {
    align-items: stretch;
    flex-direction: column;
  }
  .agent-settlement-footer .btn {
    width: 100%;
  }
}
.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; }
.card-refund-notice {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  margin-top: 14px;
  padding: 11px 12px;
  border: 1px solid #f0d8a8;
  border-radius: 8px;
  background: #fffaf0;
}
.card-refund-notice > span {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  color: #b45309;
  background: #fef3c7;
}
.card-refund-notice b {
  display: block;
  color: #92400e;
  font-size: 12.5px;
  font-weight: 900;
}
.card-refund-notice p {
  margin-top: 3px;
  color: #7c5c2b;
  font-size: 11px;
  line-height: 1.6;
}
@media (max-width: 420px) {
  .card-refund-notice {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 8px;
    padding: 10px;
  }
  .card-refund-notice > span {
    width: 30px;
    height: 30px;
  }
}

/* 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;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}
.account-id-name > span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-id-name .account-verify { color: #e4c98d; }
.account-id-name .account-edit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: rgba(245, 242, 234, 0.58);
  transition: color 0.15s ease, transform 0.15s ease;
}
.account-id-name:hover .account-edit-icon,
.account-id-name:focus-visible .account-edit-icon {
  color: #f0dcae;
  transform: translateY(-1px);
}
.account-id-name:focus-visible {
  outline: 2px solid rgba(240, 220, 174, 0.72);
  outline-offset: 4px;
  border-radius: 4px;
}
.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;
}

.llm-binding-section {
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid #e2e9f2;
  border-radius: 10px;
  background: #f8fafc;
}
.llm-binding-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 11px;
}
.llm-binding-head b,
.llm-binding-head small {
  display: block;
}
.llm-binding-head b {
  color: #23344c;
  font-size: 13px;
}
.llm-binding-head small {
  margin-top: 3px;
  color: #8190a4;
  font-size: 10.5px;
}
.llm-binding-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 10px;
}
.llm-binding-card {
  position: relative;
  min-width: 0;
  padding: 13px;
  border: 1px solid #dde6f0;
  border-radius: 9px;
  background: #fff;
}
.llm-binding-card.is-active {
  border-color: #9ed9c9;
  background: linear-gradient(150deg, #f6fffc, #fff);
  box-shadow: inset 3px 0 0 #12a889;
}
.llm-binding-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.llm-binding-provider {
  overflow: hidden;
  color: #64809f;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.llm-binding-card > b,
.llm-binding-card > small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.llm-binding-card > b {
  color: #23344c;
  font-size: 12.5px;
}
.llm-binding-card > small {
  margin-top: 3px;
  color: #8a99ab;
  font-family: Consolas, monospace;
  font-size: 9.5px;
}
.llm-binding-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 10px;
  margin-top: 9px;
  color: #718198;
  font-size: 9px;
}
.llm-binding-meta span {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 3px;
}
.llm-binding-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 11px;
  padding-top: 9px;
  border-top: 1px solid #edf1f5;
}
.llm-binding-actions .btn {
  min-height: 30px;
  padding: 5px 9px;
  font-size: 10px;
}
.llm-binding-active-note {
  color: #0f8a6c;
  font-size: 9.5px;
  font-weight: 800;
}
.llm-binding-empty {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px dashed #d7e1ed;
  border-radius: 8px;
  color: #8a99ab;
  background: #fff;
  font-size: 11px;
}
.llm-config-divider {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 0 12px;
  padding-top: 14px;
  border-top: 1px dashed #e4eaf1;
}
.llm-config-divider b {
  color: #34445a;
  font-size: 12px;
}
.llm-config-divider span {
  color: #94a0b1;
  font-size: 10px;
}
@media (max-width: 620px) {
  .llm-binding-list {
    grid-template-columns: minmax(0, 1fr);
  }
  .llm-config-divider {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }
}

/* 创作台 · API 选择卡片 */
.studio-api-field {
  position: relative;
  margin: 12px 0 14px;
  padding: 14px;
  overflow: hidden;
  border: 1px solid #d9e5f5;
  border-radius: 14px;
  background:
    radial-gradient(260px 120px at 94% 0%, rgba(57, 129, 245, 0.12), transparent 70%),
    linear-gradient(145deg, #f8fbff, #f2f7ff);
}
.studio-api-field::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, #3b82f6, #14b8a6);
}
.studio-api-field.is-empty {
  border-color: #e3e8ef;
  background: #f8fafc;
}
.studio-api-field.is-empty::before {
  background: #c7d2df;
}
.studio-api-field-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.studio-api-field-head label {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  color: #263b59;
  font-size: 12.5px;
  font-weight: 900;
}
.studio-api-field-head p {
  margin: 3px 0 0;
  color: #8593a7;
  font-size: 9.5px;
  line-height: 1.5;
}
.studio-api-count {
  flex: 0 0 auto;
  padding: 4px 8px;
  border: 1px solid #d4e3f7;
  border-radius: 999px;
  color: #4773ad;
  background: rgba(255, 255, 255, 0.75);
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}
.studio-api-field.is-ready .studio-api-count {
  border-color: #bfe4dc;
  color: #0f806c;
}
.studio-api-select {
  position: relative;
}
.studio-api-select-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  z-index: 1;
  display: flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  color: #2f68c5;
  background: #eaf2ff;
  transform: translateY(-50%);
  pointer-events: none;
}
.studio-api-select .select {
  height: 44px;
  padding: 0 36px 0 44px;
  border-color: #d7e3f2;
  border-radius: 9px;
  color: #2b405d;
  background-color: #fff;
  box-shadow: 0 3px 9px rgba(35, 70, 121, 0.035);
  font-size: 11.5px;
  font-weight: 700;
}
.studio-api-select .select:focus {
  border-color: #85aee8;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.09);
}
.studio-api-field-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 9px;
}
.studio-api-meta {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 4px;
  overflow: hidden;
  color: #72839a;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.studio-api-meta i {
  width: 3px;
  height: 3px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #b8c5d5;
}
.studio-api-field-foot > a {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 3px;
  color: #2563b8;
  font-size: 9.5px;
  font-weight: 800;
  text-decoration: none;
}
.studio-api-field-foot > a:hover {
  color: #174da2;
}
@media (max-width: 460px) {
  .studio-api-field-foot {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
  .studio-api-select .select {
    font-size: 10.5px;
  }
}

/* help */
.help-console-page { display: grid; gap: 14px; }
.help-console-hero {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border: 1px solid #dbe6f8;
  border-radius: 16px;
  background:
    radial-gradient(circle at 92% 18%, rgba(50, 116, 255, 0.16), transparent 30%),
    linear-gradient(145deg, #f8fbff, #eef5ff 62%, #f9fbff);
}
.help-console-hero::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -62px;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(30, 86, 214, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 28px rgba(30, 86, 214, 0.035), 0 0 0 58px rgba(30, 86, 214, 0.025);
}
.help-console-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.help-console-hero h2 { margin: 9px 0 6px; color: var(--ink); font-size: 24px; font-weight: 900; }
.help-console-hero p { max-width: 640px; margin: 0; color: #5f6f86; font-size: 13px; line-height: 1.75; }
.help-console-stats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.help-console-stats span {
  min-width: 92px;
  padding: 8px 11px;
  border: 1px solid rgba(30, 86, 214, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.78);
}
.help-console-stats b { display: block; color: #173f9a; font-size: 15px; }
.help-console-stats small { color: #7b8799; font-size: 10px; }
.help-console-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.help-console-panel {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.help-console-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  background: #f8fafc;
}
.help-console-search input {
  width: 100%;
  height: 42px;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 13px;
}
.help-console-group + .help-console-group { margin-top: 18px; }
.help-console-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.help-console-group-head h3 { margin: 0; color: var(--ink); font-size: 14px; font-weight: 850; }
.help-console-group-head span { color: var(--muted); font-size: 11px; }
.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; }

@media (max-width: 640px) {
  .help-console-hero { padding: 18px; border-radius: 14px; }
  .help-console-hero h2 { font-size: 21px; }
  .help-console-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .help-console-stats span { min-width: 0; padding: 8px; text-align: center; }
  .help-console-links .btn { flex: 1 1 150px; justify-content: center; }
  .help-console-panel { padding: 13px; }
}

/* 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; }

.comic-studio {
  display: grid;
  gap: 16px;
}

.comic-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 24px;
  overflow: hidden;
  padding: 26px 28px;
  border: 1px solid #172c4a;
  border-radius: 16px;
  color: #fff;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    #0d1e35;
  background-size: 28px 28px;
  box-shadow: 0 18px 42px rgba(15, 35, 62, 0.18);
}
.comic-hero::after {
  content: "";
  position: absolute;
  right: -45px;
  bottom: -80px;
  width: 220px;
  height: 220px;
  border: 28px solid rgba(79, 141, 255, 0.12);
  border-radius: 50%;
}
.comic-hero-copy,
.comic-hero-flow {
  position: relative;
  z-index: 1;
}
.comic-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #8ec5ff;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
}
.comic-hero h2 {
  margin: 10px 0 0;
  color: #fff;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.2;
}
.comic-hero-copy > p {
  max-width: 650px;
  margin: 10px 0 0;
  color: rgba(235, 244, 255, 0.72);
  font-size: 13px;
  line-height: 1.75;
}
.comic-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.comic-hero-tags span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(155, 197, 255, 0.2);
  border-radius: 999px;
  color: rgba(235, 244, 255, 0.82);
  background: rgba(255, 255, 255, 0.05);
  font-size: 10.5px;
  font-weight: 700;
}
.comic-hero-flow {
  align-self: center;
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid rgba(151, 193, 255, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
}
.comic-hero-flow span {
  display: flex;
  align-items: center;
  gap: 10px;
}
.comic-hero-flow i {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 28px;
  border-radius: 8px;
  color: #8ec5ff;
  background: rgba(82, 143, 255, 0.14);
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
}
.comic-hero-flow b {
  color: rgba(242, 247, 255, 0.92);
  font-size: 11.5px;
  font-weight: 750;
}
.comic-hero-flow em {
  width: 1px;
  height: 9px;
  margin-left: 13px;
  background: rgba(142, 197, 255, 0.25);
}

.comic-workbench {
  overflow: hidden;
  border: 1px solid #dbe3ed;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.07);
}
.comic-workbench-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 18px 20px;
  border-bottom: 1px solid #e3e9f1;
  background: linear-gradient(180deg, #fff, #f8fbff);
}
.comic-workbench-step {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  color: #fff;
  background: #1e56d6;
  box-shadow: 0 8px 18px rgba(30, 86, 214, 0.22);
  font-size: 13px;
  font-weight: 900;
}
.comic-workbench-head h3 {
  color: #14213a;
  font-size: 16px;
  font-weight: 900;
}
.comic-workbench-head p {
  margin-top: 4px;
  color: #667085;
  font-size: 11px;
  line-height: 1.55;
}
.comic-workbench-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 9px;
  border: 1px solid #d8e6dc;
  border-radius: 999px;
  color: #18794e;
  background: #f0fdf4;
  font-size: 9.5px;
  font-weight: 750;
  white-space: nowrap;
}
.comic-mode-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 18px 20px 0;
}
.comic-mode-card {
  min-width: 0;
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px;
  border: 1px solid #dfe6ef;
  border-radius: 12px;
  color: #475467;
  background: #fbfcfe;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}
.comic-mode-card:hover {
  transform: translateY(-1px);
  border-color: #b8c9e7;
  background: #f5f8ff;
  box-shadow: 0 8px 18px rgba(30, 86, 214, 0.07);
}
.comic-mode-card.active {
  border-color: #6f9cf0;
  color: #173f9f;
  background: #edf3ff;
  box-shadow: inset 0 0 0 1px rgba(30, 86, 214, 0.12), 0 8px 20px rgba(30, 86, 214, 0.09);
}
.comic-mode-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 38px;
  border-radius: 10px;
  color: #1e56d6;
  background: #eaf0ff;
}
.comic-mode-card > span:last-child {
  min-width: 0;
}
.comic-mode-card b,
.comic-mode-card small {
  display: block;
}
.comic-mode-card b {
  color: #1d2939;
  font-size: 12px;
  font-weight: 850;
}
.comic-mode-card small {
  margin-top: 4px;
  overflow: hidden;
  color: #7c8b9d;
  font-size: 9.5px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.comic-form-shell {
  margin: 16px 20px 0;
  padding: 16px;
  border: 1px solid #e1e8f1;
  border-radius: 13px;
  background: #f8fafc;
}
.comic-form-shell-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 11px;
  border-bottom: 1px solid #e5ebf2;
}
.comic-form-shell-head > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #344054;
  font-size: 11.5px;
  font-weight: 850;
}
.comic-form-shell-head small {
  color: #98a2b3;
  font-size: 9.5px;
}
.comic-fields .field {
  margin-bottom: 14px;
}
.comic-fields .field:last-child {
  margin-bottom: 0;
}
.comic-fields label {
  color: #344054;
  font-size: 11.5px;
  font-weight: 800;
}
.comic-fields .input,
.comic-fields .textarea,
.comic-fields .select {
  border-color: #d8e1eb;
  background: #fff;
}
.comic-fields .textarea {
  min-height: 154px;
}
.comic-fields input[type="file"].input {
  min-height: 46px;
  padding: 7px 10px;
  color: #667085;
  font-size: 11px;
}
.comic-fields input[type="file"].input::file-selector-button {
  min-height: 30px;
  margin-right: 10px;
  padding: 0 12px;
  border: 1px solid #cbdcff;
  border-radius: 7px;
  color: #1e56d6;
  background: #eef4ff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.comic-fields .input-group {
  align-items: stretch;
}
.comic-fields .input-group .btn {
  white-space: nowrap;
}
.comic-output-settings {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 16px 20px 0;
}
.comic-setting-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #e1e7ef;
  border-radius: 11px;
  background: #fbfcfe;
}
.comic-setting-card > span {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  color: #1e56d6;
  background: #edf3ff;
}
.comic-setting-card > div {
  min-width: 0;
}
.comic-setting-card small {
  display: block;
  margin-bottom: 5px;
  color: #667085;
  font-size: 9.5px;
  font-weight: 750;
}
.comic-setting-card .select {
  min-height: 38px;
  border-color: #d9e2ec;
  background: #fff;
  font-size: 11.5px;
}
.comic-generate-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 16px;
  padding: 16px 20px;
  border-top: 1px solid #e3e9f1;
  background: linear-gradient(180deg, #fbfdff, #f6f9fd);
}
.comic-generate-bar > div {
  min-width: 0;
}
.comic-generate-bar b,
.comic-generate-bar span {
  display: block;
}
.comic-generate-bar b {
  color: #1d2939;
  font-size: 12.5px;
  font-weight: 850;
}
.comic-generate-bar span {
  margin-top: 4px;
  color: #7c8b9d;
  font-size: 10px;
  line-height: 1.5;
}
.comic-generate-bar .btn {
  min-width: 172px;
  min-height: 44px;
  flex: 0 0 auto;
  justify-content: center;
  border-radius: 10px;
  font-weight: 850;
  box-shadow: 0 10px 20px rgba(30, 86, 214, 0.18);
}

@media (max-width: 760px) {
  .comic-hero {
    grid-template-columns: 1fr;
    padding: 22px 20px;
  }
  .comic-hero h2 {
    font-size: 24px;
  }
  .comic-hero-flow {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }
  .comic-hero-flow span {
    align-items: flex-start;
    flex-direction: column;
  }
  .comic-hero-flow em {
    display: none;
  }
  .comic-workbench-head {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .comic-workbench-status {
    grid-column: 2;
    justify-self: start;
  }
  .comic-mode-tabs {
    grid-template-columns: 1fr;
    padding: 14px 14px 0;
  }
  .comic-mode-card {
    min-height: 66px;
  }
  .comic-form-shell {
    margin: 14px 14px 0;
    padding: 14px;
  }
  .comic-output-settings {
    padding: 14px 14px 0;
  }
  .comic-generate-bar {
    align-items: stretch;
    flex-direction: column;
    padding: 14px;
  }
  .comic-generate-bar .btn {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .comic-hero-flow {
    grid-template-columns: 1fr;
  }
  .comic-hero-flow span {
    align-items: center;
    flex-direction: row;
  }
  .comic-form-shell-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .comic-output-settings {
    grid-template-columns: 1fr;
  }
  .comic-fields .input-group {
    flex-direction: column;
  }
  .comic-fields .input-group .btn {
    width: 100%;
    justify-content: center;
  }
}

/* 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; }
.notify-actions { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.notify-read-state { color: var(--muted); font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.notify-delete { width: 32px; height: 32px; color: #98a2b3; }
.notify-delete:hover { color: var(--danger); background: var(--danger-soft); }

@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 {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid #dfe6ef;
  border-radius: 10px;
  color: var(--ink-2);
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  box-shadow: 0 3px 10px rgba(16, 24, 40, 0.045);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}
.u-header-actions .header-action-icon {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}
.u-header-actions .bell-btn .header-action-icon {
  color: #1e56d6;
  background: #eef3ff;
}
.u-header-actions .header-settings-btn .header-action-icon {
  color: #475467;
  background: #f2f4f7;
}
.u-header-actions .icon-btn:hover,
.u-header-actions .icon-btn:focus-visible {
  transform: translateY(-1px);
  border-color: #bdcce4;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 8px 18px rgba(16, 24, 40, 0.08);
  outline: none;
}
.u-header-actions .icon-btn.active {
  border-color: #b9c9ec;
  box-shadow: 0 0 0 3px rgba(30, 86, 214, 0.08), 0 7px 16px rgba(16, 24, 40, 0.07);
}
.u-header-actions .bell-btn .bell-dot {
  top: 5px;
  right: 5px;
  width: 9px;
  height: 9px;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.1);
}

.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;
  min-width: 166px;
  min-height: 54px;
}
.u-contact-float-main {
  position: relative;
  min-width: 166px;
  min-height: 54px;
  padding: 7px 14px 7px 8px;
  border: 1px solid #d7e2f2;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 9px;
  box-shadow: 0 14px 34px rgba(16, 24, 40, 0.15), 0 3px 10px rgba(16, 24, 40, 0.07);
  backdrop-filter: blur(12px);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.u-contact-float-icon {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(145deg, #1e56d6, #123d9c);
  box-shadow: 0 7px 15px rgba(30, 86, 214, 0.24);
}
.u-contact-float-close {
  position: absolute;
  top: -7px;
  right: -7px;
  z-index: 2;
  width: 23px;
  height: 23px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  color: #475467;
  background: #eef2f6;
  box-shadow: 0 4px 10px rgba(16, 24, 40, 0.14);
}
.u-contact-float-close:hover {
  color: #fff;
  background: #dc2626;
}
.u-contact-float-copy {
  min-width: 0;
}
.u-contact-float-copy b,
.u-contact-float-copy small {
  display: block;
}
.u-contact-float-copy b {
  color: #101828;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}
.u-contact-float-copy small {
  margin-top: 2px;
  color: #667085;
  font-size: 10.5px;
  white-space: nowrap;
}
.u-contact-float-dot {
  position: absolute;
  top: 7px;
  right: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #16a34a;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.12);
}
.u-contact-float-main:hover {
  color: var(--ink);
  background: #fff;
  border-color: #b9cff2;
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(16, 24, 40, 0.2), 0 4px 12px rgba(16, 24, 40, 0.08);
}

/* 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));
  white-space: nowrap;
}
.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; }
  .landing-hero-copy { min-width: 0; }
  .landing-hero-accent { font-size: 36px; }
}
@media (max-width: 400px) {
  .landing-hero-accent { font-size: 34px; }
}

.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; }

.brand-qq-icon {
  display: block;
  object-fit: contain;
  border-radius: 4px;
}
.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: 4px; }
  .home-capabilities span { padding: 5px 2px; font-size: 9.5px; }
  .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: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-top: 14px;
}
.home-capabilities span {
  width: 100%;
  min-width: 0;
  justify-content: center;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid #d9f3ef;
  border-radius: 6px;
  padding: 6px 3px;
  font-size: 10.5px;
  color: #334155;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.home-capabilities svg {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  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;
}

@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:
    radial-gradient(circle at 50% 8%, rgba(255, 255, 255, 0.9), transparent 34%),
    linear-gradient(180deg, #f4f6f8 0%, #e7ebef 58%, #dce2e8 100%);
  border-color: #d6dde5;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 12px 30px rgba(15, 23, 42, 0.08);
  max-height: 650px;
}
.ios-device {
  position: relative;
  width: 302px;
  max-width: 100%;
  margin: 14px auto 18px;
  padding: 3px;
  border-radius: 52px;
  background:
    linear-gradient(
      135deg,
      #f9fbfd 0%,
      #a9b2bc 12%,
      #4d555e 32%,
      #22282f 49%,
      #d7dde3 68%,
      #68717b 84%,
      #f8fafc 100%
    );
  box-shadow:
    0 36px 70px rgba(15, 23, 42, 0.22),
    0 12px 26px rgba(15, 23, 42, 0.14),
    inset 0 0 0 1px rgba(255, 255, 255, 0.72),
    inset 0 0 0 2px rgba(19, 24, 30, 0.64);
  box-sizing: border-box;
}
.ios-device::before,
.ios-device::after {
  content: "";
  position: absolute;
  z-index: 4;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, #dce2e7, #626b75 28%, #222830 55%, #cbd2d8);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.34);
}
.ios-device::before {
  left: 0;
  top: 108px;
  height: 54px;
  box-shadow:
    0 67px 0 0 #727b84,
    0 0 0 1px rgba(0, 0, 0, 0.34);
}
.ios-device::after {
  right: 0;
  top: 143px;
  height: 84px;
}
.ios-statusbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 43px;
  padding: 5px 19px 0 24px;
  border-radius: 44px 44px 0 0;
  background: #fff;
  color: #0b0d10;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0;
}
.ios-display {
  position: relative;
  width: 100%;
  padding: 5px;
  border-radius: 49px;
  overflow: hidden;
  background: #07090c;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    inset 0 0 0 2px rgba(0, 0, 0, 0.76);
  box-sizing: border-box;
}
.ios-display::after {
  content: "";
  position: absolute;
  inset: 5px;
  z-index: 3;
  border-radius: 44px;
  pointer-events: none;
  background: linear-gradient(118deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.03) 17%, transparent 30%, transparent 76%, rgba(255, 255, 255, 0.045) 100%);
}
.ios-status-icons {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #0b0d10;
}
.ios-island {
  position: absolute;
  left: 50%;
  top: 10px;
  transform: translateX(-50%);
  width: 86px;
  height: 24px;
  border-radius: 14px;
  background: linear-gradient(180deg, #050607, #000);
  z-index: 5;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 1px 2px rgba(0, 0, 0, 0.26);
}
.ios-island::after {
  content: "";
  position: absolute;
  right: 9px;
  top: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 36%, #26364a 0 18%, #080b11 56%, #000 100%);
  box-shadow: inset 0 0 0 1px rgba(90, 130, 170, 0.2);
}
.ios-screen {
  height: 520px;
  border-radius: 0 0 44px 44px;
  overflow: hidden;
  background: #fff;
}
.ios-screen iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}
.phone-preview-placeholder {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 34px 24px;
  color: #667085;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(255, 255, 255, 1)),
    #fff;
}
.phone-preview-placeholder > span {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 13px;
  border: 1px solid #d9e3ef;
  border-radius: 14px;
  color: #1e56d6;
  background: #eef4ff;
}
.phone-preview-placeholder b {
  color: #1d2939;
  font-size: 14px;
}
.phone-preview-placeholder p {
  max-width: 190px;
  margin-top: 6px;
  color: #98a2b3;
  font-size: 11px;
  line-height: 1.65;
}
.ios-home-indicator {
  position: absolute;
  left: 50%;
  bottom: 9px;
  z-index: 6;
  width: 104px;
  height: 4px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.24);
  pointer-events: none;
  transform: translateX(-50%);
}

/* 公众号账号卡片移动端适配 */
.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);
}

/* 事实保真模式 */
.fact-mode-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}
.fact-mode-copy {
  flex: 1;
  min-width: 0;
}
.fact-mode-copy label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}
.fact-mode-copy p {
  margin-top: 2px;
}

/* 代理自助申领卡密 */
.agent-claim-review {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}
.agent-review-item {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid #dbe6f7;
  border-radius: 8px;
  background: #f7faff;
}
.agent-review-item > i {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #1e56d6;
  background: #e8f0ff;
}
.agent-review-item span,
.agent-review-item small,
.agent-review-item b {
  display: block;
}
.agent-review-item span {
  min-width: 0;
}
.agent-review-item small {
  color: #667085;
  font-size: 10.5px;
}
.agent-review-item b {
  margin-top: 1px;
  color: #101828;
  font-size: 12.5px;
  white-space: nowrap;
}
.agent-review-item.is-active {
  border-color: #c9ead8;
  background: #f2fbf6;
}
.agent-review-item.is-active > i {
  color: #15803d;
  background: #dcfce7;
}
.agent-review-item.is-scheduled {
  border-color: #f2dfb6;
  background: #fffbf2;
}
.agent-review-item.is-scheduled > i {
  color: #b45309;
  background: #fef3c7;
}
@media (min-width: 480px) {
  .agent-claim-review {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .agent-review-item {
    gap: 6px;
    padding: 8px;
  }
  .agent-review-item > i {
    width: 26px;
    height: 26px;
  }
  .agent-review-item small {
    font-size: 9.5px;
  }
  .agent-review-item b {
    font-size: 11.5px;
  }
}
@media (max-width: 480px) {
  .agent-claim-review {
    gap: 6px;
  }
  .agent-review-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    padding: 8px 7px;
  }
  .agent-review-item > i {
    width: 24px;
    height: 24px;
    border-radius: 7px;
  }
  .agent-review-item small {
    font-size: 9px;
  }
  .agent-review-item b {
    font-size: 10.5px;
    line-height: 1.25;
    white-space: normal;
  }
}
.agent-card-options {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  min-width: 0;
}
.agent-card-option {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  grid-template-rows: auto;
  align-items: center;
  gap: 12px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}
.agent-card-option input {
  flex: 0 0 auto;
}
.agent-card-option span {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}
.agent-card-option b,
.agent-card-option small {
  display: block;
  white-space: nowrap;
}
.agent-card-option small {
  overflow: visible;
  line-height: 1.4;
  text-overflow: clip;
  white-space: normal;
}
.agent-card-option em {
  grid-column: 2;
  grid-row: 1;
  color: var(--primary-dark);
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}
.agent-card-qty {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
  grid-column: 3;
  grid-row: 1;
}
.agent-card-qty button {
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink-2);
  font-weight: 800;
  line-height: 1;
}
.agent-card-qty input {
  width: 48px;
  height: 28px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: #fff;
}
.agent-claim-total {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin: 12px 0;
  font-size: 13px;
  color: var(--muted);
}
.agent-claim-total b {
  color: var(--primary-dark);
  font-size: 18px;
}
.agent-rate-chip {
  position: relative;
  display: inline-grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  min-width: 148px;
  min-height: 58px;
  padding: 9px 14px 9px 12px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(215, 181, 109, 0.58);
  border-radius: 12px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 12%, rgba(240, 220, 174, 0.18), transparent 28%),
    linear-gradient(135deg, #151e28 0%, #22313d 58%, #121a23 100%);
  box-shadow:
    0 10px 22px rgba(15, 23, 42, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.agent-rate-chip::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 77%, rgba(231, 202, 137, 0.08) 77% 78%, transparent 78%),
    repeating-linear-gradient(135deg, transparent 0 9px, rgba(255, 255, 255, 0.025) 9px 10px);
}
.agent-rate-chip::after {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, #f0dcae, #b28d4f);
}
.agent-rate-chip-head {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.agent-rate-chip-head i {
  width: 23px;
  height: 23px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 8px;
  color: #f0dcae;
  background: rgba(240, 220, 174, 0.1);
  border: 1px solid rgba(240, 220, 174, 0.28);
}
.agent-rate-chip small {
  display: block;
  color: rgba(245, 242, 234, 0.7);
  font-size: 10px;
  line-height: 1;
  white-space: nowrap;
}
.agent-rate-chip b {
  display: flex;
  align-items: flex-start;
  color: #f0dcae;
  font-size: 23px;
  font-weight: 900;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.agent-rate-chip b em {
  margin: 1px 0 0 1px;
  color: rgba(240, 220, 174, 0.8);
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}
.agent-order-list {
  display: grid;
  gap: 10px;
}
.agent-transfer-note-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 8px;
}
.agent-transfer-note-row .input {
  min-width: 0;
  height: 44px;
}
.agent-transfer-note-row .btn {
  height: 44px;
  min-width: 82px;
  padding: 0 13px;
  white-space: nowrap;
}
@media (max-width: 420px) {
  .agent-transfer-note-row {
    gap: 6px;
  }
  .agent-transfer-note-row .btn {
    min-width: 70px;
    padding: 0 9px;
    font-size: 12px;
  }
}
.agent-order-item {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.agent-order-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line-2);
}
.agent-order-head b {
  color: var(--ink);
  font-size: 14px;
}
.agent-order-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 7px;
  padding-top: 10px;
}
.agent-order-grid span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  padding: 7px 8px;
  border-radius: 6px;
  background: var(--surface-2);
}
.agent-order-grid small {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 11px;
}
.agent-order-grid b {
  min-width: 0;
  color: var(--ink-2);
  font-size: 12px;
  text-align: right;
  word-break: break-word;
}
.agent-order-reason {
  margin-top: 9px;
  padding: 8px 9px;
  border-radius: 6px;
  color: #b42318;
  background: #fef3f2;
  font-size: 11.5px;
  line-height: 1.5;
}
.agent-order-code {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}
.agent-order-code small {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 11px;
}
.agent-order-code code {
  flex: 1;
  min-width: 0;
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 700;
  word-break: break-all;
}
.agent-order-code.pending span {
  color: var(--muted);
  font-size: 12px;
}
@media (min-width: 720px) {
  .agent-order-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .agent-order-grid span {
    display: block;
  }
  .agent-order-grid small,
  .agent-order-grid b {
    display: block;
    text-align: left;
  }
  .agent-order-grid b {
    margin-top: 3px;
  }
}

.agent-current-orders-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.agent-current-orders-head h4 {
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}
.agent-current-orders-head p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.5;
}
.agent-current-orders-head .btn span {
  min-width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #1e56d6;
  background: #e8f0ff;
  font-size: 10px;
}
.agent-current-empty {
  padding: 18px;
  border: 1px dashed #d6e1ef;
  border-radius: 9px;
  color: #667085;
  background: #f8fafc;
  text-align: center;
  font-size: 11.5px;
}

.agent-history-page-head {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  margin-bottom: 14px;
}
.agent-history-back {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d7e1ec;
  border-radius: 10px;
  color: #344054;
  background: #fff;
}
.agent-history-page-head h2 {
  color: #101828;
  font-size: 19px;
  font-weight: 900;
}
.agent-history-page-head p {
  margin-top: 3px;
  color: #667085;
  font-size: 11px;
  line-height: 1.55;
}
.agent-history-card {
  width: 100%;
  min-width: 0;
}
.agent-history-toolbar {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
  padding: 14px;
  border: 1px solid #dce5ef;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(16, 24, 40, 0.04);
}
.agent-history-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}
.agent-history-search .input {
  min-width: 0;
  height: 40px;
}
.agent-history-search .btn {
  height: 40px;
  min-width: 78px;
  padding: 0 12px;
}
.agent-history-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid #e0e7f0;
  border-radius: 9px;
  background: #f2f4f7;
}
.agent-history-filters button {
  height: 34px;
  min-width: 0;
  border: 0;
  border-radius: 7px;
  color: #667085;
  background: transparent;
  font-size: 11.5px;
  font-weight: 800;
}
.agent-history-filters button.active {
  color: #123d9c;
  background: #fff;
  box-shadow: 0 2px 7px rgba(16, 24, 40, 0.1);
}
.agent-history-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  color: #667085;
  font-size: 11px;
}
.agent-history-summary b {
  color: #1e56d6;
  font-size: 13px;
}
.agent-history-list {
  min-width: 0;
}
.agent-history-item {
  border-color: #dce5ef;
  box-shadow: 0 2px 8px rgba(16, 24, 40, 0.035);
}
.agent-history-transfer {
  margin-top: 9px;
  color: #667085;
  font-size: 10.5px;
  line-height: 1.55;
  word-break: break-word;
}
.agent-history-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 48px 16px;
  border: 1px dashed #d6e1ef;
  border-radius: 10px;
  color: #667085;
  background: #f8fafc;
  text-align: center;
}
.agent-history-empty svg {
  color: #98a2b3;
}
.agent-history-empty b {
  color: #1d2939;
  font-size: 13px;
}
.agent-history-empty p {
  font-size: 11px;
}

@media (max-width: 520px) {
  .agent-current-orders-head {
    grid-template-columns: minmax(0, 1fr);
  }
  .agent-current-orders-head .btn {
    width: 100%;
    justify-content: center;
  }
  .agent-history-toolbar {
    padding: 12px;
  }
  .agent-history-search .btn {
    min-width: 68px;
    padding: 0 8px;
  }
  .agent-history-summary .btn {
    display: none;
  }
}

/* 历史记录筛选工具栏 */
.hist-filter-bar {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  width: 100%;
  min-width: 0;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f2f4f7;
  box-sizing: border-box;
}
.hist-filter-bar.has-batch {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.hist-filter-btn {
  min-width: 0;
  padding: 8px 3px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #667085;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: none;
}
.hist-filter-btn:hover {
  color: #1e56d6;
  background: rgba(255, 255, 255, 0.72);
}
.hist-filter-btn.active {
  color: #123d9c;
  background: #fff;
  box-shadow: 0 2px 7px rgba(16, 24, 40, 0.1);
}
@media (max-width: 420px) {
  .hist-filter-bar {
    gap: 3px;
    padding: 3px;
  }
  .hist-filter-btn {
    padding: 7px 1px;
    font-size: 10.5px;
  }
}

/* 创作台工具与流程模块 */
.toolbar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}
.toolbar .tool-btn {
  width: 100%;
  min-width: 0;
  height: 36px;
  justify-content: center;
  padding: 0 5px;
  border-radius: 8px;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stage-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}
.stage-list .stage {
  width: 100%;
  min-width: 0;
  height: 36px;
  justify-content: center;
  gap: 3px;
  padding: 0 3px;
  border-radius: 8px;
  font-size: 10.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stage-list .stage svg {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
}
.stage-list .stage:last-child:nth-child(odd) {
  grid-column: auto;
}
@media (max-width: 420px) {
  .toolbar,
  .stage-list {
    gap: 6px;
  }
  .toolbar .tool-btn {
    height: 34px;
    padding: 0 3px;
    font-size: 11.5px;
  }
  .stage-list .stage {
    height: 34px;
    padding: 0 3px;
    font-size: 10px;
  }
}

/* 首页主操作按钮统一 */
.home-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  margin-top: 16px;
}
.home-actions .btn {
  width: 100%;
  min-width: 0;
  height: 42px;
  justify-content: center;
  padding: 0 8px;
  border-radius: 8px;
  font-size: 12.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.home-actions .btn svg {
  flex: 0 0 auto;
}
@media (min-width: 720px) {
  .home-actions {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* 创作台双列参数固定并排 */
#studio-common-fields > .grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
#studio-common-fields > .grid-2 > .field {
  min-width: 0;
}
#studio-common-fields > .grid-2 .select,
#studio-common-fields > .grid-2 .input {
  width: 100%;
  min-width: 0;
}
@media (max-width: 420px) {
  #studio-common-fields > .grid-2 .select,
  #studio-common-fields > .grid-2 .input {
    padding-left: 9px;
    padding-right: 26px;
    font-size: 12px;
  }
  .home-capabilities {
    gap: 3px;
  }
  .home-capabilities span {
    gap: 3px;
    padding: 5px 1px;
    font-size: 9px;
  }
  .home-capabilities svg {
    width: 11px;
    height: 11px;
  }
}

/* 落地页主操作固定单行 */
.landing-hero-cta {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 10px;
  width: 100%;
  min-width: 0;
}
.landing-hero-cta > .landing-btn-primary,
.landing-hero-cta > .landing-btn-ghost {
  width: 100%;
  min-width: 0;
  height: 46px;
  justify-content: center;
  padding: 0 8px;
  font-size: 13.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 560px) {
  .landing-hero-cta {
    gap: 7px;
  }
  .landing-hero-cta > .landing-btn-primary,
  .landing-hero-cta > .landing-btn-ghost {
    height: 42px;
    padding: 0 3px;
    font-size: 11px;
    gap: 4px;
  }
  .landing-hero-cta svg {
    width: 13px;
    height: 13px;
  }
}
@media (max-width: 340px) {
  .stage-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* 历史记录页固定排版 */
.history-page-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}
.history-page-head > div {
  min-width: 0;
}
.history-page-head h2 {
  line-height: 1.35;
}
.history-page-note {
  padding: 9px 12px;
  border: 1px solid #e4eaf2;
  border-radius: 7px;
  background: #f8fafc;
  color: #667085;
  line-height: 1.6;
}
.history-create-btn {
  min-width: 112px;
  height: 40px;
  padding: 0 14px;
  white-space: nowrap;
}
.history-page-card {
  min-width: 0;
  overflow: hidden;
}
.history-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 8px;
}
.history-search-row .input {
  min-width: 0;
  height: 40px;
}
.history-search-row .btn {
  height: 40px;
  min-width: 78px;
  padding: 0 12px;
  white-space: nowrap;
}
.hist-batch-bar {
  align-items: stretch;
  row-gap: 8px;
}
.history-list {
  gap: 8px;
}
.history-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  column-gap: 18px;
  align-items: center;
  min-width: 0;
  padding: 14px 16px 14px 18px;
  border-color: #e1e7ef;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.035);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}
.history-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  bottom: 11px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: #d9e2ec;
  transition: background 0.16s ease;
}
.history-item:hover {
  border-color: #cad7e6;
  box-shadow: 0 5px 16px rgba(16, 24, 40, 0.07);
}
.history-item.is-selected::before {
  background: var(--primary);
}
.history-head {
  grid-column: 1;
  grid-row: 1;
  align-items: center;
  min-width: 0;
}
.history-head > a {
  display: block;
  flex: 1;
  min-width: 0;
  color: var(--ink);
}
.history-head h4 {
  line-height: 1.5;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.history-item .meta {
  grid-column: 1;
  grid-row: 2;
  min-width: 0;
  gap: 6px 10px;
  margin-top: 7px;
}
.history-item .meta > span {
  white-space: nowrap;
}
.history-item .meta .badge {
  padding: 2px 8px;
  font-size: 11px;
}
.history-item .ops {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  margin-top: 0;
}
.history-item .ops .btn {
  min-width: 74px;
  height: 32px;
  padding: 0 11px;
  white-space: nowrap;
}
.history-list > .pagination {
  grid-column: 1 / -1;
}

@media (max-width: 720px) {
  .history-item {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    row-gap: 0;
    padding: 14px;
  }
  .history-head,
  .history-item .meta,
  .history-item .ops {
    grid-column: 1;
    grid-row: auto;
  }
  .history-item .ops {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #edf1f5;
  }
  .history-item .ops .btn {
    width: 100%;
    min-width: 0;
    height: 34px;
  }
}

@media (max-width: 520px) {
  .history-page-head {
    gap: 8px;
  }
  .history-create-btn {
    min-width: 104px;
    height: 38px;
    padding: 0 10px;
    font-size: 12.5px;
  }
  .history-page-card.card-pad {
    padding: 14px;
  }
  .history-search-row .btn {
    min-width: 72px;
    padding: 0 9px;
  }
}

@media (max-width: 420px) {
  .history-page-card.card-pad {
    padding: 12px;
  }
  .history-page-note {
    padding: 8px 10px;
    font-size: 11px;
  }
  .history-create-btn {
    min-width: 98px;
    padding: 0 8px;
    font-size: 12px;
  }
  .history-search-row {
    gap: 6px;
  }
  .history-search-row .btn {
    min-width: 66px;
    padding: 0 7px;
    font-size: 12px;
  }
  .hist-batch-bar {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }
  .hist-batch-bar .btn {
    width: 100%;
    min-width: 0;
    height: 34px;
    justify-content: center;
    gap: 3px;
    padding: 0 3px;
    font-size: 10.5px;
    white-space: nowrap;
  }
  .hist-batch-bar .btn svg {
    flex: 0 0 auto;
    width: 12px;
    height: 12px;
  }
  .history-item {
    padding: 13px 12px 13px 14px;
  }
  .history-item .ops {
    gap: 6px;
  }
}

/* 公众号账号卡片 */
.wechat-account {
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.wechat-account.card-pad {
  padding: 14px;
}
.wechat-account-head {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}
.wechat-account-head .wechat-avatar {
  width: 52px;
  height: 52px;
  font-size: 19px;
}
.wechat-account-title {
  flex: 1;
  min-width: 0;
}
.wechat-account-name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}
.wechat-account-name b {
  min-width: 0;
  color: var(--ink);
  font-size: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wechat-account-name .badge {
  flex: 0 0 auto;
}
.wechat-account-title p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11.5px;
}
.wechat-account-info {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.wechat-account-info > div {
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--line-2);
  border-radius: 7px;
  background: var(--surface-2);
}
.wechat-account-info small,
.wechat-account-info b {
  display: block;
}
.wechat-account-info small {
  color: var(--muted);
  font-size: 9.5px;
}
.wechat-account-info b {
  margin-top: 2px;
  color: var(--ink-2);
  font-size: 11px;
  word-break: break-all;
}
.wechat-account-info b.is-ok {
  color: #15803d;
}
.wechat-account-info b.is-warn {
  color: #b45309;
}
.wechat-whitelist {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 8px 9px;
  border: 1px dashed #bcd3f0;
  border-radius: 8px;
  background: #f5f9ff;
}
.wechat-whitelist-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #1e56d6;
  background: #e4efff;
}
.wechat-whitelist-copy b {
  display: block;
  color: var(--ink);
  font-size: 11.5px;
}
.wechat-whitelist-copy p {
  margin-top: 1px;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.35;
}
.wechat-whitelist code {
  grid-column: auto;
  display: block;
  min-width: 108px;
  max-width: 132px;
  padding: 7px;
  border-radius: 6px;
  color: #123d9c;
  background: #fff;
  border: 1px solid #d9e6f8;
  font-size: 10.5px;
  font-weight: 700;
  word-break: break-all;
}
.wechat-account .wechat-ops {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}
.wechat-account .wechat-ops .btn {
  min-width: 0;
  justify-content: center;
  padding-left: 5px;
  padding-right: 5px;
  white-space: nowrap;
}
.wechat-logs-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 0;
  cursor: pointer;
  list-style: none;
}
.wechat-logs-head::-webkit-details-marker {
  display: none;
}
.wechat-logs-head::after {
  content: "⌄";
  color: #98a2b3;
  font-size: 14px;
}
.wechat-logs[open] .wechat-logs-head {
  margin-bottom: 8px;
}
.wechat-logs[open] .wechat-logs-head::after {
  transform: rotate(180deg);
}
.wechat-log-list {
  max-height: 260px;
  overflow-y: auto;
}
.wechat-logs-head b {
  color: var(--ink);
  font-size: 12.5px;
}
.wechat-logs-head span {
  color: var(--muted);
  font-size: 11px;
}
.wechat-account .wechat-log {
  padding: 8px 0;
  border-bottom: 1px solid var(--line-2);
}
.wechat-account .wechat-log:last-child {
  border-bottom: 0;
}
@media (min-width: 720px) {
  .wechat-whitelist {
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
  }
  .wechat-whitelist code {
    grid-column: auto;
    min-width: 150px;
    text-align: center;
  }
}
@media (max-width: 420px) {
  .wechat-account-name {
    gap: 6px;
  }
}
.agent-payment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.agent-payment-grid.single {
  grid-template-columns: minmax(0, 1fr);
}
.agent-payment-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 82px;
  align-items: center;
  gap: 9px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}
.agent-payment-option.disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.agent-payment-option b,
.agent-payment-option small {
  display: block;
}
.agent-payment-option img {
  width: 82px;
  height: 82px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
  cursor: zoom-in;
}
.agent-payment-option em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}
@media (max-width: 720px) {
  .agent-card-option {
    gap: 10px;
  }
  .agent-card-option > span {
    width: 100%;
    grid-column: 1;
    grid-row: 1;
  }
  .agent-card-option em {
    display: block;
    grid-column: 2;
    grid-row: 1;
    white-space: normal;
  }
  .agent-card-qty {
    width: auto;
    justify-content: flex-end;
    grid-column: 3;
    grid-row: 1;
  }
}
@media (max-width: 640px) {
  .agent-payment-grid {
    grid-template-columns: 1fr;
  }
  .agent-card-option {
    gap: 6px;
    padding: 10px 8px;
  }
  .agent-card-option small {
    font-size: 10.5px;
  }
  .agent-card-option em {
    font-size: 13px;
  }
  .agent-card-qty {
    gap: 3px;
  }
  .agent-card-qty button {
    width: 25px;
  }
  .agent-card-qty input {
    width: 40px;
  }
}
@media (max-width: 420px) {
  .agent-card-option {
    gap: 4px;
    padding: 9px 6px;
  }
  .agent-card-option small {
    font-size: 9.5px;
  }
  .agent-card-option em {
    font-size: 12px;
  }
  .agent-card-qty {
    gap: 2px;
  }
  .agent-card-qty button {
    width: 22px;
    height: 26px;
  }
  .agent-card-qty input {
    width: 34px;
    height: 26px;
  }
}
@media (max-width: 360px) {
  .agent-card-option {
    gap: 5px;
    padding: 8px 4px;
  }
  .agent-card-option em {
    font-size: 10.5px;
  }
  .agent-card-qty {
    gap: 1px;
  }
  .agent-card-qty button {
    width: 18px;
    height: 24px;
  }
  .agent-card-qty input {
    width: 26px;
    height: 24px;
    padding: 0;
  }
}

/* 代理推广入口与封面 */
.agent-promo-entry {
  padding: 0;
  overflow: hidden;
  border: 1px solid #d7e3f7;
  background: linear-gradient(135deg, #f7fbff 0%, #edf5ff 52%, #fff8e8 100%);
}
.agent-promo-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 16px;
}
.agent-promo-link::after {
  content: "";
  position: absolute;
  right: -35px;
  top: -55px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: 18px solid rgba(37, 99, 235, 0.07);
}
.agent-promo-art {
  position: relative;
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(145deg, #1e56d6, #123d9c);
  box-shadow: 0 8px 18px rgba(30, 86, 214, 0.24);
}
.agent-promo-art-main {
  display: flex;
  align-items: center;
  justify-content: center;
}
.agent-promo-art-coin {
  position: absolute;
  right: -7px;
  bottom: -5px;
  width: 25px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #5d430c;
  background: linear-gradient(135deg, #f5d889, #d9a62e);
  border: 2px solid #fff;
  box-shadow: 0 4px 9px rgba(119, 81, 8, 0.22);
}
.agent-promo-art-coin svg {
  width: 14px;
  height: 14px;
}
.agent-promo-copy {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
}
.agent-promo-copy small,
.agent-promo-copy b,
.agent-promo-copy em {
  display: block;
}
.agent-promo-copy small {
  color: #1e56d6;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
}
.agent-promo-copy b {
  margin-top: 3px;
  color: #101828;
  font-size: 15px;
  font-weight: 800;
}
.agent-promo-copy em {
  margin-top: 4px;
  color: #667085;
  font-size: 11.5px;
  font-style: normal;
  line-height: 1.5;
}
.agent-promo-arrow {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: #1e56d6;
  box-shadow: 0 6px 14px rgba(30, 86, 214, 0.18);
}

/* API 设置封面入口 */
.api-poster-entry {
  padding: 0;
  overflow: hidden;
  border-color: rgba(62, 150, 205, 0.28);
  background: #0b1a2a;
  box-shadow: 0 12px 28px rgba(10, 31, 52, 0.14);
}
.api-poster-link {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 116px;
  padding: 18px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 88% 18%, rgba(57, 189, 255, 0.17), transparent 28%),
    radial-gradient(circle at 10% 112%, rgba(41, 211, 170, 0.13), transparent 34%),
    linear-gradient(128deg, #081522 0%, #10283d 58%, #0c2134 100%);
}
.api-poster-link::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 72%, rgba(255, 255, 255, 0.04) 72% 72.5%, transparent 72.5%),
    repeating-linear-gradient(135deg, transparent 0 12px, rgba(255, 255, 255, 0.022) 12px 13px);
}
.api-poster-link::after {
  content: "API";
  position: absolute;
  right: 72px;
  bottom: -22px;
  color: rgba(255, 255, 255, 0.035);
  font-size: 78px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  pointer-events: none;
}
.api-poster-mark,
.api-poster-copy,
.api-poster-tail {
  position: relative;
  z-index: 1;
}
.api-poster-mark {
  position: relative;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(139, 226, 255, 0.34);
  border-radius: 17px;
  color: #fff;
  background: linear-gradient(145deg, #25c8dd 0%, #1975e8 55%, #1250b8 100%);
  box-shadow:
    0 12px 24px rgba(4, 16, 31, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.api-poster-mark::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  pointer-events: none;
}
.api-poster-mark-main {
  display: flex;
  align-items: center;
  justify-content: center;
}
.api-poster-mark-spark {
  position: absolute;
  right: -7px;
  bottom: -6px;
  width: 25px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #0d2032;
  border-radius: 50%;
  color: #61450c;
  background: linear-gradient(135deg, #ffe7a3, #dfa92f);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.28);
}
.api-poster-mark-spark svg {
  width: 12px;
  height: 12px;
}
.api-poster-copy {
  min-width: 0;
}
.api-poster-copy small,
.api-poster-copy b,
.api-poster-copy em {
  display: block;
  letter-spacing: 0;
}
.api-poster-copy small {
  color: #72dfff;
  font-size: 10px;
  font-weight: 800;
}
.api-poster-copy b {
  margin-top: 4px;
  color: #fff;
  font-size: 19px;
  font-weight: 900;
  line-height: 1.15;
}
.api-poster-copy em {
  margin-top: 5px;
  color: rgba(235, 245, 255, 0.68);
  font-size: 11.5px;
  font-style: normal;
  line-height: 1.4;
}
.api-poster-tail {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.api-poster-status.badge {
  padding: 5px 9px;
  border: 1px solid transparent;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.api-poster-status.badge-ok {
  color: #9df4cf;
  background: rgba(47, 209, 145, 0.13);
  border-color: rgba(89, 226, 170, 0.28);
}
.api-poster-status.badge-gray {
  color: #f1d89d;
  background: rgba(240, 204, 118, 0.12);
  border-color: rgba(240, 204, 118, 0.24);
}
.api-poster-arrow {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  color: #dff8ff;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}
.api-poster-link:hover .api-poster-arrow {
  color: #082033;
  background: #69ddff;
  transform: translate(1px, -1px);
}

@media (max-width: 420px) {
  .api-poster-link {
    grid-template-columns: 50px minmax(0, 1fr) auto;
    gap: 11px;
    min-height: 108px;
    padding: 15px 14px;
  }
  .api-poster-mark {
    width: 50px;
    height: 50px;
    border-radius: 15px;
  }
  .api-poster-mark::after {
    inset: 5px;
    border-radius: 10px;
  }
  .api-poster-mark-spark {
    right: -6px;
    bottom: -5px;
    width: 23px;
    height: 23px;
  }
  .api-poster-copy b {
    font-size: 18px;
  }
  .api-poster-copy em {
    font-size: 10.5px;
  }
  .api-poster-tail {
    gap: 8px;
  }
  .api-poster-status.badge {
    padding: 4px 7px;
    font-size: 10px;
  }
  .api-poster-arrow {
    width: 30px;
    height: 30px;
  }
}

/* 运营技巧封面入口 */
.ops-tips-entry {
  padding: 0;
  overflow: hidden;
  border-color: rgba(42, 164, 196, 0.32);
  border-radius: 10px;
  background: #081b2d;
  box-shadow: 0 12px 28px rgba(7, 30, 48, 0.14);
}
.ops-tips-link {
  position: relative;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 124px;
  padding: 18px 20px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 92% 10%, rgba(68, 220, 205, 0.18), transparent 28%),
    radial-gradient(circle at 8% 112%, rgba(42, 130, 238, 0.2), transparent 35%),
    linear-gradient(128deg, #071a2a 0%, #0c3144 58%, #0b2638 100%);
}
.ops-tips-link:hover {
  color: #fff;
}
.ops-tips-link::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 76%, rgba(255, 255, 255, 0.045) 76% 76.5%, transparent 76.5%),
    repeating-linear-gradient(135deg, transparent 0 12px, rgba(255, 255, 255, 0.022) 12px 13px);
}
.ops-tips-link::after {
  content: "GROW";
  position: absolute;
  right: 88px;
  bottom: -20px;
  color: rgba(255, 255, 255, 0.04);
  font-size: 68px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  pointer-events: none;
}
.ops-tips-mark,
.ops-tips-copy,
.ops-tips-action {
  position: relative;
  z-index: 1;
}
.ops-tips-mark {
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(120, 233, 228, 0.34);
  border-radius: 17px;
  color: #fff;
  background: linear-gradient(145deg, #22c8c5 0%, #148fc7 52%, #1662bd 100%);
  box-shadow:
    0 12px 24px rgba(3, 18, 31, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.ops-tips-mark::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 11px;
  pointer-events: none;
}
.ops-tips-mark-main,
.ops-tips-mark-spark {
  display: flex;
  align-items: center;
  justify-content: center;
}
.ops-tips-mark-spark {
  position: absolute;
  right: -7px;
  bottom: -6px;
  width: 25px;
  height: 25px;
  border: 2px solid #0a2538;
  border-radius: 50%;
  color: #5a3c05;
  background: linear-gradient(135deg, #ffe8a5, #e6ac2f);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.28);
}
.ops-tips-mark-spark svg {
  width: 12px;
  height: 12px;
}
.ops-tips-copy {
  min-width: 0;
}
.ops-tips-copy small,
.ops-tips-copy b,
.ops-tips-copy em {
  display: block;
  letter-spacing: 0;
}
.ops-tips-copy small {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #79e8e2;
  font-size: 10.5px;
  font-weight: 800;
}
.ops-tips-copy small svg {
  width: 12px;
  height: 12px;
}
.ops-tips-copy b {
  margin-top: 4px;
  color: #fff;
  font-size: 19px;
  font-weight: 900;
  line-height: 1.2;
}
.ops-tips-copy em {
  margin-top: 6px;
  color: rgba(232, 247, 251, 0.68);
  font-size: 11.5px;
  font-style: normal;
  line-height: 1.45;
}
.ops-tips-action {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 8px 7px 11px;
  border: 1px solid rgba(118, 229, 226, 0.3);
  border-radius: 999px;
  color: #d9ffff;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}
.ops-tips-action small {
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.ops-tips-action i {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #062436;
  background: #79e8e2;
}
.ops-tips-link:hover .ops-tips-action {
  color: #062436;
  background: #79e8e2;
  transform: translate(1px, -1px);
}
.ops-tips-link:hover .ops-tips-action i {
  color: #fff;
  background: #0c6f91;
}

@media (max-width: 520px) {
  .ops-tips-link {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 12px;
    min-height: 152px;
    padding: 15px 14px;
  }
  .ops-tips-mark {
    width: 52px;
    height: 52px;
    border-radius: 15px;
  }
  .ops-tips-mark::after {
    inset: 5px;
    border-radius: 10px;
  }
  .ops-tips-mark-spark {
    right: -6px;
    bottom: -5px;
    width: 23px;
    height: 23px;
  }
  .ops-tips-copy b {
    font-size: 18px;
  }
  .ops-tips-copy em {
    font-size: 10.5px;
  }
  .ops-tips-action {
    grid-column: 1 / -1;
    width: 100%;
    height: 36px;
    justify-content: center;
    margin-top: 2px;
    padding: 0 9px;
  }
  .ops-tips-link::after {
    right: 10px;
    bottom: -11px;
    font-size: 52px;
  }
}

@media (max-width: 360px) {
  .ops-tips-link {
    gap: 10px;
    padding: 14px 12px;
  }
  .ops-tips-copy b {
    font-size: 16px;
  }
  .ops-tips-copy em {
    font-size: 10px;
  }
}

/* 代理申请表单 */
.agent-apply-card {
  padding: 0;
  overflow: hidden;
  border-color: #d6e2ef;
  border-radius: 10px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.07);
}
.agent-apply-head {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 18px;
  border-bottom: 1px solid #dce7f2;
  background:
    radial-gradient(circle at 92% 0%, rgba(30, 86, 214, 0.1), transparent 32%),
    linear-gradient(135deg, #f8fbff, #eef5ff);
}
.agent-apply-head-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(145deg, #2676e8, #123d9c);
  box-shadow: 0 9px 18px rgba(30, 86, 214, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}
.agent-apply-head-copy {
  min-width: 0;
}
.agent-apply-head-copy small,
.agent-apply-head-copy h3,
.agent-apply-head-copy p {
  display: block;
}
.agent-apply-head-copy small {
  color: #1e56d6;
  font-size: 10.5px;
  font-weight: 800;
}
.agent-apply-head-copy h3 {
  margin-top: 3px;
  color: #101828;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.25;
}
.agent-apply-head-copy p {
  margin-top: 4px;
  color: #667085;
  font-size: 11.5px;
  line-height: 1.5;
}
.agent-apply-head > .badge {
  white-space: nowrap;
}
.agent-apply-body {
  padding: 18px;
}
.agent-apply-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}
.agent-apply-card .agent-apply-field {
  min-width: 0;
  margin-bottom: 0;
}
.agent-apply-card .agent-apply-field > label:not(.agent-upload-box) {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  color: #344054;
  font-size: 13px;
  font-weight: 800;
}
.agent-field-index {
  min-width: 24px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: #1e56d6;
  background: #e9f1ff;
  font-size: 10px;
  font-weight: 900;
}
.agent-apply-card .input,
.agent-apply-card .textarea {
  border-color: #d7e1ec;
  background: #fbfdff;
}
.agent-apply-card .input {
  height: 44px;
}
.agent-apply-card .textarea {
  min-height: 108px;
}
.agent-apply-card .agent-apply-field > .hint {
  margin-top: 6px;
  font-size: 10.5px;
  line-height: 1.5;
}
.agent-apply-note {
  margin-top: 16px;
}
.agent-apply-card label.agent-upload-box {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 76px;
  padding: 12px;
  border: 1px dashed #b9cce3;
  border-radius: 9px;
  background: #f8fbff;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}
.agent-upload-box:hover {
  border-color: #1e56d6;
  background: #f2f7ff;
}
.agent-upload-box:focus-within {
  border-color: #1e56d6;
  box-shadow: 0 0 0 3px rgba(30, 86, 214, 0.1);
}
.agent-upload-box input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
.agent-upload-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: #1e56d6;
  background: #e7f0ff;
}
.agent-upload-copy {
  min-width: 0;
}
.agent-upload-copy b,
.agent-upload-copy small {
  display: block;
}
.agent-upload-copy b {
  color: #1d2939;
  font-size: 12.5px;
  font-weight: 800;
}
.agent-upload-copy small {
  margin-top: 2px;
  color: #98a2b3;
  font-size: 10px;
}
.agent-upload-action {
  padding: 6px 9px;
  border: 1px solid #cbd9ea;
  border-radius: 6px;
  color: #1e56d6;
  background: #fff;
  font-size: 10.5px;
  font-weight: 800;
  white-space: nowrap;
}
.agent-qr-preview {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid #d6e8dd;
  border-radius: 9px;
  background: #f7fcf9;
}
.agent-qr-preview img {
  width: 66px;
  height: 66px;
  object-fit: cover;
  border: 1px solid #d4e2ec;
  border-radius: 8px;
  background: #fff;
}
.agent-qr-preview span,
.agent-qr-preview b,
.agent-qr-preview small {
  display: block;
}
.agent-qr-preview b {
  color: #1d2939;
  font-size: 12.5px;
  font-weight: 800;
}
.agent-qr-preview small {
  margin-top: 3px;
  color: #667085;
  font-size: 10.5px;
}
.agent-qr-preview > .badge {
  white-space: nowrap;
}
.agent-reject {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  line-height: 1.55;
}
.agent-reject svg {
  flex: 0 0 auto;
  margin-top: 2px;
}
.agent-commission-panel {
  margin-top: 16px;
  padding: 15px;
  border: 1px solid #d9e3ef;
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(245, 249, 255, 0.92)),
    #f8fafc;
}
.agent-commission-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.agent-commission-head > span {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 10px;
  color: #1e56d6;
  background: #e8f0ff;
}
.agent-commission-head b,
.agent-commission-head small {
  display: block;
}
.agent-commission-head b {
  color: #101828;
  font-size: 14px;
  font-weight: 900;
}
.agent-commission-head small {
  margin-top: 2px;
  color: #667085;
  font-size: 10.5px;
}
.agent-commission-levels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 13px;
}
.agent-commission-levels > span {
  min-width: 0;
  padding: 10px;
  border: 1px solid #d9e4f2;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
}
.agent-commission-levels small,
.agent-commission-levels b {
  display: block;
}
.agent-commission-levels small {
  color: #667085;
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.agent-commission-levels b {
  margin-top: 3px;
  color: #1e56d6;
  font-size: 21px;
  font-weight: 900;
  line-height: 1;
}
.agent-commission-levels b em {
  margin-left: 1px;
  font-size: 11px;
  font-style: normal;
}
.agent-commission-note,
.agent-commission-empty {
  margin-top: 11px;
  color: #667085;
  font-size: 10.5px;
  line-height: 1.65;
}
.agent-commission-empty {
  padding: 9px 10px;
  border-radius: 7px;
  background: #fff7e8;
  color: #9a6700;
}
.agent-apply-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e7edf4;
}
.agent-apply-footer p {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: #667085;
  font-size: 10.5px;
  line-height: 1.5;
}
.agent-apply-footer p svg {
  flex: 0 0 auto;
}
.agent-apply-submit {
  min-width: 150px;
  height: 44px;
  padding: 0 18px;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .agent-apply-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 520px) {
  .agent-apply-head {
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: start;
    gap: 11px;
    padding: 15px 14px;
  }
  .agent-apply-head-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }
  .agent-apply-head > .badge {
    grid-column: 2;
    justify-self: start;
    margin-top: 2px;
  }
  .agent-apply-body {
    padding: 14px;
  }
  .agent-apply-grid {
    gap: 14px;
  }
  .agent-apply-card label.agent-upload-box {
    grid-template-columns: 36px minmax(0, 1fr) auto;
    gap: 8px;
    min-height: 72px;
    padding: 10px;
  }
  .agent-upload-icon {
    width: 36px;
    height: 36px;
  }
  .agent-qr-preview {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 10px;
  }
  .agent-qr-preview img {
    width: 58px;
    height: 58px;
  }
  .agent-qr-preview > .badge {
    grid-column: 2;
    justify-self: start;
  }
  .agent-commission-levels {
    gap: 6px;
  }
  .agent-commission-levels > span {
    padding: 9px 7px;
  }
  .agent-commission-levels b {
    font-size: 19px;
  }
  .agent-apply-footer {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
  .agent-apply-submit {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 360px) {
  .agent-apply-head-copy h3 {
    font-size: 16px;
  }
  .agent-upload-action {
    display: none;
  }
  .agent-apply-card label.agent-upload-box {
    grid-template-columns: 36px minmax(0, 1fr);
  }
  .agent-commission-head small {
    line-height: 1.45;
  }
}

.agent-commission-policy {
  margin-top: 9px;
  padding: 9px 10px;
  border-left: 3px solid #1e56d6;
  border-radius: 0 7px 7px 0;
  color: #27406b;
  background: #eef5ff;
  font-size: 10.5px;
  line-height: 1.65;
}

.agent-level-rule-card {
  padding: 0;
  overflow: hidden;
  border-color: #d6e2ef;
}
.agent-level-rule-head {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 14px 16px;
  border-bottom: 1px solid #e1e9f2;
  background:
    radial-gradient(circle at 92% 0%, rgba(30, 86, 214, 0.11), transparent 34%),
    linear-gradient(135deg, #f8fbff, #edf5ff);
}
.agent-level-rule-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(145deg, #2d7bea, #123d9c);
  box-shadow: 0 8px 16px rgba(30, 86, 214, 0.2);
}
.agent-level-rule-head > div {
  min-width: 0;
}
.agent-level-rule-head small,
.agent-level-rule-head b {
  display: block;
}
.agent-level-rule-head small {
  color: #1e56d6;
  font-size: 10px;
  font-weight: 800;
}
.agent-level-rule-live {
  display: inline-flex;
  align-items: center;
  margin-left: 5px;
  padding: 2px 6px;
  border-radius: 999px;
  color: #15803d;
  background: #dcfce7;
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
  vertical-align: 1px;
}
.agent-level-rule-head b {
  margin-top: 3px;
  color: #101828;
  font-size: 14px;
  font-weight: 900;
}
.agent-level-rule-rate {
  min-width: 62px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #cfe0f6;
  border-radius: 11px;
  color: #1e56d6;
  background: rgba(255, 255, 255, 0.82);
  font-size: 20px;
  font-weight: 900;
}
.agent-level-rule-rate em {
  margin-left: 1px;
  font-size: 10px;
  font-style: normal;
}
.agent-level-rule-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  padding: 14px 16px 8px;
}
.agent-level-rule-steps > span {
  min-width: 0;
  padding: 10px 9px;
  border: 1px solid #e0e7f0;
  border-radius: 9px;
  background: #fbfcfe;
}
.agent-level-rule-steps i,
.agent-level-rule-steps b,
.agent-level-rule-steps small {
  display: block;
}
.agent-level-rule-steps i {
  color: #1e56d6;
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
}
.agent-level-rule-steps b {
  margin-top: 4px;
  color: #1d2939;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}
.agent-level-rule-steps small {
  margin-top: 3px;
  color: #667085;
  font-size: 9.5px;
  line-height: 1.45;
}
.agent-level-rule-status {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 6px 16px 0;
  overflow: hidden;
  border: 1px solid #e0e7f0;
  border-radius: 9px;
  background: #e0e7f0;
}
.agent-level-rule-status > span {
  min-width: 0;
  padding: 10px 11px;
  background: #fff;
}
.agent-level-rule-status small,
.agent-level-rule-status b {
  display: block;
}
.agent-level-rule-status small {
  color: #667085;
  font-size: 9.5px;
}
.agent-level-rule-status b {
  margin-top: 3px;
  color: #101828;
  font-size: 12px;
  font-weight: 900;
  word-break: break-word;
}
.agent-level-rule-status b em {
  font-size: 9.5px;
  font-style: normal;
}
.agent-level-rule-card > p {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 10px 16px 14px;
  color: #475467;
  font-size: 10.5px;
  line-height: 1.6;
}
.agent-level-rule-card > p svg {
  flex: 0 0 auto;
  margin-top: 2px;
  color: #1e56d6;
}
@media (max-width: 640px) {
  .agent-level-rule-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 420px) {
  .agent-level-rule-head {
    grid-template-columns: 40px minmax(0, 1fr) auto;
    gap: 9px;
    padding: 13px 12px;
  }
  .agent-level-rule-icon {
    width: 40px;
    height: 40px;
  }
  .agent-level-rule-head b {
    font-size: 13px;
  }
  .agent-level-rule-rate {
    min-width: 54px;
    height: 40px;
    font-size: 18px;
  }
  .agent-level-rule-steps {
    gap: 6px;
    padding: 12px 12px 7px;
  }
  .agent-level-rule-status {
    margin: 5px 12px 0;
  }
  .agent-level-rule-status > span {
    padding: 9px 7px;
  }
  .agent-level-rule-card > p {
    margin: 9px 12px 13px;
  }
}

.agent-center-cover {
  position: relative;
  min-height: 218px;
  overflow: hidden;
  padding: 24px;
  border: 1px solid #d4e2f5;
  border-radius: 12px;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0) 46%),
    linear-gradient(135deg, #eaf4ff 0%, #dceaff 48%, #fff3d6 100%);
}
.agent-center-cover::before {
  content: "";
  position: absolute;
  left: -80px;
  bottom: -120px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(30, 86, 214, 0.08);
}
.agent-cover-copy {
  position: relative;
  z-index: 2;
  max-width: 62%;
}
.agent-cover-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #123d9c;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(30, 86, 214, 0.14);
  font-size: 12px;
  font-weight: 800;
}
.agent-cover-copy h2 {
  margin-top: 14px;
  color: #101828;
  font-size: 25px;
  line-height: 1.25;
  font-weight: 900;
}
.agent-cover-copy p {
  margin-top: 9px;
  color: #52627a;
  font-size: 13px;
  line-height: 1.75;
}
.agent-cover-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}
.agent-cover-tags span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 9px;
  border-radius: 7px;
  color: #1d4f9f;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(30, 86, 214, 0.12);
  font-size: 11.5px;
  font-weight: 700;
}
.agent-cover-art {
  position: absolute;
  right: 4%;
  top: 22px;
  width: 240px;
  height: 174px;
}
.agent-cover-ring {
  position: absolute;
  right: 15px;
  top: 6px;
  width: 142px;
  height: 142px;
  border-radius: 50%;
  border: 22px solid rgba(30, 86, 214, 0.14);
}
.agent-cover-card {
  position: absolute;
  right: 72px;
  top: 50px;
  width: 78px;
  height: 98px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(145deg, #1e56d6, #123d9c);
  box-shadow: 0 18px 30px rgba(30, 86, 214, 0.24);
  transform: rotate(-7deg);
}
.agent-cover-coin {
  position: absolute;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #5d430c;
  background: linear-gradient(135deg, #f7df95, #d9a62e);
  border: 3px solid rgba(255, 255, 255, 0.88);
  box-shadow: 0 9px 18px rgba(119, 81, 8, 0.18);
  font-size: 17px;
  font-weight: 900;
}
.agent-cover-coin.coin-a {
  right: 28px;
  top: 34px;
}
.agent-cover-coin.coin-b {
  right: 54px;
  bottom: 5px;
  width: 34px;
  height: 34px;
  color: #0f5132;
  background: linear-gradient(135deg, #b9efd2, #45b97c);
}
.agent-cover-chart {
  position: absolute;
  right: 0;
  bottom: 13px;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  color: #1e56d6;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 22px rgba(30, 86, 214, 0.12);
}
@media (max-width: 640px) {
  .agent-center-cover {
    min-height: 360px;
    padding: 18px;
  }
  .agent-cover-copy {
    max-width: 100%;
  }
  .agent-cover-copy h2 {
    font-size: 21px;
  }
  .agent-cover-art {
    right: 10px;
    top: auto;
    bottom: 4px;
    transform: scale(0.86);
    transform-origin: right bottom;
  }
}

/* 代理中心：固定模块边界、字号与三列卡密布局 */
#agent-box {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
#agent-box .card {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
#agent-box .card > *,
#agent-box .agent-card-option,
#agent-box .agent-card-option > span,
#agent-box .agent-card-option > em,
#agent-box .agent-card-qty {
  min-width: 0;
  max-width: 100%;
}
#agent-box .card :where(img, video, iframe, table, pre, code, input, select, textarea) {
  max-width: 100%;
}
#agent-box .agent-card-options {
  grid-template-columns: minmax(0, 1fr);
}
#agent-box .agent-card-option {
  min-height: 76px;
  overflow-wrap: anywhere;
}
#agent-box .agent-card-option b {
  font-size: 14px;
  line-height: 1.35;
}
#agent-box .agent-card-option small {
  font-size: 10px;
  line-height: 1.4;
  white-space: nowrap;
}
#agent-box .agent-card-option em {
  font-size: 11px;
  line-height: 1.35;
}
#agent-box .agent-card-qty input {
  font-size: 13px;
}
@media (max-width: 420px) {
  #agent-box .agent-card-qty button {
    width: 20px;
  }
  #agent-box .agent-card-qty input {
    width: 28px;
  }
}
@media (max-width: 360px) {
  #agent-box .agent-card-qty button {
    width: 16px;
  }
  #agent-box .agent-card-qty input {
    width: 22px;
  }
}
@media (max-width: 340px) {
  #agent-box .agent-card-option small {
    white-space: normal;
  }
}

/* 会员权益通行证 */
#card-status .member-card {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto minmax(118px, 1fr) auto auto;
  gap: 18px;
  min-height: 292px;
  padding: 22px 24px 20px;
  overflow: hidden;
  border: 1px solid rgba(216, 188, 122, 0.4);
  border-radius: 18px;
  color: #f8f5ed;
  background:
    linear-gradient(90deg, transparent 0 71%, rgba(235, 211, 156, 0.07) 71% 71.25%, transparent 71.25%),
    linear-gradient(118deg, rgba(255, 255, 255, 0.055), transparent 21% 72%, rgba(255, 255, 255, 0.028)),
    linear-gradient(135deg, #050c16 0%, #0a1a2e 48%, #102c4b 100%);
  box-shadow:
    0 24px 52px rgba(6, 16, 30, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    inset 0 0 0 1px rgba(255, 255, 255, 0.025);
}
#card-status .member-card.is-inactive {
  filter: saturate(0.58);
}
#card-status .member-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    repeating-linear-gradient(135deg, transparent 0 18px, rgba(255, 255, 255, 0.022) 18px 19px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 28%);
}
#card-status .member-card::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #d7b56f 18%, #f3dfac 48%, #d7b56f 72%, transparent);
  opacity: 0.82;
}
#card-status .member-card-aura {
  position: absolute;
  z-index: -1;
  right: 5%;
  top: -32%;
  width: 26%;
  height: 166%;
  pointer-events: none;
  transform: rotate(16deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.075), transparent);
}
#card-status .member-card-watermark {
  position: absolute;
  z-index: -1;
  right: 30px;
  top: 70px;
  color: rgba(243, 223, 172, 0.035);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 132px;
  font-weight: 700;
  line-height: 0.8;
  letter-spacing: 0;
  pointer-events: none;
  user-select: none;
}
#card-status .member-card-top,
#card-status .member-card-main,
#card-status .member-card-benefits,
#card-status .member-card-foot {
  position: relative;
  z-index: 1;
}
#card-status .member-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
#card-status .member-card-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}
#card-status .member-card-emblem {
  position: relative;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 1px solid rgba(237, 210, 146, 0.42);
  border-radius: 12px;
  color: #f3dfac;
  background: linear-gradient(145deg, rgba(243, 223, 172, 0.13), rgba(12, 27, 48, 0.32));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
#card-status .member-card-emblem b {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  font-weight: 700;
}
#card-status .member-card-emblem i {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #e5c77d;
  box-shadow: 0 0 0 3px rgba(229, 199, 125, 0.1);
}
#card-status .member-card-brand div {
  min-width: 0;
}
#card-status .member-card-brand small,
#card-status .member-card-brand b {
  display: block;
}
#card-status .member-card-brand small {
  color: rgba(239, 216, 160, 0.75);
  font-size: 8.5px;
  font-weight: 800;
}
#card-status .member-card-brand b {
  margin-top: 3px;
  overflow: hidden;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#card-status .member-card .level {
  position: static;
  flex: 0 0 auto;
  padding: 6px 11px;
  border: 1px solid rgba(237, 210, 146, 0.36);
  border-radius: 999px;
  color: #f2dc9f;
  background: rgba(237, 210, 146, 0.08);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
#card-status .member-card-main {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(220px, 1fr);
  align-items: end;
  gap: 30px;
}
#card-status .member-card-validity > span,
#card-status .member-card-credential > small {
  display: block;
  color: rgba(239, 216, 160, 0.68);
  font-size: 8.5px;
  font-weight: 800;
}
#card-status .member-card-validity > small {
  display: block;
  margin-top: 4px;
  color: rgba(226, 238, 252, 0.58);
  font-size: 11px;
  font-weight: 700;
}
#card-status .member-card .days {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-top: 4px;
  color: #fffaf0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 66px;
  font-weight: 700;
  line-height: 0.95;
}
#card-status .member-card .days small {
  color: rgba(226, 238, 252, 0.68);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", sans-serif;
  font-size: 12px;
  font-weight: 700;
}
#card-status .member-card-poster {
  min-width: 0;
  padding-left: 24px;
  border-left: 1px solid rgba(239, 216, 160, 0.18);
}
#card-status .member-card-poster > small {
  display: block;
  color: rgba(239, 216, 160, 0.62);
  font-size: 8px;
  font-weight: 800;
}
#card-status .member-card-poster > b {
  display: block;
  margin-top: 5px;
  color: rgba(255, 250, 240, 0.92);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.02;
}
#card-status .member-card-credential {
  min-width: 0;
  margin-top: 13px;
}
#card-status .member-card-credential b {
  display: block;
  margin-top: 6px;
  color: #f1dc9f;
  font-family: "Courier New", monospace;
  font-size: 15px;
  font-weight: 700;
}
#card-status .member-card-credential em {
  display: block;
  margin-top: 7px;
  color: rgba(226, 238, 252, 0.54);
  font-size: 8.5px;
  font-style: normal;
  font-weight: 800;
}
#card-status .member-card-benefits {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  padding-top: 13px;
  border-top: 1px solid rgba(239, 216, 160, 0.12);
}
#card-status .member-card-benefits span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 25px;
  padding: 0 9px;
  border: 1px solid rgba(239, 216, 160, 0.12);
  border-radius: 999px;
  color: rgba(232, 241, 252, 0.68);
  background: rgba(255, 255, 255, 0.035);
  font-size: 9.5px;
  font-weight: 700;
  white-space: nowrap;
}
#card-status .member-card-benefits i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #e5c77d;
  box-shadow: 0 0 0 3px rgba(229, 199, 125, 0.08);
}
#card-status .member-card-foot {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.8fr) auto;
  align-items: end;
  gap: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
#card-status .member-card-foot span {
  min-width: 0;
}
#card-status .member-card-foot small,
#card-status .member-card-foot b {
  display: block;
}
#card-status .member-card-foot small {
  color: rgba(226, 238, 252, 0.48);
  font-size: 9px;
}
#card-status .member-card-foot b {
  margin-top: 3px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#card-status .member-card-foot em {
  flex: 0 0 auto;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}
#card-status .member-card-foot em.active {
  border: 1px solid rgba(89, 226, 170, 0.3);
  color: #a7f3d0;
  background: rgba(47, 209, 145, 0.12);
}
#card-status .member-card-foot em.inactive {
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.06);
}
@media (max-width: 620px) {
  #card-status .member-card {
    min-height: 0;
    gap: 16px;
    padding: 18px 17px;
    border-radius: 15px;
  }
  #card-status .member-card-watermark {
    right: 16px;
    top: 76px;
    font-size: 96px;
  }
  #card-status .member-card-main {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
  #card-status .member-card-poster {
    padding: 13px 0 0;
    border-top: 1px solid rgba(239, 216, 160, 0.16);
    border-left: 0;
  }
  #card-status .member-card-benefits {
    gap: 6px;
    padding-top: 11px;
  }
  #card-status .member-card-foot {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
  }
  #card-status .member-card-foot span:nth-child(2) {
    display: none;
  }
}
@media (max-width: 420px) {
  #card-status .member-card {
    padding: 16px 15px;
  }
  #card-status .member-card-watermark {
    right: 10px;
    top: 82px;
    font-size: 78px;
  }
  #card-status .member-card-emblem {
    width: 39px;
    height: 39px;
  }
  #card-status .member-card .days {
    font-size: 48px;
  }
  #card-status .member-card-benefits span {
    padding: 0 7px;
    font-size: 9px;
  }
  #card-status .member-card .level {
    padding: 5px 8px;
    font-size: 10px;
  }
}

/* AI 漫画提示词优化 */
.comic-prompt-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.comic-prompt-label label {
  margin-bottom: 0;
}
.comic-prompt-label > span {
  padding: 3px 8px;
  border: 1px solid #c9dcf8;
  border-radius: 999px;
  color: #1e56d6;
  background: #f2f7ff;
  font-size: 9.5px;
  font-weight: 800;
  white-space: nowrap;
}
.comic-optimize-btn {
  width: 100%;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(71, 145, 238, 0.55);
  border-radius: 10px;
  color: #fff;
  text-align: left;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.08), transparent 42%),
    linear-gradient(135deg, #123d9c 0%, #1e56d6 58%, #2563eb 100%);
  box-shadow: 0 8px 18px rgba(30, 86, 214, 0.17), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}
.comic-optimize-btn:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 11px 22px rgba(30, 86, 214, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.comic-optimize-btn:disabled {
  cursor: wait;
  opacity: 0.86;
  transform: none;
}
.comic-optimize-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}
.comic-optimize-icon .spinner {
  width: 14px;
  height: 14px;
}
.comic-optimize-copy {
  min-width: 0;
}
.comic-optimize-copy b,
.comic-optimize-copy small {
  display: block;
}
.comic-optimize-copy b {
  color: #fff;
  font-size: 12.5px;
  font-weight: 900;
}
.comic-optimize-copy small {
  margin-top: 2px;
  overflow: hidden;
  color: rgba(235, 245, 255, 0.72);
  font-size: 9.5px;
  font-weight: 500;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.comic-optimize-arrow {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}
.comic-prompt-field .textarea {
  min-height: 152px;
}
.comic-prompt-helper {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-top: 7px;
}
.comic-prompt-helper > span {
  flex: 1;
  min-width: 0;
  color: #667085;
  font-size: 10.5px;
  line-height: 1.55;
}
.comic-prompt-helper em {
  flex: 0 0 auto;
  min-height: 22px;
  padding: 0;
  color: transparent;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}
.comic-prompt-helper em.is-ready {
  padding: 3px 7px;
  border: 1px solid #bce8d0;
  border-radius: 999px;
  color: #15803d;
  background: #ecfdf3;
}
@media (max-width: 420px) {
  .comic-prompt-label {
    align-items: center;
  }
  .comic-optimize-btn {
    grid-template-columns: 34px minmax(0, 1fr) 26px;
    gap: 8px;
    padding: 9px 10px;
  }
  .comic-optimize-icon {
    width: 34px;
    height: 34px;
  }
  .comic-optimize-arrow {
    width: 26px;
    height: 26px;
  }
  .comic-optimize-copy small {
    white-space: normal;
  }
  .comic-prompt-field .textarea {
    min-height: 146px;
  }
}

/* 反向爆款创作 */
.reverse-mode-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding: 12px 13px;
  border: 1px solid #d8e3f2;
  border-radius: 9px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.76), rgba(244, 248, 255, 0.92)),
    #f8fafc;
}
.reverse-mode-copy {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}
.reverse-mode-icon {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 9px;
  color: #1e56d6;
  background: #e8f0ff;
}
.reverse-mode-copy > div {
  min-width: 0;
}
.reverse-mode-copy label {
  display: block;
  margin: 0;
  color: #101828;
  font-size: 13px;
  font-weight: 900;
}
.reverse-mode-copy p {
  margin-top: 3px;
  color: #667085;
  font-size: 10.5px;
  line-height: 1.55;
}
.contrarian-platform-field {
  margin: -4px 0 12px;
  padding: 10px 11px;
  border: 1px solid #d8e3f2;
  border-radius: 8px;
  background: #f8fafc;
}
.contrarian-platform-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.contrarian-platform-head > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #344054;
  font-size: 11px;
  font-weight: 900;
}
.contrarian-platform-head small {
  color: #667085;
  font-size: 10px;
  text-align: right;
}
.contrarian-platform-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 3px;
  border: 1px solid #d8e3f2;
  border-radius: 8px;
  background: #eef3f9;
}
.contrarian-platform-options button {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  color: #667085;
  background: transparent;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
.contrarian-platform-options button.active {
  color: #1e56d6;
  background: #fff;
  box-shadow: 0 1px 4px rgba(16, 24, 40, 0.09);
}
.contrarian-platform-options button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}
.reverse-mode-status {
  margin: -5px 0 12px;
  padding: 10px 12px;
  border: 1px solid #d8e3f2;
  border-radius: 8px;
  color: #475467;
  background: #f8fafc;
  font-size: 10.5px;
  line-height: 1.55;
}
.reverse-mode-status > span {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #1e56d6;
  font-weight: 800;
}
.reverse-mode-status > b {
  display: block;
  margin-top: 5px;
  color: #1d2939;
  font-size: 11.5px;
  line-height: 1.6;
}
.reverse-mode-status.is-ready {
  border-color: #bfe7d1;
  background: #f3fbf6;
}
.reverse-mode-status.is-ready > span {
  color: #15803d;
}
.contrarian-thesis {
  padding: 12px 13px;
  border: 1px solid #d6e2f2;
  border-radius: 9px;
  background: #f6f9ff;
}
.contrarian-thesis > span {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #1e56d6;
  font-size: 10.5px;
  font-weight: 800;
}
.contrarian-thesis > b {
  display: block;
  margin-top: 6px;
  color: #1d2939;
  font-size: 13px;
  line-height: 1.65;
}
.contrarian-angle-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.contrarian-angle-card {
  position: relative;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 13px;
  border: 1px solid #dce5ef;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}
.contrarian-angle-card:hover {
  border-color: #a9c8f1;
  background: #fbfdff;
}
.contrarian-angle-card:has(input:checked) {
  border-color: #1e56d6;
  background: #f4f8ff;
  box-shadow: 0 0 0 3px rgba(30, 86, 214, 0.08);
}
.contrarian-angle-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.contrarian-angle-radio {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border: 2px solid #b8c7d9;
  border-radius: 50%;
  background: #fff;
}
.contrarian-angle-card input:checked + .contrarian-angle-radio {
  border: 5px solid #1e56d6;
}
.contrarian-angle-copy {
  min-width: 0;
}
.contrarian-angle-copy em,
.contrarian-angle-copy b,
.contrarian-angle-copy small {
  display: block;
}
.contrarian-angle-copy em {
  color: #1e56d6;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}
.contrarian-angle-copy b {
  margin-top: 4px;
  color: #101828;
  font-size: 13px;
  line-height: 1.55;
}
.contrarian-angle-copy small {
  margin-top: 5px;
  color: #667085;
  font-size: 10.5px;
  line-height: 1.6;
}
.contrarian-angle-copy small strong {
  color: #475467;
  font-weight: 900;
}
/* 反向创作升级：诊断块、指标、可展开结构、结果卡 */
.contrarian-diagnosis {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #cfdcee;
}
.contrarian-diagnosis div {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}
.contrarian-diagnosis span {
  color: #1e56d6;
  font-size: 10.5px;
  font-weight: 800;
  white-space: nowrap;
}
.contrarian-diagnosis p {
  margin: 0;
  color: #475467;
  font-size: 11px;
  line-height: 1.6;
}
.contrarian-angle-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.contrarian-metrics {
  display: inline-flex;
  gap: 5px;
}
.contrarian-metrics i,
.contrarian-result-tags i {
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(30, 86, 214, 0.08);
  color: #1e56d6;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}
.contrarian-metrics i.is-hot,
.contrarian-result-tags i.is-hot {
  background: rgba(220, 38, 38, 0.1);
  color: #b42318;
}
.contrarian-result-tags i.is-warn {
  background: rgba(217, 119, 6, 0.12);
  color: #b45309;
}
.contrarian-detail {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed #e4ebf3;
}
.contrarian-detail summary {
  cursor: pointer;
  color: #1e56d6;
  font-size: 10.5px;
  font-weight: 800;
  list-style: none;
}
.contrarian-detail summary::-webkit-details-marker { display: none; }
.contrarian-detail summary::before {
  content: '＋';
  margin-right: 4px;
}
.contrarian-detail[open] summary::before { content: '－'; }
.contrarian-result {
  padding: 11px 13px;
  margin-bottom: 12px;
  border: 1px solid #d6e2f2;
  border-radius: 8px;
  background: linear-gradient(180deg, #f6f9ff, #fff);
}
.contrarian-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.contrarian-result-head > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #1e56d6;
  font-size: 11.5px;
  font-weight: 800;
}
.contrarian-result-tags {
  display: inline-flex;
  gap: 5px;
  flex-wrap: wrap;
}
.contrarian-result > b {
  display: block;
  margin-top: 6px;
  color: #101828;
  font-size: 13px;
  line-height: 1.6;
}
.contrarian-result > p {
  margin: 6px 0 0;
  color: #667085;
  font-size: 11px;
  line-height: 1.6;
}
.contrarian-result > p.is-warn { color: #b45309; }
/* 导入草稿：封面向导（正文图片自由选择） */
.import-cover-block {
  padding: 10px 12px;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  background: #fbfcfe;
}
.import-cover-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.import-cover-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(68px, 1fr));
  gap: 8px;
  margin-top: 10px;
  max-height: 176px;
  overflow-y: auto;
}
.import-cover-item {
  position: relative;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.import-cover-item img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.import-cover-item span {
  position: absolute;
  left: 4px;
  top: 4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 5px;
  background: rgba(17, 24, 39, 0.55);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
}
.import-cover-item:hover { border-color: #a9c8f1; }
.import-cover-item.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
}
.import-cover-item.active span { background: var(--primary); }
.import-cover-note { margin: 8px 0 0; }
@media (max-width: 420px) {
  .reverse-mode-field {
    gap: 8px;
    padding: 11px;
  }
  .reverse-mode-icon {
    width: 30px;
    height: 30px;
  }
  .reverse-mode-copy p {
    font-size: 10px;
  }
  .contrarian-platform-head {
    align-items: flex-start;
  }
  .contrarian-platform-head small {
    max-width: 58%;
  }
  .contrarian-angle-card {
    padding: 11px;
  }
}

/* 官方支持中心 */
.contact-page-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
  padding: 22px 23px;
  overflow: hidden;
  border: 1px solid rgba(201, 168, 106, 0.34);
  border-radius: 12px;
  color: #fff;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.055), transparent 44%),
    linear-gradient(135deg, #0b1728 0%, #142d4b 60%, #10243d 100%);
  box-shadow: 0 16px 34px rgba(8, 20, 36, 0.16);
}
.contact-page-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, #d9b86e, #f0dcae 45%, rgba(240, 220, 174, 0.12));
}
.contact-page-hero-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
}
.contact-page-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #f0dcae;
  font-size: 10px;
  font-weight: 900;
}
.contact-page-hero h2 {
  margin-top: 6px;
  color: #fff;
  font-size: 23px;
  font-weight: 900;
  line-height: 1.2;
}
.contact-page-hero p {
  margin-top: 6px;
  color: rgba(232, 241, 252, 0.68);
  font-size: 12px;
  line-height: 1.6;
}
.contact-page-status {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.76);
  background: rgba(255, 255, 255, 0.08);
  font-size: 10.5px;
  font-weight: 800;
  white-space: nowrap;
}
.contact-page-status.is-online {
  border-color: rgba(89, 226, 170, 0.3);
  color: #a7f3d0;
  background: rgba(47, 209, 145, 0.12);
}
.contact-page-status.is-offline {
  color: #fcd9a4;
  background: rgba(240, 180, 80, 0.12);
}
.contact-workspace {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: 14px;
  align-items: start;
}
.contact-direct-card,
.contact-form-card {
  min-width: 0;
  border: 1px solid #dce5ef;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.055);
}
.contact-form-card {
  padding: 0;
  overflow: hidden;
}
.contact-panel-head,
.contact-form-head {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 15px 16px;
  border-bottom: 1px solid #e6edf4;
  background: linear-gradient(135deg, #f8fbff, #eef5ff);
}
.contact-direct-card .contact-panel-head {
  grid-template-columns: 40px minmax(0, 1fr);
}
.contact-panel-icon,
.contact-form-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  color: #1e56d6;
  background: #e8f0ff;
}
.contact-panel-head b,
.contact-panel-head small,
.contact-form-head h3,
.contact-form-head p {
  display: block;
}
.contact-panel-head b,
.contact-form-head h3 {
  color: #101828;
  font-size: 14px;
  font-weight: 900;
}
.contact-panel-head small,
.contact-form-head p {
  margin-top: 3px;
  color: #667085;
  font-size: 10.5px;
  line-height: 1.5;
}
.contact-direct-card {
  padding: 0 0 15px;
  overflow: hidden;
}
.contact-direct-card #contact-channels {
  padding: 14px;
}
.contact-service-note {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-bottom: 11px;
  padding: 9px 10px;
  border: 1px solid #dbe7f5;
  border-radius: 8px;
  color: #475467;
  background: #f7faff;
  font-size: 10.5px;
  line-height: 1.55;
}
.contact-service-note > span {
  flex: 0 0 auto;
  margin-top: 1px;
  color: #1e56d6;
}
.contact-direct-card .contact-channel-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  margin-top: 0;
}
.contact-direct-card .contact-channel {
  min-width: 0;
  padding: 10px;
  border-color: #e1e8f1;
  border-radius: 9px;
}
.contact-direct-card .contact-channel b {
  color: #1d2939;
  font-size: 12px;
}
.contact-direct-card .contact-channel p {
  margin-top: 2px;
  overflow-wrap: anywhere;
}
.contact-channel-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 34px 12px;
  border: 1px dashed #d5e0ec;
  border-radius: 9px;
  color: #667085;
  background: #f8fafc;
  text-align: center;
  font-size: 11px;
}
.contact-direct-card .contact-qr-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}
.contact-direct-card .contact-qr-item {
  padding: 8px;
  border-radius: 8px;
}
.contact-form-body {
  padding: 16px;
}
.contact-form-card .field {
  margin-bottom: 14px;
}
.contact-form-card .field:last-of-type {
  margin-bottom: 0;
}
.contact-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #e8eef5;
}
.contact-form-footer p {
  min-width: 0;
  line-height: 1.5;
}
.contact-form-footer .btn {
  flex: 0 0 auto;
  min-width: 112px;
  height: 40px;
  justify-content: center;
}
.contact-history-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin: 22px 0 11px;
  padding-bottom: 9px;
  border-bottom: 1px solid #e4eaf1;
}
.contact-history-head h3 {
  color: #101828;
  font-size: 15px;
  font-weight: 900;
}
.contact-history-head p {
  margin-top: 3px;
  color: #667085;
  font-size: 10.5px;
}
.contact-history-head > span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #667085;
  font-size: 10px;
  font-weight: 700;
}
.contact-item {
  border-color: #dce5ef;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.035);
}
.contact-item h4 {
  color: #101828;
}
.contact-reply {
  border-left-color: #1e56d6;
  background: #f3f7ff;
}
@media (max-width: 800px) {
  .contact-workspace {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 520px) {
  .contact-page-hero {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 18px 16px;
  }
  .contact-page-hero h2 {
    font-size: 20px;
  }
  .contact-panel-head,
  .contact-form-head {
    grid-template-columns: 36px minmax(0, 1fr);
    padding: 13px;
  }
  .contact-form-head > .badge {
    grid-column: 2;
    justify-self: start;
    margin-top: 3px;
  }
  .contact-panel-icon,
  .contact-form-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }
  .contact-form-body {
    padding: 13px;
  }
  .contact-form-footer {
    align-items: stretch;
    flex-direction: column;
  }
  .contact-form-footer .btn {
    width: 100%;
  }
  .contact-direct-card .contact-qr-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 漫画正文直接编辑 */
.comic-story-preview {
  max-height: 560px;
  padding: 2px 6px 8px 2px;
  overflow: auto;
}
.comic-editable-title,
.comic-editable-intro,
.comic-editable-text {
  border: 1px dashed transparent;
  border-radius: 7px;
  outline: none;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}
.comic-editable-title {
  padding: 4px 6px;
}
.comic-editable-intro {
  padding: 6px 8px;
}
.comic-editable-text {
  padding: 8px 10px;
  color: #2b3648;
  background: #fbfcfe;
  white-space: pre-wrap;
}
.comic-editable-title:hover,
.comic-editable-intro:hover,
.comic-editable-text:hover {
  border-color: #d5e1ef;
}
.comic-editable-title:focus,
.comic-editable-intro:focus,
.comic-editable-text:focus {
  border-color: #1e56d6;
  background: #f6f9ff;
  box-shadow: 0 0 0 3px rgba(30, 86, 214, 0.08);
}
.comic-story-block {
  margin: 14px 0 0;
}
.comic-story-block img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}
.comic-story-block .comic-editable-text {
  margin-top: 8px;
}

body.important-notice-open {
  overflow: hidden;
}

.important-notice-mask {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(8, 18, 32, 0.78);
  backdrop-filter: blur(8px) saturate(0.86);
}

.important-notice-dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(100%, 620px);
  max-height: min(86vh, 720px);
  overflow: hidden;
  border: 1px solid #dbe5ee;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(7, 17, 31, 0.42), 0 2px 0 rgba(255, 255, 255, 0.8) inset;
  text-align: left;
  animation: importantNoticeIn 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

.important-notice-dialog::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: #0f766e;
}

.important-notice-header {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 28px 30px 22px;
  border-bottom: 1px solid #e8eef3;
  background: linear-gradient(180deg, #f8fbfc 0%, #ffffff 100%);
}

.important-notice-seal {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #c9e7e3;
  border-radius: 10px;
  color: #0f766e;
  background: #edf8f6;
  box-shadow: inset 0 0 0 4px #ffffff, 0 5px 14px rgba(15, 118, 110, 0.08);
}

.important-notice-seal span {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.important-notice-heading {
  min-width: 0;
}

.important-notice-kicker {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 7px;
  color: #0f766e;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.important-notice-kicker span {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #17a398;
  box-shadow: 0 0 0 4px rgba(23, 163, 152, 0.1);
}

.important-notice-dialog h2 {
  margin: 0;
  color: #142235;
  font-size: 24px;
  line-height: 1.35;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.important-notice-badge {
  align-self: start;
  padding: 5px 9px;
  border: 1px solid #c9e7e3;
  border-radius: 999px;
  color: #0f766e;
  background: #edf8f6;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 800;
}

.important-notice-content {
  min-height: 0;
  margin: 22px 30px 0;
  padding: 18px 20px 20px;
  border: 1px solid #e4ebf1;
  border-left: 3px solid #0f766e;
  border-radius: 0 8px 8px 0;
  background: #fbfcfd;
  overflow: auto;
}

.important-notice-content-label {
  display: block;
  margin-bottom: 10px;
  color: #718096;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.important-notice-copy {
  color: #334155;
  font-size: 15px;
  line-height: 1.9;
  white-space: normal;
  overflow-wrap: anywhere;
}

.important-notice-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 30px 26px;
}

.important-notice-footer-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #7b8795;
  font-size: 12px;
}

.important-notice-close {
  min-width: 144px;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(15, 118, 110, 0.2);
}

@keyframes importantNoticeIn {
  from { opacity: 0; transform: translateY(14px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 560px) {
  .important-notice-mask {
    align-items: flex-end;
    padding: 0;
  }
  .important-notice-dialog {
    width: 100%;
    max-height: 90vh;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 14px 14px 0 0;
  }
  .important-notice-header {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    padding: 22px 18px 18px;
  }
  .important-notice-seal {
    width: 44px;
    height: 44px;
    border-radius: 8px;
  }
  .important-notice-seal span {
    font-size: 14px;
  }
  .important-notice-badge {
    grid-column: 2;
    justify-self: start;
    margin-top: 8px;
  }
  .important-notice-kicker {
    margin-bottom: 5px;
  }
  .important-notice-dialog h2 {
    font-size: 20px;
  }
  .important-notice-content {
    margin: 18px 18px 0;
    padding: 15px 16px 17px;
    font-size: 14px;
    line-height: 1.85;
  }
  .important-notice-copy {
    font-size: 14px;
  }
  .important-notice-footer {
    align-items: stretch;
    flex-direction: column;
    padding: 18px;
  }
  .important-notice-footer-note {
    justify-content: center;
  }
  .important-notice-close {
    width: 100%;
  }
}

.home-gallery-section {
  margin-top: 24px;
}

.home-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.home-gallery-item {
  min-width: 0;
  overflow: hidden;
  padding: 0;
  border: 1px solid #e1e8f0;
  border-radius: 8px;
  background: #fff;
  color: #16202e;
  text-align: left;
  box-shadow: 0 5px 18px rgba(15, 23, 42, 0.06);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.home-gallery-item:hover {
  transform: translateY(-2px);
  border-color: #9fd8d2;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.11);
}

.home-gallery-image {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #eef2f6;
}

.home-gallery-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  background: #f8fafc;
  transition: transform 0.25s ease;
}

.home-gallery-item:hover .home-gallery-image img {
  transform: none;
}

.home-gallery-title {
  display: block;
  padding: 11px 13px 13px;
  overflow: hidden;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.55;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-gallery-viewer {
  text-align: center;
}

.home-gallery-viewer img {
  width: 100%;
  max-height: 72vh;
  display: block;
  object-fit: contain;
  border-radius: 8px;
  background: #f1f5f9;
}

.home-gallery-viewer p {
  margin-top: 12px;
  color: #334155;
  font-size: 14px;
  font-weight: 700;
}

@media (max-width: 760px) {
  .home-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}

@media (max-width: 460px) {
  .home-gallery-grid {
    grid-template-columns: 1fr;
  }
}

.media-page-head {
  margin-bottom: 18px;
}

.media-page-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #2563eb;
  font-size: 12px;
  font-weight: 800;
}

.media-page-head h2 {
  margin-top: 7px;
  color: #16202e;
  font-size: 23px;
  line-height: 1.35;
}

.media-page-head p {
  margin-top: 6px;
  color: #64748b;
  font-size: 13px;
}

.media-create-card {
  border-color: #d8e3ef;
}

.media-url-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.media-rights {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 11px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  color: #475569;
  font-size: 12.5px;
  line-height: 1.55;
}

.media-rights input,
.media-option-row input {
  accent-color: #0d9488;
}

.media-option-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 12px;
}

.media-option-row label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid #dce5ef;
  border-radius: 8px;
  background: #fff;
  color: #334155;
  font-size: 12.5px;
  font-weight: 700;
}

.media-capabilities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 13px;
}

.media-capabilities > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eef4ff;
  color: #2563eb;
  font-size: 11px;
}

.media-capabilities b {
  color: #334155;
}

.media-capabilities em {
  font-style: normal;
  font-weight: 700;
}

.media-capability-error {
  color: #b42318 !important;
  background: #fee4e2 !important;
}

.media-job-card {
  border-color: #d8e3ef;
}

.media-job-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.media-job-head h3 {
  color: #16202e;
  font-size: 16px;
}

.media-job-head p {
  margin-top: 3px;
  color: #94a3b8;
  font-size: 11px;
}

.media-job-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.media-progress {
  height: 8px;
  margin-top: 16px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8edf3;
}

.media-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #2563eb;
  transition: width 0.3s ease;
}

.media-progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 7px;
  color: #64748b;
  font-size: 11.5px;
}

.media-dedupe-summary {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 13px;
  padding: 10px 12px;
  border-radius: 8px;
  color: #9a3412;
  background: #fff7ed;
  font-size: 12px;
}

.alert-error {
  padding: 10px 12px;
  border: 1px solid #fecaca;
  border-radius: 8px;
  color: #b91c1c;
  background: #fef2f2;
  font-size: 12.5px;
}

.media-result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.media-result-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid #e1e8f0;
  border-radius: 8px;
  background: #fff;
}

.media-result-item > a:first-child {
  width: 92px;
  height: 68px;
  overflow: hidden;
  border-radius: 7px;
  background: #eef2f6;
}

.media-result-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.media-result-item b {
  display: block;
  overflow: hidden;
  color: #16202e;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.media-result-item p {
  margin-top: 4px;
  color: #94a3b8;
  font-size: 11px;
}

.media-empty b {
  color: #16202e;
  font-size: 14px;
}

.media-empty span {
  color: #64748b;
  font-size: 12px;
}

@media (max-width: 760px) {
  .media-url-row {
    grid-template-columns: 1fr;
  }
  .media-url-row .btn {
    width: 100%;
  }
  .media-result-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .media-page-head h2 {
    font-size: 20px;
  }
  .media-option-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .media-option-row label {
    justify-content: center;
  }
  .media-result-item {
    grid-template-columns: 76px minmax(0, 1fr);
  }
  .media-result-item > a:first-child {
    width: 76px;
    height: 62px;
  }
  .media-result-item .btn {
    grid-column: 1 / -1;
  }
}

/* 卡密激活：与上方会员权益卡保持同一套高级金属质感 */
/* 卡密页 · 一键领取入口 */
.card-claim-entry {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  overflow: hidden;
  padding: 20px 22px;
  border: 1px solid rgba(118, 190, 255, 0.28);
  border-radius: 14px;
  color: #fff;
  background:
    radial-gradient(420px 180px at 92% 10%, rgba(94, 234, 212, 0.19), transparent 72%),
    linear-gradient(120deg, #102d59 0%, #174c82 58%, #0f766e 100%);
  box-shadow: 0 14px 34px rgba(16, 45, 89, 0.14);
}
.card-claim-entry::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -78px;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  pointer-events: none;
}
.card-claim-copy {
  position: relative;
  z-index: 1;
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 14px;
}
.card-claim-icon {
  display: flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  color: #fde68a;
  background: rgba(255, 255, 255, 0.09);
}
.card-claim-kicker {
  display: flex;
  align-items: center;
  gap: 5px;
  color: rgba(219, 239, 255, 0.72);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.card-claim-copy h3 {
  margin: 5px 0 3px;
  color: #fff;
  font-size: 17px;
  line-height: 1.35;
}
.card-claim-copy p {
  margin: 0;
  color: rgba(225, 239, 251, 0.72);
  font-size: 11.5px;
  line-height: 1.7;
}
.card-claim-action {
  position: relative;
  z-index: 1;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex: 0 0 auto;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 10px;
  color: #163451;
  background: linear-gradient(180deg, #fff7df, #f6d990);
  box-shadow: 0 9px 22px rgba(4, 24, 45, 0.2);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}
.card-claim-action:hover {
  color: #102d46;
  filter: brightness(1.03);
  transform: translateY(-2px);
  box-shadow: 0 13px 27px rgba(4, 24, 45, 0.25);
}
@media (max-width: 720px) {
  .card-claim-entry {
    align-items: stretch;
    flex-direction: column;
    gap: 15px;
    padding: 18px;
  }
  .card-claim-action {
    width: 100%;
  }
}
@media (max-width: 440px) {
  .card-claim-copy {
    align-items: flex-start;
    gap: 11px;
  }
  .card-claim-icon {
    width: 42px;
    height: 42px;
  }
}

.card.card-pad.card-activation-panel {
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto;
  gap: 14px;
  min-height: 226px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid rgba(212, 180, 112, 0.4);
  border-radius: 16px;
  color: #f8fafc;
  background:
    radial-gradient(circle at 10% 0%, rgba(53, 121, 179, 0.24), transparent 38%),
    linear-gradient(115deg, rgba(255, 255, 255, 0.045), transparent 42%),
    linear-gradient(135deg, #08111f 0%, #102b4d 58%, #0b1d35 100%);
  box-shadow: 0 18px 38px rgba(7, 18, 34, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.card.card-pad.card-activation-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 72%, rgba(240, 220, 174, 0.055) 72% 72.5%, transparent 72.5%),
    repeating-linear-gradient(135deg, transparent 0 16px, rgba(255, 255, 255, 0.022) 16px 17px);
}
.card.card-pad.card-activation-panel::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, #d9b86e, #f0dcae 46%, rgba(240, 220, 174, 0.12));
}
.card-activation-panel > * {
  position: relative;
  z-index: 1;
}
.card-activation-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 42px;
}
.card-activation-title {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}
.card-activation-icon {
  width: 40px;
  height: 40px;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(240, 220, 174, 0.34);
  border-radius: 11px;
  color: #f0dcae;
  background: rgba(240, 220, 174, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.card-activation-title h3 {
  margin: 0;
  color: #ffffff;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.25;
}
.card-activation-title p {
  margin-top: 3px;
  color: rgba(226, 235, 246, 0.62);
  font-size: 11px;
  line-height: 1.4;
}
.card-activation-badge {
  min-height: 28px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
  border: 1px solid rgba(103, 214, 196, 0.24);
  border-radius: 999px;
  color: #a9eadf;
  background: rgba(28, 116, 108, 0.18);
  font-size: 10.5px;
  font-weight: 800;
  white-space: nowrap;
}
.card-activation-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 124px;
  gap: 9px;
  min-width: 0;
}
.card-activation-input {
  position: relative;
  min-width: 0;
  display: block;
}
.card-activation-input > span {
  position: absolute;
  left: 14px;
  top: 50%;
  z-index: 2;
  display: flex;
  color: #d9b86e;
  transform: translateY(-50%);
  pointer-events: none;
}
.card-activation-panel #card-code {
  width: 100%;
  height: 46px;
  padding: 0 14px 0 42px;
  border: 1px solid rgba(178, 197, 219, 0.24);
  border-radius: 11px;
  color: #f8fafc;
  background: rgba(3, 10, 22, 0.6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.card-activation-panel #card-code::placeholder {
  color: rgba(203, 216, 232, 0.38);
}
.card-activation-panel #card-code:focus {
  border-color: rgba(103, 214, 196, 0.62);
  box-shadow: 0 0 0 3px rgba(42, 158, 147, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.card-activation-panel #card-activate {
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 16px;
  border: 1px solid rgba(240, 220, 174, 0.56);
  border-radius: 11px;
  color: #142033;
  background: linear-gradient(135deg, #f4e2af, #d5b46c);
  box-shadow: 0 10px 22px rgba(206, 168, 84, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.48);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}
.card-activation-panel #card-activate:hover {
  color: #0c1728;
  background: linear-gradient(135deg, #fff0c9, #dfbd73);
}
.card-activation-panel #card-activate:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}
.card-activation-panel .card-refund-notice {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 62px;
  margin-top: 0;
  padding: 11px 12px;
  border: 1px solid rgba(211, 224, 239, 0.13);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.045);
}
.card-activation-panel .card-refund-notice > span {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  color: #f0dcae;
  background: rgba(240, 220, 174, 0.1);
}
.card-activation-panel .card-refund-notice b {
  display: block;
  color: #f2f6fb;
  font-size: 12.5px;
  font-weight: 900;
}
.card-activation-panel .card-refund-notice p {
  margin-top: 3px;
  color: rgba(218, 228, 241, 0.64);
  font-size: 11px;
  line-height: 1.55;
}
@media (max-width: 520px) {
  .card.card-pad.card-activation-panel {
    gap: 12px;
    min-height: 220px;
    padding: 16px;
  }
  .card-activation-head {
    align-items: flex-start;
    gap: 10px;
    min-height: 40px;
  }
  .card-activation-icon {
    width: 38px;
    height: 38px;
  }
  .card-activation-badge {
    min-height: 26px;
    padding: 0 8px;
    font-size: 9.5px;
  }
  .card-activation-control {
    grid-template-columns: minmax(0, 1fr) 106px;
    gap: 7px;
  }
  .card-activation-panel #card-code,
  .card-activation-panel #card-activate {
    height: 44px;
  }
  .card-activation-panel #card-code {
    padding-left: 39px;
    font-size: 11.5px;
    letter-spacing: 0.45px;
  }
  .card-activation-input > span {
    left: 12px;
  }
  .card-activation-panel #card-activate {
    gap: 4px;
    padding: 0 10px;
    font-size: 12px;
  }
  .card-activation-panel .card-refund-notice {
    min-height: 58px;
    padding: 10px;
  }
}
@media (max-width: 360px) {
  .card-activation-badge {
    max-width: 98px;
    white-space: normal;
    line-height: 1.2;
    text-align: center;
  }
  .card-activation-control {
    grid-template-columns: minmax(0, 1fr) 96px;
  }
  .card-activation-panel #card-code {
    font-size: 10.5px;
    letter-spacing: 0.25px;
  }
}

/* Comic generation history */
.comic-history-section {
  margin-bottom: 16px;
  border-color: #dbe5ef;
  background:
    radial-gradient(circle at 92% 8%, rgba(37, 99, 235, 0.06), transparent 28%),
    #fff;
}

.comic-history-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.comic-history-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #2563b8;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.11em;
}

.comic-history-head h3 {
  margin: 7px 0 0;
  color: #17263a;
  font-size: 18px;
  font-weight: 900;
}

.comic-history-head p {
  margin: 5px 0 0;
  color: #718196;
  font-size: 10.5px;
}

.comic-history-count {
  min-height: 31px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 10px;
  border: 1px solid #d9e5f1;
  border-radius: 999px;
  color: #60758c;
  background: #f7faff;
  font-size: 9.5px;
  font-weight: 800;
}

.comic-history-count b {
  color: #2563b8;
  font-size: 13px;
}

.comic-history-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px auto;
  gap: 8px;
  margin-top: 14px;
}

.comic-history-search {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 11px;
  border: 1px solid #d9e2ec;
  border-radius: 8px;
  color: #8494a7;
  background: #f8fafc;
}

.comic-history-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #213a54;
  background: transparent;
  font-size: 11px;
}

.comic-history-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.comic-history-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 0 12px;
  overflow: hidden;
  border: 1px solid #dfe7f0;
  border-radius: 11px;
  background: #fbfcfe;
}

.comic-history-cover {
  grid-row: 1 / 3;
  min-height: 114px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #7f91a5;
  background: linear-gradient(145deg, #edf3f8, #e3ebf3);
}

.comic-history-cover img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.comic-history-copy {
  min-width: 0;
  padding: 11px 11px 5px 0;
}

.comic-history-copy small,
.comic-history-copy b,
.comic-history-copy span {
  display: block;
}

.comic-history-copy small {
  color: #8a99aa;
  font-size: 8.5px;
}

.comic-history-copy b {
  margin-top: 4px;
  overflow: hidden;
  color: #1e3852;
  font-size: 12px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.comic-history-copy span {
  margin-top: 5px;
  color: #6d8195;
  font-size: 9px;
  line-height: 1.45;
}

.comic-history-actions {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  padding: 6px 10px 10px 0;
}

.comic-history-actions .btn {
  min-height: 29px;
}

.comic-history-delete {
  color: #c2413b;
}

.comic-history-empty {
  grid-column: 1 / -1;
  min-height: 118px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  border: 1px dashed #d8e2ec;
  border-radius: 10px;
  color: #8493a5;
  background: #fafcfe;
  text-align: center;
}

.comic-history-empty b {
  color: #415871;
  font-size: 12px;
}

.comic-history-empty span {
  font-size: 9.5px;
}

.comic-history-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
  color: #718196;
  font-size: 10px;
}

.comic-history-detail-head {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.comic-history-detail-head small {
  margin-left: auto;
  color: #7b8b9f;
  font-size: 9.5px;
}

@media (max-width: 720px) {
  .comic-history-head {
    flex-direction: column;
    gap: 9px;
  }

  .comic-history-toolbar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .comic-history-toolbar .comic-history-search {
    grid-column: 1 / -1;
  }

  .comic-history-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  .comic-history-card {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .comic-history-cover {
    min-height: 104px;
  }

  .comic-history-actions .btn {
    flex: 1 1 auto;
  }
}

/* 去AI味改写（第三方 API） */
.deai-page {
  display: grid;
  gap: 16px;
}

.deai-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.6fr);
  gap: 24px;
  overflow: hidden;
  padding: 26px 28px;
  border: 1px solid #172c4a;
  border-radius: 16px;
  color: #fff;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 88% 8%, rgba(56, 132, 255, 0.22), transparent 42%),
    #0d1e35;
  background-size: 28px 28px, 28px 28px, auto, auto;
  box-shadow: 0 18px 42px rgba(15, 35, 62, 0.18);
}

.deai-hero::after {
  content: "";
  position: absolute;
  right: -50px;
  bottom: -88px;
  width: 228px;
  height: 228px;
  border: 28px solid rgba(79, 141, 255, 0.12);
  border-radius: 50%;
}

.deai-hero-copy,
.deai-hero-flow {
  position: relative;
  z-index: 1;
}

.deai-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #8ec5ff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.deai-hero h2 {
  margin: 10px 0 0;
  color: #fff;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.2;
}

.deai-hero-copy p {
  max-width: 660px;
  margin: 10px 0 0;
  color: rgba(235, 244, 255, 0.72);
  font-size: 13px;
  line-height: 1.8;
}

.deai-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.deai-hero-tags span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(155, 197, 255, 0.2);
  border-radius: 999px;
  color: rgba(235, 244, 255, 0.82);
  background: rgba(255, 255, 255, 0.05);
  font-size: 10.5px;
  font-weight: 700;
}

.deai-hero-flow {
  align-self: center;
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid rgba(151, 193, 255, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
}

.deai-hero-flow span {
  display: flex;
  align-items: center;
  gap: 10px;
}

.deai-hero-flow i {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 28px;
  border-radius: 8px;
  color: #8ec5ff;
  background: rgba(82, 143, 255, 0.14);
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
}

.deai-hero-flow b {
  color: rgba(242, 247, 255, 0.92);
  font-size: 11.5px;
  font-weight: 750;
}

.deai-hero-flow em {
  width: 1px;
  height: 9px;
  margin-left: 13px;
  background: rgba(142, 197, 255, 0.25);
}

.deai-quota-modal {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 6px 0 2px;
  text-align: center;
  color: #b45309;
}

.deai-quota-modal b {
  color: #1e3852;
  font-size: 14px;
  font-weight: 900;
}

.deai-quota-modal p {
  margin: 0;
  color: #667587;
  font-size: 12px;
  line-height: 1.8;
}

.deai-disabled {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid #f2d6a2;
  border-radius: 10px;
  color: #8a6116;
  background: #fffbeb;
  font-size: 11.5px;
  font-weight: 700;
}

.deai-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.deai-editor,
.deai-result-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 360px;
  border: 1px solid #e2e9f3;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.055);
}

.deai-panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eef3f8;
}

.deai-panel-step {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #fff;
  background: #2563eb;
  font-size: 12px;
  font-weight: 900;
}

.deai-panel-head b {
  display: block;
  color: #1e3852;
  font-size: 13.5px;
  font-weight: 900;
}

.deai-panel-head small {
  display: block;
  margin-top: 3px;
  color: #8494a7;
  font-size: 10px;
}

.deai-source {
  flex: 1 1 auto;
  min-height: 210px;
  border-color: #dfe8f2;
  background: #fcfdff;
  line-height: 1.85;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.deai-source:focus {
  border-color: #93b8ff;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.deai-editor-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.deai-counter {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border: 1px solid #e2e9f3;
  border-radius: 999px;
  background: #f7faff;
  color: #8494a7;
  font-size: 10.5px;
  font-weight: 800;
}

.deai-editor-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* hidden 属性会被 .btn 的 display 覆盖，这里显式兜底 */
.deai-editor-actions .btn[hidden] {
  display: none !important;
}

.deai-level-field {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #5b7089;
  font-size: 10.5px;
  font-weight: 800;
  white-space: nowrap;
}

.deai-level-select {
  height: 30px;
  min-width: 108px;
  padding: 0 26px 0 10px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 700;
}

.deai-stream-tip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid #cfe0f6;
  border-radius: 8px;
  background: #f2f7ff;
  color: #1d4ed8;
  font-size: 10.5px;
  font-weight: 800;
}

.deai-status:empty {
  display: none;
}

.deai-status {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 12px;
  border: 1px solid #dde7f2;
  border-radius: 9px;
  color: #4b5f77;
  background: #f8fafc;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.6;
}

.deai-status.is-busy {
  border-color: #cfe0f6;
  color: #1d4ed8;
  background: #f2f7ff;
}

.deai-status.is-ok {
  border-color: #bfe6cf;
  color: #15803d;
  background: #f1fcf5;
}

.deai-status.is-error {
  border-color: #f4cfcf;
  color: #b42318;
  background: #fff6f5;
}

.deai-result {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 240px;
}

.deai-result-empty {
  flex: 1 1 auto;
  min-height: 220px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  border: 1px dashed #d8e2ec;
  border-radius: 10px;
  color: #8493a5;
  background: #fafcfe;
  text-align: center;
  padding: 16px;
}

.deai-result-empty b {
  color: #415871;
  font-size: 12.5px;
}

.deai-result-empty span {
  font-size: 10px;
  line-height: 1.7;
}

.deai-result-empty.is-error {
  border-color: #f4cfcf;
  color: #b42318;
  background: #fff8f7;
}

.deai-result-body {
  flex: 1 1 auto;
  max-height: 460px;
  overflow: auto;
  padding: 14px 16px;
  border: 1px solid #e4ebf3;
  border-radius: 10px;
  color: #22364b;
  background: #fbfcfe;
  font-size: 12.5px;
  line-height: 1.95;
  white-space: pre-wrap;
  word-break: break-word;
}

.deai-result-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  color: #8494a7;
  font-size: 10.5px;
  font-weight: 700;
}

.deai-result-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.deai-history-card {
  display: grid;
  gap: 12px;
}

.deai-history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  user-select: none;
  border-radius: 10px;
  transition: background .15s ease;
}

.deai-history-head:hover {
  background: #f6f9fe;
}

.deai-history-head:focus-visible {
  outline: 2px solid #c7d2fe;
  outline-offset: 2px;
}

.deai-history-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid #dde7f2;
  border-radius: 999px;
  color: #5b7089;
  background: #f8fafc;
  transition: transform .18s ease;
}

.deai-history-head.is-open .deai-history-toggle-icon {
  transform: rotate(180deg);
}

.deai-history-panel {
  margin-top: 12px;
}

.deai-history-panel[hidden] {
  display: none !important;
}

.deai-history-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 8px;
}

.deai-history-head b {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #1e3852;
  font-size: 13.5px;
  font-weight: 900;
}

.deai-history-head small {
  display: block;
  margin-top: 3px;
  color: #8494a7;
  font-size: 10px;
}

.deai-history-list {
  display: grid;
  gap: 8px;
}

.deai-history-item {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #e3eaf3;
  border-radius: 12px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.deai-history-item:hover {
  border-color: #c6d8ec;
  background: #f5f9ff;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.07);
}

.deai-history-copy {
  min-width: 0;
}

.deai-history-copy b {
  display: block;
  overflow: hidden;
  color: #22364b;
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.deai-history-copy small {
  display: block;
  margin-top: 4px;
  color: #8494a7;
  font-size: 9.5px;
}

.deai-history-item .badge {
  flex: 0 0 auto;
  white-space: nowrap;
}

.deai-history-side {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}

.deai-history-view {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #2563b8;
  font-size: 9.5px;
  font-style: normal;
  font-weight: 800;
}

.deai-view {
  display: grid;
  gap: 12px;
}

.deai-view-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.deai-view-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  background: #f6f8fb;
}

.deai-view-tab {
  min-height: 30px;
  padding: 0 14px;
  border: 0;
  border-radius: 7px;
  color: #5b6b7f;
  background: transparent;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
}

.deai-view-tab.active {
  color: #1d4ed8;
  background: #fff;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.1);
}

.deai-view-tab:disabled {
  color: #b0bcc9;
  cursor: not-allowed;
}

.deai-view-body {
  max-height: 60vh;
  overflow: auto;
  padding: 16px 18px;
  border: 1px solid #e4ebf3;
  border-radius: 10px;
  color: #22364b;
  background: #fbfcfe;
  font-size: 13.5px;
  line-height: 2;
  word-break: break-word;
}

.deai-view-empty {
  margin: 0;
  color: #8494a7;
  font-size: 12px;
}

.deai-history-empty {
  min-height: 96px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  border: 1px dashed #d8e2ec;
  border-radius: 10px;
  color: #8493a5;
  background: #fafcfe;
  font-size: 10.5px;
}

@media (max-width: 900px) {
  .deai-layout {
    grid-template-columns: 1fr;
  }

  .deai-hero {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

@media (max-width: 720px) {
  .deai-hero {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 18px 16px;
    border-radius: 14px;
  }

  .deai-hero h2 {
    font-size: 21px;
  }

  .deai-hero-flow {
    padding: 14px;
  }

  .deai-editor,
  .deai-result-panel {
    min-height: 0;
  }

  .deai-source {
    min-height: 180px;
  }

  .deai-editor-foot {
    flex-direction: column;
    align-items: stretch;
  }

  .deai-editor-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .deai-level-field {
    justify-content: space-between;
  }

  .deai-level-select {
    flex: 1 1 auto;
  }

  .deai-editor-actions .btn {
    width: 100%;
  }

  .deai-result-actions {
    width: 100%;
  }

  .deai-result-actions .btn {
    flex: 1 1 auto;
  }
}

/* 每日生成额度实时提示 */
.studio-quota-hint {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  border: 1px solid #dbe5ef;
  border-radius: 999px;
  color: #5b6b7f;
  background: #f7faff;
  font-size: 11px;
  font-weight: 700;
}

.studio-quota-hint b {
  color: #1d4ed8;
  font-size: 14px;
  font-weight: 900;
}

.studio-quota-hint.is-empty {
  border-color: #f2d6a2;
  color: #8a6116;
  background: #fffbeb;
}

.studio-quota-hint.is-empty b {
  color: #b45309;
}

/* ===== 去AI味改写（外部深度改写）弹窗 ===== */
.deai-rw {
  display: grid;
  gap: 14px;
}

.deai-rw-field {
  display: grid;
  gap: 6px;
}

.deai-rw-label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.deai-rw-label b {
  font-size: 13px;
  color: #1e3852;
}

.deai-rw-label .btn {
  margin-left: auto;
}

.deai-rw-count {
  color: #8494a7;
  font-size: 11px;
  font-weight: 700;
}

.deai-rw-count.is-over {
  color: #d92d20;
}

.deai-rw-source {
  min-height: 170px;
  max-height: 300px;
  resize: vertical;
}

.deai-rw-modes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.deai-rw-mode {
  display: grid;
  gap: 2px;
  text-align: left;
  padding: 9px 10px;
  border: 1px solid #dde7f2;
  border-radius: 10px;
  background: #f8fafc;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}

.deai-rw-mode b {
  font-size: 12.5px;
  color: #1e3852;
}

.deai-rw-mode small {
  color: #8494a7;
  font-size: 10.5px;
  line-height: 1.5;
}

.deai-rw-mode.active {
  border-color: #1d4ed8;
  background: #f2f7ff;
  box-shadow: 0 0 0 2px rgba(29, 78, 216, .08);
}

.deai-rw-mode.active b {
  color: #1d4ed8;
}

.deai-rw-range {
  width: 100%;
  accent-color: #1d4ed8;
}

.deai-rw-strength {
  min-width: 30px;
  text-align: center;
  padding: 1px 8px;
  border-radius: 999px;
  background: #eef4ff;
  color: #1d4ed8;
  font-weight: 800;
  font-size: 12px;
}

.deai-rw-status:empty {
  display: none;
}

.deai-rw-status {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  border: 1px solid #dde7f2;
  border-radius: 9px;
  background: #f8fafc;
  color: #4b5f77;
  font-size: 12px;
  font-weight: 700;
}

.deai-rw-status.is-busy {
  border-color: #cfe0f6;
  color: #1d4ed8;
  background: #f2f7ff;
}

.deai-rw-status.is-ok {
  border-color: #bfe6cf;
  color: #15803d;
  background: #f1fcf5;
}

.deai-rw-status.is-error {
  border-color: #f4cfcf;
  color: #b42318;
  background: #fff6f5;
}

.deai-rw-result {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #dde7f2;
  border-radius: 12px;
}

.deai-rw-result[hidden] {
  display: none !important;
}

.deai-rw-result-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.deai-rw-result-head b {
  font-size: 13px;
  color: #1e3852;
}

.deai-rw-result-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.deai-rw-result-body {
  max-height: 320px;
  overflow: auto;
  padding: 10px 12px;
  border: 1px solid #eef2f7;
  border-radius: 10px;
  background: #fbfdff;
  font-size: 13px;
  line-height: 1.9;
  word-break: break-word;
}

.deai-rw-diff {
  white-space: pre-wrap;
}

.deai-rw-diff del {
  color: #b42318;
  background: #fdecec;
}

.deai-rw-diff ins {
  color: #15803d;
  background: #e8f7ee;
  text-decoration: none;
}

.deai-rw-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

@media (max-width: 720px) {
  .deai-rw-modes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .deai-rw-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

