/* 全局样式 - 转换自各页面的 <style> 标签 */

/* 基础样式 */
body {
    margin: 0;
}

/* 首页样式 */
.img_back {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    background-image: url('../../static/main_text1.png');
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 6;
    background-size: 45% auto;
}

.footer-image {
    background: url('../../static/footer_image1.png') no-repeat;
}

@media (max-width: 900px) {
    .img_back {
        height: 120%;
        background-size: 100% auto;
    }
}

.video_overlay {
    width: 100%;
    height: 100%;
    background-color: rgba(0, 104, 183, 0.3);
    background-image: radial-gradient(circle, rgba(153, 153, 153, 0.35) 1px, transparent 1px);
    background-repeat: repeat;
    background-size: 6px 6px;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 5;
}

.slideInUp {
    transition: width .5s ease-in-out !important;
    width: 230px;
    height: 555px;
    overflow: hidden;
}

.slideInUpHover {
    width: 460px;
    cursor: pointer;
}

.img-quotation {
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.img-quotation img {
    transition: transform 0.5s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.img-quotation:hover img {
    transform: scale(1.1);
}

.get-more-btn:hover {
    background: #454545;
    color: #fff;
}

@keyframes slideInLeft {
    from {
        transform: translateX(-60px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(60px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 文件上传样式 */
.upload-button {
    display: inline-block;
    padding: 8px 16px;
    background-color: #0068b7;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.upload-button:hover {
    background-color: #005a9e;
}

.file-info {
    display: flex;
    align-items: center;
    margin-top: 10px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 4px;
    font-size: 14px;
}

.file-info-text {
    flex: 1;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.remove-file-btn {
    padding: 4px 12px;
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.3s;
}

.remove-file-btn:hover {
    background-color: #c82333;
}

.upload-progress-container {
    width: 100%;
    height: 6px;
    background-color: #e9ecef;
    border-radius: 3px;
    margin-top: 10px;
    overflow: hidden;
}

.upload-progress-bar {
    height: 100%;
    background-color: #28a745;
    width: 0%;
    transition: width 0.3s ease;
}

.upload-error {
    color: #dc3545;
    font-size: 14px;
    margin-top: 8px;
}

/* Toast提示样式 */
.toast {
    position: fixed;
    top: 50px;
    right: 50px;
    padding: 12px 20px;
    border-radius: 4px;
    color: white;
    font-size: 14px;
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.3s, transform 0.3s;
    z-index: 10000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast-info {
    background-color: #17a2b8;
}

.toast-success {
    background-color: #28a745;
}

.toast-error {
    background-color: #dc3545;
}

.toast-warning {
    background-color: #ffc107;
    color: #212529;
}

.slide-in-left {
    animation: slideInLeft 0.8s ease-out forwards;
}

.slide-in-right {
    animation: slideInRight 0.8s ease-out forwards;
}

/* 关于我们页面样式 */
.year-active {
    color: #ae0a29;
}

.culture-item {
    position: relative;
    overflow: hidden;
}

.bg-introduce {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 60px;
    background: rgba(172, 185, 193, 0.85);
    transition: height 0.4s ease;
    z-index: 10;
    overflow: hidden;
}

.culture-item:hover .bg-introduce {
    height: 270px;
}

@media (max-width: 1200px) {
    .bg-introduce {
        height: auto;
        overflow: visible;
        transition: none;
        padding-bottom: 24px;
    }
}

/* 技术中心/通用页面样式 */
.view-text:hover {
    color: #ae0a29;
}

.view-image {
    transition: transform 0.36s ease;
    overflow: hidden;
    will-change: transform;
    transform-origin: center center;
    display: block;
}

.view-image:hover {
    transform: scale(1.1);
}

.tech-card:hover .view-image {
    transform: scale(1.1);
}

.tech-card {
    position: relative;
    overflow: hidden;
}

.tech-overlay {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: rgba(172, 185, 193, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
}

.tech-card:hover .tech-overlay {
    display: flex;
}

.tech-overlay .overlay-content {
    display: flex;
    justify-content: flex-start;
    margin-left: -124px;
    color: #000000;
}

/* 卡片缩放效果 */
.card-zoom {
    transition: transform 0.28s ease, box-shadow 0.28s ease;
    will-change: transform;
}

.card-zoom:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}
/* 设备详情 */
.view-text:hover {
    color: #ae0a29;
}

.view-image {
    transition: 0.36s ease;
    overflow: hidden;
}

.view-image:hover {
    transform: scale(1.1);
}

.tech-card:hover .view-image {
    transform: scale(1.1);
}

.tech-card {
    position: relative;
    overflow: hidden;
}

.tech-overlay {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: rgba(172, 185, 193, 0.85);
    background-image: radial-gradient(rgba(255, 255, 255, 0.25) 1px, transparent 1px);
    background-size: 4px 4px;
    display: none;
    align-items: center;
    justify-content: flex-start;
}

.tech-card:hover .tech-overlay {
    display: flex;
}

.tech-overlay .overlay-content {
    display: flex;
    width: auto;
    height: auto;
    padding-left: 52px;
}

.swiper-wrap {
    position: relative;
    margin-left: 30px;
}

.detail-swiper {
    width: 100%;
}

.swiper-button-prev,
.swiper-button-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none !important;
    background-image: none !important;
    box-shadow: none !important;
    color: #333;
    font-size: 42px;
}

.swiper-button-prev::after,
.swiper-button-next::after {
    content: none;
}

.swiper-button-prev {
    left: -20px;
}

.swiper-button-next {
    right: -40px;
}

.swiper-pagination-bullet {
    width: 30px;
    height: 4px;
    border-radius: 2px;
    background: #ccc;
    opacity: 1;
    transition: all 0.3s;
}

.swiper-pagination-bullet-active {
    background: #AD0024;
    width: 40px;
}

.swiper-pagination {
    position: static !important;
    margin-top: 15px;
    text-align: center;
}


/* 时间戳样式 */
#endtime {
    font-size: 12px;
    color: #a0a0a0;
}

/* 报价系统特殊样式 */
#eicon {
    font-size: 24px;
}

/* Alpine.js cloak */
[x-cloak] {
    display: none !important;
}

/* 新闻列表文本截断 */
.wrapline {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 60px;
}

/* 设备清单页面样式 */
#time {
    font-size: 12px;
    color: #a3afb7;
    margin-top: 5px;
}

.line-2-ellipsis {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    overflow-wrap: anywhere;
    word-break: break-all;
}

/* 自定义下拉选择框 */
.custom-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 26px;
}

/* 职位列表悬停效果 */
.job-item:hover .job-title,
.job-item:hover .job-arrow {
    color: #AD0024;
}

/* 移动端下拉选择框样式 */
@media (max-width: 900px) {
    select option {
        font-size: 12px;
        margin: 20px;
    }
}

/* Swiper 包装器样式 */
.swiper-wrap {
    position: relative;
    margin-left: 30px;
}

.detail-swiper {
    width: 100%;
}

.swiper-button-prev,
.swiper-button-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none !important;
    background-image: none !important;
    box-shadow: none !important;
    color: #333;
    font-size: 42px;
}

.swiper-button-prev::after,
.swiper-button-next::after {
    content: none;
}

.swiper-button-prev {
    left: -40px;
}

.swiper-button-next {
    right: -40px;
}

.swiper-pagination-bullet {
    width: 30px;
    height: 4px;
    border-radius: 2px;
    background: #ccc;
    opacity: 1;
    transition: all 0.3s;
}

.swiper-pagination-bullet-active {
    background: #ae0a29;
    width: 40px;
}

.swiper-pagination {
    position: static !important;
    margin-top: 15px;
    text-align: center;
}

/* 客户展示页面 - Lightbox */
.lightbox {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-img {
    max-width: 92vw;
    max-height: 92vh;
    transition: transform .2s ease;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    z-index: 10000;
}
