:root {
    color-scheme: light;
    --ink: #131c35;
    --muted: #536079;
    --line: #dce2ee;
    --paper: #f6f8fc;
    --white: #fff;
    --indigo: #334477;
    --midnight: #131b37;
    --mint: #97f0c8;
    --focus: #186e54;
    font-family: "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
    font-size: 100%;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); line-height: 1.65; }
a { color: var(--indigo); text-underline-offset: .2em; }
a:hover { color: var(--focus); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 3px solid var(--focus); outline-offset: 3px;
}
h1, h2, h3 { line-height: 1.22; margin: 0; }
p { margin: 0; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button:disabled { cursor: default; }
code { overflow-wrap: anywhere; }
.shell { width: min(73rem, calc(100% - 3rem)); margin-inline: auto; }
.skip { position: fixed; top: .75rem; left: .75rem; background: var(--white); padding: .75rem; z-index: 5; transform: translateY(-200%); }
.skip:focus { transform: none; }

.site-header { border-bottom: 1px solid var(--line); background: var(--white); }
.header-layout { min-height: 5rem; display: flex; align-items: center; justify-content: space-between; gap: 1.65rem; }
.brand { display: inline-flex; align-items: center; gap: .75rem; color: var(--ink); text-decoration: none; font-weight: 820; font-size: 1.2rem; white-space: nowrap; }
.brand-icon { width: 2.45rem; height: 2.6rem; position: relative; flex: none; }
.brand-icon::before, .brand-icon::after { content: ""; position: absolute; }
.brand-icon::before {
    inset: 0;
    clip-path: polygon(50% 2%, 93% 18%, 93% 59%, 78% 79%, 50% 98%, 22% 79%, 7% 59%, 7% 18%);
    background: var(--indigo);
}
.brand-icon::after {
    inset: 26% 29% 21%;
    clip-path: polygon(50% 0, 100% 33%, 100% 67%, 50% 100%, 0 67%, 0 33%);
    background: var(--mint);
}
.nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2rem); margin-left: auto; }
.nav a { color: var(--muted); font-weight: 600; text-decoration: none; white-space: nowrap; }
.nav a:hover { color: var(--focus); }
.button {
    min-height: 2.85rem;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: .63rem 1.14rem;
    border-radius: .7rem;
    border: 1px solid var(--indigo);
    background: var(--indigo);
    color: var(--white);
    font-weight: 720;
    line-height: 1.4;
    text-decoration: none;
    text-align: center;
}
.button:hover { background: #283661; color: var(--white); }
.button.outline { color: var(--indigo); background: var(--white); border-color: #b8c4dd; }
.button.outline:hover { border-color: var(--indigo); background: #eef2fa; }
.button.mint { background: var(--mint); color: #14283a; border-color: var(--mint); }
.button.mint:hover { background: #bdffdf; }
.button.glass { color: var(--white); border-color: #8595bc; background: #202c50; }
.button.glass:hover { background: #2c3c66; }
.button:disabled { color: #515a70; background: #e4e8f2; border-color: #e4e8f2; }
.header-action { flex: none; }

.home { padding-block: clamp(1.2rem, 3.8vw, 3rem) 4rem; }
.hero {
    min-height: 29rem;
    position: relative;
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    isolation: isolate;
    align-items: center;
    overflow: hidden;
    border-radius: 1.65rem;
    background: linear-gradient(105deg, #141c38 13%, #1b2a51 100%);
    color: var(--white);
}
.hero-content { padding: clamp(1.5rem, 5.4vw, 4.5rem); padding-right: 0; z-index: 1; }
.hero-company { font-weight: 650; color: var(--mint); margin-bottom: 1.15rem; }
.hero h1 { font-size: clamp(2.25rem, 5vw, 4.1rem); line-height: 1.13; letter-spacing: -.035em; font-weight: 850; }
.hero-description { margin: 1.15rem 0 1.5rem; color: #dbe3f8; max-width: 33rem; font-size: 1.075rem; }
.actions { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; }
.hero-note { color: #c1cce7; font-size: .875rem; margin-top: 1.05rem; }
.hero-visual {
    position: absolute;
    inset: 0 0 0 53%;
    display: grid;
    place-items: center;
    color: #83e4c0;
    background: radial-gradient(ellipse at 64% 47%, #334d75 0, #233558 35%, #172341 68%, transparent 79%);
}
.hero-visual::before {
    content: "";
    position: absolute;
    inset: 8% 0 10% 5%;
    background: repeating-radial-gradient(ellipse at 62% 49%, transparent 0 2.6rem, #9db8e11b 2.62rem 2.68rem);
    mask-image: radial-gradient(ellipse, black 34%, transparent 78%);
}
.shield-art {
    position: relative;
    aspect-ratio: 1;
    width: min(69%, 20rem);
    margin: -4% 0 0 8%;
    filter: drop-shadow(0 1.3rem 1.1rem #0d152e);
}
.shield-outline, .shield-face, .shield-center { position: absolute; }
.shield-outline, .shield-face {
    clip-path: polygon(50% 0, 91% 16%, 91% 57%, 77% 78%, 50% 100%, 23% 78%, 9% 57%, 9% 16%);
}
.shield-outline {
    inset: 2% 4%;
    background: linear-gradient(135deg, #d3e2ff, #7085b6 25%, #293b70 55%, #6ed6b7 97%);
}
.shield-face {
    inset: 4% 6%;
    background: linear-gradient(135deg, #495e8a, #2a3c68 53%, #1b294e 54%, #182442);
}
.shield-face::after {
    position: absolute;
    content: "";
    inset: 11% 14%;
    border: 1px solid #c6d9fd65;
    transform: rotate(45deg);
}
.shield-center {
    inset: 35% 37% 39%;
    transform: rotate(45deg);
    background: linear-gradient(140deg, #d2ffec, #79e6bc);
    border-radius: .35rem;
    box-shadow: 0 0 3rem #92f8c88a;
}

.section { margin-top: clamp(2.35rem, 5vw, 4.25rem); }
.section-head { display: flex; gap: .85rem; align-items: end; justify-content: space-between; margin-bottom: 1.3rem; }
.section-head h2, .contact-band h2 { font-size: clamp(1.65rem, 3vw, 2.3rem); }
.section-head p { color: var(--muted); margin-top: .4rem; }
.surface { background: var(--white); border: 1px solid var(--line); border-radius: 1.05rem; padding: clamp(1.1rem, 2.8vw, 2rem); box-shadow: 0 7px 20px #202f5607; }
.service-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.service { display: flex; flex-direction: column; align-items: start; gap: .85rem; padding: 1.45rem; min-width: 0; }
.service h2, .service h3 { font-size: 1.16rem; }
.service p { color: var(--muted); }
.service .button, .service a:last-child { margin-top: auto; }
.service a:last-child { font-weight: 700; }
.process-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.5rem; }
.process-grid article { border-top: 2px solid #bac8e4; padding-top: 1rem; }
.process-grid h3 { margin-bottom: .55rem; font-size: 1.17rem; }
.process-grid p { color: var(--muted); }
.contact-band {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    background: #eaf1fb;
    border-radius: 1.05rem;
    padding: clamp(1.25rem, 3.5vw, 2.4rem);
}
.contact-band p { margin-top: .5rem; color: var(--muted); }
.contact-links { display: flex; flex-wrap: wrap; gap: .65rem; }
.callout { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1.5rem; background: #eaf1fb; padding: 1.4rem; border-radius: 1rem; }
.callout p { color: var(--muted); margin-top: .3rem; }

.inner { padding-block: clamp(1.5rem, 5vw, 4rem); min-height: 57vh; }
.page-title { margin-bottom: 1.7rem; }
.page-title h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); letter-spacing: -.025em; }
.page-title p { margin-top: .65rem; color: var(--muted); }
.checkout-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(15rem, 1fr); gap: 1.25rem; align-items: start; }
.order-form h2 { font-size: 1.35rem; margin-bottom: 1rem; }
.order-form h2:not(:first-of-type) { margin-top: 1.25rem; }
.field { display: grid; gap: .4rem; margin-bottom: 1rem; font-weight: 650; }
.field input, .field select, .field textarea {
    width: 100%;
    min-height: 2.85rem;
    padding: .63rem .78rem;
    color: var(--ink);
    background: #fafbfe;
    border: 1px solid #c8d2e7;
    border-radius: .55rem;
    font-weight: 450;
}
.field select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #536079 50%), linear-gradient(135deg, #536079 50%, transparent 50%);
    background-position: calc(100% - 18px) 51%, calc(100% - 13px) 51%;
    background-size: 5px 5px;
    background-repeat: no-repeat;
    padding-right: 2rem;
}
.field textarea { resize: vertical; }
.field-grid { display: grid; gap: .9rem; grid-template-columns: repeat(2, minmax(0,1fr)); }
.hp-field { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.channels { padding: 0; border: 0; margin: .55rem 0 1rem; min-width: 0; display: grid; gap: .65rem; grid-template-columns: repeat(2, minmax(0,1fr)); }
.channels legend { font-weight: 720; margin-bottom: .55rem; }
.channels label, .payment-grid > div { border: 1px solid var(--line); background: #f7f9fe; border-radius: .65rem; padding: .7rem; display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; }
.channels label:has(input:checked), .payment-grid .selected { border-color: #5067aa; background: #eef1fc; }
.channels label span { font-weight: 700; }
.channels small, .submit-note { color: var(--muted); font-size: .875rem; }
input[type=radio], input[type=checkbox] { accent-color: var(--indigo); width: 1rem; height: 1rem; margin: 0; flex: none; }
.consent { display: flex; gap: .65rem; align-items: start; margin-block: 1.35rem 1rem; }
.consent input { margin-top: .35rem; }
.order-form .button { width: 100%; }
.submit-note { margin-top: .65rem; text-align: center; }
.summary h2 { font-size: 1.35rem; }
.summary p { color: var(--muted); margin-top: .7rem; }
.summary-total { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem; padding-block: .85rem; border-block: 1px solid var(--line); margin-block: 1rem; }
.summary-total strong { color: var(--indigo); overflow-wrap: anywhere; }
.contact-stack { margin-top: 1.25rem; display: grid; gap: .4rem; overflow-wrap: anywhere; }
.contact-stack h3 { font-size: 1.05rem; }
.message { border-radius: .7rem; background: #edf6ff; padding: .75rem 1rem; margin-block: .85rem; }
.message.error { color: #80242a; background: #ffeaeb; }
.notice-page { padding-block: 2rem; }
.notice-page .button, .prose > .button { margin-top: 1rem; }
.notice-page p, .prose p { margin-top: .6rem; color: var(--muted); }
.prose { max-width: 54rem; }
.prose h2 { font-size: 1.26rem; }
.prose h2:not(:first-child) { margin-top: 1.45rem; }

.order-top, .order-list-item { display: flex; align-items: start; justify-content: space-between; gap: 1.15rem; overflow-wrap: anywhere; }
.order-top h2, .order-list-item h2 { margin-top: .65rem; font-size: clamp(1.22rem, 3.3vw, 1.62rem); }
.order-top p, .order-list-item p { color: var(--muted); margin-top: .45rem; }
.status { display: inline-block; background: #e9f1fe; color: #31497d; font-size: .875rem; line-height: 1.45; padding: .35rem .55rem; border-radius: .45rem; font-weight: 725; }
.status.cancelled { background: #edf0f5; color: var(--muted); }
.total { display: grid; justify-items: end; gap: .25rem; }
.total span, .detail-grid dt { color: var(--muted); }
.total strong { color: var(--indigo); font-variant-numeric: tabular-nums; font-size: clamp(1.45rem, 4.5vw, 2.25rem); white-space: nowrap; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; border-top: 1px solid var(--line); margin: 1.3rem 0 0; padding-top: 1.25rem; overflow-wrap: anywhere; }
.detail-grid dd { margin: .25rem 0 0; }
.detail-grid .wide { grid-column: 1 / -1; }
.payment-panel, .order-list-item { margin-top: 1rem; }
.payment-panel h2 { font-size: 1.3rem; margin-bottom: .85rem; }
.payment-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.payment-grid > div { justify-content: space-between; }
.payment-grid span { font-size: .875rem; color: var(--muted); }
.order-actions { display: flex; align-items: center; flex-wrap: wrap; margin-top: 1rem; gap: .9rem; }
.text-button { background: none; border: 0; color: var(--indigo); padding: .7rem; text-decoration: underline; }
.help-line { margin-top: .8rem; color: var(--muted); }

.footer { padding: 2rem 0 1.45rem; border-top: 1px solid var(--line); background: var(--white); }
.footer-top { display: flex; justify-content: space-between; gap: 1.5rem; padding-bottom: 1.35rem; }
.footer-name { font-weight: 750; }
.footer-contact { display: flex; gap: .9rem; flex-wrap: wrap; margin-top: .5rem; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: end; align-content: start; gap: .65rem 1rem; }
.footer-bottom { border-top: 1px solid var(--line); padding-top: .95rem; font-size: .875rem; display: flex; flex-wrap: wrap; gap: .4rem .95rem; color: var(--muted); }

@media (max-width: 58rem) {
    .header-layout { gap: .9rem; }
    .header-action { display: none; }
    .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero-content { padding-right: 1rem; }
    .contact-band { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 43rem) {
    .shell { width: calc(100% - 1.75rem); }
    .header-layout { flex-wrap: wrap; justify-content: flex-start; padding-block: .65rem .8rem; gap: .7rem; }
    .nav { width: 100%; margin: 0; justify-content: space-between; gap: .5rem; font-size: .875rem; }
    .hero { grid-template-columns: 1fr; min-height: auto; border-radius: 1.1rem; }
    .hero-content { padding: 1.45rem 1.15rem 1.3rem; }
    .hero-company { font-size: .93rem; }
    .hero-visual { position: relative; inset: auto; min-height: 10rem; }
    .shield-art { width: min(43%, 10rem); margin: -1.4rem 0 1rem; }
    .service { padding: 1rem; }
    .service h2, .service h3 { font-size: 1.04rem; }
    .service p { font-size: .93rem; }
    .process-grid, .checkout-layout { grid-template-columns: 1fr; gap: 1rem; }
    .section-head, .callout, .footer-top, .order-top, .order-list-item { align-items: start; flex-direction: column; }
    .footer-nav { justify-content: start; }
    .total { justify-items: start; }
}

@media (max-width: 24rem) {
    .field-grid, .channels { grid-template-columns: 1fr; }
    .hero .button { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
