/* NexPay — 原创首页模板 */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/assets/fonts/inter/inter-400.ttf') format('truetype');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/assets/fonts/inter/inter-600.ttf') format('truetype');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/assets/fonts/inter/inter-700.ttf') format('truetype');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('/assets/fonts/inter/inter-700.ttf') format('truetype');
}

:root {
    --nx-bg: #070b14;
    --nx-bg-elevated: #0f1629;
    --nx-card: rgba(255, 255, 255, .04);
    --nx-border: rgba(255, 255, 255, .08);
    --nx-text: #f1f5f9;
    --nx-muted: #94a3b8;
    --nx-accent: #22d3ee;
    --nx-accent-2: #6366f1;
    --nx-glow: rgba(34, 211, 238, .35);
    --nx-radius: 16px;
    --nx-font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --nx-max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body.nx-body {
    font-family: var(--nx-font);
    background: var(--nx-bg);
    color: var(--nx-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.nx-body a { color: inherit; text-decoration: none; }

.nx-noise {
    pointer-events: none;
    position: fixed;
    inset: 0;
    opacity: .035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    z-index: 0;
}

.nx-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

.nx-orb--1 {
    width: 520px;
    height: 520px;
    top: -180px;
    right: -120px;
    background: radial-gradient(circle, rgba(99, 102, 241, .45), transparent 70%);
}

.nx-orb--2 {
    width: 420px;
    height: 420px;
    bottom: 10%;
    left: -140px;
    background: radial-gradient(circle, rgba(34, 211, 238, .28), transparent 70%);
}

.nx-wrap {
    position: relative;
    z-index: 1;
    width: min(100% - 40px, var(--nx-max));
    margin-inline: auto;
}

/* Header */
.nx-header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(16px);
    background: rgba(7, 11, 20, .72);
    border-bottom: 1px solid var(--nx-border);
}

.nx-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    gap: 20px;
}

.nx-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 17px;
    letter-spacing: -.02em;
}

.nx-brand img,
.nx-brand__logo {
    height: 36px;
    width: 36px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.nx-brand__mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--nx-accent), var(--nx-accent-2));
    display: grid;
    place-items: center;
    font-size: 18px;
    font-weight: 800;
    color: #041018;
    box-shadow: 0 8px 24px var(--nx-glow);
}

.nx-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nx-nav a {
    font-size: 14px;
    color: var(--nx-muted);
    transition: color .2s;
}

.nx-nav a:hover { color: var(--nx-text); }

.nx-header__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .15s, box-shadow .15s, background .15s, border-color .15s;
}

.nx-btn:active { transform: scale(.98); }

.nx-btn--ghost {
    background: transparent;
    border-color: var(--nx-border);
    color: var(--nx-text);
}

.nx-btn--ghost:hover {
    border-color: rgba(255, 255, 255, .2);
    background: rgba(255, 255, 255, .04);
}

.nx-btn--primary {
    background: linear-gradient(135deg, var(--nx-accent), var(--nx-accent-2));
    color: #041018;
    box-shadow: 0 8px 28px rgba(34, 211, 238, .25);
}

.nx-btn--primary:hover {
    box-shadow: 0 12px 36px rgba(34, 211, 238, .35);
}

.nx-menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: 1px solid var(--nx-border);
    border-radius: 10px;
    background: transparent;
    color: var(--nx-text);
    cursor: pointer;
}

/* Hero */
.nx-hero {
    position: relative;
    padding: 72px 0 96px;
    overflow: hidden;
}

.nx-hero__grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 48px;
    align-items: center;
}

.nx-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 8px;
    border-radius: 999px;
    background: rgba(34, 211, 238, .08);
    border: 1px solid rgba(34, 211, 238, .22);
    color: #a5f3fc;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 22px;
}

.nx-badge__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--nx-accent);
    box-shadow: 0 0 12px var(--nx-accent);
    animation: nx-pulse 2s ease infinite;
}

@keyframes nx-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .45; }
}

.nx-hero h1 {
    font-size: clamp(36px, 5.5vw, 58px);
    line-height: 1.08;
    letter-spacing: -.03em;
    font-weight: 800;
    margin-bottom: 18px;
}

