/* ===== 基础重置 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { font-size: 14px; -webkit-text-size-adjust: 100%; }

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
                 "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    line-height: 1.7;
    color: #23324a;
    background: linear-gradient(160deg, #eef5ff 0%, #f7fbff 45%, #eafaf6 100%);
    overflow: hidden;
}

/* ===== 背景动画层 ===== */
.bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}
.bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ===== 弹窗卡片 ===== */
.popup {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border: 1px solid rgba(35, 50, 74, .06);
    border-radius: 20px;
    box-shadow: 0 18px 50px -12px rgba(35, 50, 74, .18),
                0 2px 8px rgba(35, 50, 74, .04);
    overflow: hidden;
    transition: opacity .25s ease, transform .25s ease;
}

.popup.is-hidden {
    opacity: 0;
    transform: translateY(12px) scale(.98);
    pointer-events: none;
}

.popup-header {
    padding: 26px 28px 0;
}
.popup-title {
    font-size: 1.28rem;
    font-weight: 700;
    letter-spacing: .3px;
    color: #16243b;
}

.popup-main {
    padding: 16px 28px 4px;
}

.popup-main p { margin-bottom: 12px; }

.tip {
    font-size: .94rem;
    color: #4a5b74;
}

/* 一行一个信息：左侧标签，右侧值 */
.row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 9px 14px;
    background: #f5f8fd;
    border-radius: 10px;
    font-size: .94rem;
}
.row span {
    flex: none;
    color: #8b9ab1;
    font-size: .84rem;
}
.row strong { font-weight: 600; }

a {
    color: #2f6fed;
    text-decoration: none;
    border-bottom: 1px solid rgba(47, 111, 237, .28);
    transition: color .15s, border-color .15s;
}
a:hover {
    color: #1b53c4;
    border-bottom-color: #1b53c4;
}

.hint {
    text-align: center;
    font-size: .82rem;
    color: #9aa8bd;
    margin-top: 18px;
}

/* ===== 底部按钮 ===== */
.popup-footer {
    padding: 18px 28px 26px;
}
.btn {
    width: 100%;
    padding: 12px 16px;
    font-size: .96rem;
    font-weight: 600;
    font-family: inherit;
    color: #fff;
    background: linear-gradient(135deg, #3b82f6, #14b8a6);
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    transition: transform .12s, box-shadow .2s, filter .2s;
    box-shadow: 0 6px 18px -6px rgba(47, 111, 237, .55);
}
.btn:hover { filter: brightness(1.05); box-shadow: 0 10px 24px -8px rgba(47, 111, 237, .6); }
.btn:active { transform: translateY(1px); }

/* ===== 页脚版权 ===== */
.copyright {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 14px;
    z-index: 1;
    text-align: center;
    font-size: .78rem;
    color: #93a2b8;
}
.copyright a {
    color: #93a2b8;
    border-bottom-color: rgba(147, 162, 184, .4);
}

/* ===== 小屏适配 ===== */
@media (max-width: 480px) {
    .popup-header { padding: 22px 20px 0; }
    .popup-main   { padding: 14px 20px 2px; }
    .popup-footer { padding: 16px 20px 22px; }
    .row { flex-direction: column; gap: 2px; }
}
