/* 高级科技感消防器材管理系统样式 */

/* 引入外部资源 */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=Rajdhani:wght@300;400;500;600;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 科技感色彩系统 */
:root {
    /* 主色调 - 深蓝/深灰 */
    --bg-primary: #0a0e27;
    --bg-secondary: #131a3b;
    --bg-card: rgba(19, 26, 59, 0.8);
    --bg-card-hover: rgba(25, 35, 75, 0.9);
    
    /* 强调色 - 霓虹色调 */
    --accent-blue: #00d4ff;
    --accent-purple: #8b5cf6;
    --accent-cyan: #06b6d4;
    --accent-green: #10b981;
    --accent-red: #ef4444;
    
    /* 文本颜色 */
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    /* 边框和阴影 */
    --border-color: rgba(0, 212, 255, 0.2);
    --glow-blue: 0 0 15px rgba(0, 212, 255, 0.5);
    --glow-purple: 0 0 15px rgba(139, 92, 246, 0.5);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
    
    /* 渐变 */
    --gradient-primary: linear-gradient(135deg, #0a0e27 0%, #131a3b 100%);
    --gradient-accent: linear-gradient(135deg, #00d4ff 0%, #8b5cf6 100%);
    --gradient-card: linear-gradient(135deg, rgba(19, 26, 59, 0.8) 0%, rgba(25, 35, 75, 0.9) 100%);
}

/* 全局动画 */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px var(--accent-blue), 0 0 10px var(--accent-blue);
    }
    50% {
        box-shadow: 0 0 10px var(--accent-blue), 0 0 20px var(--accent-blue);
    }
}

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

/* 全局样式 */
body {
    font-family: 'Rajdhani', sans-serif;
    background: var(--gradient-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* 背景网格效果 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 212, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    animation: pulse 4s ease-in-out infinite;
}

/* 主容器 */
.container {
    display: flex;
    min-height: 100vh;
    overflow: hidden;
    position: relative;
}

/* 侧边导航栏 */
.sidebar {
    width: 200px;
    background: rgba(13, 17, 39, 0.95);
    backdrop-filter: blur(15px);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    z-index: 100;
    box-shadow: var(--shadow-card);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
}

/* 侧边栏头部 */
.sidebar-header {
    padding: 20px 15px;
    background: var(--gradient-accent);
    color: white;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.sidebar-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
    transform: translateX(-100%);
    animation: slideIn 3s infinite;
}

.sidebar-header h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 18px;
    margin: 0;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.sidebar-header h2 i {
    font-size: 18px;
    animation: pulse 2s infinite;
}

/* 侧边栏导航 */
.sidebar-nav {
    flex: 1;
    padding: 20px 0;
    overflow-y: auto;
}

.sidebar-nav::-webkit-scrollbar {
    width: 6px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: var(--accent-blue);
    border-radius: 3px;
    box-shadow: var(--glow-blue);
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: var(--accent-purple);
    box-shadow: var(--glow-purple);
}

.sidebar-nav ul {
    list-style: none;
    padding: 0 15px;
}

.sidebar-nav li {
    margin-bottom: 8px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.sidebar-nav a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-accent);
    transform: scaleY(0);
    transition: transform 0.3s ease;
    border-radius: 0 4px 4px 0;
}

.sidebar-nav a:hover {
    color: var(--text-primary);
    background: var(--bg-card-hover);
    border-color: var(--border-color);
    transform: translateX(5px);
    box-shadow: var(--shadow-card);
}

.sidebar-nav a:hover::before {
    transform: scaleY(1);
}

.sidebar-nav a.active {
    color: white;
    background: var(--gradient-accent);
    box-shadow: var(--glow-blue), var(--glow-purple);
    border-color: transparent;
}

.sidebar-nav a.active::before {
    transform: scaleY(1);
}

