/* 白/浅/黑 三主题，高对比 */
:root,
[data-theme="light"] {
  --site-bg: #e8e8e8;
  --site-text: #0a0a0a;
  --site-text-muted: #1a1a1a;
  --site-header-bg: #ffffff;
  --site-header-text: #0a0a0a;
  --site-header-muted: #333333;
  --site-border: #c5c5c5;
  --site-card-bg: #ffffff;
  --site-card-border: #d0d0d0;
  --site-link: #0d47a1;
  --site-link-hover: #1565c0;
  --site-footer-text: #1a1a1a;
  --site-footer-border: #c5c5c5;
  --site-btn-primary-bg: #0d47a1;
  --site-btn-primary-text: #ffffff;
  --site-btn-ghost-border: #b0b0b0;
  --site-btn-ghost-text: #0a0a0a;
}
[data-theme="white"] {
  --site-bg: #ffffff;
  --site-text: #0a0a0a;
  --site-text-muted: #1a1a1a;
  --site-header-bg: #ffffff;
  --site-header-text: #0a0a0a;
  --site-header-muted: #333333;
  --site-border: #d0d0d0;
  --site-card-bg: #ffffff;
  --site-card-border: #e0e0e0;
  --site-link: #0d47a1;
  --site-link-hover: #1565c0;
  --site-footer-text: #1a1a1a;
  --site-footer-border: #d0d0d0;
  --site-btn-primary-bg: #0d47a1;
  --site-btn-primary-text: #ffffff;
  --site-btn-ghost-border: #b0b0b0;
  --site-btn-ghost-text: #0a0a0a;
}
[data-theme="dark"] {
  --site-bg: #0d0d0d;
  --site-text: #f5f5f5;
  --site-text-muted: #ffffff;
  --site-header-bg: #1a1a1a;
  --site-header-text: #f5f5f5;
  --site-header-muted: #ffffff;
  --site-border: #444444;
  --site-card-bg: #1a1a1a;
  --site-card-border: #404040;
  --site-link: #64b5f6;
  --site-link-hover: #90caf9;
  --site-footer-text: #ffffff;
  --site-footer-border: #444444;
  --site-btn-primary-bg: #1565c0;
  --site-btn-primary-text: #ffffff;
  --site-btn-ghost-border: #505050;
  --site-btn-ghost-text: #f5f5f5;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* 移动端与多浏览器适配：基础 */
html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--site-text);
  background: var(--site-bg);
  line-height: 1.6;
  /* 安全区域：刘海屏/横屏 */
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1100px, 92%);
  max-width: 100%;
  margin: 0 auto;
  padding-left: 4vw;
  padding-right: 4vw;
}

.site-header {
  background: var(--site-header-bg);
  border-bottom: 1px solid var(--site-border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}
.brand:hover {
  color: inherit;
  opacity: 0.9;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #3b82f6, #10b981);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
}

.brand-logo-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  display: block;
  /* 无背景无边框，使用 logo.ico 透明图，避免白圈 */
}

.brand-title {
  font-weight: 700;
  font-size: 18px;
}

.brand-subtitle {
  font-size: 12px;
  color: var(--site-text-muted);
}

.header-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-left: auto;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 16px;
}
.nav a {
  margin-left: 0;
  color: var(--site-header-text);
  font-weight: 500;
  padding: 6px 4px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

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

.theme-switch {
  margin-left: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.theme-switch span {
  font-size: 12px;
  color: var(--site-header-muted);
  margin-right: 4px;
}
.theme-switch button {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 2px solid var(--site-border);
  cursor: pointer;
  font-size: 11px;
  padding: 0;
  line-height: 1;
}
.theme-switch button.active {
  font-weight: 700;
  background: var(--site-link);
  color: var(--site-btn-primary-text);
  border-color: var(--site-link);
}
.theme-switch button[data-theme="white"] { background: #fff; color: #0a0a0a; }
.theme-switch button[data-theme="light"] { background: #e8e8e8; color: #0a0a0a; }
.theme-switch button[data-theme="dark"] { background: #1a1a1a; color: #f5f5f5; }

.lang-switch {
  margin-left: 12px;
}

.lang-switch select {
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid var(--site-border);
  background: var(--site-card-bg);
  color: var(--site-text);
  font-size: 12px;
  line-height: 1.45;
  min-height: 32px;
  height: auto;
  box-sizing: border-box;
}

.auth-links {
  margin-left: 12px;
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  color: var(--site-header-muted);
}

.auth-links a {
  color: var(--site-header-muted);
}

.auth-links a:hover {
  color: var(--site-link-hover);
}

.user-menu-wrap {
  position: relative;
}
.user-menu-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--site-header-muted);
  cursor: pointer;
}
.user-menu-trigger:hover {
  background: var(--site-border);
  color: var(--site-header-text);
}
.user-icon {
  flex-shrink: 0;
}
.user-menu-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 4px;
  min-width: 180px;
  padding: 6px 0;
  background: var(--site-card-bg);
  border: 1px solid var(--site-border);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 20;
}
.user-menu-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--site-text);
}
.user-menu-dropdown a:hover {
  background: var(--site-border);
  color: var(--site-link-hover);
}
.user-menu-dropdown .menu-icon {
  flex-shrink: 0;
  opacity: 0.85;
}
.user-menu-logout-form {
  margin: 0;
  padding: 0;
  border: 0;
}
.user-menu-logout-form button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--site-text);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}
.user-menu-logout-form button:hover {
  background: var(--site-border);
  color: var(--site-link-hover);
}

