/* 首页特定样式 */

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 700px;
    background: linear-gradient(135deg, rgba(41, 54, 84, 0.85) 0%, rgba(41, 54, 84, 0.78) 100%), url('./img/b3a3e163-3377-40e1-93d4-e2221f123c75.jpg') center/cover no-repeat;
    color: white;
    display: flex;
    align-items: flex-end;
    position: relative;
    overflow: hidden;
    padding: 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23FF7F50' fill-opacity='0.07' fill-rule='evenodd'/%3E%3C/svg%3E");
    z-index: 0;
}

.hero-content {
    max-width: 850px;
    margin: 0 0 100px 50px;
    position: relative;
    z-index: 2;
    text-align: left;
    padding: 0 20px;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 25px;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    animation: fadeInUp 1s ease;
    white-space: nowrap;
}

.hero p {
    font-size: 1.4rem;
    max-width: 700px;
    margin: 0 0 40px;
    font-weight: 300;
    opacity: 0.9;
    animation: fadeInUp 1.2s ease;
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    display: inline-block;
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.hero-buttons .btn-secondary {
    background-color: transparent;
    border: 2px solid white;
    color: white;
}



/* Process Steps */
.process-steps {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 50px;
}

.step {
    flex: 1;
    min-width: 250px;
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.dark-section .step {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.step:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.step-number {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 4rem;
    font-weight: 700;
    color: rgba(41, 54, 84, 0.05);
    font-family: 'Playfair Display', serif;
}

.dark-section .step-number {
    color: rgba(255, 255, 255, 0.05);
}

.step-icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: var(--transition);
}

.step h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.dark-section .step h3 {
    color: white;
}

.step p {
    color: var(--light-text);
    line-height: 1.7;
    text-align: left; /* 改为左对齐 */
    word-wrap: break-word; /* 支持换行 */
}

.dark-section .step p {
    color: rgba(255, 255, 255, 0.8);
    text-align: left; /* 改为左对齐 */
    word-wrap: break-word; /* 支持换行 */
}

/* Services Grid */
.service-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 50px;
    justify-content: center;
}

.service-card {
    flex: 1 1 calc(50% - 15px);
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    min-width: 300px;
}

.dark-section .service-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
}

.dark-section .service-card h3 {
    color: white;
}

.service-card h3 i {
    margin-right: 10px;
    color: var(--accent-color);
    font-size: 1.4rem;
}

.service-card p {
    color: var(--light-text);
    margin-bottom: 0;
    line-height: 1.6;
    font-size: 0.95rem;
}

.dark-section .service-card p {
    color: rgba(255, 255, 255, 0.8);
}

.service-features {
    list-style: none;
}

.service-features li {
    margin-bottom: 15px;
    color: var(--light-text);
    display: flex;
    align-items: flex-start;
}

.dark-section .service-features li {
    color: rgba(255, 255, 255, 0.8);
}

.service-features li i {
    color: var(--accent-color);
    margin-right: 10px;
    margin-top: 5px;
    font-size: 0.9rem;
}

/* Content with Image */
.services-intro {
    text-align: center;
    margin-bottom: 50px;
}

.services-intro p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: var(--light-text);
}

.dark-section .services-intro p {
    color: rgba(255, 255, 255, 0.8);
}

/* Logo Grid */
.logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px;
}

.logo-item {
    background: white;
    border-radius: 15px;
    padding: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: var(--transition);
    height: 140px;
    position: relative;
    overflow: hidden;
}

.dark-section .logo-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.logo-item:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.logo-item:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.logo-item:hover:before {
    transform: scaleX(1);
}

.logo-item img {
    max-width: 100%;
    max-height: 90px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: var(--transition);
}

.logo-item:hover img {
    filter: grayscale(0);
    opacity: 1;
}

.show-more-container {
    text-align: center;
    margin-top: 40px;
}

.show-more-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.show-more-btn:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(41, 54, 84, 0.2);
}

.show-more-btn i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.show-more-btn.expanded i {
    transform: rotate(180deg);
}

.logo-item.hidden {
    display: none;
}

/* Swiper Navigation */
.swiper-nav-wrapper {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    /* 添加额外的左右padding为按钮留出空间 */
    padding-left: 80px;
    padding-right: 80px;
}

/* 重新设计导航按钮样式，将其完全移到容器外部 */
.swiper-button-next, 
.swiper-button-prev {
    color: var(--primary-color) !important;
    background: rgba(255, 255, 255, 0.9) !important;
    width: 40px !important; /* 缩小按钮尺寸 */
    height: 40px !important; /* 缩小按钮尺寸 */
    border-radius: 50% !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1) !important;
    transition: all 0.3s ease !important;
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 10 !important;
    margin: 0 !important;
    opacity: 1 !important;
}

