body { 
    font-family: 'Noto Sans', sans-serif;
    margin: 0;
}

/* 上传中指示器样式 */
.uploading-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: #f8f9fa;
    border-radius: 4px;
    font-size: 10px;
    color: #6c757d;
}

/* 自定义弹窗样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    border-radius: 5px;
    width: 80%;
    max-width: 500px;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    animation: modalopen 0.4s;
}

@keyframes modalopen {
    from {opacity: 0; transform: translateY(-60px);}
    to {opacity: 1; transform: translateY(0);}
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 15px;
    top: 0;
}

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

.modal-button {
    background-color: #007740;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 20px;
}

.modal-button:hover {
    background-color: #00552e;
}

/* 导航栏 */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background-color: #000;
    z-index: 999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    font-size: 16px;
    font-weight: bold;
}

.nav-right {
    padding: 0 20px;
}

.container {
    margin: 0 auto;
    max-width: 1200px;
    padding-top: 80px;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 40px;
}

.tab {
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.tab-item {
    cursor: pointer;
    font-weight: bold;
}

.tab-item.active {
    color: #007740;
}

.tab-item:hover {
    color: #007740;
}

.tab-content{
    display: none;
}

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

/* 三列布局样式 */
.form-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 10px;
    align-items: flex-start;
}

.form-group {
    flex: 1 1 calc(33.333% - 14px);
    min-width: 250px;
    margin-bottom: 0px;
}

.upload-container{
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 40px;
}
.upload-group{
    flex: 1 1 calc(33.333% - 14px);
    min-width: 250px;
    margin-bottom: 0px;
}

.form-label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-size: 14px;
    font-weight: 300;
    text-align: left;
    line-height: 1.5;
    word-wrap: break-word;
    word-break: break-all;
    white-space: normal;
    overflow-wrap: break-word;
}

.iss_form_box {
    margin: 0 auto;
    padding: 20px;
    border-radius: 5px;
    margin-top: 40px;
    color: #333;
    font-weight: bold;
}

.iss_form_box input,
.iss_form_box select,
.iss_form_box textarea {
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 0px;
    padding: 10px;
    font-size: 16px;
    box-sizing: border-box;
}

.iss_form_box input[type="submit"] {
    background-color: rgba(25, 135, 84, 1);
    color: #fff;
    border: none;
    cursor: pointer;
    width: 100%;
}

.iss_form_box input[type="file"] {
    font-size: 12px;
    height: 60px;
    border: none;
    line-height: 20px;
}

.iss_form_box select {
    width: 100%;
    height: 40px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 20px;
    padding: 0 10px;
    font-size: 16px;
    line-height: 40px;
    background-color: #fff;
}

.iss_form_box .form-title {
    width: 100%;
    text-align: left;
    font-size: 20px;
    margin-bottom: 15px;
}

.iss_form_box p {
    margin: 5px 0;
    font-size: 12px;
    color: #333;
    font-weight: 300;
}

.field-hint {
    color: #666;
    font-style: italic;
    margin-top: 0;
    margin-bottom: 15px;
}

.iss-mssg {
    padding: 20px;
    text-align: center;
    background-color: #f3f3f3;
}

.iss-mssg p {
    margin: 0 0 5px 0 !important;
    font-size: 12px;
    color: #333;
}

.image-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.image-container {
    position: relative;
    display: inline-block;
    width: 60px;
}

