/* Header 组件样式 */
/* Updated: 2025-12-15 - 从 header.html 内联样式提取 */

.header { 
    background: var(--bg-primary, white); 
    border-bottom: 1px solid var(--border-color, #e5e7eb); 
    position: sticky; 
    top: 0; 
    z-index: 100; 
}

.header-container { 
    max-width: 1400px; 
    margin: 0 auto; 
    padding: 0 20px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    height: 60px; 
}

.logo { 
    font-size: 20px; 
    font-weight: bold; 
    color: var(--text-primary, #333); 
    text-decoration: none; 
    display: flex; 
    align-items: center; 
    gap: 10px; 
}

.logo img { 
    width: 200px; 
}

.nav { 
    display: flex; 
    gap: 20px; 
    align-items: center; 
    font-family: sans-serif; 
}

/* PC端工具按钮容器 */
.nav-tools-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 10px;
}

/* PC端隐藏按钮文字和箭头 */
.nav-tools-wrapper .btn-content span,
.nav-tools-wrapper .btn-arrow {
    display: none;
}

.nav a { 
    color: var(--text-secondary, #666); 
    text-decoration: none; 
    padding: 8px 12px; 
    border-radius: 6px; 
    transition: all 0.3s; 
}

.nav a:hover { 
    background: var(--hover-bg, #f5f5f5); 
    color: var(--text-primary, #333); 
}

.nav a.active { 
    color: #007AFF; 
    background: var(--active-bg, #e5f1ff); 
}

/* 搜索按钮 */
.search-icon-btn { 
    background: transparent; 
    border: none; 
    padding: 8px; 
    cursor: pointer; 
    border-radius: 8px; 
    transition: all 0.3s; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    min-width: 36px;
    min-height: 36px;
}

.search-icon-btn:hover { 
    background: var(--hover-bg, #f5f5f5); 
}

.search-icon-btn svg { 
    width: 20px; 
    height: 20px; 
    color: var(--text-secondary, #666); 
}

/* 搜索弹窗 */
.search-modal { 
    display: none; 
    position: fixed; 
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0; 
    background: rgba(0,0,0,0.5); 
    z-index: 10000; 
    align-items: flex-start; 
    justify-content: center; 
    padding-top: 100px; 
}

.search-modal.active { 
    display: flex; 
}

.search-modal-content { 
    background: var(--card-bg, white); 
    border-radius: 12px; 
    width: 90%; 
    max-width: 600px; 
    padding: 20px; 
    box-shadow: 0 4px 20px var(--shadow-md, rgba(0,0,0,0.2)); 
}

.search-modal-input { 
    width: 100%; 
    padding: 12px 16px; 
    border: 2px solid #007AFF; 
    border-radius: 8px; 
    font-size: 16px; 
    outline: none; 
    background: var(--input-bg, white); 
    color: var(--text-primary, #333); 
}

.search-modal-close { 
    position: absolute; 
    top: 20px; 
    right: 20px; 
    background: var(--card-bg, white); 
    border: none; 
    width: 32px; 
    height: 32px; 
    border-radius: 50%; 
    cursor: pointer; 
    font-size: 20px; 
}

/* 移动端汉堡菜单按钮 */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 28px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--text-primary, #333);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* 移动端已禁用，显示 viewport warning */