.dark-section .swiper-button-next, 
.dark-section .swiper-button-prev {
    color: white !important;
    background: rgba(41, 54, 84, 0.8) !important;
}

.swiper-button-next {
    right: 30px !important; /* 相对于容器右侧定位 */
}

.swiper-button-prev {
    left: 30px !important; /* 相对于容器左侧定位 */
}

.swiper-button-next:after, 
.swiper-button-prev:after {
    font-size: 16px !important; /* 调整图标大小 */
    font-weight: bold !important;
}

.swiper-button-next:hover, 
.swiper-button-prev:hover {
    background: var(--accent-color) !important;
    color: white !important;
    transform: translateY(-50%) scale(1.1) !important; /* 添加缩放效果 */
}

/* 添加选中状态样式 */
.swiper-button-next.swiper-button-disabled, 
.swiper-button-prev.swiper-button-disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    background: rgba(255, 255, 255, 0.5) !important;
    color: var(--light-text) !important;
}

.dark-section .swiper-button-next.swiper-button-disabled, 
.dark-section .swiper-button-prev.swiper-button-disabled {
    background: rgba(41, 54, 84, 0.5) !important;
    color: rgba(255, 255, 255, 0.5) !important;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: var(--light-text);
    opacity: 0.5;
    transition: var(--transition);
}

.swiper-pagination-bullet-active {
    background: var(--accent-color);
    opacity: 1;
    transform: scale(1.2);
}

/* 优化导师团队卡片样式 */
.mentor-title {
    display: block;
    color: var(--accent-color);
    font-weight: 600;
    margin: 10px 0;
    font-size: 1.1rem;
    font-style: italic;
}

.dark-section .mentor-title {
    color: var(--accent-color);
}

.swiper-slide {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    /* 使用固定高度确保一致性 */
    height: 320px !important;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* 展开状态下的样式 */
.swiper-slide.expanded {
    height: auto !important;
    max-height: none !important;
    overflow: visible;
    min-height: 320px;
}

.dark-section .swiper-slide {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.swiper-slide:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.swiper-slide:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
}

.swiper-slide h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 10px;
    flex-shrink: 0;
}

.dark-section .swiper-slide h3 {
    color: white;
}

.swiper-slide .mentor-title {
    flex-shrink: 0;
}

.swiper-slide p {
    color: var(--light-text);
    line-height: 1.6;
    margin-top: 15px;
    flex-grow: 1;
    align-self: stretch;
    overflow: hidden;
}

.dark-section .swiper-slide p {
    color: rgba(255, 255, 255, 0.8);
}

/* 为英文版本添加特定样式，当文案超出时隐藏 */
html[lang="en"] .swiper-slide p {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* 限制显示3行 */
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}

/* 展开状态 */
html[lang="en"] .swiper-slide.expanded p {
    -webkit-line-clamp: unset;
    overflow: visible;
    display: block;
    max-height: none;
    min-height: auto;
}

/* 查看更多按钮 */
.read-more-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: center;
    margin-top: 10px;
    flex-shrink: 0;
}

.read-more-btn:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

.read-more-btn::before {
    content: '';
}

.read-more-btn::after {
    content: ' More';
}

.swiper-slide.expanded .read-more-btn::after {
    content: ' Less';
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.contact-card {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    transition: var(--transition);
    text-align: center;
}

.dark-section .contact-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.contact-card h3 {
    color: var(--primary-color);
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.dark-section .contact-card h3 {
    color: white;
}

.contact-info {
    text-align: left;
}

.contact-info p {
    margin-bottom: 15px;
    color: var(--light-text);
    display: flex;
    align-items: flex-start;
}

.dark-section .contact-info p {
    color: rgba(255, 255, 255, 0.8);
}

.contact-info i {
    color: var(--primary-color);
    margin-right: 15px;
    margin-top: 5px;
    min-width: 20px;
}

.map-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    margin-top: 15px;
    transition: var(--transition);
}

.map-link:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.dark-section .map-link {
    color: var(--accent-color);
}

.dark-section .map-link:hover {
    color: white;
}

/* Buttons */
.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid white;
    color: white;
}

.btn:hover {
    color: white;
}

.btn-secondary:hover {
    background-color: white;
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 1100px) {
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .swiper-nav-wrapper {
        padding-left: 70px;
        padding-right: 70px;
    }
    
    .swiper-button-next {
        right: 20px;
    }
    
    .swiper-button-prev {
        left: 20px;
    }
    
    .swiper-slide {
        height: 300px !important;
        padding: 25px;
    }
    
    html[lang="en"] .swiper-slide p {
        -webkit-line-clamp: 3; /* 限制显示3行 */
    }
}

