/* 顶部导航栏专用样式 */

/* 顶部导航容器 */
.top-nav {
    height: 70px;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #2563eb 100%) !important;
    border-bottom: 2px solid #1d4ed8;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    box-shadow: 0 4px 20px rgba(30, 58, 138, 0.3);
    position: relative;
    z-index: 100;
    backdrop-filter: blur(10px);
}

/* 导航区域布局 */
.nav-left {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 300px;
}

.nav-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 500px;
    justify-content: flex-end;
    flex-wrap: nowrap;
    flex-shrink: 0;
}

/* 品牌信息 */
.brand-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-title {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.version-tag {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
}



/* 面包屑导航 */
.breadcrumb {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 15px;
    backdrop-filter: blur(5px);
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.breadcrumb-item.active {
    color: #ffffff;
    font-weight: 600;
}

.breadcrumb-separator {
    margin: 0 8px;
    color: rgba(255, 255, 255, 0.5);
}

/* 功能按钮组 */
.function-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* 分隔线 */
.nav-divider {
    width: 1px;
    height: 30px;
    background: rgba(255, 255, 255, 0.3);
    margin: 0 8px;
}

/* 顶部导航按钮样式 */
.top-nav .btn-icon {
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    padding: 10px 16px !important;
    border-radius: 8px !important;
    cursor: pointer;
    transition: all 0.3s ease !important;
    color: rgba(255, 255, 255, 0.9) !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    backdrop-filter: blur(5px) !important;
    min-height: 40px !important;
    min-width: 80px !important;
    position: relative;
    white-space: nowrap !important;
}

.top-nav .btn-icon:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
}

.top-nav .btn-icon:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
}

/* 通知徽章 */
.notification-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #1e3a8a;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* 认证按钮样式 */
.auth-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    border: none !important;
    color: #ffffff !important;
    padding: 12px 24px !important;
    border-radius: 25px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    cursor: pointer;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3) !important;
    min-width: 90px !important;
    white-space: nowrap !important;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4) !important;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    color: #ffffff !important;
    padding: 12px 24px !important;
    border-radius: 25px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    cursor: pointer;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    backdrop-filter: blur(10px) !important;
    min-width: 90px !important;
    white-space: nowrap !important;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2) !important;
}

/* 菜单切换按钮 */
#menu-toggle {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

#menu-toggle:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
}

/* 用户信息区域 */
.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar-container {
    position: relative;
}

.user-avatar-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    object-fit: cover;
}

.user-status {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #1e3a8a;
}

.user-status.online {
    background: #10b981;
}

.user-status.offline {
    background: #6b7280;
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.user-name {
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    line-height: 1;
}

.user-level {
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    padding: 2px 6px;
    border-radius: 8px;
    font-weight: 500;
}

/* 用户菜单 */
.user-menu {
    position: relative;
}

.user-menu-toggle {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: rgba(255, 255, 255, 0.8) !important;
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    font-size: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    padding: 0 !important;
}

.user-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    color: #ffffff !important;
    transform: rotate(180deg) !important;
}

/* 用户下拉菜单 */
.user-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(30, 58, 138, 0.1);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(30, 58, 138, 0.15), 0 8px 16px rgba(0, 0, 0, 0.1);
    min-width: 220px;
    z-index: 1000;
    display: none;
    overflow: hidden;
    backdrop-filter: blur(20px);
}

.user-dropdown.show {
    display: block;
    animation: dropdownFadeIn 0.3s ease-out;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-15px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.dropdown-header {
    padding: 16px;
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.user-info-detail strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}

.user-info-detail small {
    font-size: 12px;
    opacity: 0.8;
}

.dropdown-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #e5e7eb 50%, transparent 100%);
    margin: 8px 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #374151;
    text-decoration: none;
    transition: all 0.3s ease;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    position: relative;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    color: #1e3a8a;
    transform: translateX(4px);
}

.dropdown-item.logout-item {
    color: #dc2626;
    border-top: 1px solid #fee2e2;
    margin-top: 4px;
}

.dropdown-item.logout-item:hover {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    color: #b91c1c;
}

.dropdown-item i {
    width: 18px;
    text-align: center;
    font-size: 14px;
}

