/* 前台布局微调（不改变原站视觉逻辑） */

/* 顶栏 logo：使用后台 site_logo，限制高度避免撑破导航 */
.navbar .logo {
    flex-shrink: 0;
    max-height: 80px;
    line-height: 0;
}

.navbar .logo img {
    width: auto;
    max-width: 200px;
    max-height: 70px;
    height: auto;
    object-fit: contain;
    display: block;
}

/* 内容区水平居中（须保留 margin:auto，勿写成仅 0 20px） */
.vip-benefit-section,
.promotion-section,
.HELP-help-section,
.KEFU-service-section {
    margin-left: auto !important;
    margin-right: auto !important;
    margin-bottom: 40px;
    width: calc(100% - 40px);
    max-width: 1440px;
    box-sizing: border-box;
}

.vip-table .vip-icon {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    object-fit: contain;
}

/* 功能卡片叠在 Banner 底部（与原站一致） */
.feature-cards {
    position: relative;
    z-index: 5;
    margin-top: 0 !important;
    margin-bottom: 24px;
    padding: 0 10px !important;
}

.banner {
    margin-bottom: 0;
}

/* 桌面登录弹窗：验证码数字高亮 */
.login-popup #loginCode {
    font-size: 25px;
    color: #ff4d4f;
    font-weight: 700;
    letter-spacing: 1px;
}

.login-popup .benefit-list {
    text-align: center;
}

.login-popup .refresh-code-btn {
    display: inline-flex;
    margin: 10px auto 0;
}

.login-popup .refresh-btn {
    margin-top: 8px;
    min-width: 220px;
}

.refresh-code-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 16px;
    border: 1px solid rgba(201, 184, 150, 0.5);
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.25);
    color: #c9b896;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.refresh-code-btn:hover {
    background: rgba(201, 184, 150, 0.15);
    color: #f9e4bf;
}

.refresh-code-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.refresh-code-btn.is-loading i {
    animation: wechat-refresh-spin 0.8s linear infinite;
}

.wechat-refresh-code-btn {
    display: flex;
    width: calc(100% - 40px);
    margin: 12px auto 0;
}

.VIP-member-section {
    width: calc(100% - 40px) !important;
    max-width: 1440px;
    margin-left: auto !important;
    margin-right: auto !important;
}

@media (max-width: 1200px) {
    .VIP-member-container {
        flex-direction: column;
    }

    .VIP-sidebar {
        width: 100%;
    }
}
@keyframes wechat-refresh-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 移动登录弹窗（样式在 m.css，此处仅补全层叠） */
.wechat-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 3000;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
}

.wechat-modal[style*="flex"] {
    display: flex !important;
}

@media (max-width: 1200px) {
    .feature-cards {
        flex-wrap: wrap;
    }

    .feature-card {
        flex: 1 1 calc(33.333% - 10px);
        min-width: 180px;
    }

    .nav-menu {
        gap: 24px !important;
    }
}
