:root {
    --brand: #0C6B54;
    --brand-deep: #0A4A3C;
    --brand-active: #0E8266;
    --brand-soft: #E4F3ED;
    --ink: #062A21;
    --gold: #D9B36C;
    --gold-strong: #C9974B;
    --gold-soft: #F3DFB3;
    --gold-ink: #43320F;
    --success: #16A34A;
    --warn: #B45309;
    --danger: #B42318;
    --bg: #F2F5F3;
    --card: #FFFFFF;
    --text: #14201B;
    --body: #3D4A44;
    --muted: #74807A;
    --border: #E3E8E4;
    --hero: linear-gradient(172deg, #0A382D 0%, #0C4A3A 58%, #0E5A45 100%);
    --card-gradient-success: linear-gradient(155deg, #11705A 0%, #0A4335 100%);
    --card-gradient-pending: linear-gradient(155deg, #0E5265 0%, #0B3A46 100%);
    --card-gradient-warn: linear-gradient(155deg, #A16207 0%, #7C4A03 100%);
    --card-gradient-error: linear-gradient(155deg, #B42318 0%, #7F1610 100%);
    --card-gradient-loading: linear-gradient(155deg, #52616F 0%, #38424D 100%);
    --shadow: 0 10px 28px rgba(9, 34, 27, 0.07);
    --shadow-strong: 0 18px 48px rgba(9, 34, 27, 0.14);
    --motion: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    box-sizing: border-box;
}

html {
    background: var(--bg);
    overflow-x: hidden;
}

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--body);
    background: var(--bg);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

h1, h2, h3, p, dl, dd {
    margin: 0;
}

button,
input {
    font: inherit;
}

.verify-page {
    position: relative;
    width: 100%;
    max-width: 750px;
    min-height: 100vh;
    margin: 0 auto;
    padding: max(18px, env(safe-area-inset-top)) 16px 28px;
    overflow-x: hidden;
}

/* 顶部官方深色底幕:细密防伪斜纹 + 盾形水印 + 顶部金色辉光 */
.verify-page::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    z-index: 0;
    width: 100vw;
    height: 332px;
    transform: translateX(-50%);
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.055)' stroke-width='0.8'%3E%3Cpath d='M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E") center -28px / 240px no-repeat,
        radial-gradient(120% 90% at 50% -24%, rgba(233, 200, 127, 0.16), transparent 56%),
        radial-gradient(90% 62% at 88% 0%, rgba(23, 178, 144, 0.20), transparent 58%),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 9px),
        var(--hero);
    border-radius: 0 0 30px 30px;
}

.verify-page > * {
    position: relative;
    z-index: 1;
}

.brand-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    padding: 8px 0 16px;
    text-align: center;
    animation: fadeDown 460ms var(--motion) both;
}

.brand-logo-wrap {
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    border-radius: 18px;
    background: #fff;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.42),
        0 0 0 5px rgba(255, 255, 255, 0.10),
        0 14px 30px rgba(2, 24, 18, 0.30);
    overflow: hidden;
}

.brand-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: #fff;
    background: linear-gradient(150deg, #12866A 0%, #0A4A3C 100%);
    font-size: 25px;
    font-weight: 800;
}

.brand-header h1 {
    margin-top: 3px;
    color: #fff;
    font-size: 23px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 8px rgba(2, 24, 18, 0.35);
}

.brand-header p {
    color: rgba(255, 255, 255, 0.74);
    font-size: 13px;
    letter-spacing: 1.5px;
}

.brand-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-top: 4px;
}

.brand-tags span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.86);
    background: rgba(255, 255, 255, 0.07);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.brand-tags span::before {
    content: "";
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--gold);
}

.card,
.skeleton-card {
    width: min(100%, calc(100vw - 32px));
    margin-top: 14px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--card);
    box-shadow: var(--shadow);
    animation: fadeUp 520ms var(--motion) both;
}

.card:nth-of-type(4) {
    animation-delay: 80ms;
}

.card:nth-of-type(5) {
    animation-delay: 130ms;
}

.card-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--text);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
}

/* —— 核验结果卡:官方证书样式 —— */

.result-card {
    position: relative;
    width: min(100%, calc(100vw - 32px));
    margin-top: 4px;
    padding: 19px 16px 16px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 18px;
    overflow: hidden;
    color: #fff;
    background: var(--card-gradient-success);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.10),
        0 16px 36px rgba(4, 40, 31, 0.30);
    animation: resultIn 520ms var(--motion) both;
}

