/* ==========================================================================
   TECH STORE · 后台与前台衔接补充样式
   ========================================================================== */
#toast {
  visibility: hidden;
  opacity: 0;
  transition: opacity .2s ease;
}
#toast.show {
  visibility: visible;
  opacity: 1;
}

.search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(0, 0, 0, .45);
  padding: 80px 20px;
  justify-content: center;
  align-items: flex-start;
}
.search-overlay.open {
  display: flex;
}
.search-panel {
  width: min(680px, 100%);
  background: #fff;
  border-radius: 6px;
  padding: 16px;
  display: flex;
  gap: 10px;
}
.search-panel input {
  flex: 1;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 4px;
  min-width: 0;
}

#mobileMenu {
  display: none;
}
#mobileMenu.open {
  display: block;
}

.account-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 12px;
  text-align: left;
  color: #777;
  font-size: 12px;
  border-radius: 4px;
}
.account-nav a.active {
  background: #f2f2f2;
  color: #111;
  font-weight: 600;
}

.product-tabs a {
  padding: 15px 0;
  border-bottom: 2px solid transparent;
  font-size: 13px;
  color: #777;
}
.product-tabs a.active {
  border-color: #111;
  color: #111;
}

.field {
  display: block;
  font-size: 12px;
  color: #666;
  margin-bottom: 14px;
}
.field input,
.field select,
.field textarea {
  margin-top: 6px;
}

.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 30px 0 0;
  flex-wrap: wrap;
}
.pagination li a,
.pagination li span {
  display: inline-flex;
  min-height: 34px;
  min-width: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  font-size: 12px;
  color: #555;
  padding: 0 8px;
}
.pagination li.active span {
  background: #111;
  border-color: #111;
  color: #fff;
}

.table-wrap table th {
  background: #f6f6f6;
}

/* 顶部导航选中态（比原型的细下划线更明显） */
.nav a {
  color: #4a4a4a;
  font-weight: 500;
  transition: color .18s ease, border-color .18s ease;
}
.nav a:hover {
  color: #111;
}
.nav a.active {
  color: #111;
  font-weight: 700;
  border-color: #111;
}
.menu-mobile a {
  color: #444;
}
.menu-mobile a.active {
  color: #111;
  font-weight: 600;
}

/* 页脚新增「服务条款」列：桌面端 5 列布局 */
.footer-cols a {
  line-height: 1.6;
  word-break: break-word;
}

@media (min-width: 761px) {
  .footer-cols {
    grid-template-columns: 2fr 1fr 1fr 1fr 1.1fr;
    gap: 22px;
  }
}

@media (max-width: 760px) {
  .account-nav {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 12px;
  }
  .account-nav a {
    white-space: nowrap;
    width: auto;
    padding: 10px;
    font-size: 11px;
  }
  .shop-layout .filters {
    display: block;
    margin-bottom: 22px;
  }
}