/* 
 * 配音象智能开放平台 - 统一Header样式
 * 通用页面header样式文件
 */

/* 基础重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.modern-container {
    max-width: 1400px; /* 统一使用更大的容器宽度，给内容更多呼吸空间 */
    margin: 0 auto;
    padding: 0 30px; /* 统一使用更大的内边距 */
}

/* Header样式 */
.modern-header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.modern-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modern-logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.modern-logo:hover {
    color: #ffd700;
}

.modern-nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.modern-nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.modern-nav-links a:hover {
    color: #ffd700;
}

.modern-nav-links a.active {
    color: #ffd700;
}

.modern-nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: #ffd700;
}

.auth-btn {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.auth-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

.auth-btn i {
    font-size: 0.9rem;
}

/* 用户信息样式 */
.user-info {
    position: relative;
}

.user-info .auth-btn {
    background: rgba(255, 215, 0, 0.2);
    border-color: rgba(255, 215, 0, 0.3);
}

.user-info .auth-btn:hover {
    background: rgba(255, 215, 0, 0.3);
}

/* 移动端菜单按钮 */
.mobile-menu-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 10px 15px;
    z-index: 1001;
    transition: all 0.3s ease;
    min-width: 50px;
    min-height: 45px;
    align-items: center;
    justify-content: center;
    font-weight: 300;
    line-height: 1;
    --menu-icon: "☰";
}

/* 使用纯文本图标替代 Font Awesome */
.mobile-menu-toggle::before {
    content: var(--menu-icon, "☰");
    display: block;
    font-style: normal;
    font-family: Arial, sans-serif;
}

/* 隐藏 Font Awesome 图标，使用自定义图标 */
.mobile-menu-toggle i {
    display: none;
}

.mobile-menu-toggle:hover {
    color: #ffd700;
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

.mobile-menu-toggle:active {
    transform: scale(0.95);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .modern-container {
        padding: 0 15px;
    }
    
    .modern-logo {
        font-size: 1.5rem;
    }
    
    /* 在平板及以下显示汉堡菜单 */
    .mobile-menu-toggle {
        display: flex;
    }
    
    .modern-nav-links {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background: rgba(102, 126, 234, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 80px 30px 30px;
        gap: 1.5rem;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
        z-index: 999;
        align-items: flex-start;
    }
    
    .modern-nav-links.active {
        display: flex;
        animation: slideInRight 0.3s ease-out;
    }
    
    .modern-nav-links li {
        width: 100%;
    }
    
    .modern-nav-links a {
        display: block;
        padding: 12px 0;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .modern-nav-links .auth-status {
        width: 100%;
        margin-top: 1rem;
    }
    
    .modern-nav-links .auth-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 16px;
    }
    
    .modern-header {
        padding: 0.8rem 0;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

/* 浮动动画效果 */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-5px);
    }
}

.modern-logo {
    animation: float 6s ease-in-out infinite;
}