/* ============================================================
 * YznCMS 风格主题（基于 Layui + PearAdmin 蓝色扁平设计）
 * 主色 #2d8cf0 | 浅蓝辅助 #ecf5ff | 浅灰背景 #f0f2f5
 * 扁平无渐变 · 小圆角 4px · 轻投影
 * ============================================================ */

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: #f0f2f5;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: #303133;
}

.container {
  width: 100%;
  max-width: 420px;
}

.card {
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  padding: 40px 36px;
}

.card-header {
  text-align: center;
  margin-bottom: 16px;
}

.card-header h1 {
  font-size: 30px;
  color: #303133;
  margin-bottom: 4px;
  font-weight: 500;
}

.card-header p {
  color: #909399;
  font-size: 14px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  color: #606266;
  font-weight: 500;
}

.form-group input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  font-size: 14px;
  color: #303133;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  background: #fff;
}

.form-group input:focus {
  border-color: #2d8cf0;
  box-shadow: 0 0 0 2px rgba(45, 140, 240, 0.12);
}

.btn {
  width: 100%;
  padding: 10px 20px;
  background: #2d8cf0;
  color: #fff;
  border: 1px solid #2d8cf0;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, opacity 0.2s;
  margin-top: 8px;
  letter-spacing: 2px;
}

.btn:hover {
  background: #57a3f3;
  border-color: #57a3f3;
}

.btn:active {
  background: #1d6fd0;
  border-color: #1d6fd0;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: #2d8cf0;
  border-color: #2d8cf0;
}

.btn-secondary {
  background: #fff;
  color: #606266;
  border: 1px solid #dcdfe6;
  margin-top: 12px;
}

.btn-secondary:hover {
  background: #ecf5ff;
  color: #2d8cf0;
  border-color: #2d8cf0;
}

.divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 24px 0;
  color: #909399;
  font-size: 13px;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #e4e7ed;
}

.divider span {
  padding: 0 12px;
}

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

.link-text a {
  color: #2d8cf0;
  text-decoration: none;
  font-weight: 500;
}

.link-text a:hover {
  text-decoration: underline;
}

.alert {
  padding: 10px 14px;
  border-radius: 4px;
  margin-bottom: 16px;
  font-size: 13px;
  display: none;
}

.alert-error {
  background: #fef0f0;
  color: #f56c6c;
  border: 1px solid #fde2e2;
}

.alert-success {
  background: #f0f9eb;
  color: #67c23a;
  border: 1px solid #e1f3d8;
}

.dashboard-card {
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

/* 顶部导航栏 */
.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #001529;
  padding: 0 24px;
  height: 56px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-logo {
  color: #fff;
  font-size: 18px;
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 14px;
  padding: 6px 14px;
  border-radius: 4px;
  transition: all 0.2s;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-welcome {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #2d8cf0;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
  flex-shrink: 0;
}

.nav-welcome-text {
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
}

/* 二级导航栏 */
.sub-nav {
  background: #fff;
  border: 1px solid #e4e7ed;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  margin: 100px auto 0;
  max-width: 1000px;
}

.sub-nav-inner {
  display: flex;
  align-items: center;
  padding: 0 24px;
  height: 48px;
  gap: 4px;
}

.sub-nav-link {
  display: inline-block;
  padding: 8px 18px;
  color: #606266;
  text-decoration: none;
  font-size: 14px;
  border-radius: 4px;
  transition: all 0.2s;
  white-space: nowrap;
}

.sub-nav-link:hover {
  background: #ecf5ff;
  color: #2d8cf0;
}

.sub-nav-link.active {
  background: #2d8cf0;
  color: #fff;
}

.btn-sm {
  padding: 5px 14px;
  font-size: 13px;
  background: #fff;
  color: #606266;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-sm:hover {
  background: #ecf5ff;
  color: #2d8cf0;
  border-color: #2d8cf0;
}

/* 仪表盘布局 */
.dashboard-body {
  display: block;
  padding: 0;
  align-items: stretch;
  justify-content: flex-start;
  overflow-x: hidden;
  max-width: 100vw;
  background: #f0f2f5;
}

.dashboard-content {
  padding: 20px 24px 24px;
  min-height: calc(100vh - 56px);
  max-width: 100%;
}

.dashboard-placeholder {
  padding: 60px 20px;
  background: #f5f7fa;
  border-radius: 4px;
  border: 1px dashed #dcdfe6;
}

.user-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #2d8cf0;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 32px;
  font-weight: 500;
}

.user-info {
  margin: 20px 0;
  padding: 16px;
  background: #f5f7fa;
  border-radius: 4px;
  text-align: left;
}

.user-info p {
  margin: 8px 0;
  color: #606266;
  font-size: 14px;
}

.user-info strong {
  color: #303133;
}

/* 下拉框样式 */
.form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  font-size: 14px;
  background: #fff;
  color: #303133;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group select:focus {
  border-color: #2d8cf0;
  box-shadow: 0 0 0 2px rgba(45, 140, 240, 0.12);
}

