@charset "utf-8";
/* ============================================================
   巨信 ZChat · 系统维护等待页样式
   纯静态、自包含，不依赖任何外部资源（维护期间应用资源可能不可用）
   ------------------------------------------------------------
   最低兼容 iOS 5 (Safari 5.1) / Android 2.3 的内置浏览器，
   因此刻意避开以下特性：
     · CSS 变量 var()            —— iOS 9.3+ 才支持
     · calc()                    —— iOS 6+ 才支持
     · vh / vw 视口单位          —— iOS 6+ 才支持
     · 现代 flexbox + gap        —— iOS 7+ 才支持
     · CSS Grid / @supports      —— 更晚
     · rem 单位                  —— 一律改用 px
   布局使用 display:table / table-cell（iOS 1 起即支持）做垂直居中；
   圆角、阴影、动画统一带 -webkit- 前缀。
   ============================================================ */

* {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    background: #F2F2F7;
    background: -webkit-linear-gradient(top, #F8F8FB 0%, #EBEBF0 100%);
    background: linear-gradient(to bottom, #F8F8FB 0%, #EBEBF0 100%);
    color: #1C1C1E;
    font-family: -apple-system, "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Heiti SC", "STHeiti", "Microsoft YaHei", sans-serif;
    font-size: 15px;
    line-height: 1.6;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
}

/* ---------- 垂直 + 水平居中（iOS5 上最可靠的做法） ----------
   display:table / table-cell 从 iOS 1 起就支持，比 -webkit-box 垂直居中稳。
   table-layout:fixed 是防御性设置：CSS 表格的自动布局会参考内容的 max-content
   宽度，内容一旦变宽就可能把表格顶出父容器，固定布局则严格按 width:100% 分配。 */
.center {
    display: table;
    table-layout: fixed;
    width: 100%;
    height: 100%;
}

.center-inner {
    display: table-cell;
    vertical-align: middle;
    text-align: center;
}

.shell {
    padding: 28px 16px;
    text-align: center;
}

/* ---------- 卡片 ----------
   用「块级 + max-width + margin:0 auto」居中。
   刻意不用 display:inline-block：它和 table-cell 搭配时宽度由内容反推，
   容易出现意外行为；块级元素直接吃满父容器再靠 max-width 收窄，行为最可预期。
   实测 320 / 375 / 768 / 1200 四档宽度下均无横向溢出。 */
.card {
    display: block;
    max-width: 520px;
    margin: 0 auto;
    padding: 36px 28px 26px;
    background: #FFFFFF;
    border: 1px solid #E5E5EA;
    -webkit-border-radius: 16px;
    border-radius: 16px;
    -webkit-box-shadow: 0 6px 24px rgba(0, 0, 0, 0.07);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.07);
    text-align: center;
}

/* ---------- 加载指示器 ---------- */
.spinner {
    width: 44px;
    height: 44px;
    margin: 0 auto 22px;
    border: 3px solid #E5E5EA;
    border-top-color: #007AFF;
    -webkit-border-radius: 50%;
    border-radius: 50%;
    -webkit-animation: zchat-spin 0.9s linear infinite;
    animation: zchat-spin 0.9s linear infinite;
}

@-webkit-keyframes zchat-spin {
    from { -webkit-transform: rotate(0deg); }
    to   { -webkit-transform: rotate(360deg); }
}

@keyframes zchat-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ---------- 文案 ---------- */
.title {
    margin: 0 0 12px;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: 0.5px;
    color: #1C1C1E;
}

.desc {
    margin: 0 0 22px;
    font-size: 15px;
    line-height: 1.7;
    color: #3A3A3C;
}

/* ---------- 维护时间 ---------- */
.schedule {
    margin: 0 0 22px;
    padding: 14px 16px;
    background: #F2F2F7;
    -webkit-border-radius: 12px;
    border-radius: 12px;
    font-size: 15px;
    line-height: 1.6;
    color: #1C1C1E;
}

.schedule b {
    color: #007AFF;
    font-weight: 600;
}

/* ---------- QQ 群 ---------- */
.qq {
    padding: 18px 16px 14px;
    background: #F2F2F7;
    -webkit-border-radius: 12px;
    border-radius: 12px;
}

.qq-label {
    margin-bottom: 8px;
    font-size: 13px;
    color: #8E8E93;
}

.qq-num {
    display: block;
    width: 100%;
    margin: 0;
    padding: 2px 0;
    border: 0;
    background: transparent;
    font-family: "SF Mono", Menlo, Consolas, "Courier New", monospace;
    font-size: 26px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 2px;
    color: #007AFF;
    text-align: center;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    -webkit-border-radius: 0;
    border-radius: 0;
}

.qq-tip {
    margin-top: 6px;
    font-size: 12px;
    color: #C7C7CC;
}

/* ---------- 页脚 ---------- */
.foot {
    margin: 22px 0 0;
    font-size: 13px;
    color: #8E8E93;
}

.foot a {
    color: #007AFF;
    text-decoration: none;
}

.foot a:active {
    opacity: 0.5;
}

/* ============================================================
   小屏适配（手机竖屏）
   ============================================================ */
@media screen and (max-width: 480px) {
    body {
        font-size: 14px;
    }

    .shell {
        padding: 20px 14px;
    }

    .card {
        padding: 28px 20px 22px;
        -webkit-border-radius: 14px;
        border-radius: 14px;
    }

    .spinner {
        width: 38px;
        height: 38px;
        margin-bottom: 18px;
    }

    .title {
        font-size: 19px;
    }

    .desc {
        font-size: 14px;
    }

    .schedule {
        padding: 12px 14px;
        font-size: 14px;
    }

    .qq-num {
        font-size: 23px;
        letter-spacing: 1px;
    }
}

/* 横屏手机 / 矮屏：减少上下留白，避免内容被挤出屏幕 */
@media screen and (max-height: 560px) {
    .shell {
        padding: 16px 14px;
    }

    .card {
        padding: 24px 20px 18px;
    }

    .spinner {
        width: 34px;
        height: 34px;
        margin-bottom: 14px;
    }

    .desc {
        margin-bottom: 16px;
    }

    .schedule {
        margin-bottom: 16px;
    }
}

/* ============================================================
   大屏（电脑）微调
   ============================================================ */
@media screen and (min-width: 900px) {
    .card {
        padding: 44px 40px 32px;
    }

    .title {
        font-size: 24px;
    }
}
