/* ===== 全局重置 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
*::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: #f5f6fa;
  color: #333;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.hidden { display: none !important; }

/* ===== APP容器 ===== */
#app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: #f5f6fa;
  position: relative;
}

/* ===== 视图切换 ===== */
.view {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== 顶部栏 ===== */
.header-bar {
  background: linear-gradient(135deg, #1a3a5c 0%, #2d5a8e 100%);
  padding: 50px 20px 30px;
  color: #fff;
}
.header-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 2px;
}
.header-subtitle {
  font-size: 13px;
  opacity: 0.8;
  margin-top: 4px;
}

/* ===== 服务器状态指示器 ===== */
.server-status {
  display: inline-block;
  margin-top: 10px;
  font-size: 12px;
  padding: 3px 12px;
  border-radius: 12px;
  font-weight: 500;
}
.server-status.online {
  background: rgba(76, 175, 80, 0.25);
  color: #a5d6a7;
}
.server-status.offline {
  background: rgba(244, 67, 54, 0.25);
  color: #ef9a9a;
}
.server-status.checking {
  background: rgba(255, 193, 7, 0.25);
  color: #ffe082;
}

/* ===== 导航栏 ===== */
.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-back {
  font-size: 17px;
  color: #2d5a8e;
  cursor: pointer;
  min-width: 60px;
}
.nav-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}
.nav-placeholder {
  min-width: 60px;
}

