:root {
  --bg: #f3f1ec;
  --surface: #fffdfa;
  --border: #e5dfd6;
  --text: #1a1816;
  --muted: #6f6963;
  --accent: #c2410c;
  --accent-hover: #9a3412;
  --accent-soft: #fff7ed;
  --ok: #15803d;
  --warn: #b45309;
  --err: #b91c1c;
  --radius: 12px;
  --shadow: 0 8px 28px rgba(26, 24, 22, 0.06);
  --header-h: 3.5rem;
  --actions-h: 11.5rem;
}

* {
  box-sizing: border-box;
}

html {
  scrollbar-gutter: stable;
}

html.is-scroll-locked {
  overflow: hidden;
}

/* display:flex 会覆盖浏览器对 [hidden] 的隐藏，必须显式关掉 */
[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: "Noto Sans SC", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

body.is-scroll-locked {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
}

/* —— 应用外壳：占满视口，主栏内滚动 —— */
.app-shell {
  max-width: 1280px;
  margin: 0 auto;
  min-height: 100dvh;
  padding: 0.65rem 0.85rem 0.85rem;
  display: flex;
  flex-direction: column;
}

.site-notice-bar {
  flex-shrink: 0;
  margin-bottom: 0.65rem;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  line-height: 1.45;
  text-align: center;
}

.site-notice-bar.is-announcement {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.site-notice-bar.is-maintenance {
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #fed7aa;
}

.site-footer {
  flex-shrink: 0;
  margin-top: auto;
  padding: 0.85rem 0.15rem 0.35rem;
  border-top: 1px solid var(--border);
}

.site-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  margin-bottom: 0.45rem;
}

.site-footer-nav a {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
}

.site-footer-nav a:hover {
  color: var(--accent);
}

.site-footer-seo {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.85rem;
  margin-bottom: 0.5rem;
}

.site-footer-seo a {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
}

.site-footer-seo a:hover {
  color: var(--accent);
}

.site-footer-copy {
  margin: 0;
  font-size: 0.68rem;
  color: #a8a29e;
  line-height: 1.5;
}

.site-faq {
  flex-shrink: 0;
  margin: 1.25rem 0 0.5rem;
  padding: 1.15rem 0.15rem 0.25rem;
  border-top: 1px solid var(--border);
}

.site-faq h2 {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  font-weight: 700;
}

.site-faq-list {
  margin: 0;
  display: grid;
  gap: 0.65rem;
}

.site-faq-item dt {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
}

.site-faq-item dd {
  margin: 0.2rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.55;
}

.header {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.65rem;
  padding: 0.35rem 0.15rem;
}

.brand {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  min-width: 0;
  text-decoration: none;
  color: inherit;
  flex: 1 1 auto;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.brand:hover .brand-logo {
  transform: scale(1.03);
}

.brand:hover .brand-mark {
  transform: scale(1.03);
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 10px;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.brand-text {
  min-width: 0;
}

.brand h1 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.tagline {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.api-status {
  font-size: 0.72rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  white-space: nowrap;
}

.api-status.ok {
  color: var(--ok);
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.api-status.bad {
  color: var(--err);
  border-color: #fecaca;
  background: #fef2f2;
}

/* —— 顶栏导航 / 工具栏 —— */
.header-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex-shrink: 0;
}

.header-toolbar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-left: auto;
}

.header-link {
  padding: 0.35rem 0.55rem;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease;
}

a.header-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.header-link:hover {
  color: var(--text);
  background: rgba(26, 24, 22, 0.05);
}

.header-link--accent {
  color: var(--accent);
}

.header-link--accent:hover {
  color: var(--accent-hover);
  background: var(--accent-soft);
}

.header-link--inline {
  padding: 0;
  font-size: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.lang-menu {
  position: relative;
}

.lang-globe-btn {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.lang-globe-btn:hover,
.lang-globe-btn.is-open {
  border-color: #fdba74;
  color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 2px 8px rgba(194, 65, 12, 0.08);
}

.lang-globe-icon {
  display: block;
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  z-index: 130;
  min-width: 8.5rem;
  padding: 0.3rem;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface);
  box-shadow: var(--shadow), 0 12px 28px rgba(26, 24, 22, 0.1);
  animation: progress-enter 0.18s ease;
}

.lang-dropdown[hidden] {
  display: none !important;
}

.lang-option {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0.48rem 0.65rem;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}

.lang-option:hover {
  background: #faf8f5;
  color: var(--accent);
}

.lang-option.is-active {
  background: var(--accent-soft);
  color: var(--accent);
}

.lang-option.is-active::after {
  content: "✓";
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 800;
}

.auth-slot {
  display: flex;
  align-items: center;
}

.auth-guest,
.auth-user {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.auth-user-hit {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  max-width: 11rem;
  padding: 0.15rem 0.35rem 0.15rem 0.15rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  font: inherit;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.auth-user-hit:hover {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.72);
}

.auth-user-avatar {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(28, 25, 23, 0.08);
}

.auth-user-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
}

.auth-user-hit:hover .auth-user-name {
  color: var(--accent);
}

.auth-login-btn {
  padding: 0.32rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.auth-login-btn:hover {
  border-color: #fdba74;
  color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 2px 8px rgba(194, 65, 12, 0.08);
}

/* —— 站点弹窗（定价 / 对比 / 登录） —— */
.site-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.site-modal[hidden] {
  display: none !important;
}

.site-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 24, 22, 0.42);
  backdrop-filter: blur(2px);
}

.site-modal-card {
  position: relative;
  width: min(100%, 26rem);
  max-height: min(88dvh, 720px);
  overflow: auto;
  padding: 1.25rem 1.35rem 1.35rem;
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow), 0 24px 48px rgba(26, 24, 22, 0.12);
  animation: progress-enter 0.25s ease;
}

.site-modal-card--wide {
  width: min(100%, 42rem);
}

.site-modal-card--pricing {
  padding: 1.15rem 1.25rem 1.25rem;
}

.site-modal-card--pricing .member-section-head {
  margin-bottom: 0;
}

.site-modal-card--pricing .member-section-lead {
  margin: 0 0 0.85rem;
  padding-right: 1.5rem;
}

.site-modal-card--pricing .site-modal-title {
  margin: 0 1.75rem 0 0;
  font-size: 1.05rem;
}

.site-modal-card--pricing .member-pricing-panel {
  box-shadow: none;
}

.site-modal-close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.site-modal-close:hover {
  background: #f5f5f4;
  color: var(--text);
}

.site-modal-title {
  margin: 0 1.75rem 0.35rem 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.site-modal-lead {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
}

.site-modal-foot {
  margin: 0.85rem 0 0;
  font-size: 0.74rem;
  color: var(--muted);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.95rem;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: #faf8f5;
}

.pricing-card--pro {
  border-color: #fdba74;
  background: linear-gradient(180deg, #fff7ed 0%, #fffdfa 100%);
}

.pricing-badge {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.pricing-card h3 {
  margin: 0;
  font-size: 0.95rem;
}

.pricing-price {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
}

.pricing-amount {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.pricing-period {
  font-size: 0.78rem;
  color: var(--muted);
}

.pricing-features {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.76rem;
  color: var(--text);
  line-height: 1.55;
}

.pricing-features li + li {
  margin-top: 0.2rem;
}

.pricing-cta {
  width: 100%;
  margin-top: auto;
  text-align: center;
}

.pricing-cta--pro {
  border: none;
  padding: 0.62rem 0.85rem;
  border-radius: 10px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  cursor: pointer;
}

.pricing-cta--pro:hover {
  filter: brightness(1.05);
}

.compare-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.compare-table th,
.compare-table td {
  padding: 0.55rem 0.65rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.compare-table thead th {
  background: #faf8f5;
  font-weight: 700;
}

.compare-table tbody th {
  font-weight: 600;
  color: var(--text);
}

.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td {
  border-bottom: none;
}

.compare-table td:last-child,
.compare-table thead th:last-child {
  color: var(--accent);
  font-weight: 600;
}

/* —— 定价方案弹窗（Premium v5 — 一体对比表） —— */
#pricingModal .site-modal-backdrop {
  background: rgba(15, 14, 13, 0.48);
  backdrop-filter: blur(8px);
}

.site-modal-card.pricing-modal {
  width: min(100%, 44rem);
  max-height: none;
  overflow: visible;
}

.pricing-modal {
  padding: 0;
  max-width: min(100%, 44rem);
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(229, 223, 214, 0.5);
  box-shadow:
    0 1px 1px rgba(26, 24, 22, 0.03),
    0 24px 48px rgba(26, 24, 22, 0.12);
}

.pricing-modal .site-modal-close {
  top: 0.75rem;
  right: 0.75rem;
  z-index: 3;
  width: 1.85rem;
  height: 1.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #a8a29e;
  background: #fafaf9;
  border: none;
  font-size: 1.1rem;
  line-height: 1;
}

.pricing-modal .site-modal-close:hover {
  color: var(--text);
  background: #f5f5f4;
}

.pricing-modal-header {
  padding: 1.15rem 1.35rem 0.65rem;
  text-align: center;
  background: #fff;
}

.pricing-modal-header--inline {
  padding: 0 0 0.85rem;
  text-align: left;
}

.pricing-modal-kicker {
  display: inline-block;
  margin: 0 0 0.45rem;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  background: var(--accent-soft);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--accent);
}

.pricing-modal-title {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--text);
}

.pricing-modal-lead {
  margin: 0 auto;
  max-width: 28rem;
  font-size: 0.76rem;
  line-height: 1.35;
  color: #8a8480;
}

.pricing-modal-header:not(.pricing-modal-header--inline) .pricing-modal-lead {
  max-width: none;
  padding: 0 0.25rem;
}

.pricing-modal-header--inline .pricing-modal-lead {
  margin: 0;
  max-width: none;
}

.pricing-workflow-narrative {
  margin-top: 0.75rem;
  padding: 0.85rem 0.75rem 0.9rem;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 16%, #fed7aa);
  background: linear-gradient(135deg, #fff7ed 0%, #fff 52%, #fafaf9 100%);
  box-shadow: 0 4px 16px rgba(234, 88, 12, 0.05);
}

.pricing-workflow-kicker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: fit-content;
  margin: 0 auto 0.7rem;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  border: 1px solid #fed7aa;
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #c2410c;
}

.pricing-workflow-kicker::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: #ea580c;
  box-shadow: 0 0 0 2px #ffedd5;
}

.pricing-workflow-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: stretch;
  gap: 0.35rem;
}

.pricing-workflow-steps li {
  flex: 1 1 0;
  min-width: 0;
  position: relative;
  display: flex;
}

.pricing-workflow-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -0.42rem;
  z-index: 2;
  width: 0.42rem;
  height: 0.42rem;
  border-right: 2px solid #fdba74;
  border-top: 2px solid #fdba74;
  transform: translateY(-50%) rotate(45deg);
  pointer-events: none;
}

.pricing-workflow-step-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.3rem;
  width: 100%;
  padding: 0.55rem 0.4rem 0.62rem;
  border-radius: 11px;
  border: 1px solid rgba(254, 215, 170, 0.75);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.04);
}

.pricing-workflow-step-num {
  position: absolute;
  top: -0.42rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 999px;
  border: 2px solid #fff;
  background: linear-gradient(145deg, #fb923c 0%, #ea580c 100%);
  color: #fff;
  font-size: 0.58rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(234, 88, 12, 0.28);
}

.pricing-workflow-step-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  margin-top: 0.35rem;
  border-radius: 9px;
  background: #fff7ed;
  color: #ea580c;
}

.pricing-workflow-step-icon svg {
  display: block;
}

.pricing-workflow-step-body {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
  width: 100%;
}

.pricing-workflow-step-body strong {
  font-size: 0.72rem;
  font-weight: 700;
  color: #1c1917;
  line-height: 1.35;
}

.pricing-workflow-step-body span {
  font-size: 0.62rem;
  line-height: 1.45;
  color: #78716c;
}

@media (max-width: 720px) {
  .pricing-workflow-steps {
    flex-direction: column;
    gap: 0.55rem;
  }

  .pricing-workflow-steps li:not(:last-child)::after {
    top: auto;
    bottom: -0.48rem;
    right: auto;
    left: 50%;
    transform: translateX(-50%) rotate(135deg);
  }

  .pricing-workflow-step-card {
    padding: 0.62rem 0.55rem 0.68rem;
  }
}

.pricing-year-note {
  margin: 0.45rem auto 0;
  max-width: 28rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-align: center;
  color: #c2410c;
}

.pricing-year-note[hidden] {
  display: none !important;
}

.pricing-tier-price-year {
  display: inline;
}

.pricing-billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  margin: 0.65rem auto 0;
  padding: 0.2rem;
  border-radius: 999px;
  border: 1px solid #efe9e1;
  background: #fafaf9;
}

.pricing-modal-header--inline .pricing-billing-toggle {
  margin: 0.65rem 0 0;
}

.pricing-billing-toggle__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  border: none;
  border-radius: 999px;
  padding: 0.38rem 0.85rem;
  background: transparent;
  color: #78716c;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  line-height: 1.2;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.pricing-billing-toggle__badge {
  display: inline-block;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  color: #fff;
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.15;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(194, 65, 12, 0.28);
  animation: pricing-year-badge-bounce 2.2s ease-in-out infinite;
}

.pricing-billing-toggle__btn.is-active .pricing-billing-toggle__badge {
  animation: none;
  opacity: 0.92;
}

@keyframes pricing-year-badge-bounce {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  18% {
    transform: translateY(-3px) scale(1.06);
  }
  36% {
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pricing-billing-toggle__badge {
    animation: none;
  }
}

.pricing-billing-toggle__btn.is-active {
  background: #fff;
  color: var(--text);
  box-shadow: 0 1px 4px rgba(26, 24, 22, 0.08);
}

.pricing-billing-toggle__btn:hover:not(.is-active) {
  color: var(--text);
}

.pricing-tier-price-month {
  display: inline;
}

.pricing-tier-price-year[hidden],
.pricing-tier-price-month[hidden] {
  display: none !important;
}

.pricing-modal-body {
  padding: 0 1.15rem 0.35rem;
}

.pricing-matrix {
  --pricing-cols: minmax(7.5rem, 1.32fr) repeat(3, minmax(4.8rem, 1fr));
  display: block;
}

.pricing-matrix--inline {
  --pricing-cols: minmax(6.5rem, 1.28fr) repeat(3, minmax(4.2rem, 1fr));
}

.pricing-feature-grid {
  border-radius: 12px;
  border: 1px solid #efe9e1;
  overflow: hidden;
  background: #fff;
}

.pricing-feature-row {
  display: grid;
  grid-template-columns: var(--pricing-cols);
  gap: 0.45rem;
  align-items: center;
  padding: 0.42rem 0.65rem;
  border-bottom: 1px solid #f3f0eb;
}

.pricing-feature-row > * {
  min-width: 0;
  width: auto;
  max-width: none;
}

.pricing-feature-row--tiers {
  align-items: stretch;
  padding: 0.65rem 0.55rem 0.6rem;
  background: #fafaf9;
  border-bottom: 1px solid #ebe6df;
}

.pricing-feature-row--last {
  border-bottom: none;
}

.pricing-feature-row:not(.pricing-feature-row--tiers):hover {
  background: #fcfcfb;
}

.pricing-feature-row__label {
  padding-left: 0.1rem;
  font-size: 0.76rem;
  font-weight: 500;
  color: #44403c;
  line-height: 1.35;
}

.pricing-feature-row--tiers .pricing-feature-row__label {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a8a29e;
}

.pricing-tier-hd {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100%;
  padding: 0;
}

.pricing-tier-hd__inner {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: stretch;
  gap: 0.4rem;
  min-height: 100%;
  padding: 0.55rem 0.4rem 0.5rem;
  border-radius: 11px;
  border: 1px solid #efe9e1;
  background: #fff;
  text-align: center;
}

.pricing-tier-hd__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.28rem;
  min-height: 1.15rem;
}

.pricing-tier-hd__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.18rem;
  min-width: 0;
  min-height: 2.35rem;
}

.pricing-tier-hd__price-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.22rem;
  margin-top: 0.05rem;
}

.pricing-tier-hd__badge {
  padding: 0.14rem 0.5rem;
  border-radius: 999px;
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  white-space: nowrap;
}

.pricing-tier-hd__badge.compare-pro-badge {
  background: var(--accent);
  color: #fff;
}

.pricing-tier-hd__badge--soon {
  background: #fff;
  color: #78716c;
  border: 1px solid #e7e5e4;
}

