/* FigGen 全站样式 */

:root {
  --bg: #f0f2f5;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #e5e7eb;
  --primary: #ff2442;
  --primary-hover: #fa6c7f;
  --success: #22c55e;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  --bs-primary: #ff2442;
  --bs-primary-rgb: 255, 36, 66;
  --bs-link-color: #ff2442;
  --bs-link-hover-color: #fa6c7f;
  --bs-btn-disabled-color: #6c757d;
  --bs-btn-disabled-bg: #e9ecef;
  --bs-btn-disabled-border-color: #dee2e6;
  --bs-btn-disabled-opacity: 1;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

a {
  color: var(--primary);
  text-decoration: none;
}


a:hover {
  text-decoration: none;
}


/* 覆盖 Bootstrap 在 .btn-outline-primary 上写死的蓝色 --bs-btn-*，hover/active 才跟品牌红一致 */
.btn-outline-primary {
  --bs-btn-color: var(--primary);
  --bs-btn-border-color: var(--primary);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--primary);
  --bs-btn-hover-border-color: var(--primary);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--primary);
  --bs-btn-active-border-color: var(--primary);
  --bs-btn-focus-shadow-rgb: var(--bs-primary-rgb);
  --bs-btn-disabled-color: var(--primary);
  --bs-btn-disabled-border-color: var(--primary);
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus-visible {
  color: #fff;
  background-color: var(--primary);
  border-color: var(--primary);
}

.text-muted {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

.btn-check:checked + .btn-outline-primary,
.btn-check:active + .btn-outline-primary {
  color: #fff;
  background-color: var(--primary);
  border-color: var(--primary);
}

.shell {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px 16px 48px;
}

/* Header */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 40;
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  margin-bottom: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
}

.brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ff6b8a, var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
}

.user-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--muted);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
}

.btn-ghost:hover {
  background: var(--bg);
  text-decoration: none;
}

/* Cards grid */
.cards-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

@media (max-width: 640px) {
  .cards-row {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  padding: 20px;
  position: relative;
}

@media (min-width: 768px) {
  .border-md-start {
    border-left: 1px solid var(--border);
  }
}

.card-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 12px;
  color: var(--muted);
  background: var(--bg);
  padding: 4px 8px;
  border-radius: 6px;
}

.card-inner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #fff0f3;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.credit-num {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.card-label {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

.api-mask {
  font-family: ui-monospace, monospace;
  font-size: 15px;
  word-break: break-all;
}

.btn-copy {
  margin-top: 12px;
  padding: 8px 14px;
  font-size: 13px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card);
  cursor: pointer;
}

.btn-copy:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Section */
.section-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 6px;
}

.section-sub {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 18px;
}

.panel {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  padding: 22px;
  margin-bottom: 20px;
}

label.field-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
}

textarea.input-text {
  width: 100%;
  min-height: 120px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  resize: vertical;
  font-family: inherit;
}

textarea.input-text:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 36, 66, 0.12);
}

.ratio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.ratio-opt {
  cursor: pointer;
}

.ratio-opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.btn{
  font-size: 12px;
  font-weight: 400;
}

.ratio-pill {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
  background: var(--card);
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.ratio-opt input:checked + .ratio-pill {
  border-color: var(--primary);
  color: var(--primary);
  background: #fff0f3;
  font-weight: 500;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
}

.btn-primary:hover:not(:disabled) {
  background: var(--primary-hover);
}

.btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.hint-balance {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
}

/* History */
.history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.history-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.history-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0;
}

.icon-btn {
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 4px;
  color: var(--muted);
  font-size: 18px;
}

.icon-btn:hover {
  color: var(--text);
}

.search-form {
  display: flex;
  gap: 8px;
}

.search-form input[type="search"] {
  width: 200px;
  max-width: 50vw;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
}

.list {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--card);
}

.list-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.list-item:last-child {
  border-bottom: none;
}

.list-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.list-meta {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

.status-dot .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
}

.status-failed .dot {
  background: #ef4444;
}

.status-pending .dot {
  background: #eab308;
}

.link-view {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  white-space: nowrap;
}

/* Messages */
.messages {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}

.messages li {
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 8px;
  font-size: 14px;
}

.messages .success {
  background: #ecfdf5;
  color: #047857;
}

.messages .error {
  background: #fef2f2;
  color: #b91c1c;
}

.messages .warning {
  background: #fffbeb;
  color: #b45309;
}

/* Auth pages */
.auth-wrap {
  max-width: 400px;
  margin: 48px auto;
  padding: 0 16px;
}