.sidebar-nav a i {
    font-size: 18px;
    width: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.sidebar-nav a:hover i,
.sidebar-nav a.active i {
    transform: scale(1.2);
}

/* 菜单分组标题 */
.nav-group-title {
    padding: 15px 20px;
    color: var(--accent-blue);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Orbitron', sans-serif;
    margin-top: 20px;
    margin-bottom: 10px;
    position: relative;
}

.nav-group-title::after {
    content: '';
    position: absolute;
    left: 20px;
    bottom: 10px;
    width: 50px;
    height: 2px;
    background: var(--gradient-accent);
    border-radius: 1px;
}

/* 主内容区域 */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: rgba(10, 14, 39, 0.8);
    backdrop-filter: blur(10px);
    margin-left: 200px;
    height: 100vh;
}

/* 顶部导航栏 */
.top-nav {
    background: rgba(19, 26, 59, 0.95);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 50;
    box-shadow: var(--shadow-card);
    position: sticky;
    top: 0;
}

.top-nav-left {
    display: flex;
    align-items: center;
    gap: 25px;
}

.top-nav h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 26px;
    color: var(--text-primary);
    margin: 0;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.top-nav h1 i {
    color: var(--accent-blue);
    text-shadow: var(--glow-blue);
    animation: pulse 2s infinite;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.breadcrumb a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: all 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--accent-purple);
    text-shadow: var(--glow-purple);
}

.breadcrumb i {
    color: var(--accent-blue);
    font-size: 12px;
}

.top-nav-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    padding: 10px 20px;
    border-radius: 30px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
}

.user-info:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-blue);
    box-shadow: var(--glow-blue);
    transform: translateY(-2px);
}

.user-info img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-blue);
    box-shadow: var(--glow-blue);
    transition: all 0.3s ease;
}

.user-info:hover img {
    border-color: var(--accent-purple);
    box-shadow: var(--glow-purple);
    transform: scale(1.1);
}

.user-info span {
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.user-info i {
    color: var(--accent-blue);
    transition: all 0.3s ease;
}

.user-info:hover i {
    color: var(--accent-purple);
    transform: rotate(180deg);
}

/* 内容区域 */
.content {
    flex: 1;
    padding: 15px 15px;
    overflow-y: auto;
    background: radial-gradient(circle at top right, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at bottom left, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    height: calc(100vh - 85px);
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
}

.content::-webkit-scrollbar {
    width: 8px;
}

.content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

.content::-webkit-scrollbar-thumb {
    background: var(--accent-purple);
    border-radius: 4px;
    box-shadow: var(--glow-purple);
}

/* 卡片样式 */
.card {
    background: var(--gradient-card);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: var(--shadow-card);
    padding: 25px;
    margin-bottom: 25px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    animation: slideIn 0.5s ease-out;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    border-color: var(--accent-blue);
}

.card:hover::before {
    transform: scaleX(1);
}

/* 标题样式 */
.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 20px;
    color: var(--text-primary);
    margin-bottom: 25px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.section-title i {
    color: var(--accent-blue);
    text-shadow: var(--glow-blue);
    animation: pulse 2s infinite;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 60px;
    height: 3px;
    background: var(--gradient-accent);
    border-radius: 2px;
    box-shadow: var(--glow-blue);
}

/* 仪表盘卡片容器 */
.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-bottom: 25px;
}

/* 仪表盘卡片 */
.dashboard-card {
    background: var(--gradient-card);
    backdrop-filter: blur(10px);
    border-radius: 14px;
    padding: 18px;
    box-shadow: var(--shadow-card);
    transition: all 0.4s ease;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    animation: slideIn 0.5s ease-out;
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(0, 212, 255, 0.05) 50%, transparent 100%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.dashboard-card:hover::before {
    transform: translateX(100%);
}

.dashboard-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: var(--accent-blue);
    z-index: 10;
}

.dashboard-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 18px;
}

.dashboard-card-title {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    position: relative;
    z-index: 1;
}

.dashboard-card-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.dashboard-card:hover .dashboard-card-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.dashboard-card-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
    animation: pulse 2s infinite;
}

.dashboard-card-change {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
    padding: 6px 10px;
    background: rgba(10, 14, 39, 0.6);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    display: inline-block;
}

.dashboard-card-change i {
    font-size: 12px;
    animation: pulse 1.5s infinite;
}

