/* 自定义样式 */
:root {
    --primary-color: #4361ee;
    --secondary-color: #3f37c9;
    --accent-color: #4cc9f0;
    --light-bg: #f8f9fa;
    --dark-text: #212529;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #ffffff;
    color: var(--dark-text);
}

/* 顶部导航栏 */
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.5rem;
}

.navbar-brand img {
    height: 40px;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

/* 轮播区域 */
.hero-carousel .carousel-item {
    height: 500px;
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    background: rgba(0, 0, 0, 0.4);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

/* AI交付区域 */
.ai-delivery-section {
    padding: 60px 0;
    background-color: var(--light-bg);
}

.ai-delivery-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.card-image-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.card-circle-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    border: 3px solid var(--primary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-circle-image:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

.card-image-header h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-text);
    margin: 0;
    flex: 1;
    text-align: left;
    line-height: 1.4;
}

.card-description {
    color: #555;
    line-height: 1.7;
    font-size: 0.9rem;
    margin-top: 15px !important;
    text-align: justify;
}

/* 核心服务区域 */
.core-services-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.core-services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(67, 97, 238, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(76, 201, 240, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.services-title {
    text-align: center;
    margin-bottom: 60px;
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary-color);
    position: relative;
    z-index: 1;
}

.services-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    margin: 20px auto 0;
    border-radius: 2px;
}

.services-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    position: relative;
    z-index: 1;
}

.service-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(67, 97, 238, 0.2);
}

.service-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-card-image img {
    transform: scale(1.1);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.8) 0%, rgba(63, 55, 201, 0.8) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover .image-overlay {
    opacity: 1;
}

.image-overlay i {
    font-size: 4rem;
    color: white;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.service-card:hover .image-overlay i {
    transform: scale(1);
}

.service-card-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-card-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 12px;
}

.service-card-content h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.service-card-content p {
    color: #666;
    line-height: 1.8;
    font-size: 1rem;
    flex: 1;
}

/* AI 应用解决方案区域 */
.ai-applications-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #ffffff 0%, #f0f4ff 100%);
    position: relative;
    overflow: hidden;
}

.ai-applications-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(67, 97, 238, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 70% 50%, rgba(76, 201, 240, 0.03) 0%, transparent 50%);
    animation: rotate 30s linear infinite;
    pointer-events: none;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.applications-title {
    text-align: center;
    margin-bottom: 60px;
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary-color);
    position: relative;
    z-index: 1;
}

.applications-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    margin: 20px auto 0;
    border-radius: 2px;
}

.applications-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    position: relative;
    z-index: 1;
}

.application-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
}

.application-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(67, 97, 238, 0.2);
}

.application-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.application-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.application-card:hover .application-card-image img {
    transform: scale(1.1);
}

.application-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.9) 0%, rgba(76, 201, 240, 0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.application-card:hover .application-overlay {
    opacity: 1;
}

.application-overlay i {
    font-size: 4rem;
    color: white;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.application-card:hover .application-overlay i {
    transform: scale(1);
}

.application-card-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.application-card-content h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 12px;
}

.application-card-content h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.application-card-content p {
    color: #666;
    line-height: 1.8;
    font-size: 1rem;
    flex: 1;
}

/* 卡片区 */
.cards-section {
    padding: 60px 0;
}

.industry-solutions-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    position: relative;
}

.industry-solutions-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    margin: 20px auto 0;
    border-radius: 2px;
}

.card-container {
    position: relative;
    overflow: hidden;
}

.cards-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.solution-card {
    min-width: 300px;
    margin-right: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.solution-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.solution-card-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.solution-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.solution-card:hover .solution-card-image img {
    transform: scale(1.1);
}

.solution-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.85) 0%, rgba(63, 55, 201, 0.85) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.solution-card:hover .solution-image-overlay {
    opacity: 1;
}

.solution-image-overlay i {
    font-size: 3.5rem;
    color: white;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.solution-card:hover .solution-image-overlay i {
    transform: scale(1);
}

.card-header {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1.25rem;
    font-weight: 600;
    font-size: 1.15rem;
}

.card-body {
    padding: 1.5rem;
}

.card-body p {
    color: #555;
    line-height: 1.6;
}

.card-icon {
    width: 60px;
    height: 60px;
    background: rgba(67, 97, 238, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.card-icon i {
    font-size: 28px;
    color: var(--primary-color);
}

/* 导航按钮 */
.carousel-nav {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    gap: 15px;
}

.nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 可访问性和 AI 爬虫优化 */
.site-footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #ffffff;
    padding: 50px 0 30px;
    margin-top: 80px;
}

.site-footer h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.site-footer a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-footer a:hover {
    color: var(--accent-color);
}

.site-footer ul {
    list-style: none;
    padding: 0;
}

.site-footer li {
    margin-bottom: 10px;
}

/* 跳至主要内容链接（无障碍访问） */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    z-index: 100;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* 图片懒加载优化 */
img {
    loading: lazy;
}

/* 确保文本对比度符合 WCAG 标准 */
.card-description,
.service-card-content p,
.application-card-content p {
    color: #555;
    line-height: 1.8;
}

/* 打印样式优化 */
@media print {
    .navbar,
    .carousel-control-prev,
    .carousel-control-next,
    .carousel-nav,
    .site-footer {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    a {
        text-decoration: underline;
    }
}

/* 响应式调整 */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.2rem;
    }
    
    .ai-delivery-title {
        font-size: 2rem;
    }
    
    .industry-solutions-title {
        font-size: 2rem;
    }
    
    .applications-title {
        font-size: 2.2rem;
    }
    
    .applications-wrapper {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .hero-carousel .carousel-item {
        height: 400px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .solution-card {
        min-width: 280px;
        margin-right: 20px;
    }
    
    .core-services-section {
        padding: 50px 0;
    }
    
    .services-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    .services-wrapper {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .service-card-image {
        height: 200px;
    }
    
    .ai-applications-section {
        padding: 50px 0;
    }
    
    .applications-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    .applications-wrapper {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .application-card-image {
        height: 200px;
    }
}

@media (max-width: 576px) {
    .navbar-brand span {
        display: none;
    }
    
    .hero-carousel .carousel-item {
        height: 350px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .ai-delivery-title {
        font-size: 1.8rem;
    }
    
    .industry-solutions-title {
        font-size: 1.8rem;
    }
    
    .solution-card {
        min-width: 250px;
        margin-right: 15px;
    }
    
    .card-image-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .card-circle-image {
        width: 80px;
        height: 80px;
    }
    
    .card-image-header h4 {
        font-size: 1.1rem;
        text-align: center;
    }
    
    .services-title {
        font-size: 1.8rem;
    }
    
    .service-card-content h3 {
        font-size: 1.3rem;
    }
    
    .service-card-content p {
        font-size: 0.95rem;
    }
    
    .applications-title {
        font-size: 1.8rem;
    }
    
    .application-card-content h3 {
        font-size: 1.4rem;
    }
    
    .application-card-content p {
        font-size: 0.95rem;
    }
}
