/* styles.css - 开头部分 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

body {
    background: linear-gradient(135deg, #f5f7fa, #e4e7f0);
    color: #333;
    min-height: 100vh;
    line-height: 1.6;
}

  /* 顶部导航栏 */
        .top-navbar {
            background: white;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            padding: 0 20px;
            position: sticky;
            top: 0;
            z-index: 100;
        }
        
        .nav-container {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
            height: 60px;
        }
        
        .logo {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 22px;
            font-weight: 600;
            color: #2c6fbb;
            text-decoration: none;
        }
        
        .logo i {
            font-size: 24px;
        }
        
        .nav-menu {
            display: flex;
            align-items: center;
            gap: 20px;
        }
        
        .nav-link {
            color: #4a5568;
            text-decoration: none;
            font-weight: 500;
            transition: color 0.3s;
            display: flex;
            align-items: center;
            gap: 5px;
        }
        
        .nav-link:hover {
            color: #2c6fbb;
        }
        
        .user-menu {
            position: relative;
        }
        
        .user-btn {
            display: flex;
            align-items: center;
            gap: 8px;
            background: none;
            border: none;
            color: #4a5568;
            font-weight: 500;
            cursor: pointer;
            padding: 8px 12px;
            border-radius: 6px;
            transition: all 0.3s;
        }
        
        .user-btn:hover {
            background: #f0f4f8;
            color: #2c6fbb;
        }
        
        .user-dropdown {
            position: absolute;
            right: 0;
            top: 100%;
            background: white;
            border-radius: 8px;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
            padding: 10px 0;
            min-width: 180px;
            display: none;
            z-index: 10;
        }
        
        .user-menu:hover .user-dropdown {
            display: block;
        }
        
        .dropdown-item {
            padding: 10px 20px;
            display: flex;
            align-items: center;
            gap: 10px;
            color: #4a5568;
            text-decoration: none;
            transition: all 0.3s;
        }
        
        .dropdown-item:hover {
            background: #f0f4f8;
            color: #2c6fbb;
        }
        
        .main-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
        }
        
        .nav-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px 0;
            margin-bottom: 30px;
        }
        
        .nav-header h1 {
            font-size: 28px;
            color: #2c6fbb;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .btn {
            padding: 12px 24px;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            font-size: 16px;
            font-weight: 500;
            transition: all 0.3s ease;
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }
        
        .btn-primary {
            background: linear-gradient(135deg, #2c6fbb, #4a90e2);
            color: white;
            box-shadow: 0 4px 12px rgba(44, 111, 187, 0.25);
        }
        
        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 15px rgba(44, 111, 187, 0.35);
        }
        
        .btn-secondary {
            background: #f0f4f8;
            color: #4a5568;
        }
        
        .btn-secondary:hover {
            background: #e2e8f0;
        }
        
        .function-grid, .file-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 25px;
        }
        
        .function-card, .file-card {
            background: white;
            padding: 25px;
            border-radius: 12px;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.07);
            text-align: center;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
            cursor: pointer;
            border: 1px solid #edf2f7;
        }
        
        .function-card::before, .file-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, #2c6fbb, #4a90e2);
        }
        
        .function-card:hover, .file-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
        }
        
        .function-icon, .file-icon {
            font-size: 48px;
            margin-bottom: 15px;
            transition: transform 0.3s ease;
            color: #2c6fbb;
            display: inline-block;
        }
        
        .function-card:hover .function-icon {
            transform: scale(1.1);
        }
        
        .function-title {
            font-size: 20px;
            font-weight: 600;
            margin-bottom: 10px;
            color: #2d3748;
        }
        
        .function-description {
            font-size: 15px;
            color: #718096;
            line-height: 1.5;
        }
        
        .file-actions {
            display: flex;
            justify-content: center;
            gap: 10px;
            margin-top: 20px;
        }
        
        .category-header {
            font-size: 22px;
            font-weight: 600;
            color: #2c6fbb;
            margin-top: 30px;
            margin-bottom: 20px;
            padding-left: 15px;
            border-left: 4px solid #4a90e2;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .search-container {
            margin: 30px 0;
            max-width: 800px;
            width: 100%;
            display: flex;
            gap: 15px;
            position: relative;
        }
        
        .search-input {
            padding: 14px 50px 14px 25px !important;
            border-radius: 30px !important;
            background: #fff;
            transition: all 0.3s ease;
            flex: 1;
            border: 1px solid #d1d9e6;
            font-size: 16px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        }
        
        .search-input:focus {
            box-shadow: 0 2px 15px rgba(44, 111, 187, 0.2);
            border-color: #4a90e2 !important;
        }
        
        #categoryFilter {
            padding: 14px 20px !important;
            border-radius: 30px !important;
            background: #fff;
            transition: all 0.3s ease;
            width: 220px;
            border: 1px solid #d1d9e6;
            font-size: 16px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        }
        
        #categoryFilter:focus {
            box-shadow: 0 2px 15px rgba(44, 111, 187, 0.2);
            border-color: #4a90e2 !important;
        }
        
        .empty-tip {
            text-align: center;
            padding: 40px 20px;
            color: #718096;
            font-size: 18px;
        }

        /* 工单系统样式 */
        .ticket-container {
            background: white;
            border-radius: 12px;
            padding: 25px;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.07);
            margin-bottom: 30px;
        }

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

        .ticket-title {
            font-size: 22px;
            font-weight: 600;
            color: #2c6fbb;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .ticket-filters {
            display: flex;
            gap: 10px;
        }

        .filter-btn {
            padding: 8px 16px;
            border-radius: 20px;
            background: #f0f2f7;
            border: none;
            cursor: pointer;
            font-weight: 500;
            transition: all 0.3s ease;
            font-size: 14px;
        }

        .filter-btn.active {
            background: linear-gradient(135deg, #2c6fbb, #4a90e2);
            color: white;
        }

        .ticket-item {
            display: flex;
            align-items: center;
            padding: 18px;
            border-bottom: 1px solid #f0f2f7;
            transition: all 0.3s ease;
            cursor: pointer;
            background: white;
            border-radius: 8px;
            margin-bottom: 10px;
        }

        .ticket-item:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 12px rgba(0,0,0,0.08);
        }

        .ticket-info {
            flex: 1;
        }

        .ticket-name {
            font-weight: 600;
            margin-bottom: 5px;
            color: #2d3748;
        }

        .ticket-desc {
            color: #718096;
            font-size: 14px;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .ticket-meta {
            display: flex;
            align-items: center;
            gap: 15px;
            color: #718096;
            font-size: 13px;
            margin-top: 10px;
        }

        .ticket-status {
            padding: 5px 12px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 600;
        }

        .status-open {
            background: rgba(44, 111, 187, 0.1);
            color: #2c6fbb;
        }

        .status-pending {
            background: rgba(255, 184, 0, 0.1);
            color: #ffb800;
        }

        .status-resolved {
            background: rgba(6, 214, 160, 0.1);
            color: #06d6a0;
        }

        .status-closed {
            background: rgba(123, 136, 168, 0.1);
            color: #7b88a8;
        }

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

        .action-btn {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            background: #f0f2f7;
            border: none;
            cursor: pointer;
            transition: all 0.3s ease;
            color: #2c6fbb;
        }

        .action-btn:hover {
            background: #e4e7f1;
            transform: scale(1.1);
        }

        .pagination {
            display: flex;
            justify-content: center;
            gap: 8px;
            margin-top: 20px;
        }

        .page-btn {
            min-width: 36px;
            height: 36px;
            padding: 0 10px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: #f0f2f7;
            border: none;
            cursor: pointer;
            transition: all 0.3s ease;
            color: #2c6fbb;
            font-weight: 600;
            font-size: 14px;
        }

        .page-btn.active {
            background: linear-gradient(135deg, #2c6fbb, #4a90e2);
            color: white;
        }

        .page-btn:hover:not(.active) {
            background: #e4e7f1;
        }

        .page-btn.disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        /* 工单详情页样式 */
        .ticket-detail-container {
            background: white;
            border-radius: 12px;
            padding: 25px;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.07);
            margin-bottom: 30px;
        }

        .ticket-detail-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }

        .ticket-detail-title {
            font-size: 24px;
            font-weight: 600;
            color: #2d3748;
        }

        .ticket-detail-id {
            color: #718096;
            font-size: 16px;
        }

        .ticket-detail-status {
            padding: 8px 16px;
            border-radius: 20px;
            font-size: 14px;
            font-weight: 600;
            margin-left: 15px;
        }

        .ticket-detail-content {
            margin-top: 20px;
        }

        .ticket-detail-section {
            margin-bottom: 25px;
        }

        .ticket-detail-section-title {
            font-size: 18px;
            font-weight: 600;
            color: #2c6fbb;
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .ticket-detail-section-content {
            background: #f8fafc;
            border-radius: 8px;
            padding: 15px;
            border: 1px solid #edf2f7;
        }

        .ticket-progress {
            margin-top: 30px;
        }

        .progress-step {
            display: flex;
            margin-bottom: 20px;
            position: relative;
            padding-left: 30px;
        }

        .progress-step:last-child {
            margin-bottom: 0;
        }

        .progress-step::before {
            content: '';
            position: absolute;
            left: 10px;
            top: 0;
            bottom: -20px;
            width: 2px;
            background: #e2e8f0;
        }

        .progress-step:last-child::before {
            display: none;
        }

        .progress-step-icon {
            width: 22px;
            height: 22px;
            border-radius: 50%;
            background: #e2e8f0;
            display: flex;
            align-items: center;
            justify-content: center;
            position: absolute;
            left: 0;
            top: 0;
        }

        .progress-step.completed .progress-step-icon {
            background: #2c6fbb;
            color: white;
        }

        .progress-step-content {
            flex: 1;
        }

        .progress-step-title {
            font-weight: 600;
            margin-bottom: 5px;
        }

        .progress-step-time {
            color: #718096;
            font-size: 13px;
        }

        .progress-step-desc {
            color: #4a5568;
            font-size: 14px;
            margin-top: 5px;
        }

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

        .form-label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
            color: #2d3748;
        }

        .form-control {
            width: 100%;
            padding: 12px 15px;
            border-radius: 8px;
            border: 1px solid #d1d9e6;
            background: #f8fafc;
            font-size: 16px;
            transition: all 0.3s ease;
        }

        .form-control:focus {
            border-color: #4a90e2;
            outline: none;
            box-shadow: 0 0 0 3px rgba(44, 111, 187, 0.1);
        }

        textarea.form-control {
            min-height: 150px;
            resize: vertical;
        }

        /* 文件上传样式 */
        .file-upload {
            border: 2px dashed #d1d9e6;
            border-radius: 8px;
            padding: 25px;
            text-align: center;
            background: #f8fafc;
            transition: all 0.3s;
            margin-bottom: 20px;
        }

        .file-upload:hover {
            border-color: #4a90e2;
        }

        .file-upload-icon {
            font-size: 40px;
            color: #718096;
            margin-bottom: 15px;
        }

        .file-upload-text {
            color: #718096;
            margin-bottom: 10px;
        }

        .file-upload-hint {
            font-size: 13px;
            color: #a0aec0;
        }

        .file-upload-btn {
            display: inline-block;
            padding: 8px 16px;
            background: #e2e8f0;
            border-radius: 6px;
            color: #4a5568;
            cursor: pointer;
            margin-top: 15px;
            transition: all 0.3s;
        }

        .file-upload-btn:hover {
            background: #d1d9e6;
        }

        #fileListPreview {
            margin-top: 15px;
        }

        .file-preview-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 10px;
            background: #f0f4f8;
            border-radius: 6px;
            margin-bottom: 8px;
        }

        .file-preview-name {
            flex: 1;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            margin-right: 10px;
        }

        .file-preview-remove {
            color: #e53e3e;
            cursor: pointer;
        }

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

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

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

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

        .modal-title {
            font-size: 22px;
            font-weight: 600;
            color: #2c6fbb;
        }

        .modal-close {
            font-size: 24px;
            cursor: pointer;
            color: #718096;
        }

        .modal-footer {
            display: flex;
            justify-content: flex-end;
            gap: 15px;
            margin-top: 30px;
        }

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

        .form-tab {
            padding: 10px 20px;
            cursor: pointer;
            border-bottom: 2px solid transparent;
            font-weight: 500;
            color: #718096;
        }

        .form-tab.active {
            color: #2c6fbb;
            border-bottom-color: #2c6fbb;
        }

        .form-tab-content {
            display: none;
        }

        .form-tab-content.active {
            display: block;
        }

        @media (max-width: 768px) {
            .function-grid, .file-grid {
                grid-template-columns: 1fr;
            }
            
            .search-container {
                flex-direction: column;
            }
            
            #categoryFilter {
                width: 100%;
            }

            .ticket-header {
                flex-direction: column;
                align-items: flex-start;
                gap: 15px;
            }

            .ticket-filters {
                flex-wrap: wrap;
            }

            .nav-menu {
                gap: 10px;
            }

            .modal-content {
                padding: 20px;
                margin: 20px;
            }
        }