/* ============================================================
   page.css —— 手机单列布局
   仅针对 Android 浏览器 / WebView 适配（Material 3 触控规范、安全区、
   系统级深色）；按要求不做 iOS 与桌面端专项适配。
   ============================================================ */

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
}

main {
    flex: 1 0 auto;
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    padding: 8px 16px calc(32px + env(safe-area-inset-bottom));
}

/* ---------------- 顶栏 ---------------- */
.appbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    padding-top: calc(10px + env(safe-area-inset-top));
    background: rgba(16, 16, 20, 0.86);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--outline-variant);
}

.brand {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--on-surface-variant);
}

.appbar .segmented {
    margin-left: auto;
}

/* ---------------- Hero ---------------- */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 32px 0 22px;
}

.hero-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    border: 1px solid var(--outline-variant);
}

.hero-title {
    margin-top: 14px;
    font-size: 30px;
    font-weight: 500;
    letter-spacing: -0.5px;
    line-height: 1.15;
}

.hero-desc {
    margin-top: 8px;
    font-size: 14px;
    color: var(--on-surface-variant);
}

.hero-meta {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    font-size: 12.5px;
    color: var(--on-surface-variant);
}

.dot {
    opacity: 0.5;
}

/* ---------------- 主按钮 ---------------- */
#downloadBtn {
    margin-bottom: 16px;
}

main>.card {
    margin-bottom: 12px;
}

/* ---------------- 功能列表 ---------------- */
.feats {
    list-style: none;
    margin-top: 12px;
    display: grid;
    gap: 10px;
}

.feats li {
    position: relative;
    padding-left: 22px;
    font-size: 14px;
}

.feats li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 0.62em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--on-surface-variant);
}

/* ---------------- 哈希 ---------------- */
.hash-box {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hash {
    flex: 1 1 auto;
    min-width: 0;
    padding: 10px 12px;
    background: var(--surface-2);
    border-radius: var(--shape-md);
    font-size: 11.5px;
    line-height: 1.5;
    word-break: break-all;
    color: var(--on-surface-variant);
}

.btn-copy {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 0 16px;
    font-size: 13px;
}

.hash-result {
    margin-top: 12px;
    font-size: 13px;
    font-weight: 500;
}

.hash-result.ok {
    color: var(--success);
}

.hash-result.err {
    color: var(--danger);
}

.hash-result.info {
    color: var(--on-surface-variant);
    font-weight: 400;
}

/* ---------------- 赞助 ---------------- */
.sponsor {
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.sponsor-note {
    flex: 1 1 160px;
    min-width: 0;
    font-size: 13px;
    color: var(--on-surface-variant);
}

/* ---------------- 声明 ---------------- */
.legal-list {
    list-style: none;
    margin-top: 12px;
    display: grid;
    gap: 9px;
}

.legal-list li {
    position: relative;
    padding-left: 16px;
    font-size: 12.5px;
    line-height: 1.7;
    color: var(--on-surface-variant);
}

.legal-list li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 0.72em;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--outline);
}

/* ---------------- 页脚 ---------------- */
footer {
    flex: 0 0 auto;
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    padding: 16px 16px calc(24px + env(safe-area-inset-bottom));
    display: flex;
    justify-content: center;
    gap: 6px;
    border-top: 1px solid var(--outline-variant);
    color: var(--on-surface-variant);
    font-size: 12px;
}

/* ---------------- 窄屏微调 ---------------- */
@media (max-width: 360px) {
    .hero-title {
        font-size: 26px;
    }

    .sponsor {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ---------------- 404 ---------------- */
.notfound {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 32px 16px;
    text-align: center;
}

.notfound-code {
    font-size: 64px;
    font-weight: 500;
    letter-spacing: -1px;
    line-height: 1;
}

.notfound-text {
    font-size: 14px;
    color: var(--on-surface-variant);
}
