/* 主样式表 */

/* 通用样式 */
body {
    font-family: "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    background-color: #f8f9fa;
}

/* 头部导航栏 */
.navbar-brand {
    font-weight: bold;
}

/* 页面标题 */
.page-header {
    margin-bottom: 25px;
}

.page-header h1 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #333;
    border-left: 4px solid #0d6efd;
    padding-left: 15px;
}

/* 表格样式 */
.table-responsive {
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

.table {
    margin-bottom: 0;
}

.table thead th {
    background-color: #f8f9fa;
    font-weight: 600;
    border-bottom: 2px solid #dee2e6;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

/* 卡片样式 */
.card {
    border: none;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    margin-bottom: 20px;
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid #eee;
    font-weight: 600;
}

/* 表单样式 */
.form-container {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
}

.form-label {
    font-weight: 500;
}

.required:after {
    content: ' *';
    color: #dc3545;
}

/* 按钮样式 */
.btn {
    border-radius: 5px;
    padding: 8px 16px;
    font-weight: 500;
}

.btn-action {
    padding: 4px 8px;
    margin-right: 5px;
}

/* 操作按钮组 */
.action-buttons {
    white-space: nowrap;
}

/* 状态标签 */
.status-badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status-active {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.status-disabled {
    background-color: #ffebee;
    color: #c62828;
}

/* 文件上传预览 */
.file-preview {
    max-width: 200px;
    max-height: 200px;
    border: 1px solid #ddd;
    padding: 5px;
    margin-top: 10px;
}

/* 搜索表单 */
.search-form {
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

/* 登录页面 - 超级炫酷政府风格 */
body.login-page {
    background: #081b33;
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    animation: gradientBG 20s ease infinite;
    background-size: 400% 400%;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* 动态背景特效 */
.animated-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.bg-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    mix-blend-mode: screen;
    opacity: 0.15;
}

.bg-layer-1 {
    background: url('data:image/svg+xml;charset=utf8,%3Csvg viewBox="0 0 800 800" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath fill="%230066ff" d="M435.7,471.4C360.5,540.5,124.5,548.5,51.3,426.2C-21.9,303.9,135,208.7,147.7,85.5C160.4,-37.7,8.5,-155.8,102.4,-208.5C196.2,-261.2,535.8,-248.4,606.1,-177.2C676.3,-106,477.3,26.7,435.2,120.2C393.1,213.8,510.9,402.3,435.7,471.4Z" transform="translate(300 300)"%3E%3C/path%3E%3C/svg%3E');
    animation: floating 15s ease-in-out infinite alternate;
}

.bg-layer-2 {
    background: url('data:image/svg+xml;charset=utf8,%3Csvg viewBox="0 0 800 800" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath fill="%23ff0066" d="M400.7,271.4C325.5,340.5,189.5,448.5,116.3,426.2C43.1,403.9,35,308.7,47.7,185.5C60.4,62.3,94.5,-88.8,188.4,-141.5C282.2,-194.2,435.8,-148.4,506.1,-77.2C576.3,-6,477.3,90.7,435.2,184.2C393.1,277.8,475.9,202.3,400.7,271.4Z" transform="translate(300 300)"%3E%3C/path%3E%3C/svg%3E');
    animation: floating 20s ease-in-out infinite;
}

.bg-layer-3 {
    background: url('data:image/svg+xml;charset=utf8,%3Csvg viewBox="0 0 800 800" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath fill="%2300ddff" d="M435.7,271.4C360.5,340.5,189.5,448.5,116.3,326.2C43.1,203.9,135,108.7,147.7,-14.5C160.4,-137.7,94.5,-255.8,188.4,-308.5C282.2,-361.2,435.8,-348.4,506.1,-277.2C576.3,-206,477.3,-73.3,435.2,20.2C393.1,113.8,510.9,202.3,435.7,271.4Z" transform="translate(300 300)"%3E%3C/path%3E%3C/svg%3E');
    animation: floating 25s ease-in-out infinite alternate-reverse;
}

@keyframes floating {
    0% {
        transform: translate(0%, 0%) rotate(0deg) scale(1);
    }
    100% {
        transform: translate(5%, 5%) rotate(5deg) scale(1.05);
    }
}

.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.particle {
    position: absolute;
    display: block;
    background-color: rgba(255, 255, 255, 0.2);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    animation: floating-particle 20s infinite linear;
}

@keyframes floating-particle {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateY(-1000px) translateX(100px);
        opacity: 0;
    }
}

.login-container {
    max-width: 450px;
    margin: 80px auto 40px;
    padding: 0;
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3), 
                0 0 0 1px rgba(255, 255, 255, 0.1), 
                inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    overflow: hidden;
    position: relative;
    z-index: 100;
    transition: transform 0.5s, box-shadow 0.5s;
}

.login-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4), 
                0 0 0 1px rgba(255, 255, 255, 0.15), 
                inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.login-header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    padding: 30px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.login-header::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    transform: rotate(30deg);
}

.login-header::after {
    content: "";
    position: absolute;
    bottom: -15px;
    left: 0;
    right: 0;
    height: 30px;
    background-color: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 50% 50% 0 0;
}

.login-header h2 {
    margin: 0;
    font-size: 28px;
    font-weight: bold;
    letter-spacing: 2px;
    position: relative;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    animation: text-glow 2s ease-in-out infinite alternate;
}

