/* ==========================================================================
   LiveLens 官网样式
   深色导航蓝底 + 蓝色网格 + 青→蓝→紫渐变强调色 + 玻璃卡片
   ========================================================================== */

:root {
    /* 底色 */
    --bg: #05070f;
    --bg-soft: #070d1e;

    /* 强调色 */
    --cyan: #22d3ee;
    --blue: #3b82f6;
    --violet: #a855f7;

    /* 文字 */
    --text: #eaf0ff;
    --muted: rgba(226, 236, 255, 0.62);
    --faint: rgba(226, 236, 255, 0.42);

    /* 线条 / 玻璃 */
    --line: rgba(120, 170, 255, 0.16);
    --line-soft: rgba(120, 170, 255, 0.13);
    --line-strong: rgba(140, 200, 255, 0.34);

    /* 渐变：--brand 用于图标/文字，--btn 用于填充按钮（白字对比度更好） */
    --brand: linear-gradient(120deg, #22d3ee 0%, #3b82f6 52%, #a855f7 100%);
    --btn: linear-gradient(115deg, #0891b2 0%, #2563eb 46%, #7c3aed 100%);

    --page: 1000px;
    --header-h: 62px;
}

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

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

body {
    min-height: 100vh;
    font-family: "Segoe UI", "Microsoft YaHei UI", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

img,
svg {
    display: block;
}

::selection {
    background: rgba(59, 130, 246, 0.35);
}

/* 图标精灵：不占布局 */
.sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

/* ==========================================================================
   背景：网格 + 氛围光 + 霓虹弧线
   ========================================================================== */

.bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(96, 165, 250, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(96, 165, 250, 0.05) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse 85% 65% at 50% 0%, #000 25%, transparent 100%);
    mask-image: radial-gradient(ellipse 85% 65% at 50% 0%, #000 25%, transparent 100%);
}

.bg-glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(58% 44% at 50% -6%, rgba(34, 211, 238, 0.16), transparent 70%),
        radial-gradient(46% 40% at 6% 16%, rgba(59, 130, 246, 0.14), transparent 72%),
        radial-gradient(52% 46% at 96% 62%, rgba(168, 85, 247, 0.13), transparent 72%),
        linear-gradient(180deg, #05070f 0%, #070d1e 46%, #05070f 100%);
}

.bg-arcs {
    position: absolute;
    inset: 0;
    opacity: 0.75;
}

.bg-arcs svg {
    width: 100%;
    height: 100%;
}

.bg-arcs .arc-soft {
    filter: blur(1.4px);
}

/* 极慢的弧线漂移，保持克制 */
.bg-arcs .arc-drift {
    animation: arc-drift 34s ease-in-out infinite alternate;
}

@keyframes arc-drift {
    from { transform: translate3d(-1.5%, 0, 0); }
    to { transform: translate3d(1.5%, -1.2%, 0); }
}

/* ==========================================================================
   顶部导航
   ========================================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(5, 7, 15, 0.74);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line-soft);
}

.header-inner {
    position: relative;
    max-width: 1160px;
    margin: 0 auto;
    height: var(--header-h);
    padding: 0 22px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.brand-mark {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
}

.brand-mark svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 9px rgba(59, 130, 246, 0.4));
}

.brand-name {
    font-size: 16.5px;
    font-weight: 650;
    letter-spacing: 0.3px;
}

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

.site-nav a {
    padding: 8px 13px;
    border-radius: 9px;
    font-size: 14px;
    color: var(--muted);
    transition: color 0.2s ease, background 0.2s ease;
    white-space: nowrap;
}

.site-nav a:hover {
    color: var(--text);
    background: rgba(120, 170, 255, 0.08);
}

.ver-pill {
    flex-shrink: 0;
    padding: 5px 11px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    font-size: 12.5px;
    letter-spacing: 0.4px;
    color: var(--faint);
    white-space: nowrap;
}

.nav-toggle {
    display: none;
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    margin-left: 2px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.nav-toggle span {
    display: block;
    width: 16px;
    height: 1.6px;
    border-radius: 2px;
    background: #cfe0ff;
    transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.6px) rotate(-45deg); }

/* ==========================================================================
   主内容容器
   ========================================================================== */

main {
    position: relative;
    z-index: 1;
}

.wrap {
    max-width: calc(var(--page) + 44px);
    margin: 0 auto;
    padding: 44px 22px 0;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
    position: relative;
    z-index: 1;
    max-width: 780px;
    margin: 0 auto;
    padding: 72px 22px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-mark {
    position: relative;
    display: grid;
    place-items: center;
    width: 94px;
    height: 94px;
    margin-bottom: 26px;
}

.hero-mark .glow {
    position: absolute;
    inset: -28px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.42), transparent 68%);
    filter: blur(20px);
    animation: mark-pulse 4s ease-in-out infinite;
}

@keyframes mark-pulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.07); }
}

