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

:root {
    --primary: #ff6f00;
    --secondary: #ff8f00;
    --accent: #ffb300;
    --dark: #e65100;
    --bg-light: #fff8e1;
    --bg-white: #ffffff;
    --text-dark: #3e2723;
    --text: #5d4037;
    --text-light: #8d6e63;
    --border: #ffe0b2;
    --shadow: 0 4px 12px rgba(255, 111, 0, 0.15);
    --shadow-lg: 0 12px 32px rgba(255, 111, 0, 0.2);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: var(--bg-white);
    color: var(--text-dark);
    line-height: 1.6;
}

/* 导航栏 */
.navigation-bar {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

.nav-inner {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.site-logo {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.logo-main {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.logo-suffix {
    font-size: 12px;
    color: var(--text-light);
}

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

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.mobile-nav-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-nav-btn span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 3px;
    transition: all 0.3s;
}

/* 主视觉区 - 大图叠加 */
.main-hero {
    position: relative;
    height: 90vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-mask {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 111, 0, 0.85) 0%, rgba(230, 81, 0, 0.9) 100%);
    z-index: 1;
}

.hero-content-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.hero-content {
    max-width: 800px;
    color: var(--bg-white);
}

.hero-badge {
    display: inline-block;
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-main-title {
    font-size: 72px;
    font-weight: 800;
    margin-bottom: 25px;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-description {
    font-size: 20px;
    line-height: 1.8;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.95);
}

.hero-cta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.cta-btn {
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s;
    display: inline-block;
}

.cta-btn.primary {
    background: var(--bg-white);
    color: var(--primary);
}

.cta-btn.primary:hover {
    background: var(--bg-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
}

.cta-btn.secondary {
    background: transparent;
    color: var(--bg-white);
    border: 2px solid var(--bg-white);
}

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

/* 主要内容 */
.main-body {
    padding: 0;
}

.section-wrapper {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
}

/* 不对称布局区块 */
.asymmetric-section {
    padding: 120px 0;
    background: var(--bg-white);
}

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

.grid-item.large {
    animation: fadeInLeft 0.8s ease-out;
}

.grid-item.small {
    animation: fadeInRight 0.8s ease-out;
}

.content-box {
    padding-right: 40px;
}

.section-heading {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.2;
}

.heading-underline {
    width: 80px;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    margin-bottom: 40px;
    border-radius: 3px;
}

.content-paragraphs p {
    font-size: 17px;
    line-height: 1.9;
    color: var(--text-dark);
    margin-bottom: 25px;
}

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

.image-box {
    position: sticky;
    top: 100px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.image-box img {
    width: 100%;
    height: auto;
    display: block;
}

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

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

/* 服务不对称布局 */
.services-asymmetric {
    padding: 120px 0;
    background: var(--bg-light);
}

.section-title-area {
    text-align: center;
    margin-bottom: 80px;
}

.section-intro {
    font-size: 18px;
    color: var(--text-light);
    margin-top: 15px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.asymmetric-grid-services {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 30px;
    height: 600px;
}

.service-block.large-block {
    grid-row: 1 / 3;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

.service-block.small-block {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-image {
    width: 100%;
    height: 100%;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: 40px;
    color: var(--bg-white);
}

.service-overlay .service-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--bg-white);
}

.service-overlay .service-desc {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
}

.service-content {
    padding: 40px;
    text-align: center;
}

.service-content .service-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.service-content .service-desc {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
}

.service-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: color 0.3s;
}

.service-link:hover {
    color: var(--dark);
}

/* 优势区块 */
.advantages-asymmetric {
    padding: 120px 0;
    background: var(--bg-white);
}

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

.advantage-card {
    text-align: center;
    padding: 40px 30px;
    background: var(--bg-light);
    border-radius: 16px;
    transition: all 0.3s;
}

.advantage-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    background: var(--bg-white);
}

.advantage-image {
    width: 120px;
    height: 120px;
    margin: 0 auto 25px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--border);
    transition: all 0.3s;
}

.advantage-card:hover .advantage-image {
    border-color: var(--primary);
    transform: scale(1.1);
}

.advantage-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.advantage-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.advantage-text {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.6;
}

/* 页面标题横幅 */
.page-hero {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.page-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.page-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-mask {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 111, 0, 0.85) 0%, rgba(230, 81, 0, 0.9) 100%);
    z-index: 1;
}

.page-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--bg-white);
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.page-title {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.95);
}

/* 课程区块 */
.courses-section {
    padding: 100px 0;
    background: var(--bg-white);
}

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