@keyframes text-glow {
    from {
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.5), 0 0 10px rgba(255, 255, 255, 0.3);
    }
    to {
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px rgba(255, 255, 255, 0.5);
    }
}

.login-header .emblem {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #3f51b5 0%, #2196f3 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 3px solid rgba(255, 255, 255, 0.2);
    animation: emblem-glow 3s ease-in-out infinite alternate;
}

@keyframes emblem-glow {
    from {
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3), 0 0 0 rgba(61, 90, 254, 0.5);
    }
    to {
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3), 0 0 30px rgba(61, 90, 254, 0.8);
    }
}

.login-header .emblem::before {
    content: "";
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.1);
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

.login-header .emblem i {
    font-size: 45px;
    color: white;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.3));
}

.login-header p {
    margin: 15px 0 0;
    font-size: 16px;
    opacity: 0.9;
    letter-spacing: 1px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.login-form-container {
    padding: 35px;
    position: relative;
    z-index: 10;
}

.login-form-container .alert {
    background-color: rgba(220, 53, 69, 0.1);
    border: none;
    border-radius: 8px;
    border-left: 4px solid #dc3545;
    color: #fff;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.login-form-container .form-label {
    color: #fff;
    font-weight: 500;
    margin-bottom: 10px;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.login-form-container .input-group {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.login-form-container .input-group:focus-within {
    border-color: rgba(61, 90, 254, 0.5);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2), 0 0 0 2px rgba(61, 90, 254, 0.25);
    transform: translateY(-2px);
}

.login-form-container .input-group-text {
    background-color: rgba(255, 255, 255, 0.05);
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 18px;
    padding: 0 15px;
}

.login-form-container .form-control {
    background-color: transparent;
    border: none;
    padding: 15px;
    height: auto;
    color: #fff;
    font-size: 16px;
}

.login-form-container .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.login-form-container .form-control:focus {
    box-shadow: none;
}

.login-form-container .btn-primary {
    background: linear-gradient(135deg, #1e3c72 0%, #3d5afe 100%);
    border: none;
    padding: 15px;
    font-weight: 600;
    letter-spacing: 2px;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(61, 90, 254, 0.3);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    font-size: 16px;
}

.login-form-container .btn-primary::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: all 0.6s;
}

.login-form-container .btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(61, 90, 254, 0.4);
}

.login-form-container .btn-primary:hover::before {
    left: 100%;
}

.login-footer {
    text-align: center;
    margin-top: 30px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    position: relative;
}

.login-footer i {
    margin-right: 5px;
    font-size: 16px;
    color: #3d5afe;
    filter: drop-shadow(0 0 5px rgba(61, 90, 254, 0.7));
}

.login-decoration {
    position: absolute;
    border-radius: 50%;
    z-index: -1;
    filter: blur(40px);
    opacity: 0.3;
}

.login-decoration-1 {
    top: -250px;
    right: -250px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #3d5afe 0%, transparent 70%);
    animation: pulse-glow 10s infinite alternate;
}

.login-decoration-2 {
    bottom: -250px;
    left: -250px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #00bcd4 0%, transparent 70%);
    animation: pulse-glow 12s infinite alternate-reverse;
}

@keyframes pulse-glow {
    0% {
        opacity: 0.2;
        transform: scale(0.8);
    }
    100% {
        opacity: 0.4;
        transform: scale(1.2);
    }
}

.login-container .divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 25px 0;
    color: rgba(255, 255, 255, 0.7);
}

.login-container .divider::before,
.login-container .divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.login-container .divider span {
    padding: 0 15px;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* 页脚样式 */
footer.login-page-footer {
    position: relative;
    z-index: 100;
    padding: 15px 0;
    text-align: center;
}

footer.login-page-footer p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
    margin: 0;
}

/* 仪表盘卡片 */
.dashboard-card {
    text-align: center;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    background-color: #fff;
    transition: transform 0.3s;
    height: 100%;
}

.dashboard-card:hover {
    transform: translateY(-5px);
}

.dashboard-card i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #0d6efd;
}

.dashboard-card .number {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.dashboard-card .title {
    font-size: 1rem;
    color: #6c757d;
}

/* 模态框样式 */
.modal-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.modal-title {
    font-weight: 600;
}

/* 图片查看 */
.image-viewer {
    cursor: pointer;
    transition: transform 0.3s;
}

.image-viewer:hover {
    transform: scale(1.05);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .table-responsive {
        overflow-x: auto;
    }
    
    .action-buttons .btn {
        padding: 2px 5px;
        font-size: 0.8rem;
    }
    
    .dashboard-card {
        padding: 15px;
    }
    
    .dashboard-card i {
        font-size: 2rem;
    }
    
    .dashboard-card .number {
        font-size: 1.8rem;
    }
    
    .login-container {
        margin: 40px 15px;
    }
}

/* 照片卡片 */
.photo-card {
    padding: 10px;
    position: relative;
    overflow: hidden;
}

.photo-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
}

.photo-card .photo-info {
    padding: 10px 0;
}

.photo-card .photo-name {
    font-weight: 500;
    margin-bottom: 5px;
}

/* 弹窗图片查看器 */
.modal-image {
    width: 100%;
} 