/* ============================================================
   云创智慧零售 · 安装引导站
   设计语言：蓝色科技感 + 现代扁平化
   ============================================================ */

:root {
    /* 蓝色系统 */
    --blue-900: #0A2463;
    --blue-800: #0D2B7A;
    --blue-700: #1247CC;
    --blue-600: #155DFF;
    --blue-500: #3D7BFF;
    --blue-400: #6B9BFF;
    --blue-200: #C8D8FF;
    --blue-100: #E0E8FF;
    --blue-50: #F0F5FF;

    /* 中性色 */
    --ink-900: #0F172A;
    --ink-700: #334155;
    --ink-500: #64748B;
    --ink-400: #94A3B8;
    --ink-300: #CBD5E1;
    --ink-200: #E2E8F0;
    --ink-100: #F1F5F9;
    --ink-50: #F8FAFC;
    --paper: #FFFFFF;

    /* 功能色 */
    --success: #22C55E;
    --warning: #F59E0B;
    --danger: #EF4444;
    --info: #155DFF;

    /* 字体 */
    --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
                 "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif;

    /* 阴影 */
    --shadow-xs: 0 1px 2px rgba(21, 93, 255, 0.04);
    --shadow-sm: 0 2px 8px rgba(21, 93, 255, 0.06);
    --shadow-md: 0 8px 24px rgba(21, 93, 255, 0.08);
    --shadow-lg: 0 16px 48px rgba(21, 93, 255, 0.12);
    --shadow-blue: 0 8px 24px rgba(21, 93, 255, 0.35);

    /* 圆角 */
    --r-sm: 10px;
    --r-md: 14px;
    --r-lg: 20px;
    --r-xl: 28px;
    --r-pill: 999px;

    /* 安全区 */
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    color: var(--ink-900);
    background: var(--ink-50);
    line-height: 1.55;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
button { border: none; background: none; font: inherit; color: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }

/* ============================================================
   页面容器
   ============================================================ */
.page {
    max-width: 720px;
    margin: 0 auto;
    background: var(--paper);
    min-height: 100vh;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

@media (min-width: 768px) {
    body {
        background:
            radial-gradient(circle at 10% 0%, rgba(21, 93, 255, 0.08), transparent 40%),
            radial-gradient(circle at 90% 100%, rgba(21, 93, 255, 0.06), transparent 40%),
            var(--ink-50);
        padding: 32px 16px;
    }
    .page {
        border-radius: var(--r-xl);
        min-height: calc(100vh - 64px);
    }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
    position: relative;
    padding: calc(52px + var(--safe-top)) 28px 48px;
    background: linear-gradient(155deg, var(--blue-600) 0%, var(--blue-800) 70%, var(--blue-900) 100%);
    color: #fff;
    overflow: hidden;
    isolation: isolate;
}

/* 网格背景 */
.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 24px 24px;
    mask-image: radial-gradient(circle at 50% 30%, #000 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 30%, transparent 80%);
    z-index: 0;
}

/* 光晕 */
.hero-glow {
    position: absolute;
    top: -30%;
    right: -20%;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(61, 123, 255, 0.5), transparent 70%);
    border-radius: 50%;
    z-index: 0;
    animation: floatGlow 8s ease-in-out infinite;
}
.hero-glow-2 {
    top: auto;
    right: auto;
    left: -10%;
    bottom: -20%;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(107, 155, 255, 0.3), transparent 70%);
    animation-delay: -3s;
}

@keyframes floatGlow {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-6px, -10px) scale(1.08); }
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    animation: heroIn 0.6s ease;
}

@keyframes heroIn {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 18px 8px 8px;
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--r-pill);
    margin-bottom: 32px;
}

.brand-logo {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.brand-text { text-align: left; }
.brand-name {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
    line-height: 1.2;
}
.brand-tag {
    font-size: 11px;
    color: var(--blue-200);
    margin-top: 2px;
    letter-spacing: 0.2px;
}

.hero-title {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.3px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #fff 0%, var(--blue-200) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-sub {
    font-size: 14px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.78);
    max-width: 460px;
    margin: 0 auto 30px;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.hero-meta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 9px 16px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--r-pill);
}

