@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Roboto+Mono:wght@400;500&display=swap');

:root {
  /* 颜色与变量设计体系 (Light SaaS Token System) */
  --bg-main: #f6f8fc;
  --bg-panel: rgba(255, 255, 255, 0.96);
  --bg-card: rgba(255, 255, 255, 0.96);
  --bg-input: #ffffff;
  --text-main: #172033;
  --text-sub: #64748b;
  --accent-glow: #2f6df6;
  --accent-gradient: linear-gradient(135deg, #2f6df6 0%, #69a7ff 100%);
  --border-glass: rgba(31, 64, 118, 0.1);
  --border-active: rgba(47, 109, 246, 0.3);
  --shadow-glass: 0 18px 42px rgba(31, 64, 118, 0.1);
  --shadow-glow: 0 0 24px rgba(47, 109, 246, 0.15);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'Roboto Mono', Consolas, 'Courier New', monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  position: relative;
  background:
    radial-gradient(circle at 20% 0%, rgba(103, 160, 255, 0.22), transparent 34%),
    radial-gradient(circle at 86% 6%, rgba(219, 238, 255, 0.9), transparent 34%),
    linear-gradient(180deg, #eff7ff 0%, #ffffff 34%, #f6f8fc 100%);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: #2563eb;
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: #1d4ed8;
}

.hidden {
  display: none !important;
}

/* ================= 导航栏 (Topbar) ================= */
.topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid var(--border-glass);
  box-shadow: 0 2px 12px rgba(31, 64, 118, 0.06);
}

.topbar-brand {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.brand {
  font-size: 22px;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.5px;
}

.topbar-tagline {
  font-size: 14px;
  color: #2563eb;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

#user-state {
  font-size: 14px;
  color: var(--text-sub);
  background: rgba(31, 64, 118, 0.05);
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--border-glass);
}

button,
a.button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  text-decoration: none;
}

button[type="submit"],
#submit-button,
.button.primary {
  background: linear-gradient(135deg, #2f6df6, #69a7ff);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 14px 32px rgba(47, 109, 246, 0.28);
}

button[type="submit"]:hover,
#submit-button:hover,
.button.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(47, 109, 246, 0.38);
  filter: brightness(1.05);
}

button.secondary,
a.secondary {
  background: rgba(31, 64, 118, 0.06);
  color: var(--text-main);
  border: 1px solid var(--border-glass);
  box-shadow: none;
}

button.secondary:hover,
a.secondary:hover {
  background: rgba(31, 64, 118, 0.1);
  border-color: var(--border-active);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

button.compact,
a.compact {
  padding: 8px 18px;
  font-size: 14px;
  border-radius: 10px;
}

/* ================= 主页面容器 (Main Page) ================= */
.page {
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 24px 80px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* ================= 英雄区域 (Hero Section) ================= */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 0 20px;
}

.hero-secondary {
  padding-top: 8px;
}

.info-page {
  gap: 28px;
}

.info-shell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 28px 0 8px;
}

.info-shell h1 {
  font-size: 48px;
  line-height: 1.08;
  font-weight: 800;
  color: #111827;
}

.info-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.info-card h2 {
  font-size: 22px;
  color: var(--text-main);
  margin-top: 8px;
}

.info-card p {
  font-size: 16px;
  color: var(--text-sub);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #2563eb;
  margin-bottom: 16px;
  background: rgba(37, 99, 235, 0.08);
  padding: 6px 18px;
  border-radius: 20px;
  border: 1px solid rgba(37, 99, 235, 0.15);
}

#hero-title {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  color: #111827;
  letter-spacing: -1px;
}

#hero-subtitle {
  font-size: 20px;
  color: var(--text-sub);
  max-width: 680px;
  margin-bottom: 16px;
  font-weight: 400;
}

.meta {
  font-size: 14px;
  color: #94a3b8;
  max-width: 720px;
  margin-bottom: 40px;
}

.hero-panel {
  display: flex;
  gap: 24px;
  justify-content: center;
  width: 100%;
  max-width: 800px;
}

.hero-stat {
  flex: 1;
  width: 300px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 4px 16px rgba(31, 64, 118, 0.06);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-stat:hover {
  transform: translateY(-6px);
  border-color: #bdd8ff;
  box-shadow: 0 12px 32px rgba(47, 109, 246, 0.12);
}

.hero-stat-label {
  font-size: 15px;
  color: var(--text-sub);
  margin-bottom: 12px;
  font-weight: 500;
}

.hero-stat strong {
  font-size: 28px;
  font-weight: 700;
  color: #2f6df6;
}

/* ================= 核心卡片容器 (Cards) ================= */
.card,
.result,
.empty-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #e2e8f0;
  border-radius: 28px;
  padding: 40px;
  box-shadow: 0 4px 16px rgba(31, 64, 118, 0.06);
  transition: all 0.3s ease;
}

