/* 英雄区域 - 修复文字展示问题 */
.hero {
    height: 100vh;
    min-height: 800px;
    background: linear-gradient(135deg, rgba(10, 94, 156, 0.85) 0%, rgba(0, 163, 224, 0.85) 100%), url('https://images.unsplash.com/photo-1552664730-d307ca884978?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center; /* 添加居中 */
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 900px;
    text-align: center;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
    width: 100%; /* 确保宽度 */
}

.hero-slide {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    padding: 0 20px;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide h2 {
    font-size: 52px;
    margin-bottom: 25px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.hero-slide p {
    font-size: 22px;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* 轮播图 */
.slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
}

.slide.active {
    opacity: 1;
}

.slide-1 {
    background: linear-gradient(135deg, rgba(10, 94, 156, 0.85) 0%, rgba(0, 163, 224, 0.85) 100%), url('../images/slide-1.jpg') no-repeat center center/cover;
}


.slide-2 {
    background: linear-gradient(135deg, rgba(26, 42, 74, 0.85) 0%, rgba(0, 163, 224, 0.85) 100%), url('../images/slide-2.jpg') no-repeat center center/cover;
}

.slide-3 {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.85) 0%, rgba(0, 192, 255, 0.85) 100%), url('../images/slide-3.jpg') no-repeat center center/cover;
}

/* 服务区域 - 横向布局 */
.services {
    background-color: white;
    position: relative;
    overflow: hidden;
}

.services:before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, rgba(10, 94, 156, 0.03) 0%, rgba(0, 163, 224, 0.03) 100%);
    border-radius: 50%;
    z-index: 0;
}

.service-row {
    display: flex;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 40px;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.service-row:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.main-service {
    flex: 1;
    padding: 40px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.main-service:after {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.main-service i {
    font-size: 52px;
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.9);
}

.main-service h3 {
    font-size: 32px;
    margin-bottom: 20px;
    font-weight: 700;
}

.main-service p {
    font-size: 17px;
    opacity: 0.9;
    margin-bottom: 30px;
    line-height: 1.7;
}

.sub-services {
    flex: 2;
    padding: 30px;
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    background: white;
}

.sub-services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
}

.sub-service-item {
    padding: 25px;
    background: var(--light);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.sub-service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--accent);
}

.sub-service-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.sub-service-header i {
    font-size: 24px;
    color: var(--accent);
    margin-right: 12px;
    width: 40px;
    height: 40px;
    background: rgba(0, 192, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sub-service-header h4 {
    font-size: 18px;
    color: var(--dark);
    font-weight: 700;
}

.sub-service-desc {
    color: var(--gray);
    font-size: 15px;
    margin-bottom: 15px;
    line-height: 1.6;
    flex-grow: 1;
}

.sub-service-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    padding-top: 15px;
    border-top: 1px dashed rgba(0, 0, 0, 0.1);
}

.price-tag {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
}

.price-desc {
    font-size: 13px;
    color: var(--gray);
    font-style: italic;
}

/* 知识库区域 - 6条展示 */
.knowledge-base {
    background: linear-gradient(135deg, #f8fafc 0%, #eef5ff 100%);
    position: relative;
    overflow: hidden;
}

.knowledge-base:before {
    content: '';
    position: absolute;
    bottom: -200px;
    left: -200px;
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, rgba(10, 94, 156, 0.03) 0%, rgba(0, 163, 224, 0.03) 100%);
    border-radius: 50%;
    z-index: 0;
}

.knowledge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 1;
}

.article-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.article-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.article-img {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.article-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.article-card:hover .article-img img {
    transform: scale(1.05);
}

.article-badge {
    position: absolute;
    top: 20px;
    left: 0;
    background: var(--accent);
    color: white;
    padding: 8px 15px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 0 4px 4px 0;
}

.article-content {
    padding: 30px;
}

.article-content h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--dark);
    font-weight: 700;
}

.article-content .meta {
    display: flex;
    color: var(--gray);
    font-size: 14px;
    margin-bottom: 20px;
}

.article-content .meta span {
    margin-right: 15px;
    display: flex;
    align-items: center;
}

.article-content .meta i {
    margin-right: 5px;
}

.article-content p {
    color: var(--gray);
    margin-bottom: 25px;
    line-height: 1.7;
}

/* 公司介绍 */
.about {
    display: flex;
    align-items: center;
    gap: 60px;
    background: white;
    padding: 80px 0;
    position: relative;
}

.about-img {
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
}

.about-img:before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--accent);
    border-radius: 12px;
    z-index: -1;
}

.about-img img {
    width: 100%;
    display: block;
}

.about-content {
    flex: 1;
}

.about-content h2 {
    font-size: 36px;
    color: var(--dark);
    margin-bottom: 25px;
    font-weight: 700;
}

.about-content p {
    color: var(--gray);
    margin-bottom: 25px;
    line-height: 1.8;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
    padding: 30px 20px;
    background: var(--light);
    border-radius: 12px;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.stat-item:hover .number,
.stat-item:hover .label {
    color: white;
}

.stat-item .number {
    font-size: 42px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 10px;
    transition: var(--transition);
}

.stat-item .label {
    color: var(--gray);
    font-size: 16px;
    transition: var(--transition);
}