/* 基础样式变量 */
:root {
    --primary-color: #1a365d; /* 深蓝色 */
    --secondary-color: #ed8936; /* 橙色 */
    --light-gray: #f7fafc;
    --dark-gray: #4a5568;
}

/* 全局样式 */
body {
    font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
    background-color: #f9fafb;
}

/* 按钮样式 */
.btn-primary {
    background-color: var(--primary-color);
    color: white;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #2c5282;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: #dd6b20;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* 导航菜单样式 */
.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.active::after {
    width: 100%;
}

/* 轮播图样式 */
.banner-slide {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 卡片样式 */
.advantage-card,
.case-card {
    transition: all 0.3s ease;
}

.advantage-card:hover,
.case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.quick-entry-card {
    transition: all 0.3s ease;
}

.quick-entry-card:hover {
    transform: scale(1.03);
}

.contact-info-card {
    transition: all 0.3s ease;
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

/* 响应式导航菜单 */
.mobile-menu {
    display: none;
}

@media (max-width: 768px) {
    .desktop-menu {
        display: none;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .mobile-menu-items {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background-color: white;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }
    
    .mobile-menu-items.active {
        display: block;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .banner-section {
        height: 400px;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
}

/* 手风琴样式 */
.accordion-item {
    border-bottom: 1px solid #e2e8f0;
}

.accordion-title {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    transition: background-color 0.3s ease;
}

.accordion-title:hover {
    background-color: #f7fafc;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 1rem;
}

.accordion-content.active {
    max-height: 500px;
    padding: 1rem;
}

.accordion-icon {
    transition: transform 0.3s ease;
}

.accordion-icon.active {
    transform: rotate(180deg);
}

/* 招聘页面样式 */
.job-card {
    transition: all 0.3s ease;
}

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.benefit-card {
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.process-step {
    transition: all 0.3s ease;
}

.process-step:hover {
    transform: scale(1.05);
}

/* 课程中心样式 */
.course-card {
    transition: all 0.3s ease;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.filter-tab {
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-tab.active {
    background-color: var(--primary-color);
    color: white;
}

.filter-tab:hover:not(.active) {
    background-color: #e2e8f0;
}

/* 资讯中心样式 */
.news-card {
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.category-item {
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-item:hover {
    background-color: #e2e8f0;
}

.category-item.active {
    background-color: var(--primary-color);
    color: white;
}

/* 题库中心样式 */
.question-card {
    transition: all 0.3s ease;
}

.question-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.difficulty-badge {
    transition: all 0.3s ease;
}

.difficulty-easy {
    background-color: #48bb78;
}

.difficulty-medium {
    background-color: #ed8936;
}

.difficulty-hard {
    background-color: #e53e3e;
}

/* 下载中心样式 */
.download-card {
    transition: all 0.3s ease;
}

.download-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.file-icon {
    transition: all 0.3s ease;
}

.download-card:hover .file-icon {
    transform: scale(1.1);
}

/* 帮助中心样式 */
.help-card {
    transition: all 0.3s ease;
}

.help-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.faq-item {
    transition: all 0.3s ease;
}

.faq-item:hover {
    background-color: #f8fafc;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow-y: auto;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 800px;
    position: relative;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #aaa;
}

.close-button:hover {
    color: #000;
}

/* 关于我们样式 */
.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 2px;
    background-color: var(--primary-color);
}

.timeline-dot {
    position: absolute;
    left: -6px;
    top: 0;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: var(--secondary-color);
}

.team-card {
    transition: all 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.stat-card {
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}