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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #2d3748;
    background-color: #faf8f3;
}

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

.ites-navbar {
    background-color: #2c3e50;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.ites-navbar .ites-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ites-navbar-brand {
    color: #fff;
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
}

.ites-navbar-nav {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.ites-navbar-nav a {
    color: #ecf0f1;
    text-decoration: none;
    transition: color 0.3s;
}

.ites-navbar-nav a:hover {
    color: #3498db;
}

.auth-container {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 2rem;
    width: 100%;
    max-width: 400px;
}

.auth-card h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.ites-form-group {
    margin-bottom: 1.5rem;
}

.ites-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #555;
    font-weight: 500;
}

.ites-form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.ites-form-control:focus {
    outline: none;
    border-color: #3498db;
}

.ites-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
    text-decoration: none;
    text-align: center;
}

.ites-btn-primary {
    background-color: #3498db;
    color: white;
}

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

.ites-btn-secondary {
    background-color: #95a5a6;
    color: white;
}

.ites-btn-secondary:hover {
    background-color: #7f8c8d;
}

.ites-btn-secondary:disabled {
    background-color: #bdc3c7;
    color: #ecf0f1;
    cursor: not-allowed;
    opacity: 0.6;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.auth-footer a {
    color: #3498db;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.ites-alert {
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.ites-alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.ites-alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.ites-alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.hero {
    background: linear-gradient(135deg, #faf8f3 0%, #f5f2ec 100%);
    color: #2d3748;
    padding: 5rem 0;
    text-align: center;
    border-bottom: 1px solid #ebe6dd;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background-color: #a83232;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #2d3748;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: #6c665e;
}

.features {
    padding: 4rem 0;
    background-color: #faf8f3;
}

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

.feature-card {
    padding: 2rem;
    border-radius: 8px;
    background-color: #ffffff;
    border: 1px solid #ebe6dd;
    border-left: 3px solid #a83232;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(168, 50, 50, 0.08);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 8px;
    background-color: #fbeaea;
    color: #a83232;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

.feature-card h3 {
    color: #2d3748;
    margin-bottom: 1rem;
    font-weight: 600;
}

.feature-card p {
    color: #6c665e;
}

.footer {
    background-color: #2d3748;
    color: #e8e6e1;
    padding: 2rem 0;
    text-align: center;
    border-top: 3px solid #a83232;
}

/* 全站主按钮统一印泥红 */
.btn-primary {
    background-color: #a83232;
    border-color: #a83232;
}
.btn-primary:hover,
.btn-primary:focus {
    background-color: #8b2828;
    border-color: #8b2828;
}
.btn-outline-primary {
    color: #a83232;
    border-color: #a83232;
}
.btn-outline-primary:hover {
    background-color: #a83232;
    border-color: #a83232;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .ites-navbar .ites-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .ites-navbar-nav {
        flex-direction: column;
        gap: 1rem;
    }
}

.custom-modal-overlay {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-modal-box {
    background-color: white;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.custom-modal-header {
    background-color: #2c3e50;
    color: white;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.custom-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
}

.custom-modal-close {
    font-size: 1.5rem;
    cursor: pointer;
    color: white;
    line-height: 1;
}

.custom-modal-close:hover {
    opacity: 0.7;
}

.custom-modal-body {
    padding: 1.5rem;
}

.custom-modal-footer {
    padding: 1rem 1.5rem;
    background-color: #f8f9fa;
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

.role-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.role-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.role-item:hover {
    border-color: #a83232;
    background-color: #faf8f3;
}

.role-item.selected {
    border-color: #a83232;
    background-color: #fbeaea;
}

.role-item input[type="radio"] {
    margin-right: 0.75rem;
    width: 1.2rem;
    height: 1.2rem;
    cursor: pointer;
}

.role-info {
    flex: 1;
}

.role-name {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

.role-detail {
    font-size: 0.875rem;
    color: #6c757d;
}

.device-info {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 1rem;
    margin-top: 1rem;
}

.device-detail-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

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

.device-label {
    font-weight: 600;
    color: #495057;
}

.device-value {
    color: #212529;
}

.user-info {
    display: flex;
    align-items: center;
    color: #ecf0f1;
    font-size: 0.9rem;
}

.user-info .separator {
    margin: 0 0.5rem;
    color: #7f8c8d;
}

.feedback-item {
    border-bottom: 1px solid #dee2e6;
    transition: background-color 0.2s;
}

.feedback-item:hover {
    background-color: #f8f9fa;
}

.feedback-header {
    cursor: pointer;
    padding: 0.75rem 0;
    user-select: none;
}

.feedback-type-icon {
    font-size: 1.2rem;
}

.feedback-toggle-icon {
    transition: transform 0.3s ease;
}

.feedback-detail {
    display: none;
    padding-bottom: 0.75rem;
    animation: slideDown 0.3s ease;
}

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

.feedback-content {
    border-left: 3px solid #6c757d;
}

.feedback-reply {
    border-left: 3px solid #198754;
}

.task-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #dee2e6;
}

.task-tab {
    padding: 0.75rem 1.5rem;
    border: none;
    background: none;
    font-size: 1rem;
    cursor: pointer;
    color: #6c757d;
    position: relative;
    transition: color 0.3s;
}

.task-tab:hover {
    color: #3498db;
}

.task-tab.active {
    color: #3498db;
    font-weight: 600;
}

.task-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #3498db;
}

.notification-badge {
    display: inline-block;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    margin-left: 5px;
    background-color: #e74c3c;
    color: white;
    font-size: 12px;
    line-height: 20px;
    text-align: center;
    border-radius: 10px;
    vertical-align: middle;
}

.todo-banner {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.todo-banner-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #fff;
    border-bottom: 1px solid #dee2e6;
}

.todo-banner-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
}

.todo-banner-header .btn-link {
    color: #3498db;
    text-decoration: none;
    padding: 5px 10px;
    border: 1px solid #3498db;
    border-radius: 5px;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.todo-banner-header .btn-link:hover {
    background-color: #3498db;
    color: white;
    border-color: #3498db;
}

.todo-banner-content {
    padding: 20px;
    max-height: 300px;
    overflow-y: auto;
    transition: max-height 0.3s ease;
    background-color: #fff;
}

.todo-banner-content.collapsed {
    max-height: 150px;
}

.todo-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    border-bottom: 2px solid #dee2e6;
    padding-bottom: 10px;
}

.todo-tab {
    padding: 8px 20px;
    border: none;
    background: transparent;
    color: #6c757d;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s;
    position: relative;
    font-weight: 500;
}

.todo-tab:hover {
    color: #3498db;
    background-color: #f8f9fa;
}

.todo-tab.active {
    color: #3498db;
    font-weight: 600;
    background-color: #e7f3ff;
}

.todo-content {
    display: none;
}

.todo-content.active {
    display: block;
}

.tasks-list-preview,
.notifications-list-preview {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.todo-banner .task-item,
.todo-banner .notification-item {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 15px;
    color: #333;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.todo-banner .task-header,
.todo-banner .notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.todo-banner .task-type,
.todo-banner .notification-type {
    background-color: #3498db;
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.todo-banner .notification-priority {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.todo-banner .priority-high {
    background-color: #e74c3c;
    color: white;
}

.todo-banner .priority-normal {
    background-color: #3498db;
    color: white;
}

.todo-banner .priority-low {
    background-color: #95a5a6;
    color: white;
}

.todo-banner .task-time,
.todo-banner .notification-time {
    font-size: 12px;
    color: #6c757d;
}

.todo-banner .task-title,
.todo-banner .notification-title {
    font-size: 14px;
    font-weight: 600;
    margin: 8px 0;
    color: #2c3e50;
}

.todo-banner .task-description,
.todo-banner .notification-content {
    font-size: 13px;
    color: #6c757d;
    margin-bottom: 10px;
    line-height: 1.4;
}

.todo-banner .task-actions,
.todo-banner .notification-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.todo-banner .btn {
    font-size: 12px;
    padding: 5px 12px;
}

.todo-banner .notification-actions {
    justify-content: flex-end;
    margin-bottom: 10px;
}

.task-content {
    display: none;
}

.task-content.active {
    display: block;
}

.tasks-list,
.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.task-item,
.notification-item {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1.25rem;
    transition: box-shadow 0.2s;
}

.task-item:hover,
.notification-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.task-header,
.notification-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.task-type,
.notification-type {
    background-color: #3498db;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
}

.notification-priority {
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
}

.priority-low {
    background-color: #d4edda;
    color: #155724;
}

.priority-normal {
    background-color: #d1ecf1;
    color: #0c5460;
}

.priority-high {
    background-color: #fff3cd;
    color: #856404;
}

.priority-urgent {
    background-color: #f8d7da;
    color: #721c24;
}

.task-time,
.notification-time {
    color: #6c757d;
    font-size: 0.875rem;
    margin-left: auto;
}

.task-title,
.notification-title {
    color: #2c3e50;
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.task-description,
.notification-content {
    color: #495057;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.task-actions,
.notification-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.notification-actions {
    justify-content: flex-end;
}

.notification-actions .btn {
    margin-left: 0.5rem;
}

.notification-actions .btn:first-child {
    margin-left: 0;
}

.notification-actions .btn {
    margin-left: 0.5rem;
}

.notification-actions .btn:first-child {
    margin-left: 0;
}
