:root {
  --bg: #eef2f7;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #656d78;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --accent: #0ea5e9;
  --green: #16a34a;
  --orange: #f97316;
  --orange-dark: #ea580c;
  --red: #dc2626;
  --shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Microsoft Yahei", "Microsoft JhengHei", Arial, sans-serif;
  color: var(--text);
  background:
    linear-gradient(180deg, #f8fbff 0, var(--bg) 260px),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
a {
  font: inherit;
}

button {
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.08), 0 10px 30px rgba(15, 23, 42, 0.04);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 90px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 260px;
  font-weight: 800;
}

.brand-mark {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #f97316);
  font-size: 0;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.16);
}

.brand-mark::before {
  content: "🎮";
  font-size: 30px;
  line-height: 1;
}

.brand-name {
  font-size: 28px;
}

.nav {
  display: flex;
  align-items: stretch;
  min-height: 90px;
}

.nav a,
.nav button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 24px 0 12px;
  border-bottom: 4px solid transparent;
  background: transparent;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.nav a:hover,
.nav button:hover {
  border-bottom-color: var(--accent);
  color: var(--blue-dark);
  background: rgba(37, 99, 235, 0.04);
}

.nav-ico {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 0;
  color: #111827;
  background: transparent;
  font-size: 0;
  font-weight: 900;
}

.nav-ico::before,
.tab-icon::before {
  display: block;
  font-size: 26px;
  line-height: 1;
  filter: drop-shadow(0 2px 3px rgba(15, 23, 42, 0.14));
}

.nav a:nth-child(1) .nav-ico::before {
  content: "📣";
}

.nav a:nth-child(2) .nav-ico::before {
  content: "🧑‍💻";
}

.nav a:nth-child(3) .nav-ico::before {
  content: "🔍";
}

.notice-band {
  min-height: 88px;
  display: flex;
  align-items: end;
  padding-bottom: 18px;
}

