/* 物证链 APP 下载页 - 参考微信下载页风格 */
:root {
    --wzl-brand: #B11C1E;
    --wzl-brand-dark: #8B1518;
    --wzl-brand-light: #D4282B;
    --wzl-text: #1a1a1a;
    --wzl-text-muted: #666;
    --wzl-card-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body.wzl-app-download {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: #fff;
    color: var(--wzl-text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.wzl-ad-page {
    min-height: 100vh;
}

/* 顶部导航 */
.wzl-ad-topbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 16px 32px;
    gap: 16px;
}

.wzl-ad-topbar a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 14px;
    transition: opacity 0.2s;
}

.wzl-ad-topbar a:hover {
    opacity: 0.8;
    color: #fff;
}

.wzl-ad-topbar .sep {
    color: rgba(255, 255, 255, 0.5);
}

/* Hero 区域 */
.wzl-ad-hero {
    position: relative;
    background: linear-gradient(160deg, var(--wzl-brand-light) 0%, var(--wzl-brand) 45%, var(--wzl-brand-dark) 100%);
    padding: 72px 24px 100px;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.wzl-ad-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.06) 0%, transparent 40%);
    pointer-events: none;
}

.wzl-ad-hero-curve {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 60px;
    line-height: 0;
}

.wzl-ad-hero-curve svg {
    width: 100%;
    height: 60px;
    display: block;
}

.wzl-ad-logo-wrap {
    position: relative;
    z-index: 1;
    margin-bottom: 12px;
}

.wzl-ad-logo {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    background: #fff;
    padding: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    object-fit: contain;
}

.wzl-ad-title {
    position: relative;
    z-index: 1;
    font-size: 42px;
    font-weight: 600;
    letter-spacing: 4px;
    margin-bottom: 8px;
}

.wzl-ad-subtitle {
    position: relative;
    z-index: 1;
    font-size: 15px;
    opacity: 0.88;
    margin-bottom: 36px;
}

/* 更新日志 */
.wzl-ad-changelog {
    position: relative;
    z-index: 1;
    max-width: 420px;
    margin: 0 auto 40px;
    text-align: left;
}

.wzl-ad-changelog-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 14px;
}

.wzl-ad-changelog-item:last-of-type {
    border-bottom: none;
}

.wzl-ad-changelog-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wzl-ad-changelog-tag {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.2);
    font-size: 12px;
}

.wzl-ad-changelog-more {
    display: inline-block;
    margin-top: 12px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    text-decoration: none;
}

.wzl-ad-changelog-more:hover {
    color: #fff;
}

/* 平台下载图标 */
.wzl-ad-platforms {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 28px 36px;
    max-width: 720px;
    margin: 0 auto 28px;
}

.wzl-ad-platform {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    text-decoration: none;
    color: #fff;
    transition: transform 0.2s;
}

.wzl-ad-platform:hover {
    transform: translateY(-3px);
    color: #fff;
}

.wzl-ad-platform.disabled {
    cursor: default;
    opacity: 0.65;
}

.wzl-ad-platform.disabled:hover {
    transform: none;
}

.wzl-ad-platform-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.wzl-ad-platform:hover .wzl-ad-platform-icon {
    background: rgba(255, 255, 255, 0.28);
}

.wzl-ad-platform-icon svg {
    width: 28px;
    height: 28px;
    fill: #fff;
}

.wzl-ad-platform-label {
    font-size: 13px;
    white-space: nowrap;
}

/* 次要下载按钮 */
.wzl-ad-pills {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 8px;
}

.wzl-ad-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 13px;
    text-decoration: none;
    transition: background 0.2s;
}

.wzl-ad-pill:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

/* 功能网格 */
.wzl-ad-grid-section {
    padding: 48px 24px 64px;
    max-width: 960px;
    margin: 0 auto;
}

.wzl-ad-grid-title {
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    color: var(--wzl-text);
    margin-bottom: 32px;
}

.wzl-ad-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.wzl-ad-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 28px 16px;
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--wzl-card-shadow);
    border: 1px solid #f0f0f0;
    text-decoration: none;
    color: var(--wzl-text);
    transition: box-shadow 0.2s, transform 0.2s;
    min-height: 120px;
}

.wzl-ad-card:hover {
    box-shadow: 0 6px 20px rgba(177, 28, 30, 0.12);
    transform: translateY(-2px);
    color: var(--wzl-brand);
}

.wzl-ad-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 12px;
}

.wzl-ad-card-label {
    font-size: 14px;
    text-align: center;
}

/* 页脚 */
.wzl-ad-footer {
    text-align: center;
    padding: 24px;
    color: var(--wzl-text-muted);
    font-size: 12px;
    border-top: 1px solid #f0f0f0;
}

.wzl-ad-footer a {
    color: var(--wzl-text-muted);
    text-decoration: none;
}

.wzl-ad-footer a:hover {
    color: var(--wzl-brand);
}

/* Toast 提示 */
.wzl-ad-toast {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 14px;
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
    z-index: 100;
    pointer-events: none;
}

.wzl-ad-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* 响应式 */
@media (max-width: 768px) {
    .wzl-ad-hero {
        padding: 56px 16px 80px;
    }

    .wzl-ad-title {
        font-size: 32px;
        letter-spacing: 2px;
    }

    .wzl-ad-platforms {
        gap: 20px 24px;
    }

    .wzl-ad-platform-icon {
        width: 48px;
        height: 48px;
    }

    .wzl-ad-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }

    .wzl-ad-card {
        padding: 20px 10px;
        min-height: 100px;
    }

    .wzl-ad-topbar {
        padding: 12px 16px;
    }
}

@media (max-width: 480px) {
    .wzl-ad-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .wzl-ad-platforms {
        gap: 16px 20px;
    }

    .wzl-ad-platform-label {
        font-size: 12px;
    }
}
