/* 工单系统样式 */
.ticket-container {
	margin: 0 auto;
}
.ticket-title {
	font-size: 1.5rem;
	font-weight: 700;
	margin-bottom: 1.5rem;
	color: #0f172a;
	display: flex;
	align-items: center;
	gap: 10px;
}
.ticket-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2rem;
}
@media (max-width: 768px) {
	.ticket-grid {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}
}
/* 提交工单表单 */
.submit-form {
	background: #f8fafc;
	border-radius: 24px;
	padding: 1.5rem;
}
.form-title {
	font-size: 1.1rem;
	font-weight: 700;
	margin-bottom: 1.2rem;
	display: flex;
	align-items: center;
	gap: 8px;
	color: #0f172a;
}
.form-group {
	margin-bottom: 1.2rem;
}
.form-label {
	display: block;
	font-size: 0.85rem;
	font-weight: 500;
	margin-bottom: 0.5rem;
	color: #334155;
}
.form-label .required {
	color: #ef4444;
}
.form-input, .form-textarea {
	width: 100%;
	padding: 0.8rem 1rem;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	font-size: 0.9rem;
	font-family: inherit;
	transition: all 0.2s;
	background: white;
}
.form-input:focus, .form-textarea:focus {
	outline: none;
	border-color: var(--theme-color);
	box-shadow: 0 0 0 2px var(--theme-glow);
}
.form-textarea {
	resize: vertical;
	min-height: 100px;
}
.submit-btn {
	background: var(--theme-color);
	border: none;
	padding: 0.9rem 1.5rem;
	border-radius: 50px;
	font-weight: 600;
	font-size: 0.95rem;
	cursor: pointer;
	transition: 0.2s;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	justify-content: center;
}
.submit-btn:hover {
	background: var(--theme-dark);
	transform: translateY(-1px);
}
/* 工单列表 */
.ticket-list {
	background: #f8fafc;
	border-radius: 24px;
	padding: 1.5rem;
}
.list-title {
	font-size: 1.1rem;
	font-weight: 700;
	margin-bottom: 1rem;
	display: flex;
	align-items: center;
	gap: 8px;
}
.ticket-items {
	overflow-y: auto;
}
.ticket-card {
	background: white;
	border-radius: 16px;
	padding: 1rem;
	margin-bottom: 0.8rem;
	border: 1px solid #eef2ff;
	transition: all 0.2s;
}
.ticket-card:hover {
	border-color: var(--theme-color);
	box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.ticket-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 0.5rem;
	flex-wrap: wrap;
	gap: 0.5rem;
}
.ticket-nickname {
	font-weight: 700;
	color: #0f172a;
	display: flex;
	align-items: center;
	gap: 6px;
}
.ticket-status {
	padding: 0.2rem 0.6rem;
	border-radius: 30px;
	font-size: 0.7rem;
	font-weight: 600;
}
.status-pending {
	background: #fee2e2;
	color: #b91c1c;
}
.status-processing {
	background: #fef3c7;
	color: #b45309;
}
.status-resolved {
	background: #dcfce7;
	color: #15803d;
}
.ticket-email {
	font-size: 0.7rem;
	color: #64748b;
	margin-bottom: 0.5rem;
	display: flex;
	align-items: center;
	gap: 4px;
}
.ticket-content {
	font-size: 0.85rem;
	color: #475569;
	line-height: 1.5;
	margin-top: 0.5rem;
	padding-top: 0.5rem;
	border-top: 1px solid #f1f5f9;
}
.ticket-time {
	font-size: 0.65rem;
	color: #94a3b8;
	margin-top: 0.5rem;
	display: flex;
	justify-content: flex-end;
}
/* 工单详情模态框*/
.modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0,0,0,0.5);
	z-index: 1000;
	justify-content: center;
	align-items: center;
	padding: 1rem;
}
.modal.active {
	display: flex;
}
.modal-content {
	background: white;
	border-radius: 28px;
	max-width: 500px;
	width: 100%;
	max-height: 80vh;
	overflow-y: auto;
	padding: 1.5rem;
}
.modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1rem;
	padding-bottom: 0.5rem;
	border-bottom: 1px solid #eef2ff;
}
.modal-title {
	font-weight: 700;
	font-size: 1.2rem;
}
.modal-close {
	background: none;
	border: none;
	font-size: 1.2rem;
	cursor: pointer;
	color: #94a3b8;
}
.modal-body {
	margin-bottom: 1rem;
}
.modal-row {
	margin-bottom: 1rem;
}
.modal-label {
	font-size: 0.75rem;
	color: #64748b;
	margin-bottom: 0.25rem;
}
.modal-value {
	font-weight: 500;
}
.reply-area {
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px solid #eef2ff;
}
.reply-text {
	background: #f8fafc;
	padding: 0.8rem;
	border-radius: 12px;
	font-size: 0.85rem;
	color: #334155;
}
/* 加载提示样式 */
.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
}
.loading-spinner {
    background: white;
    padding: 1.5rem 2rem;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 20px 35px rgba(0,0,0,0.2);
}
.loading-spinner i {
    font-size: 2.5rem;
    color: var(--theme-color, #29f0e9);
}
/* 成功/错误提示 */
.toast-message {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-size: 0.85rem;
    z-index: 10001;
    display: none;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    white-space: nowrap;
}
.toast-message.success {
    background: #10b981;
}
.toast-message.error {
    background: #ef4444;
}
@media (max-width: 640px) {
    .toast-message {
        white-space: normal;
        max-width: 90%;
        text-align: center;
    }
}
/* 搜索框样式 */
.search-box {
    margin-bottom: 1rem;
    display: flex;
    gap: 0.5rem;
}
.search-input {
    flex: 1;
    padding: 0.6rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 40px;
    font-size: 0.85rem;
    outline: none;
    transition: all 0.2s;
}
.search-input:focus {
    border-color: var(--theme-color);
    box-shadow: 0 0 0 2px var(--theme-glow);
}
.search-btn {
    background: var(--theme-color);
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 40px;
    font-weight: 500;
    color: #0f172a;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}
.search-btn:hover {
    background: var(--theme-dark);
    transform: translateY(-1px);
}
.clear-search {
    background: #f1f5f9;
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 40px;
    font-size: 0.8rem;
    cursor: pointer;
    color: #64748b;
    transition: all 0.2s;
}
.clear-search:hover {
    background: #e2e8f0;
}
.search-result-info {
    font-size: 0.7rem;
    color: #64748b;
    margin-bottom: 0.8rem;
    display: none;
}
.no-result {
    text-align: center;
    padding: 2rem;
    color: #94a3b8;
}
.ticket-card.hidden {
    display: none;
}