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

/* 根字号：卡片内所有字号都是 rem，统一由这里缩放。
   14px → 16px = 框内文字整体放大约 14%（正文 13.2px → 15.0px，标签 11.8px → 13.4px）。
   卡片宽度仍是 420px 不变，所以只是字变大、换行稍多。
   注意：框外的 .copyright 已改用固定 px，不受这里影响。 */
html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;   /* 水平居中走 flex；垂直居中交给 .popup 的 margin: auto */
    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-x: 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;
    /* 垂直居中。用 margin:auto 而不是 body 的 align-items:center：
       卡片高于视口时，align-items:center 会让上下两侧同时溢出、顶部滚不到；
       auto 边距在无剩余空间时归零，卡片从顶部开始，可正常滚动看到全部内容。 */
    margin: auto;
    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;
}

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

.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; }

/* 值后面紧跟的一句附注。
   字号/颜色不用重写：它本身也是 .row 里的 span，自动套用「访问方式」标签那套灰字小号，
   以后调标签字号时这句会跟着一起变。这里只做两件事：
   1) 去掉从 <strong> 继承来的粗体，粗细与标签保持一致；
   2) white-space: nowrap 保证括号里整句话不被拆开 —— 放得下就贴在域名后面，
      放不下就整句移到下一行、与域名左对齐（420px 卡片下基本是后者）。 */
.row-note {
    font-weight: 400;
    white-space: nowrap;
}

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;
}

/* Ctrl + D 收藏本页 —— 只加粗，不加底色边框 */
.popup-main .hint {
    margin-top: 18px;
    text-align: center;
    font-size: .88rem;
    font-weight: 600;
    color: #59677d;
}

/* ===== 底部按钮（纯装饰，不响应点击）===== */
.popup-footer {
    padding: 18px 28px 26px;
}
.btn {
    width: 100%;
    padding: 12px 16px;
    font-size: .96rem;
    font-weight: 600;
    font-family: inherit;
    color: #fff;
    text-align: center;   /* 它现在是 div，必须显式居中，否则文字靠左 */
    background: linear-gradient(135deg, #3b82f6, #14b8a6);
    border: 0;
    border-radius: 12px;
    cursor: default;      /* 不给"能点"的暗示 */
    user-select: none;
    box-shadow: 0 6px 18px -6px rgba(47, 111, 237, .55);
}

/* ===== 页脚版权 ===== */
.copyright {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 14px;
    z-index: 1;
    text-align: center;
    /* 用固定 px 而非 rem：页脚在卡片外面，
       根字号调大时它不该跟着变（原来 .78rem ≈ 10.9px，这里锁 11px）。 */
    font-size: 11px;
    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; }
}
