:root {
    --ink: #18142b;
    --ink-2: #4b4660;
    --muted: #77718a;
    --line: #e8e3f1;
    --paper: #ffffff;
    --canvas: #fffaf4;
    --sun: #ffcf45;
    --peach: #ff8361;
    --berry: #ff5d8f;
    --violet: #7c4dff;
    --teal: #00a89d;
    --blue: #2f7cf6;
    --green: #49c37c;
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--canvas);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 16px;
    line-height: 1.55;
    letter-spacing: 0;
}

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

img {
    display: block;
    max-width: 100%;
}

.container {
    width: min(100% - 40px, 1180px);
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
}

.header-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    background: var(--berry);
    color: #fff;
    font-size: 22px;
    font-weight: 900;
    transform: rotate(-5deg);
}

.header-brand-mark {
    background: var(--sun);
    color: var(--ink);
}

.brand strong,
.brand small {
    display: block;
    line-height: 1.15;
}

.brand strong {
    font-size: 18px;
}

.brand small {
    color: var(--muted);
    font-size: 11px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    margin-left: auto;
}

.main-nav a {
    color: var(--ink-2);
    font-weight: 800;
    font-size: 14px;
}

.main-nav a:hover {
    color: var(--peach);
}

.header-cta {
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    background: var(--violet);
    color: #fff;
    font-weight: 800;
    box-shadow: 0 7px 0 rgba(124, 77, 255, 0.2);
}

.header-cta:active {
    transform: translateY(2px);
    box-shadow: 0 3px 0 rgba(124, 77, 255, 0.2);
}

.menu-button {
    display: none;
    border: 2px solid var(--ink);
    background: var(--sun);
    border-radius: 999px;
    min-height: 40px;
    padding: 0 16px;
    color: var(--ink);
    font-weight: 800;
}

.hero {
    position: relative;
    padding: 78px 0 96px;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    right: -100px;
    top: -90px;
    width: 340px;
    height: 340px;
    border-radius: 46px;
    background: var(--berry);
    transform: rotate(18deg);
    opacity: 0.95;
}

.hero::after {
    content: "";
    position: absolute;
    left: -70px;
    bottom: -100px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: var(--teal);
    opacity: 0.25;
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 62px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--violet);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0;
}

.eyebrow::before {
    content: "";
    width: 26px;
    height: 10px;
    border-radius: 99px;
    background: var(--sun);
}

.hero-copy h1 {
    margin: 18px 0 18px;
    font-size: clamp(40px, 6vw, 70px);
    line-height: 0.98;
    letter-spacing: 0;
}

.hero-copy h1 .hl-peach {
    color: var(--peach);
}

.hero-copy h1 .hl-violet {
    color: var(--violet);
}

.hero-copy p {
    max-width: 560px;
    margin: 0 0 28px;
    color: var(--ink-2);
    font-size: 18px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.button {
    min-height: 50px;
    padding: 0 24px;
    border: 3px solid var(--ink);
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
}

.button-accent {
    background: var(--peach);
    color: #fff;
    box-shadow: 7px 7px 0 var(--ink);
}

.button-ghost {
    background: var(--sun);
    color: var(--ink);
    box-shadow: 7px 7px 0 var(--ink);
}

.button:active {
    transform: translate(4px, 4px);
    box-shadow: 0 0 0 var(--ink);
}

.hero-visual {
    position: relative;
    transform: rotate(1.5deg);
}

.hero-visual::after {
    content: "H5 商城 · 支付 · 上线";
    position: absolute;
    left: -18px;
    top: -20px;
    padding: 7px 12px;
    border: 3px solid var(--ink);
    border-radius: 999px;
    background: var(--sun);
    font-size: 12px;
    font-weight: 900;
    transform: rotate(-4deg);
}

.browser-window {
    overflow: hidden;
    border: 4px solid var(--ink);
    border-radius: 18px;
    background: #fff;
    box-shadow: 13px 13px 0 var(--violet);
}

.browser-bar {
    height: 46px;
    padding: 0 15px;
    display: flex;
    align-items: center;
    gap: 7px;
    border-bottom: 3px solid var(--ink);
    background: #f6f3ff;
}

.browser-bar i {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--berry);
}

.browser-bar i:nth-child(2) {
    background: var(--sun);
}

.browser-bar i:nth-child(3) {
    background: var(--green);
}

.browser-bar span {
    margin-left: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.browser-window img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.strip {
    background: var(--violet);
    color: #fff;
}

.strip-grid {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    font-size: 14px;
    font-weight: 900;
}

.section {
    padding: 90px 0;
}

.section-alt {
    background: #eef8ff;
}

.section-head {
    max-width: 720px;
    margin: 0 auto 44px;
    text-align: center;
}

.section-head h2 {
    margin: 12px 0 10px;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.1;
    letter-spacing: 0;
}

.section-head p {
    color: var(--muted);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.service-card {
    position: relative;
    min-height: 220px;
    padding: 26px;
    overflow: hidden;
    border: 3px solid var(--ink);
    border-radius: var(--radius);
    background: #fff;
    transition: transform 0.15s ease;
}

.service-card:hover {
    transform: translate(-5px, -5px);
    box-shadow: 8px 8px 0 var(--ink);
}

.service-card:nth-child(1) {
    background: var(--sun);
}

.service-card:nth-child(2) {
    background: #d7f6ef;
}

.service-card:nth-child(3) {
    background: #ffe5ed;
}

.service-card:nth-child(4) {
    background: #e2daff;
}

.service-card:nth-child(5) {
    background: #d9eaff;
}

.service-card:nth-child(6) {
    background: #d9f5d5;
}

.service-card span {
    font-size: 13px;
    font-weight: 900;
}

.service-card h3 {
    margin: 18px 0 10px;
    font-size: 23px;
}

.service-card p {
    margin: 0;
    color: var(--ink-2);
}

.service-card::after {
    content: "";
    position: absolute;
    right: -32px;
    bottom: -32px;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
}

.case-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.case-card {
    overflow: hidden;
    border: 3px solid var(--ink);
    border-radius: 20px;
    background: #fff;
    transition: transform 0.15s ease;
}

.case-card:hover {
    transform: rotate(0.5deg) translateY(-5px);
    box-shadow: 10px 10px 0 var(--peach);
}

.case-media img {
    width: 100%;
    aspect-ratio: 2 / 1;
    object-fit: cover;
}

.case-code {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--blue);
    color: #fff;
}

.case-code span {
    font-size: 66px;
    font-weight: 900;
}

.case-code i {
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.8);
    font-style: normal;
    font-weight: 700;
}