/* 证书内金色细框 */
.result-card::before {
    content: "";
    position: absolute;
    inset: 5px;
    z-index: 0;
    border: 1px solid rgba(243, 223, 179, 0.22);
    border-radius: 14px;
    pointer-events: none;
}

.result-card::after {
    content: none;
}

/* 大盾形水印 */
.result-watermark {
    position: absolute;
    right: -26px;
    top: -18px;
    z-index: 0;
    width: 158px;
    height: 158px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.10)' stroke-width='0.9'%3E%3Cpath d='M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E") center / contain no-repeat;
    transform: rotate(10deg);
    pointer-events: none;
}

/* 核验结论大印章 */
.verdict-seal {
    position: absolute;
    top: 16px;
    right: 12px;
    z-index: 2;
    width: 94px;
    height: 94px;
    color: var(--gold-soft);
    transform: rotate(-12deg);
    pointer-events: none;
    filter: drop-shadow(0 4px 10px rgba(2, 26, 20, 0.30));
    animation: sealStamp 620ms var(--motion) 300ms both;
}

.verdict-seal svg {
    display: block;
    width: 100%;
    height: 100%;
}

.verdict-seal svg text {
    fill: currentColor;
}

.verdict-seal b {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding-left: 7px;
    font-size: 26px;
    font-weight: 900;
    letter-spacing: 7px;
    line-height: 1;
}

/* 印章占位:给标题文案留出右侧空间 */
.has-seal .result-head {
    min-height: 96px;
    padding-right: 96px;
}

.status-error .verdict-seal,
.status-risk .verdict-seal,
.status-warn .verdict-seal {
    color: rgba(255, 255, 255, 0.94);
}

.icon {
    display: block;
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.result-head {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.result-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 13px;
    align-items: center;
    min-width: 0;
}

.result-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 14px;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        0 8px 18px rgba(2, 26, 20, 0.22);
    animation: iconPop 520ms var(--motion) 120ms both;
}

.result-icon .icon {
    width: 24px;
    height: 24px;
}

.result-copy h2 {
    color: #fff;
    font-size: 21px;
    font-weight: 800;
    line-height: 1.25;
    text-shadow: 0 1px 6px rgba(2, 24, 18, 0.28);
}

.status-normal .result-copy {
    display: block;
}

.status-normal .result-copy h2 {
    min-width: 0;
}

.result-copy p {
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 13px;
    line-height: 1.5;
}

.status-normal .result-copy p {
    margin-top: 4px;
}

.result-eyebrow {
    display: block;
    margin-bottom: 4px;
    color: var(--gold-soft);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;
}

/* 「已核验」金色骑缝章 */
.result-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex: 0 0 auto;
    min-height: 30px;
    padding: 5px 10px;
    border: 1.5px solid rgba(243, 223, 179, 0.78);
    border-radius: 10px;
    color: var(--gold-soft);
    background: rgba(243, 223, 179, 0.06);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    transform: rotate(5deg);
    animation: stampIn 480ms var(--motion) 260ms both;
}

.result-badge::before {
    content: "";
    position: absolute;
    inset: 2.5px;
    border: 1px solid rgba(243, 223, 179, 0.38);
    border-radius: 7px;
    pointer-events: none;
}

.result-badge .icon {
    width: 13px;
    height: 13px;
}

.icon-loader {
    animation: spin 900ms linear infinite;
}

/* 验证记录:票券式白色底栏 */
.verification-history-entry {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: calc(100% + 32px);
    min-height: 50px;
    margin: 16px -16px -16px;
    padding: 9px 16px;
    border: 0;
    border-top: 1px dashed rgba(10, 68, 55, 0.32);
    border-radius: 0 0 18px 18px;
    color: inherit;
    background: #FDFDFB;
    cursor: pointer;
    text-align: left;
    box-shadow: none;
    animation: fadeUp 420ms var(--motion) both;
    transition:
        border-color 160ms var(--motion),
        background 160ms var(--motion);
}

.history-entry-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
    text-align: left;
}

.history-entry-copy b {
    color: #1F2937;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
}

.history-entry-copy small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 400;
    line-height: 1.3;
}

.history-entry-value {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex: 0 0 auto;
}

