/* 统一信息展示框样式 */
.unified-info-box {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 20px;
    margin: 20px 0;
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* .unified-info-box:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
} */

/* 价格区域样式 */
.price-section {
    margin: 0 0 20px 0;
    padding: 0 0 20px 0;
    background: transparent;
    border: none;
    position: relative;
}

.price-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.price-value {
    font-size: 24px;
    font-weight: 700;
    color: #EDF0EF;
    font-family: "Statoil", Sans-serif;
    text-align: center;
    padding: 10px 0;
    padding-top: 0;
}

/* 项目指标字段样式 */
.project-metrics {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 0 20px 0;
    padding: 0 0 20px 0;
    position: relative;
}

.project-metrics::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.metric-item {
    text-align: center;
    flex: 1;
    padding: 0 10px;
}

.metric-label {
    font-size: 12px;
    font-weight: 600;
    color: #EDF0EF;
    letter-spacing: 1px;
    margin-bottom: 5px;
    opacity: 0.8;
}

.metric-value {
    font-size: 16px;
    font-weight: 700;
    color: #EDF0EF;
    font-family: "Statoil", Sans-serif;
}

/* 进度条样式 */
.progress-section {
    margin: 0;
    padding: 20px 0 0 0;
    border-radius: 8px;
}

.progress-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.progress-label {
    font-size: 14px;
    font-weight: 600;
    color: #EDF0EF;
    min-width: 60px;
    opacity: 0.9;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    border-radius: 4px;
    transition: width 0.8s ease-in-out;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-percentage {
    font-size: 14px;
    font-weight: 700;
    color: #EDF0EF;
    min-width: 40px;
    text-align: right;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .unified-info-box {
        padding: 15px;
        margin: 15px 0;
        border-radius: 10px;
    }
    
    .price-value {
        font-size: 20px;
        padding: 8px 0;
    }
    
    .price-section {
        margin: 0 0 15px 0;
        padding: 0 0 15px 0;
    }
    
    .price-section::after {
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    }
    
    .project-metrics {
        flex-direction: column;
        gap: 15px;
        margin: 0 0 15px 0;
        padding: 0 0 15px 0;
    }
    
    .project-metrics::after {
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    }
    
    .metric-item {
        padding: 10px 0;
    }
    
    .progress-section {
        margin: 0;
        padding: 15px 0 0 0;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: auto !important;
        overflow: visible !important;
    }
    
    .progress-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .progress-bar {
        width: 100%;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: 8px !important;
    }
    
    .progress-fill {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .progress-percentage {
        text-align: left;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

/* 悬停效果 */
/* .project-metrics:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

.metric-item:hover .metric-value {
    color: #4CAF50;
    transition: color 0.3s ease;
}

.progress-bar:hover .progress-fill {
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
    transition: box-shadow 0.3s ease;
} */

/* 针对craft-slides的特定样式调整 */
.craft-slides .project-metrics {
    margin: 15px 0;
    padding: 12px;
}

.craft-slides .progress-section {
    margin: 15px 0;
    padding: 12px;
}

/* 当craft-slides激活时的样式 */
.craft-slides.active .project-metrics {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.craft-slides.active .progress-section {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* iPad 兼容性样式 */
@media (min-width: 768px) and (max-width: 1024px) {
    .unified-info-box {
        /* padding: 18px;
        margin: 18px 0; */
        border-radius: 10px;
    }
    
    .price-value {
        font-size: 22px;
        padding: 12px 0;
    }
    
    .project-metrics {
        margin: 18px 0;
        padding: 18px;
        gap: 20px;
    }
    
    .metric-item {
        padding: 0 15px;
    }
    
    .metric-label {
        font-size: 13px;
        margin-bottom: 8px;
    }
    
    .metric-value {
        font-size: 18px;
    }
    
    .progress-section {
        margin: 18px 0;
        padding: 18px;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: auto !important;
        overflow: visible !important;
    }
    
    .progress-item {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        flex-direction: row;
        align-items: center;
        gap: 15px;
    }
    
    .progress-label {
        font-size: 15px;
        min-width: 70px;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .progress-bar {
        height: 10px;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        flex: 1;
    }
    
    .progress-fill {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .progress-percentage {
        font-size: 15px;
        min-width: 45px;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

/* 大屏手机兼容性样式 */
@media (min-width: 480px) and (max-width: 767px) {
    .project-metrics {
        margin: 16px 0;
        padding: 16px;
        gap: 18px;
    }
    
    .metric-item {
        padding: 0 12px;
    }
    
    .metric-label {
        font-size: 12px;
        margin-bottom: 6px;
    }
    
    .metric-value {
        font-size: 16px;
    }
    
    .progress-section {
        margin: 16px 0;
        padding: 16px;
    }
    
    .progress-label {
        font-size: 14px;
        min-width: 65px;
    }
    
    .progress-bar {
        height: 9px;
    }
    
    .progress-percentage {
        font-size: 14px;
        min-width: 42px;
    }
}

/* 小屏手机兼容性样式 */
@media (max-width: 479px) {
    .unified-info-box {
        padding: 12px;
        margin: 12px 0;
        border-radius: 8px;
    }
    
    .price-value {
        font-size: 18px;
        padding: 6px 0;
    }
    
    .project-metrics {
        margin: 12px 0;
        padding: 12px;
        gap: 15px;
        flex-direction: column;
    }
    
    .metric-item {
        padding: 8px 0;
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .metric-item:last-child {
        border-bottom: none;
    }
    
    .metric-label {
        font-size: 11px;
        margin-bottom: 0;
        text-align: left;
        flex: 1;
    }
    
    .metric-value {
        font-size: 15px;
        text-align: right;
        flex: 1;
    }
    
    .progress-section {
        margin: 12px 0;
        padding: 12px;
    }
    
    .progress-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .progress-label {
        font-size: 13px;
        min-width: auto;
        width: 100%;
        text-align: left;
    }
    
    .progress-bar {
        width: 100%;
        height: 8px;
    }
    
    .progress-percentage {
        font-size: 13px;
        min-width: auto;
        text-align: left;
        width: 100%;
    }
}

/* 横屏手机兼容性样式 */
@media (max-width: 767px) and (orientation: landscape) {
    .project-metrics {
        flex-direction: row;
        gap: 15px;
    }
    
    .metric-item {
        padding: 0 8px;
        border-bottom: none;
        width: auto;
        flex-direction: column;
        text-align: center;
    }
    
    .metric-label {
        text-align: center;
        margin-bottom: 4px;
    }
    
    .metric-value {
        text-align: center;
    }
    
    .progress-item {
        flex-direction: row;
        align-items: center;
        gap: 12px;
    }
    
    .progress-label {
        width: auto;
        min-width: 60px;
    }
    
    .progress-bar {
        width: auto;
        flex: 1;
    }
    
    .progress-percentage {
        width: auto;
        min-width: 40px;
        text-align: right;
    }
}

/* 高分辨率屏幕优化 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .progress-bar {
        border-radius: 6px;
    }
    
    .progress-fill {
        border-radius: 6px;
    }
    
    .project-metrics {
        border-radius: 10px;
    }
    
    .progress-section {
        border-radius: 10px;
    }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    .project-metrics:hover {
        transform: none;
    }
    
    .metric-item:hover .metric-value {
        color: #EDF0EF;
    }
    
    .progress-bar:hover .progress-fill {
        box-shadow: none;
    }
    
    /* 触摸反馈 */
    .project-metrics:active {
        background: rgba(255, 255, 255, 0.2);
        transform: scale(0.98);
        transition: all 0.1s ease;
    }
    
    .metric-item:active .metric-value {
        color: #4CAF50;
        transition: color 0.1s ease;
    }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    .project-metrics {
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.15);
    }
    
    .progress-section {
        background: rgba(255, 255, 255, 0.03);
        border-color: rgba(255, 255, 255, 0.08);
    }
}

/* 减少动画（用户偏好） */
@media (prefers-reduced-motion: reduce) {
    .progress-fill {
        transition: none;
    }
    
    .progress-fill::after {
        animation: none;
    }
    
    .project-metrics:hover {
        transform: none;
        transition: none;
    }
    
    .metric-item:hover .metric-value {
        transition: none;
    }
    
    .progress-bar:hover .progress-fill {
        transition: none;
    }
}

/* 移动端进度条显示修复 */
@media (max-width: 1024px) {
    .progress-section {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: auto !important;
        overflow: visible !important;
        position: relative !important;
        z-index: 1 !important;
    }
    
    .progress-item {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        z-index: 1 !important;
    }
    
    .progress-label {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        z-index: 1 !important;
    }
    
    .progress-bar {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        z-index: 1 !important;
        height: 8px !important;
    }
    
    .progress-fill {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        z-index: 1 !important;
        min-width: 0 !important;
    }
    
    .progress-percentage {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        z-index: 1 !important;
    }
}

/* 确保进度条在所有设备上都可见 */
.progress-section,
.progress-item,
.progress-label,
.progress-bar,
.progress-fill,
.progress-percentage {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.progress-item {
    display: flex !important;
}

/* 修复可能的CSS冲突 */
.craft-slides .progress-section,
.craft-slides.active .progress-section {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    overflow: visible !important;
}
