/* 全局样式 */
body {
    font-family: 'Microsoft YaHei', sans-serif;
    background-color: #ffffff;
    color: #2c3e50;
    line-height: 1.6;
}

.card {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    background: #ffffff;
}

/* 用户管理页面特定样式 */
.admin-users-table td {
    vertical-align: middle;
    padding: 12px 15px;
}

@media (max-width: 768px) {
    .admin-users-table, .table-responsive table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 8px;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    }
    
    .admin-users-table thead, .table-responsive table thead {
        display: table-header-group;
    }
    
    .admin-users-table tr, .table-responsive table tr {
        display: table-row;
        border-bottom: 1px solid #eee;
        transition: all 0.2s ease;
    }
    
    .admin-users-table tr:hover, .table-responsive table tr:hover {
        background-color: #f8f9fa;
        transform: translateY(-1px);
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    }
    
    .admin-users-table td, .table-responsive table td,
    .admin-users-table th, .table-responsive table th {
        display: table-cell;
        padding: 8px;
        border: none;
        font-size: 0.9em;
        white-space: nowrap;
        vertical-align: middle;
    }
    
    .admin-users-table td:last-child, .table-responsive table td:last-child {
        display: table-cell;
        white-space: nowrap;
    }
    
    .admin-users-table .btn, .table-responsive table .btn {
        padding: 4px 8px;
        font-size: 0.85em;
        margin: 0 2px;
        border-radius: 6px;
    }
}

/* 移动端优化增强 */
@media (max-width: 576px) {
    .admin-users-table td, .table-responsive table td,
    .admin-users-table th, .table-responsive table th {
        padding: 6px;
        font-size: 0.8em;
    }
    
    .admin-users-table .btn, .table-responsive table .btn {
        padding: 3px 6px;
        font-size: 0.8em;
    }
    
    .table-responsive {
        margin: 0 -15px;
        padding: 0 5px;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }
    
    .table-responsive table {
        margin-bottom: 0;
    }
    
    .table-responsive table td img {
        width: 40px;
        height: 40px;
        border-radius: 4px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        transition: all 0.2s ease;
    }
    
    .table-responsive table td img:hover {
        transform: scale(1.1);
        box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
    }
}

/* 卡片样式增强 */
.card {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(145deg, #ffffff, #f5f9ff);
}

.card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
    transform: translateY(-3px);
}

.card-header {
    border-bottom: none;
    padding: 1rem 1.25rem;
}

.card-body {
    padding: 1.5rem;
}

/* 图片缩略图样式 */
.image-thumbnail {
    transition: all 0.3s ease;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.image-thumbnail:hover {
    opacity: 0.95;
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 图片详情页样式 */
.image-container {
    text-align: center;
    margin-bottom: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.image-container img {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.info-card {
    transition: all 0.3s ease;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
}

.info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.info-card .card-header {
    padding: 0.8rem 1.25rem;
    border-bottom: none;
}

.info-card .card-body {
    padding: 1rem;
}

.info-icon {
    margin-right: 8px;
    color: #333333;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.link-group {
    margin-bottom: 1rem;
}

.link-group .input-group {
    border-radius: 8px;
    overflow: hidden;
}

.link-group .input-group-text {
    background-color: #f0f0f0;
    color: #333333;
    border: none;
    min-width: 110px;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.link-group .form-control {
    border-right: none;
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
    background-color: #f8faff;
}

.copy-btn {
    transition: all 0.2s;
    border-color: #dee2e6;
    background-color: #f8f9fa;
    color: #333333;
    padding: 0.5rem 0.75rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.copy-btn:hover {
    background-color: #f0f0f0;
    color: #333333;
    border-color: #e0e0e0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* 按钮样式增强 */
.btn {
    border-radius: 8px;
    transition: all 0.3s;
    padding: 0.5rem 1.2rem;
    font-weight: 500;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    border: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12), 0 3px 6px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.12);
}

.btn-primary {
    background-color: #f0f0f0;
    border-color: #e0e0e0;
    background-image: linear-gradient(135deg, #ffffff, #f0f0f0);
    color: #333333;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background-color: #e8e8e8;
    border-color: #d0d0d0;
    background-image: linear-gradient(135deg, #f8f8f8, #e8e8e8);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* 导航栏样式 - 简约白色风格 */
.navbar {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.03);
    padding: 0.8rem 1rem;
    background-color: #ffffff;
    border-bottom: 1px solid #f0f0f0;
    border-radius: 0 0 10px 10px;
}

.navbar-dark.bg-primary {
    background-color: #ffffff !important;
    background-image: none !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.03);
}

.navbar-dark .navbar-brand,
.navbar-dark .nav-link {
    color: #333333 !important;
}

.navbar-dark .navbar-toggler {
    border-color: rgba(0, 0, 0, 0.1);
}

.navbar-dark .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.5%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s;
    color: #333333;
    position: relative;
}

.nav-link:hover {
    transform: translateY(-1px);
    color: #333333;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #333333;
    transition: all 0.3s;
    transform: translateX(-50%);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.nav-link:hover::after {
    width: 70%;
}

/* 上传区域样式 */
.upload-area {
    transition: all 0.3s ease;
    background: linear-gradient(145deg, #ffffff, #f5f5f5);
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.02);
}

.upload-area:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

/* 列表组样式增强 */
.list-group-item {
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.list-group-item:hover:not(.active):not(.bg-primary):not(.bg-info) {
    background-color: #f8f9fa;
    transform: translateX(3px);
    box-shadow: -3px 0 0 #333333, 0 2px 5px rgba(0, 0, 0, 0.05);
}

.list-group-item.active {
    background-color: #f0f0f0;
    color: #333333;
    border-color: #e0e0e0;
    font-weight: 500;
    box-shadow: -3px 0 0 #333333, 0 2px 5px rgba(0, 0, 0, 0.08);
}

.list-group-item.bg-primary, .list-group-item.bg-info {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

/* 页脚样式 */
footer {
    margin-top: 50px;
    border-top: 1px solid #f0f0f0;
    background: linear-gradient(to bottom, #ffffff, #f5f5f5);
    padding: 20px 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.03), 0 -1px 3px rgba(0, 0, 0, 0.01);
}

/* 移动端优化 */
@media (max-width: 768px) {
    .card {
        margin-bottom: 20px;
        border-radius: 10px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
        transition: all 0.3s ease;
    }
    
    .card:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1), 0 2px 5px rgba(0, 0, 0, 0.08);
    }
    
    .card-header {
        border-radius: 10px 10px 0 0 !important;
    }
    
    .btn {
        padding: 0.4rem 1rem;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        transition: all 0.2s ease;
    }
    
    .btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .image-thumbnail {
        height: 180px;
        border-radius: 8px;
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
    }
    
    .image-thumbnail:hover {
        transform: scale(1.02);
        box-shadow: 0 5px 12px rgba(0, 0, 0, 0.15);
    }
}

/* 性能优化 */
img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 加载动画 */
.loading {
    opacity: 0;
    transition: opacity 0.3s ease-in;
}

.loaded {
    opacity: 1;
}