* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #f0f4ff;
  color: #333;
  line-height: 1.5;
  font-size: 14px;
  padding-bottom: 70px;
}

.app-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #f0f4ff;
}

/* ========== 顶部导航 ========== */
.header {
  background: #fff;
  color: #1E8DF8;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid #e3edff;
}

.header-title {
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  flex: 1;
  color: #1E8DF8;
}

.header-icon {
  color: #1E8DF8;
  font-size: 22px;
  text-decoration: none;
  line-height: 1;
}

.settings-icon {
  font-size: 22px;
  text-decoration: none;
  color: #1E8DF8;
}

/* ========== 欢迎横幅 ========== */
.welcome-banner {
  background: #fff;
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  margin: 10px 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.welcome-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e3edff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.welcome-info {
  flex: 1;
  padding: 0 12px;
}

.welcome-name {
  font-size: 14px;
  font-weight: 600;
  color: #1E8DF8;
}

.welcome-btn {
  display: inline-block;
  background: #1E8DF8;
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  text-decoration: none;
  flex-shrink: 0;
  line-height: 1.4;
}

/* ========== 用户信息栏 ========== */
.user-bar {
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  margin: 16px;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.user-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #1E8DF8;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 600;
  margin-right: 12px;
  flex-shrink: 0;
}

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

.user-name {
  font-size: 16px;
  font-weight: 600;
  color: #1E8DF8;
  margin-bottom: 4px;
}

.user-points {
  font-size: 13px;
  color: #6b9ed6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ========== 输入区域 ========== */
.main-content {
  padding: 0 16px 16px;
  flex: 1;
}

.input-area {
  margin-bottom: 16px;
}

.prompt-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.prompt-label {
  font-size: 14px;
  color: #666;
}

.upload-btn-small {
  font-size: 13px;
  color: #999;
  cursor: pointer;
  background: #f5f5f5;
  padding: 4px 10px;
  border-radius: 12px;
}

.upload-btn-small:active {
  background: #eee;
}

#uploadedImagePreview {
  margin-top: 10px;
}

.preview-small {
  display: inline-block;
  position: relative;
}

.preview-small img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
}

.remove-btn-small {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  line-height: 1;
}

.input-wrapper {
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(30, 141, 248, 0.08);
}

.prompt-textarea {
  width: 100%;
  min-height: 100px;
  border: 2px solid #e3edff;
  border-radius: 12px;
  padding: 14px;
  font-size: 15px;
  line-height: 1.6;
  resize: vertical;
  transition: border-color 0.2s;
  outline: none;
}

.prompt-textarea:focus {
  border-color: #1E8DF8;
}

.char-count {
  text-align: right;
  color: #aaa;
  font-size: 12px;
  margin-top: 6px;
}

/* ========== 选项区域 ========== */
.options-area {
  margin-bottom: 16px;
}

.option-title {
  font-size: 15px;
  font-weight: 600;
  color: #333;
  margin-bottom: 10px;
  padding-left: 4px;
}

.style-tags,
.aspect-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.style-tag,
.aspect-tag {
  display: inline-block;
  padding: 8px 16px;
  background: #fff;
  border: 2px solid #eee;
  border-radius: 20px;
  font-size: 13px;
  color: #555;
  cursor: pointer;
  transition: all 0.2s;
}

.style-tag.active,
.aspect-tag.active {
  background: #1E8DF8;
  color: #fff;
  border-color: #1E8DF8;
}

/* ========== 生成按钮 ========== */
.generate-btn {
  width: 100%;
  padding: 16px;
  background: #1E8DF8;
  color: #fff;
  border: none;
  border-radius: 16px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 16px;
}

.generate-btn:active {
  transform: scale(0.98);
}

.generate-btn.disabled {
  opacity: 0.6;
  pointer-events: none;
}

/* ========== 生成动画 ========== */
.generating-area {
  padding: 16px;
  margin: 0 16px;
}

.generating-animation {
  background: #fff;
  border-radius: 16px;
  padding: 40px 20px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.gen-spinner {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}

.gen-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #1E8DF8;
  animation: bounce 1.4s infinite ease-in-out both;
}

.gen-dot:nth-child(1) { animation-delay: -0.32s; }
.gen-dot:nth-child(2) { animation-delay: -0.16s; }
.gen-dot:nth-child(3) { animation-delay: 0s; }

@keyframes bounce {
  0%, 80%, 100% { transform: scale(0); opacity: 0.3; }
  40% { transform: scale(1); opacity: 1; }
}

.generating-text {
  font-size: 18px;
  font-weight: 600;
  color: #1E8DF8;
  margin-bottom: 6px;
}

.generating-subtext {
  font-size: 13px;
  color: #6b9ed6;
}

/* ========== 结果区域 ========== */
.result-area {
  padding: 16px;
}

