* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.header {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #667eea;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

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

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #667eea;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.user-avatar:hover {
    background: #5568d3;
}

.user-dropdown {
    position: relative;
}

.user-menu {
    position: absolute;
    top: 50px;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 150px;
    display: none;
    z-index: 1001;
    overflow: hidden;
}

.user-menu.show {
    display: block;
    animation: slideDown 0.2s ease-out;
}

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

.user-menu-item {
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-menu-item:hover {
    background: #f8f9ff;
    color: #667eea;
}

.user-menu-item::before {
    content: '';
    font-size: 16px;
}

.user-menu-item:nth-child(1)::before {
    content: '👤';
}

.user-menu-item:nth-child(2)::before {
    content: '🔄';
}

.user-menu-item:nth-child(3)::before {
    content: '📍';
}

.user-menu-item:nth-child(5)::before {
    content: '🚪';
}

.user-menu-divider {
    height: 1px;
    background: #e0e0e0;
    margin: 5px 0;
}

.notification-icon {
    position: relative;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s;
}

.notification-icon:hover {
    background: #f0f0f0;
}

.notification-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #ff4757;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.notification-dropdown {
    position: absolute;
    top: 60px;
    right: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    width: 350px;
    max-height: 500px;
    overflow-y: auto;
    z-index: 1001;
    display: none;
}

.notification-dropdown.active {
    display: block;
}

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

.notification-header h4 {
    margin: 0;
    font-size: 16px;
    color: #333;
}

.notification-clear {
    color: #667eea;
    cursor: pointer;
    font-size: 14px;
    border: none;
    background: none;
}

.notification-clear:hover {
    text-decoration: underline;
}

.notification-list {
    max-height: 400px;
    overflow-y: auto;
}

.notification-item {
    padding: 15px 20px;
    border-bottom: 1px solid #f5f5f5;
    cursor: pointer;
    transition: background 0.3s;
}

.notification-item:hover {
    background: #f8f9ff;
}

.notification-item.unread {
    background: #f0f7ff;
}

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

.notification-type {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.notification-type-icon {
    font-size: 18px;
}

.notification-type-text {
    font-weight: bold;
    color: #333;
    font-size: 14px;
}

.notification-content {
    color: #666;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 8px;
}

.notification-time {
    font-size: 12px;
    color: #999;
}

.notification-empty {
    padding: 40px 20px;
    text-align: center;
    color: #999;
}

.container {
    display: flex;
    margin-top: 80px;
    min-height: calc(100vh - 80px);
}

.sidebar {
    width: 250px;
    background: rgba(255, 255, 255, 0.95);
    padding: 20px 0;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    left: 0;
    top: 80px;
    bottom: 0;
    overflow-y: auto;
}

.nav-item {
    padding: 15px 25px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #555;
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background: #f5f5f5;
    color: #667eea;
}

.nav-item.active {
    background: #f0f0ff;
    color: #667eea;
    border-left-color: #667eea;
}

.nav-item-icon {
    font-size: 18px;
}

.submenu-arrow {
    margin-left: auto;
    font-size: 12px;
    transition: transform 0.3s;
}

.nav-item.expanded .submenu-arrow {
    transform: rotate(180deg);
}

.submenu {
    display: none;
    background: #f8f8f8;
}

.nav-item.expanded + .submenu {
    display: block;
}

.nav-item-child {
    padding: 12px 25px 12px 55px;
    cursor: pointer;
    transition: all 0.3s;
    color: #666;
    border-left: 3px solid transparent;
}

.nav-item-child:hover {
    background: #e8e8e8;
    color: #667eea;
}

.nav-item-child.active {
    background: #e8e8ff;
    color: #667eea;
    border-left-color: #667eea;
}

.main-content {
    flex: 1;
    margin-left: 250px;
    padding: 30px;
}

.page {
    display: none;
}

.page.active {
    display: block;
}

.page-title {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #667eea;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.info-section {
    margin-bottom: 30px;
}

.info-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.info-title {
    font-size: 18px;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 15px;
}

.info-text {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.info-example {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

.example-title {
    font-size: 16px;
    font-weight: bold;
    color: #4facfe;
    margin-bottom: 15px;
}

.example-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

.example-label {
    font-weight: 600;
    color: #667eea;
    min-width: 150px;
}

.example-desc {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

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

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 15px;
}

.card-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.card-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.card-count {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.count-number {
    font-size: 24px;
    font-weight: bold;
    color: #667eea;
}

.count-label {
    font-size: 12px;
    color: #999;
}

.table-container {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

th {
    background: #f8f9ff;
    color: #667eea;
    font-weight: bold;
}

tr:hover {
    background: #f5f5f5;
}

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

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

.status-processing {
    background: #cce5ff;
    color: #004085;
}

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

.timeout-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    display: inline-block;
}

.timeout-yes {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
    animation: pulse-red 2s infinite;
}

.timeout-no {
    background: #d4edda;
    color: #155724;
}

@keyframes pulse-red {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
    }
    50% {
        opacity: 0.8;
        box-shadow: 0 2px 12px rgba(255, 107, 107, 0.5);
    }
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: 2px solid transparent;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
    background: linear-gradient(135deg, #5568d3 0%, #6a4190 100%);
}

.btn-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: white;
    color: #333;
    border: 2px solid #e0e0e0;
}

.btn-secondary:hover {
    background: #f8f8f8;
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.btn-secondary:active {
    transform: translateY(0);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
}

.btn-sm.btn-primary {
    padding: 8px 18px;
}

.btn-sm.btn-secondary {
    padding: 8px 16px;
}

.btn-success {
    background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
    color: white;
    border: 2px solid transparent;
    font-weight: 700;
    padding: 12px 28px;
}

.btn-success:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 184, 148, 0.5);
    background: linear-gradient(135deg, #00a383 0%, #00b5b0 100%);
}

.btn-success:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0, 184, 148, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    border: 2px solid transparent;
}

.btn-danger:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.5);
    background: linear-gradient(135deg, #fa5252 0%, #e6496f 100%);
}

.btn-danger:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(255, 107, 107, 0.4);
}