.hero-mark svg {
    position: relative;
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 16px rgba(59, 130, 246, 0.35));
}

.hero-title {
    color: #fff;
    font-size: clamp(34px, 6vw, 46px);
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1.15;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .hero-title {
        background: linear-gradient(100deg, #ffffff 0%, #d3e6ff 38%, #7dd3fc 68%, #c4b5fd 100%);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        color: transparent;
    }
}

.hero-ver {
    margin-top: 14px;
    padding: 5px 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    font-size: 12.5px;
    letter-spacing: 0.6px;
    color: var(--faint);
}

.hero-slogan {
    margin-top: 22px;
    font-size: clamp(17px, 2.6vw, 21px);
    letter-spacing: 0.6px;
    color: rgba(226, 236, 255, 0.8);
}

.hero-actions {
    width: 100%;
    margin-top: 34px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

/* ==========================================================================
   按钮
   ========================================================================== */

.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 48px;
    padding: 0 30px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 15.5px;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: #fff;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.btn .i {
    width: 19px;
    height: 19px;
    flex-shrink: 0;
}

.btn-primary {
    background: var(--btn);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
    box-shadow: 0 8px 26px rgba(56, 132, 255, 0.34), inset 0 0 0 1px rgba(150, 215, 255, 0.2);
}

.btn-primary::before {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 55%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.22), transparent);
    transform: skewX(-18deg);
    transition: left 0.6s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.46), inset 0 0 0 1px rgba(180, 230, 255, 0.3);
}

.btn-primary:hover::before {
    left: 135%;
}

.btn-ghost {
    color: #cfe4ff;
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--line-strong);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.btn-ghost:hover {
    transform: translateY(-2px);
    border-color: rgba(150, 205, 255, 0.62);
    background: rgba(120, 170, 255, 0.1);
    box-shadow: 0 0 24px rgba(59, 130, 246, 0.3);
}

.btn:active {
    transform: translateY(-1px);
}

.btn:focus-visible {
    outline: 2px solid #9cc0ff;
    outline-offset: 3px;
}

/* 下载地址被显式留空时（服务端渲染）的禁用态 */
.btn.is-disabled {
    opacity: 0.45;
    filter: saturate(0.5);
    pointer-events: none;
}

.dl-note {
    margin-top: 14px;
    font-size: 13px;
    color: var(--faint);
    text-align: center;
    width: 100%;
}

/* ==========================================================================
   玻璃卡片
   ========================================================================== */

.card {
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.018));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 20px 50px rgba(2, 6, 20, 0.5);
}

.wrap > .card + .card {
    margin-top: 22px;
}

.card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 650;
    letter-spacing: 0.4px;
    color: #e8f1ff;
}

.card-title .i {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* ==========================================================================
   使用演示
   ========================================================================== */

.demo-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.28fr) minmax(0, 0.95fr);
    gap: 26px;
    align-items: center;
    margin-top: 18px;
}

.video-frame {
    position: relative;
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    background: #04060e;
    box-shadow: 0 12px 34px rgba(1, 4, 14, 0.6);
}

.video-frame iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
}

.video-placeholder {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 10px;
    width: 100%;
    aspect-ratio: 16 / 9;
    color: var(--faint);
    font-size: 14.5px;
    letter-spacing: 1px;
    background:
        radial-gradient(60% 70% at 50% 50%, rgba(59, 130, 246, 0.1), transparent 70%),
        #04060e;
}

