/* 微信分支整页遮罩容器 */
#wechat-content {
    position: fixed;
    inset: 0;
    /* top:0; right:0; bottom:0; left:0 */
    z-index: 10000;
    display: none;
    /* JS 控制显示 */
}

/* 全屏遮罩层：阻止所有点击、滚动 */
#overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    z-index: 10001;
    display: none;
    pointer-events: all;
    /* 关键：拦截底部点击 */
    cursor: default;
}

/* 引导提示图层 */
#weixin-tip-box {
    position: absolute;
    top: 0%;
    right: 0%;
    /*transform: translateX(-50%);*/
    z-index: 10002;
    display: none;
    text-align: center;
}

/* 引导图样式 */
#weixin-tip-box img {
    width: 75vw;
    max-width: 320px;
    height: auto;
    object-fit: contain;
    user-select: none;
}

/* 页脚固定底部 */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #111;
    padding: 1rem 1rem calc(env(safe-area-inset-bottom, 0px) + 1rem);
    text-align: center;
    font-size: 0.85rem;
    color: #fff;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    z-index: 10;
}


/* ========== Reset & Base ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

html,
body {
    height: auto;
    overflow: hidden;
    /* 重要：取消 100vh */
}

body {
    background: #fafbfc;
    color: #333;
    overflow: auto;
    /* 重要：允许滚动 */
    display: block;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ========== Header ========== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    /* 比大部分内容高 */
    background: #fff;
    padding: .75rem 1rem;
    border-bottom: 1px solid #eee;
    box-shadow: 0 1px 6px rgba(0, 0, 0, .06);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    height: 105px;
    max-width: 210px;
    object-fit: contain
}

/* 主体容器垂直 + 水平完全居中 */
.main-content {
    flex: 1;
    /* 占满剩余空间 */
    display: flex;
    justify-content: center;
    /* 水平居中 */
    align-items: center;
    /* 垂直居中 */
    min-height: calc(100vh - 100px);
    /* 减去 header/footer 高度 */
    padding: 2rem 1rem;
    box-sizing: border-box;
}

/* 内部内容容器保持自适应宽度 */
.container {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    max-width: 900px;
    width: 100%;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid #f3f3f3;
    text-align: center;
}

.main-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: #FFC361;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
}

/* ========== Cards ========== */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.25rem;
    text-align: left;
}

.article-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .10);
    border: 1px solid #f3f3f3;
    transition: transform .2s ease, box-shadow .2s ease;
    /* 限定属性 */
    cursor: pointer;
}

.article-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, .12);
}

.article-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: .6rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.article-desc {
    color: #666;
    line-height: 1.6;
    font-size: .95rem
}

/* ========== CTA Button ========== */
.cta-button {
    background: #FFC361;
    color: #fff;
    border: none;
    padding: .8rem 2rem;
    border-radius: 999px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
    box-shadow: 0 6px 20px rgba(255, 195, 97, .3);
    display: block;
    margin: 1.25rem auto 0;
    text-decoration: none;
    text-align: center;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(255, 195, 97, .4)
}

.cta-button:active {
    transform: translateY(0)
}

/* ========== 非微信分支用的安全验证遮罩（若没采用“早返回”也能显示） ========== */
/* 如果你在 index.php 中选择不“早返回”，而是完整输出页面 + 这个遮罩，请保留以下样式 */
#security-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    /* 纯黑不透明 */
    display: flex;
    /* 默认显示；若要默认隐藏可改为 display:none */
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.overlay-box {
    text-align: center;
    color: #fff;
    padding: 24px;
    border-radius: 12px;
    max-width: 360px;
}

.overlay-box h1 {
    font-size: 1.5rem;
    line-height: 1.4;
    margin: 0 0 1rem;
    font-weight: 600;
}

.overlay-box p {
    color: #ccc;
    font-size: 0.95rem;
    margin-bottom: 4rem;
    line-height: 1.5;
    text-align: left;
}

.verify-btn {
    width: 100%;
    display: inline-block;
    background: linear-gradient(270deg, #fc8d56 10%, #ff6101);
    color: #fff;
    padding: 0.8rem 2rem;
    border-radius: 2px;
    font-weight: normal;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .3);
    transition: opacity .2s ease, transform .2s ease, box-shadow .2s ease;
}

/* 品牌特定样式 */
.verify-btn.brand-anto {
    background: linear-gradient(270deg, #fc8d56 10%, #ff6101);
}

.verify-btn.brand-foca {
    background: linear-gradient(270deg, #fc8d56 10%, #072EA9);
}

.verify-btn.brand-fd {
    background: linear-gradient(270deg, #fc8d56 10%, #dc0003);
}

.verify-btn.brand-hs {
    background: linear-gradient(270deg, #fc8d56 10%, #ff9c00);
}

.verify-btn.brand-hx {
    background: linear-gradient(to right, #6b6b72 0%, #4e525d 100%);
}

.verify-btn.brand-jx {
    background: linear-gradient(270deg, #fc8d56 10%, #ff6101);
}

.verify-btn.brand-mj {
    background: linear-gradient(270deg, #fc8d56 10%, #FFAD0A);
}

.verify-btn.brand-hc {
    background: linear-gradient(270deg, #fc8d56 10%, #d54a37);
}

.verify-btn.brand-huaxin {
    background: linear-gradient(270deg, #fc8d56 10%, #FFC361);
}

.verify-btn:hover {
    opacity: .9
}

.verify-btn:active {
    transform: scale(.97)
}

.note {
    margin-top: 1rem;
    font-size: 1rem;
    color: #ccc;
}

/* ========== Responsive ========== */
@media (max-width:768px) {
    .logo {
        height: 70px;
        max-width: 140px
    }

    .container {
        padding: 1rem;
        border-radius: 12px
    }

    .main-title {
        font-size: 1.6rem;
        margin-bottom: 1rem
    }

    .article-card {
        padding: 1rem
    }

    .article-title {
        font-size: 1rem
    }

    .article-desc {
        font-size: .9rem
    }

    .cta-button {
        padding: .75rem 1.75rem;
        font-size: 1rem
    }
}

/* ========== 无动画偏好 ========== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important
    }
}