.btn-warning {
    background: linear-gradient(135deg, #fdcb6e 0%, #f39c12 100%);
    color: white;
    border: 2px solid transparent;
}

.btn-warning:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(253, 203, 110, 0.5);
    background: linear-gradient(135deg, #f9ca24 0%, #f39c12 100%);
}

.btn-warning:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(253, 203, 110, 0.4);
}

.btn-action {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid;
    display: inline-block;
    margin-right: 8px;
}

.btn-action:last-child {
    margin-right: 0;
}

.btn-action-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
}

.btn-action-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5568d3 0%, #6a4190 100%);
}

.btn-action-secondary {
    background: white;
    border-color: #667eea;
    color: #667eea;
}

.btn-action-secondary:hover {
    background: #f8f9ff;
    border-color: #5568d3;
    color: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.btn-action-success {
    background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
    border-color: #00b894;
    color: white;
}

.btn-action-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 184, 148, 0.4);
    background: linear-gradient(135deg, #00a383 0%, #00b5b0 100%);
}

.btn-action-warning {
    background: linear-gradient(135deg, #fdcb6e 0%, #f39c12 100%);
    border-color: #fdcb6e;
    color: white;
}

.btn-action-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(253, 203, 110, 0.4);
    background: linear-gradient(135deg, #f9ca24 0%, #f39c12 100%);
}

.btn-action-danger {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    border-color: #ff6b6b;
    color: white;
}

.btn-action-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
    background: linear-gradient(135deg, #fa5252 0%, #e6496f 100%);
}

.btn-create {
    background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
    color: white;
    border: 2px solid transparent;
    font-weight: 700;
    padding: 14px 32px;
    font-size: 16px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 184, 148, 0.4);
    animation: pulse-green 2s infinite;
}

.btn-create:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 184, 148, 0.6);
    background: linear-gradient(135deg, #00a383 0%, #00b5b0 100%);
}

.btn-create:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0, 184, 148, 0.5);
}

@keyframes pulse-green {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(0, 184, 148, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(0, 184, 148, 0.6);
    }
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

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

.form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: #667eea;
}

.form-select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    cursor: pointer;
}

.file-upload-container {
    position: relative;
}

