:root {
    --blue: rgb(3, 77, 156);
    --yellow: rgb(254, 222, 0);
    --bg: #ffffff;
    --muted: #666;
    --card-bg: #fbfbfd;
    --radius: 12px;
    --max-w: 1100px;
    --shadow-light: 0 4px 14px rgba(12, 23, 52, 0.03);
    --shadow-medium: 0 8px 20px rgba(12, 23, 52, 0.1);
    --shadow-heavy: 0 12px 30px rgba(12, 23, 52, 0.15);
}

* {
    box-sizing: border-box;
}

/* 滚动动画基础样式 */
html {
    scroll-behavior: smooth;
}

/* 动画关键帧 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 动画类 */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fade-in-left {
    animation: fadeInLeft 0.8s ease-out forwards;
}

.animate-fade-in-right {
    animation: fadeInRight 0.8s ease-out forwards;
}

.animate-scale-in {
    animation: scaleIn 0.6s ease-out forwards;
}

.animate-slide-in-down {
    animation: slideInDown 0.8s ease-out forwards;
}

/* 延迟动画 */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

body {
    margin: 0;
    font-family: "Helvetica Neue", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    background: var(--bg);
    color: #222;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.wrap {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 24px;
}

/* 导航栏样式 */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 10px 24px;
    border-bottom: 1px solid #eef2fb;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 8px 24px;
}

.nav-wrap {
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo img {
    height: 40px;
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 24px;
}

.nav-links a {
    text-decoration: none;
    color: #444;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.nav-links a:hover {
    background: #f0f2f5;
}

.nav-links a.active {
    color: var(--blue);
    position: relative;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 12px;
    right: 12px;
    height: 3px;
    background: var(--blue);
    border-radius: 2px;
}

/* 页头/英雄区域 */
header.hero {
    background: linear-gradient(135deg, rgba(3, 77, 156, 1) 0%, rgba(3, 77, 156, 0.95) 50%, rgba(3, 77, 156, 0.9) 100%);
    color: #fff;
    border-radius: 0 0 28px 28px;
    padding: 48px 20px;
    padding-top: 24px;
    position: relative;
    overflow: hidden;
}

header.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 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(1deg); }
}

.hero-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    align-items: center;
}

.hero-left {
    flex: 1 1 480px;
}

.hero-left img {
    width: 200px;
    height: auto;
    margin-right: 40px;
}

.hero-left h1 {
    margin: 0 0 12px 0;
    font-size: 2.2rem;
    line-height: 1.05;
    letter-spacing: -0.5px;
}

.tagline {
    display: inline-block;
    background: var(--yellow);
    color: #000;
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 700;
    margin-bottom: 16px;
}

.hero-left p.lead {
    margin: 12px 0 18px;
    color: #f0f6ff;
    font-size: 1.02rem;
}

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

.btn {
    display: inline-block;
    padding: 12px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(3, 77, 156, 0.16);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 10;
}

.btn-primary {
    background: var(--yellow);
    color: #000;
}

.btn-outline {
    border: 2px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    background: transparent;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(3, 77, 156, 0.25);
}

.btn-primary:hover {
    background: #f0d600;
    transform: translateY(-2px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.hero-right {
    flex: 0 1 360px;
    text-align: right;
}

.hero-card {
    background: rgba(255, 255, 255, 0.06);
    padding: 18px;
    border-radius: 14px;
    display: inline-block;
    text-align: left;
    min-width: 280px;
}

.card-title {
    font-weight: 700;
    margin-bottom: 6px;
}

.card-small-text {
    color: #e8f0ff;
    opacity: 0.9;
}

.hero-card hr {
    border: none;
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    margin: 12px 0;
}

.hero-card p {
    margin: 6px 0;
    color: #fff;
    font-size: 0.95rem;
}

.hero-card p:first-child {
    margin-top: 0;
}

/* 内容区域 */
section {
    padding: 32px 0;
    border-bottom: 1px solid #f0f2f5;
}

h2.section-title {
    color: var(--blue);
    margin: 0 0 12px 0;
    font-size: 1.2rem;
}

p.lead-muted {
    color: var(--muted);
    margin: 0 0 12px 0;
}

/* 网格布局 */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
    margin-top: 16px;
    max-width: 100%;
}

@media (min-width: 1200px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.card {
    background: var(--card-bg);
    padding: 18px;
    border-radius: 12px;
    border-left: 6px solid var(--blue);
    box-shadow: var(--shadow-light);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    border-left-color: var(--yellow);
}

.card h3 {
    margin: 0 0 8px 0;
}

.card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

/* 课程卡片样式 */
.course-card {
    text-align: center;
    border-left: none;
    padding: 24px;
    box-shadow: var(--shadow-light);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0) scale(1);
    background: linear-gradient(135deg, var(--card-bg) 0%, #ffffff 100%);
}

.course-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: var(--shadow-heavy);
    background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%);
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--blue) 0%, var(--yellow) 100%);
    opacity: 0;
    border-radius: 12px;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.course-card:hover::before {
    opacity: 0.05;
}

