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

body {
    font-family: 'Consolas', 'Monaco', monospace;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
.header {
    background-color: #2c3e50;
    color: #fff;
    padding: 20px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header h1 {
    text-align: center;
    margin-bottom: 15px;
}

.nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.nav a {
    color: #fff;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 3px;
    transition: background-color 0.3s;
}

.nav a:hover {
    background-color: rgba(255,255,255,0.1);
}

#user-menu {
    position: relative;
}

#user-info {
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 3px;
    transition: background-color 0.3s;
}

#user-info:hover {
    background-color: rgba(255,255,255,0.1);
}

.dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #fff;
    color: #333;
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    min-width: 120px;
    z-index: 1000;
    display: none;
}

.dropdown a {
    display: block;
    padding: 10px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s;
}

.dropdown a:hover {
    background-color: #f4f4f4;
}

/* 主内容样式 */
main {
    padding: 20px 0;
}

.section {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.section h2 {
    margin-bottom: 20px;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

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

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

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

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #3498db;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #2980b9;
}

/* 模态框样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    display: none;
}

.modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

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

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #999;
}

.close-btn:hover {
    color: #333;
}

/* 提示样式 */
.prompt {
    text-align: center;
    padding: 40px 20px;
    background-color: #f9f9f9;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.prompt p {
    margin-bottom: 20px;
    font-size: 18px;
}

/* 建议列表样式 */
.suggestions-list {
    margin-bottom: 20px;
}

.suggestion-item {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
    background-color: #f9f9f9;
}

.suggestion-item h3 {
    margin-bottom: 5px;
    color: #2c3e50;
}

.suggestion-item .meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.suggestion-item .content {
    margin-bottom: 10px;
}

.suggestion-item .status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.status.pending {
    background-color: #f39c12;
    color: #fff;
}

.status.approved {
    background-color: #27ae60;
    color: #fff;
}

.status.rejected {
    background-color: #e74c3c;
    color: #fff;
}

/* 过滤器样式 */
.filters {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.filters select {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.pagination button {
    padding: 5px 10px;
    border: 1px solid #ddd;
    background-color: #fff;
    border-radius: 4px;
    cursor: pointer;
}

.pagination button:hover {
    background-color: #f4f4f4;
}

.pagination button.active {
    background-color: #3498db;
    color: #fff;
    border-color: #3498db;
}

/* 页脚样式 */
.footer {
    background-color: #2c3e50;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

/* 响应式样式 */
@media (max-width: 768px) {
    .nav ul {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .filters {
        flex-direction: column;
        align-items: stretch;
    }

    .modal-content {
        width: 95%;
        margin: 20px;
    }
}