.change-positive {
    color: var(--accent-green);
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.change-negative {
    color: var(--accent-red);
    text-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}

/* 欢迎卡片 */
.card p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.8;
    margin: 0;
}

/* 图表容器 */
.chart-container {
    height: 350px;
    position: relative;
    background: rgba(10, 14, 39, 0.6);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.chart-container:hover {
    border-color: var(--accent-blue);
    box-shadow: var(--glow-blue);
}

/* 表格样式 */
.table-container {
    overflow-x: auto;
    background: rgba(10, 14, 39, 0.6);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    /* 移除滚动条动画效果 */
}

.table-container:hover {
    border-color: var(--accent-blue);
    box-shadow: var(--glow-blue);
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    color: var(--text-primary);
}

.table th {
    background: rgba(19, 26, 59, 0.9);
    padding: 12px 16px;
    text-align: left;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid var(--accent-blue);
    color: var(--accent-blue);
    position: sticky;
    top: 0;
    z-index: 20;
    font-size: 11px;
}

.table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
}

.table tbody tr {
    background: rgba(10, 14, 39, 0.4);
    transition: all 0.3s ease;
}

.table tbody tr:hover {
    background: rgba(25, 35, 75, 0.8);
    /* 移除transform: translateX(5px)，防止触发滚动条 */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.table tbody tr:hover td {
    border-color: var(--accent-purple);
    color: var(--text-primary);
}

/* 状态标签 */
.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid;
    transition: all 0.3s ease;
    margin-right: 4px;
}

.status-active {
    background: rgba(16, 185, 129, 0.2);
    color: var(--accent-green);
    border-color: var(--accent-green);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.status-inactive {
    background: rgba(239, 68, 68, 0.2);
    color: var(--accent-red);
    border-color: var(--accent-red);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
}

.status-pending {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    border-color: #f59e0b;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: 'Rajdhani', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

/* 主要按钮 */
.btn-primary {
    background: var(--gradient-accent);
    color: white;
    box-shadow: var(--glow-blue), var(--glow-purple);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4), 0 8px 25px rgba(139, 92, 246, 0.4);
}

/* 次要按钮 */
.btn-secondary {
    background: rgba(10, 14, 39, 0.6);
    color: var(--text-primary);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    background: rgba(25, 35, 75, 0.8);
    border-color: var(--accent-blue);
    box-shadow: var(--glow-blue);
    transform: translateY(-2px);
}

/* 危险按钮 */
.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.4);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.5);
}

/* 信息按钮 */
.btn-info {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: white;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
}

.btn-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.5);
}

/* 小按钮 */
.btn-sm {
    padding: 8px 16px;
    font-size: 12px;
}

/* 表格操作按钮组 */
.table-actions {
    display: flex;
    gap: 6px;
    align-items: center;
    /* 禁止换行，确保按钮并排显示 */
    flex-wrap: nowrap;
}

/* 搜索和过滤栏 */
.search-filter-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 25px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.search-bar {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
    flex: 1;
    min-width: 300px;
    margin-bottom: 20px;
}

.search-input {
    position: relative;
    flex: 1;
    min-width: 250px;
}

.search-input input {
    width: 100%;
    padding: 14px 45px 14px 20px;
    background: rgba(10, 14, 39, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-primary);
    font-family: inherit;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.search-input input:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: var(--glow-blue);
    transform: translateY(-1px);
}

.search-input i {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 16px;
    transition: all 0.3s ease;
    pointer-events: none;
}

.search-input input:focus + i {
    color: var(--accent-blue);
    text-shadow: var(--glow-blue);
}

/* 筛选栏 */
.filter-bar {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
    background: rgba(10, 14, 39, 0.6);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-group label {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-group select {
    padding: 10px 15px;
    background: rgba(10, 14, 39, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-primary);
    font-family: inherit;
    transition: all 0.3s ease;
    min-width: 150px;
    backdrop-filter: blur(10px);
}

.filter-group select:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: var(--glow-blue);
    transform: translateY(-1px);
}

.filter-group option {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 10px;
}

/* 卡片头部 */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 15px;
}

.card-header h2.section-title {
    margin: 0;
}