.case-body {
    padding: 24px;
}

.case-body span {
    display: inline-flex;
    padding: 4px 9px;
    border-radius: 999px;
    background: var(--sun);
    color: var(--ink);
    font-size: 12px;
    font-weight: 900;
}

.case-body h3 {
    margin: 12px 0 8px;
    font-size: 24px;
}

.case-body p {
    margin: 0 0 18px;
    color: var(--muted);
}

.case-body b {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--peach);
    font-size: 14px;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.process-grid div {
    position: relative;
    padding: 24px;
    border: 3px solid var(--ink);
    border-radius: 18px;
    background: #fff;
}

.process-grid div:nth-child(1) {
    background: var(--sun);
}

.process-grid div:nth-child(2) {
    background: #c5f4ee;
}

.process-grid div:nth-child(3) {
    background: #ffd8e2;
}

.process-grid div:nth-child(4) {
    background: #e5ddff;
}

.process-grid span {
    width: 40px;
    height: 40px;
    border: 3px solid var(--ink);
    border-radius: 13px;
    display: grid;
    place-items: center;
    background: #fff;
    font-weight: 900;
    transform: rotate(-5deg);
}

.process-grid strong {
    display: block;
    margin: 16px 0 8px;
    font-size: 20px;
}

.process-grid p {
    margin: 0;
    color: var(--ink-2);
}

.section-contact {
    padding: 80px 0 100px;
}

.contact-card {
    position: relative;
    padding: 44px;
    overflow: hidden;
    border: 3px solid var(--ink);
    border-radius: 24px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    background: var(--berry);
    color: #fff;
    box-shadow: 12px 12px 0 var(--sun);
    flex-wrap: wrap;
}

.contact-card::before,
.contact-card::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.contact-card::before {
    width: 160px;
    height: 160px;
    right: 20%;
    bottom: -60px;
}

.contact-card::after {
    width: 80px;
    height: 80px;
    left: 22%;
    top: -25px;
}

.contact-card > * {
    position: relative;
    z-index: 1;
}

.contact-card .eyebrow {
    color: #fff;
}

.contact-card .eyebrow::before {
    background: var(--sun);
}

.contact-card h2 {
    margin: 12px 0 8px;
    font-size: clamp(28px, 4vw, 42px);
}

.contact-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
}

.contact-info {
    text-align: right;
}

.contact-info a,
.contact-info span {
    display: block;
}

.contact-info a {
    font-size: 24px;
    font-weight: 900;
}

.contact-info span {
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.78);
}

.contact-qr {
    display: flex;
    gap: 14px;
}

.qr-item {
    width: 118px;
    padding: 8px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 5px 5px 0 rgba(24, 20, 43, 0.2);
}

.qr-item img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
}

.qr-item span {
    display: block;
    margin-top: 6px;
    color: var(--ink);
    font-size: 12px;
    font-weight: 800;
    text-align: center;
}

.site-footer {
    background: var(--ink);
    color: #fff;
}

.footer-inner {
    padding: 44px 0 26px;
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 30px;
}

.footer-brand .brand-mark {
    background: var(--peach);
}

.footer-brand strong {
    color: #fff;
}

.footer-brand small {
    color: rgba(255, 255, 255, 0.65);
}

.footer-inner p {
    margin: 14px 0 0;
    color: rgba(255, 255, 255, 0.72);
}

.footer-links {
    display: flex;
    gap: 22px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.84);
    font-weight: 800;
}

.footer-bottom {
    padding: 16px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 13px;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.55);
}

.footer-bottom a:hover {
    color: #fff;
}

@media (max-width: 920px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .process-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .main-nav,
    .header-cta {
        display: none;
    }

    .menu-button {
        display: inline-flex;
        margin-left: auto;
    }

    .main-nav.open {
        position: fixed;
        inset: 76px 0 auto 0;
        z-index: 10;
        padding: 12px 22px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        background: #fff;
        border-bottom: 3px solid var(--ink);
        box-shadow: 0 22px 40px rgba(24, 20, 43, 0.14);
    }

    .main-nav.open a {
        padding: 10px 0;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(100% - 24px, 1180px);
    }

    .hero {
        padding: 48px 0 70px;
    }

    .hero::before {
        width: 180px;
        height: 180px;
    }

    .hero-copy h1 {
        font-size: 42px;
    }

    .hero-visual::after {
        display: none;
    }

    .service-grid,
    .case-grid,
    .process-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 58px 0;
    }

    .contact-card {
        padding: 28px;
        flex-direction: column;
        align-items: flex-start;
    }

    .contact-info {
        text-align: left;
    }

    .contact-qr {
        width: 100%;
        justify-content: flex-start;
    }

    .footer-inner {
        flex-direction: column;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }
}