.history-entry-value .icon-chevron {
    width: 15px;
    height: 15px;
    color: #9AA6A0;
    transition: transform 160ms var(--motion);
}

.verification-history-entry:active .icon-chevron {
    transform: translateX(2px);
}

.verification-history-entry strong {
    display: grid;
    place-items: center;
    min-width: 34px;
    height: 30px;
    padding: 0 9px;
    border: 1px solid rgba(12, 107, 84, 0.22);
    border-radius: 9px;
    color: var(--brand);
    background: var(--brand-soft);
    font-size: 13px;
    font-weight: 800;
}

.verification-history-entry:hover {
    background: #F8FBF8;
}

.verification-history-entry:active {
    background: #F1F7F2;
}

.history-entry-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.history-entry-label .icon {
    color: var(--brand);
}

.result-verify-panel {
    position: relative;
    z-index: 1;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.status-repeat {
    background: var(--card-gradient-success);
}

.status-warn {
    background: var(--card-gradient-warn);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.10),
        0 16px 36px rgba(124, 74, 3, 0.26);
}

.status-error,
.status-risk {
    background: var(--card-gradient-error);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.10),
        0 16px 36px rgba(127, 22, 16, 0.26);
}

.status-loading {
    background: var(--card-gradient-loading);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.10),
        0 16px 36px rgba(56, 66, 77, 0.24);
}

.status-pending {
    background: var(--card-gradient-pending);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.10),
        0 16px 36px rgba(11, 58, 70, 0.28);
}

.status-warn .result-copy h2,
.status-error .result-copy h2,
.status-risk .result-copy h2,
.status-loading .result-copy h2,
.status-pending .result-copy h2 {
    color: #fff;
}

.status-warn .result-copy p,
.status-error .result-copy p,
.status-risk .result-copy p,
.status-loading .result-copy p,
.status-pending .result-copy p {
    color: rgba(255, 255, 255, 0.90);
}

/* 警示/风险状态弱化金框与水印,避免喜庆感 */
.status-warn .result-eyebrow,
.status-error .result-eyebrow,
.status-risk .result-eyebrow,
.status-loading .result-eyebrow {
    color: rgba(255, 255, 255, 0.72);
    letter-spacing: 3px;
}

.status-error::before,
.status-risk::before,
.status-warn::before,
.status-loading::before {
    border-color: rgba(255, 255, 255, 0.16);
}

.status-error .result-watermark,
.status-risk .result-watermark,
.status-warn .result-watermark,
.status-loading .result-watermark {
    opacity: 0.5;
}

/* —— 商品卡:检验报告样式 —— */

.product-card {
    position: relative;
    overflow: hidden;
    padding: 16px;
    border-color: var(--border);
    background: #fff;
}

.product-card::before {
    content: none;
}

.product-card::after {
    content: none;
}

.product-card__head {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.product-card__head .card-title {
    margin-bottom: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.product-card__head .card-title .icon {
    width: 20px;
    height: 20px;
    color: var(--brand);
}

.product-card__head span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex: 0 0 auto;
    padding: 5px 10px;
    border-radius: 999px;
    color: var(--brand);
    background: var(--brand-soft);
    font-size: 12px;
    font-weight: 800;
    box-shadow: inset 0 0 0 1px rgba(12, 107, 84, 0.14);
    animation: badgePop 420ms var(--motion) 260ms both;
    transition:
        color 180ms var(--motion),
        background 180ms var(--motion);
}

.product-card__head span::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand-active);
    animation: badgeDot 900ms ease-out 360ms both;
}

.product-card[data-status="repeat"] .product-card__head span {
    color: #15803D;
    background: #F0FDF4;
}

.product-card[data-status="repeat"] .product-card__head span::before {
    background: #22C55E;
}

.product-card[data-status="risk"] .product-card__head span,
.product-card[data-status="error"] .product-card__head span {
    color: #B42318;
    background: #FEF2F2;
    box-shadow: inset 0 0 0 1px rgba(180, 35, 24, 0.14);
}

.product-card[data-status="risk"] .product-card__head span::before,
.product-card[data-status="error"] .product-card__head span::before {
    background: #EF4444;
}

.product-card[data-status="pending"] .product-card__head span,
.product-card[data-status="loading"] .product-card__head span {
    color: #155E75;
    background: #ECFEFF;
    box-shadow: inset 0 0 0 1px rgba(21, 94, 117, 0.14);
}

