/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
.navbar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo-image {
    height: 45px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
    filter: brightness(1.1) contrast(1.1);
}

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

.nav-logo h2 {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #ffd700;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #ffd700;
    transition: width 0.3s ease;
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: 0.3s;
}

/* 首页横幅 */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    color: white;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: #ffd700;
    color: #333;
}

.btn-primary:hover {
    background: #ffed4e;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #333;
    transform: translateY(-2px);
}

.hero-graphic {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 8rem;
    opacity: 0.8;
}

/* 课程介绍 */
.courses {
    padding: 100px 0;
    background: #f8f9fa;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.2rem;
    color: #666;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 0.9rem;
    max-width: 2800px;
    margin: 0 auto;
}

.course-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.course-icon {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 1.5rem;
}

.course-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.course-card p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.course-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.feature {
    background: #e3f2fd;
    color: #1976d2;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.course-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.course-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* 数字资产课程特殊样式 */
.course-card:nth-child(3) .course-icon {
    color: #ff6b35;
}

.course-card:nth-child(3) .course-link {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
}

.course-card:nth-child(3) .course-link:hover {
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
}

/* 家族家谱课程特殊样式 */
.course-card:nth-child(4) .course-icon {
    color: #28a745;
}

.course-card:nth-child(4) .course-link {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.course-card:nth-child(4) .course-link:hover {
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.4);
}

/* IT运维课程特殊样式 */
.course-card:nth-child(5) .course-icon {
    color: #6f42c1;
}

.course-card:nth-child(5) .course-link {
    background: linear-gradient(135deg, #6f42c1 0%, #e83e8c 100%);
}

.course-card:nth-child(5) .course-link:hover {
    box-shadow: 0 5px 15px rgba(111, 66, 193, 0.4);
}

/* 钢铁培训课程特殊样式 */
.course-card:nth-child(6) .course-icon {
    color: #dc3545;
}

.course-card:nth-child(6) .course-link {
    background: linear-gradient(135deg, #dc3545 0%, #fd7e14 100%);
}

.course-card:nth-child(6) .course-link:hover {
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.4);
}

/* 智能助教课程特殊样式 */
.course-card:nth-child(7) .course-icon {
    color: #17a2b8;
}

.course-card:nth-child(7) .course-link {
    background: linear-gradient(135deg, #17a2b8 0%, #6c757d 100%);
}

.course-card:nth-child(7) .course-link:hover {
    box-shadow: 0 5px 15px rgba(23, 162, 184, 0.4);
}

/* 1+X网页设计训练器课程特殊样式 */
.course-card:nth-child(8) .course-icon {
    color: #20c997;
}

.course-card:nth-child(8) .course-link {
    background: linear-gradient(135deg, #20c997 0%, #007bff 100%);
}

.course-card:nth-child(8) .course-link:hover {
    box-shadow: 0 5px 15px rgba(32, 201, 151, 0.4);
}

/* 产教融合实训系统课程特殊样式 */
.course-card:nth-child(9) .course-icon {
    color: #6f42c1;
}

.course-card:nth-child(9) .course-link {
    background: linear-gradient(135deg, #6f42c1 0%, #e83e8c 100%);
}

.course-card:nth-child(9) .course-link:hover {
    box-shadow: 0 5px 15px rgba(111, 66, 193, 0.4);
}

/* 九九乘法口诀练习课程特殊样式 */
.course-card:nth-child(10) .course-icon {
    color: #fd7e14;
}

.course-card:nth-child(10) .course-link {
    background: linear-gradient(135deg, #fd7e14 0%, #ffc107 100%);
}

.course-card:nth-child(10) .course-link:hover {
    box-shadow: 0 5px 15px rgba(253, 126, 20, 0.4);
}

/* 扑克牌24点练习课程特殊样式 */
.course-card:nth-child(11) .course-icon {
    color: #dc3545;
}

.course-card:nth-child(11) .course-link {
    background: linear-gradient(135deg, #dc3545 0%, #6f42c1 100%);
}

.course-card:nth-child(11) .course-link:hover {
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.4);
}

/* 线性规划求解课程特殊样式 */
.course-card:nth-child(12) .course-icon {
    color: #20c997;
}

.course-card:nth-child(12) .course-link {
    background: linear-gradient(135deg, #20c997 0%, #17a2b8 100%);
}

.course-card:nth-child(12) .course-link:hover {
    box-shadow: 0 5px 15px rgba(32, 201, 151, 0.4);
}

/* 金琪麟考试系统课程特殊样式 */
.course-card:nth-child(13) .course-icon {
    color: #6c757d;
}

.course-card:nth-child(13) .course-link {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
}

.course-card:nth-child(13) .course-link:hover {
    box-shadow: 0 5px 15px rgba(108, 117, 125, 0.4);
}

/* 关于我们 */
.about {
    padding: 100px 0;
    background: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.feature-item i {
    font-size: 2rem;
    color: #667eea;
    margin-top: 0.5rem;
}

.feature-item h4 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.feature-item p {
    color: #666;
    margin: 0;
}

.about-graphic {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 6rem;
    color: #667eea;
    opacity: 0.8;
}

/* 联系我们 */
.contact {
    padding: 100px 0;
    background: #f8f9fa;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-icon {
    font-size: 1.5rem;
    color: #667eea;
    margin-top: 0.5rem;
}

.contact-details h4 {
    color: #333;
    margin-bottom: 0.5rem;
}

.contact-details p {
    color: #666;
    margin: 0.2rem 0;
}

.contact-details a {
    color: #667eea;
    text-decoration: none;
}

.contact-details a:hover {
    text-decoration: underline;
}

.wechat-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.wechat-qr {
    margin-top: 1rem;
}

.wechat-image {
    max-width: 150px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    border: 2px solid #e1e5e9;
}

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

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* 页脚 */
.footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section:nth-child(3) {
    grid-column: span 2;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: #ffd700;
}

.footer-section p {
    color: #bdc3c7;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #ffd700;
}

.course-links-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
}

.course-links-grid ul {
    margin: 0;
    padding: 0;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 1rem;
    text-align: center;
    color: #bdc3c7;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #667eea;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 1rem 0;
    }
    
    .nav-logo {
        gap: 0.5rem;
    }
    
    .logo-image {
        height: 38px;
    }
    
    .nav-logo h2 {
        font-size: 1.2rem;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .hero-graphic {
        font-size: 5rem;
    }
    
    .courses-grid {
        grid-template-columns: 1fr;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .about-text h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .course-card {
        padding: 1.5rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .course-links-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.8rem;
    }
    
    .footer-section:nth-child(3) {
        grid-column: span 1;
    }
}

@media (max-width: 480px) {
    .course-links-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
}

/* 滚动动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}