.video-placeholder svg {
    width: 30px;
    height: 30px;
    opacity: 0.85;
}

.video-tip {
    margin-top: 12px;
    font-size: 13px;
    color: var(--faint);
}

.video-tip a {
    color: #7dd3fc;
}

.video-tip a:hover {
    text-decoration: underline;
}

.demo-copy h3 {
    font-size: 19px;
    font-weight: 650;
    letter-spacing: 0.3px;
    color: #eaf2ff;
}

.demo-copy p {
    margin-top: 10px;
    font-size: 14.5px;
    line-height: 1.8;
    color: var(--muted);
}

.demo-points {
    list-style: none;
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.demo-points li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14.5px;
    color: rgba(226, 236, 255, 0.86);
}

.demo-points .i {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
}

/* ==========================================================================
   核心优势
   ========================================================================== */

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

.feat {
    padding: 18px 16px;
    border: 1px solid var(--line-soft);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.feat:hover {
    transform: translateY(-2px);
    border-color: rgba(140, 200, 255, 0.3);
    box-shadow: 0 10px 30px rgba(30, 90, 220, 0.18);
}

.feat .i {
    width: 22px;
    height: 22px;
    margin-bottom: 12px;
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.35));
}

.feat h4 {
    font-size: 15px;
    font-weight: 650;
    letter-spacing: 0.3px;
    color: #eaf2ff;
}

.feat p {
    margin-top: 7px;
    font-size: 13.5px;
    line-height: 1.75;
    color: var(--muted);
}

/* ==========================================================================
   常见问题
   ========================================================================== */

.faq-list {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-item {
    border: 1px solid var(--line-soft);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.022);
    overflow: hidden;
    transition: border-color 0.25s ease;
}

.faq-item[open] {
    border-color: rgba(140, 200, 255, 0.26);
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 18px;
    font-size: 14.5px;
    font-weight: 600;
    color: #e6efff;
    cursor: pointer;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "";
    flex-shrink: 0;
    width: 7px;
    height: 7px;
    margin-right: 3px;
    border-right: 1.6px solid rgba(160, 200, 255, 0.72);
    border-bottom: 1.6px solid rgba(160, 200, 255, 0.72);
    transform: rotate(45deg);
    transition: transform 0.25s ease;
}

.faq-item[open] summary::after {
    transform: rotate(-135deg);
}

.faq-item .a {
    padding: 0 18px 16px;
    font-size: 14px;
    line-height: 1.8;
    color: var(--muted);
}

.faq-item .a a {
    color: #7dd3fc;
}

.faq-item .a a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   页脚
   ========================================================================== */

.site-footer {
    position: relative;
    z-index: 1;
    margin-top: 64px;
    padding: 26px 22px 34px;
    text-align: center;
    font-size: 13px;
    letter-spacing: 0.4px;
    color: rgba(150, 180, 230, 0.55);
    border-top: 1px solid rgba(120, 170, 255, 0.1);
}

.site-footer .dot {
    margin: 0 8px;
    color: rgba(120, 170, 255, 0.42);
}

/* ==========================================================================
   购买授权页
   ========================================================================== */

.page-head {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0 auto;
    padding: 66px 22px 0;
    text-align: center;
}

.page-head h1 {
    font-size: clamp(28px, 4.4vw, 36px);
    font-weight: 700;
    letter-spacing: 0.4px;
    color: #fff;
}

.page-head p {
    margin-top: 14px;
    font-size: 15px;
    line-height: 1.85;
    color: var(--muted);
}