@media (max-width: 992px) {
    .content-with-image {
        flex-direction: column;
        gap: 30px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-column {
        margin-bottom: 40px;
    }
    
    .hero {
        padding: 180px 0 120px;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(41, 54, 84, 0.95);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        transform: none;
        backdrop-filter: blur(10px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .nav-links.active {
        display: flex;
        background: rgba(41, 54, 84, 0.95);
        backdrop-filter: blur(10px);
    }
    
    .nav-links li {
        margin: 15px 0;
        transform: none;
        width: 100%;
        text-align: center;
    }
    
    .nav-links a {
        color: white;
        transform: none;
        padding: 15px;
        font-size: 16px;
        text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    }
    
    .nav-links.active a {
        color: white;
        text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    }
    
    .nav-links.active a:hover {
        color: #3498db;
        text-shadow: 0 1px 3px rgba(0,0,0,0.4);
    }
    
    .nav-links.active a.active {
        color: #3498db;
        text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    }
    
    .hamburger {
        display: block;
    }
    
    /* 在小屏幕上将按钮移到底部 */
    .swiper-nav-wrapper {
        padding: 0 15px;
        padding-bottom: 60px;
    }
    
    /* 在小屏幕上将按钮移到底部 */
    .swiper-button-next, 
    .swiper-button-prev {
        width: 35px !important;
        height: 35px !important;
        top: auto !important;
        bottom: -5px !important;
        transform: none !important;
        margin-top: 0 !important;
    }
    
    .swiper-button-next {
        right: 20px !important;
    }
    
    .swiper-button-prev {
        left: auto !important;
    }
    
    .swiper-button-next:after, 
    .swiper-button-prev:after {
        font-size: 14px !important;
    }
    
    .swiper-slide {
        height: 280px !important;
        padding: 25px;
    }
    
    html[lang="en"] .swiper-slide p {
        -webkit-line-clamp: 3; /* 限制显示3行 */
    }
}

@media (max-width: 768px) {
    .process-steps {
        flex-direction: column;
    }
    
    .step {
        flex-basis: 100%;
        margin: 15px 0;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .logo-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
    
    .section-title h2 {
        font-size: 2.3rem;
    }
    
    section {
        padding: 80px 0;
    }
    
    .service-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .service-card {
        flex: 1 1 100%;
        max-width: 100%;
        min-width: unset;
    }
    
    .process-steps {
        flex-direction: column;
    }
    
    .step {
        flex-basis: 100%;
        margin: 15px 0;
    }
    
    .contact-card {
        padding: 30px;
    }
    
    .swiper-nav-wrapper {
        padding: 0 15px;
        padding-bottom: 55px;
    }
    
    .swiper-button-next, 
    .swiper-button-prev {
        width: 32px !important;
        height: 32px !important;
        bottom: -5px !important;
    }
    
    .swiper-button-next {
        right: 15px !important;
    }
    
    .swiper-button-prev {
        right: 62px !important;
    }
    
    .swiper-slide {
        height: 260px !important;
        padding: 20px;
    }
    
    html[lang="en"] .swiper-slide p {
        -webkit-line-clamp: 3; /* 限制显示3行 */
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 150px 0 100px;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .btn {
        padding: 12px 30px;
        width: 100%;
    }
    
    .tabs li {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .contact-card {
        padding: 25px;
    }
    
    .content-info {
        padding: 25px;
    }
    
    .swiper-nav-wrapper {
        padding: 0 10px;
        padding-bottom: 50px;
    }
    
    .swiper-slide {
        height: 250px !important;
        padding: 15px;
    }
    
    /* 移除文本截断，保持内容完整 */
    .swiper-slide p {
        /* 移除 -webkit-line-clamp 设置 */
    }
    
    .swiper-button-next, 
    .swiper-button-prev {
        width: 30px !important;
        height: 30px !important;
        bottom: -5px !important;
    }
    
    .swiper-button-next {
        right: 10px !important;
    }
    
    .swiper-button-prev {
        right: 55px !important;
    }
    
    .swiper-button-next:after, 
    .swiper-button-prev:after {
        font-size: 12px !important;
    }
    
    .swiper-slide h3 {
        font-size: 1.3rem;
    }
    
    .swiper-slide p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    html[lang="en"] .swiper-slide p {
        -webkit-line-clamp: 4; /* 在小屏幕上增加显示行数 */
    }
}