:root {
    --primary-color: #0066b3;
    --secondary-color: #00a859;
    --light-color: #f5f9fc;
    --dark-color: #333;
    --gray-color: #777;
    --light-gray: #eee;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --admin-color: #9c27b0;
    --feedback-color: #ff9800;
    --complaint-color: #f44336;
    --forum-color: #2196f3;
    --user-color: #4caf50;
    --coating-color: #673ab7;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

body {
    color: var(--dark-color);
    line-height: 1.6;
    background-color: #f8f9fa;
}

/* 添加到 style.css */
.form-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    border: 1px solid #e9ecef;
}

/* 添加到style.css */
.ai-plan-result {
    background: white;
    border-radius: 10px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-left: 5px solid #2196f3;
}

.ai-badge {
    background: linear-gradient(45deg, #2196f3, #21cbf3);
    color: white;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 12px;
    margin-left: 10px;
    font-weight: bold;
}

/* 弹窗样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease-out;
    width: 100%;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid #eee;
}

.modal-header h3 {
    margin: 0;
    font-size: 20px;
    color: #333;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.modal-close:hover {
    background: #f5f5f5;
    color: #333;
}

.modal-body {
    padding: 30px;
}

/* 弹窗内按钮样式 */
.modal-body .btn {
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.modal-body .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.ai-summary {
    background: #f0f8ff;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    border: 1px solid #e3f2fd;
}

.ai-features ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin: 10px 0;
    padding: 0;
    list-style: none;
}

.ai-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #555;
}

.score-badge {
    background: #4caf50;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    margin-left: 8px;
}

