/* 服务区域样式 */
.services {
    background: rgba(10, 8, 24, 0.7);
}

.services-container {
    display: flex;
    gap: 40px;
}

/* 左侧导航栏 */
.services-nav {
    flex: 0 0 300px;
    background: rgba(25, 22, 50, 0.7);
    border-radius: 20px;
    padding: 30px 15px;
    border: 1px solid rgba(106, 17, 203, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    height: auto;
    align-self: stretch;
}

.service-btn {
    background: transparent;
    border: 1px solid rgba(106, 17, 203, 0.2);
    border-radius: 15px;
    padding: 25px 20px;
    text-align: left;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    width: 100%;
}

.service-btn:hover {
    background: rgba(106, 17, 203, 0.2);
    border-color: rgba(106, 17, 203, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(106, 17, 203, 0.3);
}

.service-btn.active {
    background: linear-gradient(90deg, rgba(106, 17, 203, 0.3) 0%, rgba(37, 117, 252, 0.3) 100%);
    border-color: rgba(106, 17, 203, 0.5);
    box-shadow: 0 5px 15px rgba(106, 17, 203, 0.3);
}

.service-icon {
    width: 55px;
    height: 55px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 22px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.service-btn.active .service-icon {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.service-btn-content {
    flex: 1;
}

.service-btn h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.service-btn p {
    font-size: 0.9rem;
    color: var(--gray);
    margin: 0;
}

/* 右侧内容区 */
.services-content {
    flex: 1;
    background: rgba(25, 22, 50, 0.7);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(106, 17, 203, 0.3);
    min-height: 600px;
    display: flex;
    flex-direction: column;
}

.service-detail {
    display: none;
    animation: fadeIn 0.5s ease;
    height: 100%;
}

.service-detail.active {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-image {
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-description {
    flex: 1;
}

.service-description h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--secondary);
}

.service-description p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gray);
    margin-bottom: 20px;
}

.features-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    padding: 20px;
    background: rgba(106, 17, 203, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(106, 17, 203, 0.2);
    transform: translateX(5px);
}

.feature-item i {
    color: var(--accent);
    margin-right: 10px;
    margin-top: 5px;
}

/* 添加图片切换动画 */
.service-image {
    position: relative;
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.service-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    transition: opacity 0.5s ease;
}

/* 当图片处于切换状态时 */
.service-image img.fade-out {
    opacity: 0;
}

/* 特性项按钮样式 */
.feature-item {
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    padding: 20px;
    background: rgba(106, 17, 203, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.feature-item:hover {
    background: rgba(106, 17, 203, 0.2);
    transform: translateX(5px);
}

.feature-item::after {
    content: "点击查看详情";
    position: absolute;
    bottom: 5px;
    right: 10px;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-item:hover::after {
    opacity: 1;
}