/* 全局样式 */
:root {
    --primary-dark: #2C2C2C;
    --primary-light: #F5F5F5;
    --white: #FFFFFF;
    --accent-blue: #1A365D;
    --accent-gold: #D4AF37;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--primary-dark);
    overflow-x: hidden;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 15px;
}

.logo-img {
    height: 60px;
    width: auto;
    border-radius: 8px;
    transition: transform 0.3s ease;
    object-fit: contain;
}

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

.logo h1 {
    color: var(--primary-dark);
    transition: color 0.3s ease;
    font-size: 1.8rem;
}

.logo:hover h1 {
    color: var(--accent-gold);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: width 0.3s ease;
}

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

.language-switch .lang-btn {
    background: none;
    border: 1px solid var(--primary-dark);
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.language-switch .lang-btn:hover {
    background: var(--primary-dark);
    color: var(--white);
}

/* Hero Section */
.hero {
    height: 80vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://picsum.photos/1920/1080?random=1');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 80px;
}

.hero-content {
    text-align: center;
    color: var(--white);
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-content h2 {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 30px;
}

.cta-button {
    background: var(--accent-blue);
    color: var(--white);
    border: none;
    padding: 15px 40px;
    font-size: 1.2rem;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: var(--accent-gold);
    transform: translateY(-2px);
}

/* 师资团队 */
.teachers {
    padding: 100px 0;
    background: var(--primary-light);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 70px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent-gold);
}

.teachers-swiper {
    width: 85%;
    padding: 30px 0;
    margin: 0 auto;
}

.teacher-card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    text-align: center;
    height: 100%;
    margin: 20px;
}

.teacher-card:hover {
    transform: translateY(-10px);
}

.teacher-card img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 3px solid var(--accent-gold);
}

