/* ==========================================================================
   公共组件样式 - Common Components Styles
   包含多个页面共用的组件样式，如页面头部、底部导航等
   ========================================================================== */

/* ==========================================================================
   1. 页面头部组件 (Page Header Component)
   用于：service-list.html, member-center.html, enterprise-appeal.html 等子页面
   ========================================================================== */

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* 返回按钮、搜索按钮、设置按钮 */
.back-button, 
.search-button, 
.settings-button {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.back-button:hover, 
.search-button:hover, 
.settings-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.header-content {
    flex: 1;
    text-align: center;
    margin: 0 15px;
}

/* ==========================================================================
   2. 底部导航组件 (Bottom Navigation Component)
   用于：所有页面的底部固定导航栏
   ========================================================================== */

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0 12px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border-top: 1px solid #f0f0f0;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 5px 15px;
    position: relative;
    text-decoration: none;
    color: #333;
}

.nav-item.active {
    color: #0984e3;
}

.nav-icon {
    position: relative;
    font-size: 20px;
    margin-bottom: 4px;
}

.nav-arrow {
    display: none;
    position: absolute;
    top: -8px;
    right: -8px;
    font-size: 10px;
    color: #0984e3;
}

.nav-label {
    font-size: 12px;
    font-weight: 500;
}

.nav-item.active .nav-icon {
    color: #0984e3;
}

.nav-item.active .nav-label {
    color: #0984e3;
    font-weight: 600;
}

.nav-item:hover .nav-label,
.nav-item:hover .nav-icon {
    color: #0984e3;
}

/* ==========================================================================
   3. 响应式设计 (Responsive Design)
   ========================================================================== */

/* 小屏幕优化 */
@media (max-width: 375px) {
    .back-button, 
    .search-button, 
    .settings-button {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .header-content {
        margin: 0 10px;
    }
    
    .nav-item {
        padding: 5px 10px;
    }
    
    .nav-icon {
        font-size: 18px;
    }
    
    .nav-label {
        font-size: 11px;
    }
}

/* 大屏幕优化 */
@media (min-width: 768px) {
    .back-button, 
    .search-button, 
    .settings-button {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .bottom-nav {
        max-width: 800px;
        left: 50%;
        transform: translateX(-50%);
        border-radius: 20px 20px 0 0;
    }
    
    .nav-item {
        padding: 8px 20px;
    }
    
    .nav-icon {
        font-size: 22px;
    }
    
    .nav-label {
        font-size: 13px;
    }
}