/* 统一顶部Header样式 - 基于钱包页和首页的最佳实践 */

/* 基础Header样式 - 主页面使用（首页、钱包页等） */
.header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Header Logo样式 */
.header .logo {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-red, #ec0000);
}

/* Header中的logo居中样式（钱包页使用） */
.header .logo.center {
    flex: 1;
    text-align: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-red, #ec0000);
}

/* Header中的logo大号样式（首页使用） */
.header .logo.large {
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: -1px;
}

/* Header中的用户头像/按钮 */
.header .profile,
.header .profile-pic {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-red, #ec0000);
    text-decoration: none;
    font-size: 1rem;
}

.header .profile.large {
    width: 38px;
    height: 38px;
}

/* 简化版Header - 子页面使用（订单、信息页等） */
.header.simple {
    background: #ffffff;
    height: 44px;
    padding: 0 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.header.simple .logo {
    font-size: 17px;
    font-weight: 600;
    color: #333;
}

/* 毛玻璃版Header - 信息页使用 */
.header.glass {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    height: 44px;
    padding: 0 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.header.glass .logo {
    font-size: 17px;
    font-weight: 600;
    color: #333;
}

/* 返回按钮样式 */
.header .back-btn {
    color: #333;
    font-size: 18px;
    text-decoration: none;
    transition: transform 0.2s;
}

.header .back-btn:hover {
    transform: scale(1.1);
}

.header .back-btn.red {
    color: var(--primary-red, #ec0000);
}

/* 确保header在所有情况下都固定在顶部 */
.header {
    position: sticky;
    top: 0;
}

/* 兼容旧版本的fixed定位（自动转换为sticky） */
.header[style*="position: fixed"] {
    position: sticky !important;
}

