/* 全局样式 */
:root {
    --primary-color: #1E88E5;
    --secondary-color: #333333;
    --accent-color: #FF9800;
    --light-gray: #F5F7FA;
    --text-gray: #666666;
    --white: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Microsoft YaHei', 'SimHei', sans-serif;
    color: var(--secondary-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    /* 优化滚动性能 */
    -webkit-overflow-scrolling: touch;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 60px;
}

/* 中等屏幕宽度调整 */
@media (min-width: 1200px) {
    .container {
        padding: 0 70px;
    }
}

/* 大屏幕宽度调整 */
@media (min-width: 1400px) {
    .container {
        padding: 0 80px;
    }
}

/* 导航栏 */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.navbar.scrolled {
    background: var(--white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-size: 20px;
    font-weight: bold;
    color: var(--secondary-color);
    text-decoration: none;
    gap: 12px;
    height: 40px;
    flex-shrink: 0;
}

.logo-img {
    height: 40px;
    width: auto;
    max-width: 40px;
    object-fit: contain;
    display: none;
    flex-shrink: 0;
    vertical-align: middle;
}

.logo-img[src]:not([src=""]) {
    display: inline-block !important;
}

.navbar-brand #siteTitle {
    display: inline-flex !important;
    align-items: center;
    line-height: 1;
    height: 100%;
    margin: 0;
    padding: 0;
}

.navbar-brand #siteEnglishTitle {
    display: inline-flex;
    align-items: center;
    font-size: 16px;
    font-weight: normal;
    color: var(--text-gray);
    margin-left: 8px;
    line-height: 1;
    height: 100%;
    padding: 0;
}

/* Admin 入口按钮 */
.admin-entry-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-left: 10px;
    margin-right: 5px;
    color: var(--text-gray);
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
    cursor: pointer;
    flex-shrink: 0;
}

.admin-entry-btn:hover {
    color: var(--primary-color);
    background: rgba(30, 136, 229, 0.1);
    border-color: var(--primary-color);
    transform: rotate(90deg);
}

.admin-entry-btn:active {
    transform: rotate(90deg) scale(0.95);
}

.navbar-nav {
    text-align: left;
}

.navbar-nav .nav-item {
    opacity: 1 !important;
    animation: none !important;
    transition: none !important;
}

.navbar-nav .nav-link {
    color: var(--secondary-color);
    font-size: 16px;
    margin: 0 15px;
    text-align: left;
    opacity: 1 !important;
    animation: none !important;
    transition: none !important;
}

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

.navbar-actions {
    display: flex;
    align-items: center;
}

.btn-primary {
    background-color: var(--primary-color);
    border: none;
    border-radius: 4px;
    padding: 8px 20px;
    transition: background-color 0.3s ease;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.btn-primary:hover {
    background-color: #1565C0;
}

/* Banner区 */
.banner-section {
    position: relative;
    height: 500px;
    margin-top: 70px;
    overflow: hidden;
    z-index: 1;
    /* 确保banner不会与下方内容重叠 */
    margin-bottom: 0;
    will-change: transform;
    transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.banner-swiper {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
}

.banner-swiper .swiper-slide {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 500px;
    position: relative;
    transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1), opacity 1s ease-out;
}

.banner-swiper .swiper-pagination {
    bottom: 80px;
}

.banner-swiper .swiper-pagination-bullet {
    background: var(--white);
    opacity: 0.5;
    width: 10px;
    height: 10px;
}

.banner-swiper .swiper-pagination-bullet-active {
    opacity: 1;
}

.banner-swiper .swiper-button-next,
.banner-swiper .swiper-button-prev {
    color: var(--white);
    opacity: 0.7;
}

.banner-swiper .swiper-button-next:hover,
.banner-swiper .swiper-button-prev:hover {
    opacity: 1;
}

.slogan-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, calc(-50% + 80px));
    text-align: center;
    z-index: 10;
    pointer-events: none; /* 防止遮挡点击事件 */
    width: 100%;
    padding: 0 20px;
}

