/* ================= 极光深邃 Pro 样式表 ================= */
:root {
    --bg-deep: #020617;
    --accent-green: #10b981;   /* 极光绿 */
    --accent-glow: rgba(16, 185, 129, 0.3);
    --card-glass: rgba(15, 23, 42, 0.8);
    --text-main: #f8fafc;
    --text-dim: #94a3b8;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-deep);
    background-image: radial-gradient(circle at 50% -20%, #1e293b, var(--bg-deep));
    color: var(--text-main);
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

#root { width: 100%; max-width: 460px; padding: 20px; box-sizing: border-box; }

.glass-card {
    background: var(--card-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 36px;
    padding: 40px 32px;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
}

/* 顶部品牌区 */
.brand-header { margin-bottom: 25px; }
.logo-box {
    width: 56px; height: 56px; background: var(--accent-green);
    border-radius: 18px; display: flex; align-items: center; justify-content: center;
    margin: 0 auto 15px; font-size: 1.6rem; color: var(--bg-deep);
    box-shadow: 0 0 25px var(--accent-glow);
}
h1 { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.5px; margin: 0; }
.subtitle-hero { color: var(--text-dim); font-size: 0.9rem; margin-top: 10px; line-height: 1.4; }

/* 特性展示区 */
.feature-grid {
    display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px;
    margin: 25px 0; padding: 15px; background: rgba(255,255,255,0.03); border-radius: 20px;
}
.f-item { font-size: 0.75rem; color: var(--text-main); font-weight: 600; }
.f-item i { display: block; font-size: 1.3rem; color: var(--accent-green); margin-bottom: 8px; }

/* 步骤条 */
.stepper { display: flex; justify-content: center; gap: 10px; margin-bottom: 30px; }
.dot { width: 30px; height: 4px; border-radius: 2px; background: #334155; transition: 0.4s; }
.dot.active { background: var(--accent-green); box-shadow: 0 0 10px var(--accent-green); }

/* 输入与按钮 */
.input-wrapper { position: relative; margin-bottom: 20px; }
.main-input {
    width: 100%; background: rgba(0, 0, 0, 0.3); border: 1.5px solid #334155;
    border-radius: 16px; padding: 18px; color: white; font-size: 1.1rem;
    text-align: center; outline: none; transition: 0.3s; box-sizing: border-box;
}
.main-input:focus { border-color: var(--accent-green); box-shadow: 0 0 15px var(--accent-glow); }

.btn-glow {
    width: 100%; height: 60px; border-radius: 16px; border: none;
    background: var(--accent-green); color: var(--bg-deep);
    font-size: 1.05rem; font-weight: 800; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    transition: 0.3s; margin: 0 auto;
}
.btn-glow:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(16, 185, 129, 0.2); }

/* 信任勋章 */
.trust-row { display: flex; justify-content: center; gap: 15px; margin-top: 20px; }
.badge-item { font-size: 0.75rem; color: var(--text-dim); display: flex; align-items: center; gap: 5px; }
.badge-item i { color: var(--accent-green); font-size: 0.8rem; }

/* 成功页专用布局 */
.success-content { display: flex; flex-direction: column; align-items: center; }
.btn-wa { background: #ffffff !important; color: #075e54 !important; margin-top: 25px; width: 100%; max-width: 320px; text-decoration: none; }

/* 免责声明 */
.disclaimer {
    margin-top: 35px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 0.7rem; color: #475569; line-height: 1.5;
}

/* 动画控制 */
.hidden { display: none !important; }
.fade-in { animation: fadeIn 0.6s ease forwards; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }

/* 加载扫描动画 */
.scanner-box {
    width: 70px; height: 70px; border: 3px solid rgba(16, 185, 129, 0.1); border-top: 3px solid var(--accent-green);
    border-radius: 50%; margin: 30px auto; animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.checkmark-svg { width: 70px; height: 70px; stroke: var(--accent-green); stroke-width: 3; fill: none; margin-bottom: 20px; }
.path { stroke-dasharray: 100; stroke-dashoffset: 100; animation: dash 1.5s ease-in-out forwards; }
@keyframes dash { to { stroke-dashoffset: 0; } }
.checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke: var(--accent-green);
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke: var(--accent-green);
    stroke-width: 3;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
    100% { stroke-dashoffset: 0; }
}