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

:root {
  --primary-color: #f56351;
  --primary-dark: #e05341;
  --primary-light: #ff8272;
  --primary-rgb: 245, 99, 81;
  --primary-dark-rgb: 224, 83, 65;
  --primary-light-rgb: 255, 130, 114;
  --secondary-color: #ff6b6b;
  --text-primary: #333;
  --text-secondary: #666;
  --text-light: #999;
  --bg-light: #f8f9fa;
  --bg-primary: #ffffff;
  --border-color: #e5e7eb;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 4px 20px rgba(245, 99, 81, 0.4);
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --text-primary: #e0e0e0;
    --text-secondary: #b0b0b0;
    --text-light: #808080;
    --bg-light: #1a1a1a;
    --bg-primary: #1a1a2e;
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 4px 20px rgba(245, 99, 81, 0.3);
  }
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(180deg, #c3cfe2 0%, #f5f7fa 100%);
  background-attachment: fixed;
  min-height: 100vh;
  padding-bottom: 65px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background:
    radial-gradient(circle at 18% 15%, rgba(245, 99, 81, .24), transparent 28%),
    radial-gradient(circle at 84% 78%, rgba(255, 130, 114, .22), transparent 30%),
    linear-gradient(135deg, #fff0ed 0%, #f8f3f1 52%, #fff7f5 100%);
}

body.is-authenticated .auth-gate {
  display: none;
}

@media (prefers-color-scheme: dark) {
  body {
    background: #121212;
  }
}

body::-webkit-scrollbar {
  display: none;
}

html.scan-fixed,
body.scan-fixed {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
}

body.scan-fixed {
  position: fixed;
  inset: 0;
  width: 100%;
  padding-bottom: 0;
}

* {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

*::-webkit-scrollbar {
  display: none;
}

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

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

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

/* 加载动画 */
.loading-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--primary-color);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 22px;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-overlay.hidden {
  opacity: 0;
  visibility: hidden;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.loading-18 {
  width: 48px;
  height: 48px;
  display: inline-block;
  position: relative;
  border: 2px solid #ddd;
  animation: loading-18-0 2s linear infinite;
}

.loading-18:after,
.loading-18:before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  border: 2px solid #ff3d00;
  width: 38px;
  height: 38px;
  animation: loading-18-1 1.5s linear infinite;
  transform-origin: center center;
}

.loading-18:before {
  width: 28px;
  height: 28px;
  border-color: #ddd;
  animation: loading-18-0 1s linear infinite;
}

.loading-text {
  color: #fff;
  font-size: 16px;
  font-weight: 400;
}

@keyframes loading-18-0 {
  0% { transform: rotate(0); }
  to { transform: rotate(360deg); }
}

@keyframes loading-18-1 {
  0% { transform: rotate(0); }
  to { transform: rotate(-360deg); }
}

.loading-tip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 0;
  gap: 12px;
}

.loading-tip span {
  font-size: 14px;
  color: var(--text-light);
}

/* 主横幅 */
.banner {
  background: transparent;
  padding: 80px 16px;
  position: relative;
  border-radius: 0;
  box-shadow: none;
}

#pageMy .banner {
  /* margin-top 已经把整卡向下推过状态栏，卡片内部只需常规 padding，
     避免与 --app-safe-area-top 重复叠加导致顶部空白过高 */
  padding: clamp(16px, 4.5vw, 24px) clamp(12px, 4vw, 16px);
  margin-top: calc(12px + var(--app-safe-area-top, 0px)) !important;
  margin-right: 16px !important;
  margin-bottom: 0 !important;
  margin-left: 16px !important;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(var(--primary-rgb), 0.25);
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  width: auto !important;
  max-width: none !important;
  box-sizing: border-box;
}

.banner::before {
  display: none;
}

/* 个人中心页面 banner 装饰需要显示 ::before 伪元素 */
#pageMy .banner::before {
  display: block;
}

/* 个人中心通用布局（与用户端 base.css 保持一致） */
.banner .my-profile {
  display: flex;
  align-items: center;
  padding: 20px;
  gap: 16px;
}

.profile-name[data-logged-in="true"] {
  color: var(--text-primary);
  font-weight: 600;
}

.profile-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.banner-content {
  text-align: center;
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
  animation: fadeInUp 0.8s ease-out;
}

.banner-title {
  font-size: clamp(26px, 8vw, 32px);
  font-weight: 800;
  color: #1f2b3a;
  margin-bottom: 14px;
  letter-spacing: 2px;
  white-space: nowrap;
}

.banner-subtitle {
  font-size: 17px;
  color: rgba(31, 43, 58, 0.65);
  font-weight: 500;
  letter-spacing: 3px;
}

.banner-wave {
  position: absolute;
  bottom: -79px;
  left: 0;
  width: 100%;
  height: 80px;
  transform: scaleY(-1);
}