.card:hover,
.result:hover {
  border-color: #bdd8ff;
  box-shadow: 0 12px 32px rgba(47, 109, 246, 0.1);
}

/* ================= 表单与上传拖拽面板 (Cyber Form) ================= */
#upload-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.form-row {
  display: flex;
  gap: 24px;
  width: 100%;
}

.form-row .select-field {
  flex: 1;
}

.select-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.select-field span {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.select-field span::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2563eb;
}

.select-field select {
  width: 100%;
  padding: 16px 20px;
  font-size: 15px;
  background: #ffffff;
  color: var(--text-main);
  border: 1px solid #d6dde8;
  border-radius: 16px;
  outline: none;
  appearance: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%2394A3B8%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 20px top 50%;
  background-size: 12px auto;
}

.select-field select:focus {
  border-color: #2f6df6;
  box-shadow: 0 0 0 3px rgba(47, 109, 246, 0.15);
}

.upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 56px 40px;
  background: #f7faff;
  border: 2px dashed #d6dde8;
  border-radius: 24px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
}

.upload:hover {
  background: #eef4ff;
  border-color: #2f6df6;
  box-shadow: 0 0 32px rgba(47, 109, 246, 0.1);
  transform: scale(1.01);
}

.upload-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.upload-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
}

.upload-title::before {
  content: "📁";
  font-size: 24px;
}

.upload-desc {
  font-size: 14px;
  color: var(--text-sub);
}

.form-actions {
  display: flex;
  gap: 16px;
  margin-top: 10px;
}

.form-actions button {
  flex: 1;
  padding: 16px;
  font-size: 16px;
}

/* ================= 进度条与步骤指示 (Stage Progress) ================= */
.stage-head {
  margin: 32px 0 24px;
}

.stage-kicker {
  font-family: var(--font-mono);
  font-size: 13px;
  color: #2563eb;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stage-hint {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 4px;
}

.stage-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f7faff;
  border: 1px solid #dce8fb;
  border-radius: 20px;
  padding: 24px 36px;
  margin-bottom: 32px;
  box-shadow: none;
}

.stage-step {
  display: flex;
  align-items: center;
  gap: 14px;
  opacity: 0.5;
  transition: all 0.3s ease;
}

.stage-step.active {
  opacity: 1;
  transform: scale(1.05);
}

.stage-index {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e2e8f0;
  border: 1px solid #d6dde8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 15px;
  color: var(--text-sub);
  transition: all 0.3s ease;
}

.stage-step.active .stage-index {
  background: linear-gradient(135deg, #2f6df6, #69a7ff);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(47, 109, 246, 0.3);
}

.stage-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
}

/* ================= 终端实时控制台 (Terminal Live Console) ================= */
pre#status.status {
  background: #f7faff;
  color: #172033;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.6;
  padding: 24px 28px;
  border-radius: 20px;
  border: 1px solid #dce8fb;
  box-shadow: none;
  overflow-x: auto;
  max-height: 420px;
  white-space: pre-wrap;
  word-wrap: break-word;
  position: relative;
}

pre#status.status::before {
  display: none;
}

/* ================= 空白状态 (Empty State) ================= */
.empty-state {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  width: 100%;
}

.empty-card {
  text-align: center;
  max-width: 100%;
  width: 100%;
  padding: 64px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.empty-card h2 {
  font-size: 24px;
  font-weight: 700;
}

.empty-card .subtitle {
  max-width: 860px;
  margin-bottom: 0;
}

.empty-meta {
  font-size: 14px;
  color: #94a3b8;
  max-width: 900px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 4px 4px 0;
  border-top: 1px solid var(--border-glass);
}

.site-footer-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--text-sub);
}

.site-footer-copy strong {
  color: var(--text-main);
  font-size: 14px;
}

.site-footer-copy span {
  font-size: 12px;
}

.site-footer-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}

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

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

/* ================= 结果视图与对比 (Result & Compare) ================= */
.result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-glass);
}

.result-head h2 {
  font-size: 28px;
  font-weight: 800;
  color: #111827;
}

.result-copy {
  font-size: 15px;
  color: var(--text-sub);
  margin-top: 4px;
}

.actions {
  display: flex;
  gap: 16px;
}

.summary {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* ================= 对比视图美学 (Page Compare) ================= */
.page-compare {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.page-card {
  display: flex;
  flex-direction: column;
  gap: 28px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #e2e8f0;
  border-radius: 28px;
  padding: 40px;
  box-shadow: 0 4px 16px rgba(31, 64, 118, 0.06);
  transition: all 0.3s ease;
}

.page-card:hover {
  border-color: #bdd8ff;
  box-shadow: 0 12px 32px rgba(47, 109, 246, 0.1);
}

.page-card-title {
  font-size: 20px;
  font-weight: 700;
  color: #2f6df6;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 16px;
}

.page-card-grid {
  display: flex;
  gap: 32px;
}

.page-card-grid.single-preview {
  display: flex;
  justify-content: center;
}

.page-card-grid.single-preview .preview-col {
  max-width: 820px;
  width: 100%;
}

.page-card-grid.single-preview .preview-viewport {
  max-height: none;
  overflow: visible;
  background: #ffffff;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.15);
}

.preview-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.preview-col h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-sub);
  display: flex;
  align-items: center;
  gap: 8px;
}

