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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
  background: #f5f5f5;
  color: #333;
  height: 100vh;
  overflow: hidden;
}

.app {
  display: flex;
  height: 100vh;
}

/* ========== 左侧边栏 ========== */
.sidebar {
  width: 260px;
  background: #e8f5e9;
  border-right: 1px solid #c8e6c9;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.sidebar-header {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-title {
  font-size: 14px;
  font-weight: 600;
  color: #2e7d32;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sidebar-icon {
  width: 18px;
  height: 18px;
}

.new-chat-btn {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: none;
  background: #4caf50;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  transition: background 0.2s;
}
.new-chat-btn:hover { background: #43a047; }

.session-list {
  flex: 1;
  overflow-y: auto;
  padding: 0 8px 8px;
}

.session-group {
  margin-bottom: 8px;
}

.session-group-title {
  font-size: 11px;
  color: #81c784;
  padding: 6px 8px 4px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.session-item {
  padding: 9px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  color: #555;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background 0.15s;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 8px;
  user-select: none;
}
.session-item:hover { background: #c8e6c9; }
.session-item.active {
  background: #a5d6a7;
  color: #1b5e20;
  font-weight: 500;
}

.session-item-icon {
  font-size: 14px;
  flex-shrink: 0;
  opacity: 0.7;
}

.session-item-delete {
  margin-left: auto;
  opacity: 0;
  font-size: 12px;
  color: #999;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  flex-shrink: 0;
}
.session-item:hover .session-item-delete { opacity: 0.6; }
.session-item-delete:hover { opacity: 1 !important; color: #e53935; background: #ffebee; }

/* ========== 主区域 ========== */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  background: #f5f5f5;
}

/* 欢迎页面 */
.welcome {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px 120px;
  overflow-y: auto;
}

.welcome-title {
  font-size: 28px;
  font-weight: 700;
  color: #1a1a1a;
  text-align: center;
}

.welcome-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 10px;
}

.welcome-subtitle {
  font-size: 14px;
  color: #999;
  margin-bottom: 32px;
  text-align: center;
}

.suggestion-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  max-width: 720px;
}

.suggestion-card {
  padding: 10px 18px;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  font-size: 13px;
  color: #555;
  cursor: pointer;
  background: white;
  transition: all 0.2s;
  line-height: 1.4;
}
.suggestion-card:hover {
  border-color: #4caf50;
  color: #2e7d32;
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.12);
}

/* ========== 聊天区域 ========== */
.chat-area {
  flex: 1;
  overflow-y: auto;
  padding: 24px 20px 16px;
  display: none;
}
.chat-area.active { display: block; }

.messages-wrap {
  max-width: 800px;
  margin: 0 auto;
}

.message {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  animation: fadeIn 0.3s ease;
}

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

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

.message-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  user-select: none;
}

.message.assistant .message-avatar {
  background: #e8f5e9;
}

.message.user .message-avatar {
  background: #4caf50;
}

.message-bubble {
  max-width: calc(100% - 60px);
}

.message-content {
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.7;
  word-break: break-word;
}

.message.assistant .message-content {
  background: white;
  border: 1px solid #e8e8e8;
  border-top-left-radius: 4px;
}

.message.user .message-content {
  background: #4caf50;
  color: white;
  border-top-right-radius: 4px;
}