/* 按钮组 */
.btn-group {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

/* 导出按钮 */
.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5);
}

/* 加载动画 */
.loading {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--accent-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    box-shadow: var(--glow-blue);
}

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

/* 模态框样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: all 0.3s ease;
}

.modal.modal-active {
    display: flex;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        background: rgba(0, 0, 0, 0);
    }
    to {
        background: rgba(0, 0, 0, 0.85);
    }
}

.modal-content {
    background: rgba(19, 26, 59, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    min-width: 320px;
    box-shadow: var(--shadow-card), 0 0 30px rgba(0, 212, 255, 0.3);
    border: 1px solid var(--border-color);
    animation: modalSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-accent);
    box-shadow: var(--glow-blue), var(--glow-purple);
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-30px) scale(0.95);
        opacity: 0;
        box-shadow: var(--shadow-card), 0 0 0 rgba(0, 212, 255, 0.3);
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
        box-shadow: var(--shadow-card), 0 0 30px rgba(0, 212, 255, 0.3);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    gap: 20px;
}

.modal-header h2,
.modal-header h3,
#modalTitle {
    font-family: 'Orbitron', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    gap: 15px;
    text-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
    flex: 1;
}

.modal-header i {
    color: var(--accent-blue);
    text-shadow: var(--glow-blue);
    font-size: 28px;
}

.close-btn,
.close {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(239, 68, 68, 0.25);
    border: 1px solid var(--accent-red);
    font-size: 20px;
    color: var(--accent-red);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    line-height: 1;
    padding: 8px;
    border-radius: 8px;
    width: 40px;
    height: 40px;
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    font-family: inherit;
    text-decoration: none;
    margin: 0;
    box-sizing: border-box;
    flex-shrink: 0;
    z-index: 10;
}

/* 模态框表单样式 */
.modal-body {
    overflow: visible;
    flex: 1;
    width: 100%;
}

.close-btn:hover,
.close:hover {
    background: var(--accent-red);
    color: white;
    border-color: var(--accent-red);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 0 25px rgba(239, 68, 68, 0.6);
}

/* 修复模态框打开方式 */
.modal {
    display: none;
}

.modal.modal-active,
.modal[style*="display: flex"],
.modal[style*="display:flex"] {
    display: flex !important;
}

/* 模态框滚动条样式 */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(10, 14, 39, 0.6);
    border-radius: 4px;
    margin: 20px 0;
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--accent-blue);
    border-radius: 4px;
    box-shadow: var(--glow-blue);
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--accent-purple);
    box-shadow: var(--glow-purple);
}

/* 确保模态框表单元素正确显示 */
.modal-body form {
    width: 100%;
    margin: 0;
    padding: 0;
}

/* 修复按钮位置偏移问题 */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

/* 模态框表单样式 */
.modal-body {
    overflow: visible;
}

.modal-body .form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.modal-body .form-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-body .form-group label {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-body .form-group label.required::after {
    content: '*';
    color: var(--accent-red);
    font-size: 16px;
    margin-left: 5px;
}

.modal-body .form-group input,
.modal-body .form-group select,
.modal-body .form-group textarea {
    padding: 16px 20px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    background: rgba(10, 14, 39, 0.9);
    color: var(--text-primary);
    backdrop-filter: blur(15px);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
}

.modal-body .form-group input:hover,
.modal-body .form-group select:hover,
.modal-body .form-group textarea:hover {
    border-color: var(--accent-purple);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3), 0 0 15px rgba(139, 92, 246, 0.2);
}

.modal-body .form-group input:focus,
.modal-body .form-group select:focus,
.modal-body .form-group textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3), var(--glow-blue), 0 0 25px rgba(0, 212, 255, 0.4);
    transform: translateY(-2px);
}

.modal-body .form-group textarea {
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
}

/* 模态框按钮组 */
.modal-body .btn-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

/* 消防器材详情页样式 */

/* 器材信息卡片 */
.equipment-info {
    margin-bottom: 20px;
}

/* 器材详情布局 - 左右分栏 */
.equipment-details {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 20px;
    align-items: start;
}