.auth-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  padding: 28px;
}

.auth-card h1 {
  margin: 0 0 20px;
  font-size: 1.25rem;
}

.form-row {
  margin-bottom: 14px;
}

.form-row label {
  display: block;
  font-size: 13px;
  margin-bottom: 6px;
  color: var(--muted);
}

.form-row input[type="email"],
.form-row input[type="password"],
.form-row input[type="text"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
}

.btn-auth-primary {
  width: 100%;
  padding: 12px;
  margin-top: 8px;
  border: none;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.auth-footer {
  text-align: center;
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
}

.warn-banner {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 16px;
}

/* 快速生成 — API 结果预览（位于文案输入框上方） */
.gen-api-error {
  display: none;
  background: #fef2f2;
  color: #b91c1c;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 14px;
}

.gen-api-error.is-visible {
  display: block;
}

.gen-preview-block {
  display: none;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.gen-preview-block.is-visible {
  display: block;
}

.gen-success-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 15px;
  font-weight: 600;
  color: #047857;
}

.gen-success-banner .check {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #22c55e;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.gen-success-sub {
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 4px;
}

.gen-preview-img {
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
  display: block;
}

.gen-preview-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 100%;
  height: min(70vh, 720px);
  max-height: min(70vh, 720px);
  overflow: hidden;
  background: #f8fafc;
  border-radius: 10px;
}

.gen-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  background: var(--primary);
  color: #fff !important;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.btn-download:hover {
  background: var(--primary-hover);
}

.btn-outline-new {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.btn-outline-new:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.gen-task-id {
  font-size: 12px;
  color: var(--muted);
  margin: 12px 0 0;
}

.btn-primary.is-loading {
  position: relative;
  color: transparent;
}

.btn-primary.is-loading::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: gen-spin 0.7s linear infinite;
}

@keyframes gen-spin {
  to {
    transform: rotate(360deg);
  }
}

.panel-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 6px;
}

.panel-head-icon {
  font-size: 1.4rem;
  line-height: 1;
}

.quick-gen-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  font-size: 1.4rem;
  color: var(--primary);
  background: rgba(255, 36, 66, 0.08);
  border: 1px solid rgba(255, 36, 66, 0.28);
  border-radius: 0.75rem;
  line-height: 1;
  flex: 0 0 auto;
}

.dashboard-shell {
  --dashboard-sidebar-width: 260px;
  display: grid;
  grid-template-columns: var(--dashboard-sidebar-width) minmax(0, 1fr) 300px;
  gap: 12px;
  min-height: 100vh;
  padding: 0;
  background: #f4f5f7;
}

.dashboard-sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  min-width: 0;
  padding: 8px 0 8px 8px;
}

.dashboard-sidebar-resizer {
  position: absolute;
  top: 18px;
  right: -8px;
  z-index: 10;
  width: 12px;
  height: calc(100vh - 36px);
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: col-resize;
}

.dashboard-sidebar-resizer::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 3px;
  height: 52px;
  border-radius: 999px;
  background: #cbd5e1;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.15s ease, background 0.15s ease;
}

.dashboard-sidebar-resizer:hover::after,
.dashboard-resizing .dashboard-sidebar-resizer::after {
  background: var(--primary);
  opacity: 1;
}

.dashboard-resizing {
  cursor: col-resize;
  user-select: none;
}

.dashboard-history-aside {
  min-width: 0;
  margin: 8px 8px 8px 0;
}

.dashboard-sidebar-inner,
.dashboard-history-aside {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: calc(100vh - 16px);
  padding: 14px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}

.dashboard-history-aside .dashboard-history-section {
  flex: 1 1 auto;
  margin: 0;
  border-bottom: 0;
  min-height: 0;
}

.dashboard-history-aside .dashboard-credit-section {
  flex: 0 0 auto;
}

.dashboard-sidebar-top,
.dashboard-workspace-topbar,
.dashboard-history-head,
.dashboard-service-row,
.dashboard-user-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dashboard-sidebar-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--text);
}

.dashboard-sidebar-brand:hover {
  color: var(--text);
}

.dashboard-brand-icon,
.dashboard-compose-icon,
.dashboard-user-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.dashboard-brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #7c3aed, var(--primary));
}

.dashboard-brand-title,
.dashboard-brand-subtitle {
  display: block;
  line-height: 1.2;
}

.dashboard-brand-title {
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.dashboard-brand-subtitle,
.dashboard-side-title,
.dashboard-credit-meta,
.dashboard-history-meta,
.dashboard-user-email {
  color: var(--muted);
  font-size: 11px;
}

.dashboard-sidebar-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 10px;
  color: #475569;
  background: transparent;
}

