/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
header {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
    color: #4FC3F7;
    margin-right: 10px;
}

.logo-subtext {
    font-size: 16px;
    color: #90CAF9;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #4FC3F7;
}

/* 英雄区域 */
.hero {
    padding: 100px 0;
    text-align: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(79, 195, 247, 0.1)" d="M0,128L48,144C96,160,192,192,288,186.7C384,181,480,139,576,122.7C672,107,768,117,864,144C960,171,1056,213,1152,213.3C1248,213,1344,171,1392,149.3L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    opacity: 0.3;
}

.hero-container {
    position: relative;
    z-index: 1;
}

.hero-badges {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.badge {
    background: rgba(79, 195, 247, 0.2);
    color: #4FC3F7;
    padding: 8px 16px;
    border-radius: 20px;
    margin: 0 10px;
    font-size: 14px;
    border: 1px solid rgba(79, 195, 247, 0.3);
}

.hero h1 {
    font-size: 64px;
    margin-bottom: 20px;
    color: #15F4EE;
    text-shadow: 0 0 15px rgba(21, 244, 238, 0.7);
}

.hero-subtitle {
    font-size: 18px;
    color: #B3E5FC;
    margin-bottom: 40px;
}

/* 回归理性部分 */
.rationality-section {
    padding: 80px 0;
    background: rgba(0, 0, 0, 0.2);
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.section-icon {
    background: linear-gradient(135deg, #4FC3F7, #9575CD);
    padding: 15px;
    border-radius: 50%;
    margin-right: 20px;
    box-shadow: 0 0 20px rgba(79, 195, 247, 0.3);
}

.section-header h2 {
    font-size: 28px;
    color: #4FC3F7;
}

.rationality-content {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 10px;
    border-left: 4px solid #4FC3F7;
}

.rationality-content p {
    margin-bottom: 20px;
    line-height: 1.8;
}

/* 课程部分 */
.courses-section {
    padding: 80px 0;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.course-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(79, 195, 247, 0.2);
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(79, 195, 247, 0.2);
}

.course-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.course-level {
    font-size: 18px;
    font-weight: bold;
    color: #4FC3F7;
}

.course-duration {
    background: rgba(79, 195, 247, 0.2);
    color: #4FC3F7;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
}

.course-content p {
    margin-bottom: 20px;
    color: #E1F5FE;
}

.course-target {
    background: linear-gradient(135deg, #4CAF50, #81C784);
    padding: 10px 15px;
    border-radius: 5px;
    display: inline-block;
    font-size: 14px;
    font-weight: bold;
}

.algorithm-card {
    grid-column: 1 / -1;
}

.algorithm-subcards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.subcard {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 20px;
    border: 1px solid rgba(79, 195, 247, 0.1);
}

.subcard-header {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #4FC3F7;
}

.subcard-content p {
    margin-bottom: 10px;
    color: #E1F5FE;
}

/* 培养说明 */
.cultivation-section {
    padding: 80px 0;
    background: rgba(0, 0, 0, 0.2);
}



.cultivation-section h2 {
    font-size: 28px;
    color: #4FC3F7;
    margin-bottom: 30px;
}

.cultivation-section p {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 10px;
    line-height: 1.8;
}

.cultivation-content {
    margin-top: 60px;
}

.cultivation-content h2 {
    font-size: 28px;
    color: #4FC3F7;
    margin-bottom: 30px;
}

.cultivation-content p {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 10px;
    line-height: 1.8;
}

.highlight {
    color: #FFD54F;
    font-weight: bold;
}

/* 在线OJ平台部分 */
.oj-section {
    padding: 80px 0;
    background: rgba(0, 0, 0, 0.1);
}

.oj-content {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid rgba(79, 195, 247, 0.2);
}

.oj-content p {
    margin-bottom: 30px;
    line-height: 1.8;
}

.oj-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.oj-feature {
    background: rgba(79, 195, 247, 0.05);
    padding: 20px;
    border-radius: 8px;
    border-left: 3px solid #4FC3F7;
}

.oj-feature strong {
    color: #4FC3F7;
    font-size: 18px;
    display: block;
    margin-bottom: 10px;
}

.oj-feature p {
    margin-bottom: 0;
    color: #E1F5FE;
}

/* 联系部分 */
.contact-section {
    padding: 80px 0;
}

.contact-content {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 50px;
    border-radius: 10px;
    border: 1px solid rgba(79, 195, 247, 0.2);
}

.phone-number {
    font-size: 32px;
    font-weight: bold;
    color: #4FC3F7;
    margin-bottom: 10px;
}

.address {
    font-size: 18px;
    color: #81D4FA;
    margin-bottom: 15px;
    line-height: 1.5;
}

.contact-info p {
    color: #B3E5FC;
    font-size: 16px;
}

.qr-placeholder {
    border: 2px solid #4FC3F7;
    border-radius: 10px;
    padding: 10px;
    background: white;
}

/* 算法高阶-冲刺班页面 */
.sprint-hero {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.sprint-hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: #4FC3F7;
}

.sprint-hero h2 {
    font-size: 24px;
    color: #9575CD;
}

.sprint-description {
    padding: 80px 0;
    background: rgba(0, 0, 0, 0.2);
}

.sprint-description p {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 10px;
    line-height: 1.8;
    margin-bottom: 40px;
}

.quote-box {
    background: rgba(149, 117, 205, 0.1);
    padding: 30px;
    border-radius: 10px;
    border-left: 4px solid #9575CD;
}

.quote-box p {
    margin-bottom: 10px;
    font-style: italic;
}

.quote-author {
    text-align: right;
    color: #B3E5FC;
    font-size: 14px;
}

/* 教练介绍 */
.coaches-section {
    padding: 80px 0;
}

.coaches-section h2 {
    font-size: 28px;
    color: #4FC3F7;
    margin-bottom: 40px;
    text-align: center;
}

.coaches-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 25px;
}

.coaches-grid .coach-card:nth-child(1),
.coaches-grid .coach-card:nth-child(2) {
    grid-column: span 3;
}

.coaches-grid .coach-card:nth-child(n+3) {
    grid-column: span 2;
}

@media (max-width: 1200px) {
    .coaches-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .coaches-grid .coach-card {
        grid-column: span 1 !important;
    }
}

.coach-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(79, 195, 247, 0.2);
}

.coach-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(79, 195, 247, 0.2);
}

.coach-info {
    display: flex;
    align-items: flex-start;
}

.coach-avatar {
    margin-right: 20px;
    flex-shrink: 0;
}

.coach-details h3 {
    font-size: 20px;
    color: #4FC3F7;
    margin-bottom: 5px;
}

.coach-title {
    color: #9575CD;
    margin-bottom: 15px;
    font-size: 16px;
}

.coach-achievements {
    list-style: none;
}

.coach-achievements li {
    margin-bottom: 10px;
    color: #E1F5FE;
    line-height: 1.6;
}

/* 关于我们 */
.about-section {
    padding: 80px 0;
    background: rgba(0, 0, 0, 0.2);
}

.about-section h2 {
    font-size: 28px;
    color: #4FC3F7;
    margin-bottom: 30px;
}

.about-section p {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 20px;
    line-height: 1.8;
}

/* 页脚 */
footer {
    background: rgba(0, 0, 0, 0.3);
    padding: 30px 0;
    text-align: center;
}

footer p {
    color: #B3E5FC;
}

footer .record-number {
    font-size: 14px;
    color: #78909C;
    margin-top: 10px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        padding: 20px;
    }

    nav ul {
        margin-top: 20px;
    }

    nav ul li {
        margin: 0 10px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .courses-grid {
        grid-template-columns: 1fr;
    }

    .algorithm-card {
        grid-column: 1;
    }

    .algorithm-subcards {
        grid-template-columns: 1fr;
    }

    .contact-content {
        flex-direction: column;
        text-align: center;
    }

    .qr-code {
        margin-top: 30px;
    }

    .coaches-grid {
        grid-template-columns: 1fr;
    }

    .coach-info {
        flex-direction: column;
        text-align: center;
    }

    .coach-avatar {
        margin-right: 0;
        margin-bottom: 20px;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.rationality-section, .courses-section, .cultivation-section, .contact-section, .sprint-description, .coaches-section, .about-section, .oj-section, .campuses-section {
    animation: fadeIn 0.8s ease-in-out;
}

/* 校区联系信息部分 */
.campuses-section {
    padding: 80px 0;
    background: rgba(0, 0, 0, 0.1);
}

.campuses-section .section-header {
    text-align: center;
    margin-bottom: 50px;
}

.campuses-section .section-header h2 {
    font-size: 36px;
    color: #4FC3F7;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.campuses-section .section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #FFD54F;
}

.campuses-section .section-header p {
    color: #B3E5FC;
    font-size: 18px;
}

.campuses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.campus-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 30px;
    border: 1px solid rgba(79, 195, 247, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.campus-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(79, 195, 247, 0.2);
}

.campus-title {
    font-size: 24px;
    font-weight: bold;
    color: #4FC3F7;
    margin-bottom: 25px;
    text-align: center;
}

.campus-info .info-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.campus-info .info-item:last-child {
    margin-bottom: 0;
}

.campus-info .info-icon {
    font-size: 20px;
    margin-bottom: 8px;
    color: #FFD54F;
}

.campus-info .info-item span:nth-child(2) {
    font-weight: bold;
    color: #81D4FA;
    margin-bottom: 5px;
    font-size: 16px;
}

.campus-info .info-value {
    color: #E1F5FE;
    line-height: 1.5;
}

/* 资料下载部分 */
.download-section {
    padding: 80px 0;
    background: rgba(0, 0, 0, 0.1);
}

.download-section .section-header {
    text-align: center;
    margin-bottom: 50px;
}

.download-section .section-header h2 {
    font-size: 36px;
    color: #4FC3F7;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.download-section .section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #FFD54F;
}

.download-section .section-header p {
    color: #B3E5FC;
    font-size: 18px;
}

.section-subtitle {
    font-size: 22px;
    color: #81D4FA;
    margin-bottom: 30px;
    margin-top: 50px;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.resource-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 25px;
    border: 1px solid rgba(79, 195, 247, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(79, 195, 247, 0.2);
}

.resource-icon {
    font-size: 32px;
    width: 60px;
    height: 60px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.resource-title {
    font-size: 18px;
    font-weight: bold;
    color: #4FC3F7;
    margin-bottom: 10px;
}

.resource-desc {
    color: #E1F5FE;
    font-size: 14px;
    line-height: 1.5;
}

.oj-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.oj-link-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 20px;
    border: 1px solid rgba(79, 195, 247, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.oj-link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(79, 195, 247, 0.2);
}

.oj-link-icon {
    font-size: 24px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.oj-link-name {
    color: #E1F5FE;
    font-size: 16px;
    font-weight: bold;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
    background: rgba(79, 195, 247, 0.5);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(79, 195, 247, 0.8);
}