.pricing-tier-hd__name {
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.pricing-tier-hd__tagline {
  display: block;
  max-width: 100%;
  font-size: 0.58rem;
  font-weight: 600;
  line-height: 1.25;
  color: #a8a29e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pricing-tier-hd__price {
  font-size: 0.78rem;
  font-weight: 700;
  color: #57534e;
  line-height: 1.2;
}

.pricing-tier-hd--pro .pricing-tier-hd__inner {
  border-color: rgba(234, 88, 12, 0.22);
  background: linear-gradient(180deg, #fffbf7 0%, #fff7ed 100%);
  box-shadow: 0 6px 18px rgba(234, 88, 12, 0.08);
}

.pricing-tier-hd--pro .pricing-tier-hd__name {
  color: #9a3412;
}

.pricing-tier-hd--pro .pricing-tier-hd__tagline {
  color: #c2410c;
}

.pricing-tier-hd--pro .pricing-tier-hd__price {
  font-size: 0.9rem;
  color: #c2410c;
}

.pricing-tier-hd--team .pricing-tier-hd__inner {
  background: #fafaf9;
  border-style: dashed;
}

.pricing-tier-hd--team .pricing-tier-hd__name {
  color: #78716c;
}

.pricing-tier-year-anchor--hd {
  display: inline-block;
  padding: 0.1rem 0.42rem;
  border-radius: 999px;
  background: #ffedd5;
  color: #c2410c;
  font-size: 0.56rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.pricing-tier-year-anchor--hd[hidden] {
  display: none !important;
}

.pricing-tier-list-price {
  display: block;
  margin-top: 0.14rem;
  font-size: 0.56rem;
  font-weight: 500;
  line-height: 1.35;
  color: #a8a29e;
  white-space: nowrap;
}

.pricing-tier-list-price[hidden] {
  display: none !important;
}

.pricing-tier-list-price__was {
  text-decoration: line-through;
  text-decoration-thickness: 1px;
  text-decoration-color: #c8c2ba;
  color: #a8a29e;
}

.pricing-tier-list-price__sep {
  margin: 0 0.12rem;
  color: #d6d3d1;
}

.pricing-tier-list-price__note {
  color: #c2410c;
  font-weight: 700;
}

.pricing-tier-hd__cta {
  width: 100%;
  margin-top: auto;
  padding: 0.42rem 0.5rem;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  color: #fff;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
  line-height: 1.25;
  box-shadow: 0 3px 10px rgba(194, 65, 12, 0.22);
  transition: filter 0.15s ease;
}

.pricing-tier-hd__cta:hover {
  filter: brightness(1.05);
}

.pricing-tier-hd__cta[hidden] {
  display: none;
}

.compare-tier-current--pill {
  padding: 0.1rem 0.42rem;
  border-radius: 999px;
  background: #f5f5f4;
  color: #78716c;
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.2;
  white-space: nowrap;
}

.pricing-tier-hd--pro .compare-tier-current--pill {
  background: #fff;
  color: #c2410c;
  border: 1px solid #fed7aa;
}

.compare-tier-current[hidden] {
  display: none !important;
}

.pricing-modal .compare-val {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.3;
  color: #57534e;
  padding: 0.1rem 0.15rem;
}

.pricing-modal .compare-val--pro {
  font-weight: 600;
  color: #292524;
  background: rgba(255, 247, 237, 0.45);
  border-radius: 6px;
}

.pricing-modal .compare-val--hero,
.pricing-modal .compare-val--unlimited {
  font-weight: 700;
  color: #1c1917;
}

.pricing-modal .compare-val--dim {
  color: #a8a29e;
}

.pricing-modal .compare-val--yes {
  font-weight: 600;
  color: #15803d;
}

.pricing-modal .compare-val--yes::before {
  content: "✓";
  margin-right: 0.15rem;
  font-weight: 800;
}

.pricing-modal .compare-val--unlimited::before {
  content: none;
}

.pricing-modal .compare-col-free,
.pricing-modal .compare-col-pro,
.pricing-modal .compare-col-team {
  width: auto;
  min-width: 0;
  max-width: none;
}

.compare-col-pro.member-pricing-highlight,
.compare-val--pro.member-pricing-highlight,
.pricing-tier-hd--pro.member-pricing-highlight {
  animation: pricing-col-pulse 1.6s ease;
}

@keyframes pricing-col-pulse {
  0%,
  100% {
    filter: none;
  }
  45% {
    filter: brightness(1.05);
  }
}

.pricing-modal-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.75rem;
  min-height: 0;
  padding: 0.35rem 0 0.15rem;
}

.pricing-modal-cta--inline {
  justify-content: flex-start;
  padding: 0.5rem 0 0;
}

.pricing-modal-current {
  font-size: 0.74rem;
  font-weight: 600;
  color: #78716c;
}

.pricing-modal-foot {
  margin: 0;
  padding: 0.55rem 1.35rem 0.75rem;
  font-size: 0.68rem;
  line-height: 1.45;
  color: #a8a29e;
  text-align: center;
  border-top: 1px solid #f3f0eb;
  background: #fafaf9;
}

.pricing-modal-foot--inline {
  padding: 0.65rem 0 0;
  border-top: none;
  background: transparent;
  text-align: left;
}

.pricing-modal--inline {
  padding: clamp(0.85rem, 2.5vw, 1rem);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
  max-height: none;
  overflow: visible;
}

@media (max-width: 640px) {
  .site-modal {
    padding: 0.5rem;
    place-items: start center;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .site-modal-card.pricing-modal {
    width: min(100%, calc(100vw - 1rem));
    max-width: 100%;
    max-height: none;
    margin: 0.25rem 0 0.5rem;
    overflow: hidden;
  }

  .pricing-modal {
    max-width: 100%;
  }

  .pricing-modal-header {
    padding: 1rem 1rem 0.5rem;
  }

  .pricing-modal-header--inline {
    padding: 0 0 0.85rem;
  }

  .pricing-modal-lead {
    max-width: 100%;
    word-break: break-word;
  }

  .pricing-modal-body {
    min-width: 0;
    overflow: hidden;
    padding: 0 0.65rem 0.25rem;
  }

  .pricing-modal-title {
    font-size: 1.1rem;
  }

  .pricing-matrix {
    --pricing-cols: 4.65rem 3.5rem 5.65rem 4.1rem;
    --pricing-table-min: 18.5rem;
    min-width: 0;
  }

  .pricing-matrix--inline,
  .member-section--plans.member-section--compare .pricing-matrix--inline {
    --pricing-cols: 4.65rem 3.5rem 5.65rem 4.1rem;
    --pricing-table-min: 18.5rem;
  }

  .member-section--plans.member-section--compare.pricing-modal--inline {
    min-width: 0;
    overflow: hidden;
    padding: 0.85rem 0.7rem 1rem;
  }

  .member-section--plans.member-section--compare .pricing-modal-body {
    min-width: 0;
    overflow: hidden;
  }

  .pricing-feature-grid {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
    scrollbar-gutter: stable;
    width: 100%;
    max-width: 100%;
  }

  .pricing-feature-row {
    width: 100%;
    min-width: var(--pricing-table-min);
    padding: 0.38rem 0.45rem;
    gap: 0.3rem;
  }

  .pricing-feature-row > * {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .pricing-feature-row__label {
    position: sticky;
    left: 0;
    z-index: 2;
    font-size: 0.68rem;
    line-height: 1.3;
    word-break: break-word;
    background: #fff;
    box-shadow: 1px 0 0 #f3f0eb;
    padding-right: 0.35rem;
  }

  .pricing-feature-row--tiers .pricing-feature-row__label {
    background: #fafaf9;
    box-shadow: 1px 0 0 #ebe6df;
  }

  .pricing-feature-row:not(.pricing-feature-row--tiers):hover .pricing-feature-row__label {
    background: #fcfcfb;
  }

  .pricing-tier-hd__inner {
    padding: 0.45rem 0.32rem 0.42rem;
    gap: 0.32rem;
  }

  .pricing-tier-hd__name {
    font-size: 0.76rem;
  }

  .pricing-tier-hd__tagline {
    font-size: 0.54rem;
  }

  .pricing-tier-hd__price {
    font-size: 0.68rem;
  }

  .pricing-tier-hd--pro .pricing-tier-hd__price {
    font-size: 0.78rem;
  }

  .pricing-tier-hd__cta {
    font-size: 0.62rem;
    padding: 0.36rem 0.38rem;
    white-space: normal;
    line-height: 1.2;
  }

  .pricing-modal .compare-val {
    font-size: 0.65rem;
    line-height: 1.25;
    word-break: break-word;
    hyphens: auto;
    min-width: 0;
  }

  .pricing-modal-foot {
    padding: 0.5rem 1rem 0.65rem;
  }

  .member-section--plans.member-section--compare .pricing-modal-foot--inline {
    width: 100%;
  }
}


/* 兼容旧对比表类名 */
.site-modal-card--compare {
  padding: 0;
  overflow: hidden;
  max-width: min(100%, 52rem);
}

.compare-modal-close {
  top: 0.85rem;
  right: 0.85rem;
  z-index: 2;
}

.compare-table-wrap--premium {
  margin: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
  background: transparent;
}

.compare-table-wrap--inline {
  margin: 0;
}

.compare-table--premium {
  font-size: 0.8125rem;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
}

.compare-table--premium th,
.compare-table--premium td {
  border-bottom: 1px solid #f0ebe3;
  vertical-align: middle;
  line-height: 1.45;
}

.compare-col-feature {
  font-weight: 700;
  color: var(--text);
  text-align: left;
}

.compare-table .compare-col-feature {
  width: 30%;
}

.compare-col-free,
.compare-col-pro,
.compare-col-team {
  text-align: center;
}

.compare-table .compare-col-free {
  width: 23%;
  font-weight: 700;
}

.compare-table .compare-col-pro {
  width: 27%;
  vertical-align: middle;
}

.compare-table .compare-col-team {
  width: 20%;
}

.compare-modal-top,
.compare-modal-title,
.compare-modal-lead,
.compare-modal-foot,
.pricing-compare-actions,
.pricing-compare-current {
  /* legacy aliases — prefer pricing-modal-* */
}

/* —— 会员页面 —— */
.member-page {
  position: fixed;
  inset: 0;
  z-index: 110;
  overflow: auto;
  background: var(--bg);
  animation: progress-enter 0.28s ease;
  -webkit-overflow-scrolling: touch;
}

.member-page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(194, 65, 12, 0.07) 0%, transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(28, 25, 23, 0.04) 0%, transparent 40%),
    var(--bg);
}

.member-page-inner {
  position: relative;
  z-index: 1;
  max-width: 920px;
  margin: 0 auto;
  padding: 0.75rem clamp(0.85rem, 3vw, 1.35rem) 3rem;
}

.member-page-head {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.65rem;
  margin: 0 calc(-1 * clamp(0.85rem, 3vw, 1.35rem)) 1.25rem;
  padding: 0.65rem clamp(0.85rem, 3vw, 1.35rem);
  background: rgba(243, 241, 236, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(229, 223, 214, 0.65);
}

.member-page-back {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border: none;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.4rem 0;
  transition: color 0.15s ease;
}

.member-page-back svg {
  flex-shrink: 0;
  opacity: 0.75;
}

.member-page-back:hover {
  color: var(--accent);
}

.member-page-head-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: 0;
}

.member-page-logo {
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 7px;
  flex-shrink: 0;
  object-fit: contain;
}

.member-page-title {
  margin: 0;
  font-size: clamp(0.95rem, 2.5vw, 1.08rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.member-page-refresh {
  justify-self: end;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.42rem 0.85rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(26, 24, 22, 0.04);
  transition: border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.member-page-refresh:hover {
  border-color: #fdba74;
  color: var(--accent);
  box-shadow: 0 4px 14px rgba(194, 65, 12, 0.1);
}

.member-page-refresh.is-loading {
  opacity: 0.65;
  pointer-events: none;
}

.member-top-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 0.85rem;
  margin-bottom: 1.35rem;
}

.member-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 0.85rem 1rem;
  padding: clamp(1rem, 3vw, 1.35rem);
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid rgba(28, 25, 23, 0.08);
  background:
    radial-gradient(circle at 100% 0%, rgba(148, 163, 184, 0.1) 0%, transparent 48%),
    linear-gradient(155deg, #fffdfa 0%, #faf8f5 45%, var(--surface) 100%);
  box-shadow: var(--shadow), 0 1px 0 rgba(255, 255, 255, 0.8) inset;
  overflow: hidden;
  position: relative;
}

.member-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #cbd5e1, transparent);
  opacity: 0.7;
}

.member-hero.is-pro {
  border-color: rgba(253, 186, 116, 0.65);
  background:
    radial-gradient(circle at 100% 0%, rgba(251, 146, 60, 0.16) 0%, transparent 50%),
    linear-gradient(155deg, #fff7ed 0%, #fffdfa 50%, #fff7ed 100%);
  box-shadow: var(--shadow), 0 0 0 1px rgba(253, 186, 116, 0.2) inset;
}

.member-hero.is-pro::before {
  background: linear-gradient(90deg, transparent, #fdba74, #ea580c, #fdba74, transparent);
  opacity: 1;
}

.member-hero-emblem {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  grid-row: 1;
  grid-column: 1;
}

.member-hero-emblem-icon {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 18px;
}

.member-hero-emblem-icon--free {
  background: linear-gradient(145deg, #ffffff 0%, #f1f5f9 50%, #e2e8f0 100%);
  color: #475569;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.9),
    0 10px 24px rgba(100, 116, 139, 0.12);
}

.member-hero-emblem-icon--pro {
  background: linear-gradient(145deg, #fb923c 0%, #ea580c 52%, #9a3412 100%);
  color: #fff;
  box-shadow: 0 10px 28px rgba(194, 65, 12, 0.32);
}

.member-hero-body {
  flex: 1;
  min-width: 0;
  grid-row: 1;
  grid-column: 2;
  position: relative;
  z-index: 1;
}

.member-hero-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.member-hero-name {
  margin: 0;
  font-size: clamp(1.15rem, 3vw, 1.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.member-hero-plan-tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.18rem 0.55rem;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(241, 245, 249, 0.9);
  color: #64748b;
  border: 1px solid #e2e8f0;
}

.member-hero.is-pro .member-hero-plan-tag {
  background: linear-gradient(135deg, #ffedd5 0%, #fed7aa 100%);
  color: #c2410c;
  border-color: #fdba74;
}

.member-hero-desc {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.55;
  max-width: 36ch;
}

.member-hero-expiry {
  margin: 0.35rem 0 0;
  font-size: 0.76rem;
  font-weight: 600;
  color: #78716c;
  line-height: 1.4;
}

.member-hero.is-pro .member-hero-expiry {
  color: #9a3412;
}

.member-hero-expiry--soon {
  color: #b45309;
}

.member-hero-renew-hint {
  margin: 0.2rem 0 0;
  font-size: 0.68rem;
  line-height: 1.45;
  color: var(--muted);
}

.member-hero-cta {
  position: relative;
  z-index: 1;
  grid-column: 1 / -1;
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 0.72rem 1.15rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(194, 65, 12, 0.28);
  transition: filter 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.member-hero-cta:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(194, 65, 12, 0.32);
}

.member-hero.is-pro .member-hero-cta {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
}

.member-account {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.member-account-main {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  flex: 1;
  gap: 0.85rem;
  padding: clamp(0.95rem, 2.5vw, 1.15rem);
}

.member-account.is-logged-in {
  border-color: rgba(28, 25, 23, 0.1);
}

.member-account-avatar {
  position: relative;
  grid-column: 1;
  grid-row: 1;
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  padding: 0;
  border: none;
  border-radius: 16px;
  background: #f5f5f4;
  flex-shrink: 0;
  overflow: hidden;
}

.member-account-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.member-account-avatar--pick {
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(28, 25, 23, 0.1);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.member-account-avatar--pick:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(28, 25, 23, 0.14);
}

.member-account-avatar-badge {
  position: absolute;
  right: -3px;
  bottom: -3px;
  display: grid;
  place-items: center;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 999px;
  background: #fff;
  color: var(--accent);
  border: 1px solid #fed7aa;
  box-shadow: 0 2px 8px rgba(28, 25, 23, 0.12);
  pointer-events: none;
}

.member-account:not(.is-logged-in) .member-account-avatar-badge {
  display: none;
}

.member-account:not(.is-logged-in) .member-account-avatar {
  box-shadow: inset 0 0 0 1px rgba(28, 25, 23, 0.06);
}

.member-account-body {
  min-width: 0;
  grid-column: 2;
  grid-row: 1;
}

.member-account-settings {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  grid-column: 1 / -1;
  margin-top: 0.15rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(28, 25, 23, 0.06);
  width: 100%;
}

.member-account-info {
  flex: 1;
  min-width: 0;
}

.member-account-label {
  margin: 0 0 0.25rem;
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.member-account.is-logged-in .member-account-label {
  display: none;
}

.member-account-name {
  margin: 0 0 0.2rem;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  word-break: break-word;
}

.member-account-value {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--text);
  word-break: break-all;
}

.member-account.is-logged-in .member-account-value {
  font-size: 0.76rem;
  color: var(--muted);
}

.member-account-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.member-account-chip {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid rgba(28, 25, 23, 0.08);
  border-radius: 12px;
  background: linear-gradient(180deg, #fff 0%, #faf8f5 100%);
  color: var(--text);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.58rem 0.65rem;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(26, 24, 22, 0.04);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.member-account-chip-icon {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
  background: linear-gradient(145deg, #fff7ed 0%, #ffedd5 100%);
  color: var(--accent);
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(253, 186, 116, 0.35);
}

.member-account-chip-label {
  line-height: 1.25;
  text-align: left;
}

.member-account-chip:hover {
  border-color: #fdba74;
  background: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(194, 65, 12, 0.1);
}

.member-account-chip:active {
  transform: translateY(0);
}

.member-account-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.member-account-action {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--text);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.45rem 0.85rem;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.member-account-action:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: #fff;
}

.member-account:not(.is-logged-in) .member-account-action {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 16px rgba(194, 65, 12, 0.24);
}

.member-account:not(.is-logged-in) .member-account-action:hover {
  filter: brightness(1.05);
  color: #fff;
}

.member-account.is-logged-in .member-account-action {
  color: var(--muted);
  background: transparent;
}

.member-account.is-logged-in .member-account-action:hover {
  color: #b91c1c;
  border-color: #fecaca;
  background: #fef2f2;
}

.member-section {
  margin-bottom: 1.35rem;
}

.member-section--quota {
  padding: clamp(1rem, 2.5vw, 1.2rem);
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.member-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border);
}

.member-section-title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.member-section-title::before {
  content: "";
  width: 3px;
  height: 0.95em;
  border-radius: 2px;
  background: linear-gradient(180deg, #fb923c 0%, #ea580c 100%);
  flex-shrink: 0;
}

.member-section-head .member-section-title {
  margin-bottom: 0;
}

.member-section-meta {
  margin: 0;
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 500;
}

.member-quota-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.member-quota-card {
  padding: 0.95rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fafaf9;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.member-quota-card:hover {
  box-shadow: 0 4px 16px rgba(26, 24, 22, 0.05);
}

.member-quota-card.is-unlimited {
  border-color: #fed7aa;
  background: linear-gradient(180deg, #fffdfa 0%, #fff7ed 100%);
}

.member-quota-card.is-exhausted {
  border-color: #fecaca;
  background: linear-gradient(180deg, #fffbfb 0%, #fef2f2 100%);
}

.member-quota-head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.65rem;
}

.member-quota-icon {
  display: grid;
  place-items: center;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.62rem;
  font-weight: 800;
  color: var(--muted);
  flex-shrink: 0;
}

.member-quota-card.is-unlimited .member-quota-icon {
  background: var(--accent-soft);
  border-color: #fed7aa;
  color: var(--accent);
}

.member-quota-label {
  flex: 1;
  min-width: 0;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.3;
}

.member-quota-status {
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--ok);
  white-space: nowrap;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  background: rgba(21, 128, 61, 0.08);
}

.member-quota-status.is-warn {
  color: var(--warn);
  background: rgba(180, 83, 9, 0.1);
}

.member-quota-status.is-muted {
  color: var(--muted);
  background: rgba(111, 105, 99, 0.08);
}

.member-quota-bar {
  height: 6px;
  border-radius: 999px;
  background: #ece8e2;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.member-quota-fill {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #fb923c 0%, var(--accent) 100%);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.member-quota-card.is-exhausted .member-quota-fill {
  background: linear-gradient(90deg, #fca5a5 0%, #ef4444 100%);
}

.member-quota-card.is-unlimited .member-quota-fill {
  width: 100% !important;
  background: linear-gradient(90deg, #fdba74 0%, #ea580c 100%);
  opacity: 0.65;
}

.member-quota-detail {
  margin: 0;
  font-size: 0.72rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.member-quota-foot {
  margin: 0.75rem 0 0;
  padding: 0.5rem 0.65rem;
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--muted);
  background: #fafaf9;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.member-quota-foot[hidden] {
  display: none !important;
}

.member-quota-foot.is-warn {
  color: #9a3412;
  background: #fff7ed;
  border-color: #fed7aa;
}

.member-guest-hint {
  margin: 0.35rem 0 0;
  padding: 0.4rem 0.55rem;
  font-size: 0.68rem;
  line-height: 1.45;
  color: #166534;
  background: #f0fdf4;
  border-radius: 7px;
  border: 1px solid #bbf7d0;
}

.member-guest-hint[hidden] {
  display: none !important;
}

.member-section--glossary {
  margin-top: 0.5rem;
}

.member-glossary-lead {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
}

.member-glossary-card {
  border: 1px solid var(--border-light);
  border-radius: 12px;
  background: var(--surface);
  overflow: hidden;
}

.member-glossary-editor {
  position: relative;
}

.member-glossary-text {
  display: block;
  width: 100%;
  min-height: 8.5rem;
  padding: 0.65rem 0.75rem;
  border: none;
  border-radius: 0;
  font-family: inherit;
  font-size: 0.84rem;
  line-height: 1.45;
  resize: vertical;
  background: transparent;
  box-sizing: border-box;
}

.member-glossary-text:focus {
  outline: none;
}

.member-glossary-card:focus-within {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border-light));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent);
}

.member-glossary-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.4rem 0.55rem 0.5rem;
  margin: 0;
  border-top: 1px solid color-mix(in srgb, var(--border-light) 80%, transparent);
  background: color-mix(in srgb, var(--surface-2) 35%, var(--surface));
}

.member-glossary-footer-left {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
  flex: 1;
}

.member-glossary-count-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.member-glossary-count-bar {
  width: 4.5rem;
  height: 3px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--border-light) 70%, transparent);
  overflow: hidden;
}

.member-glossary-count-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 65%, #22c55e));
  transition: width 0.2s ease;
}

.member-glossary-count-fill.is-warn {
  background: linear-gradient(90deg, #f59e0b, #ef4444);
}

.member-glossary-count-fill.is-full {
  background: #ef4444;
}

.member-glossary-count {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.member-glossary-dirty {
  font-size: 0.68rem;
  color: #c2410c;
  font-weight: 500;
  line-height: 1.2;
}

.member-glossary-save-btn {
  flex-shrink: 0;
  min-width: auto;
  padding: 0.38rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  box-shadow: 0 1px 3px color-mix(in srgb, var(--accent) 35%, transparent);
  cursor: pointer;
}

.member-glossary-save-btn:hover:not(:disabled) {
  filter: brightness(1.05);
}

.member-glossary-save-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.member-glossary-save-btn.is-saving {
  pointer-events: none;
}

.member-glossary-status {
  font-size: 0.68rem;
  font-weight: 500;
  line-height: 1.2;
}

.member-glossary-status.is-ok {
  color: #15803d;
}

.member-glossary-status.is-err {
  color: #c2410c;
}

.member-section--history {
  padding: clamp(1rem, 2.5vw, 1.2rem);
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.member-section--history .member-section-head {
  border-bottom-color: color-mix(in srgb, var(--border) 80%, transparent);
}

.member-section--history .member-section-meta {
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 8%, #fff);
  color: #c2410c;
  font-weight: 600;
  white-space: nowrap;
}

.member-history-lead {
  margin: 0 0 0.85rem;
  padding: 0.55rem 0.72rem;
  font-size: 0.78rem;
  line-height: 1.5;
  color: #78716c;
  background: linear-gradient(135deg, #fffbf7 0%, #fafaf9 100%);
  border: 1px solid #f5f5f4;
  border-radius: 10px;
}

.member-history-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: #fafaf9;
}

.member-history-card-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  padding: 0.55rem 0.8rem;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.member-history-select-all {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.76rem;
  font-weight: 600;
  color: #57534e;
  cursor: pointer;
  user-select: none;
}

.member-history-selection {
  font-size: 0.74rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.member-history-delete-selected {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.36rem 0.78rem;
  border-radius: 999px;
  border: 1px solid #fecaca;
  background: #fff;
  color: #dc2626;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.member-history-delete-selected::before {
  content: "";
  width: 0.72rem;
  height: 0.72rem;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M4 7h16M9 7V5h6v2M10 11v5M14 11v5M7 7l.7 12h8.6L17 7' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M4 7h16M9 7V5h6v2M10 11v5M14 11v5M7 7l.7 12h8.6L17 7' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / contain no-repeat;
  opacity: 0.85;
}

.member-history-delete-selected:hover:not(:disabled) {
  background: #fef2f2;
  border-color: #fca5a5;
  box-shadow: 0 1px 2px rgba(220, 38, 38, 0.08);
}

.member-history-delete-selected:disabled {
  opacity: 0.55;
  cursor: wait;
}

.member-history-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: min(22rem, 52vh);
  overflow: auto;
  overscroll-behavior: contain;
}

.member-history-item {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  gap: 0.55rem 0.7rem;
  align-items: center;
  padding: 0.72rem 0.85rem;
  background: #fff;
  border-bottom: 1px solid #f0eeeb;
  transition: background 0.15s ease;
}

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

.member-history-item:hover {
  background: #fffbf7;
}

.member-history-item.is-selected {
  background: linear-gradient(90deg, #fff7ed 0%, #fff 42%);
  box-shadow: inset 3px 0 0 #fb923c;
}

.member-history-check {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.member-history-check-input {
  width: 1rem;
  height: 1rem;
  margin: 0;
  accent-color: #ea580c;
  cursor: pointer;
}

.member-history-file {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #c2410c;
  background: linear-gradient(145deg, #fff7ed 0%, #ffedd5 100%);
  border: 1px solid #fed7aa;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.member-history-item-main {
  min-width: 0;
}

.member-history-item-name {
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #1c1917;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.member-history-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.38rem;
}

.member-history-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.14rem 0.48rem;
  border-radius: 999px;
  font-size: 0.67rem;
  line-height: 1.3;
  font-weight: 500;
  color: #78716c;
  background: #f5f5f4;
  border: 1px solid #ece8e2;
}

.member-history-chip--time {
  font-variant-numeric: tabular-nums;
  color: #57534e;
}

.member-history-chip--accent {
  color: #c2410c;
  background: #fff7ed;
  border-color: #fed7aa;
}

.member-history-actions {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-shrink: 0;
}

.member-history-download,
.member-history-delete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  min-height: 2rem;
  padding: 0 0.72rem;
  border-radius: 9px;
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease,
    box-shadow 0.15s ease;
}

.member-history-download {
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--border));
  background: linear-gradient(180deg, #fff 0%, #fff7ed 100%);
  color: #c2410c;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.member-history-download:hover:not(:disabled) {
  background: linear-gradient(180deg, #fff7ed 0%, #ffedd5 100%);
  border-color: #fdba74;
}

.member-history-download:disabled {
  opacity: 0.55;
  cursor: wait;
}

.member-history-delete {
  width: 2rem;
  min-width: 2rem;
  padding: 0;
  border: 1px solid transparent;
  background: transparent;
  color: #a8a29e;
}

.member-history-delete:hover:not(:disabled) {
  color: #dc2626;
  background: #fef2f2;
  border-color: #fecaca;
}

.member-history-delete:disabled {
  opacity: 0.45;
  cursor: wait;
}

.member-history-btn-icon {
  display: block;
  flex-shrink: 0;
}

.member-history-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  padding: 2rem 1rem 2.15rem;
  text-align: center;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--muted);
  background: #fff;
}

.member-history-empty-icon {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fdba74;
  background: linear-gradient(145deg, #fff7ed 0%, #ffedd5 100%);
  border: 1px solid #fed7aa;
}

.member-history-empty-icon svg {
  display: block;
}

@media (max-width: 640px) {
  .member-history-item {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "check main"
      ". actions";
    gap: 0.45rem 0.55rem;
    padding: 0.68rem 0.72rem;
  }

  .member-history-check {
    grid-area: check;
    align-self: start;
    margin-top: 0.15rem;
  }

  .member-history-file {
    display: none;
  }

  .member-history-item-main {
    grid-area: main;
  }

  .member-history-actions {
    grid-area: actions;
    justify-self: end;
    width: 100%;
    padding-left: 1.55rem;
  }

  .member-history-download {
    flex: 1;
  }
}

.glossary-library-bar {
  margin-top: 0.5rem;
}

.glossary-library-card {
  padding: 0.7rem 0.8rem;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--border-light));
  border-radius: 12px;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--accent) 7%, var(--surface)) 0%,
    var(--surface) 58%
  );
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.65) inset;
}

.glossary-library-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.glossary-library-toggle {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  cursor: pointer;
  min-width: 0;
}

.glossary-library-toggle-text {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}

.glossary-library-toggle-text strong {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text);
}

.glossary-library-toggle-text small {
  font-size: 0.74rem;
  color: var(--muted);
  line-height: 1.35;
}

.glossary-library-badge {
  flex-shrink: 0;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 12%, white);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
}

.glossary-library-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin-top: 0.55rem;
  padding-top: 0.55rem;
  border-top: 1px dashed color-mix(in srgb, var(--accent) 16%, var(--border-light));
}

.glossary-library-meta {
  margin: 0;
  font-size: 0.76rem;
  color: var(--muted);
}

.glossary-library-manage {
  flex-shrink: 0;
  white-space: nowrap;
}

.glossary-suggest-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.45rem;
}

.link-btn {
  border: none;
  background: none;
  padding: 0;
  color: var(--accent);
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
}

.member-section--perks {
  margin-bottom: 0.85rem;
  padding: clamp(1rem, 2.5vw, 1.15rem);
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #fffdfa 0%, var(--surface) 42%);
  box-shadow: var(--shadow);
}

.member-section--perks .member-section-head {
  border-bottom-color: rgba(28, 25, 23, 0.06);
}

.member-perks-panel {
  padding: 0.15rem 0 0;
}

.member-perks {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.member-perks li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.65rem 0.75rem;
  border-radius: 11px;
  border: 1px solid rgba(28, 25, 23, 0.07);
  background: rgba(255, 255, 255, 0.88);
  font-size: 0.78rem;
  line-height: 1.48;
  box-shadow: 0 2px 10px rgba(26, 24, 22, 0.03);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.member-perks li:hover {
  border-color: #fed7aa;
  box-shadow: 0 6px 18px rgba(194, 65, 12, 0.08);
  transform: translateY(-1px);
}

.member-perks li::before {
  content: "✓";
  flex-shrink: 0;
  width: 1.2rem;
  height: 1.2rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(145deg, #ecfdf5 0%, #dcfce7 100%);
  color: var(--ok);
  font-size: 0.62rem;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.2);
}

.member-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 0.25rem;
}

.member-foot-link {
  flex: 1 1 auto;
  min-width: 8rem;
  text-align: center;
  font-size: 0.78rem;
}

.member-section-lead {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.55;
  flex: 1;
  min-width: 0;
}

.member-section-head--flush {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0.5rem;
}

.member-plans-header {
  margin-bottom: 1rem;
}

.member-pricing-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
}