/* ==================== 底部导航（复制 dbdh 魔法导航栏样式） ==================== */
.bottom-nav {
  --nav-item-size: clamp(58px, calc((100vw - 24px) / 5), 70px);
  --nav-list-width: calc(var(--nav-item-size) * 5);
  position: fixed;
  bottom: 0;
  left: 50%;
  right: auto;
  width: 100%;
  max-width: 440px;
  height: var(--nav-item-size);
  padding: 0;
  border: 0;
  border-radius: 14px 14px 0 0;
  background: linear-gradient(90deg, #F56351, #F0627D);
  box-shadow: 0 12px 34px rgba(var(--primary-rgb), 0.32);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
  z-index: 100;
  transform: translateX(-50%);
  transition: opacity var(--transition-fast);
}

.bottom-nav .nav-item {
  position: relative;
  flex: 0 0 var(--nav-item-size);
  width: var(--nav-item-size);
  height: var(--nav-item-size);
  min-width: 0;
  padding: 0;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  color: #fff;
  cursor: pointer;
  z-index: 1;
  -webkit-tap-highlight-color: transparent;
}

.bottom-nav .nav-item:not(.scan-item) .nav-icon {
  transform: translateY(-6px);
}

.bottom-nav .nav-item:active,
.bottom-nav .nav-item:focus {
  outline: none;
  background: transparent !important;
  box-shadow: none !important;
}

.bottom-nav .nav-item:hover,
.bottom-nav .nav-item.active {
  color: #fff;
}

.bottom-nav .nav-icon,
.bottom-nav .scan-icon {
  position: relative;
  display: block;
  width: 1.5em;
  height: 1.5em;
  color: currentColor;
  transition: 0.5s;
}

.bottom-nav .nav-icon path,
.bottom-nav .scan-icon path {
  fill: currentColor !important;
}

.bottom-nav .nav-item.scan-item {
  justify-content: center;
  padding-bottom: 0;
}

.bottom-nav .nav-item.scan-item::before {
  content: '';
  display: block;
  width: 1.5em;
  height: 1.5em;
  transform: translateY(-6px);
  pointer-events: none;
}

.bottom-nav .nav-item.scan-item .scan-icon-bg {
  position: absolute;
  top: 0;
  left: 50%;
  margin: 0;
  transform: translate(-50%, -50%);
}

.bottom-nav .nav-text {
  position: static;
  color: #fff;
  font-size: 0.72em;
  font-weight: 400;
  letter-spacing: 0.05em;
  opacity: 1;
  transition: 0.3s;
  white-space: nowrap;
  line-height: 1;
}

.bottom-nav .nav-item .nav-badge-dot {
  position: absolute;
  top: 4px;
  right: calc(50% - 18px);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff6b6b;
  box-shadow: 0 0 0 2px #fff;
  font-style: normal;
}

.bottom-nav .nav-item.scan-item .nav-text {
  position: static;
}

.bottom-nav .nav-item:not(.scan-item).active .nav-text {
  font-weight: 600;
}

.bottom-nav .nav-item:not(.scan-item).active .nav-icon {
  transform: translateY(-8px) scale(1.08);
}

.bottom-nav .nav-item::after {
  display: none;
}

.bottom-nav .nav-item.scan-item::after {
  content: '';
  position: absolute;
  display: block;
  top: 0;
  left: 50%;
  width: calc(var(--nav-item-size) * 0.72);
  height: calc(var(--nav-item-size) * 0.72);
  border: 1.8px solid #fff;
  border-radius: 50%;
  box-sizing: border-box;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 2;
}

.bottom-nav .scan-icon-bg {
  position: relative;
  top: auto;
  width: auto;
  height: auto;
  margin: 0;
  border-radius: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: none;
}

.bottom-nav .nav-item.scan-item .scan-icon {
  width: 42px;
  height: 42px;
  transition: none;
}

.bottom-nav .nav-item.scan-item:hover .scan-icon-bg,
.bottom-nav .nav-item.scan-item.active:hover .scan-icon-bg,
.bottom-nav .nav-item.scan-item:active .scan-icon-bg {
  transform: translate(-50%, -50%);
}

.nav-indicator {
  position: absolute;
  top: -50%;
  left: calc((100% - var(--nav-list-width)) / 2);
  width: var(--nav-item-size);
  height: var(--nav-item-size);
  box-sizing: border-box;
  border-radius: 50%;
  border: 6px solid #e5e5e5;
  background: linear-gradient(90deg, #F56351, #F0627D);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  transform: translateX(calc(var(--nav-item-size) * 4));
  transition: none;
  pointer-events: none;
}

.nav-indicator::before,
.nav-indicator::after {
  display: none;
}

.bottom-nav .nav-item.scan-item.active ~ .nav-indicator,
.bottom-nav .nav-item.active:not(.scan-item) ~ .nav-indicator,
.bottom-nav .nav-item:nth-child(1).active ~ .nav-indicator,
.bottom-nav .nav-item:nth-child(2).active ~ .nav-indicator,
.bottom-nav .nav-item:nth-child(3).active ~ .nav-indicator,
.bottom-nav .nav-item:nth-child(4).active ~ .nav-indicator,
.bottom-nav .nav-item:nth-child(5).active ~ .nav-indicator {
  opacity: 1;
  transform: translateX(calc(var(--nav-item-size) * 4));
}

/* ==================== 页面内容 ==================== */
.page-content {
  padding: 20px 16px 50px;
  min-height: calc(100vh - 250px);
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

/* ==================== 页面容器 ==================== */
.section {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 100vh;
  z-index: 100;
  overflow-y: auto;
  background: linear-gradient(180deg, #c3cfe2 0%, #f5f7fa 100%);
}

/* ==================== 统一背景色规范 ==================== */
/*
 * 页面背景：linear-gradient(135deg, #e3f2fd, #e0f7fa)（浅蓝到浅青渐变）
 * 卡片背景：#fff（白色）
 * 次级背景：#f8f9fa（更浅的灰色）
 * 主题色：#f56351（橙红色）
 */

.page-header {
  background: #fff;
  padding: 16px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 10;
}

.page-header h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  flex: 1;
}

.back-btn {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}

.back-btn:active {
  transform: scale(0.95);
}

/* ==================== 标签栏 ==================== */
.tabs-bar {
  display: flex;
  background: #fff;
  border-radius: 16px;
  padding: 8px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  gap: 8px;
  overflow-x: auto;
}

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

.tab-btn {
  flex: 1;
  min-width: 80px;
  padding: 10px 12px;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.tab-btn.active {
  background: var(--primary-color);
  color: #fff;
}

.tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.tab-btn:not(.active) .tab-count {
  background: rgba(0, 0, 0, 0.08);
  color: var(--text-secondary);
}

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

#pageMy {
  padding: 0;
}

#pageCompletedOrders,
#pageSchedule {
  padding-bottom: 50px;
}

.page-content::-webkit-scrollbar {
  display: none;
}

.repair-header {
  text-align: center;
  padding: 0;
}

.status-title {
  background: #fff;
  border-radius: 12px;
  padding: 10px 0;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  font-size: 18px;
  font-weight: 600;
  color: var(--primary-color);
  text-align: center;
}

.repair-tabs {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f5f5f5;
  border-radius: 16px;
  padding: 8px;
  margin-bottom: 16px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08);
  gap: 2px;
}

.repair-tab {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
  padding: 8px 2px;
  font-size: 12px;
  color: var(--text-secondary);
  border-radius: 10px;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.repair-tab-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.repair-tab.active {
  color: var(--text-primary);
  font-weight: 600;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.repair-count {
  background: #e0e0e0;
  color: #666;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  flex-shrink: 0;
}

.repair-tab.active .repair-count {
  background: var(--primary-color);
  color: #fff;
}

.repair-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.empty-tip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.empty-tip svg {
  display: block;
  margin-bottom: 16px;
  opacity: 0.6;
}

.empty-tip p {
  font-size: 14px;
  color: #999;
  margin: 0;
}

.page-content-inner {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: none;
}

@media (prefers-color-scheme: dark) {
  .page-content-inner {
    background: #1e1e32;
  }
}

/* Toast 弹窗 */
.toast-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 20000;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.toast {
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: auto;
  max-width: 300px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(4px);
}

.toast.show { opacity: 1; transform: translateY(0); }
.toast.hide { opacity: 0; transform: translateY(-20px); }

/* Modal 确认弹窗 */
.modal-overlay {
  position: fixed;top: 0;left: 0;right: 0;bottom: 0;
  background: rgba(0,0,0,0.5);display: flex;align-items: center;justify-content: center;
  z-index: 1000;opacity: 0;transition: opacity 0.3s;
}
.modal-overlay.login-required-overlay {
  z-index: 10002;
}

.modal-overlay.show { opacity: 1; }
.modal {
  background: #fff;border-radius: 16px;width: 85%;max-width: 340px;
  padding: 28px 24px 20px;text-align: center;
  transform: translateY(20px);transition: transform 0.3s;box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}
.modal-overlay.show .modal { transform: translateY(0); }
@media (prefers-color-scheme: dark) { .modal { background: #1a1a2e; } }
.modal-icon { width: 56px;height: 56px;border-radius: 50%;display: flex;align-items: center;justify-content: center;margin: 0 auto 16px; }
.modal-icon svg { width: 32px;height: 32px; }
.modal-icon.warning { background: #ff9800; }
.modal-icon.info { background: #f56351; }
.modal-title { font-size: 18px;font-weight: 700;color: #333;margin-bottom: 8px; }
.modal-content { font-size: 14px;color: #666;margin-bottom: 24px;line-height: 1.6;padding: 0 8px; }
.modal-buttons { display: flex;gap: 12px; }
.modal-buttons.single { justify-content: center; }
.modal-btn { flex: 1;height: 42px;border: none;border-radius: 21px;font-size: 15px;font-weight: 600;cursor: pointer;transition: all 0.2s; }
.modal-btn.primary { background: linear-gradient(135deg, #f56351, #e05341);color: #fff;box-shadow: 0 4px 20px rgba(245,99,81,0.4); }
.modal-btn.secondary { background: #f5f5f5;color: #666; }
.modal-btn:active { transform: scale(0.97); }

.feedback-modal {
  max-width: 420px;
  width: 90%;
  padding: 0;
  text-align: left;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  max-height: 80vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transform: scale(1);
  margin: auto;
  align-self: center;
}

.feedback-modal .modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  border-bottom: 1px solid #f0f0f0;
  background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
}

.feedback-modal.login-prompt-modal .modal-header {
  padding: 0;
  border-bottom: none;
  background: transparent;
}

.feedback-modal .modal-header .modal-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.feedback-modal .modal-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: #f5f5f5;
  border-radius: 50%;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.feedback-modal .modal-close:hover {
  background: #eee;
  transform: rotate(90deg);
}

.feedback-modal-body {
  padding: 16px 20px;
  overflow-y: auto;
  background: #fff;
  flex: 1;
  max-height: calc(80vh - 140px);
}

.settings-section {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #f0f0f0;
}

.settings-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.avatar-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 0;
  margin-bottom: 20px;
  border-bottom: 1px solid #f0f0f0;
}

.avatar-wrapper {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  border: 3px solid var(--primary-color);
  transition: all var(--transition-normal);
}

.avatar-wrapper:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(245, 99, 81, 0.3);
}

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

.avatar-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.avatar-wrapper:hover .avatar-overlay {
  opacity: 1;
}

.avatar-change-btn {
  margin-top: 12px;
  padding: 8px 20px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: #fff;
  border: none;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.avatar-change-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(245, 99, 81, 0.4);
}

.settings-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
}

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

.settings-form .form-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.settings-form .form-item label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
  text-align: left;
}

.settings-form .form-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e8ecef;
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-primary);
  background: #fff;
  transition: all var(--transition-fast);
  outline: none;
}

.settings-form .form-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(245, 99, 81, 0.1);
}

.form-value-wrap {
  width: 100%;
  min-height: 40px;
  padding: 10px 12px;
  border: 1px solid #e8ecef;
  border-radius: 8px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.form-value-wrap:hover {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(245, 99, 81, 0.08);
}

.form-value {
  flex: 1;
  font-size: 14px;
  color: var(--text-primary);
  line-height: 20px;
}

.form-arrow {
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.form-value-wrap:hover .form-arrow {
  transform: translateY(2px);
}

.modal.select-modal {
  width: 90%;
  max-width: 360px;
  max-height: 72vh;
  padding: 0;
  text-align: left;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.select-modal .modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid #f0f0f0;
  background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
}

.select-modal .modal-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.select-modal .modal-close {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: #f5f5f5;
  color: #999;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.select-modal .modal-close:hover {
  background: #eee;
  color: var(--text-primary);
}

.select-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
  background: #fff;
}

.select-item {
  padding: 13px 18px;
  font-size: 14px;
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
  border-bottom: 1px solid #f7f7f7;
}

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

.select-item:hover,
.select-item:active {
  background: rgba(245, 99, 81, 0.08);
  color: var(--primary-color);
}

.select-item.selected {
  color: var(--primary-color);
  background: rgba(245, 99, 81, 0.12);
  font-weight: 600;
}

.gender-select-group {
  display: flex;
  gap: 10px;
}

.gender-select-group .gender-option {
  flex: 1;
  position: relative;
  cursor: pointer;
}

.gender-select-group .gender-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.gender-select-group .gender-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 0;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-primary);
  background: var(--bg-primary);
  transition: all var(--transition-normal);
}

.gender-select-group .gender-option input[type="radio"]:checked + .gender-label {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background: rgba(245, 99, 81, 0.08);
  box-shadow: 0 0 0 3px rgba(245, 99, 81, 0.15);
}

.settings-btn {
  margin-top: 8px;
  padding: 10px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.settings-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(245, 99, 81, 0.3);
}

.login-prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
}

.login-prompt .icon {
  margin-bottom: 16px;
}

.prompt-text {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 8px;
}

.prompt-hint {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0 0 24px;
}

.settings-btn.primary {
  padding: 12px 32px;
  font-size: 15px;
}

#toolStatistics { order: 1; }
#toolAssets { order: 2; }
#toolSettings { order: 3; }
#toolContact { order: 4; }
#toolUserAgreement { order: 5; }
#toolPrivacyPolicy { order: 6; }
#toolOpenApi { order: 8; }
#toolClearCache { order: 9; }

.cache-confirm-modal {
  width: min(88vw, 340px);
  max-width: 340px;
  padding: 0;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(180deg, #fff 0%, #fffafa 100%);
  box-shadow: 0 18px 50px rgba(84, 38, 31, 0.24);
}
.cache-confirm-modal .modal-icon.warning {
  width: 58px;
  height: 58px;
  margin: 26px auto 14px;
  background: linear-gradient(135deg, #f56351 0%, #e05341 100%);
  box-shadow: 0 10px 24px rgba(245, 99, 81, 0.35);
}
.cache-confirm-modal .modal-title {
  margin: 0 24px 10px;
  color: #4a241f;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.2px;
}
.cache-confirm-modal .modal-content {
  margin: 0;
  padding: 0 26px 22px;
  color: #75625f;
  font-size: 13px;
  line-height: 1.7;
}
.cache-confirm-modal .modal-content strong,
.cache-confirm-modal .modal-content span { display: block; }
.cache-confirm-modal .modal-content strong {
  margin-bottom: 6px;
  color: #4f3834;
  font-size: 14px;
  font-weight: 700;
}
.cache-confirm-modal .modal-buttons {
  display: flex;
  flex-direction: row;
  gap: 10px;
  padding: 14px 18px 18px;
  border-top: 1px solid rgba(245, 99, 81, 0.12);
  background: #fff7f6;
}
.cache-confirm-modal .modal-btn {
  flex: 1;
  height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
}
.cache-confirm-modal .modal-btn.secondary { background: #f6eeed;color: #75625f;box-shadow: none; }
.cache-confirm-modal .modal-btn.primary { background: linear-gradient(135deg, #f56351 0%, #e05341 100%);color: #fff;box-shadow: 0 8px 18px rgba(245, 99, 81, 0.32); }
.cache-confirm-modal .modal-btn:active { transform: translateY(1px) scale(0.98); }

.feedback-form { padding: 0; }
.feedback-type-section,
.feedback-content-section,
.feedback-image-section { margin-bottom: 12px; }
.feedback-contact-section { margin-bottom: 14px; }
.feedback-label { font-size: 15px;font-weight: 600;color: var(--text-primary);margin-bottom: 12px; }
.optional { font-weight: 400;color: var(--text-light);font-size: 13px; }
.feedback-type-grid { display: grid;grid-template-columns: repeat(3, 1fr);gap: 10px; }
.feedback-type-item { display: flex;align-items: center;justify-content: center;padding: 12px 8px;background: #fafafa;border: 1.5px solid #e8e8e8;border-radius: 20px;cursor: pointer;transition: all var(--transition-fast); }
.feedback-type-item span { font-size: 13px;color: var(--text-secondary);text-align: center;font-weight: 500; }
.feedback-type-item.active { border-color: var(--primary-color);background: linear-gradient(135deg, rgba(245, 99, 81, 0.15) 0%, rgba(245, 99, 81, 0.08) 100%);box-shadow: 0 2px 8px rgba(245, 99, 81, 0.2); }
.feedback-type-item.active span { color: var(--primary-color);font-weight: 600; }
.feedback-type-item:active { transform: scale(0.96); }
.feedback-content-section { position: relative; }
.feedback-textarea { width: 100%;height: 100px;padding: 12px;border: 1.5px solid #e8e8e8;border-radius: 12px;font-size: 14px;color: var(--text-primary);resize: none;outline: none;transition: all var(--transition-fast);font-family: inherit;background: #fafafa;line-height: 1.6; }
.feedback-textarea:focus,
.feedback-contact-input:focus { border-color: var(--primary-color);background: #fff;box-shadow: 0 0 0 3px rgba(245, 99, 81, 0.1); }
.feedback-char-count { position: absolute;right: 12px;bottom: 12px;font-size: 12px;color: var(--text-light);font-weight: 500; }
.feedback-image-upload { display: flex;flex-wrap: wrap;gap: 12px; }
.feedback-contact-input { width: 100%;height: 48px;padding: 0 16px;border: 1.5px solid #e8e8e8;border-radius: 16px;font-size: 14px;color: var(--text-primary);outline: none;transition: all var(--transition-fast);font-family: inherit;background: #fafafa; }
.feedback-submit { width: 100%;height: 50px;background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);color: #fff;border: none;border-radius: 25px;font-size: 16px;font-weight: 600;cursor: pointer;transition: all var(--transition-fast);box-shadow: 0 4px 15px rgba(245, 99, 81, 0.35); }
.feedback-submit:disabled { opacity: 0.7;cursor: not-allowed; }
.feedback-submit:active { transform: scale(0.98); }
.image-upload-btn { width: 88px;height: 88px;border: 2px dashed #e0e0e0;border-radius: 16px;display: flex;flex-direction: column;align-items: center;justify-content: center;cursor: pointer;transition: all var(--transition-fast);background: #fafafa; }
.image-upload-btn:active { transform: scale(0.96); }
.image-upload-btn svg { width: 32px;height: 32px;color: var(--text-light); }
.upload-text { font-size: 12px;color: var(--text-light);margin-top: 6px; }
.image-preview { width: 85px;height: 85px;position: relative;border-radius: 12px;overflow: hidden;box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); }
.image-preview img { width: 100%;height: 100%;object-fit: cover; }
.image-remove-btn { position: absolute;top: 4px;right: 4px;width: 22px;height: 22px;border: 2px solid #fff;background: rgba(239, 68, 68, 0.95);color: #fff;border-radius: 50%;font-size: 14px;line-height: 1;cursor: pointer;display: flex;align-items: center;justify-content: center; }
.announcement-list,
.help-list { display: flex;flex-direction: column;gap: 12px; }
.announcement-item,
.help-item { background: #fff;border: 1px solid #e8ecef;border-radius: 12px;padding: 16px;transition: all var(--transition-fast);box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04); }
.announcement-date { display: inline-block;font-size: 12px;color: #fff;background: var(--primary-color);padding: 4px 12px;border-radius: 12px;margin-bottom: 10px;font-weight: 500; }
.announcement-content h4,
.help-item h4 { font-size: 15px;font-weight: 600;color: var(--text-primary);margin-bottom: 8px;line-height: 1.4; }
.announcement-content p,
.help-item p { font-size: 13px;color: var(--text-secondary);line-height: 1.6;margin: 0; }
.help-item { cursor: pointer; }
.help-item p { display: none;margin-top: 10px; }
.help-item.open p { display: block; }
.help-view-tip { display: inline-block;margin-top: 8px;font-size: 12px;color: var(--primary-color); }
.help-item.open .help-view-tip { display: none; }
.about-system-modal { max-width: 460px; }
.about-hero { position: relative;overflow: hidden;text-align: center;padding: 26px 18px 22px;border-radius: 18px;background: linear-gradient(135deg, rgba(245, 99, 81, 0.14) 0%, rgba(245, 99, 81, 0.04) 100%);border: 1px solid rgba(245, 99, 81, 0.18); }
.about-logo { width: 72px;height: 72px;margin: 0 auto 14px;border-radius: 22px;background: #fff;display: flex;align-items: center;justify-content: center;box-shadow: 0 10px 26px rgba(245, 99, 81, 0.22);overflow: hidden; }
.about-logo-img { width: 100%;height: 100%;object-fit: cover; }
.about-title { font-size: 20px;font-weight: 700;color: var(--text-primary);margin-bottom: 8px; }
.about-version { display: inline-flex;align-items: center;height: 24px;padding: 0 12px;border-radius: 999px;background: rgba(245, 99, 81, 0.14);color: var(--primary-dark);font-size: 12px;font-weight: 600;margin-bottom: 12px; }
.about-desc { margin: 0;font-size: 13px;line-height: 1.7;color: var(--text-secondary); }
.about-section { position: relative;margin-top: 16px;padding: 16px;border-radius: 16px;background: #fff;border: 1px solid #edf1f3;box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04); }
.about-section-title { display: flex;align-items: center;gap: 8px;font-size: 15px;font-weight: 700;color: var(--text-primary);margin-bottom: 12px; }
.about-section-title::before { content: '';width: 4px;height: 16px;border-radius: 999px;background: linear-gradient(180deg, var(--primary-color), var(--primary-dark)); }
.about-feature-grid { display: grid;grid-template-columns: repeat(2, minmax(0, 1fr));gap: 10px; }
.about-feature-item { display: flex;align-items: center;gap: 8px;padding: 12px;border-radius: 12px;background: #fff8f7;color: var(--text-primary);font-size: 13px;font-weight: 600; }
.about-feature-icon { width: 28px;height: 28px;border-radius: 9px;display: inline-flex;align-items: center;justify-content: center;flex-shrink: 0;color: #fff;background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));font-size: 13px; }
.about-info-list { display: grid;grid-template-columns: repeat(2, minmax(0, 1fr));gap: 10px; }
.about-info-row { display: flex;flex-direction: column;align-items: flex-start;gap: 6px;min-width: 0;padding: 12px;border-radius: 12px;background: rgba(255, 248, 247, 0.88);border: 1px solid #f6e6e3;font-size: 13px;color: var(--text-light); }
.about-info-row span { width: 100%;font-size: 12px;color: var(--text-light);text-align: left; }
.about-info-row strong { width: 100%;color: var(--text-primary);font-size: 13px;font-weight: 600;line-height: 1.5;text-align: left;word-break: break-all; }
.about-contact-section .about-info-row:nth-child(5) { grid-column: 1 / -1; }
.about-footer-text { margin-top: 16px;text-align: center;font-size: 12px;color: var(--text-light); }

@media (max-width: 360px) {
  .about-info-list { grid-template-columns: 1fr; }
}

#pageFeedback .feedback-type-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

#pageFeedback .feedback-type-item {
  border-radius: 12px;
}

#pageFeedback .feedback-textarea {
  min-height: 120px;
  height: auto;
  resize: vertical;
}

#pageFeedback .feedback-char-count {
  position: static;
  text-align: right;
  margin-top: 6px;
}

#pageFeedback .feedback-submit {
  border-radius: 12px;
}

@media (prefers-color-scheme: dark) {
  .cache-confirm-modal { background: linear-gradient(180deg, #242033 0%, #1d1a2a 100%); }
  .cache-confirm-modal .modal-title { color: #fff; }
  .cache-confirm-modal .modal-content { color: #c7bdba; }
  .cache-confirm-modal .modal-content strong { color: #f6e8e5; }
  .cache-confirm-modal .modal-buttons { background: #1a1724;border-top-color: rgba(245, 99, 81, 0.18); }
  .cache-confirm-modal .modal-btn.secondary { background: #2a2636;color: #ddd; }
}

/* 列表卡片暗色模式 */
@media (prefers-color-scheme: dark) {
  .repair-order-card { background: #1e1e32 !important; }
  .schedule-summary-card { box-shadow: var(--shadow-sm); }
  .schedule-section-card { background: #1e1e32; }
  .schedule-week-item,
  .schedule-rule-item { background: rgba(255, 255, 255, 0.05); }
}

/* ==================== 图片预览遮罩 ==================== */
.image-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 300;
  cursor: pointer;
}

.image-overlay img {
  max-width: 95vw;
  max-height: 95vh;
  object-fit: contain;
  border-radius: 4px;
}

/* 响应式 */
@media (max-width: 375px) {
  .banner-title { font-size: 26px; }
  .banner-subtitle { font-size: 15px; }
  .action-btn { height: 48px; font-size: 14px; border-radius: 12px; }
}

/* ==================== 登录弹窗样式（从前端复制）==================== */

/* 登录弹窗遮罩层特殊处理 */
.modal-overlay:has(.login-modal) {
  padding: 0;
}

/* 登录弹窗特殊处理 - 不需要最大高度限制 */
.modal-overlay.show .login-modal {
  max-height: none;
  overflow: hidden;
}

/* 登录弹窗全屏显示 */
.modal-overlay.show .login-modal {
  margin: 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  align-self: stretch;
  border-radius: 0;
  z-index: 10001;
}

/* 使用伪元素向下延伸确保完全覆盖 */
.modal-overlay.show .login-modal::before {
  content: '';
  position: absolute;
  bottom: -100px;
  left: 0;
  right: 0;
  height: 100px;
  background: inherit;
  z-index: -1;
}

/* 登录弹窗显示时隐藏底部导航栏 */
body:has(.modal-overlay.show .login-modal) .bottom-nav {
  display: none !important;
}

/* ==================== 登录弹窗样式（优化版）==================== */

.login-modal {
  width: 100%;
  max-width: 450px;
  min-width: 320px;
  max-height: 90vh;
  padding: 0;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  transform: scale(1);
  margin: auto;
  display: flex;
  flex-direction: column;
  background: var(--bg-primary);
  color: var(--text-primary);
  color-scheme: light;
}

/* 顶部背景区域 - 使用登录背景图片 */
.login-header-bg {
  background: url('../../images/login/dl11.jpg?v=20260702') no-repeat center center / cover;
  padding: 48px 40px 40px;
  text-align: center;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
  cursor: pointer;
}

.login-header-bg::before {
  content: none;
}

.login-site-title {
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 12px 0;
  line-height: 1.3;
  position: relative;
  z-index: 1;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.login-welcome-text {
  font-size: 16px;
  opacity: 0.95;
  margin: 0;
  line-height: 1.4;
  position: relative;
  z-index: 1;
  color: #fff;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.35);
}

.back-indicator {
  display: block;
  font-size: 12px;
  opacity: 0.8;
  margin-top: 8px;
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.8);
}

/* 主内容区 */
.login-main-content {
  flex: 1;
  overflow-y: auto;
  padding: 32px 40px 40px;
  display: flex;
  flex-direction: column;
  background: var(--bg-primary);
}

/* 表单包装器 */
.login-form-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* 带图标的表单组 - 标签在输入框上方左边 */
.form-group.with-icon {
  margin-bottom: 20px;
}

.form-group.with-icon .form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  text-align: left;
  line-height: 1.4;
}

.form-group.with-icon .form-label i {
  color: var(--primary-color);
  margin-right: 8px;
  font-size: 14px;
}

/* 头像上传 */
.avatar-upload-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
  padding: 16px;
  border: 2px dashed var(--border-color);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.02);
}
.avatar-upload-box input[type="file"] {
  position: absolute;
  width: 80px;
  height: 80px;
  opacity: 0;
  cursor: pointer;
}
.avatar-preview {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #e9ecef;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.avatar-preview img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.avatar-preview i { font-size: 28px; color: #adb5bd; }
.avatar-upload-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.avatar-upload-btn {
  padding: 8px 16px;
  background: var(--primary-color);
  color: #fff;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  user-select: none;
  display: inline-block;
  width: fit-content;
}
.avatar-size-tip {
  font-size: 12px;
  color: var(--text-light);
}

/* 输入框样式 */
.login-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 15px;
  color: var(--text-primary);
  background: var(--bg-primary);
  transition: all 0.3s ease;
  outline: none;
  box-sizing: border-box;
}

.login-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(245, 99, 81, 0.15);
}

.login-input::placeholder {
  color: var(--text-light);
}

/* 因为维修端主题色是 #f56351，覆盖登录弹窗的 focus 颜色 */
.login-input:focus {
  border-color: #f56351;
  box-shadow: 0 0 0 3px rgba(245, 99, 81, 0.15);
}

.form-group.with-icon .form-label i {
  color: #f56351;
}

/* 验证码组 */
.captcha-group {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid #e5e7eb;
}

.captcha-input-wrapper {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.captcha-icon {
  position: absolute;
  left: 14px;
  color: #f56351;
  font-size: 16px;
  z-index: 1;
}

.captcha-input {
  width: 100%;
  padding: 12px 16px 12px 42px !important;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 15px;
  background: var(--bg-primary);
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.captcha-input:focus {
  border-color: #f56351;
  box-shadow: 0 0 0 3px rgba(245, 99, 81, 0.15);
  outline: none;
}

.captcha-question {
  min-width: 100px;
  padding: 12px 20px;
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  border-radius: 8px;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: #dc2626;
  user-select: none;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
}

.captcha-question:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
}

.captcha-question:active {
  transform: scale(0.98);
}

/* 登录按钮 */
.login-submit-btn {
  width: 100%;
  padding: 14px;
  background: #f56351;
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 24px;
  box-shadow: 0 4px 12px rgba(245, 99, 81, 0.3);
}

.login-submit-btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 99, 81, 0.4);
}

.login-submit-btn:active {
  transform: translateY(0);
  opacity: 0.85;
}

.login-submit-btn i {
  margin-right: 8px;
}

.login-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: -4px 0 18px;
  font-size: 14px;
  color: #6b7280;
}

.login-option {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
}

.login-option input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--primary-color);
  border-radius: 50%;
  background: #fff;
  position: relative;
  flex: 0 0 16px;
}

.login-option input[type="checkbox"]:checked {
  border-color: var(--primary-color);
}

.login-option input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-color);
  transform: translate(-50%, -50%);
}

/* 切换模式 */
.login-switch-mode {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  font-size: 14px;
}

.switch-link-text {
  color: #727CFB;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.switch-link-text:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.forgot-password-link {
  color: #6b7280;
}

/* 第三方登录 */
.third-party-login {
  margin-top: 32px;
}

.divider {
  display: flex;
  align-items: center;
  margin-bottom: 24px;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}

.divider span {
  padding: 0 16px;
  color: #9ca3af;
  font-size: 14px;
}

.social-login-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.social-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 24px;
  color: white;
}

.social-icon i {
  font-size: 24px;
}

.social-icon.wechat {
  background: #07C160;
}

.social-icon.qq {
  background: #12B7F5;
}

.social-icon.weibo {
  background: #E6162D;
}

.social-icon:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.social-icon:active {
  transform: translateY(0) scale(1);
}

/* 登录弹窗响应式设计 */
@media (max-width: 768px) {
  .login-modal {
    max-width: 95%;
    border-radius: 12px;
  }
  
  .login-header-bg {
    padding: 36px 24px 32px;
  }
  
  .login-site-title {
    font-size: 28px;
  }
  
  .login-welcome-text {
    font-size: 14px;
  }
  
  .login-main-content {
    padding: 24px 24px 32px;
  }
}

@media (max-width: 480px) {
  .login-modal {
    max-width: 100%;
    border-radius: 0;
    max-height: 100vh;
  }
  
  .login-header-bg {
    padding: 32px 20px 28px;
  }
  
  .login-site-title {
    font-size: clamp(22px, 6vw, 24px);
  }
  
  .login-welcome-text {
    font-size: 13px;
  }
  
  .login-main-content {
    padding: 20px 20px 28px;
  }
  
  .form-group.with-icon {
    padding: 12px 0;
  }
  
  .login-submit-btn {
    padding: 12px;
    font-size: 15px;
  }
}

@media (prefers-color-scheme: dark) {
  .login-modal {
    background: #1a1a2e;
    color: #e5e7eb;
  }
  
  .login-main-content {
    background: #1a1a2e;
  }
  
  .login-input {
    border-color: rgba(255, 255, 255, 0.2);
    color: #e5e7eb;
    background: rgba(255, 255, 255, 0.05);
  }
  
  .login-input:focus {
    border-color: #f56351;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(245, 99, 81, 0.1);
  }
  
  .login-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
  }
  
  .captcha-group {
    border-bottom-color: rgba(255, 255, 255, 0.1);
  }
  
  .captcha-question {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.2) 0%, rgba(220, 38, 38, 0.1) 100%);
    color: #f87171;
  }
  
  .login-switch-mode {
    color: var(--text-secondary);
  }
  
  .divider::before,
  .divider::after {
    background: rgba(255, 255, 255, 0.2);
  }
  
  .divider span {
    color: var(--text-light);
  }
  
  .form-group.with-icon .form-label {
    color: #e5e7eb;
  }
}

/* 登录弹窗按钮容器样式 */
.login-modal .modal-buttons {
  padding: 16px 32px 24px;
  background: linear-gradient(180deg, #fafbfc 0%, #ffffff 100%);
  border-top: 1px solid #e8ecef;
  gap: 16px;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
}

/* 登录弹窗头部样式 */
.login-modal .modal-header {
  padding: 20px 32px;
  border-bottom: 1px solid #e8ecef;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.login-modal .modal-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
}

.login-modal .modal-close {
  width: 36px;
  height: 36px;
  font-size: 28px;
  color: #94a3b8;
  background: #f1f5f9;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all var(--transition-fast);
}

.login-modal .modal-close:hover {
  background: #e2e8f0;
  color: var(--text-primary);
  transform: rotate(90deg);
}

/* 头像提示样式 */
.banner .profile-info .avatar-login-tip {
  font-size: 20px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  margin: 0;
  cursor: pointer;
  display: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  transition: opacity var(--transition-fast);
}

.banner .profile-info .avatar-login-tip:hover {
  opacity: 0.8;
}

/* ==================== 维修端登录弹窗：同步用户端样式布局 ==================== */
.modal-overlay:has(.login-modal) {
  padding: 0;
  display: flex;
  align-items: stretch;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(180deg, #c3cfe2 0%, #f5f7fa 100%);
}

.modal-overlay:has(.login-modal)::before {
  display: none;
}

.login-modal,
.modal-overlay.show .login-modal {
  position: relative;
  inset: auto;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
  width: 100%;
  height: 100dvh;
  max-width: 440px;
  max-height: 100dvh;
  min-width: 0;
  margin: 0 auto;
  padding: 0;
  display: block;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: linear-gradient(180deg, #fbfffd 0%, #ffffff 40%, #fbfbfb 100%);
  box-shadow: none;
  color: #26332d;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  transform: none;
  z-index: 10001;
  color-scheme: light;
}

.modal-overlay.show .login-modal::before {
  display: none;
}

body:has(.modal-overlay.show .login-modal) .bottom-nav {
  display: none !important;
}

.login-header-actions {
  position: absolute;
  top: calc(40px + var(--app-safe-area-top, 0px));
  right: 20px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 10px;
}

.login-portal-switch {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 15px;
  background: rgba(255,255,255,.2);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all .25s cubic-bezier(.4, 0, .2, 1);
  position: relative;
  overflow: hidden;
}

.login-portal-switch::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255,255,255,.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width .4s ease, height .4s ease;
}

.login-portal-switch:hover {
  background: rgba(255,255,255,.3);
  border-color: rgba(255,255,255,.7);
  box-shadow: 0 4px 15px rgba(0,0,0,.15);
  transform: translateY(-1px);
}

.login-portal-switch:hover::before {
  width: 200px;
  height: 200px;
}

.login-portal-switch:hover i {
  transform: rotate(180deg);
}

.login-portal-switch:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.login-portal-switch i {
  font-size: 12px;
  transition: transform .3s ease;
}

.login-portal-switch span {
  position: relative;
  z-index: 1;
}

.login-portal-switch:active {
  transform: scale(.94) translateY(0);
  transition-duration: .1s;
}

.login-close-btn {
  position: static;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background .18s ease, transform .18s ease;
}

.login-close-btn:active {
  transform: scale(.94);
}

.login-header-bg {
  position: relative;
  height: 236px;
  padding: 0px 30px 0;
  overflow: hidden;
  border-radius: 0;
  text-align: left;
  color: #fff;
  background: url('../../images/login/dl11.jpg?v=20260702') no-repeat center center / cover;
  cursor: default;
}

.login-header-bg::before,
.login-header-bg::after {
  content: none;
  display: none;
}

@keyframes repair-login-float {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-7px) rotate(1.2deg); }
}

.login-site-title {
  position: relative;
  z-index: 2;
  max-width: none;
  margin: 78px 0 0;
  color: #fff;
  font-size: clamp(22px, 6vw, 29px);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: .2px;
  white-space: nowrap;
  text-shadow: 0 8px 22px rgba(28, 116, 78, .22);
}

.login-welcome-text {
  position: relative;
  z-index: 2;
  max-width: 190px;
  margin: 12px 0 0;
  color: rgba(255,255,255,.96);
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: .1px;
  text-shadow: 0 6px 18px rgba(28, 116, 78, .18);
}

.login-main-content {
  position: absolute;
  left: 0;
  right: 0;
  top: 174px;
  bottom: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  padding: 0 24px 0;
  overflow-y: auto;
  border: 1px solid rgba(255,255,255,.88);
  border-radius: 24px 24px 0 0;
  background: linear-gradient(180deg, rgba(255,255,255,.99), #fff 48%, #fbfffd);
  box-shadow: 0 22px 48px rgba(31, 93, 66, .11);
  backdrop-filter: blur(18px);
}

.login-main-content::before,
.login-main-content::after {
  display: none;
}

.login-modal .login-form-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  flex: none !important;
  flex-direction: column;
  padding-top: 0;
}

.login-tabs {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 2;
  height: 58px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 24px 24px 0 0;
  background: linear-gradient(180deg, rgba(255, 250, 249, .96), rgba(255, 255, 255, .72));
  box-shadow: inset 0 -1px 0 rgba(245, 99, 81, .18);
  overflow: hidden;
}

.login-tab {
  position: relative;
  height: 58px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #8a9a92;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: color .22s ease, background .22s ease, box-shadow .22s ease, transform .2s ease;
}

.login-tab.active {
  background: linear-gradient(180deg, #fff 0%, #fbfffd 100%);
  color: var(--primary-color);
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95);
}

.login-tab.active:first-child {
  border-bottom-right-radius: 28px;
  box-shadow: 18px 0 34px rgba(var(--primary-rgb), .16), inset 0 1px 0 rgba(255,255,255,.95);
}

.login-tab.active:last-child {
  border-bottom-left-radius: 28px;
  box-shadow: -18px 0 34px rgba(var(--primary-rgb), .16), inset 0 1px 0 rgba(255,255,255,.95);
}

.login-tab.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 9px;
  width: 34px;
  height: 4px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--primary-light), var(--primary-color));
  transform: translateX(-50%);
  box-shadow: 0 5px 14px rgba(var(--primary-rgb), .38);
}

.login-tab:active {
  transform: scale(.98);
}

.login-tab:not(.active):hover {
  color: #4f6259;
  background: rgba(255,255,255,.34);
}

.login-modal .login-panel {
  display: none;
  margin-top: 75px;
}

.login-modal .login-panel.active {
  display: block;
}

.form-group.with-icon {
  margin-bottom: 16px;
  padding: 0;
  border: 0;
  text-align: left;
}

.form-group.with-icon .form-label,
.sms-code-input-wrap .form-label {
  display: block;
  margin: 0 0 8px 7px;
  padding: 0;
  color: #3f5148;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
  text-align: left;
}

.form-group.with-icon .form-label i {
  display: none;
}

.login-input,
.captcha-input {
  width: 100%;
  height: auto;
  line-height: 1.5;
  padding: 13px 18px !important;
  border: 1px solid rgba(205, 225, 215, .9);
  border-radius: 23px;
  outline: 0;
  background: linear-gradient(180deg, #fdfffe, #f4faf7);
  color: #26332d;
  font-size: 14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.98), 0 7px 16px rgba(55, 120, 87, .04);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease, transform .2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.login-input:focus,
.captcha-input:focus {
  border-color: rgba(var(--primary-rgb), .62);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(var(--primary-rgb), .10), 0 12px 24px rgba(var(--primary-rgb), .10), inset 0 1px 0 rgba(255,255,255,.95);
  transform: translateY(-1px);
}

.login-input::placeholder,
.captcha-input::placeholder {
  color: #b7c4be;
}

.captcha-group {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 0;
  border: 0;
}

.captcha-input-wrapper {
  flex: 1;
}

.captcha-icon {
  display: none;
}

.captcha-question {
  min-width: 92px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid rgba(216, 232, 224, .86);
  border-radius: 23px;
  background: linear-gradient(180deg, #fbfefd, #f2faf6);
  color: #27c970;
  font-size: 15px;
  font-weight: 900;
  user-select: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95), 0 8px 18px rgba(55, 120, 87, .045);
  transition: transform .18s ease, box-shadow .18s ease;
}

.captcha-question:hover {
  transform: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95), 0 8px 18px rgba(55, 120, 87, .045);
}

.sms-code-group {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin-bottom: 12px;
}

.sms-code-input-wrap {
  flex: 1;
  min-width: 0;
}

.sms-code-btn {
  width: 104px;
  height: 46px;
  border: 1px solid rgba(39, 201, 112, .26);
  border-radius: 23px;
  background: linear-gradient(180deg, #ffffff, #f4fbf7);
  color: var(--primary-color);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 7px 16px rgba(55, 120, 87, .04);
  transition: transform .18s ease, box-shadow .18s ease;
}

.sms-code-btn:active {
  transform: scale(.98);
}

.sms-login-tip {
  margin: 0 0 22px 7px;
  color: #a2b0a9;
  font-size: 12px;
  line-height: 1.5;
}

.login-submit-btn {
  position: relative;
  width: 100%;
  height: 48px;
  margin-top: 2px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 24px;
  background: linear-gradient(100deg, var(--primary-light) 0%, var(--primary-color) 55%, var(--primary-dark) 100%);
  box-shadow: 0 14px 24px rgba(var(--primary-rgb), .28), inset 0 1px 0 rgba(255,255,255,.28);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .6px;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.login-submit-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0 35%, rgba(255,255,255,.35) 48%, transparent 62%);
  transform: translateX(-120%);
  transition: transform .7s ease;
}

.login-submit-btn:hover::before {
  transform: translateX(120%);
}

.login-submit-btn:hover {
  opacity: 1;
  transform: translateY(-1px);
  box-shadow: 0 20px 34px rgba(var(--primary-rgb), .34), inset 0 1px 0 rgba(255,255,255,.28);
}

.login-submit-btn:active {
  transform: translateY(1px) scale(.99);
  box-shadow: 0 9px 18px rgba(var(--primary-rgb), .25), inset 0 1px 0 rgba(255,255,255,.2);
}

.login-submit-btn:disabled {
  opacity: .78;
  cursor: not-allowed;
}

.login-submit-btn i {
  display: none;
}

.login-switch-mode {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
  padding: 12px 14px;
  font-size: 13px;
  color: #64748b;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), .08), rgba(var(--primary-light-rgb), .1));
  border: 1px solid rgba(var(--primary-rgb), .16);
  border-radius: 18px;
}

.login-switch-mode:has(.forgot-password-link) {
  justify-content: space-between;
  background: transparent;
  border-color: transparent;
  padding: 0 4px;
}

.switch-link-text,
.forgot-password-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 16px;
  color: var(--primary-dark);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font-weight: 800;
  text-decoration: none;
  transition: color .18s ease, transform .18s ease;
}

.forgot-password-link {
  color: #64748b;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  font-weight: 700;
}

.switch-link-text:hover,
.forgot-password-link:hover {
  color: var(--primary-dark);
  background: rgba(var(--primary-rgb), .08);
  border-color: rgba(var(--primary-rgb), .28);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(var(--primary-rgb), .16);
  opacity: 1;
  text-decoration: none;
}

.forgot-password-link:hover {
  color: var(--primary-dark);
  box-shadow: none;
}

.login-modal .third-party-login {
  margin-top: auto;
  margin-bottom: 30px;
  padding-top: 0;
  width: 100%;
  text-align: center;
}

.login-modal .divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  gap: 16px;
  color: #a0a0a0;
  font-size: 13px;
  text-align: center;
}

.login-modal .divider::before,
.login-modal .divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e5e5e5;
}

.login-modal .divider span {
  padding: 0;
  color: #a0a0a0;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
}

.login-modal .social-login-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 36px;
  width: 100%;
}

.login-modal .social-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
  font-size: 22px;
  font-weight: 400;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .12);
  cursor: pointer;
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}

