/**
 * Header Styles - 参考 xosodt68.com 设计
 * 主色调: #26AEFE (天蓝色)
 */

/* 顶部栏 */
.top-bar {
    background: linear-gradient(90deg, #26AEFE 0%, #1E9FE8 100%);
    padding: 8px 0;
    font-size: 13px;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-text {
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.language-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    cursor: pointer;
    font-weight: 500;
}

.language-toggle .flag {
    font-size: 16px;
}

/* 主头部区域 */
.main-header {
    background: #fff;
    padding: 12px 0 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo {
    flex-shrink: 0;
}

.logo-image {
    height: auto;
    max-height: 55px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.logo-image:hover {
    transform: scale(1.02);
}

/* 登录表单区域 */
.header-login-form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.login-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 10px;
    font-size: 14px;
    color: #9ca3af;
}

.login-input {
    width: 160px;
    padding: 10px 10px 10px 32px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
    background: #f9fafb;
    transition: all 0.2s;
}

.login-input:focus {
    outline: none;
    border-color: #26AEFE;
    background: #fff;
}

.login-input::placeholder {
    color: #9ca3af;
}

.btn-login-header,
.btn-register-header {
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.btn-login-header {
    background: #fff;
    color: #26AEFE;
    border: 1px solid #26AEFE;
}

.btn-login-header:hover {
    background: #26AEFE;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(38, 174, 254, 0.4);
}

.btn-register-header {
    background: linear-gradient(135deg, #FF6B35 0%, #F05722 100%);
    color: #fff;
}

.btn-register-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.5);
}

/* 主导航菜单 */
.main-nav {
    background: linear-gradient(90deg, #26AEFE 0%, #1E9FE8 100%);
    padding: 0;
    box-shadow: 0 2px 10px rgba(38, 174, 254, 0.3);
}

.main-nav .container {
    padding: 0;
}

.nav-list {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-list li {
    position: relative;
}

.nav-list li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
    position: relative;
    border-radius: 4px 4px 0 0;
}

.nav-list li a:hover,
.nav-list li.nav-active a {
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* .nav-list li.nav-active a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20%;
    right: 20%;
    height: 3px;
    background: #fff;
    border-radius: 2px 2px 0 0;
} */

.nav-icon {
    font-size: 16px;
}

.hot-badge {
    background: linear-gradient(135deg, #FF6B35 0%, #F05722 100%);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 4px;
    animation: pulse 1.5s infinite;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.4);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* 移动端菜单按钮 */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: #26AEFE;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s;
}

/* 移动端登录按钮 */
.mobile-actions {
    display: none;
    padding: 12px 16px;
    background: #f3f4f6;
    gap: 10px;
}

.btn-login-mobile,
.btn-register-mobile {
    flex: 1;
    padding: 12px;
    text-align: center;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-login-mobile {
    background: linear-gradient(135deg, #26AEFE 0%, #1E9FE8 100%);
    color: #fff;
}

.btn-register-mobile {
    background: linear-gradient(135deg, #FF6B35 0%, #F05722 100%);
    color: #fff;
}

/* 移动端菜单覆盖层 */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
}

.mobile-menu-overlay.active {
    display: block;
}

.mobile-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.mobile-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 1001;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: #374151;
}

.mobile-menu-panel {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 80%;
    max-width: 320px;
    background: #fff;
    transform: translateX(-100%);
    transition: transform 0.3s ease-out;
    overflow-y: auto;
}

.mobile-menu-overlay.active .mobile-menu-panel {
    transform: translateX(0);
}

.mobile-menu-header {
    padding: 20px;
    background: linear-gradient(90deg, #26AEFE 0%, #1E9FE8 100%);
}

.mobile-menu-title {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
}

.mobile-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav li {
    border-bottom: 1px solid #e5e7eb;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    color: #374151;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s;
}

.mobile-nav-link:hover {
    background: #f3f4f6;
    color: #26AEFE;
}

.mobile-nav-icon {
    font-size: 20px;
}

.mobile-hot-badge {
    background: linear-gradient(135deg, #FF6B35 0%, #F05722 100%);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    margin-left: auto;
}

/* 公告栏 */
.announcement-bar {
    background: linear-gradient(90deg, #26AEFE 0%, #1E9FE8 50%, #26AEFE 100%);
    padding: 12px 0;
    overflow: hidden;
    position: relative;
}

.announcement-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.1) 50%, transparent 100%);
    animation: shimmer 3s infinite;
}

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

.announcement-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 0;
    margin: 0 auto;
    max-width: 1200px;
    overflow: hidden;
}
.announcement-content img {
    display: block;
    z-index: 99;
    background:#25acfc;
    padding: 1px;
}

.announcement-text {
    font-size: 16px;
    color: #fff;
    line-height: 1.5;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis
  
}

.announcement-icon {
    font-size: 18px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    background: transparent;
    padding-right: 8px;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.announcement-marquee {
    flex: 1;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    animation: marquee 25s linear infinite;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

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

/* 响应式适配 */
@media (max-width: 1024px) {
    .login-input {
        width: 140px;
    }
    
    .btn-login-header,
    .btn-register-header {
        padding: 10px 16px;
        font-size: 12px;
    }
}

@media (max-width: 900px) {
    .header-login-form {
        display: none;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .main-nav {
        display: none;
    }
    
    .mobile-actions {
        display: flex;
    }
    
    .header-main {
        padding: 0 8px;
    }
    
    .logo-image {
        max-height: 50px;
    }
}

@media (max-width: 480px) {
    .top-bar-text {
        font-size: 11px;
    }
    
    .logo-image {
        max-height: 45px;
    }
    
    .mobile-actions {
        padding: 10px 12px;
    }
    
    .btn-login-mobile,
    .btn-register-mobile {
        padding: 10px;
        font-size: 13px;
    }
}


/* 粘性头部动画 */
.is-sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    animation: slideDown 0.3s ease-out;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}