.dashboard-sidebar-toggle:hover {
  background: #f1f5f9;
}

.dashboard-side-section {
  padding-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
}

.dashboard-side-title {
  margin-bottom: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dashboard-mode-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.dashboard-mode-card {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 56px;
  padding: 8px 6px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: #475569;
  background: #fff;
  font-size: 12px;
  line-height: 1.1;
}

.dashboard-mode-card.active,
.dashboard-mode-card:hover {
  color: var(--primary);
  border-color: rgba(255, 36, 66, 0.2);
  background: rgba(255, 36, 66, 0.06);
}

.dashboard-credit-box {
  padding: 12px;
  border: 1px dashed #d8dee8;
  border-radius: 12px;
  background: #fafafa;
}

.dashboard-credit-value {
  color: var(--text);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.1;
}

.dashboard-credit-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 7px;
}

.dashboard-credit-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 6px;
  border-radius: 6px;
  color: #16a34a;
  background: #ecfdf5;
  font-weight: 700;
}

.dashboard-service-row {
  padding: 9px 10px;
  border: 1px solid #f1f5f9;
  border-radius: 10px;
  background: #fafafa;
  font-size: 12px;
}

.dashboard-announcement {
  display: grid;
  place-items: center;
  min-height: 72px;
  padding: 10px;
  border: 1px solid #f1f5f9;
  border-radius: 10px;
  background: #fafafa;
}

.dashboard-announcement-section {
  margin-top: auto;
}

.dashboard-announcement-extra {
  width: 100%;
  margin-top: 0;
  text-align: center;
}

.dashboard-announcement-extra > :last-child {
  margin-bottom: 0;
}

.dashboard-history-section {
  flex: 1 1 auto;
  min-height: 0;
}

.dashboard-history-search {
  flex: 0 0 124px;
}

.dashboard-history-search .form-control {
  height: 28px;
  padding: 4px 8px;
  border-radius: 9px;
  font-size: 12px;
}

.dashboard-history-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.dashboard-history-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px;
  border-radius: 10px;
  color: #334155;
}

.dashboard-history-item:hover {
  background: #eff6ff;
}

.dashboard-history-copy,
.dashboard-history-delete,
.dashboard-history-view,
.dashboard-history-edit {
  border: 0;
  background: transparent;
}

.dashboard-history-copy {
  width: 20px;
  padding: 0;
  color: #94a3b8;
  line-height: 1.4;
}

.dashboard-history-content {
  min-width: 0;
  flex: 1 1 auto;
}

.dashboard-history-title {
  overflow: hidden;
  color: #334155;
  font-size: 13px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-history-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 5px;
  font-size: 12px;
}

.dashboard-history-delete {
  padding: 0;
  color: #ef4444;
  font-size: 12px;
}

.dashboard-history-view {
  padding: 0;
  color: #2563eb;
  font-size: 12px;
}

.dashboard-history-edit {
  padding: 0;
  color: var(--primary);
  font-size: 12px;
}