.member-pricing-toolbar--modal {
  margin-bottom: 1rem;
}

.member-pricing-toolbar .site-modal-lead {
  margin-bottom: 0;
}

.member-compare-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
  border: 1px solid rgba(234, 88, 12, 0.28);
  border-radius: 999px;
  padding: 0.42rem 0.85rem 0.42rem 0.65rem;
  background: linear-gradient(180deg, #fff 0%, #fff7ed 100%);
  color: #c2410c;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(194, 65, 12, 0.08);
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.member-compare-link:hover {
  border-color: #fdba74;
  background: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(194, 65, 12, 0.12);
}

.member-compare-link-icon {
  display: grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  background: #ffedd5;
  color: #c2410c;
}

.member-section-foot {
  margin: 0.65rem 0 0;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.45;
}

.member-section--plans {
  margin-bottom: 0.5rem;
  padding: clamp(1rem, 2.5vw, 1.15rem);
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
}

/* 会员页定价对比：与「方案权益」同宽同壳 */
.member-section--plans.member-section--compare.pricing-modal--inline {
  width: 100%;
  max-width: none;
  margin-bottom: 0.85rem;
  padding: clamp(1rem, 2.5vw, 1.15rem);
  background: linear-gradient(180deg, #fffdfa 0%, var(--surface) 42%);
}

.member-section--plans.member-section--compare .pricing-modal-header--inline {
  margin-bottom: 0.85rem;
  padding: 0 0 0.65rem;
  border-bottom: 1px solid rgba(28, 25, 23, 0.06);
}

.member-section--plans.member-section--compare .pricing-modal-kicker {
  display: none;
}

.member-section--plans.member-section--compare .pricing-modal-title.member-section-title {
  margin: 0;
}

.member-section--plans.member-section--compare .pricing-modal-body {
  padding: 0;
}

@media (min-width: 641px) {
  .member-section--plans.member-section--compare .pricing-matrix--inline {
    --pricing-cols: minmax(8.25rem, 1.38fr) repeat(3, minmax(5.25rem, 1fr));
  }
}

.member-section--plans.member-section--compare .pricing-feature-grid {
  width: 100%;
}

.member-section--plans.member-section--compare .pricing-modal-foot--inline {
  margin-top: 0.65rem;
  padding: 0;
}

.member-section--plans .member-plans-header .member-section-head {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.member-section--plans .member-pricing-panel {
  border: none;
  box-shadow: none;
  padding: 0;
  background: transparent;
}
.member-pricing-panel {
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  background: var(--surface);
  padding: clamp(0.65rem, 2vw, 0.85rem);
  box-shadow: var(--shadow);
}

.member-pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  align-items: stretch;
}

.member-pricing-grid--tiers {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.member-pricing-card--team {
  border-color: color-mix(in srgb, var(--accent) 25%, var(--border));
  background: color-mix(in srgb, var(--surface) 92%, var(--accent) 8%);
}

.member-pricing-badge--soon {
  background: var(--muted);
  color: var(--surface);
  font-size: 0.62rem;
}

.member-pricing-cta.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.compare-table--four .compare-col-feature {
  width: 30%;
}

.compare-table--four .compare-col-free {
  width: 24%;
}

.compare-table--four .compare-col-pro {
  width: 26%;
}

.compare-table--four .compare-col-team {
  width: 20%;
  min-width: 0;
  text-align: center;
  font-weight: 800;
  font-size: 0.8rem;
  color: #334155;
}

.pricing-modal .compare-col-free,
.pricing-modal .compare-col-pro,
.pricing-modal .compare-col-team {
  width: auto;
  min-width: 0;
  max-width: none;
  vertical-align: initial;
  font-weight: inherit;
  font-size: inherit;
  color: inherit;
}

.compare-table--premium thead th.compare-col-team {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  color: #334155;
  text-align: center;
  vertical-align: middle;
}

.compare-val--team {
  text-align: center;
  vertical-align: middle;
  color: #44403c;
  font-weight: 600;
  font-size: 0.76rem;
  background: #fafaf9;
}

.compare-val--team.compare-val--unlimited {
  color: #334155;
  font-weight: 800;
}

.compare-val--team.compare-val--unlimited::before {
  color: #64748b;
}

.compare-table--premium tbody th {
  padding-left: 0.85rem;
  padding-right: 0.65rem;
  white-space: nowrap;
}

@media (max-width: 520px) {
  .compare-table-wrap--premium {
    margin-left: 0.75rem;
    margin-right: 0.75rem;
  }

  .compare-table--premium th,
  .compare-table--premium td {
    padding: 0.58rem 0.45rem;
    font-size: 0.72rem;
  }

  .compare-table--premium tbody th {
    white-space: normal;
    font-size: 0.7rem;
  }

  .compare-pro-name {
    font-size: 0.82rem;
  }
}

.member-pricing-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 100%;
  padding: clamp(1rem, 2.5vw, 1.2rem);
  border-radius: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.member-pricing-card--free {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #faf8f5 0%, #fffdfa 100%);
}

.member-pricing-card--free.is-current {
  border-color: #bbf7d0;
  background: linear-gradient(180deg, #f0fdf4 0%, #faf8f5 100%);
  box-shadow: 0 0 0 1px rgba(187, 247, 208, 0.5) inset;
}

.member-pricing-card--pro {
  position: relative;
  border: 1px solid #fed7aa;
  background: linear-gradient(180deg, #fffdfa 0%, #fff7ed 100%);
  box-shadow: 0 8px 28px rgba(194, 65, 12, 0.1);
}

.member-pricing-card--pro:not(.is-current)::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: 0 0 0 1px rgba(253, 186, 116, 0.35), 0 12px 32px rgba(194, 65, 12, 0.08);
}

.member-pricing-card--pro.is-current {
  border-color: #fdba74;
  box-shadow: 0 8px 28px rgba(194, 65, 12, 0.14), inset 0 0 0 1px rgba(253, 186, 116, 0.35);
}

.member-pricing-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.member-pricing-tier-label {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.01em;
}

.member-pricing-badge {
  flex-shrink: 0;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.member-pricing-tagline {
  margin: -0.35rem 0 0;
  font-size: 0.74rem;
  line-height: 1.45;
  color: var(--muted);
}

.member-pricing-price {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.member-pricing-amount {
  font-size: clamp(1.65rem, 4vw, 2rem);
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.03em;
  line-height: 1;
}

.member-pricing-period {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
}

.member-pricing-features {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.member-pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: 0.76rem;
  line-height: 1.45;
  color: #57534e;
}

.member-pricing-features li::before {
  content: "";
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  margin-top: 0.05rem;
  border-radius: 999px;
  background: #f5f5f4 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2.5 6l2.5 2.5 4.5-5' stroke='%23a8a29e' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 0.55rem no-repeat;
}

.member-pricing-card--pro .member-pricing-features li::before {
  background-color: #ffedd5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2.5 6l2.5 2.5 4.5-5' stroke='%23c2410c' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.member-pricing-cta {
  margin-top: auto;
  border: none;
  border-radius: 12px;
  padding: 0.72rem 0.95rem;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(194, 65, 12, 0.25);
  transition: filter 0.15s ease, transform 0.15s ease;
}

.member-pricing-cta:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
}

.member-plan-tag {
  display: block;
  margin-top: auto;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  text-align: center;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--ok);
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}

.member-plan-tag--pro {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: #fed7aa;
}

@keyframes member-plan-pulse {
  0%, 100% { box-shadow: 0 8px 28px rgba(194, 65, 12, 0.1); }
  40% { box-shadow: 0 8px 28px rgba(194, 65, 12, 0.22), inset 0 0 0 2px rgba(194, 65, 12, 0.15); }
}

.member-pricing-card--pro.member-pricing-highlight {
  animation: member-plan-pulse 0.55s ease 2;
}

@media (min-width: 720px) {
  .member-top-grid {
    grid-template-columns: 0.85fr 1.15fr;
    align-items: stretch;
  }

  .member-hero {
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto;
    height: 100%;
    min-height: 100%;
  }

  .member-hero-emblem {
    grid-row: 1;
    grid-column: 1;
  }

  .member-hero-body {
    grid-row: 1;
    grid-column: 2;
  }

  .member-hero-cta {
    grid-row: 1;
    grid-column: 3;
    width: auto;
    align-self: center;
  }

  .member-account {
    height: 100%;
  }

  .member-account-main {
    min-height: 100%;
    align-content: center;
  }

  .member-account.is-logged-in .member-account-main {
    align-content: start;
    align-items: start;
  }

  .member-account:not(.is-logged-in) .member-account-head {
    align-items: center;
  }

  .member-quota-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .member-pricing-card--pro {
    transform: scale(1.01);
  }

  .member-pricing-card--pro.is-current {
    transform: scale(1.01);
  }
}

@media (max-width: 719px) {
  .member-account-settings {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .member-page-head {
    grid-template-columns: auto 1fr auto;
    gap: 0.4rem;
  }

  .member-page-back span {
    display: none;
  }

  .member-quota-grid {
    grid-template-columns: 1fr;
  }

  .member-perks {
    grid-template-columns: 1fr;
  }

  .member-pricing-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .member-compare-link {
    justify-content: center;
    width: 100%;
  }

  .member-pricing-grid,
  .member-pricing-grid--tiers {
    grid-template-columns: 1fr;
  }

  .member-pricing-card--pro {
    transform: none;
  }

  .member-account-head {
    flex-wrap: wrap;
  }

  .member-account-actions {
    width: 100%;
  }

  .member-account-action {
    width: 100%;
    text-align: center;
  }
}

.auth-form {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.auth-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* —— 登录弹窗 —— */
.site-modal-card--auth {
  width: min(100%, 26rem);
  padding: 0;
  overflow: hidden;
  border-radius: calc(var(--radius) + 4px);
  background: var(--surface);
  box-shadow: var(--shadow), 0 28px 56px rgba(26, 24, 22, 0.12);
}

.site-modal-card--profile {
  width: min(100%, 24rem);
  padding: 1.35rem 1.35rem 1.2rem;
}

.site-modal-card--profile .site-modal-title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.site-modal-card--profile .site-modal-lead {
  margin: 0 0 1rem;
  font-size: 0.78rem;
}

.profile-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.profile-form .auth-modal-submit {
  margin-top: 0.15rem;
}

.site-modal-card--avatars {
  width: min(100%, 28rem);
}

.avatar-picker-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.55rem;
}

.avatar-picker-item {
  display: grid;
  gap: 0.25rem;
  justify-items: center;
  padding: 0.35rem;
  border: 2px solid transparent;
  border-radius: 14px;
  background: #fafaf9;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.avatar-picker-item:hover {
  border-color: #fdba74;
  background: #fff;
  transform: translateY(-1px);
}

.avatar-picker-item.is-active {
  border-color: var(--accent);
  background: #fff7ed;
  box-shadow: 0 4px 14px rgba(194, 65, 12, 0.12);
}

.avatar-picker-item img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
  object-fit: cover;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.member-account-avatar-img,
.auth-user-avatar {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.avatar-picker-item span {
  font-size: 0.58rem;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
  line-height: 1.2;
}

@media (max-width: 520px) {
  .avatar-picker-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.auth-modal-head {
  padding: 1.35rem 1.35rem 0.25rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #faf8f5 0%, var(--surface) 100%);
}

.auth-modal-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.auth-modal-logo {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  flex-shrink: 0;
}

.auth-modal-mark {
  display: grid;
  place-items: center;
  width: 2.65rem;
  height: 2.65rem;
  flex-shrink: 0;
  border-radius: 11px;
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
  box-shadow: 0 6px 16px rgba(194, 65, 12, 0.22);
}

.auth-modal-title {
  margin: 0 0 0.2rem;
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--text);
}

.auth-modal-lead {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  font-weight: 600;
  color: var(--text);
}

.auth-modal-nudge-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
  margin: 0 1.35rem 0.5rem;
  padding-top: 0.35rem;
  border-top: 1px dashed var(--border);
}

.auth-modal-nudge-foot[hidden] {
  display: none !important;
}

.auth-modal-guest-hint {
  margin: 0;
  flex: 1 1 12rem;
  padding: 0;
  font-size: 0.68rem;
  line-height: 1.4;
  color: var(--muted);
}

.auth-modal-later {
  flex-shrink: 0;
  padding: 0.2rem 0;
  border: none;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 0.72rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-modal-later:hover {
  color: var(--text);
}

.member-pricing-annual,
.quota-upgrade-annual {
  margin: 0.2rem 0 0.45rem;
  font-size: 0.68rem;
  line-height: 1.4;
  color: var(--muted);
  text-align: center;
}

.member-pricing-annual.is-coming-soon,
.quota-upgrade-annual {
  width: 100%;
  margin-top: 0.15rem;
}

.quota-upgrade-annual.is-coming-soon {
  font-style: italic;
  opacity: 0.85;
}

.site-modal-card--pay {
  width: min(100%, 28rem);
  max-width: 28rem;
  padding: 0;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--border));
  box-shadow:
    var(--shadow),
    0 28px 56px rgba(26, 24, 22, 0.14),
    0 0 0 1px rgba(255, 255, 255, 0.6) inset;
}

.site-modal-card--pay .site-modal-close {
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
}

.site-modal-card--pay .site-modal-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.pay-modal-header {
  position: relative;
  padding: 1.35rem 1.5rem 1.15rem;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(234, 88, 12, 0.45) 0%, transparent 55%),
    linear-gradient(155deg, #1c1917 0%, #292524 48%, #1a1816 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.pay-modal-header__glow {
  position: absolute;
  inset: auto 15% -2.5rem;
  height: 5rem;
  background: radial-gradient(circle, rgba(234, 88, 12, 0.35) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(12px);
}

.pay-modal-badge {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 0.55rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(251, 146, 60, 0.45);
  background: rgba(234, 88, 12, 0.18);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fed7aa;
}

.pay-modal-badge::before {
  content: "";
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 999px;
  background: #fb923c;
  box-shadow: 0 0 8px rgba(251, 146, 60, 0.8);
}

.pay-modal-title {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.pay-modal-lead {
  position: relative;
  z-index: 1;
  margin: 0.45rem 0 0;
  padding: 0 0.25rem;
  font-size: 0.74rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.62);
}

.pay-modal-body {
  padding: 1.15rem 1.35rem 1.35rem;
  background: linear-gradient(180deg, #fffdfa 0%, var(--surface) 100%);
}

.pay-modal-price-block {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem 0.95rem;
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid color-mix(in srgb, var(--accent) 14%, var(--border));
  background:
    linear-gradient(135deg, rgba(255, 247, 237, 0.95) 0%, rgba(255, 255, 255, 0.92) 100%);
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.pay-modal-price-compare {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin-bottom: 0.4rem;
  flex-wrap: wrap;
}

.pay-modal-price-compare[hidden] {
  display: none !important;
}

.pay-modal-price__original-line {
  margin: 0;
  display: inline-flex;
  align-items: baseline;
  gap: 0.12rem;
  font-size: 0.8rem;
  line-height: 1.2;
  color: #a8a29e;
}

.pay-modal-price__original-label {
  font-weight: 500;
}

.pay-modal-price__original {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
  text-decoration-color: #b8b2aa;
  color: #a8a29e;
}

.pay-modal-price__original-period {
  font-size: 0.72rem;
  font-weight: 500;
}

.pay-modal-price__savings-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.25;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(220, 38, 38, 0.22);
}

.pay-modal-price {
  margin: 0;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1;
}

.pay-modal-price__currency {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent);
}

.pay-modal-price__amount {
  font-size: 2.35rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, #9a3412 0%, var(--accent) 55%, #ea580c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pay-modal-price__suffix {
  margin-left: 0.08rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: #78716c;
}

.pay-modal-price__suffix[hidden] {
  display: none !important;
}

.pay-modal-price__original-period[hidden] {
  display: none !important;
}

.pay-modal-price-note {
  margin: 0.35rem 0 0;
  font-size: 0.68rem;
  line-height: 1.4;
  color: var(--muted);
}

.pay-duration-section {
  margin-bottom: 1rem;
}

.pay-duration-label {
  margin: 0 0 0.5rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #a8a29e;
}

.pay-duration-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.45rem;
}

.pay-duration-btn {
  grid-column: span 2;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  min-height: 2.65rem;
  padding: 0.45rem 0.35rem;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius-sm, 10px) + 2px);
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(26, 24, 22, 0.04);
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.pay-duration-btn--year {
  grid-column: span 3;
}

.pay-duration-btn__tag {
  display: inline-block;
  padding: 0.08rem 0.38rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 12%, #fff);
  color: var(--accent);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.pay-duration-btn.is-active {
  border-color: var(--accent);
  background: linear-gradient(180deg, #fff7ed 0%, #fff 100%);
  color: var(--accent);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--accent) 25%, transparent),
    0 8px 20px rgba(194, 65, 12, 0.12);
  transform: translateY(-1px);
}

.pay-duration-btn.is-active .pay-duration-btn__tag {
  background: var(--accent);
  color: #fff;
}

.pay-duration-btn:hover:not(.is-active) {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
  box-shadow: 0 4px 12px rgba(26, 24, 22, 0.06);
}

.pay-channel-grid {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.pay-channel-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  min-height: 2.85rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(26, 24, 22, 0.04);
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.pay-channel-btn__icon {
  display: grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  flex-shrink: 0;
}

.pay-channel-btn__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.pay-channel-btn--wechat {
  border-color: color-mix(in srgb, #07c160 35%, var(--border));
  background: linear-gradient(180deg, #f0fdf4 0%, #fff 100%);
  color: #166534;
}

.pay-channel-btn--wechat:hover:not(:disabled) {
  border-color: #07c160;
  background: linear-gradient(180deg, #dcfce7 0%, #f0fdf4 100%);
  box-shadow: 0 8px 22px rgba(7, 193, 96, 0.18);
  transform: translateY(-1px);
}

.pay-channel-btn--alipay {
  border-color: color-mix(in srgb, #1677ff 35%, var(--border));
  background: linear-gradient(180deg, #eff6ff 0%, #fff 100%);
  color: #1d4ed8;
}

.pay-channel-btn--alipay:hover:not(:disabled) {
  border-color: #1677ff;
  background: linear-gradient(180deg, #dbeafe 0%, #eff6ff 100%);
  box-shadow: 0 8px 22px rgba(22, 119, 255, 0.16);
  transform: translateY(-1px);
}

.pay-channel-btn:hover:not(:disabled):not(.pay-channel-btn--wechat):not(.pay-channel-btn--alipay) {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 6%, #fff);
  box-shadow: 0 6px 18px rgba(194, 65, 12, 0.1);
  transform: translateY(-1px);
}

.pay-channel-btn:disabled {
  opacity: 0.5;
  cursor: wait;
  transform: none;
  box-shadow: none;
}

.pay-qr-panel {
  margin-top: 1.1rem;
  padding: 1rem 0.85rem 0.35rem;
  border-radius: calc(var(--radius) + 2px);
  border: 1px dashed color-mix(in srgb, var(--accent) 22%, var(--border));
  background: rgba(255, 255, 255, 0.72);
  text-align: center;
  animation: pay-qr-enter 0.28s ease;
}

@keyframes pay-qr-enter {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pay-qr-frame {
  display: inline-block;
  padding: 0.55rem;
  border-radius: calc(var(--radius) + 4px);
  background: #fff;
  box-shadow:
    0 0 0 1px rgba(26, 24, 22, 0.06),
    0 12px 28px rgba(26, 24, 22, 0.08);
}

.pay-qr-img {
  display: block;
  margin: 0;
  border-radius: var(--radius-sm, 8px);
  background: #fff;
}

.pay-scan-hint,
.pay-status-text {
  margin: 0.65rem 0 0;
  font-size: 0.74rem;
  line-height: 1.45;
  color: var(--muted);
}

.pay-status-text:not(:empty) {
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  background: #f5f5f4;
  display: inline-block;
}

.pay-open-link {
  display: inline-block;
  margin-top: 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.pay-open-link:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-modal-card--pay.is-pay-scanning .pay-modal-price-block,
.site-modal-card--pay.is-pay-scanning .pay-duration-section {
  opacity: 0.55;
  pointer-events: none;
  filter: grayscale(0.15);
}

@media (max-width: 420px) {
  .pay-modal-header {
    padding: 1.15rem 1.15rem 1rem;
  }

  .pay-modal-body {
    padding: 1rem 1.05rem 1.15rem;
  }

  .pay-modal-price__amount {
    font-size: 2rem;
  }

  .pay-duration-btn {
    font-size: 0.68rem;
    min-height: 2.45rem;
  }
}

.quota-upgrade-annual {
  margin: -0.15rem 0 0.35rem;
}

.auth-modal-body {
  padding: 1.1rem 1.35rem 0.85rem;
}

.auth-panel {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.auth-panel--email-first {
  flex-direction: column;
}

.auth-panel--google-first .auth-email-block {
  order: 2;
}

.auth-panel--google-first .auth-google-footer {
  order: 1;
}

.auth-google-footer {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding-top: 0.15rem;
  border-top: 1px solid var(--border);
}

.auth-panel--google-first .auth-google-footer {
  padding-top: 0;
  border-top: none;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--border);
}

.auth-google-footer-label {
  margin: 0;
  font-size: 0.68rem;
  line-height: 1.4;
  color: var(--muted);
  text-align: center;
}

.auth-panel--google-first .auth-google-footer-label {
  text-align: left;
}

.auth-google-block--compact .auth-google-mount {
  min-height: 2.5rem;
}

.auth-google-block {
  width: 100%;
}

.auth-google-mount {
  display: flex;
  width: 100%;
  min-height: 2.85rem;
  align-items: stretch;
  justify-content: stretch;
  overflow: hidden;
  border-radius: 12px;
}

.auth-google-mount > div,
.auth-google-mount > div > div,
.auth-google-mount [role="button"] {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

.auth-google-mount iframe {
  display: block;
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  min-height: 2.85rem !important;
  margin: 0 !important;
  border: 0;
}

.auth-google-btn,
.auth-google-fallback-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  min-height: 2.85rem;
  padding: 0.6rem 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(28, 25, 23, 0.05);
  box-sizing: border-box;
}

.auth-google-block.is-busy .auth-google-mount {
  opacity: 0.65;
  pointer-events: none;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-email-block {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.auth-email-desc {
  margin: 0 0 0.85rem;
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.5;
}

.auth-form {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.auth-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.auth-mode-toggle--subtle {
  font-size: 0.72rem;
  color: var(--muted);
}

.auth-mode-toggle--subtle:hover {
  color: var(--accent);
}

.auth-mode-toggle {
  display: block;
  width: 100%;
  margin: 0.1rem 0 0;
  padding: 0.35rem 0;
  border: none;
  background: none;
  color: var(--accent);
  font: inherit;
  font-size: 0.76rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
}

.auth-mode-toggle:hover {
  text-decoration: underline;
}

.auth-password-set-lead {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.45;
}

.auth-password-set {
  margin-top: 0.15rem;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  border: 1px dashed var(--border);
  background: #fff;
}

.auth-password-set summary {
  cursor: pointer;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--muted);
  list-style: none;
}

.auth-password-set summary::-webkit-details-marker {
  display: none;
}

.auth-password-set[open] summary {
  margin-bottom: 0.55rem;
  color: var(--accent);
}

.auth-switch-tab-link {
  display: block;
  width: 100%;
  margin: 0.15rem 0 0.25rem;
  text-align: left;
}

.auth-email-title {
  margin: 0 0 0.2rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
}

.auth-code-row {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
}

.auth-code-input--inline {
  flex: 1;
  min-width: 0;
  padding: 0.62rem 0.75rem !important;
  border: 1px solid var(--border) !important;
  border-radius: 11px !important;
  background: #fff !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.28em !important;
  text-align: center;
}

.auth-code-input--inline:focus {
  border-color: #fdba74 !important;
  box-shadow: 0 0 0 3px rgba(194, 65, 12, 0.1);
}

.auth-code-input--inline:disabled {
  background: #f5f5f4 !important;
  color: var(--muted);
  cursor: not-allowed;
}

.auth-send-code-btn {
  flex-shrink: 0;
  align-self: stretch;
  min-width: 6.5rem;
  padding: 0 0.85rem;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.auth-send-code-btn:hover:not(:disabled) {
  border-color: #fdba74;
  color: var(--accent);
  background: var(--accent-soft);
}

.auth-send-code-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.auth-modal-submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
  filter: none;
}

.auth-back-link {
  align-self: flex-start;
  border: none;
  background: transparent;
  padding: 0;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s ease;
}

.auth-back-link:hover {
  color: var(--accent);
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.auth-field-label {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
}

.auth-field-wrap {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0 0.75rem;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-field-wrap:focus-within {
  border-color: #fdba74;
  box-shadow: 0 0 0 3px rgba(194, 65, 12, 0.1);
}

.auth-field-icon {
  display: grid;
  place-items: center;
  color: var(--muted);
  flex-shrink: 0;
}

.auth-field-wrap:focus-within .auth-field-icon {
  color: var(--accent);
}

.auth-field-wrap .auth-field-input {
  flex: 1;
  min-width: 0;
  padding: 0.62rem 0;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 0.88rem;
  color: var(--text);
}

.auth-field-wrap .auth-field-input:focus {
  outline: none;
}

.auth-field-input.auth-field-input--boxed {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 0.62rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: #fff;
  font: inherit;
  font-size: 0.88rem;
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-field-input.auth-field-input--boxed:focus {
  outline: none;
  border-color: #fdba74;
  box-shadow: 0 0 0 3px rgba(194, 65, 12, 0.1);
}

.auth-field-input.auth-field-input--boxed::placeholder {
  color: #a8a29e;
}

.auth-field-input.auth-code-input {
  padding: 0.72rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: #fff;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.42em;
  text-align: center;
  font-variant-numeric: tabular-nums;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-field-input.auth-code-input:focus {
  border-color: #fdba74;
  box-shadow: 0 0 0 3px rgba(194, 65, 12, 0.1);
}

.auth-modal-submit {
  width: 100%;
  margin-top: 0.15rem;
  padding: 0.68rem 1rem;
  border: none;
  border-radius: 11px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(194, 65, 12, 0.22);
  transition: filter 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}

.auth-modal-submit--secondary {
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: none;
}

.auth-modal-submit--secondary:hover:not(:disabled) {
  filter: none;
  border-color: #fdba74;
  color: var(--accent);
  background: var(--accent-soft);
  box-shadow: none;
}

.auth-modal-submit:hover:not(:disabled) {
  filter: brightness(1.04);
  box-shadow: 0 6px 18px rgba(194, 65, 12, 0.28);
}

.auth-modal-submit:active:not(:disabled) {
  transform: translateY(1px);
}

.auth-modal-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

.auth-modal-footnote {
  margin: 0;
  padding: 0.75rem 1.35rem 1.1rem;
  text-align: center;
  font-size: 0.68rem;
  color: var(--muted);
  line-height: 1.45;
  border-top: 1px solid var(--border);
  background: #faf8f5;
}

.auth-code-hint {
  margin: 0 0 0.85rem;
  padding: 0.55rem 0.7rem;
  border-radius: 9px;
  background: #fff;
  border: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.45;
  text-align: center;
}

.auth-code-hint strong {
  color: var(--text);
  font-weight: 700;
}

.auth-dev-code {
  margin: 0 0 0.75rem;
  padding: 0.5rem 0.7rem;
  border-radius: 9px;
  background: var(--accent-soft);
  border: 1px dashed #fdba74;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--accent);
  text-align: center;
}

.auth-step-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  margin-top: 0.35rem;
}

.auth-modal-link {
  border: none;
  background: transparent;
  padding: 0.25rem 0;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s ease;
}

.auth-modal-link:hover:not(:disabled) {
  color: var(--accent);
}

.auth-modal-link:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  text-decoration: none;
}

.auth-form-error {
  margin: 0;
  font-size: 0.76rem;
  color: var(--err);
  line-height: 1.4;
}

/* legacy auth form (unused elsewhere) */
.auth-form .field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.auth-form .field-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
}

.auth-form .field-input {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 9px;
  font: inherit;
  font-size: 0.85rem;
  background: #fff;
}

.auth-form .field-input:focus {
  outline: 2px solid rgba(194, 65, 12, 0.25);
  border-color: #fdba74;
}

.auth-submit {
  width: 100%;
  margin-top: 0.15rem;
}

.auth-switch {
  margin: 0.85rem 0 0;
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
}

@media (max-width: 860px) {
  .header-nav {
    order: 3;
    width: 100%;
    padding-top: 0.15rem;
    border-top: 1px solid var(--border);
  }

  .brand {
    flex: 1 1 calc(100% - 8rem);
  }

  .tagline {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .header-toolbar {
    width: 100%;
    justify-content: flex-end;
  }
}

.layout {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 400px);
  gap: 0.85rem;
  align-items: start;
  margin-bottom: 0.5rem;
}

/* —— 右侧统一侧栏（说明 ↔ 结果同位置切换） —— */
.panel-side {
  min-height: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  position: sticky;
  top: 0.65rem;
  max-height: calc(100dvh - var(--header-h) - 1.3rem);
}

.side-panel-head {
  flex-shrink: 0;
  padding: 0.85rem 0.95rem 0.65rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #faf8f5 0%, var(--surface) 100%);
}

.side-panel-kicker {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.2rem;
}

.side-panel-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.panel-side.is-result .side-panel-head {
  background: linear-gradient(180deg, #f0fdf4 0%, var(--surface) 100%);
  border-bottom-color: rgba(187, 247, 208, 0.6);
}

.panel-side.is-result .side-panel-kicker {
  color: var(--ok);
}

.side-panel-body {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-areas: "stack";
  align-content: stretch;
}

.side-pane {
  grid-area: stack;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.side-pane[hidden] {
  display: none !important;
}

.side-pane--guide {
  padding: 0.85rem 0.95rem 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.side-pane--result {
  background: linear-gradient(180deg, #f8fdf9 0%, var(--surface) 18%);
}

.workspace-main {
  min-width: 0;
  min-height: min(420px, calc(100dvh - var(--header-h) - 2rem));
  display: grid;
  grid-template-areas: "stack";
  align-content: stretch;
}

.workspace-main > .panel-form {
  grid-area: stack;
  width: 100%;
}

.side-pane--result[hidden] {
  display: none !important;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.panel-form {
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 0.6rem 0.85rem 0;
  overflow: hidden;
}

.panel-form > .step-nav {
  flex-shrink: 0;
}

.panel-form > .workflow-form {
  flex: 1;
  min-height: 0;
}

.panel-result,
.side-pane--result {
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

@media (min-width: 861px) {
  .workspace-main > .panel-form {
    max-height: calc(100dvh - var(--header-h));
    overflow: hidden;
  }
}

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

  .workspace-main {
    order: 1;
    max-height: none;
  }

  .panel-side {
    order: 2;
    position: static;
    max-height: none;
    margin-bottom: 0.75rem;
  }

  .site-faq {
    margin-top: 2rem;
    padding-top: 1.35rem;
  }

  .layout--has-result .side-pane--result {
    min-height: min(480px, 70vh);
  }
}

@media (max-width: 860px) {

  .workspace-main {
    max-height: none;
  }

  .panel-form {
    max-height: none;
    padding-bottom: 0;
  }

  .workflow-form {
    padding-bottom: calc(var(--actions-h) + 0.85rem);
  }

  .app-shell {
    padding-bottom: calc(0.85rem + env(safe-area-inset-bottom, 0px));
  }

  .workflow-actions {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
  }

  .workflow-actions .action-dock {
    margin: 0;
    border-radius: 16px 16px 0 0;
    border-left: none;
    border-right: none;
    padding: 0.75rem 0.85rem calc(0.8rem + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -8px 32px rgba(26, 24, 22, 0.12);
  }

  .submit-hint {
    margin-bottom: 0;
  }

  .tagline {
    white-space: normal;
  }
}

@media (max-width: 480px) {
  .app-shell {
    padding: 0.5rem 0.6rem 0.6rem;
  }

  .step-label {
    font-size: 0.7rem;
  }
}

/* —— 首页 Hero —— */
.home-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 0.85rem 1rem;
  align-items: center;
  margin-bottom: 0.65rem;
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--border));
  background:
    linear-gradient(135deg, rgba(255, 247, 237, 0.92) 0%, rgba(255, 255, 255, 0.98) 52%, rgba(250, 250, 249, 0.96) 100%);
  box-shadow: 0 10px 28px rgba(234, 88, 12, 0.06);
}

.home-hero[hidden] {
  display: none !important;
}

.home-hero-close {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  z-index: 1;
  width: 1.65rem;
  height: 1.65rem;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #78716c;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.home-hero-close:hover {
  background: #fff;
  color: #44403c;
}

.home-hero-kicker {
  margin: 0 0 0.25rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #c2410c;
}

.home-hero-title {
  margin: 0;
  font-size: clamp(1rem, 2.2vw, 1.18rem);
  line-height: 1.35;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: #1c1917;
}

.home-hero-lead {
  margin: 0.35rem 0 0.65rem;
  font-size: 0.76rem;
  line-height: 1.55;
  color: #78716c;
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.65rem;
  align-items: center;
}

.home-hero-cta {
  padding: 0.42rem 0.85rem;
  border: none;
  border-radius: 999px;
  background: linear-gradient(180deg, #fb923c 0%, #ea580c 100%);
  color: #fff;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(234, 88, 12, 0.22);
}

.home-hero-cta:hover {
  filter: brightness(1.03);
}

.home-hero-link {
  padding: 0;
  border: none;
  background: none;
  color: #c2410c;
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.home-hero-compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.45rem;
  align-items: stretch;
  font-size: 0.72rem;
}

.home-hero-compare-col {
  padding: 0.55rem 0.6rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.88);
}

.home-hero-compare-col--before {
  border-style: dashed;
  color: #78716c;
}

.home-hero-compare-col--after {
  border-color: #fed7aa;
  background: #fffbf7;
}

.home-hero-compare-label {
  display: block;
  margin-bottom: 0.28rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #a8a29e;
}

.home-hero-compare-col p {
  margin: 0;
  font-weight: 600;
  line-height: 1.45;
}

.home-hero-compare-col mark {
  padding: 0 0.12rem;
  border-radius: 3px;
  background: #ffedd5;
  color: #c2410c;
}

.home-hero-compare-col code {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.62rem;
  color: #a8a29e;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.home-hero-compare-arrow {
  display: flex;
  align-items: center;
  color: #fdba74;
  font-size: 1rem;
  font-weight: 700;
}

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

  .home-hero-compare {
    order: 3;
  }
}

/* —— 更多选项折叠 —— */
.workflow-more {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fafaf9;
  overflow: hidden;
}

.workflow-more-summary {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.65rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.workflow-more-summary::-webkit-details-marker {
  display: none;
}

.workflow-more-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
}

.workflow-more-badge {
  margin-left: auto;
  font-size: 0.68rem;
  color: var(--muted);
}

.workflow-more-body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.5rem 0.55rem 0.55rem;
  border-top: 1px solid var(--border);
}

.workflow-more[open] .workflow-more-summary {
  background: #fff;
  padding-bottom: 0.55rem;
}

.mode-compare-details,
.guide-details {
  margin-top: 0.35rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fafaf9;
  overflow: hidden;
}

.mode-compare-summary,
.guide-details-summary {
  display: flex;
  align-items: center;
  padding: 0.5rem 0.6rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--muted);
}

.mode-compare-summary::-webkit-details-marker,
.guide-details-summary::-webkit-details-marker {
  display: none;
}

.guide-details-summary {
  color: #57534e;
  line-height: 1.45;
}

.mode-compare-details .mode-compare {
  margin: 0.5rem 0.55rem 0.55rem;
}

.guide-details .guide-panel {
  margin: 0 0.5rem 0.4rem;
}

.guide-details .guide-notes {
  margin: 0 0.5rem 0.55rem;
}

.guide-details[open] .guide-details-summary,
.mode-compare-details[open] .mode-compare-summary {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.55rem;
}

.side-pane--guide.is-paid-slim .guide-details,
.side-pane--guide.is-paid-slim .guide-links,
.side-pane--guide.is-paid-slim .guide-faq-link {
  display: none !important;
}

.social-proof {
  flex-shrink: 0;
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin-top: 1.25rem;
  padding: 1.15rem 0.15rem 0.85rem;
  border-top: 1px solid var(--border);
}

.social-proof + .site-faq {
  margin-top: 1.5rem;
}

.social-proof-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  padding: 0.65rem 0.85rem;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 14%, var(--border));
  background: linear-gradient(135deg, #fffbf7 0%, #fff 48%, #fafaf9 100%);
  box-shadow: 0 6px 20px rgba(234, 88, 12, 0.05);
}

.social-proof-trust {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 0 0 auto;
}

.social-proof-kicker {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #c2410c;
}

.social-proof-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.social-proof-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 0.28rem;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
}

.social-proof-chip strong {
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--text);
}

.social-proof-chip span {
  font-size: 0.62rem;
  color: var(--muted);
}

.social-proof-chip--accent {
  border-color: #fed7aa;
  background: #fff7ed;
}

.social-proof-chip--accent strong {
  color: #c2410c;
}

.social-proof-carousel {
  flex: 1 1 12rem;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.social-proof-stage {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-areas: "stack";
  align-items: center;
}

.social-proof-review {
  grid-area: stack;
  margin: 0;
  padding: 0.15rem 0 0.15rem 0.65rem;
  border-left: 2px solid #fdba74;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.social-proof-review.is-active {
  opacity: 1;
  visibility: visible;
}

.social-proof-review p {
  margin: 0;
  font-size: 0.74rem;
  line-height: 1.5;
  color: #44403c;
  font-weight: 500;
}

.social-proof-review cite {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.64rem;
  font-style: normal;
  color: #a8a29e;
}

.social-proof-dots {
  display: flex;
  flex-shrink: 0;
  flex-direction: column;
  gap: 0.28rem;
  padding: 0.1rem 0;
}

.social-proof-dot {
  width: 5px;
  height: 5px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: #d6d3d1;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.social-proof-dot.is-active {
  background: #ea580c;
  transform: scale(1.15);
}

.social-proof-dot:hover {
  background: #fdba74;
}

@media (max-width: 640px) {
  .social-proof-card {
    flex-direction: column;
    align-items: stretch;
  }

  .social-proof-carousel {
    flex-direction: row-reverse;
    align-items: flex-start;
  }

  .social-proof-dots {
    flex-direction: row;
    padding-top: 0.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .social-proof-review {
    transition: none;
  }

  .social-proof-dots {
    display: none;
  }
}

/* —— 步骤条 —— */
.step-nav {
  --step-active: 1;
  flex-shrink: 0;
  margin-bottom: 0.5rem;
  padding: 0.55rem 0.75rem 0.5rem;
  border-radius: 14px;
  border: 1px solid rgba(214, 211, 209, 0.9);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 248, 245, 0.96) 55%, rgba(255, 247, 237, 0.35) 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 10px 28px rgba(26, 24, 22, 0.06);
}

.step-track {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  flex: 0 0 auto;
  min-width: 3.1rem;
  opacity: 0.55;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.step-item.is-active,
.step-item.is-done {
  opacity: 1;
}

.step-item.is-active {
  transform: translateY(-1px);
}

.step-node {
  position: relative;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  border: 2px solid #e7e5e4;
  box-shadow: 0 2px 8px rgba(26, 24, 22, 0.06);
  transition:
    border-color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.step-num {
  font-size: 0.72rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #a8a29e;
  line-height: 1;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.step-check {
  position: absolute;
  width: 0.85rem;
  height: 0.85rem;
  color: #fff;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.step-item.is-done .step-num {
  opacity: 0;
  transform: scale(0.5);
}

.step-item.is-done .step-check {
  opacity: 1;
  transform: scale(1);
}

.step-item.is-done .step-node {
  border-color: transparent;
  background: linear-gradient(145deg, #4ade80 0%, #16a34a 100%);
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.35);
}

.step-item.is-active .step-node {
  border-color: transparent;
  background: linear-gradient(145deg, #fb923c 0%, #ea580c 48%, #c2410c 100%);
  box-shadow:
    0 0 0 3px rgba(251, 146, 60, 0.22),
    0 6px 18px rgba(194, 65, 12, 0.32);
  transform: scale(1.06);
}

.step-item.is-active .step-num {
  color: #fff;
}

.step-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #a8a29e;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.step-item.is-active .step-label {
  color: #9a3412;
}

.step-item.is-done .step-label {
  color: #166534;
}

.step-connector {
  flex: 1;
  min-width: 0.5rem;
  height: 2px;
  margin-top: 0.86rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #e7e5e4 0%, #d6d3d1 100%);
  transition: background 0.35s ease, box-shadow 0.35s ease;
}

.step-connector.is-done {
  background: linear-gradient(90deg, #4ade80 0%, #22c55e 100%);
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.25);
}

.step-connector.is-next {
  background: linear-gradient(90deg, #22c55e 0%, #e7e5e4 65%, #d6d3d1 100%);
}

/* —— 工作区：可滚动 + 底栏固定提交 —— */
.workflow-form {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.workflow-cue-focus {
  flex-shrink: 0;
  margin: 0 0 0.65rem;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  border: 1px solid #bfdbfe;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.08);
}

.workflow-cue-focus[hidden] {
  display: none !important;
}

.workflow-cue-focus-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.workflow-cue-focus-kicker {
  font-size: 0.72rem;
  font-weight: 800;
  color: #1d4ed8;
}

.workflow-cue-focus-close {
  border: none;
  background: transparent;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  padding: 0.15rem 0.25rem;
}

.workflow-cue-focus-close:hover {
  color: var(--text);
}

.workflow-cue-focus-meta {
  margin: 0 0 0.35rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
}

.workflow-cue-focus-reason {
  margin: 0 0 0.4rem;
  font-size: 0.68rem;
  line-height: 1.4;
  color: #b45309;
}

.workflow-cue-focus-reason[hidden] {
  display: none !important;
}

.workflow-cue-focus-diff {
  display: grid;
  gap: 0.35rem;
}

.workflow-cue-focus-before,
.workflow-cue-focus-after {
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  font-size: 0.82rem;
  line-height: 1.45;
  word-break: break-word;
}

.workflow-cue-focus-before {
  background: #fef2f2;
  color: #991b1b;
  text-decoration: line-through;
}

.workflow-cue-focus-after {
  background: #f0fdf4;
  color: #166534;
  font-weight: 600;
}

.workflow-cue-focus-jump {
  margin-top: 0.45rem;
}

.layout--has-result .workflow-cue-focus {
  animation: progress-enter 0.3s ease;
}

.workflow-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 0.15rem;
  padding-bottom: 0.35rem;
  scrollbar-gutter: stable;
}

.workflow-scroll::-webkit-scrollbar {
  width: 6px;
}

.workflow-scroll::-webkit-scrollbar-thumb {
  background: #d6cec4;
  border-radius: 3px;
}

.workflow-actions {
  flex-shrink: 0;
  margin-top: 0.85rem;
  padding: 0.35rem 0 0;
  border-top: 1px solid rgba(229, 223, 214, 0.55);
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

/* —— 校对进度条（操作坞上方） —— */
.proofread-progress {
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  background: linear-gradient(165deg, #fffdfa 0%, #fff7ed 55%, #ffedd5 100%);
  border: 1px solid rgba(253, 186, 116, 0.55);
  box-shadow: 0 8px 24px rgba(194, 65, 12, 0.1);
  animation: progress-enter 0.35s ease;
}

@keyframes progress-enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.proofread-progress[hidden] {
  display: none !important;
}

.progress-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
}

.progress-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  color: #9a3412;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.15rem;
}

.progress-title {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.progress-pct {
  flex-shrink: 0;
  font-size: 1.1rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  line-height: 1;
}

.progress-track {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(253, 186, 116, 0.35);
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(26, 24, 22, 0.06);
}

.progress-fill {
  position: relative;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #fb923c 0%, #ea580c 45%, #c2410c 100%);
  transition: width 0.45s ease;
  box-shadow: 0 0 12px rgba(234, 88, 12, 0.45);
}

.progress-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.45) 50%,
    transparent 100%
  );
  animation: progress-shimmer 1.8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes progress-shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.progress-sub {
  margin: 0.45rem 0 0.35rem;
  font-size: 0.74rem;
  color: var(--muted);
  line-height: 1.4;
}

.progress-note {
  margin: 0 0 0.5rem;
  padding: 0.4rem 0.55rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(253, 186, 116, 0.35);
  font-size: 0.7rem;
  line-height: 1.45;
  color: #9a3412;
}

.progress-note-sep {
  margin: 0 0.25rem;
  opacity: 0.45;
}

.progress-foot {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.55rem;
  padding-top: 0.5rem;
  border-top: 1px dashed rgba(253, 186, 116, 0.45);
}

.btn-cancel-proofread {
  font: inherit;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(214, 211, 209, 0.9);
  background: rgba(255, 255, 255, 0.85);
  color: var(--muted);
  cursor: pointer;
}

.btn-cancel-proofread:hover {
  border-color: #d6d3d1;
  color: var(--text);
  background: #fff;
}

.progress-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.35rem;
}

.progress-step {
  flex: 1;
  text-align: center;
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--muted);
  padding: 0.35rem 0.25rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.progress-step.is-active {
  color: #9a3412;
  font-weight: 700;
  background: #fff;
  border-color: rgba(253, 186, 116, 0.7);
  box-shadow: 0 2px 8px rgba(194, 65, 12, 0.08);
}

.progress-step.is-done {
  color: var(--ok);
  background: rgba(240, 253, 244, 0.9);
}

.workflow-actions.is-running .action-dock .btn-submit {
  opacity: 0.35;
  pointer-events: none;
}

.workflow-actions.is-running .action-dock-meta {
  opacity: 0.6;
}

.workflow-actions[data-state="running"] .hint-pulse {
  background: var(--accent);
  animation: hint-pulse 1s ease-in-out infinite;
}

.action-dock {
  padding: 0.75rem 0.85rem 0.85rem;
  border-radius: 14px 14px 0 0;
  background: linear-gradient(180deg, rgba(255, 253, 250, 0.92) 0%, #fffdfa 32%);
  border: 1px solid rgba(229, 223, 214, 0.9);
  border-bottom: none;
  box-shadow:
    0 -6px 20px rgba(26, 24, 22, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
}

.workflow-actions[data-state="ready"] .action-dock {
  border-color: rgba(253, 186, 116, 0.45);
  box-shadow:
    0 -16px 40px rgba(194, 65, 12, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.action-dock-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.55rem;
}

.action-dock-meta[hidden] {
  display: none !important;
}

.dock-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #9a3412;
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  border: 1px solid rgba(253, 186, 116, 0.55);
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.dock-chip--muted {
  color: var(--muted);
  font-weight: 500;
  background: #f5f4f2;
  border-color: var(--border);
}

@media (min-width: 861px) {
  .workflow-actions {
    position: sticky;
    bottom: 0;
    z-index: 4;
    margin-left: -0.15rem;
    margin-right: -0.15rem;
    margin-top: 0.65rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(229, 223, 214, 0.65);
  }

  .action-dock {
    border-radius: 14px;
    border-bottom: 1px solid rgba(229, 223, 214, 0.9);
    margin-bottom: 0.15rem;
  }
}

/* —— 上传区 —— */
.upload-strip {
  position: relative;
  margin-bottom: 0.5rem;
}

.upload-strip.is-locked .file-drop {
  pointer-events: none;
  opacity: 0.52;
  filter: grayscale(0.15);
  border-color: #e7e5e4;
  background: #f5f5f4;
  cursor: not-allowed;
}

.upload-strip.is-locked .file-change-btn {
  pointer-events: none;
  opacity: 0.4;
}

.upload-strip.is-locked .file-remove-btn {
  pointer-events: none;
  opacity: 0.4;
}

.upload-lock-hint {
  margin: 0.45rem 0 0;
  padding: 0.4rem 0.55rem;
  font-size: 0.74rem;
  font-weight: 500;
  color: #9a3412;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  text-align: center;
}

.upload-lock-hint[hidden] {
  display: none !important;
}

.upload-strip-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 0.75rem;
  margin-bottom: 0.45rem;
}

.block-title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
}

.block-desc {
  margin: 0;
  font-size: 0.76rem;
  color: var(--muted);
}

.block-desc strong {
  color: var(--text);
}

.file-queue {
  list-style: none;
  margin: 0 0 0.45rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.file-queue[hidden] {
  display: none !important;
}

.file-queue-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 0.35rem 0.5rem;
  padding: 0.35rem 0.45rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 0.72rem;
}

.file-queue-item.is-ok {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.file-queue-item.is-err {
  border-color: #fecaca;
  background: #fef2f2;
}

.file-queue-name {
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-queue-meta {
  color: var(--muted);
  white-space: nowrap;
}

.file-queue-remove {
  width: 1.35rem;
  height: 1.35rem;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

.file-queue-remove:hover {
  background: rgba(0, 0, 0, 0.06);
  color: var(--text);
}

.dock-chip--quota {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid rgba(147, 197, 253, 0.5);
}

.batch-downloads {
  margin: 0 0.95rem 0.55rem;
  padding: 0.55rem 0.6rem;
  border-radius: 10px;
  border: 1px solid rgba(147, 197, 253, 0.45);
  background: linear-gradient(180deg, #f8fafc 0%, #eff6ff 100%);
}

.batch-downloads[hidden] {
  display: none !important;
}

.batch-downloads-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.45rem;
  margin-bottom: 0.4rem;
}

.batch-downloads-title {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: #1e40af;
  line-height: 1.35;
}

.batch-downloads-hint {
  font-weight: 500;
  color: #3b82f6;
  opacity: 0.92;
}

.batch-downloads-all-btn {
  flex-shrink: 0;
  padding: 0.28rem 0.5rem;
  border: 1px solid rgba(37, 99, 235, 0.45);
  border-radius: 7px;
  background: #fff;
  color: #1d4ed8;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.batch-downloads-all-btn:hover:not(:disabled) {
  background: #dbeafe;
}

.batch-downloads-all-btn:disabled {
  opacity: 0.55;
  cursor: wait;
}

.batch-downloads-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.batch-dl-btn {
  width: 100%;
  padding: 0.45rem 0.55rem;
  border: 1px solid rgba(37, 99, 235, 0.3);
  border-radius: 8px;
  background: #fff;
  color: #1e40af;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.batch-dl-btn:hover {
  background: #dbeafe;
}

.convert-batch-hint {
  margin: 0 0 0.45rem;
  font-size: 0.7rem;
  line-height: 1.4;
  color: #1d4ed8;
}

.convert-batch-hint[hidden] {
  display: none !important;
}

.convert-lane-files {
  list-style: none;
  margin: 0.25rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.convert-lane-files[hidden] {
  display: none !important;
}

.convert-file-dl-btn {
  width: 100%;
  padding: 0.28rem 0.4rem;
  border: 1px dashed rgba(37, 99, 235, 0.35);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.85);
  color: #1e40af;
  font: inherit;
  font-size: 0.65rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.convert-file-dl-btn:hover {
  background: #eff6ff;
}

.glossary-suggest {
  margin-top: 0.45rem;
  padding: 0.45rem 0.5rem;
  border-radius: 8px;
  border: 1px dashed rgba(37, 99, 235, 0.35);
  background: #f8fafc;
}

.glossary-suggest[hidden],
.glossary-suggest--result[hidden],
.suspicious-section[hidden] {
  display: none !important;
}

.glossary-suggest-lead {
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
  line-height: 1.4;
  color: var(--muted);
}

.glossary-suggest-list {
  list-style: none;
  margin: 0 0 0.4rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  max-height: 8rem;
  overflow-y: auto;
}

.glossary-suggest-check {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.4rem;
  font-size: 0.7rem;
  cursor: pointer;
}

.glossary-suggest-text code {
  font-size: 0.68rem;
  color: #1e40af;
}

.glossary-suggest-reason {
  font-size: 0.62rem;
  color: var(--muted);
}

.glossary-suggest-empty {
  font-size: 0.68rem;
  color: var(--muted);
}

.glossary-suggest--result {
  margin: 0 0.85rem 0.65rem;
  padding: 0.5rem 0.55rem;
}

.suspicious-section {
  margin: 0 0.85rem 0.55rem;
  padding: 0.5rem 0.55rem;
  border-radius: 10px;
  border: 1px solid #fde68a;
  background: linear-gradient(180deg, #fffbeb 0%, #fefce8 100%);
}

.suspicious-lead {
  margin: 0 0 0.4rem;
  font-size: 0.68rem;
  line-height: 1.45;
  color: #92400e;
}

.suspicious-count {
  font-size: 0.68rem;
  font-weight: 600;
  color: #b45309;
}

.suspicious-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-height: 10rem;
  overflow-y: auto;
}

.suspicious-item {
  padding: 0.35rem 0.4rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(251, 191, 36, 0.45);
}

.suspicious-item-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.45rem;
  margin-bottom: 0.25rem;
  font-size: 0.62rem;
  color: #78350f;
}

.suspicious-reason {
  color: #b45309;
}

.suspicious-edit {
  width: 100%;
  box-sizing: border-box;
  padding: 0.32rem 0.4rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font: inherit;
  font-size: 0.72rem;
}

.suspicious-actions {
  display: flex;
  gap: 0.3rem;
  margin-top: 0.28rem;
}

.manual-edits-hint[hidden] {
  display: none !important;
}

.change-item--highlight {
  outline: 2px solid #fbbf24;
  outline-offset: 2px;
}

.file-drop {
  position: relative;
  isolation: isolate;
  min-height: 3.5rem;
  border: 2px dashed #d6cec4;
  border-radius: 10px;
  padding: 0.6rem 0.55rem;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, padding 0.15s;
}

.file-drop.dragover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.file-drop.has-file {
  padding: 0.5rem 0.6rem;
  border-style: solid;
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  background: linear-gradient(180deg, #fffbf7 0%, #fff 100%);
  box-shadow: 0 8px 22px rgba(234, 88, 12, 0.08);
}

.file-drop.is-ready {
  border-color: #22c55e;
  background: linear-gradient(180deg, #f0fdf4 0%, #fff 100%);
}

.file-drop.is-ready .file-hint {
  color: #15803d;
  font-weight: 600;
}

.file-drop-inner {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-align: left;
}

.file-drop input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
  font-size: 0;
}

.file-drop.has-file input[type="file"] {
  width: 0;
  height: 0;
  inset: auto;
  pointer-events: none;
}

.file-drop-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  pointer-events: none;
}

.file-drop.has-file .file-drop-icon {
  font-size: 1.2rem;
}

.file-drop-text {
  flex: 1;
  min-width: 0;
  pointer-events: none;
}

.file-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-hint.has-file {
  color: var(--text);
  font-weight: 600;
}

.file-types {
  margin: 0.15rem 0 0;
  font-size: 0.7rem;
  color: var(--muted);
}

.file-drop.has-file .file-types {
  display: none;
}

.file-drop-actions {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.35rem;
}

.file-change-btn {
  position: relative;
  z-index: 3;
  flex-shrink: 0;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.35rem 0.6rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--accent);
  cursor: pointer;
}

.file-change-btn:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.file-remove-btn {
  position: relative;
  z-index: 3;
  flex-shrink: 0;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.35rem 0.6rem;
  border-radius: 8px;
  border: 1px solid #fecaca;
  background: #fff;
  color: #b91c1c;
  cursor: pointer;
}

.file-remove-btn:hover {
  border-color: #f87171;
  background: #fef2f2;
}

.file-validate {
  margin-top: 0.45rem;
  font-size: 0.8rem;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  line-height: 1.4;
  font-weight: 500;
}

.file-validate.ok {
  background: #f0fdf4;
  color: var(--ok);
  border: 1px solid #bbf7d0;
}

.file-validate.err {
  background: #fef2f2;
  color: var(--err);
  border: 1px solid #fecaca;
}

.file-validate.pending {
  background: #fffbeb;
  color: var(--warn);
  border: 1px solid #fde68a;
}

.workflow-options {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.workflow-options.is-locked {
  opacity: 0.55;
  pointer-events: none;
}

.workflow-options.is-pending::before {
  content: "正在检测文件格式，通过后即可校对…";
  display: block;
  font-size: 0.76rem;
  color: var(--warn);
  padding: 0.45rem 0.55rem;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  margin-bottom: 0.15rem;
}

/* —— 校对方式：并排卡片 —— */
.mode-block {
  border: none;
  margin: 0;
  padding: 0;
}

.mode-legend {
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  padding: 0;
}

.mode-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}

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

.mode-option {
  display: block;
  margin: 0;
  cursor: pointer;
}

.mode-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.mode-card {
  display: block;
  height: 100%;
  padding: 0.48rem 0.55rem;
  border: 2px solid var(--border);
  border-radius: 8px;
  background: #fff;
  transition: border-color 0.15s, background 0.15s;
}

.mode-option input:checked + .mode-card {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.mode-option:first-child input:checked + .mode-card {
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent),
    0 8px 22px rgba(234, 88, 12, 0.12);
}

.mode-card strong {
  display: block;
  font-size: 0.82rem;
}

.mode-card small {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.7rem;
  color: var(--muted);
}

.mode-tag {
  display: inline-block;
  margin-top: 0.25rem;
  font-size: 0.62rem;
  font-style: normal;
  padding: 0.08rem 0.4rem;
  border-radius: 999px;
  font-weight: 600;
}

.mode-tag.free {
  background: #dcfce7;
  color: var(--ok);
}

.mode-tag.pro {
  background: #ffedd5;
  color: #9a3412;
}

.mode-tip {
  margin: 0.3rem 0 0;
  font-size: 0.72rem;
  color: var(--muted);
}

.segment-level-panel {
  margin-top: 0.55rem;
  padding: 0.55rem 0.6rem 0.65rem;
  border: 1px dashed var(--border);
  border-radius: 8px;
  background: #fffdfa;
}

.segment-level-label {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
}

.segment-level-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
}

.segment-level-option {
  display: block;
  margin: 0;
  cursor: pointer;
}

.segment-level-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.segment-level-card {
  display: block;
  padding: 0.42rem 0.5rem;
  border: 1.5px solid var(--border);
  border-radius: 7px;
  background: #fff;
  transition: border-color 0.15s, background 0.15s;
}

.segment-level-option input:checked + .segment-level-card {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.segment-level-card strong {
  display: block;
  font-size: 0.78rem;
}

.segment-level-card small {
  display: block;
  margin-top: 0.08rem;
  font-size: 0.66rem;
  color: var(--muted);
}

.segment-level-hint {
  margin: 0.4rem 0 0;
  font-size: 0.68rem;
  color: var(--muted);
  line-height: 1.45;
}

.mode-compare-label {
  margin: 0.3rem 0 0.22rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
}

.mode-compare {
  margin-top: 0;
  padding: 0.38rem 0.45rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #faf9f7;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem 0.55rem;
}

.field--compact .field-label {
  font-size: 0.72rem;
}

.field--compact input,
.field--compact textarea {
  font-size: 0.78rem;
  padding: 0.35rem 0.45rem;
}

.field--compact textarea {
  min-height: 2.15rem;
  resize: vertical;
}

.upload-strip--compact .file-queue {
  display: none !important;
}

.upload-strip--compact .upload-strip-head .block-desc {
  display: none;
}

.upload-strip--compact .upload-strip-head {
  margin-bottom: 0.28rem;
}

.upload-strip--compact {
  margin-bottom: 0.38rem;
}

@media (max-width: 560px) {
  .mode-compare {
    grid-template-columns: 1fr;
    gap: 0.28rem;
  }
}

.mode-compare-row {
  margin: 0;
  display: flex;
  align-items: flex-start;
  gap: 0.32rem;
  min-width: 0;
}

.mode-compare-badge {
  flex-shrink: 0;
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0.06rem 0.32rem;
  border-radius: 999px;
  background: #dcfce7;
  color: var(--ok);
  white-space: nowrap;
  line-height: 1.35;
  margin-top: 0.08rem;
}

.mode-compare-badge--adv {
  background: #ffedd5;
  color: #9a3412;
}

.mode-compare-text {
  font-size: 0.68rem;
  line-height: 1.32;
  color: var(--muted);
  min-width: 0;
}

.mode-compare-text strong {
  color: var(--text);
  font-weight: 600;
}

.guide-note--mode {
  margin: 0;
  display: flex;
  align-items: flex-start;
  gap: 0.32rem;
  min-width: 0;
}

.mode-compare-badge {
  flex-shrink: 0;
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0.06rem 0.32rem;
  border-radius: 999px;
  background: #dcfce7;
  color: var(--ok);
  white-space: nowrap;
  line-height: 1.35;
  margin-top: 0.08rem;
}

.mode-compare-badge--adv {
  background: #ffedd5;
  color: #9a3412;
}

.mode-compare-text {
  font-size: 0.68rem;
  line-height: 1.32;
  color: var(--muted);
  min-width: 0;
}

.mode-compare-text strong {
  color: var(--text);
  font-weight: 600;
}

.guide-note--mode {
  border-color: #e8e0d4;
  background: #faf8f5;
}

.mode-block.is-disabled .mode-option:last-child {
  opacity: 0.45;
  pointer-events: none;
}

/* —— 智能标题（折叠） —— */
.title-insight-details,
.optional-block,
.advanced-block,
.help-foot {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #faf9f7;
}

.title-insight-details summary,
.optional-block summary,
.advanced-block summary,
.help-foot summary {
  cursor: pointer;
  padding: 0.45rem 0.55rem;
  font-size: 0.82rem;
  font-weight: 600;
  list-style: none;
}

.title-insight-details summary::-webkit-details-marker,
.optional-block summary::-webkit-details-marker,
.advanced-block summary::-webkit-details-marker,
.help-foot summary::-webkit-details-marker {
  display: none;
}

.title-insight-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.optional-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.title-summary-label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.title-pro-tag {
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 600;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  background: #ffedd5;
  color: #9a3412;
  border: 1px solid #fed7aa;
}

.title-insight-body {
  padding: 0 0.65rem 0.65rem;
  border-top: 1px solid var(--border);
}

.title-insight-desc {
  margin: 0.5rem 0 0.25rem;
  font-size: 0.74rem;
  color: var(--muted);
  line-height: 1.45;
}

.title-insight-hint {
  margin: 0 0 0.45rem;
  font-size: 0.68rem;
  color: #78716c;
  line-height: 1.4;
}

.optional-lead {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  line-height: 1.45;
  color: #78716c;
}

.title-quota-badge {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.title-quota-badge.is-pro {
  background: #ffedd5;
  color: #9a3412;
  border-color: #fed7aa;
}

.title-file-picker {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.45rem 0 0.35rem;
}

.batch-file-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem 0.5rem;
  margin: 0.35rem 0 0.15rem;
  padding: 0.38rem 0.45rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}

.batch-file-bar[hidden],
.batch-context-hint[hidden] {
  display: none !important;
}

.batch-file-label {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text);
}

.result-batch-file-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.45rem;
  margin: 0 0 0.45rem;
  padding: 0.38rem 0.45rem;
  border: 1px solid rgba(147, 197, 253, 0.45);
  border-radius: 8px;
  background: #f8fafc;
}

.result-batch-file-bar[hidden] {
  display: none !important;
}

.result-batch-file-label {
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 600;
  color: #1e40af;
}

.result-batch-file-select {
  flex: 1;
  min-width: 8rem;
  padding: 0.3rem 0.4rem;
  font-size: 0.72rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
}

.batch-file-select {
  flex: 1;
  min-width: 8rem;
  padding: 0.32rem 0.45rem;
  font-size: 0.76rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
}

.batch-file-status {
  font-size: 0.68rem;
  color: var(--muted);
  white-space: nowrap;
}

.batch-context-hint {
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
  line-height: 1.35;
  color: var(--muted);
}

.optional-filled-badge {
  font-size: 0.62rem;
  font-weight: 600;
  padding: 0.08rem 0.38rem;
  border-radius: 999px;
  background: #ecfdf5;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.optional-filled-badge[hidden] {
  display: none !important;
}

.title-file-picker[hidden] {
  display: none !important;
}

.title-file-picker-label {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
}

.title-file-select {
  flex: 1;
  min-width: 0;
  padding: 0.32rem 0.45rem;
  font-size: 0.76rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
}

.title-batch-hint {
  margin: 0 0 0.4rem;
  font-size: 0.68rem;
  line-height: 1.35;
  color: var(--muted);
}

.title-batch-hint[hidden] {
  display: none !important;
}

.btn-title-suggest {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid #fdba74;
  border-radius: 8px;
  background: #fff;
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-title-suggest:hover:not(:disabled) {
  background: var(--accent-soft);
  border-color: var(--accent);
}

.btn-title-suggest:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-title-suggest.is-loading {
  pointer-events: none;
  opacity: 0.75;
}

.title-insight-result {
  margin-top: 0.55rem;
  padding-top: 0.55rem;
  border-top: 1px dashed #e8dfd4;
}

.title-summary {
  margin: 0 0 0.4rem;
  font-size: 0.8rem;
}

.title-summary::before {
  content: "主旨 · ";
  color: var(--muted);
}

.title-options-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0.15rem 0 0.4rem;
}

.title-options-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
}

.btn-title-refresh {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.28rem 0.65rem;
  cursor: pointer;
}

.btn-title-refresh:hover:not(:disabled) {
  border-color: #fdba74;
  color: var(--accent);
}

.btn-title-refresh:disabled,
.btn-title-refresh.is-loading {
  opacity: 0.55;
  cursor: not-allowed;
}

.title-refresh-hint {
  margin: 0 0 0.45rem;
  font-size: 0.68rem;
  color: var(--muted);
}

.title-pick-label {
  font-size: 0.7rem;
  color: var(--muted);
}

.title-recommended {
  display: block;
  font-size: 0.95rem;
  color: var(--accent);
  margin: 0.1rem 0 0.35rem;
}

.title-alts {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  max-height: 200px;
  margin-bottom: 0.3rem;
  overflow-y: auto;
}

.title-alt-row {
  display: flex;
  align-items: stretch;
  gap: 0.3rem;
}

.title-alt-chip {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  flex: 1;
  min-width: 0;
  padding: 0.38rem 0.5rem;
  font-size: 0.78rem;
  line-height: 1.45;
  text-align: left;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
}

.title-alt-copy {
  flex-shrink: 0;
  align-self: center;
  padding: 0.28rem 0.5rem;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  white-space: nowrap;
}

.title-alt-copy:hover {
  color: var(--accent);
  border-color: #fdba74;
  background: var(--accent-soft);
}

.title-alt-index {
  flex-shrink: 0;
  width: 1.15rem;
  height: 1.15rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #f5f5f4;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 700;
}

.title-alt-kind {
  flex-shrink: 0;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  background: #f5f5f4;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 600;
}

.title-alt-row.is-long .title-alt-kind {
  background: #fff7ed;
  color: #c2410c;
}

.title-alt-text {
  flex: 1;
  min-width: 0;
}

.title-alt-row:hover .title-alt-chip,
.title-alt-row.is-active .title-alt-chip {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.title-alt-row.is-active .title-alt-index {
  background: var(--accent);
  color: #fff;
}

.title-alt-row.is-active .title-alt-copy {
  color: var(--accent);
  border-color: #fdba74;
}

.title-apply-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.title-insight-err {
  margin: 0.4rem 0 0;
  font-size: 0.78rem;
  color: var(--err);
}

.optional-summary {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.optional-badge {
  font-size: 0.65rem;
  padding: 0.08rem 0.4rem;
  border-radius: 999px;
  background: #e7e5e4;
  color: var(--muted);
}

.optional-body {
  padding: 0 0.65rem 0.65rem;
  border-top: 1px solid var(--border);
}

.advanced-block .field-tip {
  margin: 0.3rem 0 0;
  font-size: 0.72rem;
  color: var(--muted);
}

.advanced-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.advanced-body {
  padding: 0 0.65rem 0.65rem;
  border-top: 1px solid var(--border);
}

.chunk-size-panel {
  margin-top: 0.55rem;
  padding: 0.65rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
}

.chunk-size-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.chunk-size-copy {
  flex: 1;
  min-width: 0;
}

.chunk-size-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.chunk-size-desc {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--muted);
}

.chunk-stepper {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #faf9f7;
  overflow: hidden;
}

.chunk-stepper-btn {
  width: 2rem;
  height: 2.15rem;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}

.chunk-stepper-btn:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.chunk-stepper-input {
  width: 2.75rem;
  border: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  background: #fff;
  text-align: center;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--accent);
  padding: 0.35rem 0;
  -moz-appearance: textfield;
}

.chunk-stepper-input::-webkit-outer-spin-button,
.chunk-stepper-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.chunk-stepper-input:focus {
  outline: none;
  background: #fff;
}

.chunk-size-track {
  margin: 0.65rem 0 0.45rem;
}

.chunk-range {
  width: 100%;
  height: 0.35rem;
  margin: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.chunk-size-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.chunk-meta-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid #fed7aa;
  color: #9a3412;
  font-size: 0.7rem;
  font-weight: 600;
}

.chunk-meta-range {
  font-size: 0.68rem;
  color: var(--muted);
}

@media (max-width: 420px) {
  .chunk-size-head {
    flex-direction: column;
    align-items: stretch;
  }

  .chunk-stepper {
    align-self: flex-end;
  }
}

.help-foot {
  margin-top: 0.75rem;
}

.help-foot ul {
  margin: 0;
  padding: 0 0.65rem 0.65rem 1.4rem;
  font-size: 0.76rem;
  color: var(--muted);
}

.help-foot code {
  font-size: 0.74rem;
  background: #eee;
  padding: 0.08rem 0.25rem;
  border-radius: 3px;
}

.field {
  display: block;
  margin-bottom: 0.55rem;
}

.field:last-child {
  margin-bottom: 0;
}

.field-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.field input[type="text"],
.field input[type="number"],
.field textarea {
  width: 100%;
  font: inherit;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}

.field textarea {
  resize: vertical;
  min-height: 2.2rem;
}

/* —— 提交底栏 —— */
.btn-primary,
.btn-ghost {
  font: inherit;
  cursor: pointer;
  border-radius: 10px;
  border: none;
  font-weight: 600;
}

.btn-submit {
  position: relative;
  width: 100%;
  padding: 0;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  overflow: hidden;
  background: linear-gradient(135deg, #e7e5e4 0%, #d6d3d1 100%);
  color: #78716c;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}

.workflow-actions[data-state="ready"] .btn-submit:not(:disabled) {
  color: #fff;
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 48%, #9a3412 100%);
  box-shadow:
    0 10px 28px rgba(194, 65, 12, 0.35),
    0 2px 0 rgba(255, 255, 255, 0.15) inset,
    0 -2px 0 rgba(0, 0, 0, 0.08) inset;
}

.workflow-actions[data-state="waiting"] .btn-submit:not(:disabled) {
  color: #7c2d12;
  background: linear-gradient(135deg, #ffedd5 0%, #fed7aa 100%);
  box-shadow: 0 4px 14px rgba(194, 65, 12, 0.12);
}

.btn-submit-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 38%,
    rgba(255, 255, 255, 0.22) 48%,
    transparent 58%
  );
  transform: translateX(-120%);
  pointer-events: none;
}

.workflow-actions[data-state="ready"] .btn-submit:not(:disabled):hover .btn-submit-shine {
  animation: submit-shine 0.75s ease;
}

@keyframes submit-shine {
  to {
    transform: translateX(120%);
  }
}

.btn-submit-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1rem 0.85rem 0.9rem;
  text-align: left;
}

.btn-submit-icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.workflow-actions[data-state="idle"] .btn-submit-icon,
.workflow-actions[data-state="waiting"] .btn-submit-icon {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(255, 255, 255, 0.85);
  color: #78716c;
  box-shadow: 0 1px 2px rgba(26, 24, 22, 0.06);
}

.workflow-actions[data-state="ready"] .btn-submit:not(:disabled):hover .btn-submit-icon {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.28);
}

.btn-submit-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.btn-main {
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.25;
}

.btn-sub {
  font-size: 0.74rem;
  font-weight: 500;
  opacity: 0.88;
  line-height: 1.3;
}

.workflow-actions[data-state="ready"] .btn-sub {
  opacity: 0.9;
}

.btn-submit-chevron {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  transition: transform 0.2s ease, background 0.2s ease;
}

.workflow-actions[data-state="idle"] .btn-submit-chevron,
.workflow-actions[data-state="waiting"] .btn-submit-chevron {
  background: rgba(255, 255, 255, 0.5);
  opacity: 0.5;
}

.btn-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.workflow-actions[data-state="ready"] .btn-submit:hover:not(:disabled) {
  box-shadow:
    0 14px 36px rgba(194, 65, 12, 0.42),
    0 2px 0 rgba(255, 255, 255, 0.18) inset;
}

.btn-submit:hover:not(:disabled) .btn-submit-chevron {
  transform: translateX(2px);
  background: rgba(255, 255, 255, 0.22);
}

.btn-submit:active:not(:disabled) {
  transform: translateY(0);
  filter: brightness(0.98);
}

.btn-submit:disabled {
  cursor: not-allowed;
  transform: none;
  filter: none;
}

.btn-submit:focus-visible {
  outline: 2px solid #fb923c;
  outline-offset: 3px;
}

.submit-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin: 0.55rem 0 0;
  font-size: 0.74rem;
  color: var(--muted);
  line-height: 1.4;
}

.hint-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d6d3d1;
  flex-shrink: 0;
}

.workflow-actions[data-state="ready"] .hint-pulse {
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.2);
  animation: hint-pulse 2s ease-in-out infinite;
}

.workflow-actions[data-state="waiting"] .hint-pulse {
  background: var(--warn);
  animation: hint-pulse 1.2s ease-in-out infinite;
}

@keyframes hint-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.55;
    transform: scale(0.85);
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn-submit-shine,
  .hint-pulse,
  .progress-shimmer,
  .proofread-progress {
    animation: none !important;
  }

  .btn-submit,
  .progress-fill {
    transition: none;
  }
}

.submit-error {
  margin-bottom: 0.5rem;
  padding: 0.5rem 0.6rem;
  font-size: 0.8rem;
  color: var(--err);
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
}

.submit-error[hidden] {
  display: none;
}

.btn-sm {
  padding: 0.35rem 0.55rem;
  font-size: 0.76rem;
}

/* —— 侧栏使用说明 —— */
.result-recall {
  margin: 0;
  padding: 0.5rem 0.55rem;
  border-radius: 10px;
  border: 1px solid #bbf7d0;
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
}

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

.result-recall-text {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  line-height: 1.4;
  color: #166534;
}

.btn-result-recall {
  width: 100%;
  padding: 0.42rem 0.55rem;
  border: 1px solid #86efac;
  border-radius: 8px;
  background: #fff;
  color: #15803d;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-result-recall:hover {
  background: #dcfce7;
}

.workflow-result-recall {
  margin: 0 0 0.35rem;
  text-align: center;
}

.workflow-result-recall[hidden] {
  display: none !important;
}

.workflow-result-recall-btn {
  padding: 0.32rem 0.65rem;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  background: #f0fdf4;
  color: #15803d;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
}

.workflow-result-recall-btn:hover {
  background: #dcfce7;
}

.guide-lead {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.5;
  color: var(--muted);
}

/* —— 右侧转化助手 —— */
.side-convert {
  margin-top: 0.65rem;
  padding: 0.7rem 0.75rem;
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--border));
  background: linear-gradient(165deg, #fffbf7 0%, #fff 55%, #fafaf9 100%);
  box-shadow: 0 8px 20px rgba(234, 88, 12, 0.06);
}

.side-convert--pro {
  border-color: color-mix(in srgb, #22c55e 28%, var(--border));
  background: linear-gradient(165deg, #f0fdf4 0%, #fff 55%, #fafaf9 100%);
  box-shadow: 0 8px 20px rgba(34, 197, 94, 0.06);
}

.side-convert-kicker {
  margin: 0 0 0.2rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #c2410c;
}

.side-convert--pro .side-convert-kicker {
  color: #15803d;
}

.side-convert-title {
  margin: 0 0 0.45rem;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.side-convert-list {
  margin: 0 0 0.55rem;
  padding-left: 1.05rem;
  font-size: 0.74rem;
  line-height: 1.55;
  color: #57534e;
}

.side-convert-list li + li {
  margin-top: 0.15rem;
}

.side-convert-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.42rem 0.65rem;
  border: none;
  border-radius: 999px;
  background: linear-gradient(180deg, #fb923c 0%, #ea580c 100%);
  color: #fff;
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(234, 88, 12, 0.18);
}

.side-convert-cta:hover {
  filter: brightness(1.03);
}

.side-convert-cta--ghost {
  background: #fff;
  color: #c2410c;
  border: 1px solid #fed7aa;
  box-shadow: none;
}

.side-convert-actions {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.side-social {
  margin-top: 0.55rem;
  padding: 0.65rem 0.7rem;
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid var(--border);
  background: var(--surface);
}

.side-social-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.side-social-stats {
  display: flex;
  gap: 0.65rem;
  margin: 0 0 0.45rem;
  padding: 0;
  list-style: none;
}

.side-social-stats li {
  flex: 1;
  min-width: 0;
}

.side-social-stats strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text);
}

.side-social-stats span {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.66rem;
  color: var(--muted);
}

.side-social-quote {
  margin: 0;
  padding: 0.45rem 0.5rem;
  border-radius: 8px;
  border-left: 3px solid #fed7aa;
  background: #fffbf7;
}

.side-social-quote p {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.5;
  color: #57534e;
}

.side-social-quote cite {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.66rem;
  font-style: normal;
  color: var(--muted);
}

.guide-quota-card.is-low {
  border-color: #fed7aa;
  background: linear-gradient(165deg, #fffbeb 0%, #fff 100%);
}

.guide-quota-card.is-low .guide-quota-card-icon {
  background: #ffedd5;
  color: #c2410c;
}

.guide-quota-card.is-empty {
  border-color: #fecaca;
  background: linear-gradient(165deg, #fef2f2 0%, #fff 100%);
}

.guide-quota-card.is-empty .guide-quota-card-icon {
  background: #fee2e2;
  color: #b91c1c;
}

.guide-quota-card[hidden] {
  display: none !important;
}

.guide-quota-card {
  margin-top: 0.55rem;
  padding: 0.62rem 0.68rem;
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid var(--border);
  background: linear-gradient(165deg, #fafaf9 0%, #fff 100%);
}

.guide-quota-card-inner {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
}

.guide-quota-card-icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 8px;
  background: #f5f5f4;
  color: #78716c;
}

.guide-quota-card-content {
  flex: 1;
  min-width: 0;
}

.guide-quota-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin-bottom: 0.22rem;
}

.guide-quota-card-kicker {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.guide-quota-card-pill {
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: #ecfdf5;
  color: #15803d;
  font-size: 0.62rem;
  font-weight: 700;
}

.guide-quota-card-pill.is-low {
  background: #ffedd5;
  color: #c2410c;
}

.guide-quota-card-pill.is-empty {
  background: #fee2e2;
  color: #b91c1c;
}

.guide-quota-card-text {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.55;
  color: #57534e;
}

.guide-quota-card-text strong {
  color: #1c1917;
  font-weight: 700;
}

.guide-panel {
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  background: var(--surface);
  padding: 0.7rem 0.8rem 0.65rem;
  box-shadow: var(--shadow);
}

.guide-steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.guide-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  padding: 0.5rem 0;
  position: relative;
}

.guide-step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 0.95rem;
  top: 2.35rem;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, var(--border) 0%, rgba(229, 223, 214, 0.35) 100%);
}

.guide-step-mark {
  z-index: 1;
  width: 1.9rem;
  height: 1.9rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid #fed7aa;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
}

.guide-step-body {
  min-width: 0;
  padding-top: 0.08rem;
}

.guide-step-title {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.35;
}

.guide-step-desc {
  display: block;
  margin-top: 0.08rem;
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--muted);
}

.guide-notes {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.guide-note {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.62rem 0.68rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #faf8f5;
}

.guide-note p {
  margin: 0;
  font-size: 0.74rem;
  line-height: 1.5;
  color: #57534e;
}

.guide-note-icon {
  flex-shrink: 0;
  width: 1.55rem;
  height: 1.55rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #f0fdf4;
  color: var(--ok);
}

.guide-note--pro {
  border-color: #fed7aa;
  background: linear-gradient(180deg, #fffdfa 0%, #fff7ed 100%);
}

.guide-note--pro .guide-note-icon {
  background: var(--accent-soft);
  color: var(--accent);
}

.guide-links {
  display: flex;
  gap: 0.45rem;
}

.guide-link {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.42rem 0.65rem;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.guide-link:hover {
  border-color: #fdba74;
  color: var(--accent);
}

.guide-faq-link {
  margin: 0.65rem 0 0;
  font-size: 0.72rem;
  line-height: 1.45;
}

.guide-faq-link a {
  color: var(--muted);
  text-decoration: none;
}

.guide-faq-link a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* —— 侧栏校对结果 —— */
.side-pane--result {
  animation: progress-enter 0.35s ease;
}

#resultPanel .result-tabs-wrap {
  flex: 1;
  min-height: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

#resultPanel.is-tab-review .result-value-bill,
#resultPanel.is-tab-review .result-soft-register,
#resultPanel.is-tab-details .result-value-bill,
#resultPanel.is-tab-details .result-soft-register {
  display: none;
}

#resultPanel.is-tab-review .result-meta,
#resultPanel.is-tab-details .result-meta {
  margin-bottom: 0.35rem;
  padding-bottom: 0.35rem;
  font-size: 0.7rem;
}

.result-tabs {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.25rem;
  margin: 0 0.75rem;
  padding: 0.2rem;
  border-radius: 10px;
  background: #f5f3f0;
  border: 1px solid var(--border);
}

.result-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  min-width: 0;
  padding: 0.42rem 0.35rem;
  border: none;
  border-radius: 8px;
  background: transparent;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}

.result-tab > span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.result-tab.is-active {
  background: #fff;
  color: var(--text);
  box-shadow: 0 1px 4px rgba(26, 24, 22, 0.08);
}

.result-tab-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 0.28rem;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
}

.result-tab-badge[hidden] {
  display: none !important;
}

.result-tab-panels {
  flex: 1;
  min-height: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  margin-top: 0.35rem;
  border-top: 1px solid var(--border);
}

.result-tab-panel {
  display: none;
  flex: 1;
  min-height: 0;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
}

.result-tab-panel.is-active {
  display: flex;
}

.result-tab-panel-scroll {
  flex: 1;
  min-height: 0;
  min-width: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0.65rem 0.95rem 0.75rem;
  scrollbar-gutter: stable;
}

.result-tab-panel-scroll::-webkit-scrollbar {
  width: 6px;
}

.result-tab-panel-scroll::-webkit-scrollbar-thumb {
  background: #d6cec4;
  border-radius: 3px;
}

.result-meta {
  flex-shrink: 0;
  margin: 0;
  padding: 0 0.95rem 0.5rem;
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.45;
  border-bottom: 1px solid var(--border);
}

.result-tab-panel .btn-download {
  width: 100%;
  margin: 0.5rem 0 0.35rem;
}

.result-flow-hint {
  margin: 0 0 0.5rem;
  padding: 0.45rem 0.55rem;
  font-size: 0.68rem;
  line-height: 1.45;
  color: #57534e;
  background: #faf9f7;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.result-flow-hint[hidden] {
  display: none !important;
}

.result-flow-hint.is-actionable {
  cursor: pointer;
  color: #9a3412;
  background: #fff7ed;
  border-color: #fed7aa;
  transition: background 0.15s ease;
}

.result-flow-hint.is-actionable:hover {
  background: #ffedd5;
}

.result-flow-hint.is-actionable:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.result-tab--attention {
  color: var(--accent);
}

.result-tab--attention .result-tab-badge {
  animation: result-tab-pulse 1.2s ease-in-out infinite;
}

@keyframes result-tab-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

.btn-download {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: calc(100% - 1.9rem);
  margin: 0.75rem 0.95rem 0.65rem;
  padding: 0.72rem 0.85rem;
  border: none;
  border-radius: 11px;
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 50%, #9a3412 100%);
  box-shadow: 0 8px 22px rgba(194, 65, 12, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-download:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(194, 65, 12, 0.34);
}

.btn-ghost {
  padding: 0.45rem 0.7rem;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  font: inherit;
  cursor: pointer;
  border-radius: 10px;
  font-weight: 600;
}

.btn-ghost:hover {
  border-color: #d6d3d1;
  color: var(--text);
  background: #fff;
}

.workflow-quota {
  margin-bottom: 0.55rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #faf8f5;
}

.workflow-quota-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 600;
}

#workflowQuotaText {
  color: var(--text);
  font-weight: 700;
}

.workflow-quota-track {
  height: 0.35rem;
  border-radius: 999px;
  background: #ece8e1;
  overflow: hidden;
}

.workflow-quota-fill {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #fb923c 0%, #c2410c 100%);
  transition: width 0.25s ease;
}

.workflow-quota.is-low .workflow-quota-fill {
  background: linear-gradient(90deg, #fbbf24 0%, #b45309 100%);
}

.workflow-quota.is-empty .workflow-quota-fill {
  background: #d6d3d1;
}

.workflow-quota-hint {
  margin: 0.35rem 0 0;
  font-size: 0.72rem;
  line-height: 1.45;
  color: #b45309;
}

.workflow-quota-hint[hidden] {
  display: none !important;
}

.workflow-quota.is-warn .workflow-quota-fill {
  background: linear-gradient(90deg, #fdba74 0%, #ea580c 100%);
}

.workflow-quota.is-empty {
  cursor: pointer;
}

.result-value-bill {
  margin: 0 0.95rem 0.65rem;
  padding: 0.8rem 0.85rem;
  border-radius: 14px;
  border: 1px solid #bbf7d0;
  background: linear-gradient(165deg, #f0fdf4 0%, #fffbf7 55%, #fff 100%);
  box-shadow: 0 8px 22px rgba(34, 197, 94, 0.08);
}

.result-value-bill-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
}

.result-value-bill-kicker {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  color: #15803d;
  letter-spacing: 0.03em;
}

.result-value-bill-badge {
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: #dcfce7;
  color: #15803d;
  font-size: 0.58rem;
  font-weight: 700;
}

.result-value-bill-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
}

.result-value-bill-item {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  padding: 0.45rem 0.35rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(187, 247, 208, 0.65);
  font-size: 0.64rem;
  color: #78716c;
  line-height: 1.35;
  text-align: center;
}

.result-value-bill-item--hero {
  border-color: #86efac;
  background: #fff;
}

.result-value-bill-item strong {
  font-size: 1.15rem;
  color: #1c1917;
  font-weight: 800;
  line-height: 1.1;
}

.result-value-bill-item--hero strong {
  color: #15803d;
}

.result-value-bill-total {
  margin-top: 0.55rem;
  padding-top: 0.55rem;
  border-top: 1px dashed rgba(187, 247, 208, 0.85);
}

.result-value-bill-total-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.35rem;
  font-size: 0.74rem;
  color: #57534e;
}

.result-value-bill-total-row strong {
  font-size: 1.05rem;
  font-weight: 800;
  color: #15803d;
}

.result-value-bill-total-meta {
  margin: 0.25rem 0 0;
  font-size: 0.66rem;
  color: #a8a29e;
}

.result-value-bill-compare {
  margin-top: 0.55rem;
  padding: 0.55rem 0.6rem;
  border-radius: 10px;
  border: 1px solid #fed7aa;
  background: linear-gradient(180deg, #fffbf7 0%, #fff 100%);
}

.result-value-bill-compare-text {
  margin: 0 0 0.45rem;
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.5;
  color: #9a3412;
}

.result-value-bill-actions {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.result-value-bill-cta {
  width: 100%;
  padding: 0.42rem 0.65rem;
  border: none;
  border-radius: 999px;
  background: linear-gradient(180deg, #fb923c 0%, #ea580c 100%);
  color: #fff;
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(234, 88, 12, 0.18);
}

.result-value-bill-cta--ghost {
  background: #fff;
  color: #c2410c;
  border: 1px solid #fed7aa;
  box-shadow: none;
}

.result-value-bill-meta {
  margin: 0.45rem 0 0;
  padding-top: 0.4rem;
  border-top: 1px solid rgba(187, 247, 208, 0.65);
  font-size: 0.72rem;
  font-weight: 600;
  color: #57534e;
  line-height: 1.4;
}

.result-value-bill-meta[hidden],
.result-value-bill-total[hidden],
.result-value-bill-compare[hidden],
.result-value-bill-badge[hidden] {
  display: none !important;
}

.quota-upgrade-workflow {
  counter-reset: workflow-step;
  margin: 0 0 0.85rem;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.quota-upgrade-workflow li {
  position: relative;
  padding: 0.45rem 0.5rem 0.45rem 1.85rem;
  border-radius: 10px;
  border: 1px solid #fed7aa;
  background: #fffbf7;
  font-size: 0.74rem;
  line-height: 1.45;
  color: #57534e;
}

.quota-upgrade-workflow li::before {
  content: counter(workflow-step);
  counter-increment: workflow-step;
  position: absolute;
  left: 0.45rem;
  top: 0.45rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 999px;
  background: #ffedd5;
  color: #c2410c;
  font-size: 0.62rem;
  font-weight: 800;
}

.quota-upgrade-annual:not(.is-coming-soon) {
  border-color: #fed7aa;
  color: #c2410c;
  font-weight: 700;
}

.result-soft-register {
  margin: 0 0.95rem 0.65rem;
  padding: 0.7rem 0.75rem;
  border-radius: 11px;
  border: 1px solid #fed7aa;
  background: linear-gradient(180deg, #fffdfa 0%, #fff7ed 100%);
}

.result-soft-register-copy strong {
  display: block;
  margin-bottom: 0.15rem;
  font-size: 0.8rem;
}

.result-soft-register-copy p {
  margin: 0;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.45;
}

.result-soft-register-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.4rem;
  margin-top: 0.55rem;
}

.result-soft-register-btn {
  width: auto;
  padding: 0.42rem 0.75rem;
  font-size: 0.76rem;
}

.site-modal-card--compact {
  max-width: 22rem;
}

.cancel-proofread-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
  margin-top: 1rem;
}

.btn-cancel-proofread-confirm {
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  border: 1px solid #fca5a5;
  background: #fef2f2;
  color: #b91c1c;
  cursor: pointer;
}

.btn-cancel-proofread-confirm:hover {
  background: #fee2e2;
  border-color: #f87171;
}

.site-modal-card--upgrade {
  width: min(100%, 26rem);
}

.quota-upgrade-title {
  margin: 0 1.75rem 0.35rem 0;
  font-size: 1.05rem;
  font-weight: 800;
}

.quota-upgrade-lead {
  margin: 0 0 0.85rem;
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--muted);
}

.quota-upgrade-stats {
  margin-bottom: 0.75rem;
  padding: 0.65rem 0.7rem;
  border-radius: 10px;
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
  font-size: 0.76rem;
  line-height: 1.55;
  color: #166534;
}

.quota-upgrade-perks {
  margin: 0 0 0.85rem;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.quota-upgrade-perks li {
  position: relative;
  padding-left: 1rem;
  font-size: 0.76rem;
  line-height: 1.45;
  color: #57534e;
}

.quota-upgrade-perks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 800;
}

.quota-upgrade-actions {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.quota-upgrade-pro {
  width: 100%;
}

.quota-upgrade-login,
.quota-upgrade-later {
  width: 100%;
  text-align: center;
}

.result-stats {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.35rem;
  padding: 0 0.95rem 0.7rem;
}

.result-stats--side .stat-card {
  padding: 0.45rem 0.25rem;
}

.result-stats--side .stat-card-value {
  font-size: 1.05rem;
}

.result-stats--side .stat-card-label {
  font-size: 0.62rem;
}

.stat-card {
  text-align: center;
  padding: 0.55rem 0.35rem;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--border);
}

.stat-card--accent {
  border-color: rgba(253, 186, 116, 0.6);
  background: linear-gradient(180deg, #fffdfa 0%, #fff7ed 100%);
}

.stat-card-value {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.stat-card--accent .stat-card-value {
  color: var(--accent);
}

.stat-card-label {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.68rem;
  color: var(--muted);
  font-weight: 500;
}

.result-tab-panel .timing-summary {
  margin: 0 0 0.5rem;
}

.convert-strip {
  margin-top: 0.35rem;
  padding: 0.5rem 0.55rem;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: #faf9f7;
}

.convert-strip-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
}

.convert-strip-head {
  margin-bottom: 0.4rem;
}

.convert-strip-lanes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
}

.convert-strip-lanes .convert-lane {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.convert-strip-lanes .convert-dl-chip {
  width: 100%;
}

.convert-strip-lanes .convert-lane-meta {
  margin: 0;
}

.convert-strip-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
}

.convert-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.05rem;
  padding: 0.4rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: border-color 0.15s, background 0.15s;
}

.convert-chip:hover:not(:disabled) {
  border-color: rgba(253, 186, 116, 0.85);
  background: var(--accent-soft);
}

.convert-chip:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.convert-chip-icon {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--accent);
}

.convert-chip-text {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text);
}

.convert-chip-sub {
  font-size: 0.6rem;
  color: var(--muted);
}

.convert-chip.is-pro .convert-chip-sub {
  color: var(--ok);
}

.convert-strip-dls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.3rem;
  margin-top: 0.35rem;
}

.convert-dl-chip {
  padding: 0.32rem 0.4rem;
  border: 1px dashed var(--border);
  border-radius: 7px;
  background: #fff;
  font: inherit;
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}

.convert-dl-chip:not(:disabled) {
  color: #1d4ed8;
  border-color: #bfdbfe;
}

.convert-dl-chip:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.convert-strip .convert-lane-meta {
  margin: 0.25rem 0 0;
  font-size: 0.62rem;
}

.convert-strip .convert-progress {
  margin-top: 0.4rem;
}

.review-lead {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--muted);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.review-empty {
  margin: 0.5rem 0;
  padding: 0.65rem;
  font-size: 0.76rem;
  color: var(--muted);
  text-align: center;
  background: #faf9f7;
  border-radius: 9px;
  border: 1px dashed var(--border);
}

.review-empty[hidden] {
  display: none !important;
}

.review-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.review-item .change-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  margin-bottom: 0.4rem;
}

.review-item .change-meta > span:first-child {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.35;
  word-break: break-all;
}

.review-flag {
  font-size: 0.62rem;
  font-weight: 600;
  color: #b45309;
  padding: 0.15rem 0.4rem;
  border-radius: 999px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  max-width: 100%;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}

.review-subtitle {
  margin: 0.75rem 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.glossary-suggest--result .glossary-suggest-lead {
  font-size: 0.66rem;
}

.changes-subtitle {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
}

.result-tab-panel-scroll .manual-edits-hint {
  margin: 0 0 0.45rem;
  font-size: 0.68rem;
  color: var(--ok);
}

.result-side-foot {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  padding: 0.65rem 0.95rem 0.85rem;
  border-top: 1px solid var(--border);
  background: rgba(255, 253, 250, 0.92);
}

.btn-side-foot {
  width: 100%;
  padding: 0.45rem 0.5rem;
  font-size: 0.72rem;
  text-align: center;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 0.5rem;
  margin-bottom: 0.5rem;
}

.section-head h3 {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
}

.changes-count {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: var(--accent-soft);
}

.result-banner {
  margin-bottom: 0.65rem;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #1e40af;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 1px solid #bfdbfe;
}

.result-banner .banner-note {
  display: block;
  margin-top: 0.2rem;
  color: #3b82f6;
  font-size: 0.72rem;
}

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

.convert-block {
  margin-bottom: 0.75rem;
  padding: 0.65rem;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(26, 24, 22, 0.04);
}

.convert-block--side .section-head {
  margin-bottom: 0.35rem;
}

.convert-block--compact {
  padding: 0.45rem 0.5rem;
  border-radius: 9px;
  box-shadow: none;
  background: #faf9f7;
}

.convert-block--compact .section-head--compact h3 {
  font-size: 0.8rem;
}

.convert-block--compact .convert-lanes {
  gap: 0.35rem;
}

.convert-block--compact .btn-convert {
  padding: 0.45rem 0.5rem;
  gap: 0.4rem;
}

.convert-block--compact .btn-convert-icon {
  width: 1.65rem;
  height: 1.65rem;
  font-size: 0.66rem;
}

.convert-block--compact .btn-convert-title {
  font-size: 0.76rem;
}

.convert-block--compact .btn-convert-sub {
  font-size: 0.62rem;
}

.convert-block--compact .btn-convert-download {
  padding: 0.32rem 0.4rem;
  font-size: 0.68rem;
}

.convert-strip .quota-line--side,
.convert-strip .member-tip--side {
  display: none !important;
}

.convert-lanes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}

.convert-lane {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.quota-line {
  margin: 0 0 0.55rem;
  font-size: 0.64rem;
  color: #1d4ed8;
  line-height: 1.2;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.convert-lane .btn-convert {
  width: 100%;
}

.btn-convert {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #faf9f7;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.btn-convert:hover:not(:disabled) {
  border-color: rgba(253, 186, 116, 0.8);
  background: var(--accent-soft);
  box-shadow: 0 4px 12px rgba(194, 65, 12, 0.08);
}

.btn-convert:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-convert-icon {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--border);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
}

.btn-convert-body {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  min-width: 0;
}

.btn-convert-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
}

.btn-convert-sub {
  font-size: 0.68rem;
  color: var(--muted);
}

.btn-convert.is-pro .btn-convert-sub {
  color: var(--ok);
}

.convert-progress {
  margin-top: 0.55rem;
  padding: 0.55rem 0.6rem;
  border-radius: 9px;
  background: linear-gradient(165deg, #f8fafc 0%, #eff6ff 100%);
  border: 1px solid rgba(147, 197, 253, 0.55);
  animation: progress-enter 0.3s ease;
}

.convert-progress[hidden] {
  display: none !important;
}

.convert-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.convert-progress-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.convert-progress-pct {
  flex-shrink: 0;
  font-size: 0.82rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #1d4ed8;
}

.convert-progress-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(147, 197, 253, 0.4);
  overflow: hidden;
}

.convert-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #60a5fa 0%, #2563eb 55%, #1d4ed8 100%);
  transition: width 0.4s ease;
}

.convert-progress-sub {
  margin: 0.35rem 0 0;
  font-size: 0.68rem;
  color: var(--muted);
  line-height: 1.35;
}

.btn-convert-download {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  width: 100%;
  padding: 0.45rem 0.4rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f5f5f4;
  color: #a8a29e;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: not-allowed;
  transition: background 0.15s, box-shadow 0.15s, border-color 0.15s, color 0.15s;
}

.btn-convert-download:disabled {
  opacity: 0.85;
}

.btn-convert-download.is-ready {
  border-color: rgba(37, 99, 235, 0.35);
  background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
  color: #1e40af;
  cursor: pointer;
}

.btn-convert-download.is-ready:hover:not(:disabled) {
  background: linear-gradient(180deg, #dbeafe 0%, #bfdbfe 100%);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12);
}

.convert-lane-meta {
  margin: 0;
  font-size: 0.6rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.3;
  word-break: break-all;
}

.convert-lane-meta[hidden] {
  display: none !important;
}

.member-tip {
  margin: 0.45rem 0 0;
  font-size: 0.68rem;
  color: var(--muted);
  line-height: 1.4;
}

.changes-section {
  margin-bottom: 0.75rem;
}

.changes-section--side {
  margin-bottom: 0.5rem;
}

.changes-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.panel-result .changes-list {
  max-height: none;
  overflow: visible;
}

.change-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.55rem 0.65rem;
  margin-bottom: 0.45rem;
  font-size: 0.8rem;
  background: #fff;
}

.change-meta {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.change-before {
  display: block;
  background: #fef2f2;
  text-decoration: line-through;
  color: #991b1b;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  margin-bottom: 0.3rem;
  line-height: 1.4;
}

.change-after {
  display: block;
  background: #f0fdf4;
  color: #166534;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  line-height: 1.4;
}

.change-after-input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  background: #f0fdf4;
  color: #166534;
  padding: 0.35rem 0.5rem;
  border: 1px solid #86efac;
  border-radius: 6px;
  font: inherit;
  font-size: 0.8rem;
  line-height: 1.4;
}

.change-after-input:focus {
  outline: 2px solid #4ade80;
  outline-offset: 1px;
  border-color: #22c55e;
}

.change-item--manual .change-after-input {
  border-color: #f59e0b;
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.25);
}

.changes-edit-hint {
  margin: 0 0 0.45rem;
  font-size: 0.66rem;
  line-height: 1.4;
  color: #166534;
}

.changes-edit-hint[hidden] {
  display: none !important;
}

.empty-changes {
  padding: 1rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
  background: #faf9f7;
  border-radius: 10px;
  border: 1px dashed var(--border);
}

.timing-changes-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.78rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.timing-changes-list li {
  padding: 0.45rem 0.65rem;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
}

.timing-changes-list li:last-child {
  border-bottom: none;
}

#timingChangesWrap[hidden] {
  display: none !important;
}

@media (max-width: 520px) {
  .result-stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* —— 右下角在线沟通 —— */
.support-fab {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right, 0px));
  bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  z-index: 95;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.65rem;
}