.site-footer {
  margin-top: 48px;
  padding: 24px 0;
  color: var(--site-footer-text);
  border-top: 1px solid var(--site-footer-border);
}

.footer-links {
  margin-top: 8px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--site-footer-text);
  font-size: 13px;
}

.footer-links a:hover {
  color: var(--site-link-hover);
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin: 32px 0 24px;
}

.hero--single {
  display: block;
}

.hero--two-col {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 0 32px;
  align-items: start;
}

.hero-head {
  grid-column: 1 / -1;
  grid-row: 1;
  width: 100%;
}

.hero-main {
  grid-column: 1;
  grid-row: 2;
  margin-top: 20px;
}

.hero-stats {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  min-width: 200px;
}

.hero-stats .stat-card {
  margin: 0;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 0;
}

@media (max-width: 768px) {
  .hero--two-col {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }
  .hero-head {
    grid-row: 1;
  }
  .hero-main {
    grid-row: 2;
  }
  .hero-stats {
    grid-column: 1;
    grid-row: 3;
    min-width: 0;
    max-width: 280px;
    margin: 24px auto 0;
  }
}

.hero-head h1,
.hero-content h1 {
  margin: 0 0 12px;
  font-size: 32px;
  width: 100%;
  max-width: 100%;
}

.hero-head .hero-subtitle {
  width: 100%;
  max-width: 100%;
}

.hero-subtitle {
  margin: 0 0 20px;
  color: var(--site-text);
  line-height: 1.6;
}

.hero-subtitle p {
  margin: 0 0 0.5em;
}

.hero-subtitle p:last-child {
  margin-bottom: 0;
}

.hero-scope {
  margin: 0 0 24px;
  padding: 0;
  border: none;
  background: none;
  box-shadow: none;
}

.hero-scope-title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
  color: var(--site-text);
}

.hero-scope .checklist {
  margin: 8px 0 0;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.why-cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.why-cta-question {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--site-text);
}
.why-cta-row .btn {
  flex-shrink: 0;
}

.hero-card,
.card,
.form-card {
  background: var(--site-card-bg);
  border-radius: 16px;
  padding: 20px;
  border: 1px solid var(--site-card-border);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

.hero-card-welcome {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--site-card-border);
}
.hero-card-welcome-title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
}
.hero-card-welcome-desc {
  margin: 0;
  font-size: 14px;
  color: var(--site-text-muted);
}

.card-title {
  font-weight: 600;
  margin-bottom: 8px;
}

.card-title .card-icon,
.security-card .card-title .card-icon {
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
}
.text-muted {
  color: var(--site-text-muted);
  font-size: 13px;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}

.checklist li::before {
  content: "✓";
  color: #10b981;
  margin-right: 8px;
}

.section {
  margin: 32px 0;
}

/* 标准恢复流程、支持的钱包等区块与上方内容的分隔（淡化线条，避免与说明框叠成厚重感） */
.process-steps-section,
.section--with-separator {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--site-border);
}

.process-steps-section {
  padding-bottom: 8px;
}


.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.step {
  background: var(--site-card-bg);
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--site-card-border);
  text-align: center;
  cursor: pointer;
  font-weight: 500;
  color: var(--site-text);
  transition: border-color 0.2s, background 0.2s;
}

.step:hover {
  border-color: var(--site-link);
}

.step.active {
  border-color: var(--site-link);
  background: rgba(13, 71, 161, 0.08);
  color: var(--site-link);
}

[data-theme="dark"] .step.active {
  background: rgba(100, 181, 246, 0.12);
}

.steps-desc {
  margin-top: 16px;
  min-height: 4.5em;
  padding: 14px 16px 14px 20px;
  border-radius: 0 10px 10px 0;
  border-left: 4px solid var(--site-link);
  background: rgba(13, 71, 161, 0.06);
  box-shadow: none;
}

[data-theme="dark"] .steps-desc {
  background: rgba(100, 181, 246, 0.08);
  border-left-color: var(--site-link);
}

.steps-desc-text {
  margin: 0;
  font-size: 14px;
  color: var(--site-text-muted);
  line-height: 1.6;
  white-space: pre-line;
}