/* 左侧基本信息 */
.basic-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* 右侧二维码区域 */
.qr-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* 详情行 */
.detail-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    flex-wrap: wrap;
}

/* 详情项 */
.detail-item {
    display: flex;
    align-items: center;
    background: rgba(10, 14, 39, 0.6);
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    gap: 15px;
}

.detail-item:hover {
    background: rgba(25, 35, 75, 0.8);
    border-color: var(--accent-blue);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.2);
}

.detail-item.full-width {
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: flex-start;
}

.detail-item.full-width .detail-label {
    margin-bottom: 8px;
}

.detail-label {
    font-weight: 700;
    color: var(--accent-blue);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 80px;
    flex-shrink: 0;
}

.detail-content {
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.5;
    flex: 1;
    word-break: break-word;
}

/* 二维码容器 */
.qr-code-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 25px;
    background: linear-gradient(135deg, rgba(10, 14, 39, 0.9) 0%, rgba(19, 26, 59, 0.95) 100%);
    padding: 35px 25px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(15px);
    margin: 0;
    width: 100%;
    box-sizing: border-box;
    box-shadow: var(--shadow-card), 0 0 30px rgba(0, 212, 255, 0.2);
    position: relative;
    overflow: hidden;
}

/* 二维码容器装饰效果 */
.qr-code-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
    animation: rotate 15s linear infinite;
    pointer-events: none;
}

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

/* 二维码展示 */
.qr-code {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 
        0 12px 35px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(0, 212, 255, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 264px;
    height: 264px;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 2px solid var(--accent-blue);
    overflow: visible;
    margin: 0 auto;
}

.qr-code:hover {
    transform: scale(1.02);
    box-shadow: 
        0 15px 45px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(0, 212, 255, 0.5),
        inset 0 2px 4px rgba(255, 255, 255, 0.8);
}

#qrCode {
    width: 256px;
    height: 256px;
    margin: 0;
    position: relative;
    z-index: 1;
    border-radius: 10px;
    overflow: visible;
}

/* 二维码中心Logo效果 */
#qrCode::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: var(--accent-blue);
    border-radius: 8px;
    opacity: 0.1;
    pointer-events: none;
    z-index: 2;
}

/* 二维码操作按钮 */
.qr-code-actions {
    display: flex;
    gap: 15px;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    max-width: 264px;
    position: relative;
    z-index: 1;
}

.qr-code-actions .btn {
    flex: 1;
    min-width: 150px;
    justify-content: center;
    padding: 14px 24px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 10px;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 6px 25px rgba(0, 0, 0, 0.3),
        0 0 15px rgba(0, 212, 255, 0.2);
}

/* 按钮悬停效果 */
.qr-code-actions .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.qr-code-actions .btn:hover::before {
    left: 100%;
}

.qr-code-actions .btn-primary {
    background: var(--gradient-accent);
    color: white;
    box-shadow: 
        0 8px 30px rgba(0, 212, 255, 0.4), 
        0 8px 30px rgba(139, 92, 246, 0.4),
        0 0 20px rgba(0, 212, 255, 0.3);
    border-color: var(--accent-blue);
}

.qr-code-actions .btn-primary:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 
        0 12px 45px rgba(0, 212, 255, 0.5), 
        0 12px 45px rgba(139, 92, 246, 0.5),
        0 0 30px rgba(0, 212, 255, 0.4);
}

.qr-code-actions .btn-secondary {
    background: rgba(10, 14, 39, 0.8);
    color: var(--text-primary);
    border-color: var(--border-color);
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.qr-code-actions .btn-secondary:hover {
    transform: translateY(-4px) scale(1.03);
    background: rgba(19, 26, 59, 0.9);
    border-color: var(--accent-blue);
    box-shadow: 
        0 10px 35px rgba(0, 212, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* 全局提示信息 */
.alert {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    padding: 16px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(15px);
    border: 1px solid;
    max-width: 350px;
    width: auto;
    animation: alertSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1), pulse 2s 1.5s infinite;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.alert.hidden {
    animation: alertSlideOut 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    transform: translateX(100%);
    pointer-events: none;
}

/* 成功提示 */
.alert-success {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-green);
    border-color: var(--accent-green);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.3);
}

/* 错误提示 */
.alert-error {
    background: rgba(239, 68, 68, 0.15);
    color: var(--accent-red);
    border-color: var(--accent-red);
    box-shadow: 0 8px 30px rgba(239, 68, 68, 0.3);
}

/* 警告提示 */
.alert-warning {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border-color: #f59e0b;
    box-shadow: 0 8px 30px rgba(245, 158, 11, 0.3);
}

/* 信息提示 */
.alert-info {
    background: rgba(0, 212, 255, 0.15);
    color: var(--accent-blue);
    border-color: var(--accent-blue);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.3);
}