.preview-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.remove-image {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 16px;
    height: 16px;
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.remove-image:hover {
    background-color: #bd2130;
}

.required-indicator {
    color: red;
    margin-left: 5px;
}

.error-message {
    color: #ff0000 !important;
    font-size: 12px !important;
    margin: 5px 0;
}

/* 维修进度查询区域样式 */
.progress-query-layout {
    flex-wrap: nowrap;
    align-items: flex-end;
}

.progress-query-group {
    flex: 1 1 auto;
    min-width: 250px;
}

/* 文件上传区域样式 */
.file-input-hidden {
    display: none;
}

.file-upload-container {
    border: 2px dashed #ccc;
    border-radius: 5px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.3s ease;
    margin-bottom: 10px;
}

.file-upload-container:hover {
    border-color: #007740;
}

.file-upload-container.drag-over {
    border-color: #007740;
    background-color: #f8f9fa;
}

.file-upload-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.file-upload-text {
    margin-bottom: 10px;
    font-size: 14px;
    color: #666;
}

.file-upload-button {
    background-color: #007740;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    display: inline-block;
    margin-bottom: 10px;
    font-size: 14px;
}

.file-upload-rules {
    font-size: 12px;
    color: #999;
}

.upload-limit-info {
    text-align: left;
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
}

.char-count {
    text-align: right;
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

/* 下拉选择框样式 */
.custom-select {
    position: relative;
    width: 100%;
}

.select-header {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
    background-color: #fff;
    position: relative;
}

.select-header::after {
    content: "▼";
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #999;
}

.select-header.select-open::after {
    content: "▲";
}

.select-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    border: 1px solid #ccc;
    border-top: none;
    border-radius: 0 0 5px 5px;
    background-color: #fff;
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
    display: none;
}

.select-option {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.select-option:hover,
.select-option.selected {
    background-color: #f0f0f0;
}

.select-option:last-child {
    border-bottom: none;
}

.select-search {
    width: calc(100% - 20px);
    margin: 0px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.select-option[data-value=""] {
    color: #999;
    font-style: italic;
}

/* 时间线样式 */
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

/* 横向时间线样式 */
.horizontal-timeline {
    display: flex;
    align-items: center;
    justify-content: center;
    /* 防止换行 */
    flex-wrap: nowrap;
    gap: 10px;
    margin: 30px 0;
    padding: 20px 0;
    /* 添加横向滚动以防内容溢出 */
    overflow-x: auto;
}

.timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 80px;
    opacity: 0.5;
    transition: opacity 0.3s ease;
    /* 防止换行 */
    white-space: nowrap;
}

.timeline-step.active {
    opacity: 1;
}

.timeline-step.current .timeline-step-icon {
    background-color: #007740;
    color: white;
    border-color: #007740;
}

/* 缩小图标尺寸 */
.timeline-step-icon {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #f8f9fa;
    border: 2px solid #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    font-size: 12px;
}

.timeline-step-label {
    text-align: center;
    font-size: 12px;
    color: #666;
    transition: color 0.3s ease;
    /* 限制文本行数 */
    overflow: hidden;
    text-overflow: ellipsis;
}

.timeline-step.active .timeline-step-label {
    color: #333;
}

.timeline-step-connector {
    height: 2px;
    background-color: #ccc;
    flex: 1;
    max-width: 30px;
    transition: background-color 0.3s ease;
}

.timeline-step.active + .timeline-step-connector {
    background-color: #007740;
}

/* 状态信息样式 */
.status-info {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-left: 4px solid #007740;
}

.status-info p {
    margin: 10px 0;
    font-size: 16px;
    color: #333;
}

.status-info strong {
    color: #007740;
}

/* .timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: #ddd;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
} */

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: #007740;
    border: 4px solid #fff;
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(even)::after {
    left: -10px;
}

.timeline-content {
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.timeline-date {
    font-weight: bold;
    color: #007740;
    margin-bottom: 5px;
}

.timeline-title {
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 18px;
}

.timeline-description {
    color: #666;
    line-height: 1.5;
}

.timeline-item:nth-child(even) .timeline-content {
    text-align: left;
}

.no-progress-result {
    text-align: center;
    padding: 40px;
    color: #666;
    font-style: italic;
}

/* 查询按钮样式 */
.query-button {
    background-color: rgba(25, 135, 84, 1);
    color: #fff;
    border: none;
    cursor: pointer;
    width: 100%;
    height: 40px;
    border-radius: 5px;
    font-size: 16px;
}

.query-button:hover {
    background-color: rgba(20, 108, 67, 1);
}

.query-button:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

/* 隐藏类 */
.hidden {
    display: none !important;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .container {
        max-width: 100%;
    }
    
    .form-group {
        flex: 1 1 calc(50% - 10px);
    }
    
    .upload-group {
        flex: 1 1 calc(50% - 10px);
    }
    
    /* 确保维修进度查询区域始终保持在同一行 */
    .progress-query-layout {
        flex-wrap: nowrap;
    }
    
    .progress-query-group {
        flex: 1 1 auto;
        min-width: 150px;
    }
    
    .progress-button-group {
        flex: 0 0 auto;
    }
    
    .progress-button-group .query-button {
        width: auto;
        min-width: 80px;
        padding: 0 15px;
    }
    
    .horizontal-timeline {
        gap: 5px;
        padding: 15px 0;
    }
    
    .timeline-step {
        min-width: 70px;
    }
    
    .timeline-step-label {
        font-size: 10px;
    }
    
    .timeline-step-icon {
        width: 10px;
        height: 10px;
        font-size: 10px;
    }
    
    .timeline-step-connector {
        max-width: 20px;
    }
    
    .status-info {
        padding: 15px;
    }
    
    .status-info p {
        font-size: 14px;
        margin: 8px 0;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0px;
        padding-top: 80px;
    }

    .form-container {
        gap: 0px;
    }
    
    .form-group {
        flex: 1 1 100%;
        margin-bottom: 10px;
    }
    
    .upload-group {
        flex: 1 1 100%;
        min-width: 100%;
    }
    
    .timeline::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 10px;
        padding-top: 5px;
        padding-bottom: 5px;
    }
    
    .timeline-item:nth-child(even) {
        left: 0;
    }
    
    .timeline-item::after {
        left: 21px;
    }
    
    .timeline-item:nth-child(even)::after {
        left: 21px;
    }
    
    .tab {
        gap: 10px;
    }
    
    .query-button {
        height: 36px;
        font-size: 14px;
        padding: 6px;
    }
    
    .file-upload-container {
        padding: 10px 5px;
    }
    
    .file-upload-icon {
        font-size: 20px;
    }
    
    .file-upload-text {
        font-size: 10px;
        margin-bottom: 5px;
    }
    
    .file-upload-button {
        padding: 3px 8px;
        font-size: 10px;
    }
    
    .file-upload-rules {
        font-size: 8px;
    }
    
    .image-container {
        width: 50px;
    }
    
    .preview-image {
        width: 50px;
        height: 50px;
    }
    
    .remove-image {
        width: 14px;
        height: 14px;
        font-size: 10px;
        top: -5px;
        right: -5px;
    }
    
    .uploading-indicator {
        width: 50px;
        height: 50px;
        font-size: 8px;
    }
    
    /* 即使在小屏幕上也保持维修进度查询区域在同一行 */
    .progress-query-layout {
        flex-wrap: nowrap;
        gap: 5px;
    }
    
    .progress-query-group {
        flex: 1 1 auto;
        min-width: 100px;
        margin-bottom: 0;
    }
    
    .progress-button-group {
        flex: 0 0 auto;
    }
    
    .progress-button-group .query-button {
        width: auto;
        min-width: 60px;
        padding: 0 8px;
        font-size: 12px;
    }
    
    .iss_form_box {
        padding: 10px;
        margin-top: 20px;
    }
    
    .iss_form_box .form-title {
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    .iss_form_box input,
    .iss_form_box select,
    .iss_form_box textarea {
        padding: 8px;
        font-size: 14px;
        margin-bottom: 10px;
    }
    
    .field-hint {
        margin-bottom: 10px;
    }
    
    .status-item {
        padding: 10px;
        margin-bottom: 10px;
    }
    
    .status-content {
        padding: 5px;
    }
    
    .status-title {
        font-size: 16px;
        margin-bottom: 5px;
    }
    
    .status-date {
        font-size: 12px;
        margin-bottom: 5px;
    }
    
    .status-description {
        font-size: 14px;
    }
    
    .horizontal-timeline {
        gap: 5px;
        padding: 10px 0;
    }
    
    .timeline-step {
        min-width: 60px;
    }
    
    .timeline-step-label {
        font-size: 8px;
    }
    
    .timeline-step-icon {
        width: 10px;
        height: 10px;
        font-size: 8px;
    }
    
    .timeline-step-connector {
        max-width: 15px;
    }
    
    .status-info {
        padding: 15px;
        margin-top: 15px;
    }
    
    .status-info p {
        font-size: 14px;
        margin: 6px 0;
    }
}

#progress-timeline{
    padding: 10px;
}

/* 维修状态展示样式 */
.status-item {
    position: relative;
    padding: 20px;
    margin-bottom: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-left: 4px solid #007740;
}

.status-content {
    padding: 10px;
}

.status-title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.status-date {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.status-description {
    font-size: 16px;
    color: #555;
    line-height: 1.5;
}

/* 地址信息和联系地址表单样式 */
.address-info {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-left: 4px solid #007740;
}

.address-info h3,
.concat-address-form h3 {
    color: #007740;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
}

.address-info p {
    margin: 8px 0;
    font-size: 16px;
    color: #333;
}

.address-info strong {
    color: #007740;
}

.concat-address-form {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 20px;
    margin-top: 0px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid #eee;
}

.concat-address-form .form-group {
    flex: 1 1 calc(33.333% - 14px);
    min-width: 250px;
    margin-bottom: 15px;
}

.concat-address-form .form-group label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-size: 14px;
    font-weight: 500;
}

.concat-address-form .form-group input {
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    font-size: 16px;
    box-sizing: border-box;
}

/* 只读输入框样式 */
.concat-address-form .form-group input[readonly] {
    background-color: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
    font-style: italic;
}

.concat-address-form .form-group input[type="submit"] {
    background-color: rgba(25, 135, 84, 1);
    color: #fff;
    border: none;
    cursor: pointer;
    width: auto;
    padding: 10px 20px;
    font-size: 16px;
    margin-top: 10px;
}

.concat-address-form .form-group input[type="submit"]:hover {
    background-color: rgba(20, 108, 67, 1);
}

@media (max-width: 1024px) {
    .concat-address-form .form-group {
        flex: 1 1 calc(50% - 10px);
    }
}

@media (max-width: 768px) {
    .address-info {
        padding: 15px;
        margin-top: 15px;
    }
    
    .address-info h3,
    .concat-address-form h3 {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .address-info p {
        font-size: 14px;
        margin: 6px 0;
    }
    
    .concat-address-form {
        padding: 15px;
        margin-top: 15px;
    }
    
    .concat-address-form .form-group {
        flex: 1 1 100%;
        min-width: 100%;
        margin-bottom: 12px;
    }
    
    .concat-address-form .form-group label {
        font-size: 13px;
    }
    
    .concat-address-form .form-group input {
        padding: 8px;
        font-size: 14px;
    }
    
    .concat-address-form .form-group input[readonly] {
        padding: 8px;
        font-size: 14px;
    }
    
    .concat-address-form .form-group input[type="submit"] {
        padding: 8px 16px;
        font-size: 14px;
        margin-top: 8px;
    }
}

/* 两列信息布局样式 */
.info-layout {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.info-column {
    flex: 1;
}

.form-column {
    flex: 1;
}

.info-section {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.section-header {
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #dee2e6;
    background-color: #fff;
    border-radius: 5px 5px 0 0;
}

.section-header h3 {
    margin: 0;
    color: #007740;
}

.toggle-icon {
    font-size: 12px;
    color: #6c757d;
    transition: transform 0.3s ease;
}

.section-content {
    padding: 20px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .info-layout {
        flex-direction: column;
    }
    
    .info-column {
        width: 100%;
    }
    
    .form-column {
        width: 100%;
    }
    
    .order-info,
    .address-info,
    .info-section {
        padding: 15px;
    }
    
    .order-info p,
    .address-info p,
    .section-content p {
        font-size: 13px;
        margin: 8px 0;
    }
    
    .order-info strong,
    .address-info strong,
    .section-content strong {
        width: 100px;
    }
    
    .section-header {
        padding: 12px 15px;
    }
}

/* 订单信息和地址信息样式 */
.order-info,
.address-info {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.order-info h3,
.address-info h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #495057;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 10px;
}

.order-info p,
.address-info p {
    margin: 10px 0;
    font-size: 14px;
    color: #495057;
}

.order-info strong,
.address-info strong {
    display: inline-block;
    width: 120px;
    color: #212529;
}

/* 附件展示区域样式 */
.attachments-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.attachment-item {
    position: relative;
    display: inline-block;
}

.attachment-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.attachment-image:hover {
    transform: scale(1.05);
}

/* 只读输入框样式 */
.concat-address-form .form-group input[readonly] {
    background-color: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
    font-style: italic;
}

.concat-address-form .form-group input[type="submit"] {
    background-color: rgba(25, 135, 84, 1);
    color: #fff;
    border: none;
    cursor: pointer;
    width: 100%;
    padding: 10px 20px;
    font-size: 16px;
    margin-top: 10px;
}

.concat-address-form .form-group input[type="submit"]:hover {
    background-color: rgba(20, 108, 67, 1);
}