.login-modal .social-icon i {
  font-size: 22px;
}

.login-modal .social-icon.wechat { background: #07C160; }
.login-modal .social-icon.qq { background: #12B7F5; }
.login-modal .social-icon.weibo { background: #E6162D; }

.login-modal .social-icon:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, .18);
}

.login-modal:has(#regPhone) .login-header-bg {
  height: 162px;
}

.login-modal:has(#regPhone) .login-site-title {
  margin-top: 58px;
  font-size: clamp(22px, 6vw, 29px);
}

.login-modal:has(#regPhone) .login-header-bg::after {
  width: 104px;
  height: 104px;
  top: 34px;
}

.login-modal:has(#regPhone) .login-main-content {
  left: 50%;
  right: auto;
  width: calc(100% - 40px);
  max-width: 338px;
  top: 34px;
  bottom: 24px;
  padding-top: 30px;
  border-radius: 24px;
  transform: translateX(-50%);
}

.login-modal:has(#regPhone) .login-main-content::before,
.login-modal:has(#regPhone) .login-main-content::after {
  display: none;
}

.login-modal:has(#regPhone) .form-group.with-icon {
  margin-bottom: 14px;
}

.login-modal:has(#regPhone) .login-input {
  height: 44px;
}

@media (max-width: 430px) {
  .modal-overlay:has(.login-modal) {
    background: #fff;
  }

  .modal-overlay:has(.login-modal)::before {
    display: none;
  }

  .login-modal,
  .modal-overlay.show .login-modal {
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .login-header-bg {
    border-radius: 0;
  }

  .login-main-content {
    left: 20px;
    right: 20px;
    bottom: 0;
  }

  .login-modal:has(#regPhone) .login-main-content {
    left: 50%;
    right: auto;
    bottom: 24px;
  }
}

@media (max-height: 760px) {
  .login-header-bg {
    height: 210px;
  }

  .login-site-title {
    margin-top: 64px;
    font-size: clamp(22px, 6vw, 27px);
  }

  .login-header-bg::after {
    width: 116px;
    height: 116px;
    top: 52px;
  }

  .login-main-content {
    top: 154px;
    bottom: 0;
  }

  .login-panel {
    margin-top: 76px;
  }

  .form-group.with-icon {
    margin-bottom: 13px;
  }

  .third-party-login {
    padding-top: 12px;
  }
}

/* 维修端多端布局适配：仅调整结构尺寸，不改变视觉样式 */
:root {
  --app-safe-area-top: env(safe-area-inset-top, 0px);
}

html {
  min-height: 100%;
  background: linear-gradient(180deg, #c3cfe2 0%, #f5f7fa 100%);
  background-attachment: fixed;
}

body {
  width: 100%;
  max-width: 440px;
  min-height: 100dvh;
  margin: 0 auto;
  padding-bottom: calc(112px + env(safe-area-inset-bottom));
}

.banner,
.action-section,
.page-content,
.bottom-nav {
  width: 100%;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

.banner {
  padding-top: calc(80px + var(--app-safe-area-top));
}

/* 个人中心 banner 的 padding-top 已在主规则里通过 var(--app-safe-area-top) 统一处理，
   与用户端保持一致，避免重复叠加安全区高度 */

.bottom-nav {
  left: 50%;
  right: auto;
  width: 100%;
  max-width: 440px;
  transform: translateX(-50%);
}

.action-section,
.page-content,
.page-content-inner,
.repair-list,
.completed-orders-list,
.feedback-form {
  min-width: 0;
}

.action-btn {
  min-width: 0;
  white-space: nowrap;
}

.action-btn svg {
  flex-shrink: 0;
}

.page-content {
  min-height: calc(100dvh - 75px);
  padding-top: calc(12px + var(--app-safe-area-top));
  padding-bottom: calc(50px + env(safe-area-inset-bottom));
}

.page-content.scan-page {
  min-height: 0;
  height: 100dvh;
  padding-bottom: calc(var(--nav-item-size, 70px) + 12px);
}

/* App 环境下（有真实状态栏高度）与用户端保持一致 */
.is-plus-app .page-content {
  padding-top: calc(12px + var(--app-safe-area-top));
}

#pageMy {
  padding-top: 0;
}

.repair-tab {
  min-width: 0;
  flex: 1 1 0;
}

.repair-item-header,
.detail-header,
.modal-header,
.order-meta-row,
.completed-order-header,
.feedback-type-grid,
.tools-grid,
.schedule-summary-grid {
  min-width: 0;
}

.repair-time,
.repair-status,
.detail-title,
.modal-title,
.order-status,
.completed-order-status {
  flex-shrink: 0;
}

.repair-title-text,
.repair-location span,
.repair-desc,
.repair-order,
.form-value,
.tool-name,
.nav-text,
.order-title,
.order-desc,
.completed-order-title {
  overflow-wrap: anywhere;
}

.modal-overlay,
.complete-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  max-width: none;
  min-height: 100dvh;
  margin: 0;
  left: 0;
  right: 0;
  transform: none;
}

.auth-gate,
.loading-overlay {
  width: 100vw;
  max-width: none;
  left: 0;
  right: 0;
  margin: 0;
}

.toast-container {
  width: auto;
  max-width: min(90vw, 440px);
  left: 50%;
  right: auto;
  transform: translate(-50%, -50%);
}

.scan-page {
  min-height: 0;
  height: 100dvh;
  padding-top: calc(24px + var(--app-safe-area-top));
  padding-bottom: calc(var(--nav-item-size, 70px) + 12px);
}

@media (min-width: 441px) {
  .banner,
  .page-content,
  #pageMy {
    box-shadow: 0 0 24px rgba(0, 0, 0, 0.04);
  }
}

@media (max-width: 430px) {
  .banner-title {
    font-size: clamp(22px, 7vw, 30px);
    letter-spacing: 1px;
  }

  .banner-subtitle {
    font-size: 15px;
    letter-spacing: 1.5px;
  }

  .action-section {
    gap: 12px;
    padding-left: 18px;
    padding-right: 18px;
  }

  .action-btn {
    height: 54px;
    font-size: 14px;
    gap: 5px;
  }

  .action-btn svg {
    width: 20px;
    height: 20px;
  }

  .btn-badge {
    top: -7px;
    right: -5px;
  }

  .page-content {
    padding-left: 16px;
    padding-right: 16px;
  }

  .repair-tabs {
    margin-left: 0;
    margin-right: 0;
  }

  .repair-item-header,
  .completed-order-header {
    align-items: flex-start;
    gap: 8px;
  }

  .repair-item-footer,
  .order-actions,
  .modal-buttons,
  .feedback-modal .modal-footer,
  .complete-modal-footer {
    flex-wrap: wrap;
  }

  .modal-btn,
  .feedback-modal .modal-btn,
  .complete-modal-footer button,
  .order-action-btn {
    min-width: 0;
  }

  .tools-grid {
    gap: 14px 10px;
  }
}

@media (max-width: 360px) {
  .banner {
    padding-left: 14px;
    padding-right: 14px;
  }

  .action-section {
    padding-left: 14px;
    padding-right: 14px;
    gap: 10px;
  }

  .action-btn {
    font-size: 13px;
  }

  .bottom-nav .nav-item {
    padding-left: 0;
    padding-right: 0;
  }

  .repair-tabs {
    padding: 6px;
    gap: 1px;
  }

  .repair-tab {
    min-width: 0;
    flex: 1 1 0;
    padding: 7px 1px;
    gap: 3px;
    font-size: 11px;
  }

  .repair-count {
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    font-size: 10px;
  }

  .scan-frame {
    width: 250px;
    height: 250px;
  }
}

@media (orientation: landscape) and (max-height: 500px) {
  .banner {
    padding-top: calc(42px + var(--app-safe-area-top));
    padding-bottom: 42px;
  }

  .action-section {
    margin-top: 88px;
  }

  .scan-page {
    padding-top: calc(16px + var(--app-safe-area-top));
  }

  .scan-frame {
    width: min(220px, 42vh);
    height: min(220px, 42vh);
  }
}

@media (max-height: 760px) {
  .login-site-title {
    margin-top: calc(64px + var(--app-safe-area-top));
  }
}

.login-header-actions {
  top: calc(18px + var(--app-safe-area-top));
}

.login-close-btn {
  top: auto;
}

/* 通用隐藏 */
.is-hidden {
  display: none !important;
}

/* 反向覆盖：当元素同时有 .is-hidden 和内联 display 时，让内联样式生效 */
.is-hidden[style*="display: block"] {
  display: block !important;
}
.is-hidden[style*="display: flex"] {
  display: flex !important;
}
.is-hidden[style*="display: grid"] {
  display: grid !important;
}

/* App 环境下页面顶部安全区 */
.is-plus-app .page-content {
  padding-top: calc(12px + var(--app-safe-area-top, 0px));
}

/* ==================== 报修表单样式 ==================== */
.create-repair-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

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

.form-label .form-hint {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-light);
}

.form-input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  font-size: 15px;
  color: var(--text-primary);
  background: #fff;
  outline: none;
  transition: border-color var(--transition-fast);
  box-sizing: border-box;
}

