/* 红色主题美化 - Red Theme Enhancement */

/* 导航栏样式优?*/
.navbar-fixed-top {
    background: linear-gradient(135deg, #dc143c 0%, #ff1744 100%) !important;
    box-shadow: 0 4px 12px rgba(220, 20, 60, 0.3) !important;
}

.navbar-brand {
    color: #fff !important;
    font-weight: 700 !important;
    font-size: 18px !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.navbar-brand:hover {
    color: #fff !important;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* 导航链接 */
.nav > li > a {
    color: #fff !important;
    transition: all 0.3s ease !important;
}

.nav > li > a:hover {
    color: #fff !important;
    background-color: rgba(255, 255, 255, 0.15) !important;
    border-bottom: 3px solid #fff !important;
}

.navbar-nav > .active > a,
.navbar-nav > .active > a:hover,
.navbar-nav > .active > a:focus {
    background-color: rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
}

/* 下拉菜单 */
.dropdown-menu {
    border-top: 3px solid #dc143c !important;
    box-shadow: 0 4px 12px rgba(220, 20, 60, 0.2) !important;
}

.dropdown-menu > li > a:hover {
    background-color: #ffe6e6 !important;
    color: #dc143c !important;
}

.dropdown-menu > li > a {
    color: #333 !important;
}

/* 按钮样式 */
.btn-primary {
    background: linear-gradient(135deg, #dc143c, #ff1744) !important;
    border: none !important;
    box-shadow: 0 4px 8px rgba(220, 20, 60, 0.3) !important;
    transition: all 0.3s ease !important;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #ff1744, #dc143c) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 15px rgba(220, 20, 60, 0.4) !important;
}

.btn-danger {
    background: linear-gradient(135deg, #dc143c, #ff1744) !important;
    border: none !important;
    box-shadow: 0 4px 8px rgba(220, 20, 60, 0.3) !important;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #ff1744, #dc143c) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 15px rgba(220, 20, 60, 0.4) !important;
}

.btn-default {
    background: #fff !important;
    border: 2px solid #dc143c !important;
    color: #dc143c !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.btn-default:hover {
    background: #dc143c !important;
    color: #fff !important;
    transform: translateY(-2px) !important;
}

/* 卡片和面?*/
.panel {
    border: none !important;
    box-shadow: 0 2px 8px rgba(220, 20, 60, 0.1) !important;
    border-top: 4px solid #dc143c !important;
    transition: all 0.3s ease !important;
}

.panel:hover {
    box-shadow: 0 4px 16px rgba(220, 20, 60, 0.2) !important;
    transform: translateY(-2px) !important;
}

.panel-heading {
    background: linear-gradient(135deg, #dc143c, #ff1744) !important;
    color: #fff !important;
    border-color: transparent !important;
    font-weight: 600 !important;
}

.panel-primary > .panel-heading {
    background: linear-gradient(135deg, #dc143c, #ff1744) !important;
    border-color: transparent !important;
}

/* 表单元素 */
.form-control:focus {
    border-color: #dc143c !important;
    box-shadow: 0 0 0 3px rgba(220, 20, 60, 0.1) !important;
}

.form-control {
    border: 1px solid #ddd !important;
    transition: all 0.3s ease !important;
}

.form-control:hover {
    border-color: #ff1744 !important;
}

/* 页面标题 */
h1, h2, h3 {
    color: #333 !important;
}

.page-header {
    border-bottom: 3px solid #dc143c !important;
    padding-bottom: 15px !important;
}

.page-header h1,
.page-header h2 {
    color: #dc143c !important;
    font-weight: 700 !important;
}

/* 列表?*/
.list-group-item:hover {
    background-color: #ffe6e6 !important;
    border-left: 4px solid #dc143c !important;
}

.list-group-item.active {
    background: linear-gradient(135deg, #dc143c, #ff1744) !important;
    border-color: transparent !important;
}

/* 标签 */
.label-primary {
    background: linear-gradient(135deg, #dc143c, #ff1744) !important;
}

.label-danger {
    background: linear-gradient(135deg, #dc143c, #ff1744) !important;
}

/* 徽章 */
.badge {
    background: #dc143c !important;
    box-shadow: 0 2px 6px rgba(220, 20, 60, 0.3) !important;
}

/* 进度?*/
.progress-bar {
    background: linear-gradient(135deg, #dc143c, #ff1744) !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

/* 告警?*/
.alert-danger {
    background-color: #ffe6e6 !important;
    border: 2px solid #dc143c !important;
    color: #dc143c !important;
    border-radius: 4px !important;
    padding: 15px !important;
}

.alert-danger strong {
    color: #dc143c !important;
    font-weight: 700 !important;
}

.alert-success {
    background-color: #e6ffe6 !important;
    border: 2px solid #28a745 !important;
    color: #155724 !important;
}

.alert-info {
    background-color: #e6f2ff !important;
    border: 2px solid #004085 !important;
    color: #004085 !important;
}

.alert-warning {
    background-color: #fff3cd !important;
    border: 2px solid #ff9800 !important;
    color: #856404 !important;
}

/* 分页 */
.pagination > li > a,
.pagination > li > span {
    color: #dc143c !important;
    border-color: #ddd !important;
}

.pagination > li > a:hover {
    background-color: #ffe6e6 !important;
    border-color: #dc143c !important;
    color: #dc143c !important;
}

.pagination > .active > a,
.pagination > .active > a:hover,
.pagination > .active > span {
    background: linear-gradient(135deg, #dc143c, #ff1744) !important;
    border-color: transparent !important;
}

/* 表格 */
table > thead > tr > th {
    background: linear-gradient(135deg, #dc143c, #ff1744) !important;
    color: #fff !important;
    font-weight: 700 !important;
    border-color: #c00 !important;
}

table > tbody > tr:hover {
    background-color: #ffe6e6 !important;
}

table > tbody > tr > td.active {
    background-color: #ffe6e6 !important;
}

/* 模态框 */
.modal-header {
    background: linear-gradient(135deg, #dc143c, #ff1744) !important;
    color: #fff !important;
    border-color: transparent !important;
}

.modal-header .close {
    color: #fff !important;
    opacity: 0.8 !important;
}

.modal-header .close:hover {
    opacity: 1 !important;
}

/* 底部样式 */
.footer {
    background: linear-gradient(135deg, #f5f5f5 0%, #fff 100%) !important;
    border-top: 3px solid #dc143c !important;
    padding: 20px 0 !important;
}

.copyright {
    color: #666 !important;
    font-size: 14px !important;
    margin: 15px 0 !important;
}

.copyright a {
    color: #dc143c !important;
    font-weight: 600 !important;
}

.copyright a:hover {
    color: #ff1744 !important;
    text-decoration: underline !important;
}

/* 相关链接 */
a {
    color: #dc143c !important;
    transition: all 0.3s ease !important;
}

a:hover {
    color: #ff1744 !important;
    text-decoration: underline !important;
}

/* 响应式微?*/
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 14px !important;
    }
    
    .btn {
        padding: 8px 12px !important;
        font-size: 12px !important;
    }
    
    h1 { font-size: 24px !important; }
    h2 { font-size: 20px !important; }
    h3 { font-size: 16px !important; }
}

/* 动画过渡 */
* {
    transition: all 0.3s ease !important;
}

/* 阴影效果 */
.box-shadow {
    box-shadow: 0 4px 12px rgba(220, 20, 60, 0.15) !important;
}

.box-shadow-lg {
    box-shadow: 0 8px 20px rgba(220, 20, 60, 0.2) !important;
}

/* 背景渐变 */
.bg-red-gradient {
    background: linear-gradient(135deg, #dc143c 0%, #ff1744 100%) !important;
}

.bg-light-red-gradient {
    background: linear-gradient(135deg, #ffe6e6 0%, #fff0f0 100%) !important;
}

/* 文本颜色 */
.text-danger {
    color: #dc143c !important;
}

.text-danger:hover {
    color: #ff1744 !important;
}

/* 边框颜色 */
.border-danger {
    border-color: #dc143c !important;
}

/* 浮动按钮 */
.fab {
    background: linear-gradient(135deg, #dc143c, #ff1744) !important;
    box-shadow: 0 4px 12px rgba(220, 20, 60, 0.3) !important;
}

.fab:hover {
    box-shadow: 0 6px 16px rgba(220, 20, 60, 0.4) !important;
}
