* { box-sizing: border-box; }
body {
  margin: 0;
  color: #1f2937;
  font: 14px/1.6 Arial, "Microsoft YaHei", sans-serif;
  background: #f5f7fb;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.wrap { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.topbar {
  background: #121722;
  color: #dce3ef;
  font-size: 12px;
}
.topbar .wrap,
.head,
.nav-row,
.section-head,
.footer-grid,
.steps,
.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topbar .wrap { min-height: 32px; gap: 16px; }
.top-links { display: flex; gap: 18px; white-space: nowrap; }
.head {
  min-height: 82px;
  gap: 22px;
  background: #fff;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, #0b62d6, #24c6dc);
}
.brand h1 {
  margin: 0;
  font-size: 22px;
  line-height: 1.15;
}
.brand span {
  display: block;
  color: #64748b;
  font-size: 12px;
}
.nav {
  background: #fff;
  border-top: 1px solid #edf2f7;
  border-bottom: 2px solid #1668dc;
}
.nav-row {
  justify-content: flex-start;
  gap: 28px;
  height: 42px;
  overflow-x: auto;
}
.nav a {
  flex: 0 0 auto;
  font-size: 15px;
  font-weight: 700;
  color: #223047;
}
.nav a:hover,
.top-links a:hover { color: #2587ff; }
.page-hero {
  padding: 34px 0;
  color: #fff;
  background:
    linear-gradient(120deg, rgba(10, 27, 55, .94), rgba(18, 23, 34, .78)),
    url("assets/banner-monitor.jpg") center/cover no-repeat;
}
.page-hero h2 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.16;
}
.page-hero p {
  max-width: 720px;
  margin: 0;
  color: #dbeafe;
  font-size: 16px;
}
.section { padding: 28px 0 0; }
.section-head { margin-bottom: 14px; }
.section h2 { margin: 0; font-size: 24px; }
.section-note { margin: 4px 0 0; color: #64748b; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.card,
.form-box,
.table-wrap,
.course-line,
.pay-panel {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
}
.card { padding: 18px; }
.card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 17px;
}
.card p { margin: 0; color: #5f6f83; }
.primary-btn,
.outline-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 4px;
  white-space: nowrap;
  cursor: pointer;
}
.primary-btn {
  border: 0;
  background: #1668dc;
  color: #fff;
}
.outline-btn {
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #243044;
}
.ghost-btn {
  border: 1px solid rgba(255,255,255,.55);
  color: #fff;
}
.form-box { padding: 18px; }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
label {
  display: grid;
  gap: 6px;
  color: #475569;
  font-size: 13px;
}
input, select, textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 9px 10px;
  background: #fff;
  outline: none;
}
textarea { min-height: 86px; resize: vertical; }
.full { grid-column: 1 / -1; }
.table-wrap { overflow: hidden; }
table { width: 100%; border-collapse: collapse; }
th, td {
  padding: 13px 14px;
  border-bottom: 1px solid #edf2f7;
  text-align: left;
}
th {
  color: #334155;
  background: #eef5ff;
  font-weight: 800;
}
tr:last-child td { border-bottom: 0; }
.title-link {
  color: #1556a6;
  font-weight: 800;
}
.title-link:hover { color: #2587ff; }
.actions-cell {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 14px 0 0;
  flex-wrap: wrap;
}
.pager button {
  min-width: 36px;
  min-height: 34px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  background: #fff;
  color: #243044;
  cursor: pointer;
  font-weight: 700;
}
.pager button.active {
  border-color: #1668dc;
  background: #1668dc;
  color: #fff;
}
.pager button:disabled {
  opacity: .45;
  cursor: not-allowed;
}
.is-hidden { display: none !important; }
.masked-phone {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 4px;
  color: #475569;
  background: #f1f5f9;
  font-weight: 800;
  white-space: nowrap;
}
.status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  color: #166534;
  background: #dcfce7;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.status.pending { color: #92400e; background: #fef3c7; }
.status.error { color: #991b1b; background: #fee2e2; }
.steps { gap: 10px; align-items: stretch; }
.step {
  flex: 1;
  padding: 14px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #eff6ff;
}
.step strong { display: block; color: #1556a6; }
.course-line {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
}
.course-line img {
  width: 120px;
  height: 82px;
  object-fit: cover;
  border-radius: 6px;
}
.price {
  color: #f97316;
  font-size: 22px;
  font-weight: 900;
}
.summary-row {
  padding: 10px 0;
  border-bottom: 1px solid #edf2f7;
  gap: 20px;
}
.summary-row:last-child { border-bottom: 0; }
.detail-panel {
  display: grid;
  gap: 14px;
}
.detail-item {
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
}
.detail-item strong {
  display: block;
  margin-bottom: 4px;
  color: #172033;
  font-size: 16px;
}
.detail-item p { margin: 0; color: #64748b; }
.contact-lock {
  margin-top: 14px;
  padding: 14px;
  border: 1px dashed #93c5fd;
  border-radius: 8px;
  background: #eff6ff;
}
.contact-lock span {
  display: block;
  margin-bottom: 8px;
  color: #1556a6;
  font-weight: 800;
}
.contact-lock p {
  margin: 0 0 12px;
  color: #475569;
}
.meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.meta-box {
  padding: 12px;
  border-radius: 6px;
  background: #f8fbff;
}
.meta-box span {
  display: block;
  color: #64748b;
  font-size: 12px;
}
.meta-box strong {
  margin: 2px 0 0;
  font-size: 15px;
}
.pay-methods { display: grid; gap: 10px; margin-top: 12px; }
.pay-method {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  border: 1px solid #dbeafe;
  border-radius: 6px;
  background: #f8fbff;
}
.qr {
  display: grid;
  place-items: center;
  width: 180px;
  height: 180px;
  margin: 12px auto;
  border: 10px solid #f1f5f9;
  border-radius: 8px;
  background:
    linear-gradient(90deg, #111827 10px, transparent 10px) 0 0/30px 30px,
    linear-gradient(#111827 10px, transparent 10px) 0 0/30px 30px,
    #fff;
  color: #1668dc;
  font-weight: 900;
}
footer {
  margin-top: 34px;
  padding: 26px 0;
  background: #121722;
  color: #dce3ef;
}
.footer-grid { align-items: flex-start; gap: 24px; }
.footer-col strong { display: block; margin-bottom: 10px; color: #fff; }
.footer-col a,
.footer-col span { display: block; color: #b8c2d1; line-height: 2; font-size: 13px; }
.copyright {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.1);
  color: #aab4c4;
  font-size: 12px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 10px;
}
.site-power {
  color: #f8fafc;
  font-size: 14px;
  font-weight: 700;
}
.beian-link {
  color: #cbd5e1;
}
.gongan-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.gongan-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  object-fit: contain;
}
.beian-link:hover,
.gongan-link:hover { color: #fff; }
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(30px);
  opacity: 0;
  padding: 10px 16px;
  border-radius: 4px;
  color: #fff;
  background: #121722;
  transition: .2s ease;
  pointer-events: none;
  z-index: 20;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
body { animation: pageIn .18s ease-out; }
@keyframes pageIn {
  from { opacity: .76; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 860px) {
  .head, .topbar .wrap, .footer-grid, .section-head { flex-direction: column; align-items: stretch; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .steps { flex-direction: column; }
  .course-line { grid-template-columns: 1fr; }
  .course-line img { width: 100%; height: 180px; }
}
@media (max-width: 560px) {
  .wrap { width: min(100% - 20px, 1180px); }
  .form-grid, .meta-grid { grid-template-columns: 1fr; }
  .actions-cell { display: grid; }
}