.form-input:focus {
  border-color: var(--primary-color);
}

.form-input::placeholder {
  color: var(--text-light);
}

.form-textarea {
  width: 100%;
  min-height: 100px;
  padding: 12px 14px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  font-size: 15px;
  color: var(--text-primary);
  background: #fff;
  outline: none;
  resize: vertical;
  font-family: inherit;
  transition: border-color var(--transition-fast);
  box-sizing: border-box;
}

.form-textarea:focus {
  border-color: var(--primary-color);
}

.form-textarea::placeholder {
  color: var(--text-light);
}

.form-image-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.image-upload-btn {
  width: 88px;
  height: 88px;
  border: 2px dashed #e0e0e0;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  background: #fafafa;
  gap: 4px;
}

.image-upload-btn:hover {
  border-color: var(--primary-color);
  background: rgba(245, 99, 81, 0.05);
}

.image-upload-btn svg {
  width: 32px;
  height: 32px;
  color: var(--text-light);
}

.image-upload-btn:hover svg {
  color: var(--primary-color);
}

.upload-text {
  font-size: 12px;
  color: var(--text-light);
}

.image-upload-btn:hover .upload-text {
  color: var(--primary-color);
}

.image-preview {
  width: 88px;
  height: 88px;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

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

.image-remove-btn {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 22px;
  height: 22px;
  background: rgba(239, 68, 68, 0.9);
  color: #fff;
  border: 2px solid #fff;
  border-radius: 50%;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  line-height: 1;
  padding: 0;
}

.image-remove-btn:hover {
  background: var(--secondary-color);
  transform: scale(1.1);
}

.priority-options {
  display: flex;
  flex-direction: row;
  gap: 10px;
  flex-wrap: wrap;
}

.priority-option {
  width: calc(33.333% - 7px);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 8px;
  border: 2px solid var(--border-color);
  border-radius: 14px;
  cursor: pointer;
  transition: all var(--transition-fast);
  background: #fff;
  position: relative;
}

.priority-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.priority-option:hover {
  border-color: var(--primary-color);
}

.priority-option:has(input[type="radio"]:checked) {
  border-color: var(--primary-color);
  background: rgba(245, 99, 81, 0.04);
}

.priority-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-bottom: 6px;
}

