/* ============================================
   大师决策局 - 全局样式
   设计风格：专业、克制、有战略感
   ============================================ */

:root {
  /* 色彩系统 */
  --bg-primary: #0B0F19;
  --bg-surface: #131929;
  --bg-card: #1A2138;
  --bg-card-hover: #212B45;
  --border-color: #2A3454;
  --border-light: #36426B;

  --accent-gold: #C8A45C;
  --accent-gold-hover: #D4B06A;
  --accent-gold-dim: #8A7140;

  --text-primary: #E8ECF4;
  --text-secondary: #8B95B0;
  --text-tertiary: #5C6680;

  --color-success: #4CAF7D;
  --color-warning: #E8A84A;
  --color-danger: #E0585F;
  --color-info: #5B8FE5;

  /* 间距 */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;

  /* 圆角 */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  /* 字号 */
  --text-xs: 12px;
  --text-sm: 13px;
  --text-base: 15px;
  --text-md: 17px;
  --text-lg: 20px;
  --text-xl: 24px;
  --text-2xl: 30px;
  --text-3xl: 36px;

  /* 阴影 */
  --shadow-card: 0 2px 12px rgba(0,0,0,0.3);
  --shadow-float: 0 8px 32px rgba(0,0,0,0.5);

  /* 布局 */
  --max-width: 480px;
  --bottom-nav-height: 56px;
}

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

html, body {
  height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: var(--text-base);
  line-height: 1.6;
  overflow-x: hidden;
}

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

#app {
  max-width: var(--max-width);
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  background: var(--bg-primary);
}

#page-container {
  min-height: calc(100vh - var(--bottom-nav-height));
  padding-bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0px));
}

/* ============================================
   底部导航
   ============================================ */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--max-width);
  height: var(--bottom-nav-height);
  background: rgba(11, 15, 25, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-color);
  display: flex;
  z-index: 100;
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--text-tertiary);
  font-size: var(--text-xs);
  transition: color 0.2s;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.nav-item.active {
  color: var(--accent-gold);
}

.nav-icon {
  width: 22px;
  height: 22px;
}

/* ============================================
   通用组件
   ============================================ */

/* 页面过渡动画 */
.page-enter {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 标题栏 */
.page-header {
  padding: var(--space-xl) var(--space-lg) var(--space-md);
}

.page-header .page-title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.page-header .page-subtitle {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.5;
}

/* 卡片 */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin: 0 var(--space-lg) var(--space-md);
  box-shadow: var(--shadow-card);
}

.card-title {
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

/* 按钮 */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 14px var(--space-lg);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, #C8A45C 0%, #D4B06A 100%);
  color: #1A1208;
}

.btn-primary:hover, .btn-primary:active {
  background: linear-gradient(135deg, #D4B06A 0%, #E0BE78 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(200, 164, 92, 0.3);
}

.btn-primary:disabled {
  background: var(--accent-gold-dim);
  color: var(--text-tertiary);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-light);
}

.btn-outline {
  background: transparent;
  color: var(--accent-gold);
  border: 1px solid var(--accent-gold-dim);
}

.btn-outline:hover {
  border-color: var(--accent-gold);
  background: rgba(200, 164, 92, 0.08);
}

.btn-sm {
  padding: 8px var(--space-md);
  font-size: var(--text-sm);
  width: auto;
}

.btn-row {
  display: flex;
  gap: var(--space-sm);
}

/* 表单 */
.form-section {
  margin: 0 var(--space-lg) var(--space-md);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
  margin-top: var(--space-md);
}

.form-label .required {
  color: var(--color-danger);
  margin-left: 2px;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px var(--space-md);
  color: var(--text-primary);
  font-size: var(--text-base);
  font-family: inherit;
  transition: border-color 0.2s;
  resize: vertical;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-tertiary);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--accent-gold);
}

.form-textarea {
  min-height: 80px;
  line-height: 1.6;
}

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

.form-hint {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  margin-top: var(--space-xs);
  line-height: 1.4;
}

/* 徽章/标签 */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: var(--text-xs);
  font-weight: 500;
}

.badge-gold {
  background: rgba(200, 164, 92, 0.12);
  color: var(--accent-gold);
  border: 1px solid rgba(200, 164, 92, 0.25);
}

.badge-success {
  background: rgba(76, 175, 125, 0.12);
  color: var(--color-success);
  border: 1px solid rgba(76, 175, 125, 0.25);
}

.badge-warning {
  background: rgba(232, 168, 74, 0.12);
  color: var(--color-warning);
  border: 1px solid rgba(232, 168, 74, 0.25);
}

.badge-info {
  background: rgba(91, 143, 229, 0.12);
  color: var(--color-info);
  border: 1px solid rgba(91, 143, 229, 0.25);
}

.badge-muted {
  background: rgba(140, 149, 176, 0.1);
  color: var(--text-secondary);
  border: 1px solid rgba(140, 149, 176, 0.2);
}

/* 分割线 */
.divider {
  height: 1px;
  background: var(--border-color);
  margin: var(--space-lg) 0;
}