.ai-stat .ai-score {
    font-size: 20px;
    font-weight: bold;
    color: #2196f3;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

.comparison-table th,
.comparison-table td {
    padding: 10px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.comparison-table th {
    background: #f5f5f5;
    font-weight: bold;
}

.comparison-table .best-route {
    background: #e8f5e9;
    font-weight: bold;
}

.ai-segment {
    background: #fafafa;
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
    border: 1px solid #eee;
}

.segment-progress {
    margin: 15px 0;
}

.progress-bar {
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2196f3, #21cbf3);
    transition: width 0.3s ease;
}

.progress-stops {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.stop-point {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 12px;
    color: #666;
}

.stop-point i {
    color: #2196f3;
    margin-bottom: 5px;
}

.ai-transfer {
    display: flex;
    align-items: center;
    background: #fff3e0;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    border-left: 4px solid #ff9800;
}

.transfer-icon {
    font-size: 24px;
    color: #ff9800;
    margin-right: 15px;
}

.transfer-tip {
    font-size: 12px;
    color: #666;
    font-style: italic;
}

.ai-tips {
    background: #e8f5e9;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
    border-left: 4px solid #4caf50;
}

.ai-tips ul {
    margin: 10px 0;
    padding-left: 20px;
}

.ai-tips li {
    margin: 5px 0;
    color: #2e7d32;
}

.loading-plan .ai-status {
    text-align: left;
    margin: 15px 0;
    color: #666;
    font-size: 14px;
}

.fa-brain {
    color: #9c27b0;
    font-size: 36px;
    margin-bottom: 15px;
}

/* 添加安全的头像样式 */
.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
}

.author-avatar-small {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

/* 帖子样式 */
.forum-post {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.forum-post:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

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

.post-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.post-author div:last-child {
    line-height: 1.4;
}

.post-author strong {
    display: block;
    font-size: 16px;
    color: #333;
}

.post-author div:last-child div {
    font-size: 12px;
    color: #666;
}

.post-stats {
    display: flex;
    gap: 15px;
    color: #666;
    font-size: 14px;
}

.post-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-content {
    line-height: 1.6;
    color: #444;
    margin: 10px 0;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0;
}

.tag {
    background: #e3f2fd;
    color: #1565c0;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 12px;
}

.post-actions {
    display: flex;
    gap: 20px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.post-action {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s;
    padding: 5px 10px;
    border-radius: 5px;
}

.post-action:hover {
    background: #f5f5f5;
    color: #0066b3;
}

/* 图片预览 */
.post-images-preview {
    display: flex;
    gap: 10px;
    margin: 10px 0;
    position: relative;
}

.post-thumbnail {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
    border: 1px solid #ddd;
}

.more-images {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
}

/* 表单样式 */
.post-form {
    background: white;
    border-radius: 10px;
    padding: 25px;
    margin-top: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.image-preview-item {
    position: relative;
    width: 100px;
    height: 100px;
}

.image-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
    border: 1px solid #ddd;
}

.remove-image {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255, 0, 0, 0.7);
    color: white;
    border: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.upload-container {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s;
    margin-top: 10px;
}

.upload-container:hover {
    border-color: #0066b3;
    background: #f8f9fa;
}

.upload-icon {
    font-size: 36px;
    color: #0066b3;
    margin-bottom: 10px;
}

.form-section h4 {
    color: #0066b3;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #dee2e6;
}

.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.radio-group input[type="radio"] {
    margin: 0;
}

.radio-group i {
    color: #0066b3;
    font-size: 18px;
}

.lines-list {
    max-height: 500px;
    overflow-y: auto;
}

.line-edit-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

/* 管理员界面样式 */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #dee2e6;
}

.data-count {
    color: #666;
    font-size: 14px;
}

.no-data {
    text-align: center;
    padding: 40px;
    color: #999;
    background: #f8f9fa;
    border-radius: 8px;
}

.admin-list {
    max-height: 600px;
    overflow-y: auto;
    padding-right: 10px;
}

.admin-item {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    transition: all 0.3s ease;
}

.admin-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.item-content {
    flex: 1;
}

.item-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    gap: 15px;
}

.item-category {
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.item-category.route { background: #e3f2fd; color: #1565c0; }
.item-category.service { background: #e8f5e9; color: #2e7d32; }
.item-category.news { background: #fff3e0; color: #ef6c00; }
.item-category.system { background: #f3e5f5; color: #7b1fa2; }

.item-details {
    display: flex;
    gap: 20px;
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.item-details i {
    margin-right: 5px;
}

.item-description {
    color: #555;
    line-height: 1.5;
}

.item-actions {
    display: flex;
    gap: 10px;
    margin-left: 20px;
}

.btn-edit, .btn-delete {
    padding: 8px 15px;
    font-size: 14px;
}

.btn-edit {
    background: #2196f3;
}

.btn-delete {
    background: #f44336;
}

/* 涂装网格 */
.coating-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.admin-coating-item {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.admin-coating-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-3px);
}

.coating-image {
    height: 200px;
    overflow: hidden;
}

.coating-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.coating-content {
    padding: 15px;
}

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

/* 表格样式 */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.admin-table th {
    background: #f8f9fa;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
}

.admin-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #dee2e6;
}

.admin-table tr:hover {
    background: #f8f9fa;
}

.table-actions {
    display: flex;
    gap: 5px;
}

.btn-edit-sm, .btn-delete-sm {
    padding: 5px 10px;
    font-size: 12px;
    min-width: auto;
}

/* 状态标签 */
.status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.status-badge.pending,
.status-badge.待处理 { background: #ffebee; color: #c62828; }

.status-badge.processing,
.status-badge.处理中,
.status-badge.investigating,
.status-badge.调查中 { background: #fff3e0; color: #ef6c00; }

.status-badge.resolved,
.status-badge.handled,
.status-badge.已处理,
.status-badge.已解决 { background: #e8f5e9; color: #2e7d32; }

.status-badge.active,
.status-badge.在职 { background: #e3f2fd; color: #1565c0; }

.status-badge.inactive,
.status-badge.离职 { background: #f5f5f5; color: #757575; }

/* 筛选按钮 */
.filter-buttons {
    display: flex;
    gap: 10px;
}

.filter-btn {
    padding: 6px 15px;
    border: 1px solid #dee2e6;
    background: white;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn.active {
    background: #0066b3;
    color: white;
    border-color: #0066b3;
}

/* 反馈和投诉项目 */
.feedback-item,
.complaint-item {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
}

.feedback-header,
.complaint-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.feedback-type,
.complaint-type {
    background: #f0f8ff;
    color: #0066b3;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
}

.feedback-content,
.complaint-content {
    margin: 10px 0;
    line-height: 1.6;
    color: #555;
}

.feedback-meta,
.complaint-meta {
    display: flex;
    gap: 20px;
    color: #666;
    font-size: 14px;
    margin-top: 15px;
}

.feedback-actions,
.complaint-actions {
    margin-top: 15px;
}

.status-select {
    padding: 8px 15px;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    background: white;
    font-size: 14px;
    cursor: pointer;
}

/* 模态框样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #dee2e6;
}

.modal-header h3 {
    margin: 0;
    color: #333;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    transition: color 0.3s;
}

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

.modal-body {
    padding: 20px;
}

/* 表单行 */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .admin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .admin-item {
        flex-direction: column;
    }
    
    .item-actions {
        margin-left: 0;
        margin-top: 15px;
    }
    
    .coating-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-table {
        display: block;
        overflow-x: auto;
    }
}

.line-edit-item:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.line-edit-item .route-number {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    color: white;
    font-weight: bold;
    margin-bottom: 8px;
}

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

/* 头部样式 */
header {
    background-color: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.logo-icon {
    color: var(--primary-color);
    font-size: 32px;
    margin-right: 10px;
}

.logo-img {
    height: 40px;
    width: auto;
    margin-right: 10px;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.logo-text span {
    color: var(--secondary-color);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-name {
    font-weight: 600;
    color: var(--primary-color);
}

.logout-btn {
    background: none;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition);
}

/* 添加到 style.css 或页面内嵌样式 */
.suggestions {
    position: absolute;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    width: calc(100% - 30px);
    margin-top: 2px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.suggestion-item {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s;
}

.suggestion-item:hover {
    background-color: #f5f5f5;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-name {
    font-weight: bold;
    color: #333;
}

.suggestion-alias {
    font-size: 12px;
    color: #666;
    margin-left: 8px;
}

.plan-result {
    background: white;
    border-radius: 10px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-left: 5px solid #0066b3;
}

.plan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.plan-title {
    font-size: 20px;
    color: #0066b3;
    margin: 0;
}

.plan-meta {
    display: flex;
    gap: 20px;
    color: #666;
    font-size: 14px;
}

.plan-segment {
    margin: 15px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid;
}

.segment-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.line-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    color: white;
    font-weight: bold;
    margin-right: 10px;
    min-width: 60px;
    text-align: center;
}

.stops-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.stop-item {
    padding: 6px 12px;
    background: white;
    border-radius: 15px;
    border: 1px solid #ddd;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.stop-item.current {
    background: #e3f2fd;
    border-color: #2196f3;
    font-weight: bold;
}

.stop-item.transfer {
    background: #fff3e0;
    border-color: #ff9800;
}

.arrow {
    margin: 0 5px;
    color: #999;
}

.transfer-info {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 15px 0;
    color: #ff9800;
    font-weight: bold;
}

.transfer-icon {
    margin: 0 10px;
    font-size: 18px;
}

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

.plan-tabs {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
}

.plan-tab {
    padding: 10px 20px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 16px;
    cursor: pointer;
    color: #666;
}

.plan-tab.active {
    color: #0066b3;
    border-bottom-color: #0066b3;
}

.no-results {
    text-align: center;
    padding: 40px;
    color: #666;
}

.loading-plan {
    text-align: center;
    padding: 30px;
    color: #0066b3;
}

.logout-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

nav ul {
    display: flex;
    list-style: none;
}

nav li {
    margin-left: 25px;
}

nav a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
    position: relative;
}

nav a:hover {
    color: var(--primary-color);
}

nav a.active {
    color: var(--primary-color);
}

nav a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
}

.admin-indicator {
    display: inline-block;
    background-color: var(--admin-color);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    margin-left: 5px;
    vertical-align: super;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--primary-color);
    cursor: pointer;
}

/* 主内容区样式 */
main {
    padding: 40px 0;
    min-height: calc(100vh - 250px);
}

.loading {
    text-align: center;
    padding: 60px;
    color: var(--primary-color);
}

.loading i {
    font-size: 48px;
    margin-bottom: 20px;
}

.page-section {
    display: none;
    animation: fadeIn 0.5s ease;
}

.page-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.section-title {
    font-size: 28px;
    margin-bottom: 30px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 70px;
    height: 3px;
    background-color: var(--secondary-color);
}

/* 首页样式 */
.hero {
    background: linear-gradient(rgba(0, 102, 179, 0.85), rgba(0, 168, 89, 0.8)), url('https://images.unsplash.com/photo-1544620347-c4fd4a3d5957?ixlib=rb-4.0.3&auto=format&fit=crop&w=1200&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 80px 0;
    text-align: center;
    border-radius: 10px;
    margin-bottom: 40px;
}

.hero h1 {
    font-size: 42px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 30px;
}

.btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    padding: 12px 28px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn:hover {
    background-color: #008f4c;
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background-color: var(--primary-color);
}

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

.btn-admin {
    background-color: var(--admin-color);
}

.btn-admin:hover {
    background-color: #7b1fa2;
}

.btn-feedback {
    background-color: var(--feedback-color);
}

.btn-feedback:hover {
    background-color: #e68900;
}

.btn-complaint {
    background-color: var(--complaint-color);
}

.btn-complaint:hover {
    background-color: #d32f2f;
}

.btn-forum {
    background-color: var(--forum-color);
}

.btn-forum:hover {
    background-color: #0b7dda;
}

.btn-user {
    background-color: var(--user-color);
}

.btn-user:hover {
    background-color: #3d8b40;
}

.btn-coating {
    background-color: var(--coating-color);
}

.btn-coating:hover {
    background-color: #512da8;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* 线路查询样式 */
.route-search-container {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 40px;
}

.search-box {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.input-group {
    flex: 1;
    min-width: 250px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.input-group input, .input-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.search-btn {
    align-self: flex-end;
    padding: 12px 30px;
}

.search-options {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.search-option-btn {
    background: none;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.search-option-btn.active {
    background-color: var(--primary-color);
    color: white;
}

.search-option-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.route-result {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--light-gray);
}

.route-item {
    background-color: var(--light-color);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 5px solid var(--secondary-color);
    cursor: pointer;
    transition: var(--transition);
}

.route-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.route-number {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.route-detail {
    display: none;
    background-color: white;
    border-radius: 8px;
    padding: 25px;
    margin-top: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--light-gray);
}

.route-detail.active {
    display: block;
    animation: slideDown 0.3s ease;
}

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

.route-stops {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
}

.route-stop {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    background-color: #f0f8ff;
    border-radius: 20px;
    font-size: 14px;
}

.route-stop:not(:last-child)::after {
    content: '→';
    margin-left: 10px;
    color: var(--gray-color);
}

.route-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.info-item {
    display: flex;
    align-items: center;
}

.info-icon {
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 18px;
}

/* 线路规划样式 */
.transfer-plan {
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    margin-top: 20px;
    box-shadow: var(--shadow);
    border-left: 5px solid var(--admin-color);
}

.transfer-step {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #eee;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    margin-right: 15px;
    font-weight: bold;
}

.transfer-info {
    flex: 1;
}

/* 涂装展示样式 */
.coating-container {
    background-color: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 30px;
    margin-bottom: 40px;
}

.coating-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.coating-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    background-color: white;
}

.coating-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.coating-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.coating-content {
    padding: 20px;
}

.coating-title {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.coating-description {
    color: var(--gray-color);
    line-height: 1.6;
    margin-bottom: 15px;
}

.coating-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #888;
}

.coating-category {
    background-color: var(--coating-color);
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
}

/* 问题反馈页面样式 */
.feedback-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feedback-box {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    border-top: 5px solid var(--feedback-color);
}

.complaint-box {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    border-top: 5px solid var(--complaint-color);
}

/* 公司简介样式 */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-text {
    line-height: 1.8;
}

.about-text p {
    margin-bottom: 20px;
}

.about-img {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-img img {
    width: 100%;
    height: auto;
    display: block;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.stat-item {
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow);
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* 员工公示样式 */
.employee-public-container {
    background-color: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 30px;
    margin-bottom: 40px;
}

.employee-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.employee-card {
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    padding: 20px;
    transition: var(--transition);
}

.employee-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.employee-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.employee-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    margin-right: 15px;
}

.employee-info h4 {
    margin-bottom: 5px;
    color: var(--primary-color);
}

.employee-title {
    background-color: #f0f8ff;
    color: var(--primary-color);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 14px;
    display: inline-block;
}

/* 联系方式样式 */
.contact-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.contact-form {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

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

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

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

.contact-info {
    background-color: var(--primary-color);
    color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.contact-info h3 {
    margin-bottom: 20px;
    font-size: 24px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.contact-icon {
    font-size: 20px;
    margin-right: 15px;
    margin-top: 5px;
}

/* 公告通知样式 */
.notice-container {
    background-color: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 40px;
}

.notice-category {
    display: flex;
    border-bottom: 1px solid var(--light-gray);
}

.category-btn {
    flex: 1;
    padding: 20px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.category-btn:hover {
    background-color: var(--light-color);
}

.category-btn.active {
    background-color: var(--primary-color);
    color: white;
}

.notice-list {
    max-height: 500px;
    overflow-y: auto;
}

.notice-item {
    padding: 20px;
    border-bottom: 1px solid var(--light-gray);
    cursor: pointer;
    transition: var(--transition);
}

.notice-item:hover {
    background-color: var(--light-color);
}

.notice-item:last-child {
    border-bottom: none;
}

.notice-title {
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.notice-date {
    color: var(--gray-color);
    font-size: 14px;
}

.notice-detail {
    padding: 30px;
    display: none;
}

.notice-detail.active {
    display: block;
}

/* 公告页面样式 */
.notice-container {
    margin-top: 20px;
}

.notice-category {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.category-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.category-btn:hover {
    background: #f5f5f5;
}

.category-btn.active {
    background: #0066b3;
    color: white;
    border-color: #0066b3;
}

.notice-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .notice-content-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.notice-list-container {
    background: white;
    border-radius: 8px;
    border: 1px solid #eee;
    overflow: hidden;
}

.notice-list {
    max-height: 600px;
    overflow-y: auto;
    padding: 15px;
}

.notice-item {
    padding: 15px;
    margin-bottom: 10px;
    border: 1px solid #eee;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    background: white;
}

.notice-item:hover {
    border-color: #0066b3;
    box-shadow: 0 2px 8px rgba(0, 102, 179, 0.1);
}

.notice-item.active {
    border-color: #0066b3;
    background: #f0f7ff;
}

.notice-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.notice-title {
    font-weight: bold;
    font-size: 16px;
    flex: 1;
    margin-right: 10px;
    color: #333;
}

.notice-category {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 12px;
    background: #e3f2fd;
    color: #1565c0;
    white-space: nowrap;
}

.notice-date {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
}

.notice-content-preview {
    font-size: 14px;
    color: #555;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 公告详情区域 */
.notice-detail-wrapper {
    background: white;
    border-radius: 8px;
    border: 1px solid #eee;
    overflow: hidden;
}

.notice-detail {
    padding: 0;
}

.no-notice-selected {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-notice-selected i {
    margin-bottom: 20px;
    color: #ddd;
}

.no-notice-selected h3 {
    margin: 15px 0 10px 0;
    color: #999;
}

.no-notice-selected p {
    color: #aaa;
    font-size: 14px;
}

/* 公告详情内容样式 */
.notice-detail-content {
    padding: 30px;
}

.detail-header {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.detail-category {
    display: inline-block;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 12px;
    background: #e3f2fd;
    color: #1565c0;
    margin-bottom: 15px;
}

.detail-title {
    font-size: 24px;
    margin: 0 0 15px 0;
    color: #333;
    line-height: 1.3;
}

.detail-meta {
    font-size: 14px;
    color: #666;
}

.detail-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-right: 15px;
}

.detail-body {
    line-height: 1.8;
    margin-bottom: 30px;
}

.detail-content {
    font-size: 16px;
    color: #333;
}

.detail-content p {
    margin-bottom: 15px;
}

.detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 15px 0;
}

.detail-footer {
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.detail-tools {
    display: flex;
    gap: 10px;
}

.notice-detail h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 24px;
}

.notice-detail-date {
    color: var(--gray-color);
    margin-bottom: 20px;
    font-size: 14px;
}

/* 用户注册/登录页面 */
.auth-container {
    max-width: 400px;
    margin: 0 auto;
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.auth-container h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.auth-logo {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo .logo-icon {
    font-size: 48px;
    color: var(--primary-color);
}

.auth-tabs {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 1px solid #ddd;
}

.auth-tab {
    flex: 1;
    padding: 15px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.auth-tab.active {
    color: var(--user-color);
    border-bottom-color: var(--user-color);
}

.auth-tab:hover {
    color: var(--user-color);
}

/* 贴吧聊天区样式 */
.forum-container {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--shadow);
    margin-bottom: 40px;
}

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

.forum-posts {
    max-height: 600px;
    overflow-y: auto;
    padding-right: 10px;
}

.forum-post {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}

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

.post-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.post-content {
    line-height: 1.6;
    margin-bottom: 15px;
}

.post-actions {
    display: flex;
    gap: 20px;
}

.post-action {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.post-action:hover {
    color: var(--primary-color);
}

.post-form {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

/* 管理员编辑页面 */
.admin-panel {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--shadow);
}

.admin-tabs {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.admin-tab {
    padding: 15px 25px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.admin-tab.active {
    color: var(--admin-color);
    border-bottom-color: var(--admin-color);
}

.admin-tab:hover {
    color: var(--admin-color);
}

.admin-section {
    display: none;
}

.admin-section.active {
    display: block;
}

.edit-form {
    max-width: 800px;
}

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

.notice-edit-item, .line-edit-item, .employee-edit-item, .coating-edit-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 5px;
    margin-bottom: 15px;
    transition: var(--transition);
}

.notice-edit-item:hover, .line-edit-item:hover, .employee-edit-item:hover, .coating-edit-item:hover {
    background-color: #f9f9f9;
}

.edit-actions {
    display: flex;
    gap: 10px;
}

.edit-btn {
    padding: 5px 12px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition);
}

.edit-btn.edit {
    background-color: var(--primary-color);
    color: white;
}

.edit-btn.delete {
    background-color: #f44336;
    color: white;
}

.edit-btn:hover {
    opacity: 0.9;
}

.employee-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.employee-table th, .employee-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.employee-table th {
    background-color: #f5f5f5;
    font-weight: 600;
}

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

/* 颜色选择器 */
.color-picker {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.color-option {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.color-option.selected {
    border-color: #333;
    transform: scale(1.2);
}

/* 图片上传样式 */
.upload-container {
    border: 2px dashed #ddd;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    margin-bottom: 10px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.upload-container:hover {
    border-color: var(--primary-color);
    background-color: #f9f9f9;
}

.upload-icon {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.image-preview {
    max-width: 200px;
    max-height: 150px;
    margin-top: 10px;
    border-radius: 5px;
    display: none;
}

.image-preview.active {
    display: inline-block;
}

.image-preview-small {
    max-width: 100px;
    max-height: 75px;
    border-radius: 5px;
    margin-right: 10px;
    display: none;
}

.image-preview-small.active {
    display: inline-block;
}

.image-remove {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #f44336;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    display: none;
}

/* 公告页面样式 */
.notice-container {
    margin-top: 20px;
}

.notice-category {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.category-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.category-btn:hover {
    background: #f5f5f5;
}

.category-btn.active {
    background: #0066b3;
    color: white;
    border-color: #0066b3;
}

.notice-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
}

@media (max-width: 768px) {
    .notice-content {
        grid-template-columns: 1fr;
    }
}

.notice-list-container {
    max-height: 600px;
    overflow-y: auto;
}

.notice-item {
    padding: 15px;
    margin-bottom: 10px;
    border: 1px solid #eee;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    background: white;
}

.notice-item:hover {
    border-color: #0066b3;
    box-shadow: 0 2px 8px rgba(0, 102, 179, 0.1);
}

.notice-item.active {
    border-color: #0066b3;
    background: #f0f7ff;
}

.notice-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.notice-title {
    font-weight: bold;
    font-size: 16px;
    flex: 1;
    margin-right: 10px;
}

.notice-category {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 12px;
    background: #e3f2fd;
    color: #1565c0;
    white-space: nowrap;
}

.notice-date {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
}

.notice-content-preview {
    font-size: 14px;
    color: #555;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notice-views {
    font-size: 12px;
    color: #888;
}

/* 公告详情样式 */
.notice-detail-container {
    background: white;
    border-radius: 8px;
    border: 1px solid #eee;
}

.notice-detail-content {
    padding: 25px;
}

.detail-header {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.detail-category {
    display: inline-block;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 12px;
    background: #e3f2fd;
    color: #1565c0;
    margin-bottom: 15px;
}

.detail-title {
    font-size: 24px;
    margin: 0 0 15px 0;
    color: #333;
    line-height: 1.3;
}

.detail-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #666;
}

.detail-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.detail-body {
    line-height: 1.8;
    margin-bottom: 30px;
}

.detail-content {
    font-size: 16px;
    color: #333;
}

.detail-content p {
    margin-bottom: 15px;
}

.detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 15px 0;
}

.detail-footer {
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.detail-tools {
    display: flex;
    gap: 10px;
}

.image-preview-container:hover .image-remove {
    display: block;
}

.image-preview-container {
    position: relative;
    display: inline-block;
}

/* 反馈问题图片上传样式 */
.feedback-upload-container {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 10px;
}

.feedback-upload-container:hover {
    border-color: var(--feedback-color);
}

.complaint-upload-container:hover {
    border-color: var(--complaint-color);
}

.feedback-images-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.feedback-image-preview {
    max-width: 100px;
    max-height: 75px;
    border-radius: 5px;
    object-fit: cover;
}

/* 实时同步状态提示 */
.sync-status {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: white;
    padding: 10px 15px;
    border-radius: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 1000;
    box-shadow: var(--shadow);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(20px);
}

.sync-status.show {
    opacity: 1;
    transform: translateY(0);
}

.sync-status.syncing {
    background-color: var(--feedback-color);
}

.sync-status.updated {
    background-color: var(--secondary-color);
}

/* 页脚样式 */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-column h3 {
    font-size: 20px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #ddd;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    color: #ddd;
}

.version {
    font-size: 12px;
    opacity: 0.8;
    margin-top: 5px;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .about-content, .contact-content {
        grid-template-columns: 1fr;
    }
    
    .feedback-container {
        grid-template-columns: 1fr;
    }
    
    .employee-list {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .coating-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        box-shadow: var(--shadow);
    }
    
    nav.active {
        display: block;
    }
    
    nav ul {
        flex-direction: column;
        padding: 20px;
    }
    
    nav li {
        margin: 0 0 15px 0;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .route-stops {
        flex-direction: column;
        gap: 5px;
    }
    
    .route-stop:not(:last-child)::after {
        display: none;
    }
    
    .admin-tabs {
        flex-direction: column;
    }
    
    .admin-tab {
        border-bottom: none;
        border-left: 3px solid transparent;
    }
    
    .admin-tab.active {
        border-left-color: var(--admin-color);
    }
    
    .employee-table {
        display: block;
        overflow-x: auto;
    }
    
    .user-info {
        display: none;
    }
    
    .coating-grid {
        grid-template-columns: 1fr;
    }
    
    .sync-status {
        bottom: 70px;
        right: 10px;
        font-size: 12px;
    }
}

@media (max-width: 576px) {
    .search-box {
        flex-direction: column;
    }
    
    .input-group {
        min-width: 100%;
    }
    
    .search-btn {
        width: 100%;
    }
    
    .notice-category {
        flex-direction: column;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .notice-edit-item, .line-edit-item, .employee-edit-item, .coating-edit-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .edit-actions {
        margin-top: 10px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .employee-list {
        grid-template-columns: 1fr;
    }
    /* 添加安全的头像样式 */
.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
}

/* 帖子样式优化 */
.forum-post {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.forum-post:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.post-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.post-stats {
    display: flex;
    gap: 15px;
    color: #666;
    font-size: 14px;
}

.post-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0;
}

.tag {
    background: #e3f2fd;
    color: #1565c0;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 12px;
}

.post-actions {
    display: flex;
    gap: 20px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.post-action {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s;
    padding: 5px 10px;
    border-radius: 5px;
}

.post-action:hover {
    background: #f5f5f5;
    color: #0066b3;
}

/* 图片上传预览 */
.images-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.image-preview-item {
    position: relative;
    width: 100px;
    height: 100px;
}

.image-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
    border: 1px solid #ddd;
}

.remove-image {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255, 0, 0, 0.7);
    color: white;
    border: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.upload-container {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 10px;
}

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

.modal-overlay.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: white;
    border-radius: 10px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #0066b3 0%, #004d99 100%);
    color: white;
}

.modal-header h3 {
    margin: 0;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: white;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.modal-close:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.modal-body {
    padding: 30px;
    overflow-y: auto;
    max-height: calc(90vh - 100px);
}

.upload-container:hover {
    border-color: #0066b3;
    background: #f8f9fa;
}


/* 举报历史样式 */
.complaint-history-section {
    margin-top: 40px;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.section-header h3 {
    color: #333;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-actions {
    display: flex;
    gap: 10px;
}

.btn-filter {
    padding: 6px 12px;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 5px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-filter:hover {
    background: #e0e0e0;
}

.btn-filter.active {
    background: #0066b3;
    color: white;
    border-color: #0066b3;
}

.complaint-history-container {
    max-height: 500px;
    overflow-y: auto;
}

.complaint-history-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.complaint-history-item {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
    border-left: 4px solid #0066b3;
    cursor: pointer;
    transition: all 0.3s;
}

.complaint-history-item:hover {
    background: #f0f7ff;
    transform: translateX(5px);
}

.complaint-history-item.pending {
    border-left-color: #ff9800;
}

.complaint-history-item.processing {
    border-left-color: #2196f3;
}

.complaint-history-item.resolved {
    border-left-color: #4caf50;
}

.complaint-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.complaint-item-title {
    font-weight: bold;
    color: #333;
    font-size: 1.1rem;
}

.complaint-status {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-processing {
    background: #d1ecf1;
    color: #0c5460;
}

.status-resolved {
    background: #d4edda;
    color: #155724;
}

.complaint-item-details {
    margin-bottom: 10px;
}

.complaint-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #666;
}

.complaint-person {
    display: flex;
    align-items: center;
    gap: 5px;
}

.complaint-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 举报详情模态框样式 */
.complaint-detail-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.complaint-detail-modal .modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
}

.complaint-detail-modal .modal-content {
    position: relative;
    background: white;
    border-radius: 10px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1001;
}

.complaint-detail-modal .modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.complaint-detail-modal .modal-body {
    padding: 20px;
}

.detail-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-item label {
    font-weight: bold;
    color: #666;
    display: block;
    margin-bottom: 5px;
}

.detail-item .value {
    color: #333;
    line-height: 1.5;
}

.loading-complaints {
    text-align: center;
    padding: 40px;
    color: #666;
}

.loading-complaints i {
    font-size: 2rem;
    margin-bottom: 10px;
}