.preview-viewport {
  width: 100%;
  max-height: 650px;
  overflow-y: auto;
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(31, 64, 118, 0.06);
  background: #ffffff;
}

.preview-viewport img {
  width: 100%;
  height: auto;
  display: block;
  transition: all 0.3s ease;
}

.preview-viewport img:hover {
  filter: brightness(1.05);
}

.page-note {
  background: #f7faff;
  border: 1px solid #dce8fb;
  padding: 20px 24px;
  border-radius: 20px;
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.6;
}

.page-note p {
  margin-bottom: 8px;
}

.page-note p:last-child {
  margin-bottom: 0;
}

.page-note strong {
  color: #2f6df6;
}

/* ================= QA 报告与表格美学 (QA Summary) ================= */
#qa-summary {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  padding: 32px;
}

#qa-summary h3 {
  font-size: 20px;
  font-weight: 700;
  color: #2f6df6;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

#qa-summary table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}

#qa-summary th,
#qa-summary td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
  font-size: 15px;
}

#qa-summary th {
  font-weight: 600;
  color: var(--text-sub);
  background: #f7faff;
}

#qa-summary tr:hover td {
  background: #f0f5ff;
}

.download-finished {
  text-align: center;
  padding: 40px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  margin-top: 20px;
  box-shadow: 0 4px 16px rgba(31, 64, 118, 0.06);
}

.download-finished h3 {
  font-size: 22px;
  font-weight: 700;
  color: #2f6df6;
}

/* ================= 登录与注册页面 (Auth Pages) ================= */
.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 80px);
  padding: 60px 24px;
}

.auth-card {
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #e2e8f0;
  border-radius: 28px;
  padding: 48px 40px;
  box-shadow: 0 18px 42px rgba(31, 64, 118, 0.1);
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: all 0.3s ease;
}

.auth-card:hover {
  border-color: #bdd8ff;
  box-shadow: 0 24px 56px rgba(31, 64, 118, 0.14);
}

