/* ===== 全局重置与基础 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #333;
    background: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

/* ===== 导航栏 ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e5e5e5;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 2px 20px rgba(79, 70, 229, 0.1);
}

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

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

.logo-icon {
    width: 36px;
    height: 36px;
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    color: #4F46E5;
    letter-spacing: 1px;
}

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

.nav-links a {
    font-size: 15px;
    font-weight: 500;
    color: #64748B;
    transition: color 0.3s ease;
    padding: 5px 0;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #4F46E5;
    transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #4F46E5;
}

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

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: #333;
    transition: all 0.3s ease;
}

/* ===== Hero区域 ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #F0F4FF 0%, #E8ECFF 50%, #F0F4FF 100%);
    position: relative;
    overflow: hidden;
    padding: 100px 20px 60px;
}

.hero-shape {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    max-width: 700px;
    position: relative;
    z-index: 1;
}

.hero-logo {
    width: 200px;
    margin-bottom: 30px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    color: #1E293B;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 18px;
    color: #64748B;
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

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

.btn-primary {
    background: #4F46E5;
    color: #fff;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
    background: #4338CA;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #4F46E5;
    border: 2px solid #4F46E5;
}

.btn-secondary:hover {
    background: #4F46E5;
    color: #fff;
    transform: translateY(-2px);
}

.btn-danger {
    background: #EF4444;
    color: #fff;
}

.btn-danger:hover {
    background: #DC2626;
}

.btn-small {
    padding: 8px 16px;
    font-size: 13px;
}

/* ===== 特色展示 ===== */
.features {
    padding: 100px 0;
    background: #fff;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: #1E293B;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #4F46E5;
    border-radius: 2px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(79, 70, 229, 0.1);
    border-color: #4F46E5;
}

.feature-card .feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #F0F4FF, #E8ECFF);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1E293B;
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 14px;
    color: #64748B;
    line-height: 1.7;
}

/* ===== 课程展示 ===== */
.courses {
    padding: 100px 0;
    background: #F8FAFC;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.course-card {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    border: 1px solid #E2E8F0;
    transition: all 0.3s ease;
}

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

.course-card .course-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.course-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1E293B;
    margin-bottom: 10px;
}

.course-card p {
    font-size: 14px;
    color: #64748B;
    line-height: 1.7;
    margin-bottom: 20px;
}

.course-card .course-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.course-status.active {
    background: #DCFCE7;
    color: #16A34A;
}

.course-status.inactive {
    background: #FEE2E2;
    color: #DC2626;
}

/* ===== 数据统计 ===== */
.stats {
    padding: 80px 0;
    background: linear-gradient(135deg, #4F46E5, #818CF8);
    color: #fff;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-item {
    padding: 20px;
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    display: block;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 18px;
    opacity: 0.9;
}

/* ===== 关于页 ===== */
.page-header {
    padding: 120px 0 60px;
    text-align: center;
    background: linear-gradient(135deg, #F0F4FF, #E8ECFF);
}

.page-header h1 {
    font-size: 42px;
    font-weight: 700;
    color: #1E293B;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 18px;
    color: #64748B;
}

.story {
    padding: 80px 0;
}

.story-content {
    max-width: 800px;
    margin: 0 auto;
}

.story-content p {
    font-size: 16px;
    color: #555;
    line-height: 1.9;
    margin-bottom: 20px;
}

.mission-vision {
    padding: 80px 0;
    background: #F8FAFC;
}

.mv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.mv-card {
    background: #fff;
    border-radius: 16px;
    padding: 40px 30px;
    border: 1px solid #E2E8F0;
    transition: all 0.3s ease;
}

.mv-card:hover {
    box-shadow: 0 10px 40px rgba(79, 70, 229, 0.1);
}

.mv-card h3 {
    font-size: 22px;
    font-weight: 600;
    color: #4F46E5;
    margin-bottom: 15px;
}

.mv-card p {
    font-size: 15px;
    color: #64748B;
    line-height: 1.7;
}

.team {
    padding: 80px 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.team-card {
    background: #fff;
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    border: 1px solid #E2E8F0;
    transition: all 0.3s ease;
}

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

.team-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
    color: #fff;
    font-weight: 600;
}

.team-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1E293B;
    margin-bottom: 8px;
}

.team-card .role {
    font-size: 14px;
    color: #4F46E5;
    font-weight: 500;
    margin-bottom: 15px;
}

.team-card p {
    font-size: 14px;
    color: #64748B;
    line-height: 1.7;
}

/* ===== 联系页 ===== */
.contact-section {
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1E293B;
    margin-bottom: 40px;
}

.info-item {
    margin-bottom: 30px;
}

.info-item h3 {
    font-size: 18px;
    font-weight: 600;
    color: #4F46E5;
    margin-bottom: 8px;
}

.info-item p {
    font-size: 15px;
    color: #64748B;
}

.contact-form h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1E293B;
    margin-bottom: 30px;
}

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

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #4F46E5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-success {
    background: #DCFCE7;
    color: #16A34A;
    padding: 20px;
    border-radius: 12px;
    margin-top: 20px;
    font-weight: 500;
}