.page-header {
  margin: 24px 0 16px;
}

.form-section {
  margin-bottom: 24px;
}

.form-section:last-of-type {
  margin-bottom: 0;
}

.form-section-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--site-text);
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--site-border);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

/* 以资产类型选择框宽度为准：资产与金额、钱包信息统一三列，单列宽度一致 */
.grid-fixed-cols,
.grid-wallet {
  grid-template-columns: repeat(3, 1fr);
  align-items: start;
}

/* 咨询页首行：主题 / 邮箱 / 手机号三列，标签略短以省横向空间 */
.consult-basic-row .field > label {
  font-size: 13px;
  line-height: 1.25;
  font-weight: 600;
}

/* 钱包信息：手机品牌/型号/版本号始终同一行 */
.grid-wallet .phone-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.checkbox-row {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  align-items: center;
}

.form-card .grid.form-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 560px) {
  .grid-fixed-cols,
  .grid-wallet {
    grid-template-columns: 1fr;
  }
  .grid-wallet .phone-row {
    grid-template-columns: 1fr;
  }
  .form-card .grid.form-grid-2 {
    grid-template-columns: 1fr;
  }
}

/* 移动端：顶栏紧凑、触控区域 */
@media (max-width: 768px) {
  .header-inner {
    padding: 10px 0;
  }
  .brand-text .brand-title {
    font-size: 16px;
  }
  .brand-text .brand-subtitle {
    font-size: 11px;
  }
  .brand-logo-img {
    width: 40px;
    height: 40px;
  }
  .nav a {
    font-size: 14px;
  }
  .theme-switch button {
    min-width: 44px;
    min-height: 44px;
  }
  .user-menu-trigger {
    min-width: 44px;
    min-height: 44px;
  }
  .auth-links a {
    padding: 8px 4px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .container {
    padding-left: 4vw;
    padding-right: 4vw;
  }
  .hero-content h1 {
    font-size: 26px;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .file-input-fake {
    min-height: 48px;
  }
  .file-input-wrap .file-input {
    min-height: 48px;
  }
}

@media (max-width: 480px) {
  .container {
    width: 100%;
    padding-left: 16px;
    padding-right: 16px;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .form-actions .btn {
    width: 100%;
  }
  .why-cta-row {
    flex-direction: column;
    align-items: stretch;
  }
  .why-cta-row .btn {
    align-self: flex-end;
  }
  .lang-switch select {
    min-height: 44px;
    font-size: 16px; /* 防止 iOS 聚焦时放大 */
  }
  .field input:not([type="checkbox"]),
  .field select,
  .field textarea {
    font-size: 16px; /* 防止 iOS 聚焦时放大 */
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: var(--site-text);
}

.field.full {
  grid-column: 1 / -1;
}

.field.span-2 {
  grid-column: span 2;
}

/* 必填项：标签淡红色标明 */
.form-card .field.required > label,
.form-card .field.required > .field-label {
  color: #c53030;
}

.field input,
.field textarea,
.field select {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--site-border);
  font-size: 14px;
  line-height: 1.5;
  box-sizing: border-box;
  background: var(--site-card-bg);
  color: var(--site-text);
}

.field input:not([type="checkbox"]),
.field select {
  min-height: 44px;
}

.field textarea {
  min-height: auto;
  line-height: 1.55;
}

/*
 * 下拉选择框（select）与输入选择框（input+datalist）均为原生控件。
 * 使用 min-height + line-height，避免固定 height 与 padding 挤扁文字（尤其中文）。
 * select 用自定义箭头；input+list 不画箭头，避免与浏览器自带的 datalist 箭头重复成两个。
 */
.field select,
.field input.input-combo {
  height: auto;
  min-height: 44px;
  padding-top: 10px;
  padding-bottom: 10px;
  padding-left: 12px;
  text-align: left;
  background-color: var(--site-card-bg);
}

.field select {
  padding-right: 36px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

/* 输入选择框（datalist）不画箭头，只保留浏览器自带的候选提示 */
.field input.input-combo {
  padding-right: 12px;
}

.field select option {
  text-align: left;
}

.field.checkbox {
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.other-field {
  display: none;
}

.field-label {
  font-size: 14px;
  color: #374151;
  margin-bottom: 6px;
}

/* 自定义文件选择：隐藏原生 input，显示可翻译的按钮与状态 */
.file-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 42px;
}
.file-input-wrap .file-input {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  font-size: 0;
  padding: 0;
  margin: 0;
  min-height: 0;
}
.file-input-fake {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 8px 12px;
  min-height: 42px;
  border: 1px solid var(--site-border);
  border-radius: 10px;
  background: var(--site-card-bg);
  color: var(--site-text);
  font-size: 14px;
  box-sizing: border-box;
  width: 100%;
}
.file-input-btn {
  padding: 6px 14px;
  border-radius: 8px;
  background: var(--site-btn-primary-bg);
  color: var(--site-btn-primary-text);
  font-weight: 500;
  pointer-events: none;
}
.file-input-status {
  color: var(--site-text-muted);
}
.file-input {
  padding: 8px 0;
}

/* 区块链多选：标签 + 下拉输入框 */
.multi-combo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 6px 0;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding-left: 12px;
  padding-right: 12px;
  background: #fff;
  box-sizing: border-box;
}
.multi-combo-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.multi-combo-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  font-size: 13px;
  background: #e5e7eb;
  border-radius: 6px;
  color: #374151;
}
.multi-combo-chip-remove {
  padding: 0;
  margin: 0;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  color: #6b7280;
}
.multi-combo-chip-remove:hover {
  color: #111;
}
.multi-combo-input {
  flex: 1;
  min-width: 120px;
  border: none;
  outline: none;
  padding: 6px 8px;
  font-size: 14px;
  background: transparent;
}
.multi-combo-input.input-combo {
  height: auto;
  min-height: 28px;
  padding-right: 8px;
  background: transparent;
  background-image: none;
}

.help {
  color: #6b7280;
  font-size: 12px;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 16px;
}

.hint {
  color: #6b7280;
  font-size: 13px;
}

.btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--site-btn-primary-bg);
  color: var(--site-btn-primary-text);
  border-color: var(--site-btn-primary-bg);
}

