/* ===== Apple-ish / Flat / Business typography + palette ===== */
:root{
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 6px 18px rgba(16,24,40,.06);

  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;

  /* Apple neutral background */
  --bg: #f5f5f7;
  --bg-soft: #ffffff;

  /* iOS-like accents (slightly business toned) */
  --accent: #0a84ff;        /* iOS blue */
  --accent-soft: #e9f2ff;   /* light blue tint */
  --danger: #ff3b30;        /* iOS red */
  --danger-soft: #ffe9e7;   /* red tint */
  --success: #34c759;       /* iOS green */
  --success-soft: #e9f8ef;  /* green tint */
}

html, body{
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
               Roboto, "Helvetica Neue", Arial, "Noto Sans", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* headings */
h1,h2,h3,h4,h5{
  font-weight: 650;
  letter-spacing: .2px;
}
.page-title{
  font-size: 20px;
  font-weight: 700;
}

/* muted text */
.small, .form-text, .text-muted{
  color: var(--muted) !important;
  font-size: 12.5px;
}

.navbar-brand{
  font-weight: 700;
  letter-spacing: .3px;
}

/* cards */
.card-soft{
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* tables */
.table-modern{
  border-radius: var(--radius);
  overflow: hidden;
}
.table-modern thead th{
  font-size: 12.5px;
  color: #374151;
  font-weight: 600;
  letter-spacing: .3px;
  background: #fafafa;
}
.table-modern tbody tr{
  transition: background .12s ease;
}
.table-modern tbody tr:hover{
  background: #fafcff;
}
.table-modern tbody td{
  vertical-align: middle;
  font-size: 14px;
}

/* clamp long text */
.clamp-1{
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 360px;
}

/* country + quantity visual */
.country-line{
  font-size: 13px;
  color: var(--muted);
}
.qty-num{
  font-size: 13px;
  font-weight: 600;
}

/* buttons general */
.btn{
  border-radius: 10px;
  font-weight: 600;
  letter-spacing: .1px;
}

/* primary button -> iOS blue */
.btn-primary{
  background: var(--accent) !important;
  border-color: var(--accent) !important;
}
.btn-primary:hover{
  filter: brightness(.96);
}

/* filter buttons */
.btn-filter{
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
}
.btn-filter.active{
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}

/* badges -> apple colors */
.badge.bg-danger{
  background: var(--danger) !important;
}
.badge.bg-success{
  background: var(--success) !important;
}
.badge.text-bg-light{
  background: #f3f4f6 !important;
  color: #111827 !important;
  border: 1px solid #e5e7eb;
}

/* thumbs */
.thumb{
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,.06);
}
.thumb-btn{
  cursor: zoom-in;
}

/* “详情” iOS text button */
.details-link{
  color: var(--accent) !important;
  font-weight: 600;
  font-size: 13.5px;
  text-decoration: none !important;
  padding: 2px 8px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: background .12s ease, color .12s ease, transform .06s ease;
}
.details-link:hover{
  background: var(--accent-soft);
  color: #0a6fe3 !important;
}
.details-link:active{
  transform: translateY(1px);
}
.details-link::after{
  content: "›";
  font-size: 14px;
  line-height: 1;
  margin-top: -1px;
}

/* modals */
.modal-content{
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: 0 20px 60px rgba(0,0,0,.18);
}

/* order card on mobile */
.order-card{
  padding: 12px;
}

/* checkbox image */
.img-check{
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.img-check input{
  margin-bottom: 4px;
}

/* accordion compact */
.accordion-compact{
  font-size: 14px;
  font-weight: 600;
}

/* ✅ pagination Apple style (fix black active!) */
.pagination .page-link{
  border-radius: 8px !important;
  color: var(--text);
  border-color: var(--line);
  background: #fff;
  font-size: 13.5px;
  font-weight: 600;
}
.pagination .page-link:hover{
  background: #f5f8ff;
  border-color: #d7e6ff;
}
.pagination .page-item.active .page-link{
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: #fff !important;
  box-shadow: 0 2px 6px rgba(10,132,255,.35);
}
.pagination .page-item.disabled .page-link{
  color: #b6bcc8 !important;
  background: #fff !important;
}
.form-control, .form-select{
  border-radius: 10px;
  border-color: var(--line);
}
.form-control:focus, .form-select:focus{
  border-color: #b7d7ff;
  box-shadow: 0 0 0 .2rem rgba(10,132,255,.12);
}