.divider-text {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin: var(--space-lg) 0;
  color: var(--text-tertiary);
  font-size: var(--text-xs);
}

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

/* 空状态 */
.empty-state {
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
  color: var(--text-tertiary);
}

.empty-state .empty-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-md);
  opacity: 0.4;
}

.empty-state .empty-title {
  font-size: var(--text-md);
  color: var(--text-secondary);
  margin-bottom: var(--space-xs);
}

.empty-state .empty-desc {
  font-size: var(--text-sm);
  line-height: 1.5;
}

/* 加载动画 */
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-color);
  border-top-color: var(--accent-gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto;
}

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

/* 顶部导航栏 */
.top-bar {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-primary);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border-color);
}

.top-bar .back-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  background: none;
  border: none;
  cursor: pointer;
  font-size: var(--text-lg);
  flex-shrink: 0;
}

.top-bar .top-title {
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--text-primary);
  flex: 1;
  text-align: center;
  padding-right: 32px;
}

/* 报告模块 */
.report-section {
  margin-bottom: var(--space-lg);
}

.report-section-title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--accent-gold);
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.report-section-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(200, 164, 92, 0.15);
  font-size: var(--text-xs);
  font-weight: 700;
}

.report-section-content {
  color: var(--text-primary);
  line-height: 1.7;
  font-size: var(--text-sm);
  padding-left: calc(22px + var(--space-sm));
}

.report-section-content ul {
  padding-left: var(--space-md);
  margin-top: var(--space-xs);
}

.report-section-content li {
  margin-bottom: var(--space-xs);
}

/* 进度步骤 */
.step-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.step-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  transition: color 0.3s;
}

.step-item .step-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-color);
  flex-shrink: 0;
  transition: background 0.3s;
}

.step-item.active .step-dot {
  background: var(--accent-gold);
  box-shadow: 0 0 8px rgba(200, 164, 92, 0.4);
}

.step-item.active {
  color: var(--text-primary);
}

.step-item.done .step-dot {
  background: var(--color-success);
}

.step-item.done {
  color: var(--text-secondary);
}

/* 历史报告列表项 */
.report-list-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  margin: 0 var(--space-lg) var(--space-sm);
  cursor: pointer;
  transition: all 0.2s;
}

.report-list-item:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-light);
}

.report-list-item .item-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
}

.report-list-item .item-content {
  flex: 1;
  min-width: 0;
}

.report-list-item .item-title {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.report-list-item .item-meta {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

/* 大师标签 */
.master-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  background: rgba(91, 143, 229, 0.1);
  color: var(--color-info);
  margin: 2px 4px 2px 0;
}

/* 预约状态 */
.status-pending { color: var(--color-warning); }
.status-confirmed { color: var(--color-success); }
.status-completed { color: var(--color-info); }

/* 筛选标签 */
.filter-tabs {
  display: flex;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.filter-tabs::-webkit-scrollbar {
  display: none;
}

.filter-tab {
  padding: 6px 16px;
  border-radius: 100px;
  font-size: var(--text-sm);
  white-space: nowrap;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.filter-tab.active {
  background: rgba(200, 164, 92, 0.12);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

/* Toast */
#toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(26, 33, 56, 0.95);
  color: var(--text-primary);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  box-shadow: var(--shadow-float);
  max-width: 80%;
  text-align: center;
}

#toast.show {
  opacity: 1;
}

/* 隐藏底部导航 */
.bottom-nav.hidden {
  display: none;
}

/* 滚动区域 */
.scrollable {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* ============================================
   AI对话页样式
   ============================================ */
.chat-page {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

.chat-header {
  padding: 12px 16px;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 10px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.chat-header-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(200, 164, 92, 0.2), rgba(200, 164, 92, 0.05));
  border: 1px solid rgba(200, 164, 92, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chat-header-info {
  flex: 1;
  min-width: 0;
}

.chat-header-title {
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--text-primary);
}

.chat-header-status {
  font-size: 11px;
  color: var(--color-success);
  display: flex;
  align-items: center;
  gap: 4px;
}

.chat-header-status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-success);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 80px;
}

.chat-bubble {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: var(--text-sm);
  line-height: 1.6;
  word-break: break-word;
  white-space: pre-wrap;
  position: relative;
}

.chat-bubble.user {
  align-self: flex-end;
  background: linear-gradient(135deg, #C8A45C, #D4B06A);
  color: #1A1208;
  border-bottom-right-radius: 4px;
}

.chat-bubble.ai {
  align-self: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-bottom-left-radius: 4px;
}

.chat-bubble.ai strong {
  color: var(--accent-gold);
}

.chat-bubble.ai .master-ref {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 11px;
  background: rgba(91, 143, 229, 0.1);
  color: var(--color-info);
  margin: 1px 2px;
}

.chat-avatar {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
}

.chat-avatar.ai-avatar {
  background: linear-gradient(135deg, rgba(200, 164, 92, 0.2), rgba(200, 164, 92, 0.05));
  border: 1px solid rgba(200, 164, 92, 0.25);
  color: var(--accent-gold);
}

.chat-avatar.user-avatar {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.chat-row {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.chat-row.user-row {
  flex-direction: row-reverse;
}

.chat-row.user-row .chat-bubble {
  margin-right: 0;
}

.chat-typing {
  display: flex;
  gap: 4px;
  padding: 4px 0;
}

.chat-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-tertiary);
  animation: typing 1.2s infinite ease-in-out;
}

.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-4px); }
}

