/* 实验研究服务页面样式 */

/* Hero区域 */
.experiment-hero {
    position: relative;
    height: 500px;
    background: var(--gradient-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    overflow: hidden;
    margin-top: 0;
    padding-top: 80px;
    transition: background 0.3s ease;
}

.experiment-hero::before {
    content: '';
    position: absolute;
    top: -70px;
    right: 12%;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    animation: experimentFloat 9s ease-in-out infinite;
}

.experiment-hero::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 10%;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    animation: experimentFloat 11s ease-in-out infinite reverse;
}

@keyframes experimentFloat {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(-20px) scale(1.05);
    }
}

.experiment-hero-content {
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* 添加额外的几何装饰元素 */
.experiment-hero-content::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -60px;
    width: 70px;
    height: 70px;
    border: 3px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    transform: translateY(-50%);
    animation: rotate 15s linear infinite;
    z-index: -1;
}

.experiment-hero-content::after {
    content: '';
    position: absolute;
    top: 20%;
    right: -70px;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 50%;
    animation: experimentPulse 7s ease-in-out infinite;
    z-index: -1;
}

@keyframes rotate {
    0% {
        transform: translateY(-50%) rotate(0deg);
    }
    100% {
        transform: translateY(-50%) rotate(360deg);
    }
}

@keyframes experimentPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.3);
        opacity: 1;
    }
}

.experiment-hero h1 {
    font-size: clamp(32px, 5vw, 48px);
    margin-bottom: 20px;
    font-weight: 700;
}

.experiment-hero p {
    font-size: clamp(16px, 3vw, 20px);
    margin-bottom: 30px;
    opacity: 0.95;
}

.experiment-hero-btn {
    display: inline-block;
    padding: 14px 40px;
    background: var(--bg-primary);
    color: var(--primary-color);
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: var(--shadow-lg);
}

.experiment-hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
    background: var(--secondary-color);
    color: var(--text-white);
}

/* 服务亮点 */
.experiment-highlights {
    padding: 80px 0;
    background: var(--section-bg-1);
    transition: background 0.3s ease;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.highlight-item {
    background: var(--bg-primary);
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s;
    border: 1px solid var(--border-color);
}

.highlight-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.highlight-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    border-radius: 50%;
    color: var(--primary-color);
    transition: all 0.3s;
}

.highlight-item:hover .highlight-icon {
    transform: scale(1.1);
    background: var(--primary-color);
    color: var(--text-white);
}

.highlight-icon svg {
    width: 40px;
    height: 40px;
}

.highlight-item h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.highlight-item p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 15px;
}

/* 实验服务项目 */
.experiment-services {
    padding: 80px 0;
    background: var(--section-bg-2);
    transition: background 0.3s ease;
}

.service-category {
    margin-bottom: 50px;
}

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

.category-title {
    font-size: 26px;
    color: var(--text-color);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 16px;
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(90deg, var(--pure-blue), transparent) 1;
    position: relative;
    font-weight: 600;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 80px;
    height: 3px;
    background: var(--gradient-blue);
}

.category-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-blue);
    border-radius: 12px;
    color: var(--white);
    box-shadow: 0 4px 12px rgba(30, 136, 229, 0.25);
    transition: transform 0.3s;
}

.service-category:hover .category-icon {
    transform: scale(1.1) rotate(5deg);
}

.category-icon svg {
    width: 26px;
    height: 26px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.service-item {
    background: var(--bg-primary);
    padding: 24px 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-blue);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.service-item:hover::before {
    transform: scaleY(1);
}

.service-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(30, 136, 229, 0.15);
    border-color: var(--pure-blue);
}

.service-item h4 {
    font-size: 17px;
    color: var(--text-color);
    margin-bottom: 14px;
    font-weight: 600;
    line-height: 1.4;
    transition: color 0.3s;
}

.service-item:hover h4 {
    color: var(--pure-blue);
}

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

.service-item li {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 2;
    padding-left: 22px;
    position: relative;
    margin-bottom: 4px;
}

.service-item li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    width: 16px;
    height: 16px;
    background: var(--gradient-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
}

/* 服务流程 */
.service-process {
    padding: 80px 0;
    background: var(--section-bg-1);
    transition: background 0.3s ease;
}

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

.timeline-track {
    position: absolute;
    top: 65px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--border-color);
    z-index: 0;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    position: relative;
    z-index: 1;
}

.timeline-step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.timeline-node {
    width: 16px;
    height: 16px;
    background: var(--primary-color);
    border: 4px solid var(--bg-primary);
    border-radius: 50%;
    margin-bottom: 15px;
    box-shadow: 0 0 0 3px var(--primary-light);
    transition: all 0.3s;
}

.timeline-step:hover .timeline-node {
    transform: scale(1.3);
    box-shadow: 0 0 0 6px var(--primary-light);
}

.step-card {
    background: var(--bg-primary);
    padding: 25px 20px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all 0.3s;
    border: 1px solid var(--border-color);
    width: 100%;
}

