/* 全局行间距优化 */
body {
    line-height: 1.6;
}

/* 头部菜单优化 */
.navbar {
    padding: 1rem 0;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    /*color: #2c3e50 !important;*/
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: #3498db !important;
    transform: translateY(-2px);
}

/* 主内容区域调整 */
.main-content {
    margin-top: 80px;
    padding: 40px 0;
}

/* 产品卡片优化 */
.product-card {
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.product-card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card .card-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.product-card .card-text {
    color: #666;
    margin-bottom: 1.5rem;
    flex: 1;
    line-height: 1.6;
}

.product-card .price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #e74c3c;
    margin-bottom: 1rem;
}

/* 响应式调整 */
@media (max-width: 991.98px) {
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .nav-link {
        padding: 0.5rem !important;
    }
    
    .main-content {
        margin-top: 60px;
        padding: 30px 0;
    }
}

@media (max-width: 767.98px) {
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .main-content {
        margin-top: 50px;
        padding: 20px 0;
    }
    
    .product-card {
        margin-bottom: 1.5rem;
    }
    
    .product-card .card-title {
        font-size: 1.1rem;
    }
    
    .product-card .price {
        font-size: 1.25rem;
    }
}

/* 面包屑导航 */
.breadcrumb {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: #6c757d;
}

.breadcrumb-item a {
    color: #007bff;
    text-decoration: none;
}

.breadcrumb-item.active {
    color: #6c757d;
}

/* 移动端菜单样式 */
.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: none;
    position: relative;
    width: 24px;
    height: 2px;
    background-color: #333;
    display: block;
    margin: 5px 0;
    transition: all 0.3s ease;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon:nth-child(2) {
    opacity: 0;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: #fff;
        padding: 1rem;
        border-radius: 0.5rem;
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    }
    
    .navbar-nav {
        margin-top: 1rem;
    }
    
    .nav-link {
        padding: 0.5rem 1rem;
        border-radius: 0.25rem;
    }
    
    .nav-link:hover {
        background-color: #f8f9fa;
    }
}

/* 产品详情部分 */
.product-detail {
    padding: 60px 0;
    background-color: #fff;
}

.product-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.product-image img {
    width: 100%;
    height: auto;
    display: block;
}

.product-info {
    padding: 30px;
}

.product-info h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}

.product-price {
    margin-bottom: 30px;
}

.price-label {
    font-size: 1.2rem;
    color: #666;
}

.price-value {
    font-size: 2rem;
    font-weight: 700;
    color: #ff6b6b;
}

.product-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.product-actions .btn {
    flex: 1;
    padding: 12px 24px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.product-actions .btn-primary {
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    border: none;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.product-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.product-actions .btn-outline-primary {
    border: 2px solid #ff6b6b;
    color: #ff6b6b;
}

.product-actions .btn-outline-primary:hover {
    background-color: #ff6b6b;
    color: #fff;
    transform: translateY(-2px);
}

.product-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 30px;
}

.product-features {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.product-features h3 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 15px;
}

.product-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-features li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    color: #666;
}

.product-features li i {
    color: #ff6b6b;
    margin-right: 10px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .product-info {
        padding: 20px 0;
    }

    .product-info h1 {
        font-size: 2rem;
    }

    .product-actions {
        flex-direction: column;
    }

    .product-actions .btn {
        width: 100%;
    }
}

/* 服务特色部分 */
.features-section {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.section-title {
    font-size: 2rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: #3498db;
}

.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

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

.feature-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.feature-description {
    color: #666;
    line-height: 1.6;
}

/* 服务流程部分 */
.process-section {
    padding: 4rem 0;
}

.process-timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: #3498db;
}

.process-step {
    position: relative;
    margin-bottom: 3rem;
    width: 50%;
    padding: 0 2rem;
}

.process-step:nth-child(odd) {
    margin-left: auto;
    text-align: right;
}

.process-step:nth-child(even) {
    margin-right: auto;
}

.step-icon {
    width: 60px;
    height: 60px;
    background: #3498db;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    right: -30px;
    color: #fff;
    font-size: 1.5rem;
}

.process-step:nth-child(odd) .step-icon {
    right: -30px;
}

.process-step:nth-child(even) .step-icon {
    left: -30px;
}

