:root {
    --bg: #0f0a1f;
    --bg-elev: #171132;
    --text: #eae6ff;
    --text-dim: #bfb6ff;
    --brand: #6c4df6;
    --brand-600: #5a3df0;
    --brand-700: #4a2fe4;
    --brand-300: #9a84ff;
    --brand-200: #c7bcff;
    --card: #1b1540;
    --line: rgba(255, 255, 255, .08);
    --ok: #22c55e;
    --warn: #f59e0b;
    --danger: #ef4444;
    --shadow: 0 10px 25px rgba(108, 77, 246, .35), 0 2px 8px rgba(0, 0, 0, .25)
}

* {
    box-sizing: border-box
}

html,
body {
    height: 100%
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
    background: linear-gradient(180deg, #0f0a1f, #120b26 40%, #0f0a1f);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(15, 10, 31, .6);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line)
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px
}

.brand {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
    letter-spacing: .3px
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--brand), var(--brand-700));
    box-shadow: var(--shadow)
}


/* 品牌图片 Logo */

.brand-logo {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: block;
    object-fit: cover;
    box-shadow: var(--shadow)
}

.brand-name {
    font-size: 16px
}

.nav-links {
    display: flex;
    gap: 18px
}

.nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    padding: 10px 8px;
    border-radius: 8px
}

.nav-links a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, .06)
}

.nav-toggle {
    display: none;
    background: none;
    border: 0;
    color: var(--text);
    font-size: 22px
}

.hero {
    position: relative;
    padding: 72px 0 40px
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 32px;
    align-items: center
}

.hero-copy h1 {
    font-size: 44px;
    line-height: 1.15;
    margin: 0 0 12px
}

.gradient {
    background: linear-gradient(90deg, var(--brand-200), var(--brand-300), var(--brand));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent
}

.hero-copy p {
    color: var(--text-dim);
    max-width: 48ch
}

.cta-group {
    display: flex;
    gap: 12px;
    margin-top: 18px
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 18px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: .2px
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand), var(--brand-700));
    color: #fff;
    box-shadow: var(--shadow)
}

.btn-primary:hover {
    transform: translateY(-1px)
}

.btn-ghost {
    border: 1px solid var(--line);
    color: var(--text);
    background: rgba(255, 255, 255, .04)
}

.hero-stats {
    display: flex;
    gap: 22px;
    list-style: none;
    padding: 18px 0 0;
    margin: 0;
    flex-wrap: wrap
}

.hero-stats li {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, .03)
}

.hero-stats strong {
    font-size: 18px
}

.hero-visual {
    display: flex;
    justify-content: center
}

.device-frame {
    width: 100%;
    max-width: 420px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #160f34, #120b26);
    border-radius: 24px;
    padding: 14px;
    box-shadow: var(--shadow)
}

.device-status {
    display: flex;
    gap: 6px;
    margin-bottom: 12px
}

.device-status .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #fff, transparent 60%), var(--brand-300);
    opacity: .9
}

.chat-bubbles {
    display: flex;
    flex-direction: column;
    gap: 10px
}

.bubble {
    max-width: 78%;
    padding: 10px 12px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.35
}

.bubble-left {
    background: #221a49;
    color: #e9e6ff;
    border: 1px solid var(--line);
    border-top-left-radius: 6px
}

.bubble-right {
    background: linear-gradient(135deg, var(--brand), var(--brand-700));
    color: #fff;
    border-top-right-radius: 6px;
    margin-left: auto
}

.hero-glow {
    position: absolute;
    inset: auto 0 -120px;
    pointer-events: none;
    height: 280px;
    background: radial-gradient(60% 60% at 50% 0, var(--brand-600), transparent 60%);
    filter: blur(40px);
    opacity: .55
}

.section {
    padding: 64px 0
}