/* 结果表格样式（Layui table 风格） */
.table-wrapper {
  overflow-x: auto;
  margin: 16px 0;
  border-radius: 4px;
  border: 1px solid #ebeef5;
}

.result-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: #fff;
}

.result-table thead {
  background: #fafafa;
  color: #303133;
}

.result-table th,
.result-table td {
  padding: 10px 14px;
  text-align: center;
  border-bottom: 1px solid #ebeef5;
  color: #606266;
}

.result-table th {
  font-weight: 500;
  white-space: nowrap;
  color: #303133;
}

.result-table tbody tr:hover {
  background: #ecf5ff;
}

.result-table tbody tr:last-child td {
  border-bottom: none;
}

/* 类目标签样式 */
.category-tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  background: #ecf5ff;
  color: #2d8cf0;
  border: 1px solid #d9e8ff;
}

/* 快递单号链接 */
.tracking-link {
  color: #2d8cf0;
  text-decoration: none;
  font-weight: 500;
  cursor: pointer;
}

.tracking-link:hover {
  text-decoration: underline;
}

/* 弹窗遮罩 */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

/* 弹窗内容 */
.modal-content {
  background: #fff;
  border-radius: 4px;
  width: 100%;
  max-width: 520px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
}

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

.modal-header h2 {
  font-size: 16px;
  color: #303133;
  font-weight: 500;
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #909399;
  line-height: 1;
  padding: 0 4px;
  transition: color 0.2s;
}

.modal-close:hover {
  color: #303133;
}

.modal-body {
  padding: 20px;
}

.logistics-header {
  margin-bottom: 20px;
  padding: 14px 16px;
  background: #f5f7fa;
  border-radius: 4px;
}

.logistics-header p {
  margin: 6px 0;
  font-size: 14px;
  color: #606266;
}

/* 物流时间线 */
.timeline {
  position: relative;
  padding-left: 8px;
}

