/* 多糖分离纯化服务页面样式 */

/* 页面Banner */
.page-banner {
    position: relative;
    width: 100%;
    min-width: 1440px;
    overflow: hidden;
}

.page-banner .banner-bg {
    background: linear-gradient(135deg, #248fed 0%, #1c81d9 100%);
    height: 400px;
}

.page-banner-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    width: 100%;
}

.page-banner-text h1 {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.page-banner-text p {
    font-size: 20px;
    opacity: 0.9;
    margin: 5px 0;
}

/* 筛选区域 */
.filter-section {
    background: #f5f9fc;
    padding: 30px 0;
    border-bottom: 2px solid #e5e5e5;
    margin-bottom: 60px;
}

.filter-section .mix-content-wd {
    display: flex;
    align-items: center;
    gap: 20px;
}

.filter-label {
    font-size: 18px;
    color: #333;
    font-weight: 500;
    white-space: nowrap;
}

.filter-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 30px;
    border: 2px solid #e5e5e5;
    background: #fff;
    color: #686868;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.filter-btn:hover {
    border-color: #248fed;
    color: #248fed;
}

.filter-btn.active {
    background: #248fed;
    color: #fff;
    border-color: #248fed;
}

.search-box {
    margin-left: auto;
    display: flex;
    align-items: center;
    width: 300px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    overflow: hidden;
}

.search-box input {
    flex: 1;
    border: none;
    padding: 10px 15px;
    font-size: 14px;
    outline: none;
}

.search-box button {
    background: #474747;
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    transition: background 0.3s;
}

.search-box button:hover {
    background: #248fed;
}

/* 服务列表 */
.service-list {
    padding: 0 0 80px;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 36px;
    font-weight: normal;
    color: #333;
    margin-bottom: 20px;
}

.section-title p {
    font-size: 16px;
    color: #686868;
}

.service-grid {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.service-card {
    flex: 1;
    min-width: 360px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
}

.service-card:hover {
    box-shadow: 0 4px 16px rgba(36, 143, 237, 0.15);
    border-color: #248fed;
    transform: translateY(-5px);
}

.service-card-img {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, #248fed 0%, #1c81d9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 80px;
}

.service-card-body {
    padding: 25px;
}

.service-card-type {
    display: inline-block;
    padding: 4px 12px;
    background: #f5f9fc;
    color: #248fed;
    border-radius: 4px;
    font-size: 12px;
    margin-bottom: 15px;
    font-weight: 500;
}

.service-card-title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

.service-card-specs {
    margin-bottom: 20px;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #686868;
    margin-bottom: 8px;
}

.spec-item::before {
    content: "✓";
    color: #248fed;
    font-weight: bold;
}

.service-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
}

.service-price {
    font-size: 24px;
    color: #248fed;
    font-weight: bold;
}

.service-price small {
    font-size: 14px;
    color: #686868;
    font-weight: normal;
}

.service-btn {
    padding: 8px 25px;
    background: #248fed;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s;
}

.service-btn:hover {
    background: #1c81d9;
}

/* 服务详情弹窗 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: #fff;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.modal-header {
    background: #248fed;
    padding: 30px;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.modal-title {
    font-size: 28px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 10px;
}

.modal-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
}

.modal-body {
    padding: 30px;
}

.detail-section {
    margin-bottom: 40px;
}

.detail-title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e5e5e5;
    position: relative;
}

.detail-title::before {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: #248fed;
}

.spec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.spec-card {
    background: #f5f9fc;
    padding: 20px;
    border-radius: 6px;
    border-left: 4px solid #248fed;
}

.spec-label {
    font-size: 14px;
    color: #686868;
    margin-bottom: 8px;
}

.spec-value {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.workflow-steps {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.workflow-step {
    flex: 1;
    min-width: 140px;
    text-align: center;
    padding: 20px 15px;
    background: #f5f9fc;
    border-radius: 6px;
    position: relative;
}

.workflow-step:not(:last-child)::after {
    content: "→";
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    color: #248fed;
    font-size: 20px;
}

.step-number {
    width: 36px;
    height: 36px;
    background: #248fed;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin: 0 auto 12px;
    font-size: 16px;
}

.step-title {
    font-weight: bold;
    color: #333;
    margin-bottom: 6px;
    font-size: 14px;
}

.step-duration {
    font-size: 12px;
    color: #686868;
}

.quality-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.quality-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: #f5f9fc;
    border-radius: 6px;
}

.quality-icon {
    width: 40px;
    height: 40px;
    background: #248fed;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    flex-shrink: 0;
}

.quality-text {
    flex: 1;
}

.quality-title {
    font-weight: bold;
    color: #333;
    margin-bottom: 6px;
    font-size: 16px;
}

.quality-desc {
    font-size: 14px;
    color: #686868;
    line-height: 1.6;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    overflow: hidden;
}

.faq-question {
    padding: 15px 20px;
    background: #f5f9fc;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
}

.faq-question:hover {
    background: #eef2f5;
}

.faq-question::after {
    content: "+";
    font-size: 24px;
    color: #248fed;
    font-weight: normal;
}

.faq-answer {
    padding: 15px 20px;
    color: #686868;
    line-height: 1.8;
    display: none;
    border-top: 1px solid #e5e5e5;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-item.active .faq-question::after {
    content: "−";
}

.modal-footer {
    padding: 20px 30px;
    background: #f5f9fc;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    border-top: 1px solid #e5e5e5;
}

.modal-btn {
    padding: 10px 30px;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.modal-btn-secondary {
    background: #fff;
    color: #333;
    border: 1px solid #e5e5e5;
}

.modal-btn-secondary:hover {
    border-color: #248fed;
    color: #248fed;
}

.modal-btn-primary {
    background: #248fed;
    color: #fff;
}

.modal-btn-primary:hover {
    background: #1c81d9;
}

/* 询价表单 */
.quote-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-label {
    font-weight: bold;
    color: #333;
    font-size: 14px;
}

.form-input,
.form-select,
.form-textarea {
    padding: 10px 15px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
    font-family: inherit;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #248fed;
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

/* 响应式 */
@media (max-width: 1440px) {
    .page-banner {
        min-width: auto;
    }

    .mix-content-wd {
        width: 95%;
    }
}

@media (max-width: 768px) {
    .filter-section .mix-content-wd {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box {
        margin-left: 0;
        width: 100%;
    }

    .workflow-step:not(:last-child)::after {
        display: none;
    }

    .workflow-steps {
        flex-direction: column;
    }

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

    .modal-btn {
        width: 100%;
    }

    .page-banner-text h1 {
        font-size: 32px;
    }

    .page-banner-text p {
        font-size: 16px;
    }
}

/* 滚动条 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #248fed;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1c81d9;
}