@charset "UTF-8";
/* 面包屑导航 */
.breadcrumb {
    padding: 15px 0;
    background-color: #f8f9fa;
    border-bottom: 1px solid #eaeaea;
    margin-bottom: 20px;
}

.breadcrumb .container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: #2b97f2;
    text-decoration: none;
    font-size: 14px;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    margin: 0 8px;
    color: #999;
    font-size: 14px;
}

.breadcrumb .current {
    color: #666;
    font-size: 14px;
}

/* 页面标题 */
.page-title {
    font-size: 20px;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f9f0;
    font-weight: 700;
}

/* 搜索区域 */
.search-section {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

.search-title {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

.search-form {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.search-input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    min-width: 0; /* 防止flex item溢出 */
}

.search-input:focus {
    outline: none;
    border-color: #2b97f2;
    box-shadow: 0 0 0 2px rgba(7, 193, 96, 0.1);
}

.search-btn {
    background-color: #2b97f2;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    white-space: nowrap;
}

.search-btn:hover {
    background-color: #0f7cd5;
}

.search-hint {
    color: #666;
    font-size: 13px;
    line-height: 1.5;
}

.search-hint i {
    color: #2b97f2;
    margin-right: 5px;
}

/* 工单列表区域 */
.ticket-list-section {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

.section-title {
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
}

.ticket-table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.ticket-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px; /* 保证表格最小宽度 */
}

.ticket-table th {
    background-color: #f8f9fa;
    padding: 12px 10px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #eee;
    font-size: 13px;
}

.ticket-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #eee;
    vertical-align: top;
    font-size: 13px;
}

.ticket-table tr:hover {
    background-color: #f9f9f9;
}

.ticket-nickname {
    font-weight: 600;
    color: #333;
}

.ticket-email {
    color: #666;
    word-break: break-all;
}

.ticket-order-id {
    font-family: monospace;
    color: #2b97f2;
    font-weight: 500;
}

.ticket-content {
    color: #666;
    line-height: 1.4;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.ticket-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.status-pending {
    background-color: #fff3e0;
    color: #ff9800;
}

.status-processing {
    background-color: #e3f2fd;
    color: #2196f3;
}

.status-resolved {
    background-color: #f0f9f0;
    color: #2b97f2;
}

.status-closed {
    background-color: #f5f5f5;
    color: #666;
}

.ticket-date {
    color: #999;
    font-size: 12px;
    white-space: nowrap;
}

.view-ticket-btn {
    background-color: #2b97f2;
    color: white;
    border: none;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    white-space: nowrap;
}

.view-ticket-btn:hover {
    background-color: #0f7cd5;
}

.no-tickets {
    text-align: center;
    padding: 30px 15px;
    color: #666;
}

.no-tickets i {
    font-size: 40px;
    color: #ddd;
    margin-bottom: 15px;
}

.no-tickets h3 {
    font-size: 16px;
    margin-bottom: 10px;
}

.no-tickets p {
    font-size: 13px;
}

/* 提交工单按钮区域 */
.submit-ticket-btn-section {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-bottom: 20px;
    text-align: center;
}

.submit-ticket-btn {
    background-color: #2b97f2;
    color: white;
    border: none;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 300px;
}

.submit-ticket-btn:hover {
    background-color: #0f7cd5;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(7, 193, 96, 0.3);
}

.submit-ticket-btn i {
    margin-right: 10px;
    font-size: 18px;
}

/* 提交工单表单区域 */
.submit-ticket-form-section {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-bottom: 20px;
    display: none; /* 默认隐藏，点击按钮后显示 */
}

.ticket-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

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

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.form-label .required {
    color: #e53935;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: #2b97f2;
    box-shadow: 0 0 0 2px rgba(7, 193, 96, 0.1);
}

.form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    min-height: 120px;
    resize: vertical;
    transition: all 0.3s;
}

.form-textarea:focus {
    outline: none;
    border-color: #2b97f2;
    box-shadow: 0 0 0 2px rgba(7, 193, 96, 0.1);
}

.form-hint {
    color: #666;
    font-size: 12px;
    margin-top: 5px;
    line-height: 1.4;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.submit-form-btn {
    background-color: #2b97f2;
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.submit-form-btn:hover {
    background-color: #0f7cd5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(7, 193, 96, 0.3);
}

.submit-form-btn i {
    margin-right: 8px;
}

.cancel-form-btn {
    background-color: #f5f5f5;
    color: #666;
    border: 1px solid #ddd;
    padding: 14px 20px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    flex: 1;
}

.cancel-form-btn:hover {
    background-color: #e9ecef;
}

/* 工单详情模态框 */
.ticket-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow-y: auto;
}

.ticket-modal-content {
    background-color: white;
    margin: 20px auto;
    max-width: 95%;
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    padding: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background-color: white;
    z-index: 1;
}

.modal-title {
    font-size: 18px;
    color: #333;
    font-weight: 600;
}

.close-modal {
    background: none;
    border: none;
    color: #999;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-body {
    padding: 15px;
}

.ticket-detail-item {
    margin-bottom: 15px;
}

.ticket-detail-label {
    color: #999;
    font-size: 12px;
    margin-bottom: 5px;
}

.ticket-detail-value {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    word-break: break-word;
}

.ticket-content-full {
    padding: 12px;
    background-color: #f9f9f9;
    border-radius: 6px;
    border-left: 4px solid #2b97f2;
    white-space: pre-wrap;
    line-height: 1.6;
    font-size: 14px;
}

.modal-footer {
    padding: 15px;
    border-top: 1px solid #eee;
    text-align: center;
}

.reply-btn {
    background-color: #2b97f2;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
    max-width: 200px;
}

.reply-btn:hover {
    background-color: #0f7cd5;
}


/* 手机端适配 */
@media (max-width: 768px) {
    /* 调整面包屑导航 */
    .breadcrumb {
        padding: 10px 0;
        margin-bottom: 15px;
    }
    
    /* 调整搜索区域 */
    .search-section {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .search-title {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .search-form {
        flex-direction: column;
        gap: 10px;
    }
    
    .search-btn {
        width: 100%;
    }
    
    /* 调整工单列表区域 */
    .ticket-list-section {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .section-title {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .ticket-table th,
    .ticket-table td {
        padding: 10px 8px;
        font-size: 12px;
    }
    
    .ticket-content {
        max-width: 150px;
        -webkit-line-clamp: 1;
    }
    
    /* 调整按钮区域 */
    .submit-ticket-btn-section {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .submit-ticket-btn {
        padding: 12px 20px;
        font-size: 15px;
    }
    
    /* 调整表单区域 */
    .submit-ticket-form-section {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .submit-form-btn,
    .cancel-form-btn {
        width: 100%;
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .search-hint {
        font-size: 12px;
    }
    
    .ticket-table {
        min-width: 550px;
    }
    
    .ticket-status {
        font-size: 10px;
        padding: 3px 6px;
    }
    
    .view-ticket-btn {
        padding: 5px 8px;
        font-size: 11px;
    }
    
    .modal-body {
        padding: 12px;
    }
    
    .ticket-content-full {
        padding: 10px;
        font-size: 13px;
    }
}

@media (max-width: 360px) {
    .page-title {
        font-size: 16px;
    }
    
    .search-title,
    .section-title {
        font-size: 15px;
    }
}