.dropdown-item span {
    flex: 1;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .nav-center {
        min-width: 200px;
    }
    
    .nav-right {
        min-width: 300px;
    }
}

@media (max-width: 768px) {
    .top-nav {
        padding: 0 16px;
        height: 60px;
    }
    
    .nav-left {
        min-width: auto;
        gap: 12px;
    }
    
    .page-title {
        font-size: 16px;
    }
    
    .version-tag {
        display: none;
    }
    
    .nav-center {
        min-width: auto;
        flex: 1;
    }
    

    
    .breadcrumb {
        font-size: 12px;
        padding: 4px 8px;
    }
    
    .nav-right {
        min-width: auto;
        gap: 8px;
    }
    
    .function-buttons {
        gap: 6px;
    }
    
    .top-nav .btn-icon {
        padding: 6px 8px;
        font-size: 12px;
        min-height: 32px;
    }
    
    .top-nav .btn-icon span {
        display: none;
    }
    
    .btn-primary, .btn-secondary {
        padding: 8px 12px !important;
        font-size: 12px !important;
    }
    
    .user-info {
        padding: 6px 12px;
    }
    
    .user-details {
        display: none;
    }
    
    .user-dropdown {
        min-width: 180px;
        right: -20px;
    }
}

@media (max-width: 480px) {
    .top-nav {
        padding: 0 12px;
    }
    
    .function-buttons .btn-icon:not(#notifications-btn) {
        display: none;
    }
    
    .auth-buttons .btn-secondary {
        display: none;
    }
    
    .breadcrumb {
        display: none;
    }
}

/* ==================== 模态框样式 ==================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 90vw;
    max-height: 90vh;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease-out;
}

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

.modal-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    color: white;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e5e7eb;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

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

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

/* ==================== 帮助中心样式 ==================== */

.help-modal {
    width: 800px;
}

.help-sections {
    display: grid;
    gap: 24px;
}

.help-section {
    background: #f8fafc;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
}

.help-section h4 {
    margin: 0 0 12px 0;
    color: #1e40af;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.help-section p {
    margin: 0 0 12px 0;
    color: #64748b;
    line-height: 1.6;
}

.help-section ul {
    margin: 0;
    padding-left: 20px;
    color: #64748b;
}

.help-section li {
    margin-bottom: 8px;
    line-height: 1.5;
}

kbd {
    background: #e2e8f0;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    padding: 2px 6px;
    font-family: monospace;
    font-size: 12px;
    color: #475569;
}

/* ==================== 历史记录样式 ==================== */

.history-modal {
    width: 900px;
}

.history-list {
    display: grid;
    gap: 16px;
    max-height: 500px;
    overflow-y: auto;
}

.history-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
}

.history-item:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.history-thumbnail {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    background: #e2e8f0;
}

.history-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.history-info {
    flex: 1;
}

.history-info h5 {
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}

.history-time {
    margin: 0 0 4px 0;
    font-size: 12px;
    color: #64748b;
}

.history-status {
    margin: 0;
    font-size: 12px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 12px;
    display: inline-block;
}

.status-completed {
    background: #dcfce7;
    color: #166534;
}

.status-processing {
    background: #fef3c7;
    color: #92400e;
}

.status-failed {
    background: #fee2e2;
    color: #dc2626;
}

.history-actions {
    display: flex;
    gap: 8px;
}

.btn-icon {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #64748b;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.btn-icon:hover {
    background: #e2e8f0;
    color: #475569;
}

.btn-danger {
    background: #fee2e2;
    border-color: #fecaca;
    color: #dc2626;
}

.btn-danger:hover {
    background: #fecaca;
    color: #b91c1c;
}

.empty-state {
    text-align: center;
    color: #64748b;
    padding: 40px;
    font-style: italic;
}

/* ==================== 收藏样式 ==================== */

.favorites-modal {
    width: 800px;
}

.favorites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    max-height: 500px;
    overflow-y: auto;
}

/* ==================== 通知样式 ==================== */

.notifications-modal {
    width: 600px;
}

.notification-actions-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-link {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    font-size: 14px;
    text-decoration: underline;
    transition: color 0.2s;
}

.btn-link:hover {
    color: white;
}