.btn-ghost {
  background: var(--site-card-bg);
  border-color: var(--site-btn-ghost-border);
  color: var(--site-btn-ghost-text);
}

.alert {
  padding: 10px 12px;
  border-radius: 10px;
  margin: 12px 0;
}

.alert-error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.card-list {
  display: grid;
  gap: 16px;
}

/* 文章/案例列表：封面 + 标题 + 摘要，每行 3 个（每个占三分之一宽度） */
.content-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.content-card {
  margin: 0;
  padding: 0;
  border-radius: 12px;
  border: 1px solid var(--site-card-border);
  background: var(--site-card-bg);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}
.content-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.content-card-cover {
  aspect-ratio: 16/10;
  background: var(--site-border);
  overflow: hidden;
}
.content-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.content-card-cover-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--site-border) 0%, var(--site-card-border) 100%);
}
.content-card-body {
  padding: 14px 16px;
}
.content-card-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--site-text);
  line-height: 1.35;
}
.content-card-summary {
  font-size: 14px;
  color: var(--site-text-muted);
  margin: 0;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.content-card-meta {
  padding: 0 16px 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
/* 文章列表底部：分类与标签统一为小徽章样式 */
.content-card-meta .badge {
  margin-top: 0;
}
.content-card-meta .tag {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  background: var(--site-border);
  color: var(--site-text);
}
.badge-case {
  background: #dbeafe;
  color: #1e40af;
}
@media (max-width: 900px) {
  .content-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 500px) {
  .content-card-grid {
    grid-template-columns: 1fr;
  }
}

.card-actions {
  margin-top: 10px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.stat-card {
  background: var(--site-card-bg);
  border-radius: 14px;
  padding: 16px;
  border: 1px solid var(--site-card-border);
  text-align: center;
}

.stat-number {
  font-size: 24px;
  font-weight: 700;
  color: var(--site-link);
}

.stat-label {
  color: var(--site-text-muted);
  font-size: 13px;
}

/* Supported Wallets：参考 Why Choose Us 下方卡片样式，多列网格、圆角白底、标题+描述 */
.wallet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.wallet-grid .card {
  margin: 0;
  padding: 18px;
  border-radius: 12px;
  border: 1px solid var(--site-card-border);
  background: var(--site-card-bg);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.wallet-grid .card-title {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 10px;
  color: var(--site-text);
}
.wallet-grid .card-text {
  font-size: 14px;
  color: var(--site-text-muted);
  margin: 0;
  line-height: 1.5;
}
.why-desc {
  margin: 0 0 16px;
  color: var(--site-text-muted);
  line-height: 1.6;
}
.why-core-services {
  margin-top: 16px;
  gap: 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 768px) {
  .why-core-services {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .why-core-services {
    grid-template-columns: 1fr;
  }
}
.card .card-inner {
  box-shadow: none;
  border: 1px solid var(--site-card-border);
  padding: 14px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

/* Why Choose Us 强制一行三列，覆盖 .services-grid（选择器优先级更高） */
#why-choose-us .why-core-services {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 768px) {
  #why-choose-us .why-core-services {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  #why-choose-us .why-core-services {
    grid-template-columns: 1fr;
  }
}

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

.search-bar {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}

.search-bar input {
  flex: 1;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--site-border);
  background: var(--site-card-bg);
  color: var(--site-text);
  line-height: 1.5;
  min-height: 44px;
  box-sizing: border-box;
}
.search-bar input::placeholder {
  color: var(--site-text-muted);
}

.search-bar select {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--site-border);
  background: var(--site-card-bg);
  color: var(--site-text);
  line-height: 1.5;
  min-height: 44px;
  height: auto;
  box-sizing: border-box;
}

.filter-label {
  color: var(--site-text-muted);
  font-size: 13px;
}

.filter-chip {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--site-border);
  font-size: 12px;
  color: var(--site-text);
}

.filter-chip.is-active {
  background: #2563eb;
  color: #fff;
}

.card-text {
  color: var(--site-text-muted);
  margin: 8px 0 0;
}

/* 咨询详情：两列表格（标签 | 内容） */
.consult-detail-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  color: var(--site-text-muted);
  font-size: 14px;
}
.consult-detail-table th,
.consult-detail-table td {
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--site-card-border);
}
.consult-detail-table th {
  font-weight: 600;
  color: var(--site-text);
  width: 140px;
  max-width: 160px;
}
.consult-detail-table td {
  word-break: break-word;
}