.support-fab[hidden] {
  display: none !important;
}

.support-fab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.62rem 0.95rem 0.62rem 0.78rem;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  color: #fff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(194, 65, 12, 0.32);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.support-fab-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow: 0 12px 28px rgba(194, 65, 12, 0.36);
}

.support-fab-label {
  line-height: 1;
}

.support-panel {
  width: min(18.5rem, calc(100vw - 2rem));
  padding: 0.95rem 1rem 1rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #fffdfa;
  box-shadow: 0 16px 40px rgba(26, 24, 22, 0.14);
  animation: progress-enter 0.2s ease;
}

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

.support-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

.support-panel-title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.support-panel-close {
  width: 1.75rem;
  height: 1.75rem;
  border: none;
  border-radius: 999px;
  background: #f5f5f4;
  color: #78716c;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.support-panel-close:hover {
  color: var(--text);
  background: #eceae7;
}

.support-panel-lead {
  margin: 0 0 0.75rem;
  font-size: 0.76rem;
  line-height: 1.55;
  color: var(--muted);
}

.support-panel-wechat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
  padding: 0.75rem;
  border-radius: 12px;
  background: #fafaf9;
  border: 1px solid #efe9e1;
}

.support-panel-qr {
  display: block;
  width: 10.5rem;
  height: 10.5rem;
  border-radius: 10px;
  object-fit: contain;
  background: #fff;
}