.teacher-card h3 {
    color: var(--primary-dark);
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.teacher-card .title {
    color: var(--accent-blue);
    font-size: 1rem;
    margin-bottom: 15px;
    font-weight: 500;
}

.teacher-card .description {
    color: var(--primary-dark);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* 关于我们 */
.about {
    padding: 80px 0;
    background: var(--white);
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 50px;
    padding: 0 20px;
    align-items: center;
}

.campus-swiper {
    flex: 1;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.campus-swiper .swiper-slide {
    position: relative;
}

.campus-swiper img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.campus-swiper .slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    color: var(--white);
    padding: 15px;
    text-align: center;
    font-size: 1.1rem;
}

.campus-swiper .swiper-button-next,
.campus-swiper .swiper-button-prev {
    color: var(--white);
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.campus-swiper .swiper-button-next:after,
.campus-swiper .swiper-button-prev:after {
    font-size: 20px;
}

.campus-swiper .swiper-pagination-bullet {
    background: var(--white);
    opacity: 0.7;
}

.campus-swiper .swiper-pagination-bullet-active {
    background: var(--accent-gold);
    opacity: 1;
}

.about-content {
    flex: 1;
}

.about-content p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* 成功案例 */
.cases {
    padding: 80px 0;
    background: var(--primary-light);
}

.cases-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 0 20px;
}

/* AI聊天窗口 */
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.chat-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-dark);
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-toggle i {
    font-size: 24px;
}

.chat-toggle:hover {
    transform: scale(1.1);
    background: var(--accent-gold);
}

.chat-container {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.chat-container.active {
    display: flex;
}

.chat-header {
    padding: 15px 20px;
    background: var(--primary-dark);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 {
    margin: 0;
    font-size: 16px;
}

.close-chat {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    max-width: 80%;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.message.user {
    align-self: flex-end;
}

.message.ai {
    align-self: flex-start;
}

.message-bubble {
    padding: 12px 15px;
    border-radius: 15px;
    font-size: 14px;
    line-height: 1.4;
    white-space: pre-line;
}

.message.user .message-bubble {
    background: var(--primary-dark);
    color: white;
    border-radius: 15px 15px 0 15px;
}

.message.ai .message-bubble {
    background: #f0f2f5;
    color: #333;
    border-radius: 15px 15px 15px 0;
}

.message-time {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}

.message.user .message-time {
    text-align: right;
}

.chat-input {
    padding: 15px;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
}

.chat-input input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #eee;
    border-radius: 20px;
    outline: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.chat-input input:focus {
    border-color: var(--primary-dark);
    box-shadow: 0 0 0 2px rgba(26, 54, 93, 0.1);
}

.send-message {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-dark);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.send-message:hover {
    background: var(--accent-gold);
    transform: scale(1.05);
}

.send-message i {
    font-size: 16px;
}

/* 底部 */
footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 60px 0 0;
}

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

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

.footer-section h3 {
    color: var(--accent-gold);
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 500;
}

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

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--accent-gold);
}

.footer-section ul li i {
    color: var(--accent-gold);
    width: 20px;
    margin-right: 10px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer-logo-img {
    width: 80px;
    height: auto;
    border-radius: 8px;
}

.footer-brand h1 {
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 5px;
}

.footer-brand p {
    color: var(--accent-gold);
    font-size: 0.9rem;
}

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

.social-links a {
    color: var(--white);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--accent-gold);
    transform: translateY(-3px);
}

.footer-legal {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
    text-align: center;
}

.legal-links {
    margin-bottom: 15px;
}

.legal-links a {
    color: var(--white);
    text-decoration: none;
    margin: 0 15px;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.legal-links a:hover {
    color: var(--accent-gold);
}

.copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* 响应式设计 */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 30px;
    height: 3px;
    background: var(--primary-dark);
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--white);
        flex-direction: column;
        align-items: center;
        padding: 50px 0;
        transition: left 0.3s ease;
    }

    .nav-links.active {
        left: 0;
    }

    .about-container {
        flex-direction: column;
    }

    .campus-swiper,
    .about-content {
        width: 100%;
    }
    
    .campus-swiper img {
        height: 300px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content h2 {
        font-size: 1.5rem;
    }

    .logo-img {
        height: 40px;
    }
    
    .logo h1 {
        font-size: 1.4rem;
    }

    .footer-nav {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .footer-section ul li i {
        margin-right: 5px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-logo {
        flex-direction: column;
    }

    .social-links {
        justify-content: center;
    }

    .legal-links {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .legal-links a {
        margin: 5px 0;
    }
}

/* 课程介绍 */
.courses {
    padding: 100px 0;
    background: var(--white);
}

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

.courses-swiper {
    width: 85%;
    padding: 30px 0;
    margin: 0 auto;
}

.course-card, .university-card, .teacher-card {
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 25px;
    height: 100%;
    transition: all 0.3s ease;
}

.course-card:hover, .university-card:hover, .teacher-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.course-card h3, .university-card h3, .teacher-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--primary-dark);
}

.course-card p, .university-card p, .teacher-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.swiper-container {
    width: 90%;
    padding: 30px 0;
    overflow: visible;
}

.swiper-slide {
    height: auto;
}

.swiper-button-next, .swiper-button-prev {
    color: var(--primary-dark);
    width: 45px;
    height: 45px;
    background: var(--white);
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.swiper-button-next:after, .swiper-button-prev:after {
    font-size: 20px;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: var(--primary-light);
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--primary-dark);
}

@media (max-width: 1200px) {
    .course-card h3, .university-card h3, .teacher-card h3 {
        font-size: 1.3rem;
    }
    
    .course-card p, .university-card p, .teacher-card p {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .swiper-container {
        width: 95%;
        padding: 20px 0;
    }
    
    .course-card, .university-card, .teacher-card {
        padding: 20px;
    }
    
    .course-card h3, .university-card h3, .teacher-card h3 {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }
    
    .course-card p, .university-card p, .teacher-card p {
        font-size: 0.9rem;
        margin-bottom: 12px;
    }
}

/* 合作院校 */
.universities {
    padding: 100px 0;
    background: var(--primary-light);
}

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

.universities-swiper {
    width: 85%;
    padding: 30px 0;
    margin: 0 auto;
}

.university-card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    text-align: center;
    height: 100%;
    margin: 20px;
}

.university-card:hover {
    transform: translateY(-10px);
}

.university-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
    background: var(--accent-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2.5rem;
    transition: all 0.3s ease;
}

.university-card:hover .university-icon {
    background: var(--accent-gold);
    transform: scale(1.1);
}

.university-card h3 {
    color: var(--primary-dark);
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.university-card .majors-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
}

.university-card .majors-list span {
    background: rgba(26, 54, 93, 0.1);
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 1rem;
    color: var(--primary-dark);
    transition: all 0.3s ease;
}

.university-card:hover .majors-list span {
    background: var(--accent-gold);
    color: var(--white);
}

/* Swiper 通用样式 */
.courses-swiper .swiper-button-next,
.courses-swiper .swiper-button-prev,
.universities-swiper .swiper-button-next,
.universities-swiper .swiper-button-prev {
    color: var(--accent-blue);
    background: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.courses-swiper .swiper-button-next:after,
.courses-swiper .swiper-button-prev:after,
.universities-swiper .swiper-button-next:after,
.universities-swiper .swiper-button-prev:after {
    font-size: 24px;
}

.courses-swiper .swiper-pagination-bullet,
.universities-swiper .swiper-pagination-bullet {
    background: var(--accent-blue);
    opacity: 0.5;
}

.courses-swiper .swiper-pagination-bullet-active,
.universities-swiper .swiper-pagination-bullet-active {
    background: var(--accent-gold);
    opacity: 1;
}

.swiper-pagination {
    margin-top: 20px;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    margin: 0 8px !important;
}

@media (max-width: 768px) {
    .course-card,
    .university-card {
        padding: 30px;
        margin: 10px;
    }

    .course-icon,
    .university-icon {
        width: 80px;
        height: 80px;
        font-size: 2rem;
        margin-bottom: 20px;
    }

    .course-card h3,
    .university-card h3 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }

    .course-card p,
    .university-card p {
        font-size: 1rem;
        line-height: 1.6;
    }

    .university-card .majors-list span {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
} 