/* 
================================
HDWifiCamPro H5 下载站样式
================================
*/
:root {
    --primary: #007AFF;
    --primary-dark: #005ecb;
    --accent: #4cd964;
    --accent-warm: #FF6B35;
    --bg: #f7f9fc;
    --bg-deep: #0b1220;
    --text: #1c1c1e;
    --text-muted: #6b7280;
    --card-bg: #ffffff;
    --border: #e5e7eb;
    --shadow: 0 10px 30px rgba(16, 42, 90, 0.08);
    --shadow-strong: 0 18px 50px rgba(16, 42, 90, 0.16);
    --radius: 18px;
}

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

html, body {
    width: 100%;
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.landing {
    max-width: 640px;
    margin: 0 auto;
    padding-bottom: 40px;
}

/* --- 顶部品牌栏 --- */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: var(--bg-deep);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 50;
}

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

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.brand-name {
    font-weight: 700;
    font-size: 16px;
}

.topbar-tag {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.5px;
}

/* --- Hero --- */
.hero {
    position: relative;
    overflow: hidden;
    padding: 44px 24px 36px;
    background: linear-gradient(160deg, #0e1a34 0%, #123a6b 55%, #0b5fb3 100%);
    color: #fff;
    text-align: center;
}

.hero-glow {
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(76, 217, 100, 0.28) 0%, rgba(0, 122, 255, 0.14) 45%, transparent 70%);
    filter: blur(20px);
    pointer-events: none;
}

.hero-badge {
    position: relative;
    display: inline-block;
    font-size: 12px;
    letter-spacing: 1px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 18px;
}

.hero-title {
    position: relative;
    font-size: clamp(1.6rem, 6.4vw, 2.4rem);
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #cfe3ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    position: relative;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.82);
    max-width: 420px;
    margin: 0 auto 26px;
}

/* 步骤指示 */
.hero-points {
    position: relative;
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.hero-point {
    display: flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
}

.hp-num {
    font-weight: 800;
    color: var(--accent);
    font-size: 12px;
    letter-spacing: 0.5px;
}

/* CTA 按钮 */
.template-btn-wrap {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.template-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 420px;
    background: linear-gradient(135deg, var(--accent) 0%, #24c47f 100%);
    color: #fff;
    padding: 18px 24px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(36, 196, 127, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.template-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(36, 196, 127, 0.5);
}

.template-btn:active {
    transform: translateY(0);
}

.btn-arrow {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.cta-hint {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.5px;
}

/* --- 广告位通用 --- */
.ad-slot {
    margin: 18px 20px;
    min-width: 280px;
    min-height: 60px;
    background: #fff;
    border: 1px dashed var(--border);
    border-radius: 12px;
    display: block;
    text-align: center;
    color: #b0b7c3;
    font-size: 12px;
    overflow: hidden;
}

/* 广告 ins 元素必须是块级占满宽度，否则 availableWidth=0 */
.ad-slot > ins {
    display: block;
    width: 100% !important;
    min-width: 280px;
}

/* --- 功能特性 --- */
.features {
    padding: 36px 20px 12px;
}

.section-title {
    font-size: 1.35rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 22px;
    letter-spacing: 0.5px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 16px;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-strong);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.1), rgba(76, 217, 100, 0.1));
    color: var(--primary);
    margin-bottom: 14px;
}

.feature-icon svg {
    width: 26px;
    height: 26px;
}

.feature-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.feature-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.55;
}

/* --- 数据亮点 --- */
.stats {
    display: flex;
    gap: 10px;
    padding: 20px;
    margin: 0 20px;
    background: linear-gradient(135deg, #0e1a34, #123a6b);
    border-radius: var(--radius);
    color: #fff;
}

.stat-item {
    flex: 1;
    text-align: center;
    padding: 12px 4px;
}

.stat-item strong {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(180deg, #ffffff, #9fd8ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-item span {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.75);
}

/* --- 底部 CTA --- */
.bottom-cta {
    padding: 36px 20px 12px;
    text-align: center;
}

.bottom-cta-text {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* --- 页脚 --- */
.footer {
    padding: 24px 20px 8px;
    text-align: center;
    font-size: 12px;
    color: #9ca3af;
}

/* --- 平板/桌面 --- */
@media (min-width: 601px) {
    .feature-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .hero {
        padding: 56px 40px 48px;
    }
}