.map-section {
    padding: 0 0 80px;
}

.map-placeholder {
    text-align: center;
}

.map-placeholder p {
    font-size: 16px;
    color: #64748B;
    margin-bottom: 20px;
}

.map-box {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #E2E8F0;
}

/* ===== 页脚 ===== */
.footer {
    background: #1E293B;
    color: #CBD5E1;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-logo {
    width: 150px;
    margin-bottom: 20px;
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.8;
}

.footer-links h3,
.footer-contact h3 {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 20px;
}

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

.footer-links ul li a {
    font-size: 14px;
    color: #CBD5E1;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: #818CF8;
}

.footer-contact p {
    font-size: 14px;
    margin-bottom: 10px;
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: #64748B;
}

/* ===== 后台管理 ===== */
.admin-login {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #F0F4FF, #E8ECFF);
}

.login-box {
    background: #fff;
    border-radius: 20px;
    padding: 50px 40px;
    width: 400px;
    max-width: 90%;
    box-shadow: 0 20px 60px rgba(79, 70, 229, 0.15);
    text-align: center;
}

.login-logo {
    width: 180px;
    margin-bottom: 30px;
}

.login-box h2 {
    font-size: 24px;
    color: #1E293B;
    margin-bottom: 30px;
}

.error-message {
    color: #DC2626;
    font-size: 14px;
    margin-top: 15px;
}

.success-message {
    color: #16A34A;
    font-size: 14px;
    margin-top: 15px;
}

.admin-panel {
    display: flex;
    min-height: 100vh;
}

.admin-nav {
    width: 250px;
    background: #1E293B;
    color: #fff;
    padding: 20px;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
}

.admin-nav-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 30px;
    border-bottom: 1px solid #334155;
    margin-bottom: 20px;
}

.admin-nav-header span {
    font-size: 18px;
    font-weight: 600;
}

.admin-nav-links {
    list-style: none;
}

.admin-nav-links li {
    margin-bottom: 5px;
}

.admin-nav-links a {
    display: block;
    padding: 12px 16px;
    border-radius: 10px;
    color: #94A3B8;
    font-size: 14px;
    transition: all 0.3s ease;
}

.admin-nav-links a:hover,
.admin-nav-links a.active {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.admin-content {
    margin-left: 250px;
    padding: 40px;
    flex: 1;
    background: #F8FAFC;
    min-height: 100vh;
}

.admin-tab {
    display: none;
}

.admin-tab.active {
    display: block;
}

.admin-tab h2 {
    font-size: 28px;
    color: #1E293B;
    margin-bottom: 30px;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    border: 1px solid #E2E8F0;
    text-align: center;
}

.stat-card h3 {
    font-size: 16px;
    color: #64748B;
    margin-bottom: 10px;
}

.stat-card p {
    font-size: 36px;
    font-weight: 700;
    color: #4F46E5;
}

.admin-actions {
    margin-bottom: 20px;
}

.add-form,
.edit-form {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid #E2E8F0;
}

.add-form h3,
.edit-form h3 {
    font-size: 20px;
    color: #1E293B;
    margin-bottom: 20px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #E2E8F0;
}

.admin-table th {
    background: #F8FAFC;
    padding: 15px 20px;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    color: #64748B;
    border-bottom: 1px solid #E2E8F0;
}

.admin-table td {
    padding: 15px 20px;
    font-size: 14px;
    color: #333;
    border-bottom: 1px solid #E2E8F0;
}

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

.action-btns {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status.active {
    background: #DCFCE7;
    color: #16A34A;
}

.status.inactive {
    background: #FEE2E2;
    color: #DC2626;
}

/* ===== 响应式设计 ===== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        gap: 15px;
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .section-title {
        font-size: 26px;
    }

    .features-grid,
    .courses-grid,
    .mv-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-number {
        font-size: 36px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .page-header h1 {
        font-size: 32px;
    }

    .admin-nav {
        width: 200px;
    }

    .admin-content {
        margin-left: 200px;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 28px;
    }

    .hero-logo {
        width: 150px;
    }

    .stat-number {
        font-size: 28px;
    }

    .admin-nav {
        width: 100%;
        height: auto;
        position: relative;
        padding: 15px;
    }

    .admin-content {
        margin-left: 0;
        padding: 15px;
    }

    .admin-panel {
        flex-direction: column;
    }

    .admin-nav-links {
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
    }

    .admin-nav-links a {
        padding: 8px 12px;
        font-size: 12px;
    }

    .admin-table {
        font-size: 12px;
    }

    .admin-table th,
    .admin-table td {
        padding: 10px;
    }

    .action-btns {
        flex-direction: column;
    }
}