/* ==========================================
   通用样式 - 头部和底部
   ========================================== */

/* 头部样式 */
.site-header {
    background: white;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.header-container {
    max-width: 1350px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* 头部 Logo 样式 - V 和 C 突出显示 + 白光闪过效果 */
.site-logo a {
    text-decoration: none;
}

.site-logo .logo-text {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
    position: relative;
    display: inline-block;
    background: linear-gradient(to right, 
        #FF6B35 0%, #FF6B35 1ch,
        #333 1ch, #333 7ch,
        #FF6B35 7ch, #FF6B35 8ch,
        #333 8ch, #333 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 白光闪过效果 */
.site-logo .logo-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.8) 50%, 
        transparent 100%
    );
    animation: shine 3s ease-in-out infinite;
    animation-delay: 1s;
}

@keyframes shine {
    0% {
        left: -100%;
    }
    20% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}

/* Hover 时加速闪光 */
.site-logo a:hover .logo-text::before {
    animation: shine 0.6s ease-in-out;
}

/* 暗黑模式 */
body.dark-mode .site-logo .logo-text {
    background: linear-gradient(to right, 
        #FF6B35 0%, #FF6B35 1ch,
        #e0e0e0 1ch, #e0e0e0 7ch,
        #FF6B35 7ch, #FF6B35 8ch,
        #e0e0e0 8ch, #e0e0e0 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-nav .nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.header-nav .nav-menu a {
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
}

.header-nav .nav-menu a:hover {
    color: var(--primary-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-link {
    color: var(--text-dark);
    font-weight: 500;
}

.header-btn {
    background: var(--primary-color);
    color: white;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.header-btn:hover {
    background: var(--primary-dark);
}

.header-btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: var(--transition);
}

.header-btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

/* 用户菜单样式 */
.user-menu {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 15px;
    border-radius: 25px;
    text-decoration: none;
    color: var(--text-dark);
    transition: var(--transition);
    background: var(--bg-light);
}

.user-menu:hover {
    background: #e8e8e8;
    color: var(--primary-color);
}

.user-avatar-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
}

.user-avatar-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-menu .user-name {
    font-size: 14px;
    font-weight: 500;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 桌面端显示类 */
.desktop-only {
    display: flex;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition);
}

/* 底部样式 */
.site-footer {
    background: var(--secondary-color);
    color: white;
    padding: 60px 0 30px;
}

.footer-container {
    max-width: 1350px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: white;
}

.footer-column p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 15px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    transition: var(--transition);
}

.footer-column ul li a:hover {
    color: white;
    padding-left: 5px;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.footer-social a {
    font-size: 24px;
    transition: var(--transition);
}

.footer-social a:hover {
    transform: translateY(-3px);
}

.footer-contact li {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

/* 响应式 - 头部和底部 */
@media (max-width: 768px) {
    .header-nav,
    .header-actions {
        display: none;
    }
    
    .desktop-only {
        display: none !important;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
}