.notifications-list {
    display: grid;
    gap: 12px;
    max-height: 500px;
    overflow-y: auto;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #e2e8f0;
    transition: all 0.2s;
}

.notification-item.unread {
    background: #eff6ff;
    border-left-color: #3b82f6;
}

.notification-item:hover {
    background: #f1f5f9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.notification-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.notification-icon.info {
    background: #dbeafe;
    color: #1d4ed8;
}

.notification-icon.success {
    background: #dcfce7;
    color: #166534;
}

.notification-icon.warning {
    background: #fef3c7;
    color: #92400e;
}

.notification-content {
    flex: 1;
    cursor: pointer;
    transition: background-color 0.2s ease;
    padding: 8px;
    border-radius: 4px;
}

.notification-content:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

.notification-content h5 {
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}

.notification-content p {
    margin: 0 0 8px 0;
    font-size: 13px;
    color: #64748b;
    line-height: 1.4;
}

.notification-time {
    font-size: 11px;
    color: #94a3b8;
}

.notification-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.notification-item:hover .notification-actions {
    opacity: 1;
}

.notification-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.notification-category {
    font-size: 11px;
    background: #e9ecef;
    color: #495057;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 500;
}

/* 通知优先级样式 */
.priority-indicator {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background: #dc3545;
    border-radius: 50%;
    border: 2px solid white;
}

.priority-high {
    border-left: 4px solid #dc3545;
}

.priority-normal {
    border-left: 4px solid #007bff;
}

.priority-low {
    border-left: 4px solid #6c757d;
}

/* 通知工具栏样式 */
.notifications-toolbar {
    padding: 16px;
    border-bottom: 1px solid #e9ecef;
    background: #f8f9fa;
}

.notification-search {
    position: relative;
    margin-bottom: 12px;
}

.notification-search input {
    width: 100%;
    padding: 8px 12px 8px 36px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
}

.notification-search input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.notification-search i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
}

.notification-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.notification-filters select {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    background: white;
    outline: none;
    cursor: pointer;
}

.notification-batch-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-sm {
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 4px;
}

/* 通知分页样式 */
.notifications-pagination {
    padding: 16px;
    text-align: center;
    border-top: 1px solid #e9ecef;
}

/* 通知详情模态框样式 */
.notification-detail-modal {
    max-width: 500px;
    width: 90%;
}

.notification-detail-content {
    padding: 16px 0;
}

.notification-detail-meta {
    margin-top: 16px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.notification-detail-meta span {
    font-size: 14px;
    color: #495057;
}

.notification-detail-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    padding-top: 16px;
    border-top: 1px solid #e9ecef;
}

/* 通知设置模态框样式 */
.notification-settings-modal {
    max-width: 600px;
    width: 90%;
}

.settings-section {
    margin-bottom: 24px;
}

.settings-section h4 {
    margin-bottom: 12px;
    color: #495057;
    font-size: 16px;
    font-weight: 600;
}

.setting-item {
    margin-bottom: 12px;
    padding: 12px;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    transition: border-color 0.3s ease;
}

.setting-item:hover {
    border-color: #007bff;
}

.setting-item label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    margin: 0;
}

.setting-item input[type="checkbox"] {
    margin-top: 2px;
}

.setting-desc {
    font-size: 13px;
    color: #6c757d;
    margin-top: 4px;
    display: block;
}

/* 通知项选中状态 */
.notification-item.selected {
    background-color: rgba(0, 123, 255, 0.1);
    border-color: #007bff;
}