.nx-hero h1 em {
    font-style: normal;
    background: linear-gradient(90deg, #fff 0%, #a5f3fc 50%, #c4b5fd 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nx-hero__lead {
    font-size: clamp(15px, 2vw, 18px);
    color: var(--nx-muted);
    max-width: 520px;
    margin-bottom: 32px;
}

.nx-hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 36px;
}

.nx-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.nx-trust__item strong {
    display: block;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -.02em;
}

.nx-trust__item span {
    font-size: 12px;
    color: var(--nx-muted);
}

/* Hero visual — payment card mock */
.nx-visual {
    position: relative;
    min-height: 420px;
}

.nx-card-stack {
    position: relative;
    width: 100%;
    max-width: 420px;
    margin-inline: auto;
}

.nx-pay-card {
    position: relative;
    border-radius: 24px;
    padding: 28px;
    background: linear-gradient(145deg, rgba(255,255,255,.1), rgba(255,255,255,.03));
    border: 1px solid rgba(255, 255, 255, .12);
    backdrop-filter: blur(20px);
    box-shadow: 0 24px 64px rgba(0, 0, 0, .45);
}

.nx-pay-card--back {
    position: absolute;
    inset: 24px -20px -24px 20px;
    opacity: .45;
    transform: rotate(6deg);
    z-index: 0;
}

.nx-pay-card--front { z-index: 1; }

.nx-pay-card__chip {
    width: 44px;
    height: 34px;
    border-radius: 8px;
    background: linear-gradient(135deg, #fde68a, #f59e0b);
    margin-bottom: 28px;
}

.nx-pay-card__num {
    font-size: 22px;
    letter-spacing: .12em;
    font-weight: 600;
    margin-bottom: 24px;
    font-variant-numeric: tabular-nums;
}

.nx-pay-card__row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
}

.nx-pay-card__label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--nx-muted);
    margin-bottom: 4px;
}

.nx-pay-card__value {
    font-size: 14px;
    font-weight: 600;
}

.nx-float {
    position: absolute;
    padding: 12px 16px;
    border-radius: 14px;
    background: var(--nx-bg-elevated);
    border: 1px solid var(--nx-border);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .35);
    font-size: 13px;
    animation: nx-float 5s ease-in-out infinite;
}

.nx-float--ok {
    top: 12%;
    right: -8%;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nx-float--ok svg { color: #34d399; flex-shrink: 0; }

.nx-float--stat {
    bottom: 8%;
    left: -6%;
    animation-delay: -2.5s;
}

.nx-float strong {
    display: block;
    font-size: 18px;
    color: var(--nx-accent);
}

@keyframes nx-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Sections */
.nx-section {
    padding: 80px 0;
}

.nx-section__head {
    text-align: center;
    max-width: 620px;
    margin: 0 auto 48px;
}

.nx-section__head h2 {
    font-size: clamp(28px, 4vw, 38px);
    letter-spacing: -.02em;
    margin-bottom: 12px;
}

.nx-section__head p {
    color: var(--nx-muted);
    font-size: 16px;
}

.nx-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.nx-feature {
    padding: 28px 24px;
    border-radius: var(--nx-radius);
    background: var(--nx-card);
    border: 1px solid var(--nx-border);
    transition: border-color .2s, transform .2s;
}

.nx-feature:hover {
    border-color: rgba(34, 211, 238, .25);
    transform: translateY(-3px);
}

.nx-feature__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    background: rgba(99, 102, 241, .15);
    color: #c4b5fd;
}

.nx-feature:nth-child(2) .nx-feature__icon {
    background: rgba(34, 211, 238, .12);
    color: #67e8f9;
}

.nx-feature:nth-child(3) .nx-feature__icon {
    background: rgba(52, 211, 153, .12);
    color: #6ee7b7;
}

.nx-feature h3 {
    font-size: 17px;
    margin-bottom: 8px;
}

.nx-feature p {
    font-size: 14px;
    color: var(--nx-muted);
}

/* Payment methods */
.nx-pay-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.nx-pay-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px 16px;
    border-radius: var(--nx-radius);
    background: var(--nx-card);
    border: 1px solid var(--nx-border);
    text-align: center;
    transition: border-color .2s;
}

.nx-pay-item:hover { border-color: rgba(255, 255, 255, .16); }

.nx-pay-item__icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 13px;
}