.course-card .course-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 16px;
}

.course-card h3 {
    color: var(--blue);
    margin-bottom: 8px;
}

.course-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: left;
}

.course-card .card-action {
    margin-top: 16px;
}

.course-card .btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* 课程大纲 */
.outline {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.module {
    display: flex;
    gap: 14px;
    align-items: center;
    background: #fff;
    padding: 14px;
    border-radius: 10px;
    border: 1px solid #eef2fb;
}

.module .num {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 8px;
    background: var(--blue);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.module .content h3 {
    margin: 0 0 6px 0;
}

.module .content p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

/* CTA条幅 */
.cta-strip {
    background: linear-gradient(90deg, #eef6ff, #fff8e6);
    border-radius: 14px;
    padding: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.cta-strip .left p {
    margin: 0;
}

.cta-strip .right a {
    margin-left: 12px;
}

.btn-cta-outline {
    background: transparent;
    color: var(--blue) !important;
    border-color: var(--blue) !important;
}

/* 联系方式 */
.cta-contact-info {
    min-width: 220px;
    background: #fff;
    padding: 18px;
    border-radius: 12px;
    border: 1px solid #eef2fb;
}

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

.contact-info-grid .cta-contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: unset;
}

.contact-info-grid .cta-contact-info .card-title {
    font-weight: 700;
    margin-bottom: 8px;
}

.contact-info-grid .cta-contact-info .email-container {
    margin-top: 10px;
}

.contact-info-grid .cta-contact-info img {
    width: 150px;
    height: 150px;
    margin-top: 10px;
    border-radius: 8px;
}

/* 页脚 */
footer {
    margin-top: 28px;
    padding: 18px 0;
    text-align: center;
    color: var(--muted);
    font-size: 0.95rem;
}

footer .footer-links {
    list-style: none;
    margin: 0 0 16px 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 24px;
}

footer .footer-links a {
    text-decoration: none;
    color: var(--muted);
    font-size: 0.9rem;
}

footer .copyright {
    font-size: 0.8rem;
    color: #999;
}

/* 媒体查询 - 手机端 */
@media (max-width: 768px) {
    /* 将导航栏布局改为横向排列 */
    .nav-wrap {
        flex-direction: row;
        align-items: center; /* 垂直居中对齐 */
    }
    .nav-logo {
        /* 取消手机端 logo 下方的外边距 */
        margin-bottom: 0;
    }
    .nav-links {
        /* 将导航项目改为横向排列 */
        flex-direction: row;
        gap: 12px; /* 调整项目间距 */
    }

    /* 以下是为导航项目横向排列时进行的调整 */
    .nav-links a.active::after {
        left: 12px;
        right: 12px;
        bottom: -8px;
        top: auto;
        width: auto;
        height: 3px;
    }

    footer .footer-links {
        flex-direction: column;
        gap: 8px;
    }
    .hero-inner {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    .hero-right {
        text-align: left;
    }
    .hero-left img {
        margin-right: 20px;
    }
    .hero-left h1 {
        font-size: 1.6rem;
    }
    .hero-card {
        min-width: unset;
        width: 100%;
    }
    .hero-ctas {
        flex-direction: column;
        gap: 12px;
    }
    .btn {
        width: 100%;
        text-align: center;
    }
    /* 隐藏英雄区域的logo */
    .hero-left img {
        display: none;
    }
    /* 减小英雄区域的上下内边距 */
    header.hero {
        padding-top: 24px;   /* 减小顶部内边距 */
        padding-bottom: 24px;/* 减小底部内边距 */
    }
    /* 优化英雄区域内部的布局和间距 */
    .hero-inner {
        padding: 0 24px; /* 可以调整水平内边距以更好地利用屏幕空间 */
        gap: 16px;       /* 减小元素之间的间距，让内容更紧凑 */
    }

    /* 调整hero-left的布局 */
    .hero-left {
        flex: 1 1 100%;  /* 确保它占据整个可用宽度 */
        align-items: flex-start; /* 将内容左对齐 */
    }

    /* 调整hero-right的布局 */
    .hero-right {
        flex: 1 1 100%;  /* 确保它占据整个可用宽度 */
        text-align: left; /* 文本左对齐 */
    }

    /* 移动端动画优化 */
    .animate-on-scroll {
        opacity: 1;
        transform: translateY(0);
    }

    /* 移动端卡片优化 */
    .card:hover {
        transform: translateY(-2px);
    }

    .course-card:hover {
        transform: translateY(-5px) scale(1.01);
    }

    /* 移动端模块优化 */
    .module {
        flex-direction: row;
        text-align: left;
        gap: 12px;
    }

}

/* 媒体查询 - CTA条幅 */
@media (max-width: 600px) {
    .cta-strip {
        flex-direction: column;
        align-items: flex-start;
    }
    .cta-strip .right {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-top: 12px;
    }
    .cta-strip .right a {
        margin-left: 0;
        text-align: center;
        width: 100%;
    }
}