.auth-card h1 {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.2;
  color: #111827;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

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

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

.auth-form label span {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-form label span::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2563eb;
}

.auth-form input {
  width: 100%;
  padding: 16px 20px;
  font-size: 15px;
  background: #ffffff;
  color: var(--text-main);
  border: 1px solid #d6dde8;
  border-radius: 16px;
  outline: none;
  transition: all 0.3s ease;
  box-shadow: none;
}

.auth-form input:focus {
  border-color: #2f6df6;
  box-shadow: 0 0 0 3px rgba(47, 109, 246, 0.15);
}

.code-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.code-row input {
  flex: 1;
}

.code-row button {
  padding: 16px 24px;
  white-space: nowrap;
}

button.outline {
  background: transparent;
  border: 1px solid #2f6df6;
  color: #2f6df6;
  box-shadow: none;
}

button.outline:hover {
  background: rgba(47, 109, 246, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(47, 109, 246, 0.15);
}

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

.auth-switch a {
  color: #2563eb;
  font-weight: 600;
  margin-left: 6px;
}

p.status {
  background: #f7faff;
  border: 1px solid #dce8fb;
  padding: 16px 20px;
  border-radius: 16px;
  font-size: 14px;
  color: var(--text-sub);
  margin-top: 12px;
  line-height: 1.5;
}

/* ================= 首页新版：文件类型侧栏 + 上传工作台 ================= */
body.home-page .topbar {
  position: relative;
  padding: 0 40px;
  height: 64px;
}

body.home-page .page {
  max-width: 1480px;
  gap: 28px;
  padding: 0 30px 56px;
}

body.home-page .product-hero {
  text-align: center;
  padding: 22px 0 12px;
}

body.home-page .product-kicker {
  color: #4f86f7;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 3px;
  margin-bottom: 4px;
}

body.home-page .product-hero h1 {
  color: #111827;
  font-size: clamp(36px, 4vw, 58px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -2px;
}

body.home-page .product-hero h1::after {
  content: " ";
  display: inline-block;
  width: 0.4em;
}

body.home-page .product-hero p:not(.product-kicker) {
  color: #334155;
  font-size: 18px;
  font-weight: 600;
  margin-top: 14px;
}

body.home-page .feature-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 42px auto 8px;
  max-width: 1240px;
  background: rgba(255, 255, 255, 0.72);
  border-radius: 28px;
  border: 1px solid rgba(214, 226, 246, 0.6);
}

body.home-page .feature-item {
  display: grid;
  grid-template-columns: 58px 1fr;
  column-gap: 18px;
  align-items: center;
  text-align: left;
  padding: 8px 30px;
  border-right: 1px solid rgba(100, 116, 139, 0.18);
}

body.home-page .feature-item:last-child {
  border-right: 0;
}

body.home-page .feature-icon {
  grid-row: span 2;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, #3b82f6, #7db7ff);
  box-shadow: 0 10px 20px rgba(59, 130, 246, 0.18);
}

body.home-page .feature-item strong {
  color: #1f2937;
  font-size: 18px;
  line-height: 1.2;
}

body.home-page .feature-item small {
  color: #7a8597;
  font-size: 14px;
  font-weight: 600;
}

body.home-page .converter-shell {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  min-height: 640px;
}

body.home-page .document-sidebar {
  padding: 10px 28px 24px 0;
}

body.home-page .sidebar-heading {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 0 20px;
}

body.home-page .sidebar-heading span {
  color: #1e293b;
  font-size: 22px;
  font-weight: 900;
}

body.home-page .sidebar-heading strong {
  color: #64748b;
  font-size: 14px;
  font-weight: 700;
}

body.home-page .document-type-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

body.home-page .document-type-item {
  width: 100%;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 14px 14px;
  border: 1px solid transparent;
  border-radius: 18px;
  background: transparent;
  color: #172033;
  text-align: left;
  box-shadow: none;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

body.home-page .document-type-item:hover {
  transform: translateX(4px);
  background: rgba(255, 255, 255, 0.78);
  border-color: #d8e6ff;
}

body.home-page .document-type-item.active {
  background: #ffffff;
  border-color: #bdd8ff;
  box-shadow: 0 10px 22px rgba(59, 130, 246, 0.1);
}

body.home-page .document-type-icon {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e9f2ff, #ffffff);
  box-shadow: inset 0 0 0 1px #dceafe;
  font-size: 20px;
}

body.home-page .document-type-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

body.home-page .document-type-copy strong {
  color: #111827;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.2;
}

body.home-page .document-type-copy small {
  color: #7b8798;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.home-page .upload-workbench,
body.home-page .card.upload-workbench {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(214, 226, 246, 0.92);
  border-radius: 30px 0 0 0;
  padding: 40px 46px 34px;
  box-shadow: 0 18px 42px rgba(31, 64, 118, 0.1);
  contain: paint;
}

body.home-page .upload-workbench::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 340px;
  height: 58px;
  border-bottom-left-radius: 34px;
  background: linear-gradient(135deg, rgba(226, 240, 255, 0.92), rgba(173, 210, 255, 0.86));
}

body.home-page .backend-fields {
  display: none;
}

body.home-page .workbench-head {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  margin-bottom: 36px;
}

body.home-page .workbench-icon {
  width: 70px;
  height: 70px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #eaf3ff, #ffffff);
  box-shadow: 0 10px 24px rgba(59, 130, 246, 0.12);
  font-size: 34px;
}

body.home-page .workbench-head h2 {
  color: #111827;
  font-size: 34px;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.8px;
}

body.home-page .workbench-head p {
  color: #7b8798;
  font-size: 16px;
  font-weight: 700;
  margin-top: 8px;
}

body.home-page .security-pill {
  align-self: start;
  color: #5a98f8;
  background: rgba(219, 235, 255, 0.9);
  border-radius: 0 0 0 26px;
  padding: 12px 24px 14px 36px;
  margin: -40px -46px 0 0;
  font-weight: 900;
  white-space: nowrap;
}

body.home-page .upload {
  min-height: 330px;
  padding: 54px 30px;
  background: #ffffff;
  border: 2px dashed #d6dde8;
  border-radius: 24px;
}

body.home-page .upload:hover,
body.home-page .upload.dragging {
  background: #f8fbff;
  border-color: #74a9ff;
  box-shadow: 0 10px 24px rgba(59, 130, 246, 0.1);
}

body.home-page .upload-title {
  color: #111827;
  font-size: 24px;
  font-weight: 900;
}

body.home-page .upload-title::before {
  display: none;
}

body.home-page .upload-plus {
  width: 86px;
  height: 86px;
  border-radius: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0f172a;
  background: linear-gradient(135deg, #79aaff, #4f83f1);
  font-size: 48px;
  line-height: 1;
  box-shadow: 0 12px 24px rgba(79, 131, 241, 0.22);
}

body.home-page .upload-desc {
  color: #818b9d;
  font-size: 16px;
  font-weight: 700;
}

@media (max-width: 980px) {
  body.home-page .page {
    padding: 0 18px 44px;
  }

  body.home-page .feature-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.home-page .feature-item {
    border-right: 0;
    border-bottom: 1px solid rgba(100, 116, 139, 0.14);
  }

  body.home-page .converter-shell {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  body.home-page .document-sidebar {
    padding: 0;
  }

  body.home-page .document-type-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.home-page .upload-workbench,
  body.home-page .card.upload-workbench {
    border-radius: 28px;
    padding: 30px 22px;
  }

  body.home-page .workbench-head {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  body.home-page .security-pill {
    grid-column: 1 / -1;
    justify-self: start;
    margin: 0;
    border-radius: 999px;
    padding: 8px 14px;
  }

  body.home-page .upload-workbench::before {
    display: none;
  }
}

@media (max-width: 640px) {
  body.home-page .topbar {
    height: auto;
    padding: 14px 0;
  }

  body.home-page .topbar-brand,
  body.home-page .topbar-actions,
  body.home-page .site-footer,
  body.home-page .result-head {
    flex-direction: column;
    align-items: flex-start;
  }

  body.home-page .product-hero h1 {
    font-size: 34px;
  }

  body.home-page .feature-strip,
  body.home-page .document-type-nav {
    grid-template-columns: 1fr;
  }

  body.home-page .feature-item {
    padding: 14px 18px;
  }

  body.home-page .workbench-head h2 {
    font-size: 26px;
  }

  body.home-page .upload {
    min-height: 260px;
  }

  body.home-page .stage-progress {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
}

/* ================= 会员中心页面 (Member Center) ================= */
.member-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  align-items: flex-start;
}

/* 侧边栏 */
.member-sidebar {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 24px 16px;
  box-shadow: 0 4px 16px rgba(31, 64, 118, 0.06);
  position: sticky;
  top: 80px;
}

.member-sidebar-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid #e2e8f0;
}

.member-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #3b82f6, #7db7ff);
  color: #ffffff;
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.member-user-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.member-user-info strong {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-points-badge {
  font-size: 12px;
  font-weight: 600;
  color: #2f6df6;
  background: #eef4ff;
  padding: 2px 8px;
  border-radius: 6px;
  display: inline-block;
  width: fit-content;
}

.member-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.member-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-sub);
  background: transparent;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  width: 100%;
}

.member-nav-item:hover {
  background: #f0f5ff;
  color: var(--text-main);
}

.member-nav-item.active {
  background: #eef4ff;
  color: #2f6df6;
}

.member-nav-item svg {
  flex-shrink: 0;
}

.member-sidebar-footer {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
}

.member-recharge-btn {
  width: 100%;
  text-align: center;
}

/* 内容区域 */
.member-content {
  min-width: 0;
}

.member-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.member-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e2e8f0;
}

.member-panel-header h2 {
  font-size: 24px;
  font-weight: 800;
  color: #111827;
  margin-bottom: 4px;
}

.member-panel-header p {
  font-size: 14px;
  color: var(--text-sub);
}

/* 统计条 */
.member-stats-bar {
  display: flex;
  gap: 16px;
}

.member-stat-item {
  flex: 1;
  background: #f7faff;
  border: 1px solid #dce8fb;
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.member-stat-item span {
  font-size: 13px;
  color: var(--text-sub);
}

.member-stat-item strong {
  font-size: 22px;
  font-weight: 700;
  color: #2f6df6;
}

.member-card {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.member-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-glass);
}

.member-job-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.member-job-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 4px 16px rgba(31, 64, 118, 0.06);
  transition: all 0.3s ease;
}

.member-job-card:hover {
  border-color: #bdd8ff;
  box-shadow: 0 12px 32px rgba(47, 109, 246, 0.1);
  transform: translateY(-4px);
}

.member-job-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.member-job-top h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
}

.member-job-top p {
  font-size: 14px;
  color: var(--text-sub);
  margin-top: 4px;
}

.member-status-chip {
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-mono);
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
}