.timeline-step:hover .step-card {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.step-number {
    width: 35px;
    height: 35px;
    background: var(--primary-light);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    margin: 0 auto 15px;
    transition: all 0.3s;
}

.timeline-step:hover .step-number {
    background: var(--primary-color);
    color: var(--text-white);
}

.step-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.step-icon svg {
    width: 30px;
    height: 30px;
}

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

.step-content p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* 成功案例 */
.success-cases {
    padding: 80px 0;
    background: var(--section-bg-2);
    transition: background 0.3s ease;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.case-card {
    background: var(--bg-primary);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.case-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.case-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.case-tag {
    display: inline-block;
    padding: 6px 14px;
    background: var(--primary-light);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.case-if {
    font-weight: 700;
    color: var(--secondary-color);
    font-size: 16px;
}

.case-card h4 {
    font-size: 18px;
    color: var(--text-color);
    margin-bottom: 15px;
    font-weight: 600;
    line-height: 1.4;
}

.case-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
    flex-grow: 1;
    margin-bottom: 20px;
}

.case-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.case-journal {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
}

.case-year {
    color: var(--text-secondary);
    font-size: 13px;
}

/* ==================== FAQ常见问题模块（与首页样式完全一致） ==================== */
.faq-section {
    background: var(--section-bg-2);
    position: relative;
    overflow: hidden;
    padding: 50px 0;
    transition: background 0.3s ease;
}

/* 简化背景装饰 */
.faq-section::before,
.faq-section::after {
    display: none;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.faq-item {
    background: var(--white);
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.faq-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.faq-item.active {
    border-color: var(--pure-blue);
    box-shadow: 0 4px 12px rgba(30, 136, 229, 0.15);
}

.faq-question {
    padding: 16px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    transition: all 0.3s;
}

.faq-question:hover {
    background: rgba(30, 136, 229, 0.03);
}

.faq-question-text {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-color);
    flex: 1;
    padding-right: 15px;
    line-height: 1.4;
    transition: color 0.3s;
}

.faq-item.active .faq-question-text {
    color: var(--pure-blue);
}

.faq-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--gradient-blue);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 300;
    line-height: 0;
    transition: all 0.3s;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(30, 136, 229, 0.3);
    padding-bottom: 2px;
}

.faq-item.active .faq-icon {
    transform: rotate(135deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 20px;
}

.faq-item.active .faq-answer {
    max-height: 600px;
    padding: 0 20px 16px 20px;
}

.faq-answer-content {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 15px;
    padding-top: 8px;
    border-top: 1px solid rgba(30, 136, 229, 0.1);
}

.faq-answer-content ul {
    margin: 10px 0;
    padding-left: 0;
    list-style: none;
}

.faq-answer-content li {
    margin-bottom: 8px;
    padding-left: 24px;
    position: relative;
    line-height: 1.7;
    font-size: 14px;
}

.faq-answer-content li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    width: 16px;
    height: 16px;
    background: var(--gradient-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
}

.faq-answer-content strong {
    color: var(--text-color);
    font-weight: 600;
}

/* 联系咨询 */
.contact-section {
    padding: 80px 0;
    background: var(--section-bg-1);
    transition: background 0.3s ease;
}

.contact-card {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-primary);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-icon {
    width: 120px;
    height: 120px;
    background: var(--primary-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    flex-shrink: 0;
    transition: all 0.3s;
    border: 2px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.contact-item-email:hover .contact-icon {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(30, 136, 229, 0.2);
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: var(--text-white);
}

.contact-icon svg {
    width: 50px;
    height: 50px;
}

.contact-item h4 {
    font-size: 16px;
    color: var(--text-color);
    margin-bottom: 8px;
    font-weight: 600;
}

.contact-item p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* 微信和邮箱联系项样式 */
.contact-item-wechat,
.contact-item-email {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.contact-qrcode {
    width: 120px;
    height: 120px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    border: 2px solid var(--border-color);
}

.contact-qrcode:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(30, 136, 229, 0.2);
    border-color: var(--primary-color);
}

.contact-qrcode img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.contact-details h4 {
    font-size: 16px;
    color: var(--text-color);
    margin: 10px 0 5px 0;
    font-weight: 600;
}

.contact-details p {
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 600;
    margin: 0;
}

.contact-tip {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 5px;
}

.contact-cta {
    text-align: center;
}

.contact-cta p {
    font-size: 18px;
    color: var(--text-color);
    margin-bottom: 25px;
    font-weight: 500;
}

.contact-cta .btn {
    padding: 14px 50px;
    font-size: 16px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .highlights-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .process-steps {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .contact-info {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .experiment-hero {
        height: 400px;
        margin-top: 0; /* 保持0，让背景延伸到顶部 */
        padding-top: 140px; /* 增加顶部padding，为导航栏留出空间 */
    }

    .experiment-hero h1 {
        font-size: 28px;
    }

    .experiment-hero p {
        font-size: 16px;
    }

    .highlights-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .category-title {
        font-size: 22px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .process-timeline {
        padding: 20px 0;
    }

    .timeline-track {
        display: none;
    }

    .process-steps {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .timeline-node {
        display: none;
    }

    .step-card {
        padding: 20px;
    }

    .cases-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-info {
        gap: 15px;
        margin-bottom: 30px;
        padding-bottom: 30px;
    }

    .contact-card {
        padding: 25px;
    }

    .faq-question {
        padding: 15px 20px;
    }

    .faq-question-text {
        font-size: 15px;
    }

    .faq-answer-content {
        padding: 0 20px 15px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .experiment-hero {
        height: 350px;
    }

    .section {
        padding: 50px 0;
    }

    .experiment-highlights,
    .experiment-services,
    .service-process,
    .success-cases,
    .faq-section,
    .contact-section {
        padding: 50px 0;
    }

    .highlight-item {
        padding: 30px 20px;
    }

    .service-item {
        padding: 20px 15px;
    }

    .case-card {
        padding: 20px;
    }

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

    .contact-qrcode,
    .contact-icon {
        width: 100px;
        height: 100px;
    }

    .contact-icon svg {
        width: 40px;
        height: 40px;
    }
}

