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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    color: #333333;
    line-height: 1.6;
}

:root {
    --primary-color: #0056D2;
    --primary-dark: #003D99;
    --secondary-color: #FF9900;
    --secondary-dark: #E68A00;
    --bg-light: #F8FAFC;
    --bg-dark: #0A1628;
    --text-primary: #333333;
    --text-secondary: #666666;
    --border-color: #E5E7EB;
    --white: #FFFFFF;
}

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

.btn-primary {
    display: inline-block;
    padding: 12px 32px;
    background-color: var(--secondary-color);
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
}

.btn-primary:hover {
    background-color: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 153, 0, 0.3);
}

.btn-secondary {
    display: inline-block;
    padding: 12px 32px;
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
}

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

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: var(--bg-dark);
    padding: 16px 0;
}

header.scrolled {
    padding: 12px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    color: var(--white);
    text-decoration: none;
}

.logo img {
    height: 40px;
    margin-right: 12px;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

.nav-links a.active {
    color: var(--secondary-color);
}

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

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

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

.menu-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--white);
    margin: 4px 0;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -5px);
}

.hero {
    min-height: 100vh;
    background: linear-gradient(rgba(10, 22, 40, 0.7), rgba(10, 22, 40, 0.7)), url('../images/首页大Banner.jpg') center/cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding: 80px 20px 40px;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
}

.hero p {
    font-size: 20px;
    margin-bottom: 40px;
    max-width: 800px;
    opacity: 0.9;
}

.intro {
    padding: 80px 20px;
    background-color: var(--white);
}

.intro-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.intro-text h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.intro-text p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.8;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tag {
    padding: 8px 16px;
    background-color: var(--bg-light);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.intro-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.courses {
    padding: 80px 20px;
    background-color: var(--bg-light);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.course-card {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.course-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.course-card-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.course-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.course-card p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.6;
    flex: 1;
}

.course-card .btn-primary {
    width: 100%;
    padding: 10px;
    margin-top: auto;
}

.philosophy {
    padding: 80px 20px;
    background-color: var(--white);
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.philosophy-item {
    text-align: center;
    padding: 32px;
    background-color: var(--bg-light);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.philosophy-item:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.philosophy-item:hover h3,
.philosophy-item:hover p {
    color: var(--white);
}

.philosophy-item .icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.philosophy-item h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.philosophy-item p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.gallery {
    padding: 80px 20px;
    background-color: var(--bg-light);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.gallery-item {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cta {
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    text-align: center;
    color: var(--white);
}

.cta h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta p {
    font-size: 18px;
    margin-bottom: 32px;
    opacity: 0.9;
}

footer {
    padding: 60px 20px 30px;
    background-color: var(--bg-dark);
    color: var(--white);
}

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

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.footer-logo img {
    height: 40px;
    margin-right: 12px;
}

.footer-logo-text {
    font-size: 20px;
    font-weight: 700;
}

.footer-section p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

.footer-section h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.footer-qr {
    width: 100px;
    height: 100px;
    margin-top: 12px;
    border-radius: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom p {
    margin-bottom: 8px;
}

.footer-bottom p:last-child {
    margin-bottom: 0;
}

.about-hero {
    padding: 120px 20px 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    text-align: center;
    color: var(--white);
}

.about-hero h1 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 16px;
}

.about-hero p {
    font-size: 18px;
    opacity: 0.9;
}

.content-section {
    padding: 80px 20px;
    background-color: var(--white);
}

.content-section.alt-bg {
    background-color: var(--bg-light);
}

.content-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.content-text h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.content-text p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.8;
}

.content-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
}

.teacher-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.teacher-card {
    text-align: center;
    background-color: var(--white);
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.teacher-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 16px;
}

.teacher-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.teacher-card p {
    font-size: 14px;
    color: var(--text-secondary);
}

.table-container {
    overflow-x: auto;
    margin-top: 32px;
}

.course-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.course-table th,
.course-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.course-table th {
    background-color: var(--primary-color);
    color: var(--white);
    font-weight: 600;
}

.course-table tr:hover {
    background-color: var(--bg-light);
}

.course-table tr:last-child td {
    border-bottom: none;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--border-color);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    padding: 32px 0;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    padding-right: 48px;
    text-align: right;
}

.timeline-item:nth-child(even) {
    padding-left: 48px;
    margin-left: 50%;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 16px;
    height: 16px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    border: 4px solid var(--white);
    box-shadow: 0 0 0 4px rgba(255, 153, 0, 0.2);
}

.timeline-item:nth-child(odd)::before {
    right: -8px;
    transform: translateY(-50%);
}

.timeline-item:nth-child(even)::before {
    left: -8px;
    transform: translateY(-50%);
}

.timeline-item h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.timeline-item p {
    font-size: 14px;
    color: var(--text-secondary);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

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

.contact-info {
    max-width: 800px;
    margin: 0 auto;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    margin-bottom: 16px;
}

.contact-info-item .icon {
    font-size: 28px;
    color: var(--secondary-color);
    flex-shrink: 0;
}

.contact-info-item h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.contact-info-item p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 4px;
}

.contact-info-item p:last-child {
    margin-bottom: 0;
}

.qr-code {
    text-align: center;
    margin-top: 48px;
}

.qr-code img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    margin-bottom: 16px;
}

.qr-code p {
    font-size: 16px;
    color: var(--text-secondary);
}

.gallery-masonry {
    columns: 4;
    gap: 16px;
}

.gallery-masonry-item {
    break-inside: avoid;
    margin-bottom: 16px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-masonry-item:hover {
    transform: scale(1.02);
}

.gallery-masonry-item img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 1023px) {
    .intro-content,
    .content-row {
        grid-template-columns: 1fr;
    }
    
    .intro-content {
        gap: 32px;
    }
    
    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .philosophy-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
    
    .teacher-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-masonry {
        columns: 2;
    }
}

@media (max-width: 767px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: var(--bg-dark);
        flex-direction: column;
        padding: 80px 20px;
        gap: 24px;
        transition: right 0.3s ease;
        z-index: 999;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .intro-text h2 {
        font-size: 24px;
    }
    
    .courses-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .teacher-cards {
        grid-template-columns: 1fr;
    }
    
    .timeline::before {
        left: 24px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 64px;
        padding-right: 0;
        text-align: left;
        margin-left: 0 !important;
    }
    
    .timeline-item:nth-child(odd) {
        padding-right: 0;
        text-align: left;
    }
    
    .timeline-item:nth-child(odd)::before {
        left: 16px;
        right: auto;
    }
    
    .gallery-masonry {
        columns: 1;
    }
    
    .contact-form {
        padding: 24px;
    }
}