.dashboard-history-empty {
  padding: 16px 8px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.dashboard-sidebar-footer {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 0;
}

.dashboard-side-menu {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.dashboard-side-menu > form {
  margin: 0;
}

.dashboard-side-link {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 8px 9px;
  border: 0;
  border-radius: 9px;
  color: #475569;
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  text-align: left;
}

.dashboard-side-link:hover,
.dashboard-side-link.active {
  color: var(--primary);
  background: rgba(255, 36, 66, 0.08);
}

.dashboard-side-button {
  cursor: pointer;
}

.dashboard-user-card {
  justify-content: flex-start;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
}

.dashboard-user-link {
  color: var(--text);
}

.dashboard-user-link:hover,
.dashboard-user-link.active {
  color: var(--text);
}

.dashboard-user-link:hover .dashboard-user-name,
.dashboard-user-link.active .dashboard-user-name {
  color: var(--primary);
}

.dashboard-user-menu {
  position: relative;
}

.dashboard-user-menu summary {
  cursor: pointer;
  list-style: none;
}

.dashboard-user-menu summary::-webkit-details-marker {
  display: none;
}

.dashboard-user-menu summary::marker {
  content: "";
  font-size: 0;
}

.dashboard-user-menu[open] .dashboard-user-chevron {
  transform: rotate(180deg);
}

.dashboard-user-chevron {
  margin-left: auto;
  color: #94a3b8;
  font-size: 12px;
  transition: transform 0.15s ease;
}

.dashboard-user-dropdown {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 8px;
  padding: 8px;
  border: 1px solid #f1f5f9;
  border-radius: 12px;
  background: #fafafa;
}

.dashboard-user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #fb7185);
  font-weight: 700;
}

.dashboard-user-copy {
  min-width: 0;
}

.dashboard-user-name,
.dashboard-user-email {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-user-name {
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.dashboard-workspace {
  position: relative;
  min-width: 0;
  min-height: calc(100vh - 16px);
  margin: 8px 0;
  padding: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}

.profile-workbench {
  grid-template-columns: var(--dashboard-sidebar-width) minmax(0, 1fr);
}

.changelog-workbench {
  grid-template-columns: var(--dashboard-sidebar-width) minmax(0, 1fr);
}

.profile-workbench .dashboard-workspace {
  margin-right: 8px;
}

.changelog-workbench .dashboard-workspace {
  margin-right: 8px;
}

.profile-workspace {
  overflow-y: auto;
}

.changelog-workspace {
  overflow-y: auto;
}

.profile-workspace-content {
  max-width: 980px;
  margin: 14px auto 0;
  padding: 0 4px 22px;
}

.changelog-workspace-content {
  max-width: 1080px;
  margin: 14px auto 0;
  padding: 0 4px 22px;
}

.profile-workspace-content .card {
  padding: 0;
}

.profile-workspace-content .card-body {
  padding: 18px !important;
}

.profile-workspace-content .mb-3 {
  margin-bottom: 12px !important;
}

.profile-workspace-content .mb-4 {
  margin-bottom: 14px !important;
}

.profile-workspace-content .gap-3 {
  gap: 12px !important;
}

.profile-workspace-content .row.g-3 {
  --bs-gutter-x: 12px;
  --bs-gutter-y: 12px;
}

.profile-workspace-content h2.h4 {
  font-size: 1.08rem;
  line-height: 1.3;
}

.profile-workspace-content h2.h5,
.profile-workspace-content h3.h6,
.changelog-workspace-content h1.h4,
.changelog-workspace-content h2.h5 {
  font-size: 0.98rem;
  line-height: 1.35;
}

.profile-workspace-content p,
.profile-workspace-content .text-muted-soft,
.profile-workspace-content .form-text,
.profile-workspace-content .small,
.changelog-workspace-content p,
.changelog-workspace-content .text-muted-soft,
.changelog-workspace-content .small,
.changelog-side-summary {
  font-size: 12px;
  line-height: 1.45;
}

.profile-workspace-content .form-label {
  margin-bottom: 5px;
  font-size: 12px;
  font-weight: 600;
}

.profile-workspace-content .form-control {
  min-height: 36px;
  padding: 7px 10px;
  border-radius: 10px;
  font-size: 13px;
}

.profile-workspace-content .btn {
  --bs-btn-padding-y: 0.34rem;
  --bs-btn-padding-x: 0.72rem;
  --bs-btn-font-size: 0.8rem;
  border-radius: 9px;
}

.profile-side-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid #f1f5f9;
  border-radius: 12px;
  background: #fafafa;
}

.profile-topbar-title {
  min-width: 0;
  margin-left: auto;
  text-align: right;
}

.profile-topbar-title h1 {
  font-size: 1rem;
}

.dashboard-workspace-topbar {
  position: relative;
  z-index: 1;
  width: 100%;
  justify-content: flex-end;
}

.dashboard-topbar-announcement {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
  height: 34px;
  padding: 0 10px;
  overflow: hidden;
  border: 1px solid #f1f5f9;
  border-radius: 999px;
  background: #f8fafc;
}

.dashboard-announcement-marquee {
  min-width: 0;
  overflow: hidden;
  flex: 1 1 auto;
}

.dashboard-announcement-track {
  display: inline-flex;
  align-items: center;
  gap: 48px;
  min-width: max-content;
  color: #475569;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
  animation: dashboard-announcement-scroll 24s linear infinite;
}

.dashboard-announcement-track span {
  display: inline-block;
}

.dashboard-topbar-announcement:hover .dashboard-announcement-track {
  animation-play-state: paused;
}

@keyframes dashboard-announcement-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-50% - 24px));
  }
}

.dashboard-topbar-brand {
  display: flex;
  align-items: center;
  gap: 22px;
  min-width: 0;
}

.dashboard-topbar-logo {
  width: auto;
  height: 40px;
}

.dashboard-topbar-divider {
  display: inline-block;
  width: 4px;
  height: 40px;
  margin-top: 2px;
  background: var(--primary);
}

