/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 引入ALKATIP Tor Tom字体 */
@font-face {
    font-family: 'ALKATIP Tor Tom';
    src: url('fonts/ALKATIP Tor Tom.TTF') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
}

/* 快建回复系统容器 */
.quick-reply-container {
    min-width: 50%;
    max-width: 100%;
    width: 50%;
    height: 100vh;
    background-color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    overflow-y: auto;
    resize: both;
    position: relative;
    margin: 0 auto;
}

/* 头部样式 */
.header {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header h1 {
    font-size: 24px;
    color: #333;
}

/* 用户信息样式 */
.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-info span {
    color: #2c3e50;
    font-size: 16px;
    font-weight: bold;
    text-shadow: 
        1px 1px 0 #fff,
        2px 2px 0 rgba(0,0,0,0.1),
        3px 3px 0 rgba(0,0,0,0.1),
        4px 4px 8px rgba(0,0,0,0.3);
    letter-spacing: 1px;
    white-space: nowrap;
    text-align: center;
    vertical-align: middle;
}

/* 分类选择器样式 */
.category-selector {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-selector label {
    font-weight: bold;
    color: #555;
}

.category-dropdown {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.category-dropdown option {
    font-size: 21px;
}

/* 快建回复列表样式 */
.reply-list {
    margin-bottom: 20px;
}

.reply-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.reply-header h2 {
    font-size: 18px;
    color: #333;
    margin: 0;
}

.reply-items {
    margin-bottom: 20px;
}

.reply-item {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 10px;
    position: relative;
}

.reply-item .reply-text {
    margin-bottom: 10px;
    line-height: 1.4;
    font-family: 'ALKATIP Tor Tom', Arial, sans-serif;
    unicode-bidi: plaintext;
}

.reply-item .reply-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
}

.reply-item .reply-actions .right-actions {
    display: flex;
    gap: 10px;
}

/* 按钮样式 */
.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.btn-primary {
    background-color: #4CAF50;
    color: white;
}

.btn-primary:hover {
    background-color: #45a049;
}

.btn-secondary {
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
}

.btn-secondary:hover {
    background-color: #e0e0e0;
}

.btn-danger {
    background-color: #c75b5b;
    color: white;
}

.btn-danger:hover {
    background-color: #b54a4a;
}

/* 复制按钮样式 - 绿色 */
.btn-copy {
    background-color: #4CAF50;
    color: white;
    border: none;
}

.btn-copy:hover {
    background-color: #45a049;
}

/* 飞机图标 */
.btn-copy::before {
    content: "✈";
    margin-right: 5px;
    font-size: 14px;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 432px;
    border-radius: 4px;
    position: relative;
}

.modal-content h2 {
    margin-bottom: 20px;
    color: #333;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: black;
}

/* 表单样式 */
.form-group {
    margin-bottom: 15px;
}

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

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-textarea {
    resize: vertical;
    min-height: 200px;
    font-family: 'ALKATIP Tor Tom', Arial, sans-serif;
    unicode-bidi: plaintext;
}

.form-actions {
    margin-top: 20px;
    text-align: right;
}

/* 提示框样式 */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px;
    border-radius: 4px;
    color: white;
    font-size: 14px;
    z-index: 10000;
    display: none;
    animation: fadeInOut 3s ease-in-out;
}

.toast.success {
    background-color: #4CAF50;
}

.toast.error {
    background-color: #f44336;
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translateY(-20px); }
    10% { opacity: 1; transform: translateY(0); }
    90% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-20px); }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .quick-reply-container {
        width: 100%;
        height: 100vh;
    }
    
    .modal-content {
        width: 90%;
        margin: 20% auto;
    }
}