.member-status-chip.success {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.member-status-chip.running {
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.member-status-chip.failed {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.member-job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding: 16px 20px;
  background: #f7faff;
  border-radius: 16px;
  border: 1px solid #dce8fb;
}

.member-job-meta span {
  font-size: 14px;
  color: var(--text-sub);
  display: flex;
  align-items: center;
  gap: 6px;
}

.member-job-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 8px;
}

.member-job-detail {
  font-size: 14px;
  color: var(--text-sub);
  flex: 1;
  min-width: 200px;
}

.member-pill {
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 12px;
  background: rgba(31, 64, 118, 0.05);
  color: var(--text-sub);
  border: 1px solid var(--border-glass);
}

.member-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-glass);
}

.member-page-info {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-sub);
  font-family: var(--font-mono);
}

button.disabled,
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
  filter: none !important;
}

/* ================= 管理后台页面 (Admin Page) ================= */
.admin-page .topbar {
  position: relative;
}

.admin-topbar-copy {
  font-size: 13px;
  color: var(--text-sub);
  margin-top: 2px;
}

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

.admin-summary-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(31, 64, 118, 0.06);
  transition: all 0.3s ease;
}

.admin-summary-card:hover {
  border-color: #bdd8ff;
  box-shadow: 0 12px 32px rgba(47, 109, 246, 0.1);
  transform: translateY(-2px);
}