.meta-item { text-align: center; }
.meta-label {
    display: block;
    font-size: 10px;
    color: var(--blue-200);
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 2px;
}
.meta-value {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
}
.meta-divider {
    width: 1px;
    height: 18px;
    background: rgba(255, 255, 255, 0.15);
}

/* CTA 主按钮 */
.cta-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    background: #fff;
    color: var(--blue-700);
    font-size: 16px;
    font-weight: 700;
    border-radius: var(--r-pill);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.2);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    letter-spacing: 0.3px;
}
.cta-primary:active {
    transform: scale(0.96);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.cta-primary svg { flex-shrink: 0; }

.cta-note {
    margin-top: 14px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.2px;
}

.cta-secondary {
    display: flex;
    width: 100%;
    justify-content: center;
    margin-top: 8px;
    background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
    color: #fff;
    box-shadow: var(--shadow-blue);
}
.cta-secondary:active {
    box-shadow: 0 4px 12px rgba(21, 93, 255, 0.4);
}

/* ============================================================
   通用 Section
   ============================================================ */
.features,
.qr-section,
.steps,
.faq {
    padding: 56px 24px;
}

.section-title {
    text-align: center;
    margin-bottom: 36px;
}

.section-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: var(--blue-600);
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 10px;
    padding: 5px 14px;
    background: var(--blue-50);
    border-radius: var(--r-pill);
    border: 1px solid var(--blue-100);
}

.section-title h2 {
    font-size: 26px;
    font-weight: 800;
    color: var(--ink-900);
    letter-spacing: -0.3px;
    margin-bottom: 10px;
}

.section-desc {
    font-size: 13px;
    color: var(--ink-500);
    max-width: 360px;
    margin: 0 auto;
}

/* ============================================================
   特性卡片
   ============================================================ */
.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (min-width: 540px) {
    .feature-grid { grid-template-columns: repeat(3, 1fr); }
}

.feature-card {
    padding: 22px 18px;
    background: var(--paper);
    border: 1px solid var(--ink-200);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-xs);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    text-align: left;
}
.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--blue-200);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    background: var(--blue-50);
    color: var(--blue-600);
    border: 1px solid var(--blue-100);
}

.feature-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--ink-900);
    margin-bottom: 6px;
}

.feature-desc {
    font-size: 12px;
    color: var(--ink-500);
    line-height: 1.6;
}

/* ============================================================
   二维码区
   ============================================================ */
.qr-section {
    padding-top: 0;
}

.qr-card {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 22px 24px;
    background: linear-gradient(135deg, var(--blue-50) 0%, var(--paper) 100%);
    border: 1px solid var(--blue-100);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
}

.qr-image {
    width: 120px;
    height: 120px;
    background: #fff;
    border-radius: var(--r-md);
    padding: 8px;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
    border: 1px solid var(--blue-100);
}
.qr-image img {
    width: 100%;
    height: 100%;
    border-radius: 6px;
}

.qr-text { flex: 1; }
.qr-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--blue-800);
    margin-bottom: 8px;
}
.qr-desc {
    font-size: 13px;
    color: var(--ink-500);
    line-height: 1.65;
}

@media (max-width: 540px) {
    .qr-card {
        flex-direction: column;
        text-align: center;
    }
}

/* ============================================================
   安装步骤
   ============================================================ */
.step-list {
    list-style: none;
    position: relative;
    margin-bottom: 36px;
    counter-reset: step;
}

.step-item {
    position: relative;
    margin-bottom: 20px;
}
.step-item:last-child { margin-bottom: 0; }

/* 左侧竖线（大屏） */
@media (min-width: 600px) {
    .step-list::before {
        content: "";
        position: absolute;
        left: 28px;
        top: 36px;
        bottom: 20px;
        width: 2px;
        background: linear-gradient(180deg, var(--blue-400), var(--blue-100) 70%, transparent);
        z-index: 0;
    }
    .step-item {
        padding-left: 76px;
        z-index: 1;
    }
    .step-num {
        position: absolute;
        left: 0;
        top: 4px;
        width: 58px;
        height: 58px;
        border-radius: 16px;
        background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
        color: #fff;
        font-size: 22px;
        font-weight: 800;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: var(--shadow-blue);
        z-index: 2;
    }
    .step-num span { display: block; }
    .step-num-mobile { display: none; }
}