/* 通知模态框增强样式 */
.notifications-modal {
    max-width: 800px;
    width: 95%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

.notifications-modal .modal-body {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.notifications-list {
    flex: 1;
    overflow-y: auto;
    max-height: 400px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .notification-filters {
        flex-direction: column;
    }
    
    .notification-batch-actions {
        justify-content: center;
    }
    
    .notification-detail-actions {
        flex-direction: column;
    }
    
    .notifications-modal {
        width: 98%;
        max-height: 90vh;
    }
}

/* ==================== 设置样式 ==================== */

.settings-modal {
    width: 800px;
}

.settings-tabs {
    display: flex;
    flex-direction: column;
}

.tab-nav {
    display: flex;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 24px;
}

.tab-btn {
    background: none;
    border: none;
    padding: 12px 24px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.tab-btn.active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
}

.tab-btn:hover {
    color: #475569;
}

.tab-content {
    min-height: 400px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

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

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #374151;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.avatar-upload {
    display: flex;
    align-items: center;
    gap: 16px;
}

.avatar-preview {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e2e8f0;
}

.preference-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

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

.preference-item label {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.preference-item select {
    width: auto;
    min-width: 150px;
}

/* ==================== 账单样式 ==================== */

.billing-modal {
    width: 800px;
}

.billing-overview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 32px;
}

.billing-card {
    background: #f8fafc;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.billing-card h4 {
    margin: 0 0 12px 0;
    color: #1e293b;
    font-size: 16px;
    font-weight: 600;
}

.plan-name {
    font-size: 18px;
    font-weight: 700;
    color: #3b82f6;
    margin: 0 0 4px 0;
}

.plan-price {
    font-size: 24px;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 8px 0;
}

.plan-expire,
.usage-count,
.usage-storage {
    font-size: 14px;
    color: #64748b;
    margin: 4px 0;
}

.billing-history h4 {
    margin: 0 0 16px 0;
    color: #1e293b;
    font-size: 16px;
    font-weight: 600;
}

.billing-list {
    display: grid;
    gap: 8px;
    max-height: 300px;
    overflow-y: auto;
}

.billing-item {
    display: grid;
    grid-template-columns: 100px 1fr 80px 80px;
    gap: 16px;
    align-items: center;
    padding: 12px 16px;
    background: #f8fafc;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    font-size: 14px;
}

.billing-date {
    color: #64748b;
    font-weight: 500;
}

.billing-desc {
    color: #1e293b;
    font-weight: 500;
}

.billing-amount {
    color: #1e293b;
    font-weight: 600;
    text-align: right;
}

.billing-status {
    text-align: center;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
}

.billing-status.success {
    background: #dcfce7;
    color: #166534;
}

/* ==================== 统计样式 ==================== */

.usage-modal {
    width: 900px;
}

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

.stat-card {
    background: #f8fafc;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: #3b82f6;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.stat-info h4 {
    margin: 0 0 4px 0;
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
}

.stat-info p {
    margin: 0;
    font-size: 14px;
    color: #64748b;
}

.stats-charts {
    border-top: 1px solid #e2e8f0;
    padding-top: 24px;
}

.chart-container h4 {
    margin: 0 0 16px 0;
    color: #1e293b;
    font-size: 16px;
    font-weight: 600;
}

.chart-placeholder {
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    color: #64748b;
    font-style: italic;
}

/* ==================== 反馈样式 ==================== */

.feedback-modal {
    width: 600px;
}

.form-actions {
    margin-top: 24px;
    text-align: right;
}

.form-actions .btn-primary {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* ==================== 响应式设计 ==================== */

/* 大屏幕优化 (1400px+) */
@media (min-width: 1400px) {
    .nav-right {
        min-width: 600px;
        gap: 20px;
    }
    
    .function-buttons {
        gap: 16px;
    }
    
    .auth-buttons {
        gap: 16px;
    }
}

/* 中等屏幕 (1200px - 1399px) */
@media (max-width: 1399px) and (min-width: 1200px) {
    .nav-right {
        min-width: 480px;
        gap: 14px;
    }
}

/* 小屏幕 (992px - 1199px) */
@media (max-width: 1199px) and (min-width: 992px) {
    .nav-right {
        min-width: 420px;
        gap: 12px;
    }
    
    .top-nav .btn-icon {
        padding: 8px 12px !important;
        font-size: 13px !important;
        min-width: 70px !important;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 10px 18px !important;
        font-size: 13px !important;
        min-width: 80px !important;
    }
}

/* 平板屏幕 (768px - 991px) */
@media (max-width: 991px) and (min-width: 768px) {
    .nav-right {
        min-width: 350px;
        gap: 10px;
    }
    
    .function-buttons {
        gap: 8px;
    }
    
    .auth-buttons {
        gap: 8px;
    }
    
    .top-nav .btn-icon span {
        display: none;
    }
    
    .top-nav .btn-icon {
        padding: 8px !important;
        min-width: 36px !important;
        justify-content: center !important;
    }
    
    .btn-primary span,
    .btn-secondary span {
        display: none;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 10px !important;
        min-width: 40px !important;
        justify-content: center !important;
    }
}

/* 手机屏幕 (576px - 767px) */
@media (max-width: 767px) and (min-width: 576px) {
    .top-nav {
        padding: 0 16px;
    }
    
    .nav-left {
        min-width: 200px;
    }
    
    .nav-right {
        min-width: 280px;
        gap: 8px;
    }
    
    .function-buttons {
        gap: 6px;
    }
    
    .auth-buttons {
        gap: 6px;
    }
    
    .top-nav .btn-icon span {
        display: none;
    }
    
    .top-nav .btn-icon {
        padding: 6px !important;
        min-width: 32px !important;
        min-height: 32px !important;
        font-size: 12px !important;
        justify-content: center !important;
    }
    
    .btn-primary span,
    .btn-secondary span {
        display: none;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 8px !important;
        min-width: 36px !important;
        min-height: 36px !important;
        justify-content: center !important;
        font-size: 12px !important;
    }
    
    .page-title {
        font-size: 16px;
    }
    
    .nav-center {
        display: none;
    }
}

/* 小手机屏幕 (最大575px) */
@media (max-width: 575px) {
    .top-nav {
        padding: 0 12px;
    }
    
    .nav-left {
        min-width: 150px;
    }
    
    .nav-right {
        min-width: 200px;
        gap: 6px;
    }
    
    .function-buttons {
        gap: 4px;
    }
    
    .auth-buttons {
        gap: 4px;
    }
    
    /* 隐藏帮助按钮和通知按钮，只保留核心功能 */
    #help-btn,
    #notifications-btn {
        display: none !important;
    }
    
    .top-nav .btn-icon span {
        display: none;
    }
    
    .top-nav .btn-icon {
        padding: 4px !important;
        min-width: 28px !important;
        min-height: 28px !important;
        font-size: 11px !important;
        justify-content: center !important;
    }
    
    .btn-primary span,
    .btn-secondary span {
        display: none;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 6px !important;
        min-width: 32px !important;
        min-height: 32px !important;
        justify-content: center !important;
        font-size: 11px !important;
    }
    
    .page-title {
        font-size: 14px;
    }
    
    .version-tag {
        display: none;
    }
    
    .nav-center {
        display: none;
    }
    
    .nav-divider {
        display: none;
    }
}

/* 主题切换器样式 */
.theme-switcher {
    position: relative;
    display: inline-block;
}

.theme-toggle {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: rgba(255, 255, 255, 0.9) !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    font-size: 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    padding: 0 !important;
    backdrop-filter: blur(10px) !important;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2) !important;
}

.theme-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(30, 58, 138, 0.1);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(30, 58, 138, 0.15), 0 8px 16px rgba(0, 0, 0, 0.1);
    min-width: 180px;
    z-index: 1000;
    display: none;
    overflow: hidden;
    backdrop-filter: blur(20px);
    animation: themeDropdownFadeIn 0.3s ease-out;
}

@keyframes themeDropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-15px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.theme-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #374151;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
}

.theme-option:last-child {
    border-bottom: none;
}

.theme-option:hover {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    color: #1f2937;
    transform: translateX(4px);
}

.theme-option.active {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
    border-left: 3px solid #2563eb;
}

.theme-option.active:hover {
    background: linear-gradient(135deg, #bfdbfe 0%, #93c5fd 100%);
    color: #1d4ed8;
}

.theme-option i {
    width: 16px;
    text-align: center;
    font-size: 14px;
}

.theme-option .fa-sun {
    color: #f59e0b;
}

.theme-option .fa-moon {
    color: #6366f1;
}

.theme-option .fa-desktop {
    color: #6b7280;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .theme-toggle {
        width: 32px !important;
        height: 32px !important;
        font-size: 14px !important;
    }
    
    .theme-dropdown {
        min-width: 160px;
        right: -20px;
    }
    
    .theme-option {
        padding: 10px 14px;
        font-size: 13px;
    }
}