/* ========== XArrPay 二次元动漫首页主题 ========== */
:root {
    --c-pink: #ff7eb3;
    --c-rose: #ff5f7e;
    --c-violet: #8b5cf6;
    --c-blue: #5c8dff;
    --c-ink: #3b2b63;
    --c-sub: #7b6a9e;
    --grad-main: linear-gradient(120deg, #ff7eb3 0%, #b06bff 55%, #6ea8ff 100%);
    --grad-btn: linear-gradient(120deg, #ff7eb3, #8b5cf6);
    --grad-btn-hover: linear-gradient(120deg, #ff93c3, #9b74ff);
    --glass: rgba(255, 255, 255, 0.55);
    --glass-border: rgba(255, 255, 255, 0.7);
    --radius: 24px;
    --shadow-soft: 0 20px 50px rgba(139, 92, 246, 0.14);
    --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    color: var(--c-ink);
    min-height: 100vh;
    overflow-x: hidden;
    background:
        radial-gradient(1200px 600px at 85% -10%, rgba(255, 179, 214, 0.5), transparent 60%),
        radial-gradient(1000px 700px at -10% 20%, rgba(190, 220, 255, 0.55), transparent 60%),
        radial-gradient(900px 700px at 60% 110%, rgba(214, 190, 255, 0.5), transparent 60%),
        linear-gradient(180deg, #fdf1ff 0%, #f0f4ff 55%, #f6f0ff 100%);
    background-attachment: fixed;
}

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

/* ========== 背景星星 ========== */
.sky-stars {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.sky-stars::before,
.sky-stars::after {
    content: "";
    position: absolute;
    inset: 0;
    background-repeat: repeat;
    background-size: 420px 420px;
}

.sky-stars::before {
    background-image:
        radial-gradient(3px 3px at 40px 60px, rgba(255, 182, 222, 0.9), transparent 100%),
        radial-gradient(2.5px 2.5px at 180px 180px, rgba(150, 160, 255, 0.9), transparent 100%),
        radial-gradient(3px 3px at 320px 90px, rgba(255, 200, 170, 0.9), transparent 100%),
        radial-gradient(2px 2px at 250px 320px, rgba(255, 150, 200, 0.85), transparent 100%),
        radial-gradient(2.5px 2.5px at 90px 360px, rgba(140, 170, 255, 0.9), transparent 100%);
    animation: twinkle 4s ease-in-out infinite;
}

.sky-stars::after {
    background-image:
        radial-gradient(2px 2px at 120px 140px, rgba(255, 255, 255, 0.95), transparent 100%),
        radial-gradient(2.5px 2.5px at 300px 260px, rgba(255, 255, 255, 0.9), transparent 100%),
        radial-gradient(2px 2px at 40px 280px, rgba(255, 255, 255, 0.85), transparent 100%);
    animation: twinkle 5.5s ease-in-out 1s infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.45; }
    50% { opacity: 1; }
}

/* ========== 樱花花瓣 ========== */
.petals {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.petal {
    position: absolute;
    top: -40px;
    border-radius: 150% 0 150% 0;
    background: linear-gradient(135deg, #ffd6e8, #ffb3d9);
    box-shadow: 0 0 10px rgba(255, 170, 210, 0.35);
    animation: fall linear infinite;
    will-change: transform;
}

@keyframes fall {
    0% {
        transform: translate3d(0, -60px, 0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    100% {
        transform: translate3d(var(--sway, -60px), 105vh, 0) rotate(540deg);
        opacity: 0.6;
    }
}

/* ========== 导航栏 ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: box-shadow 0.3s ease, background 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.12);
}

.nav-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

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

.logo-icon {
    width: 38px;
    height: 38px;
    filter: drop-shadow(0 4px 10px rgba(255, 126, 179, 0.45));
    animation: floatY 4s ease-in-out infinite;
}

.logo-text {
    font-size: 1.2rem;
    font-weight: 800;
    background: var(--grad-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-links a {
    position: relative;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--c-sub);
    transition: color 0.25s ease, background 0.25s ease;
}

.nav-links a:hover {
    color: var(--c-violet);
    background: rgba(255, 255, 255, 0.75);
}

.nav-cta {
    padding: 10px 22px;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    background: var(--grad-btn);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(139, 92, 246, 0.45);
}

/* ========== Hero ========== */
.hero {
    position: relative;
    z-index: 2;
    padding: 150px 24px 90px;
}

.hero-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: flex-start;
    gap: 40px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 999px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--c-violet);
    box-shadow: var(--shadow-soft);
    margin-bottom: 26px;
}

.hero-badge .spark {
    color: var(--c-pink);
    animation: sparkle 1.8s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 1; transform: scale(1) rotate(0deg); }
    50% { opacity: 0.4; transform: scale(1.35) rotate(45deg); }
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    line-height: 1.25;
    font-weight: 900;
    margin-bottom: 20px;
}

.grad-text {
    background: var(--grad-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 14px rgba(255, 126, 179, 0.3));
}

.hero-sub {
    font-size: 1.08rem;
    line-height: 1.8;
    color: var(--c-sub);
    max-width: 540px;
    margin-bottom: 34px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 30px;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 700;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn .arrow {
    transition: transform 0.25s ease;
}

.btn:hover .arrow {
    transform: translateX(4px);
}

.btn-primary {
    color: #fff;
    background: var(--grad-btn);
    box-shadow: 0 12px 28px rgba(139, 92, 246, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    background: var(--grad-btn-hover);
    box-shadow: 0 18px 36px rgba(139, 92, 246, 0.5);
}

.btn-ghost {
    color: var(--c-violet);
    background: var(--glass);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.1);
}

.btn-ghost:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.85);
}

.hero-stats {
    display: flex;
    gap: 34px;
}

.stat b {
    display: block;
    font-size: 1.7rem;
    font-weight: 900;
    background: var(--grad-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat span {
    font-size: 0.88rem;
    color: var(--c-sub);
    font-weight: 600;
}

/* Hero 立绘区 */
.hero-art {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
}

.anime-girl {
    display: block;
    width: min(300px, 80%);
    height: auto;
    position: relative;
    left: 9%;
    filter: drop-shadow(0 26px 40px rgba(139, 92, 246, 0.28));
}

@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}

.art-tag {
    position: absolute;
    padding: 9px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--c-violet);
    box-shadow: 0 10px 24px rgba(139, 92, 246, 0.18);
    animation: floatY 4s ease-in-out infinite;
    white-space: nowrap;
    z-index: 3;
}

.art-tag .heart {
    color: var(--c-rose);
}

.tag-1 {
    top: 6%;
    left: 0;
    animation-delay: 0.6s;
}

.tag-2 {
    top: 30%;
    right: 0;
    animation-delay: 1.2s;
}

/* ========== 通用区块 ========== */
.section {
    position: relative;
    z-index: 2;
    padding: 90px 24px;
}

.container {
    max-width: 1180px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: clamp(1.7rem, 3.5vw, 2.4rem);
    font-weight: 900;
    margin-bottom: 14px;
}

.section-sub {
    text-align: center;
    color: var(--c-sub);
    margin-bottom: 52px;
}

/* ========== 特性卡片 ========== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.card {
    padding: 34px 28px;
    border-radius: var(--radius);
    background: var(--glass);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(139, 92, 246, 0.22);
}

.card-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
}

.card-icon svg {
    width: 28px;
    height: 28px;
    fill: #fff;
}

.icon-violet {
    background: linear-gradient(135deg, #b06bff, #7a5cff);
}

.icon-pink {
    background: linear-gradient(135deg, #ff8fc0, #ff5f7e);
}

.icon-blue {
    background: linear-gradient(135deg, #7db8ff, #5c8dff);
}

.icon-orange {
    background: linear-gradient(135deg, #ffc46b, #ff8a5c);
}

.card h3 {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.card p {
    font-size: 0.92rem;
    line-height: 1.7;
    color: var(--c-sub);
}

/* ========== 支付方式 ========== */
.pay-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.pay-card {
    text-align: center;
    padding: 38px 24px;
    border-radius: var(--radius);
    background: var(--glass);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pay-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(139, 92, 246, 0.22);
}

.pay-logo {
    width: 68px;
    height: 68px;
    margin: 0 auto 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 900;
    color: #fff;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.14);
}

.alipay-logo {
    background: linear-gradient(135deg, #4da8ff, #1e7bff);
}

.wechat-logo {
    background: linear-gradient(135deg, #3fd66e, #16b94a);
}

.cloud-logo {
    background: linear-gradient(135deg, #7a5cff, #4c38d0);
}

.more-logo {
    background: linear-gradient(135deg, #ff9ac4, #ff5f9e);
}

.pay-card h3 {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.pay-card p {
    font-size: 0.88rem;
    color: var(--c-sub);
}

/* ========== CTA ========== */
.cta-box {
    text-align: center;
    padding: 64px 40px;
    border-radius: 32px;
    background: linear-gradient(135deg, rgba(255, 126, 179, 0.16), rgba(139, 92, 246, 0.18));
    border: 1px solid rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 30px 70px rgba(139, 92, 246, 0.18);
}

.cta-box h2 {
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    font-weight: 900;
    margin-bottom: 14px;
}

.cta-box p {
    color: var(--c-sub);
    margin-bottom: 30px;
}

.btn-lg {
    padding: 16px 40px;
    font-size: 1.05rem;
}

/* ========== 页脚 ========== */
.footer {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.7);
}

.footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 48px 24px 32px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 32px;
}

.footer-brand .logo-text {
    font-size: 1.25rem;
}

.footer-desc {
    margin: 14px 0;
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--c-sub);
    max-width: 360px;
}

.footer-copy {
    font-size: 0.82rem;
    color: #a99ac6;
}

.footer-col h4 {
    font-size: 0.95rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    padding: 5px 0;
    font-size: 0.9rem;
    color: var(--c-sub);
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-col a:hover {
    color: var(--c-violet);
    transform: translateX(4px);
}

/* ========== 滚动渐入动画 ========== */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* ========== 响应式 ========== */
@media (max-width: 900px) {
    .hero {
        padding-top: 120px;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-badge,
    .hero-actions {
        justify-content: center;
    }

    .hero-sub {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-stats {
        justify-content: center;
    }

    .anime-girl {
        width: min(260px, 64vw);
    }

    .hero-art {
        margin-top: 10px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .nav-links {
        display: none;
    }

    .hero {
        padding: 110px 18px 70px;
    }

    .section {
        padding: 70px 18px;
    }

    .hero-stats {
        gap: 22px;
        flex-wrap: wrap;
    }

    .stat b {
        font-size: 1.4rem;
    }

    .art-tag {
        padding: 6px 10px;
        font-size: 0.72rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .anime-girl,
    .logo-icon,
    .art-tag {
        animation: none;
    }
}
