/* 群活码 - 前台样式（移动端优先） */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
    min-height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: #f4f5f7;
    color: #222;
    -webkit-font-smoothing: antialiased;
}

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
}

/* 欢迎文字 */
.welcome {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    letter-spacing: 1px;
    margin-bottom: 24px;
    text-align: center;
    line-height: 1.5;
    word-break: break-all;
}

/* 二维码显示区：尺寸由后台设置（默认 400 × 598） */
.qr-box {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    max-width: 92vw;
}

.qr-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 8px;
    background: #fff;
}

.qr-box.img-error .qr-img {
    opacity: 0.35;
}

/* 提示文字 */
.hint {
    margin-top: 20px;
    font-size: 16px;
    color: #666;
    letter-spacing: 2px;
    text-align: center;
    word-break: break-all;
}

/* 自动切换倒计时 */
.countdown {
    margin-top: 16px;
    font-size: 13px;
    color: #9aa0aa;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

/* 空状态 */
.empty {
    text-align: center;
    color: #999;
    padding: 48px 24px;
}

.empty-icon {
    width: 72px;
    height: 72px;
    line-height: 72px;
    margin: 0 auto 16px;
    border-radius: 16px;
    background: #e9ebef;
    font-size: 14px;
    color: #8a919f;
    letter-spacing: 1px;
}

.empty p {
    font-size: 14px;
}

/* 弹窗公告 */
.modal-mask {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal-box {
    width: 100%;
    max-width: 420px;
    max-height: 75vh;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid #f0f1f3;
    flex: 0 0 auto;
}

.modal-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
}

.modal-close {
    border: none;
    background: #f2f3f5;
    color: #666;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.modal-close:active {
    background: #e2e4e8;
}

.modal-body {
    padding: 18px;
    font-size: 15px;
    line-height: 1.8;
    color: #333;
    overflow-y: auto;
    white-space: normal;
    word-break: break-word;
}

.modal-foot {
    padding: 12px 18px 16px;
    border-top: 1px solid #f0f1f3;
    flex: 0 0 auto;
    text-align: center;
}

.modal-btn {
    display: inline-block;
    width: 100%;
    padding: 11px 0;
    border: none;
    border-radius: 10px;
    background: #2b6de8;
    color: #fff;
    font-size: 15px;
    cursor: pointer;
}

.modal-btn:disabled {
    background: #a9b5c9;
    cursor: not-allowed;
}

.modal-btn:active {
    background: #1f5cd0;
}
