/* 服务介绍页样式（精美动画版） */
.page-nav {
    background: var(--primary);
    border-bottom: none;
    padding: 0;
    position: sticky;
    top: 72px;
    z-index: 100;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.page-nav-inner {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 16px 0;
}

.page-title {
    font-size: 20px;
    font-weight: 600;
    color: white;
    white-space: nowrap;
    flex-shrink: 0;
}

.category-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar {
    display: none;
}

.category-tab {
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    color: white;
    background: rgba(255, 255, 255, 0.2);
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.category-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.category-tab:hover::before {
    left: 100%;
}

.category-tab:hover {
    background: white;
    color: var(--primary);
}

.category-tab.active {
    background: var(--accent);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 153, 85, 0.4);
}

/* 服务内容区 */
.services-content {
    padding: 60px 0;
    background: var(--bg-light);
}

.category-section {
    margin-bottom: 60px;
    animation: fadeInUp 0.6s ease-out;
}

.category-section:last-child {
    margin-bottom: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category-header {
    margin-bottom: 32px;
}

.category-header h2 {
    margin-bottom: 12px;
    color: var(--text-primary);
    position: relative;
    display: inline-block;
}

.category-header h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.category-desc {
    color: var(--text-secondary);
    font-size: 16px;
    max-width: 800px;
    margin-top: 16px;
}

/* 服务卡片网格 - 两列布局 */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

/* 服务卡片 */
.service-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.card-image {
    width: 100%;
    padding-top: 56.25%;
    position: relative;
    overflow: hidden;
    background: var(--bg-light);
}

.card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover .card-image img {
    transform: scale(1.05);
}

.service-card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    transform: translateY(-4px);
    border-color: var(--primary-light);
}

.card-main {
    flex: 1;
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.card-main h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--text-primary);
    transition: color 0.3s ease;
    font-weight: 600;
}

.service-card:hover .card-main h3 {
    color: var(--primary);
}

.card-highlight {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 12px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.card-meta .price {
    font-size: 22px;
    font-weight: 700;
    color: var(--accent);
    transition: transform 0.3s ease;
}

.service-card:hover .card-meta .price {
    transform: scale(1.05);
}

.card-meta .tags {
    font-size: 13px;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: auto;
}

.btn-detail {
    padding: 10px 20px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: white;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-detail:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.card-actions .btn-accent {
    padding: 10px 24px;
    font-weight: 500;
}

/* 手风琴详情 */
.card-detail {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    background: var(--bg-light);
}

.service-card.active .card-detail {
    border-top: 1px solid var(--border);
}

.detail-content {
    padding: 24px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.detail-content h4 {
    font-size: 16px;
    margin-bottom: 12px;
    color: var(--text-primary);
    font-weight: 600;
}

.detail-content ul {
    list-style: none;
    margin-bottom: 16px;
}

.detail-content li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    color: var(--text-secondary);
    font-size: 14px;
    transition: all 0.2s ease;
}

.detail-content li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 600;
    transition: transform 0.2s ease;
}

.detail-content li:hover {
    padding-left: 28px;
    color: var(--text-primary);
}

.detail-content li:hover::before {
    transform: scale(1.2);
}

.detail-note {
    font-size: 13px;
    color: var(--text-muted);
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

/* CTA区 */
.service-cta {
    background: white;
    padding: 60px 0;
}

.cta-content {
    text-align: center;
    animation: fadeInUp 0.6s ease-out;
}

.cta-content h3 {
    margin-bottom: 12px;
}

.cta-content p {
    margin-bottom: 24px;
    color: var(--text-secondary);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .page-nav {
        position: fixed;
        top: 50px;
        left: 0;
        right: 0;
        z-index: 999;
        transform: translateY(-100%);
        opacity: 0;
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease;
    }
    
    .page-nav.visible {
        transform: translateY(0);
        opacity: 1;
    }
    
    .page-nav-inner {
        flex-direction: row;
        align-items: center;
        gap: 12px;
        padding: 8px 16px;
    }
    
    .page-title {
        font-size: 14px;
        font-weight: 600;
        flex-shrink: 0;
        width: auto;
    }
    
    .category-tabs {
        padding: 4px 0;
        width: 100%;
    }
    
    .category-tab {
        padding: 8px 16px;
        font-size: 13px;
        flex-shrink: 0;
    }
    
    .services-content {
        padding-top: 30px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .card-main {
        padding: 20px;
    }
    
    .card-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-detail, .btn-accent {
        width: 100%;
        text-align: center;
    }
    
    .card-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .card-meta .price {
        font-size: 20px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .services-grid {
        gap: 20px;
    }
    
    .card-main {
        padding: 20px;
    }
    
    .card-main h3 {
        font-size: 18px;
    }
    
    .card-meta .price {
        font-size: 20px;
    }
}