.nx-pay-item__icon--ali { background: #1677ff; color: #fff; }
.nx-pay-item__icon--wx { background: #07c160; color: #fff; }
.nx-pay-item__icon--qq { background: #12b7f5; color: #fff; }
.nx-pay-item__icon--bank { background: #475569; color: #fff; }

.nx-pay-item span {
    font-size: 14px;
    font-weight: 600;
}

/* Flow */
.nx-flow {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    position: relative;
}

.nx-flow::before {
    content: '';
    position: absolute;
    top: 28px;
    left: 12%;
    right: 12%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--nx-border), var(--nx-accent), var(--nx-border), transparent);
}

.nx-step {
    text-align: center;
    padding: 0 12px;
    position: relative;
}

.nx-step__num {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 18px;
    background: var(--nx-bg-elevated);
    border: 2px solid var(--nx-border);
    position: relative;
    z-index: 1;
}

.nx-step:first-child .nx-step__num {
    border-color: rgba(34, 211, 238, .5);
    color: var(--nx-accent);
}

.nx-step h4 {
    font-size: 15px;
    margin-bottom: 6px;
}

.nx-step p {
    font-size: 13px;
    color: var(--nx-muted);
}

/* CTA */
.nx-cta {
    margin: 0 0 80px;
    padding: 56px 40px;
    border-radius: 24px;
    text-align: center;
    background: linear-gradient(135deg, rgba(99,102,241,.18), rgba(34,211,238,.1));
    border: 1px solid rgba(255, 255, 255, .1);
    position: relative;
    overflow: hidden;
}

.nx-cta h2 {
    font-size: clamp(24px, 4vw, 32px);
    margin-bottom: 12px;
    letter-spacing: -.02em;
}

.nx-cta p {
    color: var(--nx-muted);
    margin-bottom: 28px;
    max-width: 480px;
    margin-inline: auto;
}

/* Footer */
.nx-footer {
    border-top: 1px solid var(--nx-border);
    padding: 40px 0 32px;
}

.nx-footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 32px;
}

.nx-footer__brand p {
    color: var(--nx-muted);
    font-size: 14px;
    margin-top: 12px;
    max-width: 280px;
}

.nx-footer h5 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--nx-muted);
    margin-bottom: 14px;
}

.nx-footer ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nx-footer a {
    font-size: 14px;
    color: var(--nx-muted);
    transition: color .2s;
}

.nx-footer a:hover { color: var(--nx-text); }

.nx-footer__bottom {
    padding-top: 24px;
    border-top: 1px solid var(--nx-border);
    font-size: 13px;
    color: var(--nx-muted);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
}

.nx-footer__custom { width: 100%; margin-top: 8px; }

/* Mobile nav */
.nx-mobile-nav {
    display: none;
    position: fixed;
    inset: 68px 0 0;
    background: rgba(7, 11, 20, .96);
    backdrop-filter: blur(12px);
    padding: 24px;
    flex-direction: column;
    gap: 8px;
    z-index: 99;
    border-top: 1px solid var(--nx-border);
}

.nx-mobile-nav.is-open { display: flex; }

.nx-mobile-nav a {
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 16px;
    color: var(--nx-muted);
}

.nx-mobile-nav a:hover {
    background: rgba(255, 255, 255, .04);
    color: var(--nx-text);
}

@media (max-width: 960px) {
    .nx-hero__grid { grid-template-columns: 1fr; }
    .nx-visual { min-height: 360px; margin-top: 16px; }
    .nx-float--ok { right: 0; }
    .nx-float--stat { left: 0; }
    .nx-features { grid-template-columns: 1fr; }
    .nx-pay-grid { grid-template-columns: repeat(2, 1fr); }
    .nx-flow { grid-template-columns: 1fr 1fr; gap: 32px; }
    .nx-flow::before { display: none; }
    .nx-footer__grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
    .nx-nav, .nx-header__actions .nx-btn--ghost { display: none; }
    .nx-menu-toggle { display: grid; place-items: center; }
    .nx-trust { gap: 16px; }
    .nx-cta { padding: 40px 24px; }
}

@media (prefers-reduced-motion: reduce) {
    .nx-badge__dot, .nx-float { animation: none; }
    html { scroll-behavior: auto; }
}