/* 二维码信息 */
.qr-code-info {
    color: var(--text-secondary);
    font-size: 13px;
    text-align: center;
    margin-top: 15px;
    font-style: italic;
    width: 100%;
    line-height: 1.6;
    position: relative;
    z-index: 1;
    padding: 12px;
    background: rgba(10, 14, 39, 0.8);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.qr-code-info:hover {
    color: var(--text-primary);
    background: rgba(19, 26, 59, 0.9);
    border-color: var(--accent-blue);
    transform: translateY(-2px);
}

/* 二维码错误信息 */
#qrError {
    color: var(--accent-red);
    font-size: 13px;
    text-align: center;
    padding: 15px;
    background: rgba(239, 68, 68, 0.15);
    border: 2px solid var(--accent-red);
    border-radius: 10px;
    width: 100%;
    margin-top: 10px;
    box-shadow: 
        0 6px 25px rgba(239, 68, 68, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: pulse 2s infinite;
    position: relative;
    z-index: 1;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

#qrError.hidden {
    display: none;
}

/* 提示信息动画 */
@keyframes alertSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* 动态属性列表 */
.dynamic-properties-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.dynamic-properties-list li {
    color: var(--text-primary);
    font-size: 15px;
    padding: 12px 16px;
    background: rgba(10, 14, 39, 0.6);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.dynamic-properties-list li:hover {
    background: rgba(25, 35, 75, 0.8);
    border-color: var(--accent-purple);
    transform: translateX(5px);
}

.dynamic-properties-list strong {
    color: var(--accent-purple);
    font-weight: 700;
}

/* 无属性提示 */
.no-properties {
    color: var(--text-secondary);
    font-size: 15px;
    text-align: center;
    padding: 20px;
    background: rgba(10, 14, 39, 0.6);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    font-style: italic;
}

/* 无记录提示 */
.no-records {
    text-align: center;
    color: var(--text-secondary);
    font-style: italic;
    padding: 30px;
    font-size: 16px;
}

/* 返回按钮样式 */
#backBtn {
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

#backBtn:hover {
    transform: translateX(-5px);
}

/* 检查记录表格 */
.patrol-records {
    margin-top: 20px;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 25px;
    padding: 20px;
    background: rgba(10, 14, 39, 0.6);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.pagination button {
    background: rgba(10, 14, 39, 0.8);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    min-width: 40px;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pagination button:hover:not(:disabled) {
    background: rgba(25, 35, 75, 0.9);
    border-color: var(--accent-blue);
    color: var(--accent-blue);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.2);
}

.pagination button:active:not(:disabled) {
    transform: translateY(0);
}

.pagination button:disabled {
    background: rgba(10, 14, 39, 0.4);
    color: var(--text-muted);
    cursor: not-allowed;
    opacity: 0.6;
}

.pagination button.active {
    background: var(--gradient-accent);
    border-color: var(--accent-blue);
    color: white;
    box-shadow: var(--glow-blue), var(--glow-purple);
    transform: translateY(-2px);
}

.pagination button.active:hover {
    background: var(--gradient-accent);
    color: white;
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4), 0 8px 25px rgba(139, 92, 246, 0.4);
}

/* 响应式器材详情 */
@media (max-width: 992px) {
    /* 在中等屏幕上切换为垂直布局 */
    .equipment-details {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    /* 调整二维码区域 */
    .qr-section {
        order: -1;
    }
    
    /* 调整二维码容器 */
    .qr-code {
        width: 240px;
        height: 240px;
        padding: 15px;
    }
    
    #qrCode {
        width: 224px;
        height: 224px;
    }
    
    .qr-code-actions {
        max-width: 240px;
    }
    
    .qr-code-actions {
        flex-direction: column;
    }
    
    .qr-code-actions .btn {
        width: 100%;
        min-width: auto;
    }
}

@media (max-width: 768px) {
    .detail-row {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 12px;
    }
    
    .dynamic-properties-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .qr-code-container {
        padding: 20px;
    }
    
    .qr-code {
        width: 220px;
        height: 220px;
        padding: 15px;
    }
    
    #qrCode {
        width: 204px;
        height: 204px;
    }
    
    .qr-code-actions {
        flex-direction: column;
        width: 100%;
        max-width: 220px;
    }
    
    .qr-code-actions .btn {
        width: 100%;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .detail-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .detail-item {
        padding: 10px;
    }
    
    .qr-code-container {
        padding: 15px;
    }
    
    .qr-code {
        width: 180px;
        height: 180px;
        padding: 10px;
    }
    
    #qrCode {
        width: 168px;
        height: 168px;
    }
    
    .qr-code-actions {
        max-width: 180px;
    }
}