.chat-input-area {
  position: fixed;
  bottom: var(--bottom-nav-height);
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--max-width);
  padding: 8px 12px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 8px;
  align-items: flex-end;
  z-index: 90;
  padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
}

.chat-input {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 10px 16px;
  color: var(--text-primary);
  font-size: var(--text-sm);
  font-family: inherit;
  resize: none;
  max-height: 100px;
  min-height: 40px;
  line-height: 1.5;
}

.chat-input::placeholder {
  color: var(--text-tertiary);
}

.chat-input:focus {
  outline: none;
  border-color: var(--accent-gold);
}

.chat-send-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #C8A45C, #D4B06A);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
}

.chat-send-btn:disabled {
  background: var(--border-color);
  cursor: not-allowed;
}

.chat-send-btn:not(:disabled):hover {
  transform: scale(1.05);
}

/* 快捷问题 */
.chat-quick-questions {
  padding: 8px 12px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.chat-quick-questions::-webkit-scrollbar {
  display: none;
}

.chat-quick-q {
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 12px;
  white-space: nowrap;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.chat-quick-q:hover {
  border-color: var(--accent-gold-dim);
  color: var(--accent-gold);
}

/* 对话欢迎页 */
.chat-welcome {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 32px 24px;
  text-align: center;
}

.chat-welcome-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(200, 164, 92, 0.15), rgba(200, 164, 92, 0.03));
  border: 1px solid rgba(200, 164, 92, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.chat-welcome-title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.chat-welcome-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 300px;
  margin-bottom: 24px;
}

.chat-welcome-suggestions {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chat-suggestion-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
}

.chat-suggestion-item:hover {
  border-color: var(--accent-gold-dim);
  background: var(--bg-card-hover);
}

.chat-suggestion-item .suggestion-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent-gold);
  background: rgba(200, 164, 92, 0.1);
}

.chat-suggestion-item .suggestion-text {
  font-size: var(--text-sm);
  color: var(--text-primary);
}

/* ============================================
   登录/注册页样式
   ============================================ */
.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 24px;
}

.auth-logo {
  text-align: center;
  margin-bottom: 40px;
}

.auth-logo-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(200,164,92,0.15), rgba(200,164,92,0.05));
  border: 1px solid rgba(200,164,92,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.auth-subtitle {
  font-size: 13px;
  color: var(--text-tertiary);
}

.auth-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
}

.auth-tab {
  flex: 1;
  text-align: center;
  padding: 12px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-tertiary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.auth-tab.active {
  color: var(--accent-gold);
  border-bottom-color: var(--accent-gold);
}

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

.auth-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: #ef4444;
  margin-bottom: 8px;
}

/* ============================================
   会员墙样式
   ============================================ */
.membership-wall {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  text-align: center;
}

.membership-card {
  width: 100%;
  max-width: 360px;
  background: linear-gradient(135deg, rgba(200,164,92,0.08), rgba(200,164,92,0.02));
  border: 1px solid rgba(200,164,92,0.25);
  border-radius: 20px;
  padding: 32px 24px;
  margin-top: 24px;
}

.membership-price {
  font-size: 36px;
  font-weight: 800;
  color: var(--accent-gold);
  margin: 16px 0 4px;
}

.membership-price-unit {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-tertiary);
}

.membership-features {
  text-align: left;
  margin: 24px 0;
  padding: 0 8px;
}

.membership-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.membership-feature-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(200,164,92,0.15);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 12px;
}

.usage-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(200,164,92,0.12);
  color: var(--accent-gold);
  border: 1px solid rgba(200,164,92,0.2);
}

.usage-badge.unlimited {
  background: rgba(76,175,125,0.12);
  color: var(--color-success);
  border-color: rgba(76,175,125,0.2);
}

.usage-badge.expired {
  background: rgba(239,68,68,0.1);
  color: #ef4444;
  border-color: rgba(239,68,68,0.2);
}

/* 用户信息栏 */
.user-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  margin: 0 16px 12px;
}

.user-bar-avatar {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(200,164,92,0.15);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}

.user-bar-info {
  flex: 1;
  min-width: 0;
}

.user-bar-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.user-bar-status {
  font-size: 11px;
  color: var(--text-tertiary);
}

.user-bar-logout {
  font-size: 12px;
  color: var(--text-tertiary);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  flex-shrink: 0;
}

.user-bar-logout:hover {
  color: #ef4444;
}

/* ============================================
   免责声明 - 底部小字
   ============================================ */
.disclaimer-footer {
  padding: 20px 24px 80px;
  text-align: center;
}

.disclaimer-text {
  font-size: 10px;
  color: #3D4868;
  line-height: 1.7;
  max-width: 360px;
  margin: 0 auto;
}