.step-content {
    background: #fff;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

.step-content h3 {
    font-size: 1.2rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

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

/* 客户评价部分 */
.reviews-section {
    padding: 4rem 0;
    background-color: #f8f9fa;
    margin-top: 3rem;
}

.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.rating-summary {
    text-align: center;
    margin-bottom: 2rem;
}

.average-rating {
    font-size: 2.5rem;
    font-weight: bold;
    color: #ffc107;
}

.rating-stars {
    font-size: 1.5rem;
    color: #ffc107;
    margin: 0.5rem 0;
}

.rating-count {
    color: #6c757d;
}

.reviews-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.review-card {
    background-color: #fff;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.review-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.review-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 1rem;
}

.review-user {
    flex: 1;
}

.review-name {
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.review-content {
    color: #333;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.review-date {
    color: #6c757d;
    font-size: 0.875rem;
}

/* 常见问题部分 */
.faq-section {
    padding: 4rem 0;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #f8f9fa;
}

.faq-question h3 {
    font-size: 1.1rem;
    font-weight: bold;
    color: #2c3e50;
    margin: 0;
}

.faq-question i {
    color: #3498db;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 1.5rem;
    max-height: 500px;
}

.faq-answer p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* 咨询表单部分 */
.consultation-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.consultation-description {
    color: #2c3e50;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.product-name {
    color: #3498db;
    font-weight: bold;
}

.consultation-features {
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: #fff;
    transform: translateX(5px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.feature-item i {
    color: #3498db;
    margin-right: 1rem;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.feature-item:hover i {
    transform: scale(1.2);
}

.feature-item span {
    color: #2c3e50;
    font-weight: 500;
}

.consultation-tips {
    background: rgba(52, 152, 219, 0.1);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.consultation-tips p {
    color: #3498db;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.consultation-tips i {
    margin-right: 0.5rem;
}

.consultation-form {
    background: #fff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.consultation-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-header h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.form-header p {
    color: #666;
}

.form-label {
    color: #2c3e50;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-control {
    padding: 0.8rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

.form-control::placeholder {
    color: #adb5bd;
}

.form-footer {
    margin-top: 2rem;
}

.btn-primary {
    background: linear-gradient(135deg, #3498db, #2980b9);
    border: none;
    padding: 1rem;
    font-weight: bold;
    font-size: 1.1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

.form-tips {
    text-align: center;
    margin-top: 1rem;
    color: #666;
    font-size: 0.9rem;
}

.privacy-link {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.privacy-link:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* 响应式调整 */
@media (max-width: 991.98px) {
    .process-timeline::before {
        left: 30px;
    }

    .process-step {
        width: 100%;
        padding-left: 70px;
        padding-right: 0;
    }

    .process-step:nth-child(odd) {
        margin-left: 0;
        text-align: left;
    }

    .step-icon {
        left: 0;
        right: auto;
    }

    .process-step:nth-child(odd) .step-icon {
        left: 0;
        right: auto;
    }
}

@media (max-width: 767.98px) {
    .section-title {
        font-size: 1.5rem;
    }

    .product-title {
        font-size: 1.5rem;
    }

    .product-price {
        font-size: 1.2rem;
    }

    .reviews-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .consultation-section {
        padding: 2rem 0;
    }

    .consultation-form {
        margin-top: 2rem;
    }

    .feature-item {
        padding: 0.6rem;
    }

    .form-control {
        padding: 0.6rem 0.8rem;
    }

    .btn-primary {
        padding: 0.8rem;
    }

    .breadcrumb {
        padding: 0.75rem;
        font-size: 0.875rem;
    }
    
    .review-card {
        padding: 1rem;
    }
    
    .review-avatar {
        width: 40px;
        height: 40px;
    }
    
    .average-rating {
        font-size: 2rem;
    }
    
    .rating-stars {
        font-size: 1.25rem;
    }
}

/* 购买弹窗样式 */
.purchase-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 90%;
    text-align: center;
}
.close-icon{
    position: absolute;
    top: 16px;
    right: 16px;
    width: 20px;
    height: 20px;
}

.modal-content h3 {
    margin-bottom: 1rem;
    color: #333;
}

.modal-content p {
    margin-bottom: 1.5rem;
    color: #666;
}

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

.modal-actions .btn {
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-actions .btn-primary {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: #fff;
    border: none;
}

.modal-actions .btn-secondary {
    background-color: #f5f5f5;
    color: #666;
    border: 1px solid #ddd;
}

.modal-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 产品特点样式 */
.feature-item {
    background-color: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.feature-item h4 {
    color: #333;
    margin-bottom: 0.5rem;
}

.feature-item p {
    color: #666;
    margin: 0;
}

/* 评价样式 */
.reviews-summary {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.rating {
    color: #ffc107;
    font-size: 1.2rem;
}

.rating span {
    color: #333;
    margin-left: 0.5rem;
}

.review-item {
    background-color: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.reviewer-name {
    font-weight: bold;
    color: #333;
}

.review-date {
    color: #999;
    font-size: 0.9rem;
}

.review-rating {
    color: #ffc107;
    margin-bottom: 0.5rem;
}

.review-comment {
    color: #666;
    margin: 0;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .modal-content {
        padding: 1.5rem;
    }

    .modal-actions {
        flex-direction: column;
    }

    .modal-actions .btn {
        width: 100%;
    }

    .feature-item {
        padding: 1rem;
    }

    .review-item {
        padding: 1rem;
    }
}

/* 产品操作按钮样式 */
.product-actions {
    margin-top: 2rem;
}

.product-actions .btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 50px;
    transition: all 0.3s ease;
    width: 100%;
    margin-bottom: 1rem;
}

.product-actions .btn-primary {
    background: linear-gradient(135deg, #3498db, #2ecc71);
    border: none;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.product-actions .btn-outline-primary {
    border: 2px solid #3498db;
    color: #3498db;
    background: transparent;
}

.product-actions .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.product-actions .btn:active {
    transform: translateY(0);
}

.product-actions .btn i {
    margin-right: 0.5rem;
    font-size: 1.2em;
}

/* 咨询表单头部样式 */
.consultation-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.consultation-header h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.consultation-header h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
}

.consultation-actions {
    margin-top: 1.5rem;
}

.consultation-actions .btn {
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 50px;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

.consultation-actions .btn-primary {
    background: linear-gradient(135deg, #3498db, #2ecc71);
    border: none;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.consultation-actions .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.consultation-actions .btn:active {
    transform: translateY(0);
}

.consultation-actions .btn i {
    margin-right: 0.5rem;
    font-size: 1.2em;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .product-actions .btn,
    .consultation-actions .btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    .consultation-header {
        padding: 1rem;
    }

    .consultation-header h3 {
        font-size: 1.5rem;
    }
}

.pay-body{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}