/* ===== 首页Banner ===== */
.banner {
  display: flex;
  align-items: center;
  background: #fff;
  margin: 12px;
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.banner-icon {
  font-size: 40px;
  margin-right: 14px;
}
.banner-title {
  font-size: 17px;
  font-weight: 600;
  color: #333;
}
.banner-desc {
  font-size: 12px;
  color: #999;
  margin-top: 2px;
}

/* ===== 分区标题 ===== */
.section-title {
  font-size: 15px;
  font-weight: 600;
  color: #666;
  margin: 20px 16px 10px;
}

/* ===== 分类卡片 ===== */
.category-card {
  display: flex;
  align-items: center;
  background: #fff;
  margin: 0 12px 10px;
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  cursor: pointer;
  transition: transform 0.15s;
}
.category-card:active { transform: scale(0.97); }
.cat-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-right: 14px;
  flex-shrink: 0;
}
.cat-icon-debt { background: #fff0f0; }
.cat-icon-labor { background: #f0f5ff; }
.cat-info { flex: 1; }
.cat-name {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}
.cat-desc {
  font-size: 12px;
  color: #999;
  margin-top: 3px;
}
.cat-arrow {
  font-size: 22px;
  color: #ccc;
}
.cat-history-badge {
  position: absolute;
  top: 12px;
  right: 30px;
  font-size: 11px;
  color: #2d5a8e;
  background: #e3f2fd;
  padding: 2px 8px;
  border-radius: 10px;
}
.category-card {
  position: relative;
}

/* ===== 会员权益卡片 ===== */
.benefit-card {
  background: linear-gradient(135deg, #fff9f0 0%, #fff5e6 100%);
  margin: 0 12px;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid #ffe8c0;
  cursor: pointer;
}
.benefit-header {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}
.benefit-badge {
  background: linear-gradient(135deg, #f0a020, #e88810);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  margin-right: 8px;
}
.benefit-title {
  font-size: 15px;
  font-weight: 600;
  color: #8a5a10;
}
.benefit-list {
  margin-bottom: 10px;
}
.benefit-item {
  font-size: 13px;
  color: #9a7a40;
  line-height: 2;
}
.benefit-btn {
  text-align: center;
  background: linear-gradient(135deg, #f0a020, #e88810);
  color: #fff;
  padding: 10px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
}

/* ===== 免费提示 ===== */
.free-tip {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px 12px;
  padding: 10px;
  background: #e8f5e9;
  border-radius: 8px;
  font-size: 13px;
  color: #4caf50;
}
.free-tip-icon {
  margin-right: 6px;
  font-size: 16px;
}

/* ===== 底部导航 ===== */
.tabbar {
  display: flex;
  background: #fff;
  border-top: 1px solid #eee;
  padding: 8px 0 20px;
  position: sticky;
  bottom: 0;
  margin-top: auto;
}
.tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: color 0.2s;
}
.tab-icon { font-size: 22px; }
.tab-label {
  font-size: 11px;
  color: #999;
  margin-top: 2px;
}
.tab-active .tab-label { color: #2d5a8e; font-weight: 600; }

/* ===== 聊天区域 ===== */
.chat-area {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  padding-bottom: 120px;
}
.chat-welcome {
  text-align: center;
  padding: 40px 20px;
}
.chat-welcome-icon {
  font-size: 56px;
  margin-bottom: 16px;
}
.chat-welcome-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}
.chat-welcome-desc {
  font-size: 13px;
  color: #999;
}

/* ===== 快捷问题 ===== */
.quick-questions {
  margin-top: 20px;
}
.quick-label {
  font-size: 13px;
  color: #999;
  margin-bottom: 10px;
}
.quick-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.quick-tag {
  background: #f0f5ff;
  color: #2d5a8e;
  font-size: 12px;
  padding: 8px 14px;
  border-radius: 20px;
  cursor: pointer;
  border: 1px solid #d0e0ff;
  transition: all 0.15s;
}
.quick-tag:active { transform: scale(0.95); }

/* ===== 聊天消息 ===== */
.chat-msg {
  display: flex;
  margin-bottom: 16px;
  animation: msgIn 0.3s ease;
}
@keyframes msgIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.msg-avatar {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.msg-avatar-ai { background: #2d5a8e; margin-right: 10px; }
.msg-avatar-user { background: #4caf50; margin-left: 10px; order: 2; }
.msg-bubble {
  max-width: 75%;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.7;
  word-break: break-word;
}
.msg-bubble-ai {
  background: #fff;
  color: #333;
  border-top-left-radius: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.msg-bubble-user {
  background: #2d5a8e;
  color: #fff;
  border-top-right-radius: 4px;
}
.chat-msg-user {
  flex-direction: row-reverse;
}
.msg-bubble-ai strong { color: #2d5a8e; }
.msg-bubble-ai h4 { margin: 10px 0 4px; color: #2d5a8e; font-size: 14px; }
.msg-bubble-ai ul, .msg-bubble-ai ol { margin: 4px 0 4px 18px; }
.msg-bubble-ai li { margin-bottom: 4px; }
.msg-bubble-ai p { margin-bottom: 6px; }

/* ===== 查看方案按钮 ===== */
.view-solution-btn {
  margin-top: 12px;
  display: inline-block;
  background: linear-gradient(135deg, #f0a020, #e88810);
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform 0.15s;
}
.view-solution-btn:active { transform: scale(0.97); }

/* ===== 加载动画 ===== */
.chat-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  margin-bottom: 16px;
}
.loading-dots {
  display: flex;
  gap: 6px;
}
.loading-dots span {
  width: 10px;
  height: 10px;
  background: #2d5a8e;
  border-radius: 50%;
  animation: dotBounce 1.4s infinite ease-in-out both;
}
.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }
@keyframes dotBounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; }
  40% { transform: scale(1); opacity: 1; }
}
.loading-text {
  margin-top: 10px;
  font-size: 13px;
  color: #999;
}

/* ===== 聊天输入区域 ===== */
.chat-input-area {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background: #fff;
  border-top: 1px solid #eee;
  padding: 10px 12px;
  z-index: 100;
}
.chat-input-wrap {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}
.chat-input {
  flex: 1;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  resize: none;
  max-height: 100px;
  min-height: 40px;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s;
}
.chat-input:focus { border-color: #2d5a8e; }
.chat-send-btn {
  background: #2d5a8e;
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity 0.2s;
}
.chat-send-btn:disabled { opacity: 0.5; }
.chat-input-tip {
  text-align: center;
  margin-top: 6px;
  font-size: 11px;
  color: #999;
}
.free-badge {
  background: #4caf50;
  color: #fff;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 10px;
}

/* ===== 解决方案页 ===== */
.solution-area {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
}
.solution-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 80px 20px;
}
.solution-content {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  position: relative;
  overflow: hidden;
}
.solution-header {
  text-align: center;
  padding-bottom: 16px;
  border-bottom: 2px solid #f0f0f0;
  margin-bottom: 16px;
}
.solution-icon {
  font-size: 40px;
  margin-bottom: 8px;
}
.solution-title {
  font-size: 18px;
  font-weight: 700;
  color: #333;
}
.solution-date {
  font-size: 12px;
  color: #999;
  margin-top: 4px;
}
.solution-body {
  font-size: 14px;
  line-height: 1.9;
  color: #555;
  max-height: 500px;
  overflow: hidden;
}
.solution-body.vip-unlocked {
  max-height: none;
  overflow: visible;
}
.solution-body h3 {
  color: #1a3a5c;
  font-size: 16px;
  font-weight: 700;
  margin: 20px 0 10px;
  padding: 8px 12px;
  background: #f0f4f8;
  border-left: 4px solid #2d5a8e;
  border-radius: 4px;
}
.solution-body h4 {
  color: #2d5a8e;
  font-size: 14px;
  font-weight: 600;
  margin: 14px 0 6px;
}
.solution-body p { margin-bottom: 8px; }
.solution-body ul, .solution-body ol { margin: 4px 0 10px 20px; }
.solution-body li { margin-bottom: 4px; }
.solution-body strong { color: #d4380d; }
.solution-body blockquote {
  border-left: 3px solid #2d5a8e;
  background: #f8f9fb;
  padding: 8px 12px;
  margin: 8px 0;
  color: #444;
  font-size: 13px;
  border-radius: 0 4px 4px 0;
}
.solution-body blockquote strong { color: #1a3a5c; }
.solution-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 12px;
  font-size: 13px;
}
.solution-body th {
  background: #2d5a8e;
  color: #fff;
  padding: 8px 10px;
  text-align: left;
  font-weight: 500;
  font-size: 12px;
}
.solution-body td {
  padding: 6px 10px;
  border: 1px solid #e8e8e8;
  font-size: 13px;
}
.solution-body tr:nth-child(even) td { background: #fafbfc; }
.solution-body pre {
  background: #f5f6fa;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 12px;
  overflow-x: auto;
  margin: 8px 0 12px;
  font-size: 12px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-all;
}
.solution-body code {
  font-family: "SF Mono", "Fira Code", "Courier New", monospace;
  color: #333;
}
.solution-body hr {
  border: none;
  border-top: 1px solid #eee;
  margin: 16px 0;
}

/* ===== 方案操作按钮 ===== */
.solution-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 2px solid #f0f0f0;
}
.solution-action-btn {
  flex: 1;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s;
  border: none;
}
.solution-action-btn:active { transform: scale(0.97); }
.solution-action-btn.primary {
  background: #2d5a8e;
  color: #fff;
}
.solution-action-btn.secondary {
  background: #f0f4f8;
  color: #2d5a8e;
  border: 1px solid #d0dbe6;
}

/* ===== 方案模糊遮罩 ===== */
.solution-blur-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 250px;
  background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0.97) 50%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 20px;
}
.blur-lock {
  text-align: center;
}
.blur-lock-icon {
  font-size: 36px;
  margin-bottom: 8px;
}
.blur-lock-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
}
.blur-lock-desc {
  font-size: 13px;
  color: #999;
  margin-bottom: 14px;
}
.blur-lock-btn {
  background: linear-gradient(135deg, #f0a020, #e88810);
  color: #fff;
  border: none;
  padding: 12px 32px;
  border-radius: 24px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s;
}
.blur-lock-btn:active { transform: scale(0.97); }

/* ===== 会员页 ===== */
.membership-area {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
}

/* ===== 解决方案提示横幅 ===== */
.solution-prompt-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
  border: 1px solid #ffb74d;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  animation: promptSlideIn 0.4s ease;
}
@keyframes promptSlideIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
.prompt-banner-icon {
  font-size: 36px;
  flex-shrink: 0;
}
.prompt-banner-content {
  flex: 1;
}
.prompt-banner-title {
  font-size: 16px;
  font-weight: 700;
  color: #e65100;
  margin-bottom: 4px;
}
.prompt-banner-desc {
  font-size: 14px;
  color: #5d4037;
  line-height: 1.5;
}
.prompt-amount {
  color: #d4380d;
  font-weight: 700;
  font-size: 18px;
}

.membership-banner {
  text-align: center;
  background: linear-gradient(135deg, #1a3a5c 0%, #2d5a8e 100%);
  border-radius: 16px;
  padding: 30px 20px;
  color: #fff;
  margin-bottom: 20px;
}
.membership-banner-icon {
  font-size: 48px;
  margin-bottom: 10px;
}
.membership-banner-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
}
.membership-banner-desc {
  font-size: 13px;
  opacity: 0.85;
}

/* ===== 套餐卡片 ===== */
.plan-list {
  margin-bottom: 24px;
}
.plan-card {
  display: flex;
  align-items: center;
  background: #fff;
  border: 2px solid #eee;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
}
.plan-card:active { transform: scale(0.98); }
.plan-recommended {
  border-color: #f0a020;
  background: #fffbf5;
}
.plan-tag {
  position: absolute;
  top: -8px;
  right: 16px;
  background: linear-gradient(135deg, #f0a020, #e88810);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 10px;
}
.plan-radio {
  width: 22px;
  height: 22px;
  border: 2px solid #ddd;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 14px;
  flex-shrink: 0;
}
.plan-radio-inner {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: transparent;
  transition: all 0.2s;
}
.plan-radio-active {
  background: #f0a020;
}
.plan-recommended .plan-radio { border-color: #f0a020; }
.plan-info { flex: 1; }
.plan-name {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}
.plan-desc {
  font-size: 12px;
  color: #999;
  margin-top: 3px;
}
.plan-price {
  text-align: right;
}
.plan-price-symbol {
  font-size: 14px;
  color: #d4380d;
}
.plan-price-num {
  font-size: 28px;
  font-weight: 700;
  color: #d4380d;
}
.plan-price-unit {
  font-size: 12px;
  color: #999;
}
.plan-price-original {
  font-size: 12px;
  color: #ccc;
  text-decoration: line-through;
}

/* ===== 会员权益网格 ===== */
.benefit-section {
  margin-bottom: 24px;
}
.benefit-section-title {
  font-size: 15px;
  font-weight: 600;
  color: #666;
  margin-bottom: 12px;
}
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.benefit-grid-item {
  background: #fff;
  border-radius: 10px;
  padding: 16px 8px;
  text-align: center;
}
.benefit-grid-icon {
  font-size: 28px;
  margin-bottom: 6px;
}
.benefit-grid-text {
  font-size: 12px;
  color: #666;
}

/* ===== 支付按钮 ===== */
.pay-btn {
  background: linear-gradient(135deg, #2d5a8e, #1a3a5c);
  color: #fff;
  text-align: center;
  padding: 16px;
  border-radius: 12px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s;
  margin-bottom: 8px;
}
.pay-btn:active { transform: scale(0.98); }
.pay-tip {
  text-align: center;
  font-size: 12px;
  color: #999;
}

/* ===== 个人中心 ===== */
.profile-area {
  flex: 1;
  padding: 0 0 16px;
  overflow-y: auto;
}
.profile-header {
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #1a3a5c 0%, #2d5a8e 100%);
  padding: 30px 20px;
  color: #fff;
}
.profile-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  margin-right: 16px;
}
.profile-info { flex: 1; }
.profile-name {
  font-size: 18px;
  font-weight: 600;
}
.profile-vip {
  margin-top: 6px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.vip-badge-vip {
  background: linear-gradient(135deg, #f0a020, #e88810);
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}
.vip-expire {
  opacity: 0.8;
  font-size: 11px;
}
.vip-badge-normal {
  background: rgba(255,255,255,0.2);
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 11px;
}
.vip-upgrade {
  color: #ffd700;
  font-size: 12px;
  cursor: pointer;
}

/* ===== 数据统计 ===== */
.profile-stats {
  display: flex;
  background: #fff;
  margin: -16px 12px 16px;
  border-radius: 12px;
  padding: 16px 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  position: relative;
  z-index: 1;
}
.profile-stat {
  flex: 1;
  text-align: center;
  border-right: 1px solid #f0f0f0;
}
.profile-stat:last-child { border-right: none; }
.stat-num {
  font-size: 22px;
  font-weight: 700;
  color: #2d5a8e;
}
.stat-label {
  font-size: 12px;
  color: #999;
  margin-top: 4px;
}

/* ===== 菜单列表 ===== */
.menu-list {
  background: #fff;
  margin: 0 12px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.menu-item {
  display: flex;
  align-items: center;
  padding: 16px;
  cursor: pointer;
  border-bottom: 1px solid #f5f5f5;
  transition: background 0.15s;
}
.menu-item:active { background: #f9f9f9; }
.menu-item:last-child { border-bottom: none; }
.menu-icon {
  font-size: 20px;
  margin-right: 12px;
}
.menu-text {
  flex: 1;
  font-size: 15px;
  color: #333;
}
.menu-arrow {
  font-size: 18px;
  color: #ccc;
}
.profile-disclaimer {
  margin: 20px 12px;
  padding: 12px;
  background: #fffbe6;
  border-radius: 8px;
  border: 1px solid #ffe58f;
  font-size: 12px;
  color: #ad6800;
  line-height: 1.6;
}

/* ===== 设置页 ===== */
.settings-area {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
}
.settings-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.settings-label {
  font-size: 15px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}
.settings-desc {
  font-size: 13px;
  color: #999;
  margin-bottom: 12px;
  line-height: 1.6;
}
.settings-desc a {
  color: #2d5a8e;
}
.settings-input {
  width: 100%;
  border: 2px solid #eee;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
  font-family: monospace;
}
.settings-input:focus { border-color: #2d5a8e; }
.settings-save-btn {
  width: 100%;
  background: #2d5a8e;
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 12px;
}
.settings-save-btn:active { opacity: 0.85; }
.settings-status {
  text-align: center;
  margin-top: 8px;
  font-size: 13px;
}
.settings-status.success { color: #4caf50; }
.settings-status.error { color: #f44336; }
.settings-select {
  width: 100%;
  border: 2px solid #eee;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px;
  outline: none;
  background: #fff;
  cursor: pointer;
}
.settings-tip {
  display: flex;
  gap: 10px;
  background: #e3f2fd;
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 16px;
}
.settings-tip-icon {
  font-size: 20px;
  flex-shrink: 0;
}
.settings-tip-text {
  font-size: 12px;
  color: #1565c0;
  line-height: 1.7;
}

/* ===== 弹窗 ===== */
.modal-mask {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-box {
  background: #fff;
  border-radius: 16px;
  width: 80%;
  max-width: 320px;
  padding: 24px;
  text-align: center;
  animation: modalIn 0.25s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1); }
}
.modal-title {
  font-size: 17px;
  font-weight: 600;
  color: #333;
  margin-bottom: 12px;
}
.modal-content {
  font-size: 14px;
  color: #666;
  line-height: 1.7;
  margin-bottom: 20px;
}
.modal-btns {
  display: flex;
  gap: 10px;
}
.modal-btn {
  flex: 1;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.modal-btn-cancel {
  background: #f5f5f5;
  color: #999;
}
.modal-btn-confirm {
  background: #2d5a8e;
  color: #fff;
}

/* ===== Toast提示 ===== */
.toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.8);
  color: #fff;
  padding: 14px 24px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 10000;
  max-width: 80%;
  text-align: center;
  animation: toastIn 0.3s ease;
}
@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, -40%); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}

/* ===== 响应式 ===== */
@media (max-width: 480px) {
  #app { box-shadow: none; }
}