.admin-summary-card span {
  font-size: 14px;
  color: var(--text-sub);
  font-weight: 500;
}

.admin-summary-card strong {
  font-size: 32px;
  font-weight: 800;
  color: #2f6df6;
}

.admin-shell {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.admin-shell-modern {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 4px 16px rgba(31, 64, 118, 0.06);
}

.admin-sidebar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 160px;
  flex-shrink: 0;
}

.tab-button {
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 14px;
  background: transparent;
  color: var(--text-sub);
  border: 1px solid transparent;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
}

.tab-button:hover {
  background: #f0f5ff;
  color: var(--text-main);
}

.tab-button.active {
  background: #eef4ff;
  color: #2f6df6;
  border-color: #bdd8ff;
}

.admin-content {
  flex: 1;
  min-width: 0;
}

.admin-content-modern {
  padding: 0;
}

.admin-head {
  margin-bottom: 28px;
}

.admin-head h1 {
  font-size: 28px;
  font-weight: 800;
  color: #111827;
  margin-bottom: 8px;
}

.admin-head p {
  font-size: 15px;
  color: var(--text-sub);
}

.admin-config-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 28px;
}

.admin-card {
  background: #f7faff;
  border: 1px solid #dce8fb;
  border-radius: 20px;
  padding: 24px;
}

.admin-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
}

.admin-panel-head h2 {
  font-size: 20px;
  font-weight: 700;
  color: #111827;
}

.admin-panel-head p {
  font-size: 14px;
  color: var(--text-sub);
  margin-top: 4px;
}

.admin-panel-wide {
  grid-column: 1 / -1;
}

.entity-create-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e2e8f0;
}

.entity-create-form input {
  padding: 10px 14px;
  font-size: 14px;
  background: #ffffff;
  color: var(--text-main);
  border: 1px solid #d6dde8;
  border-radius: 10px;
  outline: none;
  transition: all 0.2s ease;
}

.entity-create-form input:focus {
  border-color: #2f6df6;
  box-shadow: 0 0 0 3px rgba(47, 109, 246, 0.1);
}

.entity-create-form input[type="number"] {
  width: 80px;
}

.check-field {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text-sub);
  cursor: pointer;
}

.check-field input[type="checkbox"] {
  accent-color: #2f6df6;
}

.entity-create-form button[type="submit"] {
  padding: 10px 20px;
  font-size: 14px;
  border-radius: 10px;
}

.entity-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.entity-list .entity-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: 14px;
  transition: all 0.2s ease;
}

.entity-list .entity-row:hover {
  border-color: #bdd8ff;
  box-shadow: 0 4px 12px rgba(47, 109, 246, 0.06);
}

.table-wrap {
  overflow-x: auto;
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
}

.table-wrap th,
.table-wrap td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
  font-size: 14px;
}

.table-wrap th {
  font-weight: 600;
  color: var(--text-sub);
  background: #f7faff;
  position: sticky;
  top: 0;
}

.table-wrap tr:hover td {
  background: #f0f5ff;
}

.catalog-matrix {
  overflow-x: auto;
}

.catalog-matrix table {
  width: 100%;
  border-collapse: collapse;
}

.catalog-matrix th,
.catalog-matrix td {
  padding: 12px 16px;
  text-align: center;
  border-bottom: 1px solid #e2e8f0;
  font-size: 14px;
}

.catalog-matrix th {
  font-weight: 600;
  color: var(--text-sub);
  background: #f7faff;
}

.catalog-matrix td:first-child {
  text-align: left;
  font-weight: 600;
  color: var(--text-main);
}

.catalog-matrix input[type="checkbox"] {
  accent-color: #2f6df6;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.status {
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  color: var(--text-sub);
  background: #f7faff;
  border: 1px solid #dce8fb;
}

.admin-toolbar {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  align-items: center;
}

.admin-toolbar-label {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 14px;
  color: var(--text-sub);
}

.admin-toolbar-select {
  padding: 8px 16px;
  background: #ffffff;
  color: var(--text-main);
  border: 1px solid #d6dde8;
  border-radius: 12px;
  outline: none;
  cursor: pointer;
  font-size: 14px;
}

.admin-toolbar-select:focus {
  border-color: #2f6df6;
  box-shadow: 0 0 0 3px rgba(47, 109, 246, 0.1);
}