.timeline-item {
  position: relative;
  padding: 0 0 20px 24px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: -8px;
  width: 2px;
  background: #e4e7ed;
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-dot {
  position: absolute;
  left: 0;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #2d8cf0;
  border: 3px solid #ecf5ff;
  box-sizing: content-box;
}

.timeline-text {
  font-size: 14px;
  color: #303133;
  line-height: 1.6;
}

/* ========== 响应式适配 ========== */

/* 平板及以下 */
@media (max-width: 768px) {
  body {
    padding: 12px;
  }

  .container {
    max-width: 100%;
  }

  .card {
    padding: 28px 20px;
    border-radius: 4px;
  }

  .card-header {
    margin-bottom: 24px;
  }

  .card-header h1 {
    font-size: 22px;
  }

  /* 顶部导航 */
  .top-nav {
    padding: 0 14px;
    height: 52px;
  }

  .nav-logo {
    font-size: 16px;
  }

  .nav-welcome-text {
    font-size: 14px;
  }

  .nav-avatar {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  .nav-right {
    gap: 10px;
  }

  /* 二级导航 */
  .sub-nav {
    margin-top: 16px;
  }

  .sub-nav-inner {
    padding: 0 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .sub-nav-inner::-webkit-scrollbar {
    display: none;
  }

  .sub-nav-link {
    padding: 8px 14px;
    font-size: 13px;
  }

  /* 仪表盘内容 */
  .dashboard-content {
    padding: 16px 12px 20px;
  }

  .dashboard-card {
    max-width: 100%;
  }

  /* 表格 */
  .table-wrapper {
    margin: 12px 0;
  }

  .result-table {
    font-size: 13px;
  }

  .result-table th,
  .result-table td {
    padding: 8px 10px;
  }

  /* 弹窗 */
  .modal-content {
    max-width: 100%;
    border-radius: 4px;
  }

  .modal-header,
  .modal-body {
    padding: 16px;
  }

  .modal-header h2 {
    font-size: 15px;
  }

  .tabs {
    padding: 12px 12px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

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

  .tab {
    padding: 8px 14px;
    font-size: 13px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .tab-panel {
    padding: 12px;
  }

  .toolbar {
    gap: 8px;
  }

  .toolbar h3 {
    font-size: 15px;
    width: 100%;
  }

  /* 管理后台弹窗 */
  .modal {
    width: 100%;
    max-width: 100%;
    padding: 18px;
    border-radius: 4px;
  }

  /* 按钮 */
  .btn-sm {
    padding: 5px 10px;
    font-size: 12px;
  }
}

/* 手机 */
@media (max-width: 480px) {
  body {
    padding: 8px;
  }

  .card {
    padding: 24px 16px;
    border-radius: 4px;
  }

  .card-header h1 {
    font-size: 24px;
  }

  .card-header p {
    font-size: 13px;
  }

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

  .form-group input,
  .form-group select {
    padding: 9px 12px;
    font-size: 16px; /* iOS 防止缩放 */
  }

  .btn {
    padding: 9px 16px;
    font-size: 14px;
  }

  /* 顶部导航更紧凑 */
  .top-nav {
    padding: 0 10px;
    height: 48px;
  }

  .nav-logo {
    font-size: 14px;
  }

  .nav-welcome-text {
    font-size: 13px;
  }

  .nav-avatar {
    width: 26px;
    height: 26px;
    font-size: 11px;
  }

  .nav-right .btn-sm {
    padding: 4px 10px;
    font-size: 12px;
  }

  /* 二级导航 */
  .sub-nav {
    margin-top: 12px;
    border-radius: 4px;
  }

  .sub-nav-link {
    padding: 7px 12px;
    font-size: 12px;
  }

  /* 内容区 */
  .dashboard-content {
    padding: 12px 8px 16px;
  }

  /* 表格字号 */
  .result-table {
    font-size: 12px;
  }

  .result-table th,
  .result-table td {
    padding: 6px 8px;
  }

  /* 弹窗占满 */
  .modal-overlay {
    padding: 8px;
  }

  .modal-content {
    max-height: 92vh;
  }

  /* 时间线 */
  .timeline-item {
    padding-left: 20px;
    padding-bottom: 16px;
  }

  .timeline-dot {
    width: 12px;
    height: 12px;
  }

  .timeline-text {
    font-size: 13px;
  }

  .tab {
    padding: 7px 12px;
    font-size: 12px;
  }

  .tab-panel {
    padding: 8px;
  }

  /* 用户头像 */
  .user-avatar {
    width: 64px;
    height: 64px;
    font-size: 26px;
  }

  .dashboard-placeholder {
    padding: 36px 12px;
  }
}

/* ========== 查询结果页分页组件 ========== */
.result-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 0 0;
  font-size: 14px;
  color: #606266;
}
.result-pagination .pg-info {
  color: #606266;
  white-space: nowrap;
}
.result-pagination select {
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  padding: 5px 8px;
  font-size: 13px;
  background: #fff;
  color: #606266;
  cursor: pointer;
  outline: none;
}
.pg-btns {
  display: flex;
  gap: 6px;
  align-items: center;
}
.pg-btn {
  min-width: 32px;
  height: 32px;
  border-radius: 4px;
  border: 1px solid #dcdfe6;
  background: #fff;
  color: #606266;
  cursor: pointer;
  font-size: 13px;
  font-weight: 400;
  transition: all 0.18s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}
.pg-btn:hover:not(:disabled):not(.pg-active) {
  border-color: #2d8cf0;
  color: #2d8cf0;
}
.pg-btn.pg-active {
  background: #2d8cf0;
  border-color: #2d8cf0;
  color: #fff;
  font-weight: 500;
}
.pg-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  background: #f5f7fa;
}
.pg-ellipsis {
  color: #909399;
  padding: 0 4px;
}
.pg-jump {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.pg-jump input {
  width: 50px;
  height: 32px;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  text-align: center;
  font-size: 14px;
  outline: none;
  color: #606266;
}
.pg-jump input:focus { border-color: #2d8cf0; }

@media (max-width: 600px) {
  .result-pagination {
    justify-content: center;
    gap: 8px;
    font-size: 12px;
  }
  .pg-btn { min-width: 28px; height: 28px; font-size: 12px; }
  .pg-jump input { width: 44px; height: 28px; }
}

/* ========== 寄件后台统一布局（工作台 / 发货明细 / 通讯录 / 个人信息 共用） ========== */
.home-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

/* 顶部深色导航：容器内圆角卡片（与管理后台 .admin-nav 同款），四个页面必须像素一致 */
.home-nav {
  background: #001529;
  border-radius: 4px;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}
.home-nav h1 {
  font-size: 16px;
  margin: 0;
  color: #fff;
  font-weight: 500;
  min-width: 0;
  flex: 1 1 auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.home-nav .right {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
  flex-shrink: 0;
  justify-content: flex-end;
}
.home-user { display: flex; align-items: center; gap: 8px; }
.home-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #2d8cf0;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
}
.home-name {
  color: #fff;
  font-size: 14px;
  font-weight: 400;
  white-space: nowrap;
}
.nav-ghost-btn {
  padding: 6px 14px;
  font-size: 13px;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  cursor: pointer;
  font-weight: 400;
  transition: all 0.2s;
}
.nav-ghost-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  color: #fff;
}

/* 顶栏用户区（头像+姓名+小箭头）：点击展开下拉菜单 */
.home-nav .home-user {
  position: relative;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s;
}
.home-nav .home-user:hover { background: rgba(255, 255, 255, 0.1); }
.home-caret { display: inline-flex; color: rgba(255,255,255,0.7); }
.home-caret svg { width: 14px; height: 14px; transition: transform 0.2s; }
.home-user.open .home-caret svg { transform: rotate(180deg); }

.home-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 152px;
  background: #fff;
  border: 1px solid #ebeef5;
  border-radius: 4px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.14);
  padding: 6px 0;
  z-index: 1200;
}
/* 小三角，指向用户区 */
.home-dropdown::before {
  content: '';
  position: absolute;
  top: -6px; right: 22px;
  width: 10px; height: 10px;
  background: #fff;
  border-left: 1px solid #ebeef5;
  border-top: 1px solid #ebeef5;
  transform: rotate(45deg);
}
.home-user.open .home-dropdown { display: block; }
.home-dropdown-item {
  display: flex; align-items: center; gap: 9px;
  width: 100%; padding: 9px 18px;
  background: none; border: none; cursor: pointer;
  font-size: 14px; color: #303133; text-align: left;
  transition: background 0.15s, color 0.15s;
}
.home-dropdown-item svg { width: 15px; height: 15px; color: #606266; flex-shrink: 0; }
.home-dropdown-item:hover { background: #ecf5ff; color: #2d8cf0; }
.home-dropdown-item:hover svg { color: #2d8cf0; }
.home-dropdown-divider { height: 1px; background: #ebeef5; margin: 5px 0; }

/* 顶栏下拉菜单中的修改密码弹窗 */
.user-pwd-modal { max-width: 420px; }
.upwd-field { margin-bottom: 14px; }
.upwd-field label { display: block; font-size: 13px; color: #606266; margin-bottom: 6px; }
.upwd-field label em { color: #f56c6c; font-style: normal; }
.upwd-field input {
  width: 100%;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 14px;
  color: #303133;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.upwd-field input:focus {
  border-color: #2d8cf0;
  box-shadow: 0 0 0 2px rgba(45,140,240,0.12);
}
.upwd-msg { min-height: 20px; font-size: 13px; margin: 2px 0 10px; }
.upwd-msg.err { color: #f56c6c; }
.upwd-msg.ok { color: #19be6b; }
.upwd-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }
.upwd-btn-cancel {
  padding: 7px 18px; font-size: 14px; cursor: pointer;
  color: #515a6e; background: #fff; border: 1px solid #dcdee2; border-radius: 4px;
  transition: all 0.2s;
}
.upwd-btn-cancel:hover { border-color: #515a6e; }
.upwd-btn-submit {
  padding: 7px 18px; font-size: 14px; cursor: pointer;
  color: #fff; background: #2d8cf0; border: 1px solid #2d8cf0; border-radius: 4px;
  transition: all 0.2s;
}
.upwd-btn-submit:hover { background: #57a3f3; border-color: #57a3f3; }
.upwd-btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }

/* 内页（发货明细/通讯录/个人信息）：二级导航与内容卡填满 1200 容器，与黑色导航左右对齐 */
.home-wrap .sub-nav {
  margin: 16px 0 0;
  max-width: none;
}
.home-wrap .dashboard-content {
  padding: 18px 0 0;
  min-height: auto;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.home-wrap .dashboard-card {
  max-width: none;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.home-wrap .dashboard-card .table-wrapper {
  flex: 1;
  overflow: auto;
  min-height: 0;
}

/* 底部版权（五个寄件后台页面共用，放在 .home-wrap 内与各卡片同宽） */
.home-footer {
  background: #fff;
  border-radius: 8px;
  margin: 16px 0 0;
  padding: 20px;
  text-align: center;
  color: #909399;
  font-size: 13px;
}
.home-footer a { color: #909399; text-decoration: none; }
.home-footer a:hover { color: #2d8cf0; }

@media (max-width: 480px) {
  .home-wrap { padding: 12px; }
  .home-nav { padding: 0 14px; height: 52px; }
  .home-nav h1 { font-size: 14px; }
  .home-nav .right { gap: 8px; }
  .home-name { font-size: 12px; }
  .home-avatar { width: 28px; height: 28px; font-size: 12px; }
}

/* ========== 查询结果页（/result，公开查询跳转后页面） ========== */
body.result-body {
  background: #f0f2f5;
  display: flex;
  flex-direction: column;
  padding: 0;
  min-height: 100vh;
}
.result-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}
/* 顶部深色标题栏 */
.result-topbar {
  background: #001529;
  border-radius: 4px;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}
/* 头部信息白卡（精准/模糊两种形态） */
.result-head-card {
  background: #fff;
  border: 1px solid #ebeef5;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  padding: 24px 28px;
  margin-top: 18px;
}
.rhc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.rhc-greet {
  font-size: 26px;
  color: #303133;
  font-weight: 600;
  margin-bottom: 12px;
}
.rhc-greet .rhc-name { color: #2d8cf0; }
.rhc-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.rhc-role {
  display: inline-block;
  padding: 2px 14px;
  font-size: 13px;
  color: #f56c6c;
  border: 1px solid #f56c6c;
  border-radius: 4px;
  background: #fff;
  line-height: 1.7;
}
.rhc-clock {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #303133;
  font-size: 16px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.5px;
}
.rhc-clock-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #67c23a;
  flex-shrink: 0;
  animation: rhcClockPulse 1.6s ease-in-out infinite;
}
@keyframes rhcClockPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(103, 194, 58, 0.45); }
  50% { box-shadow: 0 0 0 5px rgba(103, 194, 58, 0); }
}
.rhc-cond {
  margin-top: 12px;
  font-size: 14px;
  color: #909399;
}
.rhc-row.rhc-simple .rhc-cond { margin-top: 0; font-size: 15px; }
.rhc-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}
/* 描边按钮（与工作台同款） */
.outline-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  font-size: 14px;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  background: #fff;
  white-space: nowrap;
}
.outline-btn svg { width: 16px; height: 16px; }
.outline-btn.primary { color: #2d8cf0; border: 1px solid #2d8cf0; }
.outline-btn.primary:hover { background: #ecf5ff; }
.outline-btn.gray { color: #606266; border: 1px solid #dcdfe6; }
.outline-btn.gray:hover { color: #2d8cf0; border-color: #2d8cf0; background: #ecf5ff; }
/* 数据白卡 */
.result-data-card {
  background: #fff;
  border: 1px solid #ebeef5;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  margin-top: 18px;
  padding: 20px 24px 24px;
  flex: 1;
}
.result-data-card .table-wrapper { border: 1px solid #ebeef5; border-radius: 4px; margin: 0; }
.result-data-card .result-table th,
.result-data-card .result-table td { padding: 14px; }
.result-data-card .result-pagination { padding: 18px 4px 0; }

/* 固定列宽布局：table-layout:fixed + colgroup，地址列自适应剩余宽度 */
.result-table-fixed {
  table-layout: fixed !important;
  width: 100% !important;
  min-width: 754px; /* 固定列总宽604 + 地址预留≥150px */
}
.result-table-fixed th,
.result-table-fixed td {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 0;   /* 关键：配合 table-layout:fixed 让 ellipsis 生效 */
}
.result-empty {
  text-align: center;
  color: #909399;
  padding: 48px 20px;
  font-size: 14px;
}
/* 历史快递弹窗：空白内容区 */
.history-empty {
  min-height: 320px;
}
/* 水印（与管理后台同款） */
.rhc-watermark {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  background-repeat: repeat;
  opacity: 0.08;
}

@media (max-width: 768px) {
  .result-wrap { padding: 14px; }
  .result-head-card { padding: 20px; }
  .rhc-greet { font-size: 22px; }
  .result-data-card { padding: 14px 12px; }
}
@media (max-width: 480px) {
  .result-wrap { padding: 12px; }
  .result-topbar { padding: 0 14px; height: 52px; font-size: 14px; }
  .rhc-actions { width: 100%; }
  .rhc-actions .outline-btn { flex: 1; justify-content: center; }
  .result-data-card .result-table th,
  .result-data-card .result-table td { padding: 10px 8px; }
}

