﻿/* ============================================================
   云黑管理系统 · 前台全局样式（重设计版）
   保留原有 class 结构，仅升级视觉体系
   主色：翡翠绿 #10b981 / #059669   中性：slate 系
   ============================================================ */
* {
    padding: 0;
    margin: 0;
    outline: none;
    box-sizing: border-box;
}

p {
    font-family: inherit;
}

::-webkit-scrollbar {
    display: none
}

input {
    outline: none;
}

a {
    color: #334155;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

a,
button,
input,
optgroup,
select,
textarea {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

a:active {
    background-color: transparent;
    cursor: pointer;
}

a:focus {
    outline: none;
    -moz-outline: none;
}

body {
    width: 100%;
    max-width: 480px;
    min-height: 100vh;
    margin: 0 auto;
    background-color: #f3f5f4;
    background-image: linear-gradient(180deg, #e8f5ee 0%, #f3f5f4 220px);
    background-repeat: no-repeat;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
    color: #334155;
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ---------- 顶部图片 ---------- */
.top-img {
    width: 94%;
    margin: 12px auto 0;
}

.top-img img {
    width: 100%;
    border-radius: 14px;
    box-shadow: 0 8px 24px -12px rgba(5, 150, 105, .35);
}

header {
    width: 100%;
    height: 44px;
    background-color: #f0fdf4;
}

.head-bg {
    width: 100%;
    height: 300px;
}

.head-bg img {
    width: 100%;
    height: 100%;
}

/* ---------- 区块标题 ---------- */
.xqy-center-title {
    position: relative;
    text-align: center;
    width: 70%;
    height: 40px;
    line-height: 40px;
    margin: 6px auto 14px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 2px;
    color: #334155;
}

.xqy-center-title:before {
    position: absolute;
    top: 20px;
    left: 0;
    content: "";
    width: 100%;
    height: 1px;
    background-color: #d1d5db;
}

.xqy-center-title:after {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    content: "最新骗子数据";
    height: 40px;
    padding: 0 16px;
    background-color: #ffffff;
    white-space: nowrap;
    font-size: 14px;
    letter-spacing: 2px;
}

/* ---------- 底部导航 ---------- */
footer {
    position: fixed;
    width: 100%;
    max-width: 480px;
    height: 56px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(255, 255, 255, .92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(15, 23, 42, .06);
    border-radius: 16px 16px 0 0;
    z-index: 99;
    box-shadow: 0 -4px 24px -12px rgba(15, 23, 42, .15);
}

.footer-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 12px;
    height: 100%;
}

.footer-nav a {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #94a3b8;
    gap: 3px;
    line-height: 1;
    transform-origin: center bottom;
    -webkit-tap-highlight-color: transparent;
    transition: transform .32s cubic-bezier(.22, 1.25, .36, 1), color .2s ease;
}

.footer-nav a span:nth-child(1) {
    width: 20px;
    height: 20px;
    font-size: 18px;
    text-align: center;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto;
    transition: transform .32s cubic-bezier(.34, 1.56, .64, 1);
}

.footer-nav a span:nth-child(2) {
    display: inline-block;
    transform-origin: center center;
    transition: transform .32s cubic-bezier(.34, 1.56, .64, 1);
}

/* 选中项：图标与文字放大 */
.footer-nav a.active span:nth-child(1) {
    transform: translateY(-2px) scale(1.2);
}

.footer-nav a.active span:nth-child(2) {
    transform: scale(1.08);
}

.footer-nav .active {
    color: #059669;
    font-weight: 600;
}

/* 按压缩小，松开阻尼回弹 */
.footer-nav a:active {
    transform: scale(.86);
    transition: transform .12s cubic-bezier(.3, .9, .5, 1), color .2s ease;
}

/* ---------- 查询结果弹层 ---------- */
.msgs {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    padding: 4% 4% 80px;
    pointer-events: none;
    overflow-y: auto;
    max-height: 100vh;
}

.msgs .alerts {
    pointer-events: auto;
}

.alerts {
    width: 100%;
    max-width: 440px;
    max-height: 92vh;
    margin: 0;
    background-color: #fff;
    border-radius: 16px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 24px 60px -20px rgba(15, 23, 42, .35);
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

.alerts_top {
    padding: 22px 16px;
    text-align: center;
    background: linear-gradient(135deg, #0d9488 0%, #10b981 60%, #34d399 100%);
    color: #fff;
}

.alerts_top h3 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 4px;
    letter-spacing: 1px;
}

.alerts_top p {
    font-size: 12px;
    opacity: .85;
}

.alerts_top .btngb {
    display: block;
    position: absolute;
    top: 4px;
    right: 5px;
}

.alerts_text {
    padding: 18px 16px;
    overflow-wrap: break-word;
    word-break: break-word;
    min-width: 0;
}

.alerts_text p {
    vertical-align: middle;
    font-size: 15px;
    color: #334155;
}

.alerts_text p:nth-child(5) {
    margin-top: 6px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px;
}

.alerts_text img {
    width: 100px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    vertical-align: middle;
    margin-bottom: 10px;
}

.alerts .btnw {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    padding: 6px 12px 16px;
}

.alerts .btnw a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 0;
    min-width: 0;
    white-space: nowrap;
    padding: 8px 6px;
    background-color: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
    border-radius: 999px;
    font-size: 13px;
    text-decoration: none;
    transition: all .2s ease;
}

.alerts .btnw a:active {
    transform: scale(.96);
    background-color: #d1fae5;
}

/* ---------- 版权 ---------- */
.xq-copyright {
    text-align: center;
    padding: 40px 0 90px;
}

.xq-copyright a {
    text-align: center;
    color: #94a3b8;
    font-size: 12px;
}

/* ---------- 公告条 ---------- */
.ggbox {
    display: flex;
    width: 94%;
    height: 44px;
    line-height: 44px;
    margin: 0 auto 14px;
    background-color: #fff;
    border-radius: 12px;
    align-items: center;
    padding: 0 6px;
    border: 1px solid rgba(15, 23, 42, .05);
    box-shadow: 0 4px 16px -8px rgba(15, 23, 42, .10);
}

.ggbox img {
    padding: 0 10px;
    height: 24px;
    width: auto;
    flex-shrink: 0;
}

.ggbox .gg-text {
    margin: 0 auto;
    width: calc(100% - 60px);
    height: 40px;
    line-height: 40px;
    overflow: hidden;
    white-space: nowrap;
    color: #475569;
    font-size: 13px;
}

/* 空数据占位 */
.yh-empty {
    text-align: center;
    color: #94a3b8;
    font-size: 13px;
    padding: 48px 0;
}

/* ============================================================
   懒加载：全屏模糊蒙版 + 浅绿色脉冲圆点
   ============================================================ */
.xq-loading-mask {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 880;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, .55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, visibility .2s ease;
}

.xq-loading-mask.show {
    opacity: 1;
    visibility: visible;
}

.xq-loading-dot {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #6ee7b7;
    animation: xqDotBreath 1.4s ease-in-out infinite;
}

/* 双环交错扩散，保证任意时刻都有 ripple 在向外扩散，视觉上持续循环 */
.xq-loading-dot::before,
.xq-loading-dot::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, .35);
    animation: xqLoadingPulse 1.4s linear infinite;
}

.xq-loading-dot::after {
    animation-delay: .7s;
}

@keyframes xqLoadingPulse {
    100% {
        box-shadow: 0 0 0 90px rgba(16, 185, 129, 0);
    }
}

@keyframes xqDotBreath {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.08);
    }
}

/* ============================================================
   按钮加载态：转圈 + 禁止重复点击
   ============================================================ */
.xq-btn-loading {
    pointer-events: none;
    opacity: .72;
    cursor: default;
}

.xq-btn-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    box-sizing: border-box;
    border: 2px solid rgba(15, 23, 42, .18);
    border-top-color: currentColor;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: -2px;
    animation: xqBtnSpin .7s linear infinite;
}

@keyframes xqBtnSpin {
    100% {
        transform: rotate(360deg);
    }
}
