@charset "utf-8";

.container-wrapper {
    display: flex;
    align-items: flex-start; 
    max-width: 1800px;
    margin: 20px auto;
    padding: 20px;
    border-radius: 20px;
    background-image: linear-gradient(0deg, #fbfbfb, #ffffff);
    border: 2px solid #ffffff;
    box-shadow: 0 0px 8px rgb(0 0 0 / 10%);
}

.form-section {
    flex: 2.6; 
}

.image-section {
    display: none; 
    flex: 1; 
    text-align: center; 
}

.img-fluid {
    max-width: 100%;
    height:380px;
}

@media (min-width: 768px) {
    .image-section {
        display: block; 
        margin-right: 20px; 
    }
}

h2.text-center {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.75rem;
    color: #343a40;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #343a40;
}

.form-row {
    display: flex;
    flex-wrap: wrap; 
    justify-content: space-between;
}

.form-group.col-md-6 {
    width: 100%; 
}

@media (min-width: 768px) {
    .form-group.col-md-6 {
        width: 48%; 
    }
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    overflow-y: auto; /* 允许模态框内容溢出时滚动 */

}

.modal-content {
    position: relative; /* 使关闭按钮相对于模态框内容定位 */
    background-color: #fefefe;
    margin: 90px auto;
    padding: 20px;
    border-radius: 10px;
    max-width: 1100px; /* 最大宽度 */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
@media (max-width: 768px) {
    .modal-content {
        margin: 73px auto;
    }
}
.close {
    position: absolute; /* 绝对定位 */
    top:0px; /* 与标题平齐的顶部距离 */
    right: 15px; /* 右侧距离 */
    color: #aaa;
    font-size: 20px;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.ticket-category {
    cursor: pointer;
}

.ticket-box {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
    padding: 15px;
    margin-top: 15px;
    border-radius: 8px; 
    text-align: left; 
    font-size: 14px; 
}

.ticket-box strong {
    display: block;
    margin-bottom: 10px; 
}

.ticket-box ul {
    padding-left: 20px; 
}

.ticket-box li {
    margin-bottom: 8px; 
}

.text-center {
    text-align: center !important;
}

.alert {
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    text-align: center;
    border-radius: .25rem;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

/* 附件上传样式 */
.form-control[type="file"] {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ced4da;
    width: 100%; /* 确保附件上传和表单一样宽 */
}

/* 工单类别样式 */
.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    max-height: 400px; /* 设置最大高度 */
    /* overflow-y: auto;  启用垂直滚动条 */
}

.category-item {
    background-image: linear-gradient(0deg, #ffffff 0%, #f3f5f8 100%);
    box-shadow: 8px 8px 20px 0 rgb(55 99 170 / 4%);
    border: 2px solid #fff;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    height: 50px; /* 固定高度确保一致性 */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: box-shadow 0.3s, transform 0.2s; /* 添加 transform 的过渡效果 */
}

.category-item:active {
    box-shadow: inset 1px 1px 5px rgba(0, 0, 0, 0.1), inset -1px -1px 5px rgba(255, 255, 255, 0.5); /* 更淡的内部阴影 */
    transform: scale(0.95); /* 缩小 */
}

@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr); /* 手机端每行显示两个 */
    }
}

/* 搜索框样式 */
.search-section {
    margin-bottom: 15px; /* 给搜索框底部添加间距 */
}

#categorySearch {
    width: 100%; /* 使搜索框宽度为100% */
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ced4da;
}

button, .btn {
    display: inline-block;
    font-weight: 400;
    color: #ffffff;
    text-align: center;
    vertical-align: middle;
    user-select: none;
    background: linear-gradient(135deg, #165DFF, #0E42D2);
    border: 1px solid transparent;
    padding: .375rem .75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: .25rem;
}

button:hover, .btn-primary:hover {
    background: linear-gradient(135deg, #165DFF, #0E42D2);
    border:#0E42D2;
    color: #fff;
}
.tab-container {
    display: flex;
    width: 100%;
}

.tab-menu {
    flex: 1;
    max-width: 200px;
    background-color: #f8f9fa;
    overflow-y: auto; /* 添加垂直滚动条 */
    max-height: 400px; /* 限制最大高度 */
    border-radius: 15px;
}
/* TAB滚动条样式 */
.tab-menu::-webkit-scrollbar {
    width: 6px; /* 更窄的滚动条宽度 */
}
.tab-menu::-webkit-scrollbar-track {
    background: transparent; /* 滚动条轨道背景透明 */
}
.tab-menu::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2); /* 更淡的滑块颜色 */
    border-radius: 10px; /* 滚动条滑块圆角 */
}
.tab-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.4); /* 悬停时的滑块颜色 */
}
.tab-item {
        padding: 15px;
    cursor: pointer;
    margin-bottom: 5px;
    text-align: center;
    transition: background-color 0.2s;
}
.tab-item.active {
    background: linear-gradient(135deg, #165DFF, #0E42D2);
    border-radius: 10px 0 0 10px;
    color: white;
}
.tab-content {
    flex: 5;
    padding-left: 20px;
    overflow-y: auto; /* 添加垂直滚动条 */
    max-height: 400px; /* 限制最大高度 */
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/*不可选择*/
.disabled {
    background-color: #e9ecef; 
    color: #ff0000; 
    cursor: not-allowed;
     border: 2px solid #c5c5c5;
}
.form-control{
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 18px;
    box-sizing: border-box;
}

.form-control:focus{
    border-color: #66afe9;
    outline: none;
}

textarea.form-control {
    resize: vertical;
}

/*支持*/
        .QR-container {
            position: relative;
            cursor: pointer;
        }
        .QR-popup {
            display: none;
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: #ffffff;
            padding: 30px;
            background-image: linear-gradient(0deg, #fbfbfb, #ffffff);
            border: 2px solid #ffffff;
            box-shadow: 0 0px 8px rgb(0 0 0 / 10%);
            z-index: 1;
            border-radius: 10px;
            max-width: 90%;
            width: 700px;
            overflow: hidden;
        }
        .QR-popup img {
            max-width: 100%;
            height: auto;
        }
        .QRoverlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
        }

    
    .pricing-img {
height: 44px;
    top: 2px;
    position: absolute;
    left: 95px;
}