/* MAIDUIDE 发卡站 全站样式（MAIDUIDE-T5） */
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #f6f7f9; color: #1f2937; line-height: 1.6;
}
a { color: #2563eb; text-decoration: none; }
a:hover { text-decoration: underline; }

.top { background: #fff; border-bottom: 1px solid #e5e7eb; padding: 0 20px;
  display: flex; align-items: center; gap: 24px; min-height: 52px; flex-wrap: wrap; }
.top .brand { font-weight: 700; font-size: 18px; color: #111827; }
.top nav { display: flex; gap: 16px; flex-wrap: wrap; }
.top nav a { color: #4b5563; font-size: 14px; }

main { max-width: 1000px; margin: 24px auto; padding: 0 16px; }

h1 { font-size: 22px; }
h3 { font-size: 16px; margin: 0 0 12px; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.card { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px;
  padding: 16px 18px; margin-bottom: 16px; }
.card.detail { max-width: 640px; }
.muted { color: #6b7280; font-size: 13px; }
.stock { color: #6b7280; font-size: 13px; margin: 6px 0 10px; }
.price { color: #e4393c; font-weight: 700; font-size: 20px; }

.btn { display: inline-block; border: 0; background: #2563eb; color: #fff;
  padding: 8px 18px; border-radius: 8px; font-size: 14px; cursor: pointer; }
.btn:hover { background: #1d4ed8; text-decoration: none; }
.btn.ghost { background: transparent; color: #2563eb; border: 1px solid #93c5fd; }
.btn.ghost:hover { background: #eff6ff; }
.btn.sm { padding: 4px 10px; font-size: 12px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

.flash { padding: 10px 14px; border-radius: 8px; margin-bottom: 16px; font-size: 14px; }
.flash.ok { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.flash.bad { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th, .tbl td { border-bottom: 1px solid #e5e7eb; padding: 8px 6px;
  text-align: left; vertical-align: middle; }
.tbl th { color: #6b7280; font-weight: 600; white-space: nowrap; }
.tbl input { width: auto; max-width: 160px; margin-top: 0; padding: 5px 8px; }
.ops { white-space: nowrap; }

.tag { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; }
.tag.ok { background: #ecfdf5; color: #047857; }
.tag.warn { background: #fffbeb; color: #b45309; }

.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.tabs a { padding: 6px 14px; border-radius: 999px; font-size: 14px; color: #4b5563;
  background: #fff; border: 1px solid #e5e7eb; }
.tabs a.on { background: #2563eb; color: #fff; border-color: #2563eb; }
.tabs a:hover { text-decoration: none; }

.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }

form.grid label { display: block; margin-bottom: 10px; font-size: 13px; color: #374151; }
input, textarea, select { width: 100%; padding: 8px 10px; border: 1px solid #d1d5db;
  border-radius: 8px; font-size: 14px; font-family: inherit; margin-top: 4px; }
input:focus, textarea:focus, select:focus { outline: none; border-color: #2563eb; }
.w60 { width: 60px !important; }
.w80 { width: 80px !important; }
.w120 { width: 120px !important; }

form.inline { display: inline-block; margin: 0 2px; }
form.inline input { width: auto; display: inline-block; margin-top: 0; }

.code { font-family: ui-monospace, Consolas, monospace; letter-spacing: 1px;
  background: #f3f4f6; padding: 2px 8px; border-radius: 6px; font-size: 13px; }
ul.codes { list-style: none; padding: 0; }
ul.codes li { padding: 4px 0; }

.pos { color: #059669; font-weight: 600; }
.neg { color: #dc2626; font-weight: 600; }
.chip { display: inline-block; background: #f3f4f6; border-radius: 999px;
  padding: 3px 12px; font-size: 13px; margin: 2px 4px 2px 0; }
pre.payinfo { background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 8px;
  padding: 12px; white-space: pre-wrap; }

footer { text-align: center; color: #9ca3af; font-size: 12px; padding: 24px 0 32px; }

@media (max-width: 640px) {
  main { margin: 12px auto; }
  .price { font-size: 18px; }
}
