/* 二级页面样式 */

/* 面包屑导航 */
.breadcrumb {
    background: #f8f9fa;
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb nav ol {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.9rem;
}

.breadcrumb li {
    color: #666;
}

.breadcrumb li:not(:last-child)::after {
    content: "›";
    margin: 0 0.5rem;
    color: #999;
}

.breadcrumb li a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb li a:hover {
    color: #0056b3;
}

.breadcrumb li:last-child {
    color: #333;
    font-weight: 500;
}

/* 服务详情页面 */
.service-detail {
    padding: 3rem 0;
    background: white;
}

/* 页面头部 */
.page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #f0f0f0;
}

.page-title {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1rem;
    font-weight: bold;
}

.page-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    color: #666;
    font-size: 0.9rem;
}

.service-category {
    background: #007bff;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
}

.publish-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* 文章内容 */
.service-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    color: #444;
}

.service-content section {
    margin-bottom: 3rem;
}

.service-content h2 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #007bff;
    position: relative;
}

.service-content h3 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 1rem;
}

.service-content p {
    margin-bottom: 1rem;
    text-align: justify;
}

.service-content ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.service-content li {
    margin-bottom: 0.5rem;
}

/* 服务价格部分 */
.service-pricing {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    border: 1px solid #dee2e6;
}

.service-pricing h2 {
    color: #333;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.8rem;
    position: relative;
}

.service-pricing h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-radius: 2px;
}

.pricing-info {
    text-align: center;
    margin-bottom: 2rem;
}

.price-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(0,123,255,0.3);
    margin-bottom: 1rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.price-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,123,255,0.4);
}

.price-tag i {
    font-size: 1.1rem;
}

.price-description {
    color: #666;
    font-size: 0.95rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

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

.purchase-btn,
.consult-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    min-width: 160px;
    justify-content: center;
}

.purchase-btn {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    box-shadow: 0 4px 15px rgba(40,167,69,0.3);
}

.purchase-btn:hover {
    background: linear-gradient(135deg, #218838, #1ea085);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40,167,69,0.4);
}

.consult-btn {
    background: linear-gradient(135deg, #6c757d, #5a6268);
    color: white;
    box-shadow: 0 4px 15px rgba(108,117,125,0.3);
}

.consult-btn:hover {
    background: linear-gradient(135deg, #5a6268, #495057);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108,117,125,0.4);
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

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

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.modal-title {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
}

.modal-subtitle {
    color: #666;
    font-size: 14px;
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    transition: color 0.3s;
}

.close-modal:hover {
    color: #333;
}

.contact-info {
    text-align: center;
    margin: 20px 0;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 15px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.contact-item i {
    color: #007bff;
    font-size: 18px;
}

.email-display {
    background: #e3f2fd;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 2px dashed #007bff;
}

.email-display .email {
    font-size: 18px;
    font-weight: bold;
    color: #007bff;
    margin: 10px 0;
}

.copy-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
    margin-top: 10px;
}

.copy-btn:hover {
    background: #0056b3;
}

.copy-btn.copied {
    background: #28a745;
}

@media (max-width: 768px) {
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }

    .purchase-btn,
    .consult-btn {
        width: 100%;
        max-width: 280px;
    }

    .price-tag {
        font-size: 1.1rem;
        padding: 12px 24px;
    }

    .modal-content {
        margin: 20px;
        padding: 30px 20px;
    }
}

/* 服务特色 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-item {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 123, 255, 0.1);
    border-color: #007bff;
}

.feature-icon {
    font-size: 2.5rem;
    color: #007bff;
    margin-bottom: 1rem;
}

.feature-item h3 {
    color: #333;
    margin-bottom: 1rem;
}

.feature-item p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* 服务范围 */
.scope-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.scope-list h3,
.tech-stack h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.scope-list ul {
    list-style: none;
    padding: 0;
}

.scope-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    padding-left: 1.5rem;
}

.scope-list li::before {
    content: "✓";
    color: #007bff;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    background: #e3f2fd;
    color: #1976d2;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    border: 1px solid #bbdefb;
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: #007bff;
    color: white;
    transform: scale(1.05);
}

/* 开发流程 */
.process-timeline {
    margin-top: 2rem;
    position: relative;
}

.process-step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    position: relative;
}

.step-number {
    width: 40px;
    height: 40px;
    background: #007bff;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.step-content h3 {
    color: #333;
    margin-bottom: 0.5rem;
}

.step-content p {
    color: #666;
    margin: 0;
}

/* 联系信息卡片 */
.service-contact {
    margin-top: 4rem;
    padding: 3rem 0;
    background: #f8f9fa;
    border-radius: 15px;
}

.contact-card {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.contact-card h2 {
    color: #333;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.contact-info {
    display: flex;
    justify-content: space-around;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.contact-item {
    text-align: center;
    flex: 1;
    min-width: 150px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: #007bff;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1rem;
    font-size: 1.2rem;
}

.contact-item h4 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.contact-item p {
    color: #007bff;
    font-weight: 500;
    margin: 0;
}

.contact-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.contact-actions .btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.contact-actions .btn i {
    font-size: 1rem;
}

/* 返回导航 */
.back-navigation {
    text-align: center;
    margin-top: 3rem;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 25px;
}

.back-btn:hover {
    color: #007bff;
    border-color: #007bff;
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .service-detail {
        padding: 2rem 0;
    }

    .page-title {
        font-size: 2rem;
    }

    .page-meta {
        flex-direction: column;
        gap: 1rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .scope-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .process-step {
        flex-direction: column;
        text-align: center;
    }

    .step-number {
        margin: 0 auto 1rem;
    }

    .contact-info {
        flex-direction: column;
        gap: 1.5rem;
    }

    .contact-actions {
        flex-direction: column;
        align-items: center;
    }

    .contact-actions .btn {
        width: 200px;
        justify-content: center;
    }
}

@media screen and (max-width: 480px) {
    .page-title {
        font-size: 1.8rem;
    }

    .service-content h2 {
        font-size: 1.5rem;
    }

    .feature-item {
        padding: 1.5rem;
    }

    .contact-card {
        padding: 2rem 1.5rem;
    }

    .breadcrumb nav ol {
        font-size: 0.8rem;
        flex-wrap: wrap;
    }
}

/* 动画效果 */
.service-content section {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

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

.feature-item {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

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

.process-step {
    opacity: 0;
    transform: translateX(-20px);
    animation: slideInLeft 0.6s ease forwards;
}

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

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 导航栏logo链接样式 */
.nav-logo a {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.5rem;
}

.nav-logo a:hover {
    color: #0056b3;
}