/* ==========================================================================
   上海英登 MRO 商城 - 个人中心与企业后台样式 (User Center & Enterprise Mgmt)
   分批发货物流跟踪、企业子账号管理、发票抬头、订单全流程
   ========================================================================== */

.user-center-layout {
  display: flex;
  gap: 20px;
  padding: 20px 16px 40px;
  box-sizing: border-box;
}

/* 左侧导航侧边栏 (User Sidebar: 精准与顶部导航“全部商品分类” 240px 宽度对齐) */
.user-sidebar-col {
  width: 240px;
  flex-shrink: 0;
}

.user-profile-brief-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 20px 16px;
  text-align: center;
  margin-bottom: 12px;
}

.user-avatar-circle {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-pill);
  background: var(--primary-light);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin: 0 auto 10px;
  font-weight: 700;
}

.user-name-display {
  font-size: 15px;
  font-weight: 700;
  color: #1a2b3c;
}

.user-company-badge {
  font-size: 11px;
  color: var(--primary-color);
  background: var(--primary-light);
  padding: 2px 8px;
  border-radius: 10px;
  margin-top: 4px;
  display: inline-block;
  font-weight: 600;
}

.user-avatar-circle.guest {
  background: #f1f5f9;
  color: #94a3b8;
  border: 1px solid #e2e8f0;
}

.user-company-badge.personal {
  color: #475569;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}

.user-company-badge.guest {
  color: #64748b;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
}

.btn-guest-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 32px;
  background: var(--primary-color);
  color: #ffffff !important;
  font-size: 12px;
  font-weight: 600;
  border-radius: 4px;
  text-decoration: none;
  margin-top: 8px;
  box-shadow: 0 2px 4px rgba(4, 117, 83, 0.2);
  transition: all 0.15s ease;
}

.btn-guest-login:hover {
  background: var(--primary-hover);
  color: #ffffff !important;
}

.btn-toggle-usertype {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #475569;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 8px;
  transition: all 0.15s ease;
  user-select: none;
}

.btn-toggle-usertype:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: var(--primary-color);
}

.btn-upgrade-corp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: linear-gradient(135deg, #047553 0%, #035c41 100%);
  color: #ffffff !important;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 8px;
  border: none;
  box-shadow: 0 2px 6px rgba(4, 117, 83, 0.25);
  transition: all 0.15s ease;
  user-select: none;
  width: 100%;
}

.btn-upgrade-corp:hover {
  background: linear-gradient(135deg, #059669 0%, #047553 100%);
  box-shadow: 0 4px 10px rgba(4, 117, 83, 0.35);
  transform: translateY(-1px);
}

/* 未登录状态主区域展示卡片 */
.user-unlogged-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 64px 40px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.user-unlogged-icon-wrap {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #f0fdf4;
  color: var(--primary-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  margin: 0 auto 20px;
  border: 2px solid #bbf7d0;
}

.user-unlogged-title {
  font-size: 20px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 10px;
}

.user-unlogged-desc {
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
  max-width: 480px;
  margin: 0 auto 28px;
}

.user-unlogged-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 36px;
}

.user-unlogged-demo-bar {
  border-top: 1px dashed #e2e8f0;
  padding-top: 24px;
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.user-unlogged-demo-hint {
  font-size: 12px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 6px;
}

.user-unlogged-demo-btns {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-demo-sim-login {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid transparent;
}

.btn-demo-sim-login.corp {
  background: #ecfdf5;
  color: #047553;
  border-color: #a7f3d0;
}

.btn-demo-sim-login.corp:hover {
  background: #d1fae5;
  border-color: #6ee7b7;
}

.btn-demo-sim-login.personal {
  background: #f1f5f9;
  color: #334155;
  border-color: #cbd5e1;
}

.btn-demo-sim-login.personal:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
}

.user-nav-menu-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 0;
}

.user-nav-group-title {
  padding: 10px 20px 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.user-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  font-size: 13px;
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition);
  border-left: 3px solid transparent;
}

.user-nav-item:hover,
.user-nav-item.active {
  background-color: #edf8f4;
  color: var(--primary-color);
  border-left-color: var(--primary-color);
  font-weight: 600;
}

/* 右侧主内容区 (User Main Content) */
.user-main-col {
  flex: 1;
  min-width: 0;
}

.user-section-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 24px;
  margin-bottom: 20px;
}

.user-card-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 20px;
}