/* ================= 响应式设计 (Responsive) ================= */
@media (max-width: 768px) {
  .topbar {
    padding: 16px 20px;
  }

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

  .page {
    padding: 0 16px 60px;
    gap: 28px;
  }

  #hero-title {
    font-size: 38px;
  }

  #hero-subtitle {
    font-size: 16px;
  }

  .hero-panel {
    flex-direction: column;
    gap: 16px;
  }

  .info-shell h1 {
    font-size: 36px;
  }

  .page-card {
    padding: 28px 20px;
  }

  .page-card-grid {
    flex-direction: column;
    gap: 24px;
  }

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

  .form-actions {
    flex-direction: column;
    gap: 12px;
  }

  .card,
  .result,
  .empty-card {
    padding: 28px 20px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer-links {
    gap: 14px;
    flex-wrap: wrap;
  }

  .upload {
    padding: 40px 20px;
  }

  .auth-page {
    padding: 40px 16px;
  }

  .auth-card {
    padding: 36px 24px;
  }

  .member-stats {
    flex-direction: column;
    gap: 16px;
  }

  .member-job-card {
    padding: 24px 20px;
  }

  .member-job-top {
    flex-direction: column;
    gap: 12px;
  }

  .member-job-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .member-job-actions button,
  .member-job-actions .member-pill {
    width: 100%;
    text-align: center;
  }

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

  .admin-shell {
    flex-direction: column;
  }

  .admin-sidebar {
    flex-direction: row;
    flex-wrap: wrap;
    min-width: auto;
  }

  .admin-config-grid {
    grid-template-columns: 1fr;
  }

  .admin-card {
    padding: 20px;
  }

  .entity-create-form {
    flex-direction: column;
  }
}

/* ================= 邀请与积分 (Referral & Points) ================= */
.referral-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #e2e8f0;
  border-radius: 28px;
  padding: 32px;
  box-shadow: 0 4px 16px rgba(31, 64, 118, 0.06);
}

.referral-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e2e8f0;
}

.referral-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.referral-code-box,
.referral-link-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.referral-code-box label,
.referral-link-box label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-sub);
}

.referral-code-value {
  display: flex;
  align-items: center;
  gap: 12px;
}

.referral-code-value code {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
  color: #2f6df6;
  background: #f0f5ff;
  padding: 8px 16px;
  border-radius: 12px;
  letter-spacing: 2px;
}

.referral-link-value {
  display: flex;
  gap: 12px;
}

.referral-link-value input {
  flex: 1;
  padding: 10px 14px;
  font-size: 14px;
  background: #f7faff;
  border: 1px solid #dce8fb;
  border-radius: 10px;
  color: var(--text-main);
  outline: none;
}

.referral-stats-row {
  display: flex;
  gap: 24px;
  padding: 20px;
  background: #f7faff;
  border-radius: 16px;
  border: 1px solid #dce8fb;
}

.referral-stat-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
}

.referral-stat-item span {
  font-size: 13px;
  color: var(--text-sub);
}

.referral-stat-item strong {
  font-size: 24px;
  font-weight: 700;
  color: #2f6df6;
}

.referral-rules {
  font-size: 13px;
  color: var(--text-sub);
  padding: 12px 16px;
  background: #f7faff;
  border-radius: 10px;
  border: 1px solid #dce8fb;
}

/* 积分管理面板内样式 */
.points-overview {
  margin-bottom: 8px;
}

.points-balance-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 28px;
  background: linear-gradient(135deg, #eef4ff, #f0f5ff);
  border: 1px solid #bdd8ff;
  border-radius: 16px;
}

.points-balance-card span {
  font-size: 14px;
  color: var(--text-sub);
}

.points-balance-card strong {
  font-size: 36px;
  font-weight: 800;
  color: #2f6df6;
  margin-right: auto;
}

.referral-section {
  background: #f7faff;
  border: 1px solid #dce8fb;
  border-radius: 16px;
  padding: 24px;
}

.referral-section h3 {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 4px;
}

.referral-desc {
  font-size: 14px;
  color: var(--text-sub);
  margin-bottom: 20px;
}

.referral-code-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.points-history-section {
  background: #f7faff;
  border: 1px solid #dce8fb;
  border-radius: 16px;
  padding: 24px;
}

.points-history-section h3 {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 16px;
}

.points-history-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.points-history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.points-history-item:hover {
  border-color: #bdd8ff;
}

.points-history-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.points-history-type {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
}

.points-history-desc {
  font-size: 12px;
  color: var(--text-sub);
}

.points-history-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.points-history-amount {
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font-mono);
}

.points-history-amount.positive {
  color: #059669;
}

.points-history-amount.negative {
  color: #dc2626;
}

.points-history-balance {
  font-size: 12px;
  color: var(--text-sub);
}

.empty-text {
  text-align: center;
  color: var(--text-sub);
  font-size: 14px;
  padding: 24px;
}

