:root {
  color-scheme: light;
  --navy: #071827; --deep: #0b2b43; --blue: #064b70; --ink: #102e46;
  --muted: #51677a; --ice: #f3f7fb; --silver: #b8c8d5; --line: #bbcbd8;
  --white: #fff; --focus: #16729d; --danger: #a73737; --radius: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #e8eef4; color: var(--ink); font-family: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { font: inherit; cursor: pointer; }
svg { display: block; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 26px; height: 26px; flex-shrink: 0; }
[hidden] { display: none !important; }
.page { max-width: 920px; margin: 0 auto; background: var(--ice); min-height: 100dvh; overflow: clip; box-shadow: 0 16px 80px #0b2b4312; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 5; padding: 12px 20px; background: var(--white); transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.preview-notice { display: flex; justify-content: space-between; gap: 12px; padding: 10px 28px; background: #d9e7f0; color: var(--deep); font-size: 12px; letter-spacing: .03em; }
.preview-notice a { font-weight: 650; text-underline-offset: 4px; white-space: nowrap; }
.hero { position: relative; isolation: isolate; color: var(--white); background: var(--navy); padding: 0 34px 24px; }
.hero::before { content: ""; position: absolute; inset: 0; background: url('/assets/ocean-hero.webp') center -20px / 100% auto no-repeat; mask-image: linear-gradient(transparent 35px, #000 100px); z-index: -1; }
.site-header { height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid #c6e3f075; }
.brand { display: flex; align-items: center; gap: 17px; color: var(--white); text-decoration: none; letter-spacing: -1.5px; font-size: 38px; line-height: 1; font-weight: 700; }
.brand-symbol { width: 45px; height: 45px; stroke-width: 2.6; }
.brand-divider { height: 34px; width: 1px; background: #c6dbe8a6; }
.header-label { font-size: 24px; letter-spacing: 2px; font-weight: 400; }
.hero-result { height: 306px; display: flex; align-items: center; justify-content: flex-end; }
.result-copy { width: 57%; padding: 6px 0 0 10px; }
.eyebrow { font-size: 15px; font-weight: 600; letter-spacing: 4.5px; line-height: 1.5; margin: 0 0 18px; color: #c3e3f2; white-space: nowrap; }
h1 { font-size: clamp(36px, 7vw, 74px); font-weight: 650; line-height: 1.2; letter-spacing: 5px; margin: 0 0 16px; text-wrap: balance; }
.result-description { color: #e0edf5; font-size: 21px; font-weight: 400; line-height: 1.7; margin: 0; text-wrap: pretty; }
.shield-state { position: absolute; top: 57.7%; left: 26.6%; width: 10.5%; transform: translate(-50%, -50%); color: #e6f5ff; filter: drop-shadow(0 0 10px #91d9fa50); pointer-events: none; }
.shield-state svg { width: 100%; aspect-ratio: 1; stroke-width: 1.4; }
.shield-state use[href="#i-check"] { stroke-width: 2.4; }
.status-strip { display: grid; grid-template-columns: 1fr 1px 1fr; align-items: center; min-height: 78px; padding: 12px 25px; border: 1px solid #b8d3e5; border-radius: 999px; background: linear-gradient(135deg, #24567180, #0d2b3da8); box-shadow: inset 0 1px 3px #e0f2ff40, 0 7px 18px #0002; backdrop-filter: blur(8px); }
.status-strip > div { display: flex; justify-content: center; align-items: center; gap: 16px; font-size: 23px; letter-spacing: 1px; }
.status-strip .icon { width: 36px; height: 36px; color: #cae6f4; }
.status-divider { height: 32px; background: #c5deec8c; }
.content-shell { padding: 30px 34px 0; background: radial-gradient(ellipse at 50% 12%, #faffff 0, transparent 57%), var(--ice); }
.product-section { display: grid; grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr); gap: 32px; align-items: center; margin-bottom: 32px; }
.product-photo { position: relative; margin: 0; overflow: hidden; border-radius: 18px; background: #d8e5ef; aspect-ratio: 1.1; }
.product-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.product-photo figcaption { position: absolute; bottom: 0; left: 0; right: 0; padding: 20px 12px 8px; background: linear-gradient(transparent, #071827b5); color: var(--white); font-size: 11px; letter-spacing: 1px; }
.product-info { min-width: 0; }
.section-tag { display: inline-flex; padding: 2px 13px; color: var(--deep); font-size: 19px; letter-spacing: 1.5px; line-height: 1.7; background: linear-gradient(120deg, #d6e6f0, #b7cfdfaa, #edf5fb); border-radius: 6px; }
.product-info h2 { font-size: clamp(22px, 4.1vw, 43px); line-height: 1.35; letter-spacing: 1px; margin: 14px 0 10px; font-weight: 650; text-wrap: balance; }
.product-brand { font-size: 20px; margin: 0 0 21px; color: var(--ink); }
dl { margin: 0; }
.product-fields > div { display: flex; gap: 18px; justify-content: space-between; border-top: 1px solid var(--line); padding: 8px 0; font-size: 20px; }
.product-fields > div:last-child { border-bottom: 1px solid var(--line); }
dt { color: var(--muted); }
dd { margin: 0; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.product-fields dd { color: var(--navy); text-align: right; }
.certificate { position: relative; border: 1px solid #87aac6; clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 14px, 100% calc(100% - 14px), calc(100% - 14px) 100%, 14px 100%, 0 calc(100% - 14px), 0 14px); background: linear-gradient(135deg, #edf6fc66, #ffffff80); padding: 6px; }
.certificate::before { content: ""; position: absolute; inset: 0; background: url('/assets/certificate-waves.svg') center / 100% 100% no-repeat; opacity: .65; pointer-events: none; }
.certificate-inner { position: relative; border: 1px solid #c5d8e7; clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px); padding: 20px 28px 22px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.section-heading h2 { font-size: 30px; margin: 0; font-weight: 650; letter-spacing: 2px; }
.state-label { font-size: 12px; letter-spacing: 1px; color: var(--muted); border: 1px solid var(--line); padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.verification-fields > div { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 22px; }
.verification-fields dt { display: flex; align-items: center; gap: 22px; color: var(--ink); flex-shrink: 0; }
.verification-fields .icon { width: 32px; height: 32px; color: #184e72; }
.verification-fields dd { text-align: right; font-weight: 550; min-width: 0; }
.verification-fields time { font-size: 20px; letter-spacing: .3px; white-space: nowrap; }
.certificate-note { font-size: 16px; line-height: 1.7; margin: 14px 0 0; color: var(--muted); }
.actions { padding-top: 30px; }
.button { display: flex; align-items: center; justify-content: center; gap: 16px; min-height: 66px; width: 100%; padding: 14px 22px; border-radius: var(--radius); text-decoration: none; font-size: 25px; font-weight: 550; letter-spacing: 2px; line-height: 1.4; transition: background-color .15s, box-shadow .15s; }
.button-primary { position: relative; border: 1px solid #b8d6e030; background: linear-gradient(110deg, #05527b, var(--deep)); color: var(--white); box-shadow: inset 0 1px 1px #fff2; }
.button-primary > .icon { position: absolute; right: 28px; width: 32px; height: 32px; }
.button-primary:hover { background: linear-gradient(110deg, #086389, #103d59); box-shadow: 0 5px 20px #0b2b431a; }
.button:active { filter: brightness(.93); }
.button:disabled { opacity: .65; cursor: wait; }
.secondary-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 20px; }
.button-secondary { border: 1px solid #173f5f; background: #f5faff50; color: var(--deep); font-weight: 450; min-height: 62px; font-size: 22px; }
.button-secondary:hover { background: #e3eef6; }
.button-secondary > .icon { width: 31px; height: 31px; }
.feedback { font-size: 14px; line-height: 1.6; text-align: center; color: var(--muted); margin: 14px 0 0; }
.feedback:empty { display: none; }
.consumer-tip { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 30px 0 25px; color: var(--muted); }
.consumer-tip .icon { width: 22px; height: 22px; color: #406b88; }
.consumer-tip p { margin: 0; font-size: 16px; line-height: 1.6; }
.site-footer { border-top: 1px solid var(--line); padding: 17px 0 max(25px, env(safe-area-inset-bottom)); color: var(--muted); }
.site-footer > div { display: flex; justify-content: space-between; gap: 16px; align-items: center; font-size: 17px; }
.site-footer a { text-decoration: none; letter-spacing: .3px; }
.site-footer p { text-align: center; font-size: 12px; margin: 16px 0 0; letter-spacing: 1px; }
.site-footer .footer-caption { font-size: 11px; color: #60778a; }
.fallback-note { font-size: 14px; color: var(--muted); border: 1px solid var(--line); padding: 16px; }
.icon-button { display: grid; place-items: center; width: 44px; height: 44px; background: transparent; border: 0; border-radius: 50%; color: var(--deep); }
.icon-button:hover { background: #e8eff4; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.hero a:focus-visible { outline-color: #9eddf5; }
dialog { width: min(100% - 40px, 460px); max-height: 85dvh; overflow: auto; border: 1px solid var(--silver); border-radius: 18px; padding: 24px; background: var(--ice); color: var(--ink); box-shadow: 0 24px 100px #0718274d; }
dialog::backdrop { background: #07182799; backdrop-filter: blur(4px); }
.dialog-header { display: flex; justify-content: space-between; align-items: center; }
.dialog-eyebrow { letter-spacing: 1px; font-size: 16px; font-weight: 650; }
dialog h2 { font-size: 26px; margin: 18px 0 12px; }
dialog p { font-size: 16px; line-height: 1.8; margin: 0 0 20px; color: var(--muted); }
dialog .button { min-height: 48px; font-size: 16px; margin-top: 12px; letter-spacing: 1px; }
.dialog-fields > div { padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; display: flex; justify-content: space-between; gap: 16px; }
.dialog-fields dd { text-align: right; }
body[data-state="preview"] .state-label { color: var(--deep); border-color: #9dbace; background: #dcebf480; }
body[data-state="preview"] .verification-fields dd { color: #063c59; }
body[data-state="invalid"] .state-label, body[data-state="error"] .state-label { color: var(--danger); border-color: #d7b2b2; }
.verification-history { display: grid; grid-template-columns: 1fr auto; gap: 16px 28px; align-items: center; border: 1px solid #b3cbdc; border-radius: 14px; background: linear-gradient(120deg,#e2eef7,#f6fbff); padding: 22px 26px; margin-bottom: 28px; }
.history-label { margin: 0 0 3px; font-size: 25px; font-weight: 650; letter-spacing: 1px; }
.history-description { margin: 0; color: var(--muted); font-size: 14px; }
.history-count { display: flex; flex-direction: column; align-items: center; min-width: 110px; border-left: 1px solid var(--line); padding-left: 28px; }
.history-count strong { font-size: 42px; line-height: 1.2; font-weight: 600; font-variant-numeric: tabular-nums; }
.history-count span { color: var(--muted); font-size: 12px; margin-top: 4px; }
.history-first { grid-column: 1 / -1; margin: 0; border-top: 1px solid var(--line); padding-top: 12px; color: var(--muted); font-size: 13px; }
.history-first time { margin-left: 10px; font-variant-numeric: tabular-nums; }
body[data-state="rejected"] .state-label, body[data-state="blocked"] .state-label { color: var(--danger); }
@media (max-width: 640px) {
  .hero { padding: 0 20px 20px; }
  .hero::before { background-position: center calc(85px - 12vw); }
  .shield-state { top: calc(85px + 21vw); }
  .site-header { height: 67px; }
  .brand { gap: 11px; font-size: 27px; letter-spacing: -1px; }
  .brand-symbol { width: 32px; height: 32px; stroke-width: 2.5; }
  .brand-divider { height: 24px; }
  .header-label { font-size: 16px; letter-spacing: 1px; }
  .hero-result { height: 222px; }
  body[data-state="valid"] h1 { font-size: clamp(25px,6.4vw,40px); letter-spacing: 1px; }
  .verification-history { padding: 16px; gap: 12px 16px; margin-bottom: 24px; }
  .history-label { font-size: 21px; }
  .history-description { font-size: 12px; }
  .history-count { min-width: 90px; padding-left: 18px; }
  .history-count strong { font-size: 34px; }
  .history-count span { font-size: 11px; }
  .history-first { font-size: 11px; }
  .history-first time { display: inline-block; margin-left: 6px; }
  .result-copy { width: 59%; padding-left: 5px; }
  .eyebrow { font-size: 9px; letter-spacing: 1.8px; margin-bottom: 13px; }
  h1 { font-size: clamp(32px, 8.6vw, 52px); letter-spacing: 2px; margin-bottom: 14px; }
  .result-description { font-size: 15px; line-height: 1.8; }
  .status-strip { min-height: 58px; padding: 9px 12px; }
  .status-strip > div { font-size: 14px; gap: 9px; letter-spacing: 0; }
  .status-strip .icon { width: 25px; height: 25px; }
  .status-divider { height: 25px; }
  .content-shell { padding: 24px 20px 0; }
  .product-section { gap: 20px; margin-bottom: 24px; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
  .product-photo { border-radius: 12px; aspect-ratio: 1; }
  .product-photo figcaption { font-size: 10px; }
  .section-tag { font-size: 13px; padding: 2px 8px; letter-spacing: 1px; }
  .product-info h2 { font-size: 24px; letter-spacing: .5px; margin: 10px 0 8px; }
  .product-brand { font-size: 14px; margin-bottom: 12px; }
  .product-fields > div { font-size: 13px; flex-direction: column; gap: 1px; padding: 6px 0; }
  .product-fields dd { text-align: left; font-size: 14px; }
  .certificate-inner { padding: 14px 16px 16px; }
  .section-heading { padding-bottom: 10px; }
  .section-heading h2 { font-size: 23px; letter-spacing: 1px; }
  .state-label { font-size: 11px; padding: 2px 8px; }
  .verification-fields > div { padding: 11px 0; font-size: 16px; gap: 12px; }
  .verification-fields dt { gap: 12px; }
  .verification-fields .icon { width: 24px; height: 24px; }
  .verification-fields time { font-size: 14px; letter-spacing: 0; }
  .certificate-note { font-size: 13px; margin-top: 12px; }
  .actions { padding-top: 24px; }
  .button { min-height: 55px; font-size: 20px; letter-spacing: 1px; border-radius: 12px; padding: 13px 18px; }
  .button-primary > .icon { right: 20px; width: 26px; height: 26px; }
  .secondary-actions { gap: 14px; margin-top: 14px; }
  .button-secondary { min-height: 51px; font-size: 17px; gap: 10px; }
  .button-secondary > .icon { width: 26px; height: 26px; }
  .consumer-tip { align-items: flex-start; gap: 9px; margin: 24px 0 22px; }
  .consumer-tip p { font-size: 13px; }
  .consumer-tip .icon { width: 19px; height: 19px; margin-top: 1px; }
  .site-footer { padding: 15px 0 24px; }
  .site-footer > div { font-size: 12px; gap: 12px; }
  .site-footer p { font-size: 10px; }
  .preview-notice { padding: 8px 20px; font-size: 10px; flex-wrap: wrap; gap: 3px; }
  .preview-notice a { min-height: 24px; display: flex; align-items: center; }
  .feedback { font-size: 13px; }
}
@media (max-width: 400px) {
  .hero { padding: 0 16px 17px; }
  .site-header { height: 61px; }
  .brand { font-size: 25px; gap: 9px; }
  .brand-symbol { width: 29px; height: 29px; }
  .header-label { font-size: 15px; }
  .hero-result { height: 188px; }
  .result-copy { width: 59%; padding: 0; }
  .eyebrow { font-size: 8px; letter-spacing: 1.3px; margin-bottom: 12px; }
  h1 { font-size: 34px; letter-spacing: 1px; }
  .result-description { font-size: 14px; line-height: 1.7; }
  .status-strip { padding: 8px 9px; min-height: 54px; }
  .status-strip > div { font-size: 12px; gap: 7px; }
  .status-strip .icon { width: 23px; height: 23px; }
  .status-divider { height: 23px; }
  .content-shell { padding: 20px 16px 0; }
  .product-section { gap: 15px; }
  .product-info h2 { font-size: 21px; letter-spacing: 0; }
  .product-brand { font-size: 13px; }
  .product-fields > div { font-size: 12px; }
  .product-fields dd { font-size: 13px; }
  .certificate-inner { padding: 12px; }
  .verification-fields > div { font-size: 15px; gap: 8px; }
  .verification-fields dt { gap: 9px; }
  .verification-fields .icon { width: 22px; height: 22px; }
  .verification-fields time { font-size: 14px; white-space: normal; }
  .section-heading h2 { font-size: 21px; }
  .state-label { font-size: 10px; }
  .button-secondary { font-size: 16px; gap: 9px; }
  .consumer-tip p { font-size: 12px; }
  .site-footer > div { font-size: 11px; flex-wrap: wrap; gap: 5px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
