/* MES制造管理页面专用样式 */

/* 页面横幅样式 */
.mes-hero {
    background: linear-gradient(rgba(30, 58, 138, 0.9), rgba(30, 58, 138, 0.8)), 
                url('../images/manufacturing-banner.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 6rem 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content .subtitle {
    font-size: 1.5rem;
    max-width: 800px;
    margin: 0 auto 3rem;
    opacity: 0.95;
    line-height: 1.6;
}

.hero-features {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 3rem;
}

.feature-badge {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 2rem;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

.feature-badge:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.feature-badge i {
    font-size: 1.25rem;
    color: var(--accent-color);
}

.feature-badge span {
    font-weight: 500;
    font-size: 1.1rem;
}

/* 系统概述区域 */
.mes-overview {
    padding: 5rem 0;
    background-color: var(--bg-white);
}

.overview-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.overview-text h2 {
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.overview-text p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.overview-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.stat:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.stat h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.stat p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
    font-weight: 500;
}

.overview-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.overview-image img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.overview-image:hover img {
    transform: scale(1.05);
}

/* 系统概述特性高亮样式 */
.overview-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0 2rem;
}

.feature-highlight {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: var(--radius-md);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid #bae6fd;
    transition: all 0.3s ease;
}

.feature-highlight:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(14, 165, 233, 0.15);
    border-color: #38bdf8;
}

.feature-highlight i {
    color: var(--primary-color);
    font-size: 1.25rem;
    width: 30px;
    text-align: center;
}

.feature-highlight span {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.feature-highlight strong {
    color: var(--primary-dark);
    font-weight: 600;
}

/* 调整概述统计数据 */
.overview-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
}

/* 核心模块区域 */
.mes-modules {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.mes-modules .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.mes-modules .section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.mes-modules .section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.module-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.module-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.module-card:hover:before {
    transform: scaleX(1);
}

.module-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.module-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.module-card h3 {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.module-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    min-height: 4.5rem;
}

.module-card ul {
    list-style: none;
    padding: 0;
}

.module-card li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.5rem;
}

.module-card li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.5rem;
}

/* 模块卡片标签样式 */
.module-tag {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    color: #065f46;
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 1.5rem;
    border: 1px solid #a7f3d0;
    display: inline-block;
}

.module-card.featured {
    border: 2px solid var(--primary-color);
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    box-shadow: 0 12px 32px rgba(251, 191, 36, 0.2);
}

.module-card.featured:before {
    background: linear-gradient(90deg, #f59e0b, #d97706);
}

.module-card.featured .module-tag {
    background: linear-gradient(135deg, #fef3c7 0%, #fbbf24 100%);
    color: #92400e;
    border: 1px solid #fbbf24;
}

.module-card.featured .module-icon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

/* 调整模块卡片内间距 */
.module-card ul {
    margin-bottom: 1.5rem;
    min-height: 8rem;
}

.module-card li strong {
    color: var(--primary-dark);
    font-weight: 600;
}

/* 行业解决方案区域 */
.mes-solutions {
    padding: 5rem 0;
    background-color: var(--bg-white);
}

.solutions-tabs {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    margin-top: 3rem;
}

.tab-buttons {
    display: flex;
    background: var(--primary-dark);
    padding: 0;
    overflow-x: auto;
}

.tab-button {
    flex: 1;
    min-width: 150px;
    padding: 1.5rem;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-family: var(--font-family);
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
}

.tab-button:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.tab-button.active {
    color: white;
    background: var(--primary-color);
}

.tab-button.active:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent-color);
}

.tab-content {
    padding: 3rem;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.solution-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.solution-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.solution-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.solution-image:hover img {
    transform: scale(1.05);
}

.solution-text h3 {
    font-size: 1.75rem;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
}

.solution-text p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
    font-size: 1.1rem;
}

.solution-text ul {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.solution-text li {
    padding: 0.75rem 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 2rem;
}

.solution-text li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--medical-green);
    font-weight: bold;
    font-size: 1.1rem;
}

.solution-text .btn-outline {
    padding: 0.75rem 2rem;
    font-weight: 500;
}

/* 成功案例区域 */
.mes-cases {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.case-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.case-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.case-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
}

.case-logo {
    width: 80px;
    height: 40px;
    background: var(--primary-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
}

.case-logo img {
    max-width: 100%;
    max-height: 100%;
}

.case-info {
    flex: 1;
}

.case-info h4 {
    font-size: 1.25rem;
    color: var(--primary-dark);
    margin-bottom: 0.25rem;
}

.case-industry {
    font-size: 0.875rem;
    color: var(--text-light);
    background: var(--border-color);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
}

.case-content {
    padding: 1.5rem;
}

.case-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    min-height: 4.5rem;
}

