/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Header and Navigation */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo img {
    height: 50px;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-links li {
    margin: 0 0.45rem;
    white-space: nowrap;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #2563eb;
}

.nav-links a.active {
    color: #2563eb;
    font-weight: 700;
}

.language-switch {
    margin-left: 0.75rem;
}

.language-switch a {
    padding: 0.15rem 0.4rem;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 0.85rem;
    margin-left: 0.2rem;
}

.language-switch a.active {
    background-color: #2563eb;
    color: white;
    border-color: #2563eb;
}

/* Hero Section */
.hero {
    background-size: cover;
    background-position: center;
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 0 1rem;
    margin-top: 80px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #2563eb;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #1d4ed8;
}

/* Statistics Section */
.statistics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    padding: 4rem 5%;
    background-color: #f8f9fa;
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: #2563eb;
    margin-bottom: 0.5rem;
}

/* Core Areas Section */
.core-areas {
    padding: 4rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.area-card {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-top: 4px solid #2563eb;
    transition: transform 0.3s, box-shadow 0.3s;
}

.area-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.15);
}

.area-card h3 {
    color: #2563eb;
    margin-bottom: 0.5rem;
}

.more-link {
    display: inline-block;
    color: #2563eb;
    text-decoration: none;
    margin-top: 1rem;
    font-weight: 500;
}

.more-link:hover {
    text-decoration: underline;
}

/* News Section */
.news {
    padding: 4rem 5%;
    background-color: #f8f9fa;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* News Section Styles */
.news-item {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.news-item:hover {
    transform: translateY(-5px);
}

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

.news-content {
    padding: 1.5rem;
}

.news-content h3 {
    margin-bottom: 0.5rem;
    color: #333;
}

.news-content .date {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.read-more {
    display: inline-block;
    color: #2563eb;
    text-decoration: none;
    margin-top: 1rem;
    font-weight: 500;
}

.read-more:hover {
    text-decoration: underline;
}

/* Partners Section */
.partners {
    padding: 4rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.partner-item {
    background-color: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    font-weight: 600;
    color: #555;
    transition: border-color 0.3s, color 0.3s;
}

.partner-item:hover {
    border-color: #2563eb;
    color: #2563eb;
}

/* Awards Section */
.awards {
    padding: 4rem 5%;
    background-color: #f8f9fa;
}

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

/* Awards Section Styles */
.award-item {
    text-align: center;
    padding: 2rem;
}

.award-item img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.award-item h3 {
    color: #333;
    margin-bottom: 0.5rem;
}

.award-item p {
    color: #666;
}

/* Footer */
footer {
    background-color: #1e293b;
    color: white;
    padding: 4rem 5% 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #93c5fd;
}

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

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

.footer-section a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #93c5fd;
}

.copyright {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Footer Contact Info Styles */
.contact-info li {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: #cbd5e1;
}

.contact-info i {
    margin-right: 0.5rem;
    color: #93c5fd;
}

/* Menu Toggle Button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }

    .awards-list {
        grid-template-columns: 1fr;
    }

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

    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

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

    .nav-links li {
        margin: 0.5rem 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }
}

/* ===== 内页横幅（Page Banner） ===== */
.page-banner {
    background-size: cover;
    background-position: center;
    padding: 6.5rem 5% 3rem;
    margin-top: 80px;
    color: #fff;
    text-align: center;
}

.page-banner h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-banner p {
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.85;
}

/* ===== 内容区 ===== */
.page-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 5%;
}

.page-content h2 {
    color: #2563eb;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.page-content h3 {
    margin: 1.5rem 0 0.75rem;
    color: #1e293b;
}

.page-content p {
    margin-bottom: 1rem;
}

.page-content ul,
.page-content ol {
    margin: 0 0 1rem 1.5rem;
}

.section-block {
    margin-bottom: 3rem;
}

/* ===== 数据表格 ===== */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0 2rem;
}

.data-table th,
.data-table td {
    border: 1px solid #e5e7eb;
    padding: 0.75rem 1rem;
    text-align: left;
}

.data-table th {
    background: #2563eb;
    color: #fff;
}

.data-table tr:nth-child(even) {
    background: #f8fafc;
}

/* ===== FAQ ===== */
.faq details {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    padding: 1rem 1.25rem;
    background: #fff;
}

.faq summary {
    cursor: pointer;
    font-weight: 600;
    color: #1e293b;
}

.faq details[open] summary {
    color: #2563eb;
}

.faq details p {
    margin-top: 0.75rem;
    color: #555;
}

/* ===== 表单 ===== */
.contact-form {
    max-width: 640px;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 600;
    color: #1e293b;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.65rem 0.8rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* ===== 按钮变体 ===== */
.btn-secondary {
    display: inline-block;
    padding: 0.7rem 1.4rem;
    background: #fff;
    color: #2563eb;
    border: 2px solid #2563eb;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s, color 0.3s;
}

.btn-secondary:hover {
    background: #2563eb;
    color: #fff;
}

/* ===== 图库 ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background: #fff;
}

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

.gallery-item figcaption {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    color: #555;
}

/* ===== 课程详情页 ===== */
.program-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.meta-card {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
}

.meta-card .label {
    font-size: 0.8rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meta-card .value {
    font-weight: 700;
    color: #2563eb;
    margin-top: 0.25rem;
}

/* ===== 师资/团队 ===== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.team-card {
    text-align: center;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
}

.team-card .avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #2563eb;
    color: #fff;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

/* ===== 新闻详情 ===== */
.news-detail {
    max-width: 800px;
}

.news-detail img {
    width: 100%;
    border-radius: 10px;
    margin: 1rem 0;
}

.news-detail .date {
    color: #666;
    margin-bottom: 1rem;
}

/* ===== 联系卡片 ===== */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-card {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    background: #fff;
}

.contact-card .icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* ===== 步骤列表（申请流程等） ===== */
.steps-list {
    counter-reset: step;
    list-style: none;
    margin: 1.5rem 0;
}

.steps-list li {
    counter-increment: step;
    position: relative;
    padding: 0.75rem 0 0.75rem 3rem;
    border-bottom: 1px dashed #e5e7eb;
}

.steps-list li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0.75rem;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: #2563eb;
    color: #fff;
    text-align: center;
    line-height: 2rem;
    font-weight: 700;
}

/* ===== 表单提交提示 ===== */
.form-message {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-weight: 600;
}

.form-message.success {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.form-message.error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

/* ===== 响应式补充 ===== */
@media (max-width: 768px) {
    .page-banner h1 {
        font-size: 1.8rem;
    }

    .page-banner {
        padding-top: 5.5rem;
    }
}