.dashboard-topbar-title {
  min-width: 0;
  padding-left: 6px;
  border-left: 1px solid #f1f5f9;
}

.dashboard-workspace-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dashboard-topbar-credit {
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  gap: 3px 12px;
  min-width: 150px;
  padding: 9px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #f8fafc;
  color: var(--text);
  white-space: nowrap;
}

.dashboard-topbar-credit-label,
.dashboard-topbar-credit-meta {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
}

.dashboard-topbar-credit-value {
  color: var(--primary);
  font-size: 1.05rem;
  line-height: 1;
}

.dashboard-topbar-credit-value,
.dashboard-topbar-credit-meta {
  justify-self: end;
}

.dashboard-referral-section {
  padding-bottom: 14px;
}

.dashboard-referral-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  margin-bottom: 9px;
}

.dashboard-referral-summary {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
}

.dashboard-referral-summary strong {
  color: var(--primary);
  font-weight: 600;
}

.dashboard-referral-link-panel {
  width: 100%;
  min-width: 0;
  white-space: normal;
}

.dashboard-referral-copy {
  color: var(--primary);
  text-decoration: none;
  line-height: 1;
  justify-self: end;
}

.dashboard-referral-link-text {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-history-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
}

.dashboard-history-brand .dashboard-topbar-logo {
  height: 32px;
}

.dashboard-history-brand .dashboard-topbar-divider {
  height: 34px;
  margin-top: 0;
}

.dashboard-history-brand .navbar-brand {
  font-size: 15px;
  line-height: 1.1;
}

.dashboard-history-brand .small {
  font-size: 11px;
  line-height: 1.35;
}

.dashboard-alerts,
.dashboard-error {
  position: relative;
  z-index: 2;
  max-width: 980px;
  margin: 14px auto 0;
}

.dashboard-compose {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100vh - 120px);
  max-width: 980px;
  margin: 0 auto;
  padding: 24px 20px 34px;
}

.dashboard-compose-hero {
  margin-bottom: 30px;
  text-align: center;
}

.dashboard-compose-icon {
  width: 62px;
  height: 62px;
  margin: 0 auto 22px;
  border-radius: 18px;
  color: #0ea5e9;
  background: #eef4ff;
  font-size: 2rem;
}

.dashboard-compose-hero h2 {
  max-width: 800px;
  margin: 0 auto 8px;
  color: #0f172a;
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.dashboard-compose-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.dashboard-compose-box {
  position: relative;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.dashboard-edit-source {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding: 8px;
  border: 1px solid rgba(255, 36, 66, 0.18);
  border-radius: 12px;
  background: rgba(255, 36, 66, 0.04);
}

.dashboard-edit-source-img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
}

.dashboard-edit-source-copy {
  min-width: 0;
}

.dashboard-edit-source-title {
  color: #0f172a;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
}

.dashboard-edit-source-meta {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.dashboard-edit-cancel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  color: #64748b;
  background: #fff;
}

.dashboard-edit-cancel:hover {
  color: var(--primary);
  background: rgba(255, 36, 66, 0.08);
}

.dashboard-compose-input {
  min-height: 76px;
  padding: 8px 0 12px;
  border: 0;
  resize: vertical;
  box-shadow: none !important;
  font-size: 14px;
}

.dashboard-compose-input:focus {
  border: 0;
}

.dashboard-compose-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
}

.dashboard-ratio-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
}

.dashboard-upload-image-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 50%;
  color: #64748b;
  background: #f8fafc;
  font-size: 15px;
}

.dashboard-upload-image-btn:hover,
.dashboard-upload-image-btn:focus {
  color: var(--primary);
  background: rgba(255, 36, 66, 0.08);
}

.dashboard-upload-image-btn:disabled {
  cursor: wait;
  opacity: 0.65;
}

.dashboard-tool-label {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  color: #64748b;
  background: #f8fafc;
  font-size: 12px;
}

.dashboard-ratio-select,
.dashboard-service-mode-select {
  width: min(210px, 100%);
  min-height: 34px;
  flex: 0 1 210px;
  border-color: #e2e8f0;
  border-radius: 999px;
  color: #334155;
  background-color: #f8fafc;
  font-size: 12px;
}

.dashboard-service-mode-select {
  width: min(176px, 100%);
  flex-basis: 176px;
}

.dashboard-ratio-select:focus,
.dashboard-service-mode-select:focus {
  border-color: rgba(255, 36, 66, 0.35);
  box-shadow: 0 0 0 0.18rem rgba(255, 36, 66, 0.12);
}

