:root {
  --accent: #2563eb;
  --ink: #121826;
  --muted: #64748b;
  --line: #e5edf7;
  --card: rgba(255,255,255,.86);
  --soft: #f6f9ff;
  font-family: "Trebuchet MS", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 0%, rgba(37,99,235,.14), transparent 28rem),
    linear-gradient(135deg, #f8fbff 0%, #eef5ff 45%, #f9fafb 100%);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(37,99,235,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(37,99,235,.05) 1px, transparent 1px);
  background-size: 34px 34px;
}
.shell { width: min(1480px, calc(100vw - 64px)); margin: 34px auto 80px; position: relative; }
.hero-card, .workspace > *, .modal-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--card);
  box-shadow: 0 24px 70px rgba(15,23,42,.08);
  backdrop-filter: blur(14px);
}
.hero-card { padding: 34px; margin-bottom: 28px; }
.brand-line { display: flex; align-items: center; gap: 18px; }
.logo-mark {
  width: 76px; height: 76px; border-radius: 22px;
  display: grid; place-items: center;
  color: white; font-size: 24px; font-weight: 900; letter-spacing: .08em;
  background: linear-gradient(135deg, #07111f, var(--accent));
  box-shadow: 0 14px 28px rgba(37,99,235,.22);
  overflow: hidden;
}
.logo-mark img { width: 100%; height: 100%; object-fit: cover; }
.shop-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
h1 { margin: 0; font-size: clamp(34px, 5vw, 72px); letter-spacing: -.04em; }
.tagline, .notice p, .side-card p, .modal-detail { color: var(--muted); font-size: 18px; line-height: 1.75; }
.badge { color: #a16207; background: #fef3c7; border: 1px solid #fde68a; padding: 6px 12px; border-radius: 999px; font-weight: 800; }
.domain-hint { margin-left: auto; color: var(--muted); letter-spacing: .22em; font-weight: 800; }
.actions { display: flex; gap: 14px; margin: 22px 0 28px 94px; flex-wrap: wrap; }
.actions a, .primary, .ghost, .contact {
  border: 0; border-radius: 999px; padding: 13px 22px; text-decoration: none; font-weight: 800; cursor: pointer;
}
.contact, .primary { background: var(--accent); color: #fff; }
.ghost { color: var(--ink); background: #fff; border: 1px solid var(--line); }
.notice { display: flex; gap: 14px; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: 22px; }
.notice h2 { margin: 0 0 8px; }
.notice-icon { font-size: 24px; }
.workspace { display: grid; grid-template-columns: 280px 1fr; gap: 24px; align-items: start; }
.side-card { padding: 28px; position: sticky; top: 24px; }
.side-card h3 { font-size: 30px; margin: 12px 0; }
.product-panel { padding: 30px; }
.panel-top { display: flex; justify-content: space-between; gap: 18px; align-items: center; margin-bottom: 24px; }
.eyebrow { margin: 0; letter-spacing: .45em; color: #6f829c; font-size: 13px; font-weight: 900; }
.panel-top h2 { margin: 6px 0 0; font-size: 34px; }
#search { width: min(420px, 100%); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; font-size: 16px; }
.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.product { border: 1px solid var(--line); background: #fff; border-radius: 22px; overflow: hidden; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease; }
.product:hover { transform: translateY(-4px); box-shadow: 0 18px 46px rgba(37,99,235,.13); }
.product-img { height: 190px; background: linear-gradient(135deg, #07111f, #0e7490); display: grid; place-items: center; color: white; font-size: 44px; font-weight: 900; }
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-body { padding: 18px; }
.product h3 { margin: 0 0 8px; font-size: 20px; line-height: 1.35; }
.product p { color: var(--muted); margin: 0 0 18px; }
.product-foot { display: flex; justify-content: space-between; align-items: center; }
.price { font-weight: 900; color: var(--accent); }
.stock { color: #0f766e; background: #ccfbf1; border-radius: 999px; padding: 6px 10px; font-size: 13px; font-weight: 800; }
.modal { position: fixed; inset: 0; display: grid; place-items: center; background: rgba(15,23,42,.55); padding: 20px; z-index: 50; }
.hidden { display: none !important; }
.modal-card { width: min(680px, 100%); padding: 28px; position: relative; background: rgba(255,255,255,.97); }
.close { position: absolute; right: 18px; top: 16px; background: transparent; border: 0; font-size: 30px; cursor: pointer; }
.modal-card h2 { font-size: 32px; margin: 12px 0; }
.modal-image { height: 260px; border-radius: 20px; overflow: hidden; margin: 12px 0; background: #eef5ff; }
.modal-image img { width: 100%; height: 100%; object-fit: cover; }
.mini-tags { display: flex; gap: 12px; margin: 12px 0 18px; }
.mini-tags span { background: #dcfce7; color: #15803d; border-radius: 8px; padding: 6px 10px; font-weight: 800; }
label { display: block; margin: 14px 0 8px; font-weight: 900; }
input, textarea { width: 100%; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; font: inherit; }
textarea { min-height: 90px; resize: vertical; }
.qty-row { display: flex; justify-content: flex-end; gap: 0; margin: 18px 0; }
.qty-row button, .qty-row span { width: 58px; height: 44px; border: 1px solid var(--line); display: grid; place-items: center; background: #fff; font-size: 22px; }
.qty-row span { font-weight: 900; }
.result { color: #0f766e; font-weight: 800; }
@media (max-width: 980px) {
  .shell { width: min(100% - 24px, 920px); margin-top: 16px; }
  .brand-line, .panel-top { align-items: flex-start; flex-direction: column; }
  .domain-hint, .actions { margin-left: 0; }
  .workspace { grid-template-columns: 1fr; }
  .side-card { position: static; }
  .products { grid-template-columns: 1fr; }
}

.wechat-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0 10px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(135deg, #f0fdf4, #ffffff);
  color: var(--ink);
  font-size: 20px;
}
.wechat-contact strong {
  color: #059669;
  letter-spacing: .03em;
}
.wechat-contact a {
  color: #ffffff;
  background: #07c160;
  border-radius: 999px;
  padding: 10px 16px;
  text-decoration: none;
  font-weight: 900;
  white-space: nowrap;
}
@media (max-width: 680px) {
  .wechat-contact { align-items: flex-start; flex-direction: column; }
}

.detail-box {
  margin: 18px 0;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #ffffff;
}
.detail-box h3 {
  margin: 0 0 10px;
  font-size: 22px;
}
.detail-box .modal-detail {
  margin: 0;
  color: #475569;
  font-size: 19px;
  line-height: 1.85;
}

.qr-card {
  width: min(560px, 92vw);
  position: relative;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 28px 80px rgba(15,23,42,.22);
  text-align: center;
}
.qr-card h2 {
  margin: 10px 0 18px;
  font-size: 32px;
}
.qr-card img {
  display: block;
  width: min(420px, 100%);
  max-height: 70vh;
  object-fit: contain;
  margin: 0 auto;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: #fff;
}
.qr-card p:last-child {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 18px;
}