.priority-dot.low {
  background: #52c41a;
}

.priority-dot.medium {
  background: #faad14;
}

.priority-dot.high {
  background: var(--secondary-color);
}

.priority-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.priority-desc {
  font-size: 11px;
  color: var(--text-light);
}

.form-submit {
  width: 100%;
  height: 48px;
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-glow);
  margin-top: 8px;
}

.form-submit:active {
  transform: scale(0.98);
  background: var(--primary-dark);
}

/* 表单选择器 */
.form-value-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 44px;
  padding: 0 14px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color var(--transition-fast);
}

.form-value-wrap:hover,
.form-value-wrap:active {
  border-color: var(--primary-color);
}

.form-value {
  font-size: 15px;
  color: var(--text-primary);
}

.form-value.placeholder {
  color: var(--text-light);
}

.form-arrow {
  flex-shrink: 0;
}

/* 表单背景容器 */
.form-bg-container .form-bg-header {
  height: 0;
}

.form-bg-container .form-bg-content {
  padding: 0;
}

/* ==================== 资产管理：与用户端保持 100% 一致 ==================== */
.repair-item-header,
.asset-list-top,
.detail-header,
.modal-header {
  min-width: 0;
}

.repair-time,
.repair-status,
.asset-status,
.detail-title,
.modal-title {
  flex-shrink: 0;
}

