/* 头部样式 */
.header {
    background: rgba(2,36,41,.8);
    border-bottom: 1px solid #010d0f;
    color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header:hover {
    background: rgba(2,36,41,.9);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo a:hover {
    transform: scale(1.05);
}

.logo img {
    height: 45px;
    width: auto;
}

.logo-text {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
}

/* 用户操作区域 */
.user-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
}

/* 登录按钮样式 - 优化版本 */
.btn-login {
    position: relative;
    width: 80px;
    height: 36px;
    border-radius: 18px;
    background: rgba(8,132,151,.6);
    text-align: center;
    line-height: 36px;
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.btn-login:hover {
    background: rgba(8,132,151,.8);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(8,132,151,.3);
}

.btn-login img {
    width: 16px;
    height: 16px;
}

.btn-login .txt {
    color: #fff;
}

/* 用户信息区域 - 参考旧版本样式 */
.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 200px;
    height: 36px;
    line-height: 36px;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.user-profile:hover {
    color: #82e4f2;
    transform: translateY(-1px);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    vertical-align: -12px;
}

.user-name {
    font-weight: 500;
    color: #fff;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-space,
.logout-btn {
    color: #fff;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    line-height: 36px;
}

.user-space:hover {
    background: rgba(8,132,151,.6);
    color: #fff;
}

.logout-btn:hover {
    background: rgba(8,132,151,.6);
    color: #fff;
}

/* 主横幅样式 */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.hero-image:hover {
    transform: scale(1.05);
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2,36,41,.8);
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 30px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.title-item {
    display: inline-block;
    margin: 0 20px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeInUp 1s ease-out;
}

.title-item:nth-child(1) { animation-delay: 0.2s; }
.title-item:nth-child(2) { animation-delay: 0.4s; }
.title-item:nth-child(3) { animation-delay: 0.6s; }
.title-item:nth-child(4) { animation-delay: 0.8s; }

.hero-subtitle {
    font-size: 20px;
    font-weight: 400;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out 1s both;
}

/* 页脚样式 */
.footer {
    background: rgba(2,36,41,.8);
    color: #ecf0f1;
    padding: 0px 0 20px;
    transition: all 0.3s ease;
}

.footer:hover {
    background: rgba(2,36,41,.9);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #fff;
}

.contact-info p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-icon {
    font-size: 16px;
    width: 20px;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #bdc3c7;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #4a90e2;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    color: #bdc3c7;
}

.social-link:hover {
    background: #4a90e2;
    color: #fff;
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 20px;
    text-align: center;
    color: #95a5a6;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 40px;
    }
    
    .title-item {
        margin: 5px 10px;
        padding: 8px 16px;
    }
    
    .about-grid,
    .education-grid,
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .resources-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-content {
        padding: 0 15px;
        height: 60px;
    }
    
    .logo-text {
        display: none;
    }
    
    .nav {
        display: none;
    }
    
    .user-name {
        display: none;
    }
    
    .user-menu {
        gap: 5px;
    }
    
    .user-space,
    .logout-btn {
        padding: 6px 10px;
        font-size: 14px;
    }
    
    .hero {
        height: 80vh;
        min-height: 500px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .title-item {
        display: block;
        margin: 10px auto;
        max-width: 200px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .about-grid,
    .education-grid,
    .news-grid,
    .resources-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 16px;
    }
    
    .nav-list {
        gap: 15px;
    }
    
    .nav-link {
        font-size: 14px;
        padding: 6px 12px;
    }
    
    .hero-title {
        font-size: 24px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .about-item,
    .education-item {
        padding: 30px 20px;
    }
    
    .resource-item {
        padding: 30px 20px;
    }
}