.dashboard-privacy-note {
  flex: 0 1 auto;
  padding: 0;
  border: 0;
}

.dashboard-privacy-note summary {
  padding: 7px 10px;
  border-radius: 999px;
  background: #f8fafc;
  white-space: nowrap;
}

.dashboard-privacy-note p {
  position: absolute;
  right: 18px;
  bottom: 74px;
  z-index: 5;
  width: min(320px, calc(100vw - 40px));
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow);
}

.dashboard-submit-row {
  display: flex;
  justify-content: flex-start;
  padding-top: 10px;
}

.dashboard-generate-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  border-radius: 999px;
}

.dashboard-generate-btn.is-waiting {
  gap: 7px;
  min-width: 218px;
  white-space: nowrap;
}

.dashboard-submit-wait-copy {
  font-weight: 600;
}

.dashboard-submit-wait-time {
  opacity: 0.82;
  font-size: 11px;
}

.dashboard-result {
  margin-top: 22px;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #f8fafc;
}

.dashboard-history-section .history-pagination-wrap {
  padding-top: 10px;
}

.dashboard-history-section .history-pagination {
  justify-content: center;
  gap: 6px;
}

.dashboard-history-section .history-pagination .btn {
  padding: 4px 8px;
  font-size: 11px;
}

@media (max-width: 991.98px) {
  .md-d-none {
    display: none !important;
  }

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

  .dashboard-sidebar {
    position: relative;
    top: auto;
    height: auto;
  }

  .dashboard-sidebar-resizer {
    display: none;
  }

  .dashboard-sidebar,
  .dashboard-history-aside {
    padding: 8px 8px 0;
  }

  .dashboard-history-aside {
    margin: 0 8px 8px;
    padding: 14px;
  }

  .dashboard-sidebar-inner,
  .dashboard-history-aside {
    height: auto;
    max-height: none;
  }

  .dashboard-workspace {
    min-height: auto;
    margin: 0 8px 8px;
  }

  .dashboard-topbar-brand {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .dashboard-topbar-title {
    padding-left: 0;
    border-left: 0;
  }

  .dashboard-compose {
    min-height: auto;
    padding-top: 42px;
  }
}

@media (max-width: 575.98px) {
  .dashboard-mode-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-workspace {
    padding: 14px;
  }

  .dashboard-workspace-topbar,
  .dashboard-compose-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .dashboard-workspace-actions,
  .dashboard-topbar-announcement,
  .dashboard-ratio-menu {
    width: 100%;
  }

  .dashboard-ratio-select,
  .dashboard-service-mode-select {
    width: 100%;
    flex-basis: auto;
  }

  .dashboard-topbar-credit,
  .dashboard-generate-btn {
    width: 100%;
  }

  .dashboard-submit-row {
    justify-content: stretch;
  }
}

.dashboard-top-card > .card-body {
  padding: 14px 20px 16px;
}

.credit-card > .card-body {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.credit-card .display-6 {
  margin-top: 6px;
}

.privacy-note {
  padding: 8px 0 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.privacy-note summary {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  color: var(--primary);
  font-size: 11px;
  font-weight: 400;
  list-style: none;
  list-style-type: none;
}

.privacy-note summary::-webkit-details-marker {
  display: none;
}

.privacy-note summary::marker {
  content: "";
  font-size: 0;
}

.ratio-inline-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ratio-inline-row .form-label {
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 600;
}

.ratio-options {
  flex: 1 1 auto;
  min-width: 0;
}

.ratio-option-btn {
  --bs-btn-padding-y: 0.28rem;
  --bs-btn-padding-x: 0.55rem;
  font-size: 11px;
  line-height: 1.2;
}

.history-prompt-text {
  font-size: 13px;
  line-height: 1.35;
}

.history-created {
  font-size: 11px;
  line-height: 1.2;
}

.history-pagination-wrap {
  padding-top: 14px;
}

.history-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.history-page-status {
  min-width: 48px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}

.history-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.history-search-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.history-search-input {
  min-width: 240px;
  border-radius: 10px;
  border-color: #e2e8f0;
  background: #f8fafc;
}

.history-search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(255, 36, 66, 0.12);
  background: #fff;
}

.history-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 80px;
  white-space: nowrap;
  border-radius: 10px;
  padding-inline: 12px;
}

@media (max-width: 576px) {
  .history-search-form {
    width: 100%;
  }

  .history-search-input {
    min-width: 0;
    flex: 1 1 auto;
  }
}

.dashboard-lead {
  font-size: 14px;
  color: var(--muted);
  margin: 4px 0 20px;
}

/* 个人中心 */
.profile-page {
  scroll-behavior: smooth;
}

.profile-hero .card-body {
  min-height: 96px;
}

.profile-avatar {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), #fb7185);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(255, 36, 66, 0.16);
}