/* 邀请管理面板 */
.referral-summary-bar {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.referral-summary-item {
  flex: 1;
  background: #f7faff;
  border: 1px solid #dce8fb;
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
}

.referral-summary-item span {
  font-size: 13px;
  color: var(--text-sub);
}

.referral-summary-item strong {
  font-size: 22px;
  font-weight: 700;
  color: #2f6df6;
}

.referral-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.referral-record-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.referral-record-item:hover {
  border-color: #bdd8ff;
}

.referral-record-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.referral-record-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
}

.referral-record-time {
  font-size: 12px;
  color: var(--text-sub);
}

.referral-record-bonus {
  font-size: 14px;
  font-weight: 700;
  color: #059669;
}

/* ================= 充值弹框 (Recharge Modal) ================= */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
}

.modal-card {
  background: #ffffff;
  border-radius: 20px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.15);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px 0;
}

.modal-header h3 {
  font-size: 20px;
  font-weight: 700;
  color: #111827;
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: none;
  background: #f1f5f9;
  color: #64748b;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: #e2e8f0;
  color: #111827;
}

.modal-body {
  padding: 24px 28px;
}

.modal-desc {
  font-size: 14px;
  color: var(--text-sub);
  margin-bottom: 20px;
}

.modal-footer {
  padding: 0 28px 24px;
  display: flex;
  justify-content: center;
}

.modal-footer button {
  min-width: 200px;
  padding: 14px 32px;
  font-size: 16px;
}

/* ================= 充值页面 (Recharge) ================= */
.recharge-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #e2e8f0;
  border-radius: 28px;
  padding: 32px;
  box-shadow: 0 4px 16px rgba(31, 64, 118, 0.06);
}

.recharge-header {
  margin-bottom: 24px;
}

.recharge-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.recharge-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: #f7faff;
  border: 2px solid #dce8fb;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.recharge-option:hover {
  border-color: #bdd8ff;
  background: #eef4ff;
}

.recharge-option.selected {
  border-color: #2f6df6;
  background: #eef4ff;
  box-shadow: 0 4px 12px rgba(47, 109, 246, 0.15);
}

.recharge-option strong {
  font-size: 28px;
  font-weight: 800;
  color: #111827;
}

.recharge-option span {
  font-size: 14px;
  color: var(--text-sub);
  margin-top: 4px;
}

.recharge-custom {
  margin-bottom: 20px;
}

.recharge-custom label {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.recharge-custom label span {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-sub);
}

.recharge-custom input {
  padding: 12px 16px;
  font-size: 16px;
  border: 1px solid #d6dde8;
  border-radius: 12px;
  outline: none;
  transition: all 0.2s ease;
}

.recharge-custom input:focus {
  border-color: #2f6df6;
  box-shadow: 0 0 0 3px rgba(47, 109, 246, 0.1);
}

.recharge-summary {
  display: flex;
  gap: 24px;
  padding: 16px 20px;
  background: #f0f5ff;
  border-radius: 12px;
  margin-bottom: 20px;
}

.recharge-summary p {
  font-size: 15px;
  color: var(--text-main);
}

.recharge-summary strong {
  color: #2f6df6;
  font-weight: 700;
}

.recharge-actions {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.recharge-actions button {
  min-width: 200px;
  padding: 16px 32px;
  font-size: 16px;
}

.qrcode-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 24px;
  background: #f7faff;
  border-radius: 16px;
  border: 1px solid #dce8fb;
  margin-top: 16px;
}

.qrcode-container p {
  font-size: 14px;
  color: var(--text-sub);
}

.qrcode-container img {
  width: 200px;
  height: 200px;
  border-radius: 8px;
}

.recharge-history {
  padding: 16px 0;
}

.recharge-history .empty-text {
  text-align: center;
  color: var(--text-sub);
  font-size: 14px;
  padding: 24px;
}

.status-error {
  color: #dc2626;
  background: #fef2f2;
  border-color: #fecaca;
}

.status-success {
  color: #059669;
  background: #ecfdf5;
  border-color: #a7f3d0;
}

/* 积分余额卡片样式 */
.hero-stat.points-highlight {
  background: linear-gradient(135deg, #eef4ff, #f0f5ff);
  border-color: #bdd8ff;
}

.hero-stat.points-highlight strong {
  color: #2f6df6;
}

@media (max-width: 768px) {
  .referral-header {
    flex-direction: column;
  }

  .referral-stats-row {
    flex-direction: column;
    gap: 16px;
  }

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

  .recharge-summary {
    flex-direction: column;
    gap: 8px;
  }

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

  .member-sidebar {
    position: static;
  }

  .member-nav {
    flex-direction: row;
    overflow-x: auto;
  }

  .member-nav-item {
    white-space: nowrap;
  }

  .member-stats-bar {
    flex-direction: column;
  }

  .referral-code-row {
    grid-template-columns: 1fr;
  }

  .points-balance-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .points-balance-card strong {
    margin-right: 0;
  }
}
