/* ===== 本地修复（覆盖） ===== */
html, body {
  height: auto !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  position: static !important;
}
body {
  width: auto !important;
  background: #f5f7fa;
}
#app {
  height: auto !important;
  overflow: visible !important;
}
.main-content {
  height: auto !important;
  min-height: auto !important;
  overflow: visible !important;
}
.navbar-wrapper {
  position: sticky !important;
  top: 0 !important;
}
.dialog-fade-enter-from, .dialog-fade-enter-active {
  opacity: 1 !important;
  transform: none !important;
}
.app-footer, .mobile-tabbar-wrap {
  position: relative !important;
}

/* ===== profile.html 自定义页面样式 ===== */
.profile-page {
  min-height: calc(100vh - 200px);
  padding: 24px 0 60px;
  background: #f5f7fa;
}
.profile-page .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.profile-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 20px;
}
.profile-sidebar {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  height: fit-content;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.profile-sidebar .user-card {
  text-align: center;
  padding-bottom: 20px;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 16px;
  height: auto !important;   /* 覆盖 fastim 的固定 80px，防内容溢出压菜单 */
  overflow: visible;
  background: transparent;
  width: auto;
  margin-left: 0;
}
.profile-sidebar .user-avatar-big {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f04e23 0%, #c9a45c 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  margin: 0 auto 12px;
}
.profile-sidebar .user-info h3 {
  font-size: 16px;
  margin-bottom: 4px;
}
.profile-sidebar .muted {
  color: #999;
  font-size: 12px;
}
.profile-menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.profile-menu .menu-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 12px 8px;
  border-radius: 10px;
  font-size: 13px;
  color: #333;
  text-decoration: none;
  transition: all .15s;
}
.profile-menu .menu-item:hover {
  background: #fff5f0;
  color: #f04e23;
}
.profile-menu .menu-item.active {
  background: linear-gradient(135deg, #fff3e0 0%, #ffedd5 100%);
  color: #f04e23;
  font-weight: 600;
}
.profile-menu .menu-item .icon {
  font-size: 18px;
}
.profile-content {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.profile-content .profile-header {
  padding-bottom: 16px;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 20px;
}
.profile-content .profile-header h2 {
  font-size: 20px;
  margin-bottom: 6px;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.profile-content .stat-card {
  background: #fafafa;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  border: 1px solid #f0f0f0;
}
.profile-content .stat-card .stat-icon {
  font-size: 32px;
  margin-bottom: 8px;
}
.profile-content .stat-card .stat-value {
  font-size: 24px;
  font-weight: 700;
  color: #f04e23;
  margin-bottom: 4px;
}
.profile-content .stat-card .stat-label {
  font-size: 13px;
  color: #666;
}
.profile-section {
  margin-bottom: 24px;
}
.profile-section h3 {
  font-size: 16px;
  margin-bottom: 12px;
}
.profile-section .quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.profile-section .quick-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px;
  background: #fafafa;
  border-radius: 10px;
  border: 1px solid #f0f0f0;
  color: #333;
  transition: all .15s;
}
.profile-section .quick-card:hover {
  background: #fff5f0;
  color: #f04e23;
  transform: translateY(-2px);
}
.profile-section .quick-card .icon {
  font-size: 28px;
}
.profile-section .empty-state {
  text-align: center;
  padding: 40px;
  background: #fafafa;
  border-radius: 10px;
}
.profile-section .empty-state .muted {
  color: #999;
  margin-bottom: 16px;
}
.profile-section .empty-state .btn {
  display: inline-block;
  padding: 10px 24px;
  background: #f04e23;
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
}

/* ===== recovery.html 自定义页面样式 ===== */
.recovery-list-page {
  min-height: calc(100vh - 200px);
  padding: 24px 0 60px;
  background: #f5f7fa;
}
.recovery-list-page .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.recovery-list-page .page-header {
  margin-bottom: 20px;
}
.recovery-list-page .page-header h2 {
  font-size: 24px;
  margin-bottom: 6px;
}
.recovery-list-page .recovery-toolbar {
  background: #fff;
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.recovery-list-page .filter-tags {
  display: flex;
  gap: 8px;
}
.recovery-list-page .filter-tag {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  background: #fafafa;
  border: 1px solid #f0f0f0;
  color: #666;
  cursor: pointer;
  transition: all .15s;
}
.recovery-list-page .filter-tag.active {
  background: linear-gradient(135deg, #f04e23 0%, #c9a45c 100%);
  color: #fff;
  border-color: transparent;
}
.recovery-list-page .btn {
  padding: 10px 20px;
  background: #f04e23;
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  border: none;
  cursor: pointer;
}
.recovery-list-page .empty-state-large {
  text-align: center;
  padding: 80px 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.recovery-list-page .empty-state-large .empty-icon {
  font-size: 60px;
  margin-bottom: 16px;
  opacity: .5;
}
.recovery-list-page .empty-state-large h3 {
  font-size: 18px;
  margin-bottom: 8px;
}
.recovery-list-page .empty-state-large .muted {
  color: #999;
  margin-bottom: 0;
}
.recovery-list-page .link {
  color: #f04e23;
  text-decoration: underline;
  margin: 0 4px;
}

/* ===== 移动端适配 ===== */
@media (max-width: 768px) {
  .profile-layout {
    grid-template-columns: 1fr !important;
  }
  .stat-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .profile-section .quick-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .recovery-list-page .recovery-toolbar {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }
}
/* ===== notice-page 滚动修复 ===== */
.notice-page, .notice-page .wrap, .notice-page .page-header {
  height: auto !important;
  overflow: visible !important;
  min-height: auto !important;
}
.main-content .notice-page {
  padding: 20px 0 60px !important;
}
/* ===== 其他页面通用滚动修复 ===== */
.main-content > div {
  height: auto !important;
  overflow: visible !important;
}


/* ===== 后台管理样式 ===== */
.admin-nav {
  background: #001529;
  color: #fff;
  height: 56px;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.admin-nav-inner {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 24px;
  gap: 24px;
  max-width: 1400px;
  margin: 0 auto;
}
.admin-logo {
  color: #fff;
  font-weight: 700;
  font-size: 18px;
}
.admin-links {
  display: flex;
  gap: 4px;
  flex: 1;
}
.admin-links a {
  color: rgba(255,255,255,.7);
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  transition: all .15s;
}
.admin-links a:hover {
  background: rgba(255,255,255,.1);
  color: #fff;
}
.admin-user {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,.85);
  font-size: 13px;
}
.admin-main {
  padding: 24px;
  max-width: 1400px;
  margin: 0 auto;
}
.admin-main h1 {
  margin-bottom: 24px;
  font-size: 24px;
}
.admin-table {
  width: 100%;
  background: #fff;
  border-radius: 10px;
  border-collapse: collapse;
  border: 1px solid #e5e5e7;
  overflow: hidden;
}
.admin-table th, .admin-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #e5e5e7;
  font-size: 13px;
}
.admin-table th {
  background: #fafafa;
  font-weight: 600;
  color: #6e6e73;
}
.admin-table tr:last-child td {
  border-bottom: none;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  border: 1px solid #e5e5e7;
  text-align: center;
}
.stat-icon {
  font-size: 24px;
  margin-bottom: 8px;
  color: #6e6e73;
}
.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: #1d1d1f;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 13px;
  color: #6e6e73;
}
.btn {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  background: #fff;
  color: #1d1d1f;
  border: 1px solid #e5e5e7;
  cursor: pointer;
  transition: all .15s;
  text-decoration: none;
}
.btn:hover {
  border-color: #f04e23;
  color: #f04e23;
}
.btn-primary {
  background: #f04e23;
  color: #fff;
  border-color: #f04e23;
}
.btn-primary:hover {
  background: #c83a15;
  border-color: #c83a15;
  color: #fff;
}
.btn-block {
  width: 100%;
  display: block;
  text-align: center;
}
.btn-mini {
  display: inline-block;
  padding: 4px 10px;
  background: #fafafa;
  border-radius: 4px;
  font-size: 12px;
  color: #1d1d1f;
  border: 1px solid #e5e5e7;
  cursor: pointer;
  text-decoration: none;
  margin-right: 4px;
}
.btn-mini:hover {
  border-color: #f04e23;
  color: #f04e23;
}
.admin-login {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #001529 0%, #002140 100%);
}
.admin-login-card {
  background: #fff;
  padding: 40px;
  border-radius: 12px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 8px 32px rgba(0,0,0,.15);
}
.admin-login-card h2 {
  text-align: center;
  margin-bottom: 24px;
}
.flash {
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 8px;
  font-size: 13px;
}
.flash-error {
  background: #ffebee;
  color: #d32f2f;
}
.flash-success {
  background: #e8f5e9;
  color: #2e7d32;
}
.status {
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 12px;
  display: inline-block;
}
.status-paid, .status-on {
  background: #e8f5e9;
  color: #2e7d32;
}
.status-pending {
  background: #fff3cd;
  color: #ff9500;
}
.status-cancelled, .status-off, .status-rejected {
  background: #ffebee;
  color: #d32f2f;
}
.auth-card {
  background: #fff;
  border-radius: 10px;
  padding: 24px;
  border: 1px solid #e5e5e7;
}
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #1d1d1f;
}
.form-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e5e5e7;
  border-radius: 6px;
  font-size: 14px;
  background: #fff;
}
.form-input:focus {
  outline: none;
  border-color: #f04e23;
}
.muted {
  color: #6e6e73;
  font-size: 12px;
}

/* ===== 弹窗状态修复（扒站时公告弹窗打开的残留状态） ===== */
body.el-popup-parent--hidden {
  overflow: visible !important;
  overflow-y: auto !important;
}
body {
  width: auto !important;
  min-width: 0 !important;
}

/* ===== hafu-market 行情页：显示全部行 ===== */
.hafu-page .hafu-tbody {
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}
.hafu-page .hafu-marquee {
  animation: none !important;
}
.hafu-page .hafu-table {
  --box-h: auto !important;
}
.hafu-page .hafu-tr {
  height: 54px !important;
}

/* ===== 黄金比例布局优化 (1.618) ===== */
/* 主内容区：黄金比例留白 */
.container {
  max-width: 1200px; /* 基准宽度 */
}
.main-content {
  padding-top: 0;
}
/* 商品网格：黄金比例卡片（宽:高 ≈ 1.618 区域划分） */
.accounts-grid {
  gap: 16px; /* 间距 = 基准 10px × 1.618 */
}
/* 弹窗/卡片圆角：黄金比例 */
.card, .auth-card, .stat-card {
  border-radius: 10px; /* 黄金比例小半径 */
}
/* 字体层级：黄金比例缩放 (16/14/11 ≈ 1.143/1.273/1.618) */
h1 { font-size: 24px; letter-spacing: .02em; }
h2 { font-size: 20px; letter-spacing: .02em; }
h3 { font-size: 16px; }
/* 按钮：黄金比例内边距 (8×1.618 ≈ 13px 水平) */
.btn, .btn-primary {
  padding: 8px 13px;
  border-radius: 8px;
}
/* 表格行高：黄金比例节奏 */
.admin-table td {
  padding: 11px 16px; /* 11 ≈ 7×1.618 */
}
/* 后台布局：侧边黄金分割 */
.admin-main {
  padding: 24px; /* 基准 */
}
/* 区块间距：黄金比例级数 8-13-21-34 */
.profile-section, .stat-grid {
  margin-bottom: 21px;
}
/* 输入框高度：黄金比例 */
.form-input {
  padding: 10px 13px;
}

/* ===== 租号大厅筛选展开/收起 ===== */

/* 筛选行展开按钮 */
.filter-toggle {
  cursor: pointer;
  user-select: none;
  color: #f04e23;
}
