/* 页面通用样式补充 */

/* 页面标题 */
.page-header {
    background: linear-gradient(135deg, #3112e3 0%, #7c3aed 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: gradientShift 8s ease infinite;
    background-size: 200% 200%;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/hero-bg.svg') center/cover;
    opacity: 0.1;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    background: linear-gradient(45deg, #fff, #e0e7ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-header p {
    font-size: 1.3rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* 服务详情页面样式 */
.service-detail {
    padding: 80px 0;
    background: white;
}

.service-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: start;
}

.service-text h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.service-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin: 40px 0;
}

.feature-item {
    background: var(--bg-secondary);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature-item h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.feature-item p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

.tech-stack-detail {
    margin: 40px 0;
}

.tech-category {
    margin-bottom: 30px;
}

.tech-category h4 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-tag {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: var(--primary-color);
    color: white;
}

.service-sidebar {
    position: sticky;
    top: 100px;
}

.service-contact {
    background: var(--bg-secondary);
    padding: 40px;
    border-radius: 20px;
    margin-bottom: 30px;
}

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

.sidebar-form .form-group {
    margin-bottom: 15px;
}

.sidebar-form input,
.sidebar-form select,
.sidebar-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
}

.sidebar-form input:focus,
.sidebar-form select:focus,
.sidebar-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.service-info {
    background: var(--bg-secondary);
    padding: 30px;
    border-radius: 20px;
}

.service-info h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.service-info ul {
    list-style: none;
}

.service-info li {
    padding: 8px 0;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-info i {
    color: var(--primary-color);
    font-size: 1rem;
}

/* 开发流程 */
.development-process {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.development-process h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: var(--text-primary);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.step {
    text-align: center;
    position: relative;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 40px;
    right: -50%;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    z-index: 1;
}

.step-number {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 20px;
    position: relative;
    z-index: 2;
}

.step h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.step p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* 相关案例 */
.related-cases {
    padding: 80px 0;
    background: white;
}

.related-cases h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: var(--text-primary);
}

.related-cases .cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.related-cases .case-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.related-cases .case-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.related-cases .case-image {
    height: 200px;
    overflow: hidden;
}

.related-cases .case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-cases .case-card:hover .case-image img {
    transform: scale(1.1);
}

.related-cases .case-content {
    padding: 25px;
    text-align: center;
}

.related-cases .case-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.related-cases .case-content p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.5;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .service-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .service-sidebar {
        position: static;
    }
    
    .step:not(:last-child)::after {
        display: none;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 100px 0 60px;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .service-detail,
    .development-process,
    .related-cases {
        padding: 60px 0;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .step:not(:last-child)::after {
        display: none;
    }
    
    .service-contact,
    .service-info {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-header p {
        font-size: 1.1rem;
    }
    
    .service-text h2 {
        font-size: 1.8rem;
    }
    
    .development-process h2,
    .related-cases h2 {
        font-size: 2rem;
    }
    
    .service-contact,
    .service-info {
        padding: 20px;
    }
}