.course-card {
    background: var(--bg-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.course-card.featured {
    grid-column: span 2;
}

.course-thumb {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.course-card.featured .course-thumb {
    height: 350px;
}

.course-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.course-card:hover .course-thumb img {
    transform: scale(1.1);
}

.featured-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 8px 20px;
    background: var(--primary);
    color: var(--bg-white);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.course-info {
    padding: 30px;
}

.course-name {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.course-category {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.course-summary {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
}

.course-btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary);
    color: var(--bg-white);
    text-decoration: none;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s;
}

.course-btn:hover {
    background: var(--dark);
    transform: translateY(-2px);
}

/* 培训区块 */
.training-section {
    padding: 100px 0;
    background: var(--bg-light);
}

.training-content {
    max-width: 1000px;
    margin: 0 auto 60px;
    text-align: center;
}

.training-content h2 {
    font-size: 42px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 25px;
}

.training-content p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 20px;
}

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

.training-item {
    background: var(--bg-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.training-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.training-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.training-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.training-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    padding: 25px 25px 10px;
    margin: 0;
}

.training-text {
    font-size: 15px;
    color: var(--text-light);
    padding: 0 25px 25px;
    line-height: 1.6;
    margin: 0;
}

/* 证书区块 */
.certificate-section {
    padding: 100px 0;
    background: var(--bg-white);
}

.certificate-content {
    max-width: 1000px;
    margin: 0 auto 60px;
    text-align: center;
}

.certificate-content h2 {
    font-size: 42px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 25px;
}

.certificate-content p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 20px;
}

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

.cert-item {
    background: var(--bg-light);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    text-align: center;
}

.cert-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    background: var(--bg-white);
}

.cert-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.cert-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cert-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    padding: 25px 25px 10px;
    margin: 0;
}

.cert-text {
    font-size: 15px;
    color: var(--text-light);
    padding: 0 25px 25px;
    line-height: 1.6;
    margin: 0;
}

/* 关于详情 */
.about-detail-section {
    padding: 100px 0;
    background: var(--bg-white);
}

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

.about-text-block h2 {
    font-size: 42px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 30px;
}

.about-text-block p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 25px;
}

.about-image-block {
    position: sticky;
    top: 100px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image-block img {
    width: 100%;
    height: auto;
    display: block;
}

/* 联系详情 */
.contact-detail-section {
    padding: 100px 0;
    background: var(--bg-white);
}

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

.contact-info-block h2 {
    font-size: 42px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 25px;
}

.contact-info-block p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 40px;
}

.contact-details-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-detail-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 25px;
    background: var(--bg-light);
    border-radius: 12px;
}

.detail-label {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 500;
}

.detail-value {
    font-size: 16px;
    color: var(--text-dark);
    font-weight: 600;
}

.contact-image-block {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.contact-image-block img {
    width: 100%;
    height: auto;
    display: block;
}

/* 信息区块 */
.info-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.info-box {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.info-box h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 25px;
}

.info-box p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-light);
}

/* 页脚 */
.site-footer {
    background: var(--text-dark);
    color: var(--bg-white);
    padding: 80px 0 30px;
    margin-top: 100px;
}

.footer-wrapper {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
}

.footer-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 25px;
    color: var(--accent);
}

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

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

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

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

.footer-menu a:hover {
    color: var(--accent);
}

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

.footer-copyright p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .asymmetric-grid,
    .about-layout,
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .image-box,
    .about-image-block {
        position: static;
    }

    .asymmetric-grid-services {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        height: auto;
    }

    .service-block.large-block {
        grid-row: auto;
        height: 400px;
    }

    .course-card.featured {
        grid-column: span 1;
    }
}

@media (max-width: 968px) {
    .nav-list {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        background: var(--bg-white);
        flex-direction: column;
        padding: 30px;
        gap: 0;
        box-shadow: var(--shadow-lg);
        transition: left 0.3s;
        z-index: 99;
    }

    .nav-list.active {
        left: 0;
    }

    .nav-list li {
        width: 100%;
        border-bottom: 1px solid var(--border);
    }

    .nav-list .nav-link {
        display: block;
        padding: 15px 0;
    }

    .mobile-nav-btn {
        display: flex;
    }

    .mobile-nav-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .mobile-nav-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-nav-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .hero-main-title {
        font-size: 48px;
    }

    .section-heading {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .nav-inner,
    .section-wrapper,
    .footer-wrapper {
        padding: 0 20px;
    }

    .hero-main-title {
        font-size: 36px;
    }

    .page-title {
        font-size: 42px;
    }

    .courses-grid-asymmetric {
        grid-template-columns: 1fr;
    }

    .advantages-grid {
        grid-template-columns: 1fr;
    }
}

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

    .hero-cta {
        flex-direction: column;
    }

    .cta-btn {
        width: 100%;
        text-align: center;
    }
}
