/* 服务项目页面专用样式 */

/* 服务体系主内容 */
.services-main {
    padding: 80px 0;
    background-color: var(--white);
}

/* Tab 导航样式 */
.service-tabs {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 50px;
    background-color: var(--light-gray);
    border-radius: 50px;
    padding: 8px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.tab-btn {
    flex: 1;
    padding: 20px 30px;
    background-color: transparent;
    border: none;
    border-radius: 42px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-body);
    text-align: center;
    line-height: 1.4;
    position: relative;
    overflow: hidden;
}

.tab-btn:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, #9a7a01 100%);
    color: var(--white);
    box-shadow: 0 8px 25px rgba(218, 165, 32, 0.3);
}

.tab-subtitle {
    font-size: 0.9rem;
    font-weight: 400;
    opacity: 0.9;
}

/* Tab 内容样式 */
.tab-content {
    display: none;
    animation: fadeInUp 0.5s ease forwards;
}

.tab-content.active {
    display: block;
}

.tab-intro {
    text-align: center;
    margin-bottom: 50px;
}

.tab-intro .section-subtitle {
    font-size: 1.2rem;
    color: var(--text-body);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background-color: var(--white);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.card-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #9a7a01 100%);
    color: var(--white);
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.service-icon {
    font-size: 3rem;
}

.card-header h3 {
    font-size: 1.8rem;
    margin: 0;
    color: var(--white);
    line-height: 1.3;
}

.english-title {
    font-size: 1.1rem;
    font-weight: 400;
    opacity: 0.9;
    display: block;
    margin-top: 5px;
}

/* 章节英文副标题样式 */
.section-subtitle-english {
    font-size: 1.2rem;
    font-weight: 400;
    opacity: 0.8;
    display: block;
    margin-top: 8px;
    color: var(--text-body);
}

.step-english {
    font-size: 0.9rem;
    font-weight: 400;
    opacity: 0.8;
    display: block;
    margin-top: 3px;
}

.card-content {
    padding: 30px;
}

.card-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.card-content li {
    padding: 10px 0;
    color: var(--text-body);
    font-size: 1rem;
    line-height: 1.6;
    border-bottom: 1px solid var(--light-gray);
}

.card-content li:last-child {
    border-bottom: none;
}

/* 服务概览 */
.services-overview {
    padding: 80px 0;
    background-color: var(--white);
}

.section-subtitle {
    text-align: center;
    color: var(--text-body);
    font-size: 1.2rem;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.service-categories {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.category-tab {
    padding: 15px 30px;
    background-color: var(--light-gray);
    color: var(--text-body);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

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

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

/* 服务分类内容 */
.service-category-content {
    display: none;
    padding: 80px 0;
    background-color: var(--light-gray);
}

.service-category-content.active {
    display: block;
}

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

.service-item {
    background-color: var(--white);
    border-radius: 15px;
    padding: 40px 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-item:hover {
    transform: translateY(-10px);
}

.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #9a7a01);
}

.service-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-align: center;
}

.service-item h3 {
    color: var(--text-dark);
    font-size: 1.8rem;
    margin-bottom: 25px;
    text-align: center;
}

.service-details h4 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin: 20px 0 15px 0;
    border-bottom: 2px solid var(--light-gray);
    padding-bottom: 8px;
}

.service-details ul {
    list-style: none;
    margin-bottom: 20px;
}

.service-details li {
    padding: 8px 0;
    color: var(--text-body);
    position: relative;
    padding-left: 20px;
}

.service-details li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.service-details .btn-primary {
    width: 100%;
    text-align: center;
    margin-top: 20px;
}

/* 服务流程 */
.service-process {
    padding: 80px 0;
    background-color: var(--white);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.step {
    text-align: center;
    padding: 40px 20px;
    background-color: var(--light-gray);
    border-radius: 15px;
    position: relative;
    transition: transform 0.3s ease;
}

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

.step-number {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 20px;
}

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

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

/* 服务优势 */
.service-advantages {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.advantage-item {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.advantage-item:hover {
    transform: translateY(-10px);
}

.advantage-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.advantage-item h3 {
    color: var(--text-dark);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.advantage-item p {
    color: var(--text-body);
    line-height: 1.6;
}

/* 联系我们区域 */
.contact-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #1a2a3a 100%);
    color: var(--white);
}

.contact-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--white);
}

.contact-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.contact-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-buttons .btn-secondary {
    color: var(--white);
    border-color: var(--white);
}

.contact-buttons .btn-secondary:hover {
    background-color: var(--white);
    color: var(--secondary-color);
}

/* 响应式设计 */
@media (max-width: 1024px) and (min-width: 769px) {
    .service-cards {
        gap: 25px;
    }
    
    .service-card {
        padding: 25px 20px;
    }
}

@media (max-width: 768px) {
    .service-tabs {
        flex-direction: column;
        gap: 8px;
        max-width: 400px;
        padding: 12px;
    }
    
    .tab-btn {
        padding: 18px 20px;
        font-size: 1rem;
    }
    
    .tab-subtitle {
        font-size: 0.85rem;
    }
    
    .service-categories {
        flex-direction: column;
        align-items: center;
    }
    
    .category-tab {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    .service-cards {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .service-item {
        padding: 30px 20px;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-buttons .btn-primary,
    .contact-buttons .btn-secondary {
        width: 100%;
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    .service-cards {
        gap: 20px;
    }
    
    .service-card {
        margin-bottom: 0;
    }
    
    .card-header {
        padding: 25px 20px;
    }
    
    .card-header h3 {
        font-size: 1.5rem;
    }
    
    .english-title {
        font-size: 0.95rem;
        margin-top: 3px;
    }
    
    .section-subtitle-english {
        font-size: 1rem;
        margin-top: 5px;
    }
    
    .step-english {
        font-size: 0.8rem;
        margin-top: 2px;
    }
    
    .card-content {
        padding: 25px 20px;
    }
    
    .service-item {
        padding: 25px 15px;
    }
    
    .service-icon {
        font-size: 2.5rem;
    }
    
    .service-item h3 {
        font-size: 1.5rem;
    }
    
    .contact-content h2 {
        font-size: 2rem;
    }
    
    .step {
        padding: 30px 15px;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

/* 动画效果 */
.service-card,
.service-item,
.step,
.advantage-item {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }

.service-item:nth-child(1) { animation-delay: 0.1s; }
.service-item:nth-child(2) { animation-delay: 0.2s; }
.service-item:nth-child(3) { animation-delay: 0.3s; }
.service-item:nth-child(4) { animation-delay: 0.4s; }

.step:nth-child(1) { animation-delay: 0.1s; }
.step:nth-child(2) { animation-delay: 0.2s; }
.step:nth-child(3) { animation-delay: 0.3s; }
.step:nth-child(4) { animation-delay: 0.4s; }

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

/* 服务详情展开/收起效果 */
.service-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.service-item:hover .service-details {
    max-height: 1000px;
}

/* 服务分类切换动画 */
.service-category-content {
    animation: fadeIn 0.5s ease;
}

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

/* Footer服务体系样式 */
.services-section {
    flex: 2;
    min-width: 300px;
}

.footer-services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

.footer-service-category h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 15px;
    line-height: 1.4;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 8px;
}

.footer-english {
    font-size: 0.9rem;
    font-weight: 400;
    opacity: 0.8;
    display: block;
    margin-top: 3px;
}

.footer-service-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-service-category li {
    padding: 8px 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.4;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-service-category li:last-child {
    border-bottom: none;
}

.footer-english-small {
    font-size: 0.8rem;
    opacity: 0.7;
    display: block;
    margin-top: 2px;
    font-weight: 300;
}

/* Footer响应式设计 */
@media (max-width: 768px) {
    .footer-services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-service-category h4 {
        font-size: 1rem;
    }
    
    .footer-english {
        font-size: 0.85rem;
    }
    
    .footer-english-small {
        font-size: 0.75rem;
    }
}