.user-card-title {
  font-size: 18px;
  font-weight: 700;
  color: #1a2b3c;
}

/* 订单状态 Tab 栏 */
.order-status-tabs {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 18px;
}

.order-tab-item {
  padding-bottom: 10px;
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  position: relative;
}

.order-tab-item.active {
  color: var(--primary-color);
  font-weight: 600;
}

.order-tab-item.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary-color);
}

/* --------------------------------------------------------------------------
   订单项卡片 (Order Item Card - 极简工业品电商风格，去除过度设计与AI感)
   -------------------------------------------------------------------------- */
.order-box-item {
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #ffffff;
  margin-bottom: 16px;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.order-box-item:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.order-box-head {
  background: #f8fafc;
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #64748b;
  border-bottom: 1px solid #e2e8f0;
  flex-wrap: wrap;
  gap: 8px;
}

.order-head-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.order-no-val {
  font-family: var(--font-code);
  font-weight: 700;
  color: #1e293b;
  font-size: 13px;
  letter-spacing: 0.2px;
}

.order-head-sep {
  color: #cbd5e1;
}

.order-head-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.order-status-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 600;
}

.order-status-tag.status-pending {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.order-status-tag.status-shipped {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.order-status-tag.status-completed {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.order-status-tag.status-cancelled {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

.order-batch-tag {
  background: #f8fafc;
  color: #475569;
  border: 1px solid #cbd5e1;
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 3px;
}

.order-box-body {
  padding: 12px 16px;
}

.order-products-table {
  display: flex;
  flex-direction: column;
}

.order-product-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
  gap: 16px;
}

.order-product-row:last-child {
  border-bottom: none;
}

.product-thumb-title {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.product-thumb-img {
  width: 48px;
  height: 48px;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
  background: #f8fafc;
}

.product-detail-col {
  min-width: 0;
  flex: 1;
}

.product-detail-name {
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-spec-line {
  font-size: 12px;
  color: #64748b;
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.product-spec-brand {
  color: #047553;
  font-weight: 600;
}

.spec-dot {
  color: #cbd5e1;
}

.product-pricing-col {
  text-align: right;
  flex-shrink: 0;
}

.product-unit-price {
  font-size: 12px;
  color: #64748b;
  font-family: var(--font-number);
  font-variant-numeric: tabular-nums;
}

.product-subtotal-val {
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  margin-top: 2px;
  font-family: var(--font-number);
  font-variant-numeric: tabular-nums;
}

.order-box-footer {
  background: #ffffff;
  padding: 12px 16px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.order-footer-info {
  font-size: 12px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.order-footer-info strong {
  color: #1e293b;
}

.footer-info-sep {
  color: #cbd5e1;
}

.order-footer-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.order-total-block {
  font-size: 13px;
  color: #64748b;
}

.order-total-amount {
  color: var(--accent-color, #c2410c);
  font-size: 17px;
  font-weight: 700;
  margin-left: 2px;
  font-family: var(--font-number);
  font-variant-numeric: tabular-nums;
}

.order-action-btns {
  display: flex;
  align-items: center;
  gap: 8px;
}

.batch-track-row .track-time {
  color: #94a3b8;
  font-size: 11px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: 8px;
}

.shipping-batches-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.shipping-batch-btn {
  padding: 7px 14px;
  border: 1px solid var(--border-color);
  background: #f8fafc;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.shipping-batch-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.shipping-batch-btn.active {
  background: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-color);
}

.shipping-carrier-info {
  background: #f7fcf9;
  border: 1px solid #d8ede0;
  border-radius: 4px;
  padding: 12px 16px;
  font-size: 13px;
  margin-bottom: 18px;
}

.tracking-timeline {
  position: relative;
  padding-left: 24px;
}

.tracking-timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: #e5e5e5;
}

.timeline-node {
  position: relative;
  padding-bottom: 20px;
}

.timeline-node::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: var(--radius-pill);
  background: #bbbbbb;
  border: 2px solid #ffffff;
}

.timeline-node.active::before {
  background: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(4, 117, 83, 0.2);
}

.timeline-time {
  font-size: 12px;
  color: var(--text-muted);
}

.timeline-text {
  font-size: 13px;
  color: #333333;
  margin-top: 2px;
}

/* --------------------------------------------------------------------------
   企业子账号管理表格 (Sub-Accounts Management Table)
   -------------------------------------------------------------------------- */
.subaccount-table {
  width: 100%;
}

.subaccount-table th {
  background: #f8faf9;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 600;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.subaccount-table td {
  padding: 12px 14px;
  font-size: 13px;
  border-bottom: 1px solid #f0f0f0;
}

/* --------------------------------------------------------------------------
   弹窗表单通用控件样式 (Modal Form Inputs & Controls)
   -------------------------------------------------------------------------- */
.auth-form-group {
  margin-bottom: 18px;
}

.auth-form-label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 8px;
}

.auth-input-field {
  width: 100%;
  height: 40px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 0 14px;
  font-size: 13.5px;
  box-sizing: border-box;
  color: #1e293b;
  background-color: #ffffff;
  transition: all 0.2s ease;
}

.auth-input-field:focus {
  border-color: #047553;
  outline: none;
  box-shadow: 0 0 0 2px rgba(4, 117, 83, 0.15);
}

.auth-input-field::placeholder {
  color: #94a3b8;
}

/* --------------------------------------------------------------------------
   账户与安全设置中心 (Account & Security Center)
   -------------------------------------------------------------------------- */
.security-header-subtitle {
  font-size: 13px;
  color: #64748b;
  font-weight: normal;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

/* 基本资料模块 (对齐西域规范，精致表单) */
.user-profile-block {
  margin-bottom: 24px;
}

.sec-sub-header {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sec-sub-title {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 6px;
  padding-left: 8px;
  border-left: 3px solid #047553;
}

/* 基本资料全新对称布局：顶部居中紧凑头像 + 第一排2项(手机号、企业归属) + 第二排3项(真实姓名、性别、部门职位) + 居中保存 */
.user-profile-block {
  margin-bottom: 12px;
}

.user-profile-block .sec-sub-header {
  margin-bottom: 12px;
}

.profile-centered-form {
  max-width: 760px;
  margin: 0 auto;
  padding: 2px 0 8px;
}

/* 顶部居中头像区 (紧凑) */
.profile-avatar-top-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  text-align: center;
}

.profile-avatar-top-preview {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #059669 0%, #047553 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  overflow: hidden;
  border: 3px solid #ffffff;
  box-shadow: 0 3px 12px rgba(4, 117, 83, 0.2);
  margin: 0 auto 8px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.profile-avatar-top-preview:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(4, 117, 83, 0.28);
}

.profile-avatar-top-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.avatar-upload-btn-top {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 14px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.avatar-upload-btn-top:hover {
  border-color: #047553;
  color: #047553;
  background: #f0fdf4;
}

.avatar-upload-hint {
  font-size: 11px;
  color: #94a3b8;
}

/* 第一排：手机号与企业归属对称质感紧凑信息条 */
.profile-info-strip {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 8px 20px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-sizing: border-box;
}

/* 第二排：3列信息网格 (真实姓名、性别、部门职位) 紧凑无换行 */
.profile-form-row-3col {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 1.35fr;
  column-gap: 18px;
  align-items: center;
  margin-bottom: 16px;
}

.profile-form-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-cell-label {
  width: auto;
  text-align: left;
  color: #475569;
  font-weight: 600;
  font-size: 13px;
  flex-shrink: 0;
  white-space: nowrap;
  margin-right: 0;
}

.profile-cell-label .required-star {
  color: #dc2626;
  margin-right: 2px;
}

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

.profile-input-text {
  width: 100%;
  height: 34px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 0 10px;
  font-size: 13px;
  color: #1e293b;
  outline: none;
  background: #ffffff;
  transition: border-color 0.15s, box-shadow 0.15s;
  box-sizing: border-box;
}

.profile-input-text:focus {
  border-color: #047553;
  box-shadow: 0 0 0 2px rgba(4, 117, 83, 0.15);
}

.profile-select-field {
  width: 100%;
  height: 34px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 0 8px;
  font-size: 13px;
  color: #1e293b;
  background-color: #ffffff;
  outline: none;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
  box-sizing: border-box;
}

.profile-select-field:focus {
  border-color: #047553;
  box-shadow: 0 0 0 2px rgba(4, 117, 83, 0.15);
}

.profile-phone-text {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  font-family: var(--font-code);
}

.profile-company-text {
  font-size: 13px;
  color: #1e293b;
  font-weight: 600;
  white-space: nowrap;
}

.profile-company-code {
  font-size: 11px;
  color: #64748b;
  margin-left: 6px;
  font-family: var(--font-code);
  white-space: nowrap;
}

/* 居中保存按钮 (紧凑) */
.profile-form-actions-center {
  text-align: center;
  padding-top: 0;
}

.profile-form-actions-center .btn-primary {
  min-width: 140px;
  height: 34px;
  padding: 0 32px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 6px;
  background: #047553;
  color: #ffffff;
  border: none;
  cursor: pointer;
  letter-spacing: 4px;
  box-shadow: 0 2px 6px rgba(4, 117, 83, 0.2);
  transition: all 0.15s ease;
}

.profile-form-actions-center .btn-primary:hover {
  background-color: #035e42;
  box-shadow: 0 4px 12px rgba(4, 117, 83, 0.3);
}

@media (max-width: 820px) {
  .profile-info-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .profile-form-row-3col {
    grid-template-columns: 1fr;
    row-gap: 14px;
  }
}


.user-security-block {
  margin-top: 10px;
}



/* 核心安全项目卡片列表 */
.security-items-list {
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #ffffff;
  margin-bottom: 26px;
  overflow: hidden;
}

.security-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.15s ease;
  gap: 16px;
}

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

.security-item-row:hover {
  background: #fafcfb;
}

.sec-item-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 0;
}

.sec-item-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #edf8f4;
  color: #047553;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  border: 1px solid #cde8d8;
}

.sec-item-content {
  flex: 1;
  min-width: 0;
}

.sec-item-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.sec-item-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #1e293b;
}

.badge-status-safe {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  color: #047553;
  background: #edf8f4;
  border: 1px solid #b7e4ce;
  padding: 1px 8px;
  border-radius: 10px;
  font-weight: 600;
}

.badge-status-warn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  color: #d97706;
  background: #fffbeb;
  border: 1px solid #fde68a;
  padding: 1px 8px;
  border-radius: 10px;
  font-weight: 600;
}

.sec-item-desc {
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.5;
}

.sec-item-action {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* 密码强度指示器 */
.pwd-strength-wrap {
  margin-top: 6px;
}

.pwd-strength-bar {
  display: flex;
  gap: 6px;
  height: 4px;
}

.pwd-strength-segment {
  flex: 1;
  height: 100%;
  background: #e2e8f0;
  border-radius: 2px;
  transition: background 0.2s;
}

.pwd-strength-segment.active-weak {
  background: #ef4444;
}

.pwd-strength-segment.active-medium {
  background: #f59e0b;
}

.pwd-strength-segment.active-strong {
  background: #047553;
}

.pwd-strength-text {
  font-size: 11.5px;
  color: #64748b;
  margin-top: 4px;
  display: flex;
  justify-content: space-between;
}

/* ==========================================================================
   订单号与商品跳转、订单详情弹窗样式
   ========================================================================== */

.order-no-link {
  font-family: var(--font-code);
  font-weight: 700;
  color: var(--primary-color, #047553);
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: all 0.15s ease;
  padding: 2px 4px;
  border-radius: 3px;
}
.order-no-link:hover {
  background: #ecfdf5;
  color: #036043;
  text-decoration: underline;
}

.product-thumb-link {
  display: block;
  flex-shrink: 0;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.product-thumb-link:hover {
  opacity: 0.88;
  transform: scale(1.02);
}

a.product-detail-name.product-detail-link {
  display: block;
  text-decoration: none;
  cursor: pointer;
  color: #1e293b;
  transition: color 0.15s ease;
}
a.product-detail-name.product-detail-link:hover {
  color: var(--primary-color, #047553);
  text-decoration: underline;
}

/* 订单详情弹窗时间轴 */
.od-timeline-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: #f8fafc;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  margin-bottom: 20px;
}
.od-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
}
.od-step-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
  transition: all 0.2s ease;
}
.od-step.active .od-step-dot {
  background: #047553;
  color: #ffffff;
  box-shadow: 0 0 0 3px rgba(4, 117, 83, 0.15);
}
.od-step-label {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
}
.od-step.active .od-step-label {
  color: #0f172a;
  font-weight: 700;
}
.od-step-time {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 2px;
}
.od-step-line {
  flex: 1;
  height: 2px;
  background: #e2e8f0;
  margin: 0 10px;
  transform: translateY(-14px);
}
.od-step-line.active {
  background: #047553;
}

/* 订单详情商品表格商品名称 */
.od-table-prod-name {
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
  transition: color 0.15s ease;
  cursor: pointer;
}
.od-table-prod-name:hover {
  color: #047553;
  text-decoration: underline;
}