/* 个人中心样式 */
.profile-section {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 20px 0;
}

.profile-avatar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.profile-avatar img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-blue);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
    transition: all 0.3s ease;
}

.profile-avatar img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
}

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

.profile-info {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.profile-row {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-row:last-child {
    border-bottom: none;
}

.profile-label {
    font-weight: 600;
    color: var(--text-secondary);
    width: 120px;
    text-align: right;
    flex-shrink: 0;
}

.profile-value {
    color: var(--text-primary);
    font-size: 16px;
    word-break: break-word;
}

/* 个人中心表单样式 */
.profile-form {
    padding: 20px 0;
}

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

.profile-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profile-form .form-label {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 14px;
}

.profile-form .input-wrapper {
    position: relative;
}

.profile-form .form-input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.3s ease;
}

.profile-form .form-input:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

.profile-form .form-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.profile-form .input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-blue);
    font-size: 16px;
}

.profile-form .form-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    justify-content: flex-start;
}

/* 成功和错误消息样式 */
.success-message,
.error-message {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    border-radius: 8px;
    margin: 15px 0;
    font-size: 14px;
    transition: all 0.3s ease;
}

.success-message {
    background: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.error-message {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.success-message i,
.error-message i {
    font-size: 16px;
}

/* 隐藏类 */
.hidden {
    display: none !important;
}

/* 响应式个人中心样式 */
@media (max-width: 768px) {
    .profile-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .profile-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 8px;
    }
    
    .profile-label {
        width: auto;
        text-align: center;
    }
    
    .profile-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .profile-form .form-actions {
        flex-direction: column;
    }
}

/* 响应式模态框 */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        padding: 30px 25px;
        margin: 20px;
    }
    
    .modal-header h2,
    .modal-header h3,
    #modalTitle {
        font-size: 20px;
        letter-spacing: 1px;
    }
    
    .modal-header i {
        font-size: 24px;
    }
    
    .modal-body .form-row {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .modal-body .btn-group {
        justify-content: center;
    }
    
    .close-btn {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .modal-content {
        padding: 25px 20px;
    }
    
    .modal-header {
        margin-bottom: 25px;
        padding-bottom: 15px;
    }
    
    .modal-header h2,
    .modal-header h3,
    #modalTitle {
        font-size: 18px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .modal-body .form-group input,
    .modal-body .form-group select,
    .modal-body .form-group textarea {
        padding: 14px 18px;
        font-size: 14px;
    }
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .dashboard-cards {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }
    
    .dashboard-cards {
        grid-template-columns: 1fr;
    }
    
    .top-nav {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
    }
    
    .top-nav-left {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .content {
        padding: 20px;
    }
    
    .card {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .sidebar-header h2 {
        font-size: 18px;
    }
    
    .top-nav h1 {
        font-size: 20px;
    }
    
    .dashboard-card-value {
        font-size: 28px;
    }
    
    .table-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}