.support-panel-hint {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.45;
  color: #57534e;
  text-align: center;
}

.support-panel-actions {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.support-panel-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.58rem 0.85rem;
  border-radius: 10px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: filter 0.15s ease, background 0.15s ease;
}

.support-panel-btn--primary {
  border: none;
  color: #fff;
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
}

.support-panel-btn--primary:hover {
  filter: brightness(1.04);
}

.support-panel-btn--ghost {
  border: 1px solid var(--border);
  color: var(--text);
  background: #fff;
}

.support-panel-btn--ghost:hover {
  border-color: #d6d3d1;
  background: #fafaf9;
}

@media (max-width: 520px) {
  .support-fab-label {
    display: none;
  }

  .support-fab-btn {
    width: 3rem;
    height: 3rem;
    padding: 0;
    justify-content: center;
    border-radius: 999px;
  }
}

/* —— 校对进行中全屏 —— */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.overlay[hidden] {
  display: none !important;
}

.overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 24, 22, 0.42);
  backdrop-filter: blur(8px);
}

.overlay-card {
  position: relative;
  z-index: 1;
  width: min(100%, 380px);
  padding: 1.75rem 1.5rem 1.5rem;
  text-align: center;
  background: #fffdfa;
  border-radius: 20px;
  border: 1px solid rgba(229, 223, 214, 0.9);
  box-shadow:
    0 24px 64px rgba(26, 24, 22, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.6) inset;
}