.result-header {
  background: #fff;
  border-radius: 16px 16px 0 0;
  padding: 16px;
  border-bottom: 1px solid #e3edff;
}

.result-title {
  font-size: 16px;
  font-weight: 600;
  color: #1E8DF8;
}

.result-image-wrapper {
  background: #fff;
  border-radius: 0 0 16px 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(30, 141, 248, 0.12);
}

.result-image {
  width: 100%;
  display: block;
}

.result-actions {
  padding: 16px;
  display: flex;
  gap: 12px;
}

.action-btn {
  flex: 1;
  padding: 12px;
  background: #f5f7fa;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  color: #333;
  cursor: pointer;
}

/* ========== 加载遮罩 ========== */
.loading-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: 999;
}

.loading-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
}

.spinner-inner {
  width: 100%;
  height: 100%;
  border: 4px solid #e3edff;
  border-top-color: #1E8DF8;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.loading-text {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}

.loading-subtext {
  color: #888;
  font-size: 14px;
}

/* ========== 底部导航 ========== */
.footer {
  background: #fff;
  display: flex;
  justify-content: space-around;
  padding: 14px 0 18px;
  box-shadow: 0 -2px 10px rgba(30, 141, 248, 0.08);
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-top: 1px solid #e3edff;
}

.footer-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #6b9ed6;
  font-size: 12px;
  flex: 1;
  padding: 4px 0;
  position: relative;
}

