/* 自定义样式 */
:root {
    --primary-color: #4361ee;
    --secondary-color: #3f37c9;
    --accent-color: #4cc9f0;
    --light-bg: #f8f9fa;
    --dark-text: #212529;
}

/* 5 列布局 - 每列占 20% 宽度 */
.col-md-2-4 {
    flex: 0 0 20%;
    max-width: 20%;
}

@media (max-width: 768px) {
    .col-md-2-4 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 30px !important;
    }
}

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;
}

/* 导航栏悬浮效果 */
.navbar {
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.navbar.scrolled {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 为固定导航栏添加页面顶部占位，防止内容被遮挡 */
body {
    padding-top: 0;
}

body.has-fixed-navbar {
    padding-top: 80px;
}

/* 轮播区域 */
.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-research-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.ai-research-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.04) 0%, transparent 50%),
                radial-gradient(circle at 70% 50%, rgba(76, 201, 240, 0.04) 0%, transparent 50%);
    animation: rotate 40s linear infinite;
    pointer-events: none;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.research-title {
    text-align: center;
    margin-bottom: 20px;
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary-color);
    position: relative;
    z-index: 1;
}

.research-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;
}

.research-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.research-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    position: relative;
    z-index: 1;
}

.research-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;
}

.research-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(67, 97, 238, 0.2);
}

.research-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.research-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.research-card:hover .research-card-image img {
    transform: scale(1.1);
}

.research-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;
}

.research-card:hover .research-overlay {
    opacity: 1;
}

.research-overlay i {
    font-size: 4rem;
    color: white;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.research-card:hover .research-overlay i {
    transform: scale(1);
}

.research-card-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.research-card-content h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 12px;
}

.research-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;
}

.research-card-content p {
    color: #666;
    line-height: 1.8;
    font-size: 1rem;
    flex: 1;
}

/* 研究卡片链接样式 */
.research-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.research-card-link:hover {
    transform: translateY(-15px);
}

.research-card-link:hover .research-card {
    box-shadow: 0 20px 40px rgba(67, 97, 238, 0.2);
}

/* 文章元信息 */
.research-card-meta {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
    font-size: 0.85rem;
    color: #adb5bd;
}

.research-card-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.research-card-meta i {
    font-size: 0.8rem;
}

/* 查看更多特殊卡片 */
.view-all-card-inner {
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.05) 0%, rgba(76, 201, 240, 0.05) 100%);
    border: 2px dashed rgba(67, 97, 238, 0.3);
    height: 100%;
}

.view-all-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 40px 30px;
    text-align: center;
}

.view-all-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    opacity: 0.6;
}

.view-all-card h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.view-all-card p {
    color: #6c757d;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 25px;
}

.btn-view-all {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.2);
}

.btn-view-all:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(67, 97, 238, 0.3);
}

.btn-view-all i {
    transition: transform 0.3s ease;
}

.btn-view-all:hover i {
    transform: translateX(5px);
}

/* 底部查看更多按钮 */
.btn-outline-primary {
    transition: all 0.3s ease;
    border-width: 2px;
}

.btn-outline-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(67, 97, 238, 0.3);
}

/* 卡片区 */
.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;
}

/* 页脚链接列表样式 */
.footer-links li {
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.footer-links li:hover {
    transform: translateX(5px);
}

.footer-links a {
    display: inline-block;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    transform: translateX(3px);
}

/* 响应式调整 - 页脚 */
@media (max-width: 768px) {
    .site-footer {
        padding: 40px 0 20px;
        margin-top: 60px;
    }
    
    .site-footer h3 {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }
}

/* 备案信息样式 */
.icp-filing {
    margin-top: 10px !important;
    font-size: 0.9rem;
    color: #999;
}

.icp-filing a {
    color: #999;
    text-decoration: none;
    transition: all 0.3s ease;
}

.icp-filing a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* 页脚公司信息区域样式 */
.company-info-section {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.company-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.company-contact,
.company-address {
    font-size: 1rem;
    color: #cccccc;
}

.company-contact i,
.company-address i {
    color: var(--accent-color);
}

/* 跳至主要内容链接（无障碍访问） */
.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 {
    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;
    }
    
    .services-title {
        font-size: 2.2rem;
    }
    
    .services-wrapper {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 30px;
    }
    
    .research-title {
        font-size: 2.2rem;
    }
    
    .research-subtitle {
        font-size: 1rem;
    }
}

@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-research-section {
        padding: 50px 0;
    }
    
    .research-title {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    .research-subtitle {
        font-size: 1rem;
        margin-bottom: 40px;
    }
    
    .research-wrapper {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .research-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;
    }
    
    .research-title {
        font-size: 1.8rem;
    }
    
    .research-subtitle {
        font-size: 0.95rem;
    }
    
    .research-card-content h3 {
        font-size: 1.4rem;
    }
    
    .research-card-content p {
        font-size: 0.95rem;
    }
}