.overlay-visual {
  position: relative;
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto 1.1rem;
}

.overlay-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid #ffedd5;
  border-top-color: var(--accent);
  animation: overlay-spin 0.9s linear infinite;
}

.overlay-logo {
  position: absolute;
  inset: 0.65rem;
  width: calc(100% - 1.3rem);
  height: calc(100% - 1.3rem);
  margin: auto;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(194, 65, 12, 0.35);
}

.overlay-mark {
  position: absolute;
  inset: 0.65rem;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  color: #fff;
  font-size: 1.35rem;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(194, 65, 12, 0.35);
}

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

.overlay-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
}

.overlay-sub {
  margin: 0.45rem 0 1rem;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
}

.overlay-steps {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-align: left;
}

.overlay-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--muted);
  padding: 0.4rem 0.55rem;
  border-radius: 8px;
  background: #faf9f7;
}

.overlay-step::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d6d3d1;
  flex-shrink: 0;
}

.overlay-step.is-active {
  color: #9a3412;
  background: var(--accent-soft);
  font-weight: 600;
}

.overlay-step.is-active::before {
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(194, 65, 12, 0.2);
  animation: hint-pulse 1.2s ease-in-out infinite;
}

.overlay-step.is-done {
  color: var(--ok);
}

.overlay-step.is-done::before {
  background: var(--ok);
}

.overlay-foot {
  margin: 0;
  font-size: 0.72rem;
  color: var(--muted);
}

body.is-proofreading {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .overlay-ring,
  .overlay-step.is-active::before {
    animation: none !important;
  }
}

.toast {
  position: fixed;
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: #fff;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  font-size: 0.82rem;
  z-index: 200;
  max-width: 92vw;
}

@media (max-width: 860px) {
  .toast {
    bottom: calc(var(--actions-h) + 0.75rem);
  }
}

.toast[hidden] {
  display: none;
}
