/**
 * 兴红检测工具集 - 自定义样式
 */

/* 基础样式 */
:root {
    --primary-color: #2c4673;
    --secondary-color: #452c76;
    --accent-color: #2c4673;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f8f9fa;
}

main {
    flex: 1;
}

/* 公司品牌横幅 */
.hero-banner {
    padding: 3rem 1rem;
    background: linear-gradient(135deg, rgba(44, 70, 115, 0.05) 0%, rgba(69, 44, 118, 0.05) 100%);
    border-radius: 16px;
    margin-bottom: 2rem;
}

.logo-container {
    display: inline-block;
}

.company-logo {
    width: 120px;
    height: auto;
    transition: transform 0.3s ease;
}

.company-logo:hover {
    transform: scale(1.05);
}

.brand-tags .badge {
    font-size: 0.9rem;
    padding: 0.5em 1em;
    margin: 0.25rem;
}

.footer-logo {
    width: 60px;
    height: auto;
    opacity: 0.7;
}

/* 卡片样式 */
.site-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.site-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.site-card .card-img-top {
    height: 200px;
    object-fit: cover;
    background-color: #e9ecef;
}

.site-card .card-body {
    display: flex;
    flex-direction: column;
}

.site-card .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.site-card .card-text {
    font-size: 0.9rem;
    color: #6c757d;
    flex: 1;
}

.site-card .card-footer {
    background-color: transparent;
    border-top: 1px solid #eee;
    padding-top: 0.75rem;
}

/* 分类标签 */
.category-badge {
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
}

/* 分类筛选 */
.category-filter {
    margin-bottom: 2rem;
}

.category-filter .btn {
    margin: 0.25rem;
}

.category-filter .btn.active {
    background-color: var(--primary-color);
    color: white;
}

/* 网站链接按钮 */
.btn-visit {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transition: all 0.3s ease;
}

.btn-visit:hover {
    background-color: #1e3354;
    border-color: #1e3354;
    color: white;
    transform: scale(1.05);
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #6c757d;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
}

/* 管理后台样式 */
.admin-sidebar {
    min-height: calc(100vh - 56px);
    background-color: #343a40;
}

.admin-sidebar .nav-link {
    color: #adb5bd;
    padding: 0.75rem 1rem;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    color: #fff;
    background-color: rgba(255,255,255,0.1);
    border-left-color: var(--primary-color);
}

.admin-sidebar .nav-link i {
    margin-right: 0.5rem;
}

/* 表格样式 */
.table-actions .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* 截图预览 */
.screenshot-preview {
    max-width: 200px;
    max-height: 120px;
    object-fit: cover;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* 上传区域 */
.upload-area {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    background-color: #fafafa;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-area:hover {
    border-color: var(--primary-color);
    background-color: #f0f7ff;
}

.upload-area i {
    font-size: 3rem;
    color: #6c757d;
}

/* 提示消息 */
.alert {
    border: none;
    border-radius: 8px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .site-card .card-img-top {
        height: 150px;
    }
    
    .category-filter .btn {
        font-size: 0.85rem;
    }
}

/* 动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

.fade-in:nth-child(2) { animation-delay: 0.1s; }
.fade-in:nth-child(3) { animation-delay: 0.2s; }
.fade-in:nth-child(4) { animation-delay: 0.3s; }
.fade-in:nth-child(5) { animation-delay: 0.4s; }
.fade-in:nth-child(6) { animation-delay: 0.5s; }