.section.alt {
    background: linear-gradient(180deg, #120b26, #0f0a1f)
}

.section-title {
    text-align: center;
    font-size: 28px;
    margin: 0 0 22px
}

.grid {
    display: grid;
    gap: 16px
}

.features-grid {
    grid-template-columns: repeat(4, 1fr)
}

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset
}

.feature .icon {
    font-size: 22px;
    margin-bottom: 8px
}

.showcase-grid {
    grid-template-columns: repeat(3, 1fr)
}

.screenshot-card {
    height: 200px;
    border-radius: 16px;
    border: 1px dashed var(--brand-300);
    background: repeating-linear-gradient(45deg, rgba(106, 75, 246, .08) 0 10px, rgba(106, 75, 246, .14) 10px 20px)
}

.faq details {
    background: rgba(255, 255, 255, .03);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px 14px
}

.faq details+details {
    margin-top: 12px
}

.faq summary {
    cursor: pointer;
    color: var(--text);
    font-weight: 600
}

.faq p {
    color: var(--text-dim);
    margin: 10px 0 0
}

.site-footer {
    border-top: 1px solid var(--line);
    background: rgba(15, 10, 31, .6)
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 12px;
    align-items: center;
    min-height: 72px
}

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

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

.footer-links a {
    color: var(--text-dim);
    text-decoration: none
}

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

.footer-copy {
    color: var(--text-dim);
    font-size: 13px
}


/* 下载页 */

.downloads {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 24px;
    align-items: start
}

.platforms {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px
}

.platform-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 16px
}

.platform-card h3 {
    margin: 0 0 6px;
    font-size: 16px
}

.platform-card p {
    margin: 0 0 10px;
    color: var(--text-dim)
}

.platform-card .btn {
    width: 100%
}

.qr-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 16px;
    position: sticky;
    top: 96px
}

.qr {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 12px;
    background: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, .1), transparent 30%), conic-gradient(from 0deg at 50% 50%, rgba(106, 75, 246, .35), rgba(106, 75, 246, .1), rgba(106, 75, 246, .35));
    display: grid;
    place-items: center;
    position: relative
}

.qr::after {
    content: "扫码下载";
    color: #fff;
    background: rgba(0, 0, 0, .35);
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 12px;
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none
}


/* 二维码图片样式 */

.qr img {
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #fff;
    display: block
}


/* 二维码 Loading */

.qr-loading {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, .25);
    border-top-color: #fff;
    animation: spin 1s linear infinite;
    position: relative;
    display: grid;
    place-items: center;
    gap: 8px
}

.qr-loading.error {
    width: auto;
    height: auto;
    border: 0;
    background: none;
    color: var(--danger);
    font-size: 13px;
    line-height: 1.4;
    text-align: center
}

.qr-loading-link {
    color: var(--text-dim);
    font-size: 12px;
    text-decoration: none;
    opacity: .8
}

@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}


/* 响应式 */

@media (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr
    }
    .downloads {
        grid-template-columns: 1fr
    }
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr)
    }
    .showcase-grid {
        grid-template-columns: repeat(2, 1fr)
    }
    .platforms {
        grid-template-columns: repeat(2, 1fr)
    }
}

@media (max-width: 560px) {
    .nav-toggle {
        display: inline-flex
    }
    .nav-links {
        position: absolute;
        right: 20px;
        top: 64px;
        flex-direction: column;
        background: rgba(15, 10, 31, .98);
        padding: 10px;
        border: 1px solid var(--line);
        border-radius: 12px;
        display: none
    }
    .nav-links.open {
        display: flex
    }
    .hero {
        padding: 56px 0 28px
    }
    .hero-copy h1 {
        font-size: 32px
    }
    .hero-stats {
        gap: 12px
    }
    .features-grid {
        grid-template-columns: 1fr
    }
    .showcase-grid {
        grid-template-columns: 1fr
    }
    .platforms {
        grid-template-columns: 1fr
    }
    .footer-inner {
        grid-template-columns: 1fr
    }
}