:root {
  color-scheme: light;
  --page: #f3f7fd;
  --surface: #ffffff;
  --soft: #f8faff;
  --ink: #202c40;
  --muted: #64748b;
  --line: #e0e9f7;
  --blue: #2e72f8;
  --blue-dark: #1e5fdc;
  --blue-soft: #edf4ff;
  --mint: #11998d;
  --mint-soft: #eafaf7;
  --red: #c33c50;
  --red-soft: #fff1f3;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--page);
}

* { box-sizing: border-box; letter-spacing: 0; }
html { min-width: 320px; background: var(--page); }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--page); color: var(--ink); font-size: 14px; line-height: 1.6; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .6; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, dl, dd { margin: 0; }
.hidden { display: none !important; }

.page-shell { min-height: 100vh; padding: 0 24px; }
.page-container { width: min(1180px, 100%); margin: 0 auto; }
.site-header { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.brand-block { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark { position: relative; display: block; width: 43px; height: 31px; flex: 0 0 43px; border: 2px solid #2368eb; border-radius: 6px; background: var(--blue); box-shadow: 0 6px 16px rgba(46, 114, 248, .2); }
.brand-mark::before { content: ""; position: absolute; top: 7px; left: 0; right: 0; height: 2px; background: rgba(255, 255, 255, .72); }
.brand-mark::after { content: ""; position: absolute; right: 6px; bottom: 5px; width: 13px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .72); }
.card-chip { position: absolute; top: 11px; left: 6px; width: 10px; height: 7px; border-radius: 2px; background: #d6e5ff; }
.card-strip { display: none; }
.brand-block strong, .brand-block span { display: block; }
.brand-block strong { font-size: 17px; line-height: 1.3; }
.brand-block div span { color: var(--muted); font-size: 11px; }
.view-switch { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.view-button { min-height: 36px; padding: 7px 15px; border: 0; border-radius: 6px; background: transparent; color: #6c7d96; font-size: 13px; font-weight: 650; }
.view-button.active { background: var(--blue); color: #fff; }

.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(410px, .78fr); gap: 28px; align-items: stretch; margin: 28px 0 32px; padding: 28px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 14px 38px rgba(52, 73, 103, .05); }
.hero-copy { align-self: center; padding: 4px 8px; }
.eyebrow, .section-kicker { display: block; color: var(--blue); font-size: 11px; font-weight: 750; }
.hero h1 { margin-top: 7px; font-size: clamp(27px, 4vw, 38px); line-height: 1.25; font-weight: 760; }
.hero-copy > p { margin-top: 10px; color: #71819a; font-size: 14px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 20px; color: #60718b; font-size: 12px; }
.hero-points span { display: inline-flex; align-items: center; gap: 7px; }
.hero-points span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px var(--mint-soft); }
.hero-services { display: grid; grid-template-columns: minmax(0, 1fr) 180px; gap: 12px; }
.gpt-promo, .contact-card { min-width: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--soft); }
.gpt-promo { position: relative; display: flex; flex-direction: column; justify-content: center; padding: 20px; overflow: hidden; }
.gpt-promo::after { content: "+"; position: absolute; right: -8px; bottom: -40px; color: #dbe8ff; font-size: 140px; font-weight: 200; line-height: 1; pointer-events: none; }
.promo-label { align-self: flex-start; padding: 3px 8px; border-radius: 4px; background: var(--blue-soft); color: var(--blue); font-size: 10px; font-weight: 700; }
.gpt-promo strong { position: relative; z-index: 1; margin-top: 12px; font-size: 20px; line-height: 1.3; }
.gpt-promo p { position: relative; z-index: 1; margin-top: 4px; color: var(--muted); font-size: 11px; }
.promo-action { position: relative; z-index: 1; margin-top: 18px; color: var(--blue); font-size: 12px; font-weight: 650; }
.promo-action b { font-size: 18px; font-weight: 400; vertical-align: -1px; }
.gpt-promo:hover { border-color: #bfd5ff; background: #f4f8ff; }
.contact-card { display: grid; justify-items: center; align-content: center; gap: 9px; padding: 14px; text-align: center; background: #fff; }
.contact-copy strong, .contact-copy span { display: block; }
.contact-copy strong { font-size: 13px; }
.contact-copy span { color: var(--muted); font-size: 10px; }
.contact-card img { display: block; width: 112px; height: 112px; object-fit: contain; background: #fff; }

.public-view.active { display: block; }
.section-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 16px; }
.section-intro h2 { margin-top: 2px; font-size: 24px; }
.section-intro > p { color: var(--muted); font-size: 12px; }
.section-intro > .stock-reminder { max-width: 370px; padding: 8px 13px; border: 1px solid #c7dafe; border-radius: 6px; background: var(--blue-soft); color: #2458b8; font-size: 12px; font-weight: 700; line-height: 1.5; }
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 18px; }
.product-panel { display: flex; flex-direction: column; min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: 0 12px 34px rgba(52, 73, 103, .05); }
.product-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.product-identity { display: flex; align-items: center; gap: 12px; min-width: 0; }
.product-index { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 42px; border-radius: 8px; background: var(--blue); color: #fff; font-size: 12px; font-weight: 750; }
.product-identity h3 { font-size: 18px; line-height: 1.35; }
.product-identity p { display: inline-block; margin-top: 3px; padding: 2px 8px; border: 1px solid #c7dafe; border-radius: 4px; background: var(--blue-soft); color: #2458b8; font-size: 12px; font-weight: 700; line-height: 1.4; }
.stock-badge { flex: 0 0 auto; padding: 4px 9px; border-radius: 4px; background: var(--mint-soft); color: var(--mint); font-size: 11px; font-weight: 700; }
.stock-badge[data-tone="empty"] { background: var(--red-soft); color: var(--red); }
.panel-message { margin-bottom: 13px; padding: 9px 11px; border: 1px solid #c9e8df; border-radius: 6px; background: var(--mint-soft); color: var(--mint); font-size: 12px; }
.panel-message[data-tone="error"] { border-color: #f3ced4; background: var(--red-soft); color: var(--red); }
.field-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.field-heading label, .query-form > label, .quantity-field label { font-size: 12px; font-weight: 650; }
.field-heading a { color: var(--blue); font-size: 12px; font-weight: 650; }
.field-heading a:hover { color: var(--blue-dark); }
.card-code-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; gap: 10px; }
.card-code-row .text-input { min-width: 0; }
.purchase-link { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 14px; border: 1px solid #bfd5ff; border-radius: 8px; background: var(--blue-soft); color: var(--blue-dark); font-size: 12px; font-weight: 700; white-space: nowrap; }
.purchase-link:hover { border-color: #91b7ff; background: #e3eeff; color: #174cae; }
.text-input, .quantity-field input { display: block; width: 100%; min-width: 0; border: 1px solid #d1dced; border-radius: 8px; background: #fff; color: var(--ink); }
.text-input { height: 48px; padding: 11px 13px; }
.text-input::placeholder { color: #a2aec0; }
.text-input:focus, .quantity-field input:focus { outline: none; border-color: #86b2ff; box-shadow: 0 0 0 3px rgba(46, 114, 248, .06); }
.claim-controls { display: grid; grid-template-columns: minmax(0, 1fr) 150px; align-items: end; gap: 12px; margin-top: 13px; }
.remaining-box { display: flex; align-items: center; justify-content: space-between; min-height: 58px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--soft); }
.remaining-box span { color: var(--muted); font-size: 11px; }
.remaining-box strong { color: var(--blue); font-size: 22px; line-height: 1; }
.quantity-field label { display: block; margin-bottom: 6px; }
.quantity-field input { height: 38px; padding: 7px 10px; }
.quantity-hint { min-height: 19px; margin: 7px 0 13px; color: var(--muted); font-size: 12px; }
.claim-button { width: 100%; min-height: 46px; padding: 10px 16px; border: 0; border-radius: 8px; background: var(--blue); color: #fff; font-weight: 650; }
.claim-button:hover:not(:disabled) { background: var(--blue-dark); }
.panel-result { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.result-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 11px; }
.result-heading span, .result-heading small { display: block; }
.result-heading span { font-size: 13px; font-weight: 700; }
.result-heading small { margin-top: 3px; color: var(--muted); font-size: 12px; font-weight: 400; }
.copy-button { flex: 0 0 auto; min-height: 44px; padding: 8px 14px; border: 1px solid #cfe0ff; border-radius: 8px; background: var(--blue-soft); color: var(--blue-dark); font-size: 12px; font-weight: 650; }
.copy-button:hover { border-color: #a9c8ff; background: #e5efff; }
.expires { margin-bottom: 10px; padding: 8px 10px; border-left: 3px solid var(--mint); border-radius: 4px; background: var(--mint-soft); color: #087a70; font-size: 11px; font-weight: 650; }
.result-content { width: 100%; min-height: 116px; max-height: 460px; margin: 0; padding: 18px; overflow: auto; border: 1px solid #dbe4f1; border-radius: 10px; background: #f7f9fc; color: #263750; font: 14px/1.85 ui-monospace, SFMono-Regular, Consolas, "Microsoft YaHei", monospace; white-space: pre-wrap; overflow-wrap: anywhere; word-break: normal; -webkit-overflow-scrolling: touch; }
.result-content.empty { display: grid; place-items: center; min-height: 140px; color: var(--muted); font: 13px/1.8 -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif; text-align: center; }

.query-layout { display: grid; grid-template-columns: minmax(300px, .75fr) minmax(0, 1.25fr); gap: 18px; }
.query-form, .query-result { min-width: 0; padding: 26px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 12px 34px rgba(52, 73, 103, .05); }
.query-form h2 { margin-top: 3px; font-size: 24px; }
.query-form > p { margin: 6px 0 22px; color: var(--muted); font-size: 12px; }
.query-form > label { display: block; margin-bottom: 8px; }
.query-form .claim-button { margin-top: 14px; }
.query-result-heading { margin-bottom: 16px; }
.query-summary { margin-bottom: 10px; padding: 10px 12px; border-radius: 6px; background: var(--blue-soft); color: var(--blue); font-size: 12px; font-weight: 650; }
.query-result .result-content { min-height: 238px; max-height: 480px; }
.batch-query-panel { margin-top: 18px; padding: 26px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 12px 34px rgba(52, 73, 103, .05); }
.batch-query-heading { display: flex; justify-content: space-between; margin-bottom: 18px; }
.batch-query-heading h2 { margin: 4px 0; font-size: 22px; }
.batch-query-heading p { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.batch-query-panel > label { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 650; }
.batch-code-input { display: block; min-height: 144px; resize: vertical; font: 14px/1.7 ui-monospace, SFMono-Regular, Consolas, "Microsoft YaHei", monospace; }
.batch-query-actions { display: flex; align-items: center; gap: 14px; margin: 14px 0; }
.batch-query-actions .claim-button { width: auto; min-width: 180px; margin: 0; }
.batch-query-actions span { color: var(--muted); font-size: 12px; }
.batch-result-wrap { max-height: 420px; overflow: auto; border: 1px solid #dbe4f1; border-radius: 8px; }
.batch-result-table { width: 100%; min-width: 720px; border-collapse: collapse; text-align: left; font-size: 13px; }
.batch-result-table th, .batch-result-table td { padding: 11px 14px; border-bottom: 1px solid #e6edf6; }
.batch-result-table th { position: sticky; top: 0; background: #f2f6fd; color: #425675; font-weight: 650; }
.batch-result-table td:nth-child(2), .batch-result-table td:nth-child(3), .batch-result-table td:nth-child(5) { overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Consolas, "Microsoft YaHei", monospace; }
.batch-result-table td[data-status="已使用"] { color: #087a70; font-weight: 700; }
.batch-result-table td[data-status="未使用"] { color: #c47a12; font-weight: 700; }
.batch-result-table td[data-status="查询失败"] { color: #c34242; font-weight: 700; }
.batch-empty { color: var(--muted); text-align: center; }
.page-footer { padding: 30px 16px 24px; color: #98a6ba; font-size: 11px; text-align: center; }

button, a, input { transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .hero-services { grid-template-columns: minmax(0, 1fr) 180px; }
  .product-grid { grid-template-columns: 1fr; }
  .query-layout { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .page-shell { padding: 0 12px; }
  .site-header { min-height: 64px; padding: 12px 0; gap: 12px; flex-wrap: wrap; }
  .brand-mark { width: 38px; height: 28px; flex-basis: 38px; }
  .brand-block strong { font-size: 14px; }
  .brand-block div span { display: none; }
  .view-button { min-height: 44px; padding: 6px 12px; font-size: 13px; }
  .hero { margin: 18px 0 24px; padding: 20px 18px; gap: 22px; }
  .hero-copy { padding: 0; }
  .hero h1 { font-size: 25px; text-wrap: balance; overflow-wrap: anywhere; }
  .hero-copy > p { font-size: 13px; }
  .hero-points { gap: 14px; }
  .hero-services { grid-template-columns: minmax(0, 1fr) 126px; gap: 8px; }
  .gpt-promo { padding: 15px; }
  .gpt-promo strong { font-size: 16px; }
  .gpt-promo p { font-size: 10px; }
  .promo-action { margin-top: 12px; }
  .contact-card { padding: 9px; }
  .contact-card img { width: 88px; height: 88px; }
  .contact-copy span { display: none; }
  .section-intro { align-items: flex-start; flex-direction: column; gap: 10px; }
  .section-intro h2 { font-size: 21px; }
  .section-intro > p { max-width: 145px; text-align: right; }
  .section-intro > .stock-reminder { width: 100%; max-width: none; padding: 10px 12px; font-size: 12px; text-align: left; }
  .product-panel, .query-form, .query-result { padding: 18px 16px; }
  .batch-query-panel { padding: 18px 16px; }
  .claim-controls { grid-template-columns: minmax(0, 1fr) 116px; }
  .text-input, .quantity-field input { font-size: 16px; }
  .card-code-row { gap: 8px; }
  .purchase-link { padding-inline: 11px; }
  .result-content { padding: 16px 12px; font-size: 14px; }
  .query-result .result-content { min-height: 180px; }
  .field-heading a { display: inline-flex; align-items: center; min-height: 32px; }
  .batch-query-actions { align-items: stretch; flex-direction: column; gap: 8px; }
  .batch-query-actions .claim-button { width: 100%; }
}

@media (max-width: 390px) {
  .brand-block { gap: 9px; }
  .view-switch { width: 100%; }
  .view-button { flex: 1; }
}

@media (max-width: 340px) {
  .hero-services { grid-template-columns: 1fr; }
  .contact-card { grid-template-columns: minmax(0, 1fr) 84px; justify-items: start; text-align: left; }
  .contact-card img { width: 84px; height: 84px; }
  .contact-copy span { display: block; }
  .section-intro { display: block; }
  .section-intro > p { max-width: none; margin-top: 5px; text-align: left; }
}

.ad-hero { grid-template-columns: minmax(0, 1fr) 236px; gap: 14px; padding: 0; border: 0; background: transparent; box-shadow: none; }
.ai-banner { position: relative; isolation: isolate; min-width: 0; min-height: 312px; display: grid; grid-template-columns: 224px minmax(0, 1fr); align-items: center; gap: 16px; padding: 10px; overflow: hidden; border: 1px solid #273e67; border-radius: 16px; background: radial-gradient(circle at 78% 12%, #405b9d 0, transparent 28%), linear-gradient(115deg, #111d3a 0%, #172950 52%, #1b3560 100%); box-shadow: 0 18px 42px rgba(19,35,72,.2); }
.ai-banner::before { content: ""; position: absolute; inset: 0; z-index: -2; background-image: linear-gradient(#90a7db18 1px, transparent 1px), linear-gradient(90deg, #90a7db18 1px, transparent 1px); background-size: 34px 34px; mask-image: linear-gradient(90deg, #000 0%, transparent 62%); }
.ai-banner::after { content: "✦"; position: absolute; right: 22%; top: -76px; z-index: -1; color: #90b1ff1f; font-size: 280px; font-weight: 200; line-height: 1; pointer-events: none; }
.ai-banner:hover { border-color: #6d8ed1; box-shadow: 0 20px 46px rgba(34,61,124,.27); }
.ai-banner-copy { min-width: 0; padding: 20px 4px 20px 22px; }
.ai-banner-label { display: inline-flex; gap: 8px; align-items: center; padding: 4px 11px 4px 5px; border: 1px solid #7591d244; border-radius: 20px; color: #a9bce7; font-size: 10px; font-weight: 750; letter-spacing: .7px; }
.ai-banner-label > span { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #91adf9; color: #172950; }
.ai-banner h1 { margin-top: 13px; color: #fff; font-size: 32px; font-weight: 760; letter-spacing: -.5px; line-height: 1.18; }
.ai-banner h1 span { color: #9fc1ff; }
.ai-banner-copy > p { margin-top: 11px; color: #b0bfdf; font-size: 12px; line-height: 1.7; }
.ai-banner-cta { display: inline-flex; align-items: center; justify-content: space-between; gap: 25px; min-height: 44px; margin-top: 20px; padding: 10px 16px; border: 1px solid #b2c9ff44; border-radius: 8px; background: #779cff; color: #14244a; font-size: 13px; font-weight: 760; box-shadow: 0 8px 20px rgba(112,150,255,.25); }
.ai-banner-cta > span { font-size: 18px; line-height: 1; }
.ai-service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); align-self: stretch; gap: 12px; min-width: 0; }
.ai-service { position: relative; display: flex; align-items: center; gap: 20px; min-width: 0; min-height: 138px; padding: 22px 24px; overflow: hidden; border: 1px solid #ffffff26; border-radius: 12px; background: linear-gradient(130deg, #ffffff1d, #ffffff08); box-shadow: 0 10px 24px #06132d2b, inset 0 1px #ffffff18; }
.ai-service::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--service-color); box-shadow: 0 0 16px var(--service-color); }
.ai-service-mark { display: grid; place-items: center; flex: 0 0 72px; width: 72px; height: 72px; border: 1px solid #ffffff35; border-radius: 16px; background: var(--service-soft); box-shadow: 0 4px 14px #0002; }
.ai-service-mark img { display: block; width: 48px; height: 48px; object-fit: contain; }
.ai-service-copy { min-width: 0; }
.ai-service-copy small, .ai-service-copy strong, .ai-service-copy em { display: block; font-style: normal; }
.ai-service-copy small { margin-bottom: 5px; color: #9fb1d0; font-size: 10px; font-weight: 750; letter-spacing: .5px; }
.ai-service-copy strong { color: #fff; font-size: 24px; line-height: 1.25; }
.ai-service-copy em { margin-top: 7px; color: #c0cce3; font-size: 12px; }
.ai-service > b { position: absolute; top: 14px; right: 14px; color: #9eb4df; font-size: 10px; font-weight: 700; line-height: 1; }
.ai-chatgpt { --service-color: #63d7bb; --service-soft: #184f55; }
.ai-claude { --service-color: #ffc08f; --service-soft: #63402f; }
.ai-grok { --service-color: #d2dded; --service-soft: #35445a; }
.ai-gemini { --service-color: #aeb7ff; --service-soft: #3d477e; }
.ad-hero .contact-card { position: relative; isolation: isolate; gap: 12px; border-color: #273e67; border-radius: 16px; padding: 16px 12px; background: radial-gradient(circle at 18% 12%, #405b9d 0, transparent 34%), linear-gradient(145deg, #111d3a 0%, #172950 54%, #1b3560 100%); box-shadow: 0 18px 42px rgba(19,35,72,.2); overflow: hidden; }
.ad-hero .contact-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(#90a7db18 1px, transparent 1px), linear-gradient(90deg, #90a7db18 1px, transparent 1px); background-size: 30px 30px; mask-image: linear-gradient(135deg, #000 0%, transparent 84%); pointer-events: none; }
.ad-hero .contact-card::after { content: "✦"; position: absolute; right: -12px; bottom: -50px; z-index: -1; color: #90b1ff1f; font-size: 170px; font-weight: 200; line-height: 1; pointer-events: none; }
.ad-hero .contact-copy strong { color: #fff; font-size: 16px; font-weight: 700; }
.ad-hero .contact-copy span { margin-top: 3px; color: #b0bfdf; font-size: 11px; }
.contact-qr { padding: 10px; border: 1px solid #ffffff3d; border-radius: 14px; background: #fff; box-shadow: 0 10px 24px #06132d4d; }
.ad-hero .contact-card img { width: 188px; height: 188px; }
@media (max-width: 1100px) {
  .ai-banner { gap: 14px; grid-template-columns: 215px minmax(0, 1fr); }
  .ai-banner-copy { padding-left: 14px; }
  .ai-service { gap: 14px; padding: 20px 16px; }
  .ai-service-copy strong { font-size: 20px; }
  .ai-service-mark { width: 58px; height: 58px; flex-basis: 58px; border-radius: 13px; }
  .ai-service-mark img { width: 38px; height: 38px; }
}
@media (max-width: 960px) {
  .ad-hero { grid-template-columns: minmax(0, 1fr) 200px; }
  .ai-banner { grid-template-columns: 1fr; gap: 22px; min-height: 0; padding: 20px; }
  .ai-banner-copy { padding: 0; }
  .ai-banner::after { left: auto; right: 16px; bottom: -48px; font-size: 132px; }
  .ai-banner h1 { font-size: 32px; }
  .ai-banner-cta { margin-top: 16px; }
  .ad-hero .contact-card { padding-inline: 10px; }
  .contact-qr { padding: 8px; }
  .ad-hero .contact-card img { width: 154px; height: 154px; }
}
@media (max-width: 640px) {
  .ad-hero { grid-template-columns: 1fr; gap: 12px; }
  .ai-banner { padding: 23px 20px; gap: 20px; }
  .ai-banner::before { mask-image: linear-gradient(#000 0%, transparent 46%); }
  .ai-banner::after { display: none; }
  .ai-banner h1 { font-size: 30px; }
  .ai-banner-copy > p { font-size: 13px; }
  .ai-service-grid { gap: 10px; }
  .ai-service { flex-direction: column; align-items: flex-start; gap: 11px; min-height: 152px; padding: 15px 14px; }
  .ai-service-mark { width: 44px; height: 44px; flex-basis: 44px; border-radius: 10px; }
  .ai-service-mark img { width: 30px; height: 30px; }
  .ai-service-copy small { margin-bottom: 3px; font-size: 9px; }
  .ai-service-copy strong { font-size: 18px; }
  .ai-service-copy em { margin-top: 4px; font-size: 11px; }
  .ad-hero .contact-card { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; justify-items: start; align-items: center; padding: 16px 20px; text-align: left; }
  .ad-hero .contact-card img { width: 128px; height: 128px; }
  .ad-hero .contact-copy strong { font-size: 16px; }
  .ad-hero .contact-copy span { display: block; margin-top: 3px; font-size: 12px; }
}
@media (max-width: 350px) {
  .ai-banner { padding: 22px 16px; }
  .ai-service { padding: 14px 11px; }
  .ai-service-copy strong { font-size: 16px; }
  .purchase-link { padding-inline: 9px; font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  button, a, input { transition: none; }
}