.repair-title-text,
.repair-location span,
.repair-desc,
.repair-order,
.form-value,
.form-detail,
.tool-name,
.nav-text {
  overflow-wrap: anywhere;
}

.form-bg-container,
.page-content-inner,
.feedback-form,
.repair-list,
.status-list,
.asset-list {
  width: 100%;
  min-width: 0;
}

.form-image-wrap,
.priority-options,
.feedback-type-grid,
.tools-grid,
.asset-info-grid,
.schedule-summary-grid {
  min-width: 0;
}

.modal-overlay,
.company-modal-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  max-width: none;
  min-height: 100dvh;
  margin: 0;
  left: 0;
  right: 0;
  transform: none;
}

.auth-gate,
.loading-overlay {
  width: 100vw;
  max-width: none;
  left: 0;
  right: 0;
  margin: 0;
}

.toast-container {
  width: auto;
  max-width: min(90vw, 440px);
  left: 50%;
  right: auto;
  transform: translate(-50%, -50%);
}

@media (min-width: 441px) {
  .banner,
  .page-content,
  #pageAssetAdd,
  #pageMy {
    box-shadow: 0 0 24px rgba(0, 0, 0, 0.04);
  }
}

@media (max-width: 430px) {
  .banner-title {
    font-size: clamp(22px, 7vw, 30px);
    letter-spacing: 1px;
  }

  .banner-subtitle {
    font-size: 15px;
    letter-spacing: 1.5px;
  }

  .action-section {
    gap: 12px;
    padding-left: 18px;
    padding-right: 18px;
  }

  .action-btn {
    height: 54px;
    font-size: 15px;
    gap: 6px;
  }

  .action-btn svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
  }

  .page-content {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* 资产详情独立页面 —— 复用报修详情视觉风格 */
.asset-detail-page {
  display: none;
  flex-direction: column;
  background: transparent;
  padding: calc(12px + var(--app-safe-area-top, 0px)) 16px 0;
  padding-bottom: calc(var(--nav-item-size, 70px) + env(safe-area-inset-bottom, 0px) + 12px);
}
.asset-detail-page:not(.is-hidden) {
  display: flex;
}
.asset-detail-page .detail-header {
  margin: 0 0 12px;
  padding: 10px 18px;
  border-radius: 14px;
  box-shadow: none;
}
.asset-detail-page .detail-title {
  flex: 1;
  text-align: center;
  font-size: 18px;
}
.asset-detail-page .detail-back-btn {
  width: 36px;
  height: 36px;
}
.asset-detail-page .asset-detail-page-inner {
  padding: 0;
  background: transparent;
  overflow: visible;
}

/* 底部操作栏（紧贴资产详情下方，独立卡片容器） */
.asset-detail-page .asset-detail-footer {
  position: static;
  width: auto;
  max-width: none;
  margin: 12px 0 0;
  padding: 12px 14px;
  border-radius: 16px;
  background: #fff;
  border-top: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