.product-card[data-status="pending"] .product-card__head span::before,
.product-card[data-status="loading"] .product-card__head span::before {
    background: #0891B2;
}

.product-summary {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    min-height: 92px;
    padding: 0 0 12px;
}

.product-image-frame {
    position: relative;
    display: grid;
    place-items: center;
    width: 88px;
    height: 88px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #F7FAF8;
    box-shadow: inset 0 0 0 3px #fff;
}

.product-image-frame::before {
    content: none;
}

.product-image-frame::after {
    content: none;
}

.product-image {
    position: relative;
    z-index: 1;
    width: 74px;
    height: 74px;
    border-radius: 12px;
    object-fit: cover;
    background: linear-gradient(135deg, #EAF4EE, #F7FAF8);
    transition: transform 220ms var(--motion);
}

.product-image-frame:hover .product-image,
.product-image-frame:active .product-image {
    transform: scale(1.035);
}

.product-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 7px;
    color: var(--gold-strong);
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 2px;
}

.product-eyebrow::before {
    content: "";
    width: 14px;
    height: 1px;
    background: var(--gold);
}

.product-main h3 {
    color: var(--text);
    font-size: 21px;
    font-weight: 800;
    line-height: 1.2;
    word-break: break-word;
}

.product-main p {
    margin-top: 7px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
    word-break: break-word;
}

/* 报告式信息行:标签靠左、值靠右、虚线分隔 */
.info-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 0;
    padding: 2px 0;
    border-top: 1px solid var(--border);
    border-bottom: 0;
}

.info-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-width: 0;
    min-height: 40px;
    padding: 9px 2px;
    border: 0;
    border-bottom: 1px dashed #E8EDE9;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    animation: rowIn 440ms var(--motion) both;
    animation-delay: calc(var(--row, 0) * 36ms + 180ms);
}

.info-item:last-child {
    border-bottom: 0;
}

.info-item dt {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.25;
    white-space: nowrap;
}

.info-item dd {
    min-width: 0;
    margin-top: 0;
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
    overflow: hidden;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 公开码用等宽字体呈现,更像票证编号 */
.info-item:first-child dd {
    font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
    font-size: 13px;
    letter-spacing: 0.06em;
}

/* —— 验真步骤与验证码输入 —— */

.verify-steps {
    display: flex;
    gap: 0;
    margin: 0 0 11px;
    padding: 0;
    border: 0;
    background: transparent;
}

.verify-step {
    position: relative;
    display: flex;
    gap: 5px;
    align-items: center;
    justify-content: center;
    flex: 1 1 0;
    width: 0;
    min-width: 0;
    padding: 0 4px;
    border: 0;
    background: transparent;
}

.verify-step + .verify-step::before {
    content: "";
    position: absolute;
    left: -10px;
    width: 20px;
    height: 1px;
    background: rgba(243, 223, 179, 0.34);
}

.verify-step span {
    display: grid;
    place-items: center;
    width: 17px;
    height: 17px;
    border: 1px solid rgba(243, 223, 179, 0.66);
    border-radius: 50%;
    color: var(--gold-soft);
    background: rgba(243, 223, 179, 0.10);
    font-size: 10px;
    font-weight: 800;
}

.verify-step strong {
    min-width: 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.25;
    white-space: nowrap;
}

.secret-layout {
    display: block;
}

.secret-form {
    display: grid;
    gap: 0;
    align-content: center;
}

.secret-form label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.secret-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 96px;
    gap: 8px;
}

.secret-form input,
.secret-form button {
    height: 42px;
    border-radius: 12px;
    font-size: 14px;
}

.secret-form input {
    min-width: 0;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    color: #fff;
    background: rgba(2, 26, 20, 0.30);
    outline: none;
    transition:
        border-color 160ms var(--motion),
        box-shadow 160ms var(--motion);
}

.secret-form input::placeholder {
    color: rgba(255, 255, 255, 0.46);
    font-size: 12px;
}

.secret-form input:focus {
    border-color: rgba(243, 223, 179, 0.85);
    box-shadow: 0 0 0 3px rgba(217, 179, 108, 0.24);
}