.case-results {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.result-tag {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.result-tag:nth-child(2) {
    background: linear-gradient(135deg, var(--secondary-color), var(--medical-green));
}

.result-tag:nth-child(3) {
    background: linear-gradient(135deg, var(--accent-color), #3b82f6);
}

/* 咨询区域 */
.mes-consult {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: white;
}

.consult-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.consult-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: white;
}

.consult-text p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.consult-actions {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.consult-actions .btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.consult-actions .btn-primary {
    background: white;
    color: var(--primary-color);
    font-weight: 600;
}

.consult-actions .btn-primary:hover {
    background: var(--bg-light);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.consult-actions .btn-outline {
    border-color: white;
    color: white;
}

.consult-actions .btn-outline:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.consult-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.consult-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.consult-image:hover img {
    transform: scale(1.05);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .overview-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .solution-detail {
        grid-template-columns: 1fr;
    }
    
    .consult-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .consult-text {
        text-align: center;
    }
    
    .consult-actions {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .mes-hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-content .subtitle {
        font-size: 1.25rem;
    }
    
    .hero-features {
        flex-direction: column;
        align-items: center;
    }
    
    .overview-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .feature-highlight {
        padding: 0.75rem;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .feature-highlight i {
        width: auto;
    }
    
    .overview-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .modules-grid {
        grid-template-columns: 1fr;
    }
    
    .tab-buttons {
        flex-direction: column;
    }
    
    .tab-button {
        min-width: 100%;
        text-align: center;
    }
    
    .cases-grid {
        grid-template-columns: 1fr;
    }
    
    .consult-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .consult-actions .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .mes-hero h1 {
        font-size: 2rem;
    }
    
    .hero-content .subtitle {
        font-size: 1.1rem;
    }
    
    .overview-text h2 {
        font-size: 2rem;
    }
    
    .overview-text p {
        font-size: 1.1rem;
    }
    
    .tab-content {
        padding: 1.5rem;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-badge {
    animation: fadeInUp 0.6s ease-out forwards;
}

.feature-badge:nth-child(1) { animation-delay: 0.1s; }
.feature-badge:nth-child(2) { animation-delay: 0.2s; }
.feature-badge:nth-child(3) { animation-delay: 0.3s; }
.feature-badge:nth-child(4) { animation-delay: 0.4s; }

.module-card {
    animation: fadeInUp 0.6s ease-out forwards;
}

.module-card:nth-child(1) { animation-delay: 0.1s; }
.module-card:nth-child(2) { animation-delay: 0.2s; }
.module-card:nth-child(3) { animation-delay: 0.3s; }
.module-card:nth-child(4) { animation-delay: 0.4s; }
.module-card:nth-child(5) { animation-delay: 0.5s; }
.module-card:nth-child(6) { animation-delay: 0.6s; }

.case-card {
    animation: fadeInUp 0.6s ease-out forwards;
}

.case-card:nth-child(1) { animation-delay: 0.1s; }
.case-card:nth-child(2) { animation-delay: 0.2s; }
.case-card:nth-child(3) { animation-delay: 0.3s; }

/* 横幅元信息样式 */
.hero-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem auto 0;
    max-width: 900px;
}

.meta-tag {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 2rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    color: white;
    transition: all 0.3s ease;
    white-space: nowrap;}

.meta-tag:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);}

/* FAQ区域样式 */
.mes-faq {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    margin-top: 3rem;}

.mes-faq .section-header {
    text-align: center;
    margin-bottom: 3rem;}

.mes-faq .section-header h2 {
    font-size: 2.5rem;
    color: #0f172a;
    margin-bottom: 0.8rem;
    font-weight: 700;}

.mes-faq .section-header p {
    color: #475569;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;}

.mes-faq .faq-container {
    max-width: 900px;
    margin: 0 auto;}

.mes-faq .faq-item {
    background: white;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;}

.mes-faq .faq-item:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);}

.mes-faq .faq-item.active {
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.15);}

.mes-faq .faq-question {
    padding: 1.5rem 2rem;
    margin: 0;
    font-size: 1.2rem;
    color: #0f172a;
    background: #f8fafc;
    cursor: pointer;
    position: relative;
    font-weight: 600;
    border-bottom: 1px solid transparent;}

.mes-faq .faq-question:hover {
    background: #f1f5f9;}

.mes-faq .faq-item.active .faq-question {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-bottom-color: #cbd5e1;}

.mes-faq .faq-question:after {
    content: '+';
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: #475569;
    transition: all 0.3s ease;}

.mes-faq .faq-item.active .faq-question:after {
    content: '-';
    color: #1e3a8a;}

.mes-faq .faq-answer {
    padding: 0 2rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;}

.mes-faq .faq-item.active .faq-answer {
    padding: 1.5rem 2rem 2rem;
    max-height: 1000px;}

.mes-faq .faq-answer p {
    margin-bottom: 1rem;
    color: #475569;
    line-height: 1.6;
    font-size: 1.05rem;}

.mes-faq .faq-answer ul {
    margin: 1rem 0;
    padding-left: 1.5rem;}

.mes-faq .faq-answer li {
    margin-bottom: 0.5rem;
    color: #475569;
    line-height: 1.5;}

.mes-faq .faq-answer strong {
    color: #0f172a;}

/* 响应式设计 */
@media (max-width: 768px) {
    .mes-faq {
        padding: 3rem 0;}

    .mes-faq .section-header h2 {
        font-size: 2rem;}

    .mes-faq .faq-question {
        padding: 1.2rem 1.5rem;
        font-size: 1.1rem;}

    .mes-faq .faq-answer,
    .mes-faq .faq-item.active .faq-answer {
        padding: 1.2rem 1.5rem;}}

@media (max-width: 480px) {
    .mes-faq {
        padding: 2rem 0;}

    .mes-faq .section-header h2 {
        font-size: 1.8rem;}}

/* 动画效果 */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);}
    to {
        opacity: 1;
        transform: translateY(0);}}

.mes-faq .faq-item {
    animation: slideDown 0.5s ease-out forwards;}

.mes-faq .faq-item:nth-child(1) { animation-delay: 0.1s; }
.mes-faq .faq-item:nth-child(2) { animation-delay: 0.2s; }
.mes-faq .faq-item:nth-child(3) { animation-delay: 0.3s; }