/* 咨询提交成功页：回显已填内容 */
.consult-thanks-code-card {
  margin-bottom: 20px;
}
.consult-thanks-summary-card {
  margin-bottom: 24px;
}
.consult-thanks-summary-heading {
  margin: 0 0 16px;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--site-text);
}
.consult-thanks-summary-card .consult-submitted-section {
  margin-top: 20px;
}
.consult-thanks-summary-card .consult-submitted-section:first-of-type {
  margin-top: 0;
}
.consult-submitted-description {
  margin-top: 10px;
  padding: 12px 14px;
  background: var(--site-bg-alt, rgba(0, 0, 0, 0.04));
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--site-text-muted);
  word-break: break-word;
}
.consult-thanks-attachments {
  margin: 10px 0 0;
  padding-left: 1.2rem;
  color: var(--site-text-muted);
  line-height: 1.7;
}
.consult-thanks-attachments a {
  color: var(--site-link, #2563eb);
}
.consult-thanks-actions {
  margin-top: 4px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #e0f2fe;
  color: #075985;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  margin-top: 8px;
}

.tag-row {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  background: var(--site-border);
  color: var(--site-text);
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 12px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 4px;
  align-items: center;
}

/* 文章详情：分类（badge）与标签（tag）同高、视觉一致 */
.article .meta-row .badge {
  margin-top: 0;
  min-height: 26px;
  box-sizing: border-box;
  padding: 4px 10px;
  line-height: 1.25;
}
.article .meta-row .tag {
  display: inline-flex;
  align-items: center;
  margin-top: 0;
  min-height: 26px;
  box-sizing: border-box;
  padding: 4px 10px;
  line-height: 1.25;
  font-size: 12px;
  border-radius: 999px;
}

.case-list {
  margin: 12px 0 0 18px;
  color: var(--site-text-muted);
  line-height: 1.7;
}

.case-list li {
  margin-bottom: 6px;
}

/* 案例页：按钱包分组，网格展示，每行最多 4 个 */
.case-highlights-section,
.case-group-section {
  margin-top: 24px;
  margin-bottom: 8px;
}
.case-section-title,
.case-category-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--site-text);
}
.case-category-title {
  margin-top: 20px;
}
.case-category-title:first-child {
  margin-top: 0;
}
.case-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.case-grid .case-card {
  margin: 0;
  padding: 18px;
  border-radius: 12px;
  border: 1px solid var(--site-card-border);
  background: var(--site-card-bg);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.case-grid .case-card .card-title {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 8px;
  color: var(--site-text);
}
.case-grid .case-card .card-text {
  font-size: 14px;
  color: var(--site-text-muted);
  margin: 0;
  line-height: 1.5;
}
.case-highlights-grid .case-card .card-text {
  margin: 0;
}
@media (max-width: 900px) {
  .case-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 500px) {
  .case-grid {
    grid-template-columns: 1fr;
  }
}

/* 常见问题 FAQ：按分类展示，仅显示题目列表，点击展开图标后显示答案 */
.faq-section {
  margin-top: 0;
}
.faq-category-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--site-text);
  margin: 28px 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--site-border);
}
.faq-category-title:first-child {
  margin-top: 0;
}
.faq-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}
.faq-item {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--site-border);
}
.faq-item:last-child {
  border-bottom: none;
}
.faq-details {
  margin: 0;
  padding: 0;
}
.faq-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: var(--site-text);
  line-height: 1.4;
  list-style: none;
  user-select: none;
}
.faq-summary::-webkit-details-marker,
.faq-summary::marker {
  display: none;
}
.faq-summary-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 2px solid var(--site-link);
  border-radius: 4px;
  position: relative;
  transition: transform 0.2s, background-color 0.2s;
}
.faq-summary-icon::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-right: 2px solid var(--site-link);
  border-bottom: 2px solid var(--site-link);
  transform: rotate(-45deg);
  transition: transform 0.2s;
}
.faq-details[open] .faq-summary-icon::before {
  transform: rotate(45deg);
}
.faq-summary:hover .faq-summary-icon {
  background-color: rgba(13, 71, 161, 0.08);
}
.faq-summary-text {
  flex: 1;
}
.faq-answer {
  font-size: 14px;
  color: var(--site-text-muted);
  line-height: 1.6;
  margin: 0 0 0 30px;
  padding: 0 0 16px 0;
  border: none;
}
.faq-answer p {
  margin: 0 0 8px;
}
.faq-answer p:last-child {
  margin-bottom: 0;
}
@media (max-width: 600px) {
  .faq-answer {
    margin-left: 0;
  }
}