.file-upload-container input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-upload-preview {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    background: #f9f9f9;
    transition: all 0.3s;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.file-upload-preview:hover {
    border-color: #667eea;
    background: #f0f0ff;
}

.file-upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.upload-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.upload-text {
    font-size: 16px;
    font-weight: 600;
    color: #667eea;
}

.upload-hint {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

.file-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #f0f0ff;
    border: 1px solid #667eea;
    border-radius: 6px;
    font-size: 13px;
    color: #667eea;
}

.file-item-icon {
    font-size: 16px;
}

.file-item-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-item-remove {
    cursor: pointer;
    color: #ff6b6b;
    font-size: 18px;
    transition: all 0.3s;
}

.file-item-remove:hover {
    color: #fa5252;
    transform: scale(1.2);
}

.file-item-size {
    font-size: 12px;
    color: #999;
    margin-left: auto;
}

.file-item-download {
    font-size: 13px;
    color: #667eea;
    cursor: pointer;
    transition: all 0.3s;
}

.file-item-download:hover {
    color: #764ba2;
    text-decoration: underline;
}

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

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 12px;
    padding: 30px;
    max-width: 1000px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content-wide {
    background: white;
    border-radius: 12px;
    padding: 30px;
    max-width: 1400px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.form-row-half {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row-half .form-group {
    flex: 1;
    margin-bottom: 0;
}

.form-row-full {
    margin-bottom: 20px;
}

.form-row-full .form-group {
    margin-bottom: 0;
}

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

.modal-title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

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

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

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

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    border-color: #667eea;
}

.stat-card:active {
    transform: translateY(-2px);
}

.stat-value {
    font-size: 32px;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: #666;
}

.chart-container {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.chart-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
}

.search-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
    align-items: center;
    flex-wrap: wrap;
}

.search-input {
    flex: 1;
    min-width: 250px;
    padding: 14px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
    background: white;
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline-item {
    position: relative;
    padding-bottom: 30px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #ddd;
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-dot {
    position: absolute;
    left: -36px;
    top: 0;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #667eea;
    border: 3px solid white;
    box-shadow: 0 0 0 2px #667eea;
}

.timeline-date {
    font-size: 12px;
    color: #999;
    margin-bottom: 5px;
}

.timeline-content {
    background: #f8f9ff;
    padding: 15px;
    border-radius: 8px;
}

.timeline-title {
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.timeline-desc {
    font-size: 14px;
    color: #666;
}

@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        position: relative;
        top: 0;
    }

    .main-content {
        margin-left: 0;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .search-bar {
        flex-direction: column;
    }

    .search-input {
        width: 100%;
    }

    .form-select {
        width: 100%;
    }

    .table-container {
        overflow-x: auto;
    }

    table {
        font-size: 12px;
    }

    th, td {
        padding: 8px;
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 15px;
    }

    .logo {
        font-size: 18px;
    }

    .page-title {
        font-size: 22px;
    }

    .stat-value {
        font-size: 24px;
    }

    .btn {
        padding: 8px 16px;
        font-size: 12px;
    }
}

.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    font-weight: bold;
    animation: slideIn 0.3s ease-out;
}

.toast-success {
    background: #d4edda;
    color: #155724;
}

.toast-error {
    background: #f8d7da;
    color: #721c24;
}

.toast-warning {
    background: #fff3cd;
    color: #856404;
}

.toast-info {
    background: #d1ecf1;
    color: #0c5460;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

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

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

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(102, 126, 234, 0.3);
    border-radius: 50%;
    border-top-color: #667eea;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.tooltip {
    position: absolute;
    background: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    z-index: 10000;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}

.date-picker-wrapper {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    min-width: 150px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

.dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu-item {
    padding: 10px 15px;
    cursor: pointer;
    transition: background 0.2s;
}

.dropdown-menu-item:hover {
    background: #f8f9ff;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
    border-radius: 4px;
}

.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: bold;
}

.badge-primary {
    background: #667eea;
    color: white;
}

.badge-success {
    background: #28a745;
    color: white;
}

.badge-warning {
    background: #ffc107;
    color: #333;
}

.badge-danger {
    background: #dc3545;
    color: white;
}

.tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    margin: 2px;
}

.tag-info {
    background: #d1ecf1;
    color: #0c5460;
}

.tag-success {
    background: #d4edda;
    color: #155724;
}

.tag-warning {
    background: #fff3cd;
    color: #856404;
}

.tag-danger {
    background: #f8d7da;
    color: #721c24;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-state-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.empty-state-text {
    font-size: 16px;
    color: #666;
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%, #e0e0e0 100%);
    background-size: 200% 100%;
    animation: pulse 1.5s ease-in-out infinite;
    border-radius: 4px;
}

.skeleton-text {
    height: 16px;
    margin-bottom: 8px;
    border-radius: 4px;
}

.skeleton-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-bottom: 12px;
}

.skeleton-card {
    padding: 20px;
    background: white;
    border-radius: 12px;
}

.print-only {
    display: none;
}

/* 流程节点样式 */
.process-nodes {
    background: #f8f9ff;
    padding: 20px;
    border-radius: 8px;
    border: 2px dashed #667eea;
}

.node-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: white;
    border-radius: 6px;
    margin-bottom: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

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

.node-label {
    font-weight: 600;
    color: #333;
    flex: 1;
}

.node-item:last-child {
    margin-bottom: 0;
}

.node-desc {
    margin-top: 8px;
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

.sub-node-title {
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.sub-node-list {
    margin-left: 20px;
}

.sub-node-item {
    margin-bottom: 3px;
    color: #555;
}

.form-value {
    padding: 12px;
    background: #f8f9ff;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    margin-top: 5px;
    font-weight: 500;
    color: #333;
}

@media print {
    .no-print {
        display: none;
    }

    .print-only {
        display: block;
    }

    .sidebar {
        display: none;
    }

    .main-content {
        margin-left: 0;
    }

    .modal {
        position: static;
        box-shadow: none;
    }

    .btn {
        border: 1px solid #ddd;
    }
}

.accessibility-focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

.accessibility-focus-visible {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

.high-contrast-mode {
    filter: contrast(1.2);
}

.reduced-motion {
    animation: none;
    transition: none;
}