/* 服务页面样式 */

/* 页面头部 */
.page-header {
    padding: 100px 0 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="ink" patternUnits="userSpaceOnUse" width="30" height="30"><circle cx="15" cy="15" r="2" fill="%23ffffff" opacity="0.1"/><circle cx="5" cy="25" r="1" fill="%23ffffff" opacity="0.05"/><circle cx="25" cy="5" r="1.5" fill="%23ffffff" opacity="0.08"/></pattern></defs><rect width="100" height="100" fill="url(%23ink)"/></svg>') repeat;
}

.header-content {
    position: relative;
    z-index: 2;
}

.page-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-subtitle {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.ink-brush-line {
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, transparent, white, transparent);
    margin: 0 auto;
    border-radius: 2px;
    animation: inkFlow 3s ease-in-out infinite;
}

@keyframes inkFlow {
    0%, 100% {
        transform: scaleX(1);
        opacity: 0.8;
    }
    50% {
        transform: scaleX(1.2);
        opacity: 1;
    }
}

/* 服务概览 */
.services-overview {
    padding: 80px 0;
    background: var(--bg-light);
}

.service-overview-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
}

.service-overview-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-overview-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-overview-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.service-icon i {
    font-size: 36px;
    color: white;
}

.service-overview-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-overview-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-color);
}

.service-overview-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.service-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
}

/* 服务详情 */
.services-detail {
    padding: 80px 0;
}

.section-header {
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.services-list {
    max-width: 1200px;
    margin: 0 auto;
}

.service-item {
    margin-bottom: 80px;
    padding: 40px;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.02), rgba(var(--secondary-rgb), 0.02));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-item:hover::before {
    opacity: 1;
}

.service-content {
    position: relative;
    z-index: 2;
}

.service-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.service-type {
    padding: 6px 16px;
    background: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.featured-badge {
    padding: 6px 16px;
    background: linear-gradient(45deg, #ff6b6b, #ffa500);
    color: white;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    animation: pulse 2s infinite;
}

.service-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-color);
}

.service-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 25px;
}

.service-features {
    margin-bottom: 30px;
}

.service-features h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-color);
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
}

.features-list li {
    padding: 8px 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 25px;
}

.features-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

.service-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.service-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.service-icon-large {
    width: 200px;
    height: 200px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.service-icon-large:hover {
    transform: scale(1.05);
}

.service-icon-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-placeholder {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    transition: transform 0.3s ease;
}

.service-placeholder:hover {
    transform: scale(1.05) rotate(2deg);
}

.placeholder-icon {
    font-size: 60px;
    margin-bottom: 15px;
}

.service-placeholder h4 {
    font-size: 1.1rem;
    margin: 0;
    font-weight: 500;
}

/* 空状态 */
.empty-state {
    padding: 80px 20px;
    color: var(--text-secondary);
}

.empty-icon {
    font-size: 80px;
    color: var(--border-color);
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

/* 服务流程 */
.service-process {
    padding: 80px 0;
    background: var(--bg-light);
}

.process-timeline {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    z-index: 1;
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 60px;
    position: relative;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-item:nth-child(even) .timeline-content {
    text-align: right;
}

.timeline-icon {
    width: 80px;
    height: 80px;
    background: white;
    border: 4px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.timeline-icon i {
    font-size: 32px;
    color: var(--primary-color);
}

.timeline-item:hover .timeline-icon {
    transform: scale(1.1);
    background: var(--primary-color);
}

.timeline-item:hover .timeline-icon i {
    color: white;
}

.timeline-content {
    flex: 1;
    padding: 0 40px;
    max-width: 400px;
}

.timeline-content h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-color);
}

.timeline-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.timeline-item::after {
    content: attr(data-step);
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    background: var(--secondary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    z-index: 3;
}

/* 为什么选择我们 */
.why-choose-us {
    padding: 80px 0;
}

.advantage-card {
    text-align: center;
    padding: 40px 20px;
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    height: 100%;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.advantage-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.05), rgba(var(--secondary-rgb), 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.advantage-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.advantage-card:hover::before {
    opacity: 1;
}

.advantage-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 2;
}

.advantage-icon i {
    font-size: 32px;
    color: white;
}

.advantage-card:hover .advantage-icon {
    transform: scale(1.1) rotate(10deg);
}

.advantage-card h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-color);
    position: relative;
    z-index: 2;
}

.advantage-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    position: relative;
    z-index: 2;
}

/* 联系我们CTA */
.contact-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" patternUnits="userSpaceOnUse" width="20" height="20"><circle cx="10" cy="10" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>') repeat;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .service-item {
        padding: 30px;
    }
    
    .timeline-content {
        padding: 0 30px;
    }
}

@media (max-width: 992px) {
    .page-title {
        font-size: 3rem;
    }
    
    .service-title {
        font-size: 1.8rem;
    }
    
    .process-timeline::before {
        left: 40px;
    }
    
    .timeline-item {
        flex-direction: row !important;
        padding-left: 100px;
    }
    
    .timeline-item .timeline-content {
        text-align: left !important;
        padding: 0 0 0 20px;
    }
    
    .timeline-icon {
        position: absolute;
        left: 0;
    }
    
    .timeline-item::after {
        left: 40px;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 80px 0 60px;
    }
    
    .page-title {
        font-size: 2.5rem;
    }
    
    .page-subtitle {
        font-size: 1.1rem;
    }
    
    .service-overview-card {
        padding: 30px 20px;
    }
    
    .service-item {
        padding: 25px;
        margin-bottom: 40px;
    }
    
    .service-title {
        font-size: 1.6rem;
    }
    
    .service-actions {
        flex-direction: column;
    }
    
    .service-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .service-visual {
        padding: 20px;
        margin-top: 30px;
    }
    
    .service-icon-large,
    .service-placeholder {
        width: 150px;
        height: 150px;
    }
    
    .placeholder-icon {
        font-size: 40px;
    }
    
    .timeline-item {
        padding-left: 80px;
    }
    
    .timeline-icon {
        width: 60px;
        height: 60px;
    }
    
    .timeline-icon i {
        font-size: 24px;
    }
    
    .advantage-card {
        padding: 30px 15px;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-actions .btn {
        min-width: 200px;
    }
}

@media (max-width: 576px) {
    .page-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .service-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .features-list {
        grid-template-columns: 1fr;
    }
    
    .process-timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        padding-left: 70px;
    }
    
    .timeline-icon {
        width: 50px;
        height: 50px;
        left: 5px;
    }
    
    .timeline-icon i {
        font-size: 20px;
    }
    
    .timeline-item::after {
        left: 30px;
        width: 25px;
        height: 25px;
        font-size: 12px;
    }
    
    .cta-content h2 {
        font-size: 1.8rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
}

/* 动画效果 */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* AOS动画支持 */
[data-aos] {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos].aos-animate {
    opacity: 1;
}

[data-aos="fade-up"] {
    transform: translateY(30px);
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
}

/* 加载状态 */
.service-item.loading {
    opacity: 0.7;
    pointer-events: none;
}

.service-item.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 10;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}