/* 正文页封面：固定比例 9:4（与后台裁剪框一致），只显示裁剪区域 */
.article-cover {
  margin-bottom: 1rem;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 9 / 4;
  background: var(--site-border, #eee);
}
.article-cover img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.article-summary {
  color: var(--site-text-muted);
}

.article-body {
  margin-top: 16px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
}

/* CKEditor 产出 HTML：段落、列表、引用、代码、表格、嵌入视频 */
.article-body--rich {
  font-size: 16px;
  line-height: 1.7;
  color: var(--site-text, #111827);
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.article-body--rich > *:first-child {
  margin-top: 0;
}
.article-body--rich > *:last-child {
  margin-bottom: 0;
}
.article-body--rich p {
  margin: 0 0 1em;
}
.article-body--rich h1,
.article-body--rich h2,
.article-body--rich h3,
.article-body--rich h4 {
  margin: 1.25em 0 0.5em;
  line-height: 1.3;
  font-weight: 700;
}
.article-body--rich h1 { font-size: 1.75rem; }
.article-body--rich h2 { font-size: 1.4rem; }
.article-body--rich h3 { font-size: 1.2rem; }
.article-body--rich h4 { font-size: 1.05rem; }
.article-body--rich a {
  color: var(--site-accent, #2563eb);
  text-decoration: underline;
}
.article-body--rich ul,
.article-body--rich ol {
  margin: 0 0 1em;
  padding-left: 1.5em;
}
.article-body--rich li {
  margin-bottom: 0.35em;
}
.article-body--rich blockquote {
  margin: 1em 0;
  padding: 0.5em 1em;
  border-left: 4px solid var(--site-border, #e5e7eb);
  color: var(--site-text-muted, #6b7280);
  background: rgba(0, 0, 0, 0.02);
  border-radius: 0 8px 8px 0;
}
.article-body--rich pre {
  margin: 1em 0;
  padding: 14px 16px;
  overflow-x: auto;
  font-size: 0.9em;
  line-height: 1.5;
  background: #1e293b;
  color: #e2e8f0;
  border-radius: 8px;
}
.article-body--rich code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9em;
}
.article-body--rich p code,
.article-body--rich li code {
  padding: 2px 6px;
  background: #f1f5f9;
  color: #0f172a;
  border-radius: 4px;
}
.article-body--rich pre code {
  padding: 0;
  background: transparent;
  color: inherit;
}
.article-body--rich img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 0.75em 0;
}
.article-body--rich table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
  font-size: 0.95em;
}
.article-body--rich th,
.article-body--rich td {
  border: 1px solid var(--site-border, #e5e7eb);
  padding: 8px 12px;
  text-align: left;
}
.article-body--rich th {
  background: #f8fafc;
  font-weight: 600;
}
.article-body--rich iframe {
  max-width: 100%;
  border: 0;
  border-radius: 8px;
  margin: 1em 0;
  aspect-ratio: 16 / 9;
  width: 100%;
  min-height: 240px;
}
.article-body--rich hr {
  border: 0;
  border-top: 1px solid var(--site-border, #e5e7eb);
  margin: 1.5em 0;
}
.article-body--rich figure {
  margin: 1em 0;
}
.article-body--rich figcaption {
  font-size: 0.875em;
  color: var(--site-text-muted, #6b7280);
  margin-top: 6px;
}

.code {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-top: 6px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.consult-lookup-panel {
  margin-bottom: 24px;
  padding: 16px 18px;
}

.consult-lookup-intro {
  margin: 0 0 12px 0;
  font-size: 14px;
  color: var(--site-text-muted);
}

.consult-lookup-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.consult-lookup-input {
  flex: 1;
  min-width: 200px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--site-border);
  font-size: 14px;
  line-height: 1.5;
  min-height: 44px;
  height: auto;
  box-sizing: border-box;
  background: var(--site-card-bg);
  color: var(--site-text);
}

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

.consult-captcha-field {
  align-items: stretch;
}

.consult-captcha-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.consult-captcha-image {
  width: 140px;
  height: 48px;
  border: 1px solid var(--site-border);
  border-radius: 10px;
  background: var(--site-card-bg);
  object-fit: cover;
  cursor: pointer;
}

.consult-captcha-input {
  width: 156px;
  min-width: 156px;
  text-transform: uppercase;
}

.consult-submit-actions {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.consult-submit-actions .hint {
  text-align: right;
}

.consult-submit-btn {
  min-width: 140px;
  justify-content: center;
}

@media (max-width: 768px) {
  .consult-submit-row {
    align-items: stretch;
  }
  .consult-submit-actions {
    width: 100%;
    margin-left: 0;
    align-items: flex-end;
  }
  .consult-captcha-input,
  .consult-submit-btn {
    width: 100%;
    min-width: 0;
  }
}

.consult-progress-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10001;
  align-items: center;
  justify-content: center;
}

.consult-progress-modal.show {
  display: flex;
}

.consult-progress-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.consult-progress-modal-inner {
  position: relative;
  z-index: 1;
  background: var(--site-card-bg);
  border: 1px solid var(--site-border);
  border-radius: 12px;
  padding: 20px 28px 18px 22px;
  box-sizing: border-box;
  width: min(960px, 96vw);
  max-width: min(960px, 96vw);
  max-height: 85vh;
  overflow: auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.consult-progress-title {
  margin: 0 0 12px 0;
  font-size: 18px;
}

.consult-progress-body {
  font-size: 14px;
  line-height: 1.55;
  color: var(--site-text);
}

.consult-progress-body p {
  margin: 0 0 10px 0;
}

.consult-progress-meta {
  font-family: ui-monospace, monospace;
  font-size: 13px;
  color: var(--site-text-muted);
}

.consult-progress-log-list {
  margin: 8px 0 0 1rem;
  padding: 0;
}

.consult-progress-log-list li {
  margin-bottom: 6px;
}

.consult-progress-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: var(--site-text-muted);
}

.consult-progress-muted {
  color: var(--site-text-muted);
  font-size: 13px;
}

.consult-progress-status-line {
  margin: 0 0 8px 0;
}

.consult-progress-dates {
  margin: 0 0 14px 0;
  font-size: 13px;
  color: var(--site-text-muted);
  line-height: 1.5;
}

.consult-progress-date-label {
  font-weight: 600;
  color: var(--site-text);
}

.consult-progress-summary-main-title {
  margin: 16px 0 10px 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--site-text);
  border-bottom: 1px solid var(--site-border);
  padding-bottom: 6px;
}

.consult-progress-section {
  margin-bottom: 14px;
}

.consult-progress-section-title {
  margin: 0 0 6px 0;
  font-size: 13px;
  font-weight: 700;
  color: #1565c0;
}

.consult-progress-summary-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.consult-progress-summary-table th {
  text-align: left;
  vertical-align: top;
  width: 30%;
  min-width: 7.5rem;
  padding: 5px 12px 5px 0;
  color: var(--site-text-muted);
  font-weight: 600;
}

.consult-progress-summary-table td {
  padding: 5px 0;
  word-break: break-word;
}

.consult-progress-desc {
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

.consult-progress-logs-wrap {
  margin-top: 8px;
}

.consult-progress-timeline {
  margin: 8px 0 0 0;
  padding-left: 1.2rem;
  list-style: decimal;
}

.consult-progress-timeline-item {
  margin-bottom: 12px;
}

.consult-progress-log-time {
  font-size: 12px;
  color: var(--site-text-muted);
  margin-bottom: 2px;
}

.consult-progress-log-line {
  font-weight: 600;
  margin-bottom: 4px;
}

.consult-progress-log-op {
  font-size: 12px;
  color: var(--site-text-muted);
  margin-bottom: 4px;
}

.consult-progress-log-op-label {
  font-weight: 600;
  color: var(--site-text-muted);
}

/* 咨询详情页：附件图片/视频弹层，可关闭 */
.consult-attachment-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 10000;
  align-items: center;
  justify-content: center;
}
.consult-attachment-modal.show {
  display: flex;
}
.consult-attachment-modal-inner {
  position: relative;
  background: #fff;
  padding: 12px;
  border-radius: 8px;
  max-width: 90vw;
  max-height: 90vh;
}
.consult-attachment-modal-inner img,
.consult-attachment-modal-inner video {
  max-width: 85vw;
  max-height: 80vh;
  display: block;
}
.consult-attachment-modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: #fff;
  border: 1px solid #ccc;
  padding: 6px 14px;
  cursor: pointer;
  border-radius: 4px;
}
.consult-attachment-media {
  display: none;
}
.consult-attachment-media.show {
  display: block;
}

/* ========== 登录 / 注册页美化 ========== */
.auth-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 0 48px;
}

.auth-form-box {
  width: 100%;
  max-width: 420px;
  background: var(--site-card-bg);
  border-radius: 20px;
  border: 1px solid var(--site-card-border);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .auth-form-box {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* 顶部装饰条 */
.auth-form-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0d47a1 0%, #1565c0 50%, #1976d2 100%);
  border-radius: 20px 20px 0 0;
}

[data-theme="dark"] .auth-form-box::before {
  background: linear-gradient(90deg, #1565c0 0%, #1976d2 50%, #42a5f5 100%);
}

.auth-form-header {
  text-align: center;
  margin-bottom: 28px;
}

.auth-form-title {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 700;
  color: var(--site-text);
  letter-spacing: -0.02em;
}

.auth-form-subtitle {
  margin: 0;
  font-size: 14px;
  color: var(--site-text-muted);
  font-weight: 400;
}

.auth-form-message {
  margin: 12px 0 0;
  font-size: 14px;
  padding: 10px 14px;
  border-radius: 10px;
}
.auth-form-message--success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}
.auth-form-message--error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}
.auth-form-message--warning {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}
[data-theme="dark"] .auth-form-message--success {
  background: rgba(22, 101, 52, 0.3);
  color: #86efac;
  border-color: #166534;
}
[data-theme="dark"] .auth-form-message--error {
  background: rgba(185, 28, 28, 0.25);
  color: #fca5a5;
  border-color: #b91c1c;
}
[data-theme="dark"] .auth-form-message--warning {
  background: rgba(146, 64, 14, 0.3);
  color: #fcd34d;
  border-color: #92400e;
}

.auth-form-resend {
  margin-top: 14px;
  font-size: 14px;
  color: var(--site-text-muted);
}
.auth-form-resend a {
  color: var(--site-link);
  font-weight: 500;
  text-decoration: none;
}
.auth-form-resend a:hover {
  text-decoration: underline;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.auth-form-errors {
  list-style: none;
  margin: 0 0 8px;
  padding: 12px 14px;
  background: #fee2e2;
  color: #991b1b;
  border-radius: 10px;
  font-size: 13px;
  border: 1px solid #fecaca;
}

[data-theme="dark"] .auth-form-errors {
  background: rgba(185, 28, 28, 0.25);
  color: #fca5a5;
  border-color: #b91c1c;
}

.auth-form .field {
  margin-bottom: 0;
}

.auth-form .field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--site-text);
  margin-bottom: 8px;
}

.auth-form .field.required > label::after {
  content: " *";
  color: #c53030;
  font-weight: 600;
}

.auth-form .field input[type="text"],
.auth-form .field input[type="password"],
.auth-form .field input[type="email"] {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--site-border);
  font-size: 15px;
  line-height: 1.5;
  min-height: 48px;
  height: auto;
  box-sizing: border-box;
  background: var(--site-card-bg);
  color: var(--site-text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-form .field input::placeholder {
  color: var(--site-text-muted);
  opacity: 0.8;
}

.auth-form .field input:focus {
  outline: none;
  border-color: var(--site-link);
  box-shadow: 0 0 0 3px rgba(13, 71, 161, 0.2);
}

[data-theme="dark"] .auth-form .field input:focus {
  box-shadow: 0 0 0 3px rgba(100, 181, 246, 0.25);
}

.auth-form .field.has-error input {
  border-color: #c53030;
}

.auth-form .field-errorlist {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  font-size: 12px;
  color: #c53030;
}

[data-theme="dark"] .auth-form .field-errorlist {
  color: #fca5a5;
}

.auth-form .field-helptext {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--site-text-muted);
  line-height: 1.45;
}

.auth-form-actions {
  margin-top: 8px;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.auth-form-actions--center {
  justify-content: center;
  margin-top: 20px;
}

.auth-form-box--message .auth-form-header {
  margin-bottom: 0;
}

.btn-auth-submit {
  padding: 12px 24px;
  font-size: 15px;
  border-radius: 12px;
  min-height: 46px;
  transition: transform 0.15s, box-shadow 0.2s;
}

.btn-auth-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(13, 71, 161, 0.35);
}

[data-theme="dark"] .btn-auth-submit:hover {
  box-shadow: 0 4px 12px rgba(100, 181, 246, 0.25);
}

.btn-auth-secondary {
  padding: 12px 18px;
  font-size: 14px;
  border-radius: 12px;
  min-height: 46px;
  font-weight: 500;
}

.auth-form-footer {
  margin: 24px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--site-card-border);
  text-align: center;
  font-size: 14px;
  color: var(--site-text-muted);
}

.auth-form-footer a {
  color: var(--site-link);
  font-weight: 500;
}

.auth-form-footer a:hover {
  color: var(--site-link-hover);
  text-decoration: underline;
}

@media (max-width: 480px) {
  .auth-form-box {
    padding: 28px 20px;
    border-radius: 16px;
  }
  .auth-form-title {
    font-size: 22px;
  }
  .auth-form-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .auth-form-actions .btn {
    width: 100%;
    justify-content: center;
  }
}