.notice-band p {
  display: block;
  margin: 0 auto;
  padding: 14px 18px;
  border: 1px solid rgba(220, 38, 38, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
  text-align: center;
  color: var(--red);
  font-size: clamp(16px, 1.75vw, 22px);
  font-weight: 800;
  letter-spacing: 0;
}

.catalog {
  padding-bottom: 30px;
}

.tabs,
.product-card,
.product-actions,
.product-main {
  border-radius: 14px;
  background: var(--card);
}

.tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  min-height: 58px;
  padding: 4px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.tab {
  position: relative;
  min-height: 52px;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.tab:hover {
  background: rgba(15, 23, 42, 0.035);
}

.tab.active {
  color: var(--accent);
  background: #f8fbff;
  box-shadow: inset 0 0 0 1px rgba(14, 165, 233, 0.14);
  border-radius: 10px;
}

.tab.active::after {
  content: "";
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: -3px;
  height: 3px;
  border-radius: 3px;
  background: var(--accent);
}

.tab-icon {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-right: 8px;
  vertical-align: middle;
  font-size: 0;
}

.tab:nth-child(1) .tab-icon::before {
  content: "🎮";
}

.tab:nth-child(2) .tab-icon::before {
  content: "🧑‍💻";
}

.tab:nth-child(3) .tab-icon::before {
  content: "💳";
}

.product-list {
  display: none;
}

.product-card.featured::before {
  content: attr(data-badge);
}

.product-media.has-image img,
.preview-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav a:nth-child(2) .nav-ico::before,
.tab:nth-child(2) .tab-icon::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 5px;
  width: 12px;
  height: 12px;
  border: 2px solid #111827;
  border-radius: 50%;
  background: #facc15;
  box-shadow: 0 12px 0 -3px #facc15, 0 12px 0 -1px #111827;
}

.nav a:nth-child(2) .nav-ico::after,
.tab:nth-child(2) .tab-icon::after {
  content: "";
  position: absolute;
  right: 1px;
  bottom: 5px;
  width: 17px;
  height: 13px;
  border: 2px solid #111827;
  border-radius: 2px;
  background: linear-gradient(180deg, #f8fafc, #94a3b8);
  box-shadow: 0 4px 0 -2px #111827;
}

.tab:nth-child(3) .tab-icon::before {
  content: "!";
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border: 2px solid #991b1b;
  border-radius: 50%;
  color: #fff;
  background: #dc2626;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  filter: drop-shadow(0 2px 3px rgba(220, 38, 38, 0.25));
}

.product-list.active-panel {
  display: block;
}

.chat-card {
  margin-top: 30px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.chat-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 74px;
  padding: 14px 20px;
  border-bottom: 1px solid #e5e7eb;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.chat-title-copy {
  position: relative;
  min-width: 0;
  padding-left: 14px;
  text-align: left;
}

.chat-title-copy::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  bottom: 5px;
  width: 4px;
  border-radius: 4px;
  background: #2563eb;
}

.chat-title-copy h2 {
  margin: 0 0 5px;
  color: #1d4ed8;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: 0;
}

.chat-title-copy p {
  margin: 0;
  color: #ef4444;
  font-size: 17px;
  line-height: 1.35;
}

.chat-open-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 126px;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 6px;
  color: #fff;
  background: #2563eb;
  font-weight: 800;
  transition: filter 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.chat-open-link:hover,
.chat-open-link:focus-visible {
  filter: brightness(0.95);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
  outline: 0;
}

.chat-frame-shell {
  min-height: 610px;
  background: #fff;
}

.chat-frame-shell iframe {
  display: block;
  width: 100%;
  height: 610px;
  border: 0;
  background: #fff;
}

.refund-card {
  margin-top: 30px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

.refund-card h2 {
  margin: 0;
  padding: 28px 20px;
  border-bottom: 1px solid #e5e7eb;
  color: #0f172a;
  text-align: center;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: 4px;
}

.refund-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px 30px;
  padding: 30px 24px 24px;
}

.form-field {
  min-width: 0;
}

.form-field-wide,
.refund-hint,
.form-actions {
  grid-column: 1 / -1;
}

.form-field label {
  display: block;
  margin-bottom: 10px;
  color: #0f172a;
  text-align: center;
  font-size: 15px;
  font-weight: 800;
}

.input-wrap,
.select-wrap,
.file-control,
.textarea-wrap {
  display: flex;
  align-items: center;
  min-height: 42px;
  border: 1px solid #d9dee8;
  border-radius: 5px;
  background: #fbfdff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-wrap:focus-within,
.select-wrap:focus-within,
.file-control:focus-within,
.textarea-wrap:focus-within {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.field-icon {
  flex: 0 0 46px;
  color: #111827;
  text-align: center;
  font-size: 17px;
  font-weight: 800;
}

.input-wrap input,
.select-wrap select,
.textarea-wrap textarea {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #334155;
  background: transparent;
  font: inherit;
  font-size: 14px;
}

.input-wrap input::placeholder,
.textarea-wrap textarea::placeholder {
  color: rgba(51, 65, 85, 0.58);
  opacity: 1;
}

.input-wrap input,
.select-wrap select {
  height: 40px;
  padding-right: 14px;
}

.select-wrap select {
  padding-left: 12px;
  cursor: pointer;
}

.file-control {
  justify-content: space-between;
  gap: 10px;
  padding-left: 12px;
}

.file-control span {
  min-width: 0;
  overflow: hidden;
  color: #64748b;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-control input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.file-btn {
  flex: 0 0 auto;
  margin: 5px 12px 5px 0;
  padding: 8px 18px;
  border-radius: 6px;
  color: #fff !important;
  background: #315bdc;
  box-shadow: 0 5px 12px rgba(37, 99, 235, 0.26);
  font-size: 13px !important;
  font-weight: 800;
  cursor: pointer;
  transition: filter 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.file-btn:hover {
  filter: brightness(0.96);
  transform: translateY(-1px);
}

.textarea-wrap {
  align-items: flex-start;
}

.textarea-wrap .field-icon {
  padding-top: 12px;
}

.textarea-wrap textarea {
  min-height: 118px;
  padding: 12px 14px 12px 0;
  resize: vertical;
  line-height: 1.8;
}

.refund-hint {
  margin: -8px 0 0;
  color: #ef4444;
  text-align: center;
  font-size: 14px;
  line-height: 1.6;
}

.form-actions {
  display: flex;
  justify-content: center;
  padding-top: 2px;
}

.submit-refund {
  min-width: 142px;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid #c5cfdf;
  border-radius: 6px;
  color: #31537c;
  background: linear-gradient(180deg, #f8fafc, #dbe3ee);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.18);
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.submit-refund:hover,
.submit-refund:focus-visible {
  color: #fff;
  background: linear-gradient(180deg, #3b82f6, #1d4ed8);
  transform: translateY(-1px);
  outline: 0;
}

.product-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 235px;
  gap: 20px;
  margin-top: 30px;
  background: transparent;
}

.product-card.featured::before {
  content: "热销推荐";
  position: absolute;
  z-index: 2;
  left: 18px;
  top: -11px;
  padding: 5px 12px;
  border-radius: 5px;
  color: #fff;
  background: var(--orange);
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(249, 115, 22, 0.3);
}

.product-actions {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  align-content: center;
  gap: 20px;
  min-height: 253px;
  padding: 30px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  transition: box-shadow 0.25s ease;
}

.product-main {
  grid-column: 1;
  grid-row: 1;
  display: grid;
  grid-template-columns: 272px 1fr;
  gap: 20px;
  min-height: 253px;
  padding: 20px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  transition: box-shadow 0.25s ease;
}

.product-actions:hover,
.product-main:hover,
.tabs:hover {
  box-shadow: var(--shadow);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 47px;
  padding: 10px 14px;
  border-radius: 5px;
  color: #fff;
  background: var(--blue);
  font-size: 20px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.btn.buy {
  background: linear-gradient(180deg, var(--orange), var(--orange-dark));
}

.btn.download {
  background: linear-gradient(180deg, #2563eb, #1d4ed8);
}

.btn.support {
  background: linear-gradient(180deg, #22c55e, #15803d);
}

.btn:hover,
.btn:focus-visible {
  filter: brightness(0.95);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
  outline: none;
}

.btn.primary {
  max-width: 180px;
}

.product-media {
  position: relative;
  display: block;
  width: 272px;
  height: 212px;
  overflow: hidden;
  border-radius: 5px;
  background: #151515;
  cursor: zoom-in;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.product-media::after {
  content: "";
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background:
    linear-gradient(90deg, #475569 8px, transparent 8px) 7px 7px / 16px 2px no-repeat,
    linear-gradient(#475569 8px, transparent 8px) 7px 7px / 2px 16px no-repeat,
    linear-gradient(270deg, #475569 8px, transparent 8px) 7px 21px / 16px 2px no-repeat,
    linear-gradient(0deg, #475569 8px, transparent 8px) 21px 7px / 2px 16px no-repeat,
    rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.24);
}

.theme-green {
  background: linear-gradient(135deg, #0f172a, #14532d 60%, #111827);
}

.theme-blue {
  background: linear-gradient(135deg, #0f172a, #1d4ed8 60%, #111827);
}

.theme-orange {
  background: linear-gradient(135deg, #1f2937, #c2410c 62%, #111827);
}

.theme-purple {
  background: linear-gradient(135deg, #111827, #7c3aed 60%, #111827);
}

.media-grid,
.media-rings,
.account-card,
.ticket-card {
  position: absolute;
  inset: 28px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 12px;
}

.media-grid {
  background:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
}

.media-scope {
  position: absolute;
  left: 80px;
  top: 54px;
  width: 84px;
  height: 84px;
  border: 2px solid rgba(17, 176, 71, 0.85);
  border-radius: 50%;
}

.media-line,
.account-row,
.ticket-line {
  position: absolute;
  left: 48px;
  height: 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
}

.l1 {
  right: 42px;
  bottom: 52px;
}

.l2 {
  right: 96px;
  bottom: 32px;
}

.media-rings {
  inset: 34px 64px;
  border-radius: 50%;
  box-shadow: 0 0 0 22px rgba(20, 117, 250, 0.12), 0 0 0 44px rgba(20, 117, 250, 0.08);
}

.media-dot {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #17d48d;
  box-shadow: 0 0 16px #17d48d;
}

.d1 { left: 118px; top: 80px; }
.d2 { left: 170px; top: 118px; }
.d3 { left: 82px; top: 138px; }

.account-card,
.ticket-card {
  background: rgba(255, 255, 255, 0.16);
}

.account-row.r1 { top: 68px; right: 52px; }
.account-row.r2 { top: 102px; right: 90px; }
.account-row.r3 { top: 136px; right: 72px; }

.ticket-dot {
  position: absolute;
  left: 62px;
  top: 62px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
}

.ticket-line.t1 { top: 74px; left: 128px; right: 52px; }
.ticket-line.t2 { top: 112px; left: 128px; right: 82px; }

.product-copy {
  min-width: 0;
  font-size: 20px;
  font-weight: 800;
  line-height: 30px;
}

.product-copy h2 {
  margin: 5px 0 20px;
  color: #0f766e;
  font-size: 30px;
  line-height: 1.2;
}

.product-copy p {
  margin: 10px 0 0;
  color: #374151;
}

.product-copy .price {
  color: var(--orange-dark);
  font-size: 21px;
}

.footer {
  padding: 28px 0;
  border-top: 1px solid var(--accent);
  background: #fff;
  color: #475569;
  text-align: center;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(52, 73, 94, 0.9);
}

#preview-modal {
  z-index: 60;
}

#announcement-modal {
  z-index: 70;
}

.modal.open {
  display: flex;
}

.modal-panel {
  position: relative;
  width: min(420px, 100%);
  padding: 20px;
  border-radius: 8px;
  background: #fff;
  text-align: center;
}

.modal-panel.wide {
  width: min(560px, 100%);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #fff;
  background: #2563eb;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.26);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
  transition: transform 0.16s ease, filter 0.16s ease, box-shadow 0.16s ease;
}

.modal-close:hover,
.modal-close:focus-visible {
  filter: brightness(0.96);
  transform: scale(1.04);
  outline: 0;
}

.modal-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 67px;
  font-size: 24px;
  font-weight: 900;
}

.modal-logo .brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  font-size: 24px;
}

.qr {
  display: grid;
  place-items: center;
  width: 180px;
  height: 180px;
  margin: 18px auto 20px;
  border: 12px solid #111;
  background:
    linear-gradient(90deg, #111 10px, transparent 10px) 0 0 / 30px 30px,
    linear-gradient(#111 10px, transparent 10px) 0 0 / 30px 30px,
    #fff;
  color: var(--blue);
  font-size: 28px;
  font-weight: 900;
}

.divider {
  position: relative;
  margin: 24px 0;
  text-align: center;
}

.divider::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #e5e5e5;
}

.divider span {
  position: relative;
  z-index: 1;
  padding: 0 8px;
  background: #fff;
  font-size: 18px;
}

.modal-note {
  margin: 0;
  color: #8a8a8a;
  font-size: 13px;
  line-height: 1.7;
  text-decoration: underline;
}

.order-options {
  display: grid;
  gap: 20px;
  padding: 20px;
}

.btn.option {
  text-align: left;
}

.preview-panel {
  width: min(760px, 100%);
  padding: 18px;
  overflow: visible;
}

.preview-art {
  height: min(520px, 70vh);
  border-radius: 8px;
  background: #111827;
}

.orderquery-modal {
  background: rgba(15, 23, 42, 0.62);
}

.orderquery-panel {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  width: min(520px, calc(100% - 42px));
  min-height: 280px;
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
}

.orderquery-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 62px;
  padding: 12px 62px 12px 22px;
  border-bottom: 1px solid #e5e7eb;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.orderquery-head h2 {
  margin: 0;
  color: #0f172a;
  font-size: 22px;
  line-height: 1.2;
}

.orderquery-head a {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 6px;
  color: #fff;
  background: #2563eb;
  font-weight: 800;
}

.orderquery-body {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  padding: 34px 42px 40px;
  text-align: center;
}

.orderquery-icon {
  display: none;
  place-items: center;
  width: 62px;
  height: 62px;
  margin-bottom: 18px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #f97316);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.22);
  font-size: 32px;
  font-weight: 900;
}

.orderquery-body h3 {
  display: none;
  margin: 0 0 12px;
  color: #0f172a;
  font-size: 24px;
  line-height: 1.2;
}

.orderquery-body p {
  position: relative;
  max-width: 390px;
  margin: 0 0 26px;
  padding: 18px 20px;
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: 8px;
  color: #334155;
  background: #f8fbff;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.65;
}

.orderquery-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 210px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 7px;
  color: #fff;
  background: linear-gradient(180deg, #2563eb, #1d4ed8);
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.24);
  font-size: 16px;
  font-weight: 800;
  transition: transform 0.16s ease, filter 0.16s ease, box-shadow 0.16s ease;
}

.orderquery-action:hover,
.orderquery-action:focus-visible {
  filter: brightness(0.96);
  transform: translateY(-1px);
  outline: 0;
}

.orderquery-panel iframe {
  display: none;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.notice-modal {
  background: rgba(15, 23, 42, 0.58);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.26s ease;
}

.notice-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.announcement-panel {
  position: relative;
  width: min(560px, 100%);
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.26);
  transform: translateY(34px) scale(0.97);
  opacity: 0;
  transition: transform 0.34s cubic-bezier(0.2, 0.9, 0.2, 1), opacity 0.24s ease;
}

.notice-modal.open .announcement-panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.announcement-head {
  padding: 20px 24px 16px;
  border-bottom: 1px solid #e5e7eb;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(249, 115, 22, 0.08)),
    #fff;
  text-align: center;
}

.announcement-head h2 {
  margin: 0;
  color: #0f172a;
  font-size: 23px;
  line-height: 1.2;
  letter-spacing: 1px;
}

.announcement-head p {
  margin: 8px 0 0;
  color: #ef4444;
  font-size: 14px;
  font-weight: 700;
}

.announcement-body {
  display: grid;
  gap: 8px;
  padding: 16px 22px 4px;
}

.announcement-body p {
  margin: 0;
  padding: 9px 12px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 7px;
  color: #334155;
  background: #f8fafc;
  font-size: 14px;
  line-height: 1.55;
}

.announcement-actions {
  display: flex;
  justify-content: center;
  padding: 16px 24px 20px;
}

.announcement-confirm {
  min-width: 132px;
  min-height: 42px;
  border-radius: 6px;
  color: #fff;
  background: linear-gradient(180deg, #2563eb, #1d4ed8);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.22);
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.16s ease, filter 0.16s ease, box-shadow 0.16s ease;
}

.announcement-confirm:hover,
.announcement-confirm:focus-visible {
  filter: brightness(0.96);
  transform: translateY(-1px);
  outline: 0;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 50;
  max-width: calc(100% - 32px);
  padding: 12px 18px;
  border-radius: 6px;
  color: #fff;
  background: rgba(32, 61, 126, 0.96);
  font-weight: 700;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}

@media (max-width: 900px) {
  .header-inner,
  .nav,
  .product-card,
  .product-main {
    display: grid;
  }

  .brand {
    min-width: 0;
    justify-content: center;
    padding-top: 18px;
  }

  .nav {
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    min-height: 64px;
  }

  .nav a,
  .nav button {
    justify-content: center;
    min-height: 64px;
    padding: 0 8px;
  }

  .product-card {
    grid-template-columns: 1fr;
  }

  .product-main,
  .product-actions {
    grid-column: auto;
    grid-row: auto;
  }

  .product-main {
    grid-template-columns: 1fr;
  }

  .product-media {
    width: 100%;
    max-width: 420px;
    height: 250px;
    margin: 0 auto;
  }

  .product-actions {
    grid-template-columns: repeat(3, 1fr);
    min-height: 0;
  }

  .chat-toolbar {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .chat-open-link {
    width: min(180px, 100%);
    justify-self: center;
  }

  .chat-frame-shell,
  .chat-frame-shell iframe {
    min-height: 580px;
    height: 580px;
  }

  .refund-form {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

@media (max-width: 620px) {
  .wrap {
    width: min(100% - 20px, 1200px);
  }

  .brand-name {
    font-size: 22px;
  }

  .nav {
    grid-template-columns: 1fr;
  }

  .tabs {
    grid-template-columns: 1fr;
  }

  .notice-band {
    min-height: 84px;
  }

  .product-actions {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .product-copy {
    font-size: 16px;
    line-height: 26px;
  }

  .product-copy h2 {
    font-size: 22px;
  }

  .chat-title-copy h2 {
    font-size: 22px;
  }

  .chat-title-copy p {
    font-size: 17px;
  }

  .chat-frame-shell,
  .chat-frame-shell iframe {
    min-height: 520px;
    height: 520px;
  }

  .orderquery-panel {
    width: calc(100% - 20px);
    min-height: 340px;
  }

  .orderquery-head {
    align-items: center;
    flex-direction: row;
    padding: 14px 58px 14px 16px;
  }

  .orderquery-body {
    padding: 28px 20px 32px;
  }

  .file-control {
    align-items: stretch;
    flex-direction: column;
    padding: 10px;
  }

  .file-btn {
    margin: 0;
    text-align: center;
  }
}