.profile-nav-card {
  position: sticky;
  top: 16px;
}

.profile-nav-link {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text);
  font-size: 14px;
}

.profile-nav-link:hover,
.profile-nav-link.active {
  color: var(--primary);
  background: #fff0f3;
}

.profile-api-key-box {
  background: #f8fafc;
}

.profile-logout-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fffafa;
}

.profile-api-key {
  flex: 1 1 240px;
  min-width: 0;
  font-size: 12px;
  word-break: break-all;
}

@media (max-width: 991.98px) {
  .profile-nav-card {
    position: static;
  }

  .profile-nav-card .card-body {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .profile-nav-link {
    width: auto;
  }
}

/* 首页顶部参考样式（从 home.html 内联迁移） */
.hero-reference-wrap {
  background: linear-gradient(180deg, #fff 0%, #fff7fb 100%);
}

.hero-main-title {
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.hero-main-title .accent {
  color: var(--primary);
}

.hero-dot-tip {
  color: #ef4444;
  font-weight: 600;
  font-size: 0.95rem;
}

.hero-code-card {
  border-radius: 16px;
  background: linear-gradient(135deg, #0f172a, #1e3a8a);
  color: #e2e8f0;
  border: none;
}

.hero-preview-card {
  border-radius: 20px;
  border: 1px solid #f1f5f9;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.12);
  position: relative;
  overflow: hidden;
  background: #fff;
}

.hero-preview-accent-1,
.hero-preview-accent-2 {
  position: absolute;
  border-radius: 14px;
  transform: rotate(-8deg);
  z-index: 0;
}

.hero-preview-accent-1 {
  width: 92px;
  height: 92px;
  background: #fda4af;
  top: -16px;
  right: 48px;
}

.hero-preview-accent-2 {
  width: 86px;
  height: 86px;
  background: #fecdd3;
  bottom: -18px;
  right: -10px;
}

.hero-preview-inner {
  position: relative;
  z-index: 1;
}

.hero-mock-cover {
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e2e8f0;
  padding: 14px;
}

.hero-cover-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 10px;
}

.hero-cover-item {
  aspect-ratio: 3 / 4;
  border-radius: 8px;
  background: linear-gradient(160deg, #cbd5e1, #94a3b8);
}

.hero-nav-center .nav-link {
  font-weight: 500;
  color: #334155;
}

.hero-nav-center .nav-link:hover {
  color: #0f172a;
}

/* Landing Page v2 */
.landing-home {
  background: #fff;
}

.landing-nav .nav-link {
  color: #475569;
  font-weight: 500;
}

.landing-nav .nav-link:hover {
  color: var(--primary);
}

.landing-hero {
  background: linear-gradient(180deg, #fff 0%, #fae3e7 100%);
}

.landing-tip {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
}

.landing-title {
  font-size: clamp(2rem, 4.1vw, 3.2rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.landing-subtitle {
  color: #64748b;
  font-size: 1.05rem;
}

.landing-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  font-size: 1.5rem;
  color: #fff;
  background: var(--primary);
  border-radius: 0.5rem;
}

.landing-step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
}

.landing-code {
  background: #111827;
  color: #e2e8f0;
  border-radius: 14px;
}

.landing-preview {
  border-radius: 16px;
}

.landing-preview-image {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  display: block;
}

.landing-preview-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.landing-preview-carousel .carousel-inner {
  overflow: hidden;
  border-radius: 10px;
}

.landing-preview-slide-img {
  object-fit: contain;
  max-height: min(52vw, 320px);
  background: #f8fafc;
}

.landing-preview-carousel .carousel-indicators {
  position: static;
  display: flex;
  justify-content: center;
  margin: 0.75rem 0 0;
  gap: 6px;
}

.landing-preview-carousel-dots {
  padding-bottom: 0.25rem;
}

.landing-preview-carousel .carousel-indicators [data-bs-target] {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  background-color: #cbd5e1;
  opacity: 1;
}

.landing-preview-carousel .carousel-indicators .active {
  background-color: var(--primary);
}

.landing-preview-carousel-control {
  width: 2.25rem;
  height: 2.25rem;
  top: 38%;
  border-radius: 50%;
  background: var(--primary);
  border: 1px solid var(--primary);
  opacity: 1;
}

.landing-preview-carousel .carousel-control-prev {
  left: 0.5rem;
}

.landing-preview-carousel .carousel-control-next {
  right: 0.5rem;
}

.landing-preview-carousel-control:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}

.landing-preview-carousel-control .carousel-control-prev-icon,
.landing-preview-carousel-control .carousel-control-next-icon {
  filter: brightness(0) invert(1);
  width: 1.1rem;
  height: 1.1rem;
  background-size: 1.1rem 1.1rem;
}

.landing-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.landing-preview-item {
  aspect-ratio: 3 / 4;
  border-radius: 10px;
  background: linear-gradient(155deg, #fecdd3, #fda4af);
}

.landing-snippet {
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #0f172a;
  color: #cbd5e1;
  padding: 14px 16px;
}

.landing-snippet code {
  color: inherit;
}


.pricing-card {
  border-radius: 16px;
  border: 2px solid #e2e8f0;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  will-change: transform;
}

.pricing-card:hover {
  transform: translateY(-6px);
  border-color: #ff2442;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
}

.pricing-card-featured:hover {
  box-shadow: 0 16px 36px rgba(255, 36, 66, 0.2);
}

.pricing-discount-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
}

.landing-pricing {
  background: linear-gradient(180deg, #fff9fb 0%, #fff1f4 52%, #ffecef 100%);
  border-top: 1px solid #f3e8ee;
  border-bottom: 1px solid #f3e8ee;
}

.landing-pricing-pill {
  color: #475569;
}

.landing-pricing-featured-box {
  background: linear-gradient(135deg, #fff1f2, #fff7ed);
}

/* 更新日志：行业通用 release timeline 样式 */
.changelog-page-head {
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
}

.changelog-title {
  margin: 0 0 5px;
  color: #0f172a;
  font-size: 20px;
  font-weight: 750;
  line-height: 1.28;
}

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

.changelog-content {
  min-width: 0;
}

.changelog-section-head {
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f1f5f9;
}

.changelog-section-head h2,
.changelog-toc-title {
  margin: 0;
  color: #0f172a;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.changelog-list {
  position: relative;
  display: grid;
  gap: 0;
}

.changelog-list::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 7px;
  width: 1px;
  background: #e2e8f0;
}

.changelog-release {
  position: relative;
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 14px;
  padding: 0 0 20px;
}

.changelog-release:last-child {
  padding-bottom: 0;
}

.changelog-marker {
  position: relative;
  z-index: 1;
  width: 15px;
  height: 15px;
  margin-top: 4px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 1px rgba(255, 36, 66, 0.22);
}

.changelog-release-main {
  min-width: 0;
  padding-bottom: 20px;
  border-bottom: 1px solid #f1f5f9;
}

.changelog-release:last-child .changelog-release-main {
  padding-bottom: 0;
  border-bottom: 0;
}

.changelog-release-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
}

.changelog-release-meta time {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
}

.changelog-version {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 9px;
  border-radius: 999px;
  color: var(--primary);
  background: rgba(255, 36, 66, 0.08);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.changelog-release-title {
  margin: 0 0 7px;
  color: #0f172a;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.changelog-body {
  font-size: 12px;
  line-height: 1.55;
}

.changelog-empty {
  padding: 16px 0;
  font-size: 12px;
}

.changelog-toc {
  position: sticky;
  top: 16px;
  min-width: 0;
  padding-left: 20px;
  border-left: 1px solid #e5e7eb;
}

.changelog-toc-title {
  margin-bottom: 10px;
}

.changelog-toc-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.changelog-toc-link {
  display: grid;
  gap: 3px;
  padding: 8px 10px;
  border-radius: 8px;
  color: #475569;
  text-decoration: none;
  line-height: 1.35;
  transition: background 0.2s ease, color 0.2s ease;
}

.changelog-toc-link:hover {
  color: var(--primary);
  background: #fff0f3;
}

.changelog-toc-version {
  color: #0f172a;
  font-size: 12px;
  font-weight: 700;
}

.changelog-toc-date {
  color: var(--muted);
  font-size: 11px;
}

.changelog-toc-name,
.changelog-toc-empty {
  color: #64748b;
  font-size: 12px;
}

@media (max-width: 991.98px) {
  .changelog-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .changelog-toc {
    position: static;
    order: -1;
    padding: 0 0 14px;
    border-left: 0;
    border-bottom: 1px solid #f1f5f9;
  }

  .changelog-toc-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
}