.slogan-text h1 {
    color: var(--white);
    font-size: 36px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

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

/* 滚动动画类 */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.animated {
    opacity: 1;
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fade-in {
    opacity: 0;
    transition: opacity 0.8s ease-out;
}

.animate-fade-in.animated {
    opacity: 1;
    animation: fadeIn 0.8s ease-out forwards;
}

.animate-scale-in {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-scale-in.animated {
    opacity: 1;
    transform: scale(1);
}

.animate-slide-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-slide-left.animated {
    opacity: 1;
    transform: translateX(0);
}

.animate-slide-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-slide-right.animated {
    opacity: 1;
    transform: translateX(0);
}

/* 业务展示区 */
.business-section {
    padding: 80px 0;
}

.section-title {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 40px;
    text-align: center;
    color: var(--secondary-color);
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.section-title.animated {
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 0.8s ease-out forwards;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transition: width 0.8s ease-out;
}

.section-title.animated::after {
    width: 80px;
}

.business-card {
    background: var(--white);
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease, background-color 0.3s ease;
    cursor: pointer;
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform;
    opacity: 0;
    transform: translateY(30px);
}

.business-card.animated {
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 0.6s ease-out forwards;
}

.business-card:nth-child(1) { animation-delay: 0.1s; }
.business-card:nth-child(2) { animation-delay: 0.2s; }
.business-card:nth-child(3) { animation-delay: 0.3s; }
.business-card:nth-child(4) { animation-delay: 0.4s; }
.business-card:nth-child(5) { animation-delay: 0.5s; }
.business-card:nth-child(6) { animation-delay: 0.6s; }

.business-card:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    transform: translateY(-8px) scale(1.02);
    background-color: #f8f9fa;
}

.business-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    object-fit: cover;
}

.business-name {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.business-intro {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 15px;
    min-height: 40px;
}

.business-detail-btn {
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    background: transparent;
    padding: 6px 16px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.business-detail-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* 品牌实力区 */
.strength-section {
    padding: 80px 0;
    background: #ffffff;
    position: relative;
    z-index: 2; /* 确保在banner之上 */
    margin-top: 0;
}

.strength-module-row {
    margin-bottom: 60px;
    overflow: hidden;
}

/* 品牌实力内容区域 - 从右侧滑入 */
.strength-module-content {
    padding: 20px 0;
    opacity: 0;
    transform: translateX(80px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.strength-module-content.animated {
    opacity: 1;
    transform: translateX(0);
}

/* 品牌实力内容区域 - 从左侧滑入（奇数索引） */
.strength-module-content.slide-from-left {
    opacity: 0;
    transform: translateX(-80px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.strength-module-content.slide-from-left.animated {
    opacity: 1;
    transform: translateX(0);
}

/* 品牌实力图片包装器 - 从左侧滑入（默认，偶数索引） */
.strength-module-img-wrapper {
    width: 100%;
    opacity: 0;
    transform: translateX(-80px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.strength-module-img-wrapper.animated {
    opacity: 1;
    transform: translateX(0);
}

/* 品牌实力图片 - 从右侧滑入（奇数索引） */
.strength-module-img-wrapper.slide-from-right {
    opacity: 0;
    transform: translateX(80px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.strength-module-img-wrapper.slide-from-right.animated {
    opacity: 1;
    transform: translateX(0);
}

.strength-module-row:nth-child(1) .strength-module-content { transition-delay: 0.1s; }
.strength-module-row:nth-child(1) .strength-module-img-wrapper { transition-delay: 0.2s; }
.strength-module-row:nth-child(2) .strength-module-content { transition-delay: 0.1s; }
.strength-module-row:nth-child(2) .strength-module-img-wrapper { transition-delay: 0.2s; }
.strength-module-row:nth-child(3) .strength-module-content { transition-delay: 0.1s; }
.strength-module-row:nth-child(3) .strength-module-img-wrapper { transition-delay: 0.2s; }

.strength-module-row:last-child {
    margin-bottom: 0;
}

/* strength-module-content 样式已在上面定义 */

.strength-module-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #000000;
    margin-bottom: 25px;
    padding-bottom: 15px;
    position: relative;
    display: inline-block;
    width: 100%;
}

.strength-module-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #dc3545;
}

.strength-module-text {
    font-size: 16px;
    color: #333333;
    line-height: 1.8;
    margin-bottom: 25px;
}

.strength-module-link {
    display: inline-block;
    color: #dc3545;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.strength-module-link:hover {
    color: #c82333;
    text-decoration: underline;
}

/* strength-module-img-wrapper 的样式已在上面定义 */

.strength-module-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

/* 隐藏没有src或src为空的图片 */
.strength-module-img:not([src]),
.strength-module-img[src=""] {
    display: none;
    display: block;
}

@media (max-width: 991px) {
    .strength-module-title {
        font-size: 2rem;
    }
    
    .strength-module-row {
        margin-bottom: 40px;
    }
}

/* 学员案例区 */
/* 学员案例区 */
.case-section {
    padding: 80px 0;
    background: var(--light-gray);
}

.case-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(30px);
}

.case-card.animated {
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 0.6s ease-out forwards;
}

.case-card:nth-child(1) { animation-delay: 0.1s; }
.case-card:nth-child(2) { animation-delay: 0.2s; }
.case-card:nth-child(3) { animation-delay: 0.3s; }

.case-card:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    transform: translateY(-8px) scale(1.02);
}

.case-img-wrapper {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.case-card:hover .case-img {
    transform: scale(1.05);
}

.case-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.case-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--secondary-color);
    line-height: 1.4;
}

.case-student,
.case-achievement {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 8px;
    line-height: 1.6;
}

.case-student strong,
.case-achievement strong {
    color: var(--secondary-color);
    font-weight: 600;
}

.case-desc {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
    margin-top: auto;
    margin-bottom: 0;
}

/* 教学环境区 */
.environment-section {
    padding: 80px 0;
    background: #ffffff;
}

.environment-section .row {
    margin-left: -15px;
    margin-right: -15px;
}

.environment-section .row > [class*="col-"] {
    padding-left: 15px;
    padding-right: 15px;
}

.environment-intro {
    font-size: 1.1rem;
    color: var(--text-gray);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.environment-section .row {
    margin-left: -15px;
    margin-right: -15px;
}

.environment-section .row > [class*="col-"] {
    padding-left: 15px;
    padding-right: 15px;
    flex: 0 0 auto;
}

@media (min-width: 768px) {
    .environment-section .row > [class*="col-md-3"] {
        width: 25%;
    }
}

@media (max-width: 767px) {
    .environment-section .row > [class*="col-sm-6"] {
        width: 50%;
    }
}

@media (max-width: 575px) {
    .environment-section .row > [class*="col-sm-6"] {
        width: 100%;
    }
}

.environment-item {
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
    cursor: pointer;
    background: var(--white);
    opacity: 0;
    transform: translateY(30px) scale(0.95);
}

.environment-item.animated {
    opacity: 1;
    transform: translateY(0) scale(1);
    animation: scaleIn 0.6s ease-out forwards;
}

.environment-item:nth-child(1) { animation-delay: 0.1s; }
.environment-item:nth-child(2) { animation-delay: 0.3s; }
.environment-item:nth-child(3) { animation-delay: 0.5s; }
.environment-item:nth-child(4) { animation-delay: 0.7s; }

.environment-item:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    transform: translateY(-8px) scale(1.02);
}

.environment-img-wrapper {
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.environment-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.environment-item:hover .environment-img {
    transform: scale(1.1);
}

.environment-caption {
    padding: 20px;
    text-align: center;
    background: var(--white);
}

.environment-caption h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 8px;
}

.environment-caption p {
    font-size: 14px;
    color: var(--text-gray);
    margin: 0;
    line-height: 1.6;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .environment-img-wrapper {
        height: 250px;
    }
}

@media (max-width: 576px) {
    .environment-img-wrapper {
        height: 200px;
    }
}

/* 底部信息区 */
.footer-section {
    background: var(--secondary-color);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-contact h4 {
    margin-bottom: 20px;
    font-size: 18px;
}

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

.footer-navigation {
    text-align: left;
}

.footer-navigation h4 {
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav-item {
    margin-bottom: 12px;
    opacity: 1 !important;
    animation: none !important;
    transition: none !important;
}

.footer-nav-link {
    color: var(--white);
    text-decoration: none;
    font-size: 14px;
    display: inline-block;
    opacity: 1 !important;
    animation: none !important;
    transition: none !important;
}

.footer-nav-link:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-wechat {
    text-align: left;
}

.footer-wechat h4 {
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-wechat p {
    margin-bottom: 8px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.footer-qrcode {
    text-align: center;
}

.qrcode-group {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.qrcode-item {
    text-align: center;
}

.qrcode-img {
    width: 120px;
    height: 120px;
    margin-bottom: 10px;
    border-radius: 4px;
}

.qrcode-domain {
    margin-top: 10px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.footer-copyright {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 14px;
}

.icp-text {
    margin-top: 10px;
    font-size: 12px;
    opacity: 0.8;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .banner-section {
        height: 300px;
        margin-top: 60px;
    }

    .slogan-text {
        top: 50%;
        left: 50%;
        transform: translate(-50%, calc(-50% + 80px));
    }

    .slogan-text h1 {
        font-size: 28px;
    }

    .business-section,
    .strength-section,
    .case-section {
        padding: 40px 0;
    }

    .section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .business-card {
        margin-bottom: 20px;
    }

    .strength-item img {
        height: 150px;
    }


    .footer-contact,
    .footer-navigation,
    .footer-wechat,
    .footer-qrcode {
        margin-top: 30px;
        text-align: center;
    }

    .footer-navigation {
        text-align: center;
    }

    .footer-nav-list {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .footer-nav-item {
        margin-bottom: 0;
    }

    .footer-wechat {
        text-align: center;
    }

    .qrcode-group {
        flex-direction: column;
        gap: 20px;
    }

    .qrcode-img {
        width: 100px;
        height: 100px;
    }

    .banner-swiper .swiper-button-next,
    .banner-swiper .swiper-button-prev {
        display: none;
    }

    /* 移动端禁用所有动画效果（保留 banner 定时切换） */
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    /* 保留 banner 轮播的切换效果和 Swiper 内部动画 */
    .banner-swiper,
    .banner-swiper .swiper-wrapper,
    .banner-swiper .swiper-slide,
    .banner-swiper .swiper-slide * {
        animation: unset !important;
        transition: unset !important;
        transform: unset !important;
    }

    /* 保留必要的布局 transform */
    .slogan-text {
        transform: translate(-50%, calc(-50% + 80px)) !important;
    }

    /* 禁用滚动动画类 */
    .animated {
        opacity: 1 !important;
        animation: none !important;
        transform: none !important;
    }

    /* 禁用 hover 效果 */
    .business-card:hover,
    .case-card:hover,
    .environment-item:hover,
    .service-card:hover {
        transform: none !important;
    }

    /* 禁用 banner 的视差效果 */
    .banner-section {
        transform: none !important;
        will-change: auto !important;
    }
}

