.header {
    background: var(--color-bg-elevated, #fff);
    border-bottom: 1px solid var(--color-border-secondary, #f0f0f0);
    position: relative;
    z-index: var(--z-header, 200);
}

.header_container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.header_left {
    display: flex;
    align-items: center;
}

.header_avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.header_avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header_right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 40px;
    padding: 0 24px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.header_btn:hover {
    border-color: var(--color-primary, #4572f7);
    color: var(--color-primary, #4572f7);
}

.header_btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0) 0%, rgba(69, 114, 247, 0.15) 50%, rgba(255, 255, 255, 0) 100%);
    transition: left 0.4s ease;
    pointer-events: none;
}

.header_btn:hover::before {
    left: 100%;
}

.header_btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    transition: fill 0.3s ease;
}

.header_btn span {
    position: relative;
    z-index: 1;
}

.header_btn_primary {
    background: var(--color-primary, #4572f7);
    border-color: var(--color-primary, #4572f7);
    color: #fff;
    cursor: pointer;
}

.header_btn_primary:hover {
    background: var(--color-primary-hover, #3461e0);
    border-color: var(--color-primary-hover, #3461e0);
    color: #fff;
}

.header_btn_primary::before {
    background: linear-gradient(45deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0) 100%);
}

.header_btn_primary svg {
    fill: #fff;
}

.site-notice {
    margin-top: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.notice-text {
    margin: 0;
    font-size: 12px;
    color: var(--color-text-tertiary, rgba(0, 0, 0, 0.45));
    line-height: 1.5;
}

.notice-highlight {
    color: var(--color-primary, #4572f7);
}

.merchant-info {
    max-width: var(--max-width, 1400px);
    margin: 32px auto 20px;
    padding: 0 40px;
    box-sizing: border-box;
}

.merchant-info-container {
    background: #fff;
    border-radius: 8px;
    padding: 16px 40px;
    display: flex;
    align-items: center;
    gap: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    width: 100%;
    box-sizing: border-box;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.info-icon.verified {
    color: #52c41a;
}

.info-icon.qq {
    color: #12b7f5;
}

.info-label {
    font-size: 14px;
    color: #666;
}

.info-value {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.info-value.verified {
    color: #52c41a;
}

.info-icon.recommend {
    color: #ff6b00;
}

.recommend-item {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.recommend-scroll {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 22px;
}

.recommend-content {
    height: 100%;
    white-space: nowrap;
    position: relative;
}

.recommend-text {
    position: absolute;
    top: 0;
    left: 100%;
    height: 100%;
    font-size: 14px;
    color: #333;
    font-weight: 500;
    line-height: 22px;
    white-space: nowrap;
}

.recommend-text::before {
    content: '●';
    color: #f59e0b;
    margin-right: 8px;
    font-size: 8px;
    vertical-align: middle;
}

/* 第一个文字：立即开始滚动 */
.recommend-text:first-child {
    padding-right: 50%;
    animation: rollText 20s linear infinite;
}

/* 第二个文字：延迟10秒开始（第一个滚动到一半） */
.recommend-text:nth-child(2) {
    padding-right: 50%;
    animation: rollText 20s linear 10s infinite;
}

@keyframes rollText {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-200%);
    }
}

.recommend-scroll:hover .recommend-text,
.recommend-scroll:focus-within .recommend-text {
    animation-play-state: paused;
}

/* ==========================================
   右侧浮动按钮样式
   ========================================== */
.bangz_box {
    position: fixed !important;
    right: 0 !important;
    left: auto !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 45;
}

.bangz_box .item {
    padding: 10px;
    background: linear-gradient(45deg, #3798f7, #3369ff);
    box-shadow: 0 0.093333rem 0.133333rem 0 rgb(54 144 248 / 23%);
    border-radius: 7px 0 0 7px !important;
    margin-top: 25px;
}

.bangz_box .item:first-child {
    background: linear-gradient(45deg, #fd0b27, #ff4a4a);
    box-shadow: 0 7px 10px 0 rgb(255 113 19 / 23%);
}

.bangz_box .item:nth-child(2) {
    background: linear-gradient(45deg, #f737e8, #3369ff);
    box-shadow: 0 0.093333rem 0.133333rem 0 rgb(54 144 248 / 23%);
}

.bangz_box .item a {
    text-decoration: none;
    text-align: center;
    color: #FFF;
}

.bangz_box span {
    margin-left: 5px;
    font-weight: 600;
    font-size: 14px;
    color: #fff;
}

/* ==========================================
   二维码浮窗 - Ant Design Card 风格
   ========================================== */
.ewm {
    position: fixed !important;
    right: 20px !important;
    top: 50% !important;
    left: auto !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
    background: #fff;
    border-radius: 8px;
    padding: 0;
    box-shadow: 0 6px 16px 0 rgba(0, 0, 0, 0.08),
                0 3px 6px -4px rgba(0, 0, 0, 0.12),
                0 9px 28px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
    text-align: center;
    z-index: var(--z-sticky, 100);
    overflow: hidden;
}

.ewm-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.88);
}

.ewm-header svg {
    color: #4572f7;
    flex-shrink: 0;
}

.ewm-body {
    padding: 16px;
}

.ewm-footer {
    padding: 8px 16px 12px;
    font-size: 12px;
    color: rgba(0, 0, 0, 0.45);
    line-height: 1.4;
}

.ewm #qrcode {
    width: 120px !important;
    height: 120px !important;
    margin: 0 auto;
    border-radius: 4px;
    overflow: hidden;
}

.ewm #qrcode canvas,
.ewm #qrcode img {
    width: 120px !important;
    height: 120px !important;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .bangz_box {
        right: 0;
    }
    
    .bangz_box .item {
        padding: 8px;
    }
    
    .bangz_box span {
        font-size: 12px;
        margin-left: 3px;
    }
    
    .ewm {
        right: 10px !important;
    }
    
    .ewm-body {
        padding: 12px;
    }
    
    .ewm #qrcode {
        width: 100px !important;
        height: 100px !important;
    }
    
    .ewm #qrcode canvas,
    .ewm #qrcode img {
        width: 100px !important;
        height: 100px !important;
    }
}

/* QR 码在中等屏幕折叠，避免遮挡内容 */
@media (max-width: 1200px) {
    .ewm {
        display: none !important;
    }
}