.store-actions {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.store-note {
    margin-top: 22px;
    font-size: 13.5px;
    line-height: 1.8;
    color: var(--faint);
}

/* ==========================================================================
   响应式
   ========================================================================== */

@media (max-width: 900px) {
    .features-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .nav-toggle {
        display: flex;
    }

    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        margin-left: 0;
        padding: 10px 14px 16px;
        background: #070b16;
        border-bottom: 1px solid var(--line);
        box-shadow: 0 18px 40px rgba(2, 6, 18, 0.55);
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav a {
        padding: 12px 10px;
        font-size: 15px;
    }

    .ver-pill {
        margin-left: auto;
    }

    .demo-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .hero {
        padding-top: 54px;
    }

    .wrap {
        padding-top: 34px;
    }
}

@media (max-width: 460px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .card {
        padding: 20px 16px;
        border-radius: 16px;
    }

    .hero-mark {
        width: 78px;
        height: 78px;
        margin-bottom: 20px;
    }

    .hero-actions {
        gap: 11px;
    }

    .btn {
        width: 100%;
        padding: 0 22px;
    }

    .header-inner {
        padding: 0 15px;
    }

    .wrap,
    .hero,
    .site-footer {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .hero-mark .glow,
    .bg-arcs .arc-drift {
        animation: none;
    }

    .btn,
    .feat,
    .faq-item summary::after {
        transition: none;
    }

    .btn-primary::before {
        display: none;
    }
}

/* 2026-09: 视频与开发者联系弹窗；原购买功能代码保留 */
[hidden] { display: none !important; }
.nav-contact, .footer-contact, .demo-contact { font: inherit; cursor: pointer; color: #bfe9ff; background: transparent; border: 0; }
.nav-contact { padding: 9px 13px; border: 1px solid rgba(125,211,252,.38); border-radius: 9px; white-space: nowrap; }
.nav-contact:hover, .footer-contact:hover, .demo-contact:hover { color: #fff; border-color: #7dd3fc; }
.hero-actions > .btn:not([hidden]) { width: 164px; min-width: 0; padding-inline: 12px; }
.hero-contact { margin: 0; font: inherit; white-space: nowrap; }
@media (max-width: 390px) {
  .hero-actions { gap: 10px; }
  .hero-actions > .btn:not([hidden]) { width: min(164px, calc((100% - 10px) / 2)); padding-inline: 6px; font-size: 14px; }
}
.demo-contact { margin-top: 15px; padding: 8px 0; }
.footer-contact { margin-left: 18px; }
body.contact-open { overflow: hidden; }
.contact-overlay { position: fixed; inset: 0; z-index: 1000; background: rgba(2,5,12,.83); backdrop-filter: blur(8px); padding: 20px; overflow-y: auto; display: flex; align-items: center; justify-content: center; }
.contact-dialog { position: relative; width: min(100%, 470px); max-height: calc(100dvh - 40px); overflow-y: auto; padding: 32px; border: 1px solid rgba(125,175,225,.33); border-radius: 22px; background: linear-gradient(145deg,#192d45,#0f1929); box-shadow: 0 24px 90px rgba(0,0,0,.65); }
.contact-close { position: absolute; top: 13px; right: 17px; border: 0; background: none; color: #b4c7df; font-size: 30px; cursor: pointer; }
.contact-eyebrow { display: inline-block; padding: 6px 12px; border: 1px solid rgba(125,211,252,.35); border-radius: 40px; color: #88d9ff; font-size: 12px; }
.contact-dialog h2 { margin: 18px 0 9px; font-size: 26px; }
.contact-intro { color: #aabbd0; line-height: 1.8; font-size: 14px; margin-bottom: 22px; }
.contact-info { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px; margin: 12px 0; border: 1px solid rgba(255,255,255,.09); background: rgba(6,17,32,.5); border-radius: 12px; }
.contact-info small { display: block; color: #92a9c4; margin-bottom: 6px; }
.contact-info strong { display: block; font-size: 15px; overflow-wrap: anywhere; }
.contact-info button { flex-shrink: 0; border: 1px solid #49617a; background: #223c56; color: #bce5ff; border-radius: 8px; padding: 8px 12px; cursor: pointer; }
.contact-info button:hover { background: #315272; }
.contact-hint { color: #aabbd0; line-height: 1.7; font-size: 13px; margin-top: 20px; }
.contact-status { min-height: 1.3em; color: #75e0b3; font-size: 13px; margin-top: 9px; }
@media (max-width: 820px) { .nav-contact { text-align: left; padding: 12px 10px; border: 0; } }
@media (max-width: 460px) { .contact-dialog { padding: 24px 18px; } .contact-info { padding: 12px; } }