.message.user .message-content a { color: #c8e6c9; text-decoration: underline; }
.message.user .message-content pre { background: rgba(255,255,255,0.15); }
.message.user .message-content code { background: rgba(255,255,255,0.2); }

.message-content p { margin-bottom: 10px; }
.message-content p:last-child { margin-bottom: 0; }

.message-content pre {
  background: #f8f8f8;
  padding: 12px 14px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 10px 0;
  font-size: 12px;
  line-height: 1.5;
}

.message-content code {
  font-family: "SF Mono", Monaco, "Cascadia Code", Consolas, monospace;
  font-size: 12px;
  background: #f0f0f0;
  padding: 2px 5px;
  border-radius: 4px;
}

.message-content pre code {
  background: transparent;
  padding: 0;
}

.message-content ul, .message-content ol {
  margin: 8px 0 8px 20px;
}

.message-content li {
  margin-bottom: 4px;
}

.message-content h1, .message-content h2, .message-content h3 {
  margin: 16px 0 10px;
  font-weight: 600;
}

.message-content h1 { font-size: 18px; }
.message-content h2 { font-size: 16px; }
.message-content h3 { font-size: 14px; }

.message-content blockquote {
  border-left: 3px solid #4caf50;
  padding-left: 12px;
  margin: 10px 0;
  color: #666;
}

.message-content table {
  border-collapse: collapse;
  margin: 10px 0;
  font-size: 13px;
}

.message-content th, .message-content td {
  border: 1px solid #ddd;
  padding: 6px 10px;
  text-align: left;
}

.message-content th {
  background: #f5f5f5;
  font-weight: 600;
}

/* 思考过程折叠 */
.think-block {
  background: #fafafa;
  border: 1px dashed #ddd;
  border-radius: 8px;
  padding: 10px 14px;
  margin: 8px 0;
  font-size: 13px;
  color: #888;
}

.think-header {
  font-size: 12px;
  color: #aaa;
  margin-bottom: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

.think-content {
  display: none;
  line-height: 1.6;
  white-space: pre-wrap;
}

.think-content.open { display: block; }

/* 引用 */
.references {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #f0f0f0;
}

.references-title {
  font-size: 12px;
  color: #888;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.reference-item {
  font-size: 12px;
  color: #555;
  padding: 8px 12px;
  background: #f9f9f9;
  border-radius: 8px;
  margin-bottom: 6px;
  border-left: 3px solid #4caf50;
  line-height: 1.5;
}

.reference-source {
  font-size: 11px;
  color: #aaa;
  margin-top: 4px;
}

/* 图片 */
.message-images {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.message-image {
  max-width: 200px;
  max-height: 200px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}

/* ========== 输入区域 ========== */
.input-area {
  padding: 12px 20px 28px;
  background: #f5f5f5;
  flex-shrink: 0;
}

.input-card {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  border-radius: 16px;
  border: 1px solid #e0e0e0;
  padding: 12px 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.input-textarea {
  width: 100%;
  border: none;
  outline: none;
  resize: none;
  font-size: 14px;
  line-height: 1.6;
  min-height: 22px;
  max-height: 200px;
  font-family: inherit;
  color: #333;
  padding: 0;
}

.input-textarea::placeholder { color: #bbb; }

.selected-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
}

.tag-kb {
  background: #e8f5e9;
  color: #2e7d32;
}

.tag-img {
  background: #fff3e0;
  color: #e65100;
}

.tag-remove {
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  opacity: 0.7;
}
.tag-remove:hover { opacity: 1; }

.input-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #f0f0f0;
}

.toolbar-left, .toolbar-right {
  display: flex;
  align-items: center;
  gap: 4px;
}

.toolbar-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1.5px solid transparent;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  transition: all 0.2s;
  font-size: 15px;
}
.toolbar-btn:hover { background: #f5f5f5; color: #555; }
.toolbar-btn.active { background: #e8f5e9; color: #2e7d32; border: 1.5px solid #4caf50; }

.mode-select, .model-select {
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  background: white;
  font-size: 12px;
  color: #666;
  cursor: pointer;
  outline: none;
  font-family: inherit;
}

.send-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: #4caf50;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: background 0.2s;
}
.send-btn:hover { background: #43a047; }
.send-btn:disabled { background: #c8e6c9; cursor: not-allowed; }

.stop-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: #ff5722;
  color: white;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  transition: background 0.2s;
}
.stop-btn:hover { background: #e64a19; }
.stop-btn.visible { display: flex; }

/* ========== 知识库弹窗 ========== */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.3);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
}
.modal-overlay.active { display: flex; }

.modal {
  background: white;
  border-radius: 16px;
  width: 420px;
  max-height: 520px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  animation: modalIn 0.2s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
}

.kb-item {
  padding: 12px 14px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  transition: background 0.15s;
}
.kb-item:hover { background: #f8f8f8; }
.kb-item.selected { background: #e8f5e9; }

.kb-check {
  width: 18px;
  height: 18px;
  border: 2px solid #ccc;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  font-size: 12px;
  color: white;
  transition: all 0.15s;
}
.kb-item.selected .kb-check {
  background: #4caf50;
  border-color: #4caf50;
}

.kb-meta { flex: 1; min-width: 0; }
.kb-name { font-size: 14px; font-weight: 500; color: #333; }
.kb-desc {
  font-size: 12px;
  color: #999;
  margin-top: 3px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.modal-footer {
  padding: 12px 20px;
  border-top: 1px solid #f0f0f0;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.btn {
  padding: 7px 18px;
  border-radius: 8px;
  border: none;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.btn-primary { background: #4caf50; color: white; }
.btn-primary:hover { background: #43a047; }
.btn-secondary { background: #f5f5f5; color: #666; }
.btn-secondary:hover { background: #eee; }

/* ========== 打字动画 ========== */
.typing {
  display: flex;
  gap: 4px;
  padding: 14px 16px;
  background: white;
  border: 1px solid #e8e8e8;
  border-radius: 14px;
  border-top-left-radius: 4px;
  width: fit-content;
  margin-bottom: 20px;
  margin-left: 44px;
}

.typing span {
  width: 7px;
  height: 7px;
  background: #ccc;
  border-radius: 50%;
  animation: typing 1.4s infinite ease-in-out;
}
.typing span:nth-child(2) { animation-delay: 0.2s; }
.typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

/* ========== 滚动条 ========== */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #c8e6c9; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #a5d6a7; }

/* ========== 工具提示 ========== */
[title] { position: relative; }

/* ========== 响应式 ========== */
@media (max-width: 768px) {
  .sidebar { display: none; }
  .chat-area { padding: 16px 12px; }
  .input-area { padding: 10px 12px 14px; }
  .welcome-title { font-size: 22px; }
}

/* ========== 登录页面 ========== */
.login-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, #e8f5e9 0%, #fff8e1 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
}

.login-overlay.hidden { display: none; }

.login-box {
  background: white;
  border-radius: 20px;
  padding: 40px 36px;
  width: 420px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  animation: modalIn 0.3s ease;
}

.login-logo {
  color: #4caf50;
  margin-bottom: 12px;
}

.login-title {
  font-size: 20px;
  color: #333;
  margin: 0;
  font-weight: 600;
}

.login-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 28px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: stretch;
  text-align: left;
}

.login-input {
  padding: 14px 18px;
  border: 1.5px solid #e0e0e0;
  border-radius: 10px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
  font-family: inherit;
  width: 100%;
  box-sizing: border-box;
  text-align: left;
  margin-bottom: 16px;
}
.login-input:focus { border-color: #4caf50; }

.login-btn {
  padding: 14px;
  background: #4caf50;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 8px;
  font-family: inherit;
  width: 100%;
  box-sizing: border-box;
}
.login-btn:hover { background: #43a047; }
.login-btn:disabled { background: #a5d6a7; cursor: not-allowed; }

.login-error {
  color: #f44336;
  font-size: 13px;
  min-height: 18px;
}

/* 登录 Tab 切换 */
.login-tabs {
  display: flex;
  margin-bottom: 24px;
  border-bottom: 1px solid #e0e0e0;
  text-align: center;
}

.login-tab {
  flex: 1;
  padding: 10px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  color: #666;
  position: relative;
  transition: color 0.2s;
  font-family: inherit;
  text-align: center;
}

.login-tab.active {
  color: #4caf50;
  font-weight: 600;
}

.login-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 20%;
  width: 60%;
  height: 2px;
  background: #4caf50;
  border-radius: 1px;
}

/* 验证码输入行 */
.login-input-row {
  display: flex;
  gap: 10px;
  margin-bottom: 0;
}

.login-input-code {
  flex: 1;
  margin-bottom: 0 !important;
}

.send-code-btn {
  padding: 0 16px;
  border: 1.5px solid #4caf50;
  background: #fff;
  color: #4caf50;
  border-radius: 10px;
  cursor: pointer;
  font-size: 13px;
  white-space: nowrap;
  transition: all 0.2s;
  font-family: inherit;
}

.send-code-btn:hover:not(:disabled) {
  background: #4caf50;
  color: #fff;
}

.send-code-btn:disabled {
  border-color: #ccc;
  color: #999;
  cursor: not-allowed;
  background: #f5f5f5;
}

/* ========== 用户信息栏 ========== */
.user-bar {
  padding: 10px 16px;
  border-top: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fafafa;
  font-size: 12px;
  color: #888;
}

.user-bar .user-info {
  display: flex;
  align-items: center;
  gap: 6px;
}

.user-bar .user-name {
  font-weight: 600;
  color: #555;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-bar .remaining {
  color: #4caf50;
  font-weight: 600;
}

.user-bar .remaining.exhausted {
  color: #f44336;
}

.logout-btn {
  background: none;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 3px 10px;
  font-size: 12px;
  color: #888;
  cursor: pointer;
  font-family: inherit;
}
.logout-btn:hover { background: #f5f5f5; color: #555; }

/* user-bar actions：设置按钮和退出并排 */
.user-bar-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}
.profile-btn {
  background: none;
  border: none;
  border-radius: 4px;
  padding: 3px 6px;
  font-size: 14px;
  cursor: pointer;
  color: #aaa;
  transition: color 0.2s;
}
.profile-btn:hover { color: #555; background: #f5f5f5; }

/* ========== 用户管理入口 ========== */
.admin-entry {
  padding: 10px 16px;
  border-top: 1px solid #f0f0f0;
  display: flex;
  justify-content: center;
}
.admin-btn {
  background: none;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 12px;
  color: #888;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}
.admin-btn:hover { background: #f5f5f5; color: #555; }

/* ========== 管理面板弹窗 ========== */
.admin-modal {
  width: 640px;
  max-height: 80vh;
}
.modal-close {
  margin-left: auto;
  text-decoration: none;
  color: #999;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
}
.modal-close:hover { color: #333; }

.admin-toolbar {
  padding: 8px 0;
  display: flex;
  gap: 8px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.admin-table th {
  text-align: left;
  padding: 8px 10px;
  background: #f8f8f8;
  color: #666;
  font-weight: 600;
  border-bottom: 1px solid #e0e0e0;
}
.admin-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: middle;
}
.admin-table tr:hover td {
  background: #f8f8f8;
}

.admin-actions {
  display: flex;
  gap: 4px;
}
.btn-sm {
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
  background: white;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}
.btn-sm:hover { background: #f5f5f5; }
.btn-danger { border-color: #ffcdd2; color: #f44336; }
.btn-danger:hover { background: #ffebee; }

/* ========== 新增用户弹窗 ========== */
.create-user-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.create-user-form .form-label {
  display: block;
  font-size: 13px;
  color: #555;
  font-weight: 500;
  margin-bottom: 4px;
}
.create-user-form .form-input,
.create-user-form .form-select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}
.create-user-form .form-input:focus,
.create-user-form .form-select:focus {
  border-color: #4caf50;
}
.create-user-form .form-select {
  cursor: pointer;
  background: white;
}
.create-user-form .form-hint {
  font-size: 12px;
  color: #999;
  margin-top: 4px;
}
.admin-hint {
  font-size: 12px;
  color: #999;
  line-height: 1.8;
}

/* ========== 个人设置弹窗 ========== */
.profile-modal {
  width: 460px;
  max-width: 95vw;
  max-height: 85vh;
}
.profile-tabs {
  display: flex;
  border-bottom: 1px solid #eee;
  margin-bottom: 20px;
}
.profile-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 8px 18px;
  font-size: 14px;
  color: #888;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}
.profile-tab.active {
  color: #333;
  border-bottom-color: #4a7c59;
  font-weight: 500;
}
.profile-tab:hover { color: #555; }

.profile-section {
  padding: 4px 0;
}
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-size: 13px;
  color: #555;
  margin-bottom: 6px;
  font-weight: 500;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  color: #333;
  background: #fafafa;
  transition: border-color 0.2s;
  resize: none;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #4a7c59;
  background: #fff;
}
.form-tip {
  font-size: 13px;
  min-height: 18px;
  margin-bottom: 12px;
  color: #888;
}
.form-tip.error { color: #e53935; }
.form-tip.success { color: #4a7c59; }

.profile-save-btn {
  width: 100%;
  padding: 9px;
  font-size: 14px;
}

/* ==================== 提升配额按钮 ==================== */
.boost-btn {
  background: linear-gradient(135deg, #ffa726, #ff7043);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 2px 10px;
  font-size: 11px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}
.boost-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(255,112,67,0.4);
}

/* ==================== 支付档位卡片 ==================== */
.payment-tiers {
  display: flex;
  gap: 12px;
  justify-content: center;
}
.payment-tier-card {
  flex: 1;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 20px 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: #fafafa;
}
.payment-tier-card:hover {
  border-color: #07c160;
  background: #f0fff4;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.payment-tier-card .tier-amount {
  font-size: 28px;
  font-weight: 700;
  color: #07c160;
  margin-bottom: 6px;
}
.payment-tier-card .tier-boost {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}
.payment-tier-card .tier-desc {
  font-size: 11px;
  color: #999;
}

/* ICP备案 footer */
.icp-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  padding: 4px 0;
  font-size: 12px;
  color: #999;
  background: transparent;
  z-index: 9999;
  pointer-events: none;
}
.icp-footer a {
  color: #999;
  text-decoration: none;
  transition: color 0.2s;
  pointer-events: auto;
}
.icp-footer a:hover {
  color: #4caf50;
  text-decoration: underline;
}