/* 金色官方验真按钮 */
.secret-form button {
    border: 0;
    color: var(--gold-ink);
    background: linear-gradient(180deg, #EFDCA9 0%, #D9B36C 100%);
    font-weight: 800;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.55),
        0 6px 14px rgba(2, 26, 20, 0.26);
    transition:
        transform 180ms var(--motion),
        filter 180ms var(--motion),
        box-shadow 180ms var(--motion);
}

.secret-form button:hover {
    filter: brightness(1.04);
}

.secret-form button:active {
    transform: scale(0.98);
}

.secret-form button:disabled {
    opacity: 0.68;
}

.field-help {
    margin-top: 7px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 11px;
    line-height: 1.45;
}

/* —— 资料 Tab —— */

.rich-card {
    padding: 0;
    overflow: hidden;
}

.material-card,
.product-materials {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 10px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.material-card > .card-title {
    margin-bottom: 4px;
}

.material-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    padding: 0;
    border: 0;
    border-bottom: 1px solid #EEF2EF;
    border-radius: 0;
    background: transparent;
}

.material-tab {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 4px 8px;
    border: 0;
    border-radius: 0;
    color: var(--muted);
    background: transparent;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    transition:
        color 180ms var(--motion),
        transform 180ms var(--motion);
}

.material-tab::after {
    content: "";
    position: absolute;
    left: 22%;
    right: 22%;
    bottom: 0;
    height: 2px;
    border-radius: 999px;
    background: transparent;
    transform: scaleX(0.7);
    transition:
        background 180ms var(--motion),
        transform 180ms var(--motion);
}

.material-tab:active {
    transform: scale(0.985);
}

.material-tab.is-active {
    color: var(--brand);
}

.material-tab.is-active::after {
    background: var(--brand-active);
    transform: scaleX(1);
}