.footer-tab::before {
  content: '';
  display: block;
  width: 22px;
  height: 22px;
  margin-bottom: 3px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* 首页图标 - 房子 */
.footer-tab[href="/"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b9ed6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3Cpolyline points='9 22 9 12 15 12 15 22'/%3E%3C/svg%3E");
}
.footer-tab.active[href="/"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231E8DF8' stroke='%231E8DF8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3Cpolyline points='9 22 9 12 15 12 15 22'/%3E%3C/svg%3E");
}

/* 生图图标 - 画笔 */
.footer-tab[href="/generate"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b9ed6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 19l7-7 3 3-7 7-3-3z'/%3E%3Cpath d='M18 13l-1.5-7.5L2 2l3.5 14.5L13 18l5-5z'/%3E%3Cpath d='M2 2l7.586 7.586'/%3E%3Ccircle cx='11' cy='11' r='2'/%3E%3C/svg%3E");
}
.footer-tab.active[href="/generate"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231E8DF8' stroke='%231E8DF8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 19l7-7 3 3-7 7-3-3z'/%3E%3Cpath d='M18 13l-1.5-7.5L2 2l3.5 14.5L13 18l5-5z'/%3E%3Cpath d='M2 2l7.586 7.586'/%3E%3Ccircle cx='11' cy='11' r='2'/%3E%3C/svg%3E");
}

/* 充值图标 - 钱包 */
.footer-tab[href="/recharge"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b9ed6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cline x1='2' y1='10' x2='22' y2='10'/%3E%3Ccircle cx='17' cy='15' r='1'/%3E%3C/svg%3E");
}
.footer-tab.active[href="/recharge"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231E8DF8' stroke='%231E8DF8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cline x1='2' y1='10' x2='22' y2='10'/%3E%3Ccircle cx='17' cy='15' r='1'/%3E%3C/svg%3E");
}

/* 我的图标 - 用户 */
.footer-tab[href="/settings"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b9ed6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
}
.footer-tab.active[href="/settings"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231E8DF8' stroke='%231E8DF8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
}

.footer-tab.active {
  color: #1E8DF8;
}

/* ========== Toast提示 ========== */
.toast {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 2000;
  display: none;
  white-space: nowrap;
}

.toast.show {
  display: block;
  animation: fadeIn 0.3s;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translate(-50%, -20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* ========== 登录/注册页 ========== */
.auth-page {
  min-height: 100vh;
  background: #fff;
  padding: 60px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.auth-header {
  text-align: center;
  color: #1E8DF8;
  margin-bottom: 32px;
}

.auth-header h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}

.auth-header p {
  font-size: 16px;
  color: #6b9ed6;
}

.auth-form {
  background: #fff;
  border-radius: 20px;
  padding: 32px 24px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 10px 40px rgba(30, 141, 248, 0.12);
  border: 1px solid #e3edff;
}

.auth-title {
  font-size: 20px;
  font-weight: 600;
  color: #1E8DF8;
  margin-bottom: 24px;
  text-align: center;
}

.form-row {
  margin-bottom: 16px;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e3edff;
  border-radius: 12px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}

.form-input:focus {
  border-color: #1E8DF8;
}

.auth-btn {
  width: 100%;
  padding: 16px;
  background: #1E8DF8;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
}

.auth-btn:active {
  opacity: 0.9;
}

.auth-link {
  text-align: center;
  margin-top: 20px;
  color: #6b9ed6;
  font-size: 14px;
}

.auth-link a {
  color: #1E8DF8;
  text-decoration: none;
  font-weight: 500;
}

.auth-agreement {
  text-align: center;
  margin-top: 16px;
  color: #999;
  font-size: 12px;
  line-height: 1.5;
}

.auth-agreement a {
  color: #1E8DF8;
  text-decoration: underline;
}

.auth-icp {
  text-align: center;
  padding: 20px 0;
  color: #ccc;
  font-size: 12px;
}

.code-btn {
  padding: 14px 16px;
  background: #1E8DF8;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
}

.code-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* ========== 图片网格（历史） ========== */
.image-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.image-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(30, 141, 248, 0.08);
}

.image-wrapper {
  aspect-ratio: 1;
  overflow: hidden;
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-info {
  padding: 10px;
}

.image-prompt {
  font-size: 13px;
  color: #1E8DF8;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.image-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.meta-time {
  font-size: 11px;
  color: #aaa;
}

.meta-points {
  font-size: 11px;
  color: #1E8DF8;
}

.image-actions {
  display: flex;
  gap: 8px;
}

.action-link {
  font-size: 11px;
  color: #1E8DF8;
  text-decoration: none;
}

.copy-link {
  color: #6b9ed6;
  cursor: pointer;
}

/* ========== 分页 ========== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding-bottom: 16px;
}

.page-link {
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
  color: #1E8DF8;
  font-size: 14px;
  background: #fff;
  border: 1px solid #e3edff;
}

.page-link.active {
  background: #1E8DF8;
  color: #fff;
}

/* ========== 空状态 ========== */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-icon {
  font-size: 64px;
  margin-bottom: 16px;
}

.empty-text {
  font-size: 16px;
  color: #999;
  margin-bottom: 24px;
}

/* ========== 余额卡片（充值页） ========== */
.balance-card {
  background: #fff;
  color: #1E8DF8;
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(30, 141, 248, 0.12);
  border: 1px solid #e3edff;
}

.balance-label {
  font-size: 14px;
  color: #6b9ed6;
  margin-bottom: 8px;
}

.balance-amount {
  font-size: 42px;
  font-weight: 700;
}

.free-hint {
  font-size: 13px;
  margin-top: 12px;
  color: #1E8DF8;
}

/* ========== 充值方案 ========== */
.plan-list {
  display: grid;
  gap: 12px;
}

.plan-card {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  position: relative;
  box-shadow: 0 2px 8px rgba(30, 141, 248, 0.08);
}

.plan-card.recommended {
  border: 2px solid #1E8DF8;
}

.plan-badge {
  position: absolute;
  top: 0;
  right: 16px;
  background: #1E8DF8;
  color: #fff;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 0 0 6px 6px;
}

.plan-content {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.plan-points {
  font-size: 22px;
  font-weight: 700;
  color: #1E8DF8;
}

.plan-price {
  font-size: 18px;
  font-weight: 600;
  color: #6b9ed6;
}

.plan-unit {
  font-size: 12px;
  color: #aaa;
}

.plan-btn {
  width: 100%;
  padding: 12px;
  background: #1E8DF8;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

.plan-btn.disabled {
  background: #ccc;
  cursor: not-allowed;
}

.payment-note {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  margin-top: 20px;
}

.payment-note p {
  font-size: 13px;
  color: #888;
  margin-bottom: 4px;
}

/* ========== 模态框（充值） ========== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(30, 141, 248, 0.3);
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-dialog {
  background: #fff;
  border-radius: 16px;
  width: 90%;
  max-width: 420px;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  z-index: 2001;
}

.modal-content {
  background: #fff;
  border-radius: 16px;
  width: 90%;
  max-width: 360px;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  z-index: 1;
}

.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid #e3edff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-size: 17px;
  color: #1E8DF8;
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #6b9ed6;
  line-height: 1;
}

.modal-body {
  padding: 20px;
}

.pay-info {
  margin-bottom: 20px;
}

.pay-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #e3edff;
}

.pay-value {
  font-weight: 600;
  color: #1E8DF8;
}

.pay-type {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.pay-option {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px;
  border: 2px solid #e3edff;
  border-radius: 10px;
  cursor: pointer;
}

.pay-option input {
  accent-color: #1E8DF8;
}

.modal-btn {
  width: 100%;
  padding: 16px;
  background: #1E8DF8;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
}

/* ========== 个人中心 ========== */
.profile-header {
  background: #fff;
  color: #1E8DF8;
  border-radius: 16px;
  padding: 24px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(30, 141, 248, 0.12);
  border: 1px solid #e3edff;
}

.profile-avatar {
  width: 56px;
  height: 56px;
  background: #1E8DF8;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  flex-shrink: 0;
}

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

.profile-name {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
}

.profile-email {
  font-size: 13px;
  color: #6b9ed6;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.stat-item {
  background: #fff;
  border-radius: 12px;
  padding: 14px 8px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(30, 141, 248, 0.08);
}

.stat-value {
  font-size: 22px;
  font-weight: 700;
  color: #1E8DF8;
}

.stat-label {
  font-size: 11px;
  color: #6b9ed6;
  margin-top: 4px;
}

.tip-card {
  background: #f0f4ff;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 20px;
}

.tip-card p {
  font-size: 13px;
  color: #1E8DF8;
}

.menu-list {
  background: #fff;
  border-radius: 12px;
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(30, 141, 248, 0.08);
}

.menu-item {
  display: flex;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid #e3edff;
  text-decoration: none;
  color: #1E8DF8;
}

.menu-item:last-child {
  border-bottom: none;
}

.menu-icon {
  font-size: 20px;
  margin-right: 12px;
}

.menu-text {
  flex: 1;
  font-size: 15px;
}

.menu-arrow {
  color: #6b9ed6;
  font-size: 18px;
}

.logout-btn {
  width: 100%;
  padding: 14px;
  background: #fff;
  border: 1px solid #e3edff;
  border-radius: 12px;
  font-size: 15px;
  color: #1E8DF8;
  cursor: pointer;
  font-weight: 500;
}

/* ========== 订单列表 ========== */
.order-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.order-card {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(30, 141, 248, 0.08);
}

.order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e3edff;
}

.order-no {
  font-size: 13px;
  color: #6b9ed6;
  font-family: monospace;
}

.order-status {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 10px;
}

.order-status.paid {
  background: #e3edff;
  color: #1E8DF8;
}

.order-status.pending {
  background: #fff3e0;
  color: #ef6c00;
}

.order-status.refunded {
  background: #fce4ec;
  color: #c62828;
}

.order-info {
  margin-bottom: 12px;
}

.order-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 14px;
}

.order-row .amount {
  color: #1E8DF8;
  font-weight: 600;
}

.order-pay-btn {
  width: 100%;
  padding: 10px;
  background: #1E8DF8;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
}

/* ========== 修改密码 ========== */
.pw-form {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(30, 141, 248, 0.12);
}

.pw-form .form-row {
  margin-bottom: 20px;
}

.pw-form .auth-btn {
  margin-top: 0;
}

/* ========== 维护页 ========== */
.maintenance-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: #fff;
}

.maintenance-box {
  text-align: center;
  color: #333;
  max-width: 360px;
}

.maintenance-icon {
  font-size: 80px;
  margin-bottom: 24px;
}

.maintenance-box h2 {
  font-size: 24px;
  margin-bottom: 12px;
}

.maintenance-box p {
  color: #666;
  font-size: 15px;
}

/* ========== 示例网格 ========== */
.examples-section {
  padding: 0 16px 24px;
}

.section-title {
  font-size: 17px;
  font-weight: 600;
  color: #1E8DF8;
  margin-bottom: 14px;
}

.examples-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.example-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(30, 141, 248, 0.12);
  cursor: pointer;
  transition: transform 0.15s;
}

.example-card:active {
  transform: scale(0.97);
}

.example-image-wrapper {
  position: relative;
  width: 100%;
  padding-top: 130%;
  overflow: hidden;
}

.example-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.example-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  background: transparent;
  align-items: center;
  justify-content: center;
}

.example-modal-content {
  background: #fff;
  border-radius: 16px;
  width: 90%;
  max-width: 420px;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
}

.modal-example-img {
  width: 100%;
  border-radius: 16px 16px 0 0;
  display: block;
}

.modal-example-info {
  padding: 20px 16px;
}

.modal-example-title {
  font-size: 18px;
  font-weight: 600;
  color: #1E8DF8;
  margin-bottom: 10px;
}

.modal-example-prompt {
  font-size: 14px;
  color: #6b9ed6;
  line-height: 1.6;
  margin-bottom: 16px;
  word-break: break-all;
}

.modal-generate-btn {
  width: 100%;
  padding: 14px;
  background: #1E8DF8;
  color: #fff;
  border: none;
  border-radius: 24px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
}

.modal-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  background: rgba(30, 141, 248, 0.7);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  cursor: pointer;
  z-index: 10;
}

/* ========== 示例提示 ========== */
.examples-hint {
  margin: 16px 16px 8px;
}

.examples-hint-link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  background: #fff;
  border-radius: 12px;
  text-decoration: none;
  color: #1E8DF8;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(30, 141, 248, 0.08);
  gap: 6px;
  transition: background 0.15s;
}

.examples-hint-link:active {
  background: #f0f4ff;
}
