/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #0c1426 0%, #1a2332 50%, #0f1419 100%);
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* 页面标题 */
.header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.main-title {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(45deg, #4a90e2, #50c8ff, #4a90e2);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
    margin-bottom: 15px;
    text-shadow: 0 0 30px rgba(74, 144, 226, 0.5);
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.status-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-dot.processing {
    background: #4ecdc4;
    box-shadow: 0 0 20px rgba(78, 205, 196, 0.6);
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.9; transform: scale(1.03); }
}

.status-text {
    font-size: 1rem;
    color: #4ecdc4;
    font-weight: 500;
}

/* 进度条 - 科技感升级版 */
.progress-container {
    margin-bottom: 50px;
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

/* 固定在顶部的样式 */
.progress-container.fixed {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1400px;
    z-index: 1000;
    margin-bottom: 0;
    border-radius: 0 0 20px 20px;
    padding: 15px 30px;
    background: rgba(26, 35, 50, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 固定状态下的进度条样式调整 */
.progress-container.fixed .progress-bar {
    height: 8px;
    margin-bottom: 15px;
}

/* 固定状态下的步骤指示器样式调整 */
.progress-container.fixed .step {
    width: 60px;
    height: 60px;
    font-size: 0.8rem;
}

.progress-container.fixed .step-progress {
    bottom: -8px;
    height: 4px;
}

.progress-container.fixed .step-status-text {
    font-size: 0.65rem;
    top: -18px;
}

/* 占位元素，防止内容跳动 */
.progress-placeholder {
    height: 0;
    transition: height 0.3s ease;
}

.progress-placeholder.active {
    height: 160px; /* 根据固定状态下的高度调整，增加一些额外空间 */
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 30px;
    position: relative;
    border: 1px solid rgba(74, 144, 226, 0.3);
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(74, 144, 226, 0.2);
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(74, 144, 226, 0.1) 25%, 
        rgba(78, 205, 196, 0.1) 75%, 
        transparent 100%);
    animation: backgroundPulse 3s ease-in-out infinite;
}

@keyframes backgroundPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, 
        #4a90e2 0%, 
        #50c8ff 25%, 
        #4ecdc4 50%, 
        #45b7d1 75%, 
        #4a90e2 100%);
    background-size: 200% 100%;
    border-radius: 20px;
    width: 28.57%; /* 2/7 步骤完成 */
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 0 20px rgba(74, 144, 226, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    animation: progressGlow 2s ease-in-out infinite;
}

@keyframes progressGlow {
    0%, 100% { 
        background-position: 0% 50%;
        box-shadow: 
            0 0 20px rgba(74, 144, 226, 0.6),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
    50% { 
        background-position: 100% 50%;
        box-shadow: 
            0 0 30px rgba(78, 205, 196, 0.8),
            inset 0 1px 0 rgba(255, 255, 255, 0.5);
    }
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.6), 
        transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.progress-steps {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    position: relative;
    flex-wrap: wrap;
}



.step {
    width: 80px;
    height: 80px;
    text-align: center;
    border-radius: 50%;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 3px solid transparent;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    color: #ffffff !important;
}

.step::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    background: linear-gradient(45deg, transparent, transparent);
    z-index: -1;
    transition: all 0.4s ease;
}

.step.completed {
    background: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
    border-color: #00ff88;
    color: #000;
    transform: scale(1.1);
    box-shadow: 
        0 12px 40px rgba(0, 255, 136, 0.4),
        0 0 20px rgba(0, 255, 136, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    animation: borderGlow 2s ease-in-out infinite alternate;
}

.step.completed::before {
    background: linear-gradient(45deg, 
        #4ecdc4, 
        transparent, 
        #4ecdc4);
    background-size: 200% 200%;
    animation: borderGlow 2s ease-in-out infinite;
}

.step.completed:hover {
    transform: scale(1.15);
    box-shadow: 
        0 15px 50px rgba(0, 255, 136, 0.5),
        0 0 35px rgba(0, 255, 136, 0.7),
        inset 0 2px 0 rgba(255, 255, 255, 0.4);
    border-color: rgba(0, 255, 136, 0.8);
}

.step.processing {
    background: linear-gradient(135deg, #00aaff 0%, #0088cc 100%);
    border-color: #00aaff;
    color: #fff;
    box-shadow: 
        0 15px 50px rgba(0, 170, 255, 0.5),
        0 0 30px rgba(0, 170, 255, 0.8),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    animation: 
        pulse 2.5s ease-in-out infinite,
        borderFlow 4s linear infinite;
    transform: scale(1.15);
}

.step.current {
    background: #4a90e2;
    color: #ffffff;
    transform: translateY(-15px) scale(1.2);
    border: 3px solid #50c8ff;
    box-shadow:
        0 0 25px rgba(74, 144, 226, 0.8),
        0 0 40px rgba(80, 200, 255, 0.6),
        inset 0 0 10px rgba(255, 255, 255, 0.3);
    border-radius: 50%;
}

.step.processing::before {
    background: linear-gradient(45deg, 
        #4a90e2, 
        #50c8ff, 
        #4a90e2, 
        #50c8ff);
    background-size: 300% 300%;
    animation: processingBorder 1.5s linear infinite;
}

.step.pending {
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    border: 2px dashed rgba(255, 255, 255, 0.3);
    box-shadow: none;
}

.step.pending:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 255, 255, 0.8);
    color: rgba(255, 255, 255, 0.7);
    transform: scale(1.2);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(0, 255, 255, 0.6),
        inset 0 2px 0 rgba(255, 255, 255, 0.2);
}

@keyframes borderGlow {
    0%, 100% { 
        background-position: 0% 50%;
        opacity: 0.8;
    }
    50% { 
        background-position: 100% 50%;
        opacity: 0.95;
    }
}

@keyframes processingPulse {
    0%, 100% { 
        box-shadow: 
            0 0 30px rgba(74, 144, 226, 0.5),
            inset 0 1px 0 rgba(74, 144, 226, 0.3);
    }
    50% { 
        box-shadow: 
            0 0 50px rgba(74, 144, 226, 0.8),
            inset 0 1px 0 rgba(74, 144, 226, 0.5);
    }
}

@keyframes processingBorder {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 步骤圆形进度条样式 */
.step-progress-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-90deg);
    width: 110%; 
    height: 110%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.step.processing .step-progress-circle {
    opacity: 1;
}

.step-progress-circle circle {
    fill: none;
    stroke-width: 8;
    transition: stroke-dashoffset 0.3s ease;
}

.step-progress-circle .progress-bg {
    stroke: rgba(255, 255, 255, 0.1);
}

.step-progress-circle .progress-fg {
    stroke: #00eaff;
    stroke-dasharray: 282.74; 
    stroke-dashoffset: 282.74;
}

/* 步骤状态文本 */
.step-status-text {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.8);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-weight: 500;
}

.step.processing .step-status-text {
    opacity: 1;
    animation: textPulse 1.5s ease-in-out infinite;
}

@keyframes textPulse {
    0%, 100% { opacity: 0.9; }
    50% { opacity: 1; }
}

/* 主要内容区域 */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* 分析部分 */
.analysis-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 30px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.analysis-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #4a90e2, transparent);
    transition: left 0.5s ease;
}

.analysis-section.completed::before {
    background: linear-gradient(90deg, transparent, #4ecdc4, transparent);
    left: 100%;
}

.analysis-section.processing::before {
    background: linear-gradient(90deg, transparent, #4a90e2, transparent);
    animation: scanLine 2s infinite;
}

@keyframes scanLine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.analysis-section.completed {
    border-color: rgba(78, 205, 196, 0.3);
    background: rgba(78, 205, 196, 0.05);
}

.analysis-section.processing {
    border-color: rgba(74, 144, 226, 0.3);
    background: rgba(74, 144, 226, 0.05);
    box-shadow: 0 0 30px rgba(74, 144, 226, 0.2);
}

.analysis-section.pending {
    opacity: 0.6;
}

/* 部分标题 */
.section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.section-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.section-header h2 {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    flex: 1;
}

.section-status {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid;
}

.section-status.completed {
    background: rgba(78, 205, 196, 0.2);
    border-color: #4ecdc4;
    color: #4ecdc4;
}

.section-status.processing {
    background: rgba(74, 144, 226, 0.2);
    border-color: #4a90e2;
    color: #4a90e2;
}

.section-status.pending {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.6);
}

/* 信息网格 */
.device-overview-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.info-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 20px;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.result-card.full-width {
    grid-column: 1 / -1;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.history-table th, .history-table td {
    border: 1px solid #334866;
    padding: 10px 12px;
    text-align: left;
}

.history-table th {
    background-color: #1f3a5f;
    font-weight: 600;
}

.history-table tbody tr:nth-child(even) {
    background-color: #1a2c47;
}

.history-table tbody tr:hover {
    background-color: #2a4a75;
}

.info-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 25px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.info-card h3, .tech-params h3, .diagram-container h3, .history-report-container h3, .status-report-container h3, .maintenance-advice h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #4dd0e1;
    border-bottom: 2px solid #4dd0e1;
    padding-bottom: 8px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.info-item:last-child {
    border-bottom: none;
}

.label {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}

.value {
    font-weight: 600;
    color: #ffffff;
    font-family: 'Orbitron', monospace;
}

/* 测点示意图 */
.diagram-card {
    grid-column: span 1;
}

.diagram-container {
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 加载动画 */
.loading-animation {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.loading-dots {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.loading-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #4a90e2;
    animation: loadingBounce 1.4s infinite ease-in-out;
}

.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }
.loading-dots span:nth-child(3) { animation-delay: 0s; }

@keyframes loadingBounce {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.loading-animation p {
    color: #4a90e2;
    font-size: 1.1rem;
    font-weight: 500;
}

/* 等待消息 */
.pending-message {
    text-align: center;
    padding: 40px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
}

/* 检修建议样式 */
.maintenance-advice {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}



.maintenance-advice ul {
    list-style-type: none;
    padding-left: 0;
}

.maintenance-advice li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    line-height: 1.6;
}

.maintenance-advice li::before {
    content: '🔧';
    position: absolute;
    left: 0;
    top: 4px;
    color: #81c784;
}

/* 阈值分析样式 */
.threshold-analysis {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.summary-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.summary-card h4 {
    color: #4a90e2;
    margin-bottom: 15px;
    font-family: 'Orbitron', monospace;
}

.coverage-chart {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chart-item:last-child {
    border-bottom: none;
}

.status.covered {
    color: #4ecdc4;
    font-weight: 600;
}

.status.missing {
    color: #ff6b6b;
    font-weight: 600;
}

.reasonability-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.reason-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
}

.reason-item.good .icon {
    color: #4ecdc4;
}

.reason-item.warning .icon {
    color: #feca57;
}

.reason-item.error .icon {
    color: #ff6b6b;
}

/* 报警分析样式 */
.alarm-analysis {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.alarm-summary {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.summary-stats {
    display: flex;
    justify-content: space-around;
    gap: 20px;
}

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

.stat-item .number {
    font-size: 2rem;
    font-weight: 700;
    font-family: 'Orbitron', monospace;
    color: #4a90e2;
    margin-bottom: 5px;
}

.stat-item .label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.alarm-details {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.alarm-details h4 {
    color: #4a90e2;
    margin-bottom: 15px;
    font-family: 'Orbitron', monospace;
}

.alarm-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.alarm-item {
    display: grid;
    grid-template-columns: 150px 100px 80px 80px;
    gap: 15px;
    padding: 12px;
    border-radius: 8px;
    border-left: 4px solid;
    align-items: center;
}

.alarm-item.high {
    border-left-color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
}

.alarm-item.medium {
    border-left-color: #feca57;
    background: rgba(254, 202, 87, 0.1);
}

.alarm-item.low {
    border-left-color: #4ecdc4;
    background: rgba(78, 205, 196, 0.1);
}

/* 状态报告样式 */
.status-report-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.report-section {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.report-section h4 {
    color: #4dd0e1;
    margin-bottom: 15px;
    border-bottom: 1px solid #4dd0e1;
    padding-bottom: 10px;
}

.conclusion-content p,
.trend-summary-content p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.conclusion-content strong,
.trend-summary-content strong {
    color: #81c784;
}

.trend-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.trend-images img {
    width: 100%;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.trend-images img:hover {
    transform: scale(1.05);
}

/* Image Modal Styles */
.image-modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.modal-content img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    display: block;
    margin: 0 auto;
}

.close-modal {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

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


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

.threshold-coverage-chart {
    text-align: center;
    margin-bottom: 20px;
}

.donut-chart {
    transform: rotate(-90deg);
}

.donut-segment {
    transition: stroke-dasharray 0.5s ease-in-out;
}

.chart-text {
    transform: rotate(90deg);
    transform-origin: center;
}

.threshold-comparison {
    display: flex;
    justify-content: space-around;
    margin-bottom: 15px;
}

.comparison-item {
    text-align: center;
}

.comparison-label {
    font-size: 0.9em;
    color: #a0c8ff;
    margin-bottom: 5px;
}

.comparison-value {
    font-size: 1.2em;
    font-weight: 500;
    color: #ffffff;
}

.recommendation-reason {
    font-size: 0.9em;
    color: #a0c8ff;
    text-align: center;
    margin-top: 10px;
}

.evaluation-container table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.evaluation-container th, .evaluation-container td {
    border: 1px solid #444;
    padding: 10px 12px;
    text-align: left;
    color: #ccc;
}

.evaluation-container th {
    background-color: #333;
    color: #eee;
    font-weight: bold;
}

.evaluation-container tr:nth-child(even) {
    background-color: #2c2c2c;
}

.evaluation-container tr:hover {
    background-color: #383838;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .main-title {
        font-size: 2rem;
    }
    
    .progress-steps {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .step {
        font-size: 0.7rem;
        width: 60px;
        height: 60px;
    }
    
    .progress-bar {
        height: 10px;
        margin-bottom: 25px;
    }
    
    .progress-steps {
        gap: 10px;
    }
    
    .step-progress {
        width: 80%;
        height: 4px;
        bottom: -8px;
    }
    
    .step-status-text {
        font-size: 0.6rem;
        top: -20px;
    }
    
    /* 移动端固定状态样式 */
    .progress-container.fixed {
        padding: 10px 15px;
    }
    
    .progress-container.fixed .step {
        width: 45px;
        height: 45px;
        font-size: 0.65rem;
    }
    
    .progress-container.fixed .step-status-text {
        font-size: 0.55rem;
        top: -15px;
    }
    
    .progress-container.fixed .step-progress {
        bottom: -6px;
        height: 3px;
        width: 85%;
    }
    
    .progress-placeholder.active {
        height: 120px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .section-header h2 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 1.5rem;
    }
    
    .analysis-section {
        padding: 20px;
    }
    
    .info-card {
        padding: 15px;
    }
    
    .priority-levels {
        flex-direction: column;
        gap: 10px;
    }
    
    .priority-item {
        min-width: auto;
    }
    
    .advice-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .alarm-item {
        grid-template-columns: 1fr;
        gap: 8px;
        text-align: left;
    }
    
    .summary-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .detailed-analysis {
        grid-template-columns: 1fr;
    }
    
    .threshold-summary {
        grid-template-columns: 1fr;
    }
}

/* 滚动优化样式 */
/* 确保内容区域在滚动时有平滑的过渡效果 */
.main-content {
    scroll-margin-top: 180px; /* 为固定进度条和额外间距留出空间 */
}

/* 分析部分的滚动优化 */
.analysis-section {
    scroll-margin-top: 180px; /* 为固定进度条和额外间距留出空间 */
    scroll-behavior: smooth;
    transition: all 0.3s ease;
}

/* 当进度指示器固定时，调整内容区域的滚动边距 */
.progress-container.fixed ~ .main-content .analysis-section {
    scroll-margin-top: 100px; /* 减少滚动边距，因为进度条已经固定 */
}

/* 滚动时的视觉反馈 */
.analysis-section.scrolling {
    transform: translateY(0);
    opacity: 1;
}

.analysis-section.scrolling-active {
    border-color: rgba(74, 144, 226, 0.8);
    box-shadow: 0 0 30px rgba(74, 144, 226, 0.5);
    transform: translateY(-5px);
}

/* 改进滚动行为的平滑度 */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 180px; /* 为固定进度条和额外间距留出空间 */
}

/* 当进度指示器固定时的滚动调整 */
.progress-container.fixed + .progress-placeholder.active ~ .main-content {
    scroll-padding-top: 100px;
}

/* 确保滚动到锚点时的偏移量 */
html:has(.progress-container.fixed) {
    scroll-padding-top: 100px;
}

/* 优化滚动体验，减少跳动 */
body {
    scroll-behavior: smooth;
    overflow-y: scroll;
}

/* 确保内容区域在滚动时平滑过渡 */
.main-content {
    transition: margin-top 0.3s ease;
}

/* 当进度指示器固定时，调整内容区域的顶部边距 */
.progress-container.fixed + .progress-placeholder.active + .main-content {
    margin-top: 20px;
}

/* 滚动指示器样式 */
.scroll-indicator {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #4a90e2, #50c8ff, #4a90e2);
    border-radius: 3px;
    transition: width 0.5s ease;
    z-index: 10;
    box-shadow: 0 0 10px rgba(74, 144, 226, 0.7);
}

/* 滚动指示器动画 */
@keyframes indicatorPulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

.scroll-indicator.active {
    animation: indicatorPulse 1.5s ease-in-out infinite;
}

/* 移动设备优化 */
.mobile-device .main-content {
    scroll-margin-top: 140px; /* 减少移动设备上的顶部边距 */
}

.mobile-device .analysis-section {
    scroll-margin-top: 140px;
}

.mobile-device .progress-container.fixed ~ .main-content .analysis-section {
    scroll-margin-top: 80px;
}

/* 移动设备上的滚动指示器调整 */
.mobile-device .scroll-indicator {
    height: 2px;
    top: -8px;
}

/* 改进移动设备上的触摸滚动体验 */
.mobile-device {
    -webkit-overflow-scrolling: touch;
}

.mobile-device .analysis-section {
    transform: translateZ(0); /* 启用硬件加速 */
    will-change: transform; /* 提示浏览器该元素将会变化 */
}

/* 移动设备上的进度指示器调整 */
.mobile-device .progress-container.fixed {
    padding: 10px 15px;
    max-width: 100%;
}

.mobile-device .progress-placeholder.active {
    height: 100px;
}

/* 打印报告按钮样式 */
.print-report-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    animation: fadeInUp 0.5s ease;
}

.print-report-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #4a90e2, #357abd);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.4);
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.print-report-btn:hover {
    background: linear-gradient(135deg, #357abd, #2968a3);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(74, 144, 226, 0.6);
    border-color: rgba(255, 255, 255, 0.4);
}

.print-report-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

.print-icon {
    font-size: 1.2rem;
}

.print-text {
    font-family: 'Orbitron', monospace;
}

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

/* 打印样式优化 */
@media print {
    /* 强制所有元素为黑白灰度显示 */
    * {
        color: #000 !important;
        background: #fff !important;
        border-color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
        border-radius: 0 !important;
    }
    
    /* 移除所有圆角设计 */
    * {
        border-radius: 0 !important;
    }
    /* 隐藏不需要打印的元素 */
    body * {
        visibility: hidden;
    }
    
    .main-content, .main-content * {
        visibility: visible;
    }
    
    .main-content {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        margin: 0;
        padding: 0;
    }
    
    /* 隐藏打印按钮和其他UI元素 */
    .print-report-container,
    .header,
    .progress-container,
    .progress-placeholder,
    .section-status,
    .step-status-text,
    .step-progress-circle,
    .loading-animation,
    .pending-message,
    .completion-notification,
    .image-modal,
    .close-modal {
        display: none !important;
    }
    
    /* 移除各模块最外层容器并调整内容宽度 */
    .analysis-section {
        border: none !important;
        border-radius: 0 !important;
        background: white !important;
        box-shadow: none !important;
        padding: 10px 0 !important;
        margin: 0 !important;
        page-break-inside: avoid;
        width: 100% !important;
    }
    
    .section-header {
        border-bottom: 1px solid #000 !important;
        padding-bottom: 5px !important;
        margin-bottom: 10px !important;
        width: 100% !important;
    }
    
    .section-header h2 {
        color: #000 !important;
        font-size: 18pt !important;
        border: none !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
    }
    
    .section-content {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* 确保所有内容元素宽度与标题下划线一致 */
    .info-grid,
    .result-grid,
    .grid-container,
    .info-card,
    .result-card,
    .report-section,
    .alarm-analysis,
    .threshold-analysis,
    .status-report-container,
    .maintenance-advice,
    .data-status-table,
    .alarm-summary,
    .alarm-details,
    .threshold-summary,
    .history-table,
    .threshold-table,
    .trend-images,
    .conclusion-content,
    .trend-summary-content,
    .missing-params-table,
    .maintenance-summary {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* 调整内容宽度至A4纸张标准尺寸 */
    .container {
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .info-grid,
    .result-grid,
    .grid-container {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    /* 优化字体大小、行高和边距以提高可读性 */
    body {
        font-family: 'SimSun', '宋体', serif !important;
        font-size: 12pt !important;
        line-height: 1.5 !important;
        color: #000 !important;
        background: white !important;
    }
    
    .info-card h3,
    .tech-params h3,
    .diagram-container h3,
    .history-report-container h3,
    .status-report-container h3,
    .maintenance-advice h3,
    .report-section h4 {
        color: #000 !important;
        font-size: 14pt !important;
        font-family: 'SimHei', '黑体', sans-serif !important;
        border-bottom: 1px solid #000 !important;
        padding-bottom: 3px !important;
        margin-bottom: 8px !important;
    }
    
    .info-item {
        padding: 3px 0 !important;
        border-bottom: 0.5px solid #000 !important;
    }
    
    .label {
        color: #000 !important;
        font-weight: normal !important;
    }
    
    .value {
        color: #000 !important;
        font-family: 'SimSun', '宋体', serif !important;
        font-weight: normal !important;
    }
    
    /* 确保表格和图表完整显示且不被截断 */
    table {
        width: 100% !important;
        border-collapse: collapse !important;
        page-break-inside: avoid !important;
        font-size: 11pt !important;
    }
    
    th, td {
        border: 1px solid #000 !important;
        padding: 4px !important;
        text-align: left !important;
        color: #000 !important;
        background: white !important;
    }
    
    th {
        background: #fff !important;
        font-weight: bold !important;
        color: #000 !important;
    }
    
    tr {
        page-break-inside: avoid !important;
    }
    
    /* 图表和图片处理 */
    img {
        max-width: 100% !important;
        height: auto !important;
        page-break-inside: avoid !important;
    }
    
    .trend-images {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    .trend-images img {
        display: block !important;
        margin: 10px 0 !important;
        border: 1px solid #000 !important;
    }
    
    /* 添加报告标题 */
    .main-content::before {
        content: "设备状态评估报告" !important;
        display: block !important;
        font-size: 20pt !important;
        font-weight: bold !important;
        text-align: center !important;
        margin-bottom: 20px !important;
        padding-bottom: 10px !important;
        border-bottom: 2px solid #000 !important;
        color: #000 !important;
        visibility: visible !important;
    }
    
    /* 评估时间打印样式 */
    .evaluation-time {
        text-align: right !important;
        font-size: 11pt !important;
        color: #000 !important;
        margin-bottom: 15px !important;
        visibility: visible !important;
    }
    
    /* 特殊内容处理 */
    .missing-params-table,
    .maintenance-summary,
    .conclusion-content,
    .trend-summary-content {
        background: white !important;
        border: 1px solid #000 !important;
        padding: 10px !important;
        margin: 10px 0 !important;
        page-break-inside: avoid !important;
    }
    
    .status-normal,
    .status-minimal,
    .status-disconnected,
    .status.covered,
    .status.missing,
    .alarm-level.attention,
    .alarm-level.warning,
    .value-exceeded {
        color: #000 !important;
        font-weight: normal !important;
        background: white !important;
        border: none !important;
    }
    
    /* 分页控制 */
    .analysis-section {
        page-break-before: auto !important;
    }
    
    /* 确保最后一页内容完整 */
    @page {
        margin: 2cm !important;
        size: A4 !important;
    }
}