.material-content {
    margin-top: 6px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.material-content:not(.hidden) {
    animation: detailOpen 240ms var(--motion) both;
}

.rich-content {
    color: var(--body);
    font-size: 15px;
    line-height: 1.8;
    word-break: break-word;
}

.rich-content:empty::before {
    content: "暂无内容";
    color: var(--muted);
}

.rich-content img,
.rich-content video {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.rich-content p + p {
    margin-top: 8px;
}

/* —— 官方联系 —— */

.contact-body {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.contact-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    color: var(--brand);
    background: var(--brand-soft);
    box-shadow: inset 0 0 0 1px rgba(12, 107, 84, 0.14);
}

.contact-icon .icon {
    width: 20px;
    height: 20px;
}

.contact-body p {
    color: var(--body);
    font-size: 13px;
    line-height: 1.6;
}

.service-phone {
    display: inline-block;
    margin-top: 6px;
    color: var(--brand);
    font-size: 19px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-decoration: none;
}

.page-footer {
    display: grid;
    grid-template-columns: 40px auto 40px;
    gap: 6px 12px;
    align-items: center;
    justify-content: center;
    margin: 26px 0 4px;
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}

.page-footer span {
    height: 1px;
    background: linear-gradient(90deg, transparent, #C8D2CB);
}

.page-footer span:last-of-type {
    background: linear-gradient(90deg, #C8D2CB, transparent);
}

.page-footer small {
    grid-column: 1 / -1;
    color: #9AA6A0;
    font-size: 11px;
    letter-spacing: 0.5px;
}

/* —— 加载态:深色官方底幕 —— */

.skeleton-card {
    display: none;
}

.is-loading .skeleton-card {
    position: fixed;
    inset: 0;
    z-index: 20;
    width: 100vw;
    max-width: none;
    display: grid;
    place-items: start center;
    margin: 0;
    padding: max(96px, env(safe-area-inset-top)) 22px 24px;
    border: 0;
    border-radius: 0;
    background:
        radial-gradient(120% 90% at 50% -24%, rgba(233, 200, 127, 0.14), transparent 56%),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 9px),
        var(--hero);
    box-shadow: none;
}

.is-loading .result-card {
    display: none;
}

.loading-box {
    position: relative;
    display: grid;
    justify-items: center;
    width: min(360px, calc(100vw - 44px));
    padding: 30px 22px 24px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 22px;
    color: #fff;
    background: rgba(4, 34, 27, 0.42);
    box-shadow: 0 24px 60px rgba(1, 16, 12, 0.36);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    text-align: center;
    animation: resultIn 560ms var(--motion) both;
}

.loading-orbit {
    position: relative;
    display: grid;
    place-items: center;
    width: 82px;
    height: 82px;
    margin-bottom: 16px;
}

.loading-orbit::before,
.loading-orbit::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.loading-orbit::after {
    inset: 8px;
    border-color: transparent;
    border-top-color: var(--gold);
    border-right-color: rgba(217, 179, 108, 0.36);
    animation: spin 1s linear infinite;
}

.loading-orbit span {
    position: absolute;
    inset: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
}

.loading-orbit i {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(150deg, #12866A 0%, #0A4A3C 100%);
    font-style: normal;
    font-size: 20px;
    font-weight: 800;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        0 14px 28px rgba(1, 16, 12, 0.34);
}

.loading-box strong {
    color: #fff;
    font-size: 17px;
    font-weight: 700;
}

.loading-box p {
    margin-top: 7px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
    line-height: 1.5;
}

.loading-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
    margin-top: 18px;
}

.loading-steps span {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 34px;
    padding: 6px 4px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.78);
    background: rgba(255, 255, 255, 0.06);
    font-size: 12px;
    font-weight: 600;
    animation: loadingStep 1.8s ease-in-out infinite;
}

.loading-steps span:nth-child(2) {
    animation-delay: 0.25s;
}

.loading-steps span:nth-child(3) {
    animation-delay: 0.5s;
}

.loading-box em {
    margin-top: 16px;
    color: rgba(255, 255, 255, 0.52);
    font-style: normal;
    font-size: 12px;
}

.location-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    margin-top: 18px;
}

.location-actions button {
    min-height: 42px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.location-retry {
    border: 0;
    color: var(--gold-ink);
    background: linear-gradient(180deg, #EFDCA9 0%, #D9B36C 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.55),
        0 6px 14px rgba(1, 16, 12, 0.30);
}

.location-continue {
    border: 1px solid rgba(255, 255, 255, 0.30);
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.location-actions .location-retry:only-child {
    grid-column: 1 / -1;
}

.location-actions.is-single {
    grid-template-columns: 1fr;
}

.is-location-error .loading-orbit::after {
    animation: none;
    border-color: rgba(239, 68, 68, 0.85);
}

.is-location-error .loading-orbit i {
    background: linear-gradient(135deg, #B42318, #EF4444);
}

.is-location-error .loading-steps {
    display: none;
}

.is-slow-loading .loading-box em {
    color: var(--gold-soft);
}

/* —— 验证记录弹层 —— */

body.has-verification-history-open {
    overflow: hidden;
}

.verification-history-modal {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: grid;
    align-items: end;
}

.verification-history-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(4, 24, 19, 0.52);
    backdrop-filter: blur(3px);
}

.verification-history-sheet {
    position: relative;
    z-index: 1;
    width: min(100%, 750px);
    max-height: 72vh;
    margin: 0 auto;
    padding: 24px 18px max(20px, env(safe-area-inset-bottom));
    overflow: hidden;
    border-radius: 20px 20px 0 0;
    background: #fff;
    box-shadow: 0 -18px 48px rgba(4, 24, 19, 0.20);
    animation: verificationSheetIn 280ms var(--motion) both;
}

.verification-history-sheet::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 50%;
    width: 36px;
    height: 4px;
    border-radius: 999px;
    background: #E0E5E1;
    transform: translateX(-50%);
}

.verification-history-sheet > header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.verification-history-sheet > header h2 {
    color: var(--text);
    font-size: 19px;
    line-height: 1.35;
}

.verification-history-sheet > header p {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
}

.verification-history-close {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: var(--body);
    background: #F1F4F2;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.verification-history-list {
    max-height: calc(72vh - 152px);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.verification-history-state {
    padding: 34px 12px;
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}

.verification-history-more {
    width: 100%;
    margin-top: 8px;
    padding: 10px 12px;
    border: 1px solid rgba(12, 107, 84, 0.18);
    border-radius: 9px;
    color: var(--brand);
    background: var(--brand-soft);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.verification-history-more:disabled {
    cursor: default;
    opacity: 0.58;
}

.verification-history-item {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 10px;
    padding: 14px 0;
    border-bottom: 1px solid #EEF2EF;
}

.verification-history-item:last-child {
    border-bottom: 0;
}

.verification-history-index {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    color: #fff;
    background: var(--brand);
    font-size: 11px;
    font-weight: 700;
}

.verification-history-item header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.verification-history-item strong {
    color: var(--text);
    font-size: 14px;
}

.verification-history-item time {
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 12px;
}

.verification-history-item p {
    margin-top: 5px;
    color: var(--body);
    font-size: 13px;
    line-height: 1.55;
    word-break: break-word;
}

.toast {
    position: fixed;
    left: 50%;
    top: 50%;
    z-index: 10;
    max-width: calc(100% - 32px);
    transform: translate(-50%, -50%);
    padding: 12px 16px;
    border-radius: 12px;
    color: #fff;
    background: rgba(9, 28, 22, 0.90);
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.hidden {
    display: none !important;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes verificationSheetIn {
    from {
        opacity: 0;
        transform: translate3d(0, 28px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translate3d(0, -10px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translate3d(0, 18px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes resultIn {
    from {
        opacity: 0;
        transform: translate3d(0, 16px, 0) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
}

@keyframes iconPop {
    from {
        opacity: 0;
        transform: scale(0.82);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes stampIn {
    from {
        opacity: 0;
        transform: rotate(5deg) scale(1.5);
    }
    to {
        opacity: 1;
        transform: rotate(5deg) scale(1);
    }
}

/* 盖章动作:重落、微回弹 */
@keyframes sealStamp {
    0% {
        opacity: 0;
        transform: rotate(-12deg) scale(1.9);
    }
    58% {
        opacity: 1;
        transform: rotate(-12deg) scale(0.93);
    }
    80% {
        transform: rotate(-12deg) scale(1.05);
    }
    100% {
        opacity: 1;
        transform: rotate(-12deg) scale(1);
    }
}

@keyframes loadingStep {
    0%,
    100% {
        color: rgba(255, 255, 255, 0.78);
        background: rgba(255, 255, 255, 0.06);
    }
    42% {
        color: var(--gold-ink);
        background: var(--gold-soft);
    }
}

@keyframes badgePop {
    from {
        opacity: 0;
        transform: translateY(-4px) scale(0.92);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes badgeDot {
    0% {
        box-shadow: 0 0 0 0 rgba(14, 130, 102, 0.32);
    }
    100% {
        box-shadow: 0 0 0 8px rgba(14, 130, 102, 0);
    }
}

@keyframes rowIn {
    from {
        opacity: 0;
        transform: translate3d(0, 8px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes detailOpen {
    from {
        opacity: 0;
        transform: translate3d(0, -6px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@media (max-width: 640px) {
    .verify-page {
        padding-left: 14px;
        padding-right: 14px;
    }

    .result-card {
        padding: 17px 14px 14px;
    }

    .verification-history-entry {
        width: calc(100% + 28px);
        margin: 15px -14px -14px;
    }

    .product-summary {
        grid-template-columns: 84px minmax(0, 1fr);
        gap: 13px;
    }

    .product-image {
        width: 70px;
        height: 70px;
    }

    .product-image-frame {
        width: 84px;
        height: 84px;
    }

    .product-main h3 {
        font-size: 20px;
    }

    .secret-layout {
        display: block;
    }

    .secret-actions {
        grid-template-columns: minmax(0, 1fr) 92px;
        gap: 7px;
    }

    .secret-form button {
        width: 100%;
    }
}

@media (max-width: 420px) {
    .card,
    .skeleton-card {
        width: calc(100vw - 28px);
        padding: 16px;
    }

    .result-content {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 10px;
    }

    .result-icon {
        width: 42px;
        height: 42px;
    }

    .result-icon .icon {
        width: 22px;
        height: 22px;
    }

    .result-copy h2 {
        font-size: 18px;
    }

    .verdict-seal {
        top: 14px;
        right: 8px;
        width: 84px;
        height: 84px;
    }

    .verdict-seal b {
        padding-left: 6px;
        font-size: 23px;
        letter-spacing: 6px;
    }

    .has-seal .result-head {
        min-height: 88px;
        padding-right: 84px;
    }

    .verify-steps {
        padding: 0;
    }

    .verify-step {
        gap: 3px;
        padding: 0 2px;
    }

    .verify-step span {
        width: 16px;
        height: 16px;
        font-size: 10px;
    }

    .verify-step strong {
        font-size: 10px;
    }

    .info-item {
        min-height: 36px;
        padding: 8px 0;
    }

    .info-item dd {
        font-size: 13px;
    }

    .loading-steps {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