@media (max-width: 599px) {
    .step-num { display: none; }
    .step-num-mobile {
        font-size: 12px;
        font-weight: 700;
        color: var(--blue-600);
        letter-spacing: 1px;
        margin-bottom: 6px;
    }
}

.step-body {
    background: var(--paper);
    border: 1px solid var(--ink-200);
    border-radius: var(--r-lg);
    padding: 18px 18px 16px;
    box-shadow: var(--shadow-xs);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.step-body:hover {
    box-shadow: var(--shadow-sm);
    border-color: var(--blue-200);
}

.step-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--ink-900);
    margin-bottom: 6px;
    letter-spacing: -0.2px;
}

.step-desc {
    font-size: 13px;
    color: var(--ink-500);
    line-height: 1.6;
    margin-bottom: 14px;
}

.step-illustration {
    display: flex;
    justify-content: center;
    padding-top: 4px;
    border-top: 1px dashed var(--ink-200);
    padding-top: 14px;
}
.step-illustration svg {
    max-width: 100%;
    height: auto;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-item {
    background: var(--paper);
    border: 1px solid var(--ink-200);
    border-radius: var(--r-md);
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.faq-item[open] {
    border-color: var(--blue-400);
    box-shadow: var(--shadow-sm);
}

.faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink-900);
    list-style: none;
    user-select: none;
}
.faq-q::-webkit-details-marker { display: none; }

.faq-icon {
    flex-shrink: 0;
    color: var(--blue-600);
    transition: transform 0.25s ease;
    line-height: 1;
}
.faq-item[open] .faq-icon { transform: rotate(180deg); }

.faq-a {
    padding: 0 18px 16px;
    font-size: 13px;
    color: var(--ink-500);
    line-height: 1.65;
    animation: faqIn 0.25s ease;
}
.faq-a p { margin: 0; }

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

/* ============================================================
   Footer
   ============================================================ */
.footer {
    padding: 40px 24px calc(28px + var(--safe-bottom));
    background: linear-gradient(155deg, var(--blue-800), var(--blue-900));
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    mask-image: radial-gradient(circle at 50% 100%, #000 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(circle at 50% 100%, #000 20%, transparent 70%);
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    position: relative;
}
.footer-logo {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
}
.footer-brand span {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.3px;
}

.footer-text {
    font-size: 12px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 18px;
    position: relative;
}
.footer-copy { margin-top: 4px; font-size: 11px; }

.footer-support {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--r-pill);
    font-size: 12px;
    position: relative;
}
.footer-support a {
    color: var(--blue-200);
    font-weight: 600;
}

/* ============================================================
   Toast
   ============================================================ */
.toast {
    position: fixed;
    left: 50%;
    bottom: calc(32px + var(--safe-bottom));
    transform: translate(-50%, 20px);
    background: rgba(13, 27, 61, 0.92);
    color: #fff;
    padding: 12px 20px;
    border-radius: var(--r-pill);
    font-size: 13px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 999;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-lg);
    max-width: 80%;
    text-align: center;
}
.toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* ============================================================
   浏览器提示横幅
   ============================================================ */
.browser-hint {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
    background: var(--warning);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    padding-top: calc(10px + var(--safe-top));
}
.hint-close {
    color: #fff;
    font-size: 22px;
    line-height: 1;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

/* ============================================================
   小屏适配
   ============================================================ */
@media (max-width: 380px) {
    .hero { padding: calc(40px + var(--safe-top)) 22px 36px; }
    .hero-title { font-size: 26px; }
    .hero-meta { gap: 10px; padding: 8px 14px; }
    .features, .qr-section, .steps, .faq { padding: 44px 18px; }
    .section-title h2 { font-size: 22px; }
    .feature-grid { grid-template-columns: 1fr; }
}

/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
