/* 百度网盘风格模板自定义样式 */
body {
    background: #f5f7fa;
    font-family: "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* 导航栏 */
.navbar {
    background: #fff !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    padding: 0.8rem 1rem;
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.6rem;
    color: #333 !important;
}

.navbar-brand i {
    font-size: 2rem;
    margin-right: 8px;
    color: #4e6ef2 !important;
}

.nav-link {
    color: #666 !important;
    font-size: 0.95rem;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s;
}

.nav-link:hover {
    color: #4e6ef2 !important;
    background: #f5f7fa;
    border-radius: 4px;
}

.nav-link i {
    margin-right: 6px;
}

/* 主体容器 */
.container {
    max-width: 1400px;
}

/* 卡片 */
.card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.3s;
    overflow: hidden;
}

.card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-weight: 600;
    border: none;
    padding: 1rem 1.25rem;
}

.card-header.bg-primary {
    background: linear-gradient(135deg, #4e6ef2 0%, #6b8cff 100%);
}

.card-header.bg-secondary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.shadow-sm {
    box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
}

.shadow {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1) !important;
}

/* Jumbotron */
.jumbotron {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 12px;
    padding: 3rem 2rem;
    margin-top: 1rem;
}

.jumbotron h1 {
    font-weight: 700;
    font-size: 2.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, #4e6ef2 0%, #6b8cff 100%);
    border: none;
    border-radius: 6px;
    padding: 0.6rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #3d5be8 0%, #5a7aff 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(78, 110, 242, 0.4);
}

.btn-outline-secondary {
    border-color: #fff;
    color: #fff;
}

.btn-outline-secondary:hover {
    background: #fff;
    color: #667eea;
}

/* 功能特点卡片 */
.feature-card {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.feature-card i {
    margin-bottom: 1rem;
}

/* 表格 */
.table {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.table thead {
    background: #f8f9fa;
}

.table th {
    font-weight: 600;
    color: #333;
    padding: 1rem;
}

.table td {
    vertical-align: middle;
    padding: 1rem;
}

.table-hover tbody tr:hover {
    background: #f5f7fa;
}

/* 面包屑 */
.breadcrumb {
    background: #fff;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
}

.breadcrumb-item a {
    color: #4e6ef2;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

/* 上传区域 */
.upload-area {
    border: 2px dashed #ddd;
    border-radius: 12px;
    transition: all 0.3s;
    background: #fafafa;
}

.upload-area:hover {
    border-color: #4e6ef2;
    background: #f0f4ff;
}

/* 进度条 */
.progress {
    border-radius: 8px;
    height: 8px;
    background: #f0f0f0;
}

.progress-bar {
    background: linear-gradient(90deg, #4e6ef2 0%, #6b8cff 100%);
}

/* 按钮 */
.btn {
    border-radius: 6px;
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-sm {
    padding: 0.35rem 0.75rem;
    font-size: 0.85rem;
}

.btn-success {
    background: #52c41a;
    border-color: #52c41a;
}

.btn-info {
    background: #1890ff;
    border-color: #1890ff;
}

.btn-warning {
    background: #faad14;
    border-color: #faad14;
}

.btn-danger {
    background: #ff4d4f;
    border-color: #ff4d4f;
}

/* 徽章 */
.badge {
    padding: 0.4em 0.8em;
    border-radius: 6px;
    font-weight: 500;
}

.badge-success {
    background: #52c41a;
}

.badge-secondary {
    background: #8c8c8c;
}

/* 警告框 */
.alert {
    border: none;
    border-radius: 8px;
    padding: 1rem 1.25rem;
}

.alert-info {
    background: #e6f7ff;
    color: #1890ff;
}

.alert-success {
    background: #f6ffed;
    color: #52c41a;
}

.alert-warning {
    background: #fffbe6;
    color: #faad14;
}

.alert-danger {
    background: #fff1f0;
    color: #ff4d4f;
}

/* 分页 */
.pagination .page-link {
    border: none;
    color: #666;
    margin: 0 4px;
    border-radius: 6px !important;
}

.pagination .page-item.active .page-link {
    background: #4e6ef2;
    color: #fff;
}

.pagination .page-link:hover {
    background: #f5f7fa;
    color: #4e6ef2;
}

/* 页脚 */
footer {
    background: #2d3436 !important;
    margin-top: 3rem;
    padding: 2rem 0;
}

footer a {
    color: #b2bec3 !important;
    text-decoration: none;
    transition: all 0.3s;
}

footer a:hover {
    color: #fff !important;
}

/* 页脚区域 - 简洁实用版 */

/* 友情链接专区（顶部独立栏）*/
.friend-links-bar {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    padding: 8px 0 !important;
    margin-bottom: 10px !important;
    border-bottom: 1px solid #dee2e6;
}

.friend-links-title {
    color: #495057;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 6px !important;
    text-align: center;
}

.friend-links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}

.friend-link-badge {
    background: #ffffff;
    color: #495057 !important;
    padding: 4px 10px !important;
    border-radius: 14px;
    text-decoration: none;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    border: 1px solid #dee2e6;
    white-space: nowrap;
}

.friend-link-badge:hover {
    background: #4e6ef2;
    color: #ffffff !important;
    border-color: #4e6ef2;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(78, 110, 242, 0.25);
}

/* 简化版页脚 */
.simple-footer {
    background: #ffffff !important;
    padding: 30px 0 20px;
    margin-top: 40px;
    border-top: 1px solid #dee2e6;
}

.footer-site-name {
    color: #212529 !important;
    font-weight: 600;
    font-size: 1.1rem;
}

.site-link {
    color: #212529 !important;
    text-decoration: none;
    transition: all 0.3s ease;
}

.site-link:hover {
    color: #4e6ef2 !important;
}

.footer-copyright {
    color: #2c3e50 !important;
    font-size: 0.95rem;
}

.footer-official-link {
    color: #4e6ef2 !important;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.footer-official-link:hover {
    color: #3d5be8 !important;
    text-decoration: underline !important;
}

.footer-contact {
    color: #2c3e50 !important;
    font-size: 0.95rem;
}

.contact-link {
    color: #4e6ef2 !important;
    text-decoration: none;
}

.contact-link:hover {
    color: #3d5be8 !important;
    text-decoration: underline !important;
}

.footer-version {
    color: #2c3e50 !important;
    font-size: 0.95rem;
}

.footer-icp {
    color: #2c3e50 !important;
    font-size: 0.9rem;
}

.icp-link {
    color: #4e6ef2 !important;
    text-decoration: none;
}

.icp-link:hover {
    color: #3d5be8 !important;
}

.footer-disclaimer {
    color: #34495e !important;
    line-height: 1.6;
    font-size: 0.9rem;
}

/* 覆盖 Bootstrap 的 text-muted 类 */
.text-muted {
    color: #34495e !important;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .friend-links-bar {
        padding: 6px 0 !important;
        margin-bottom: 8px !important;
    }
    
    .friend-links-title {
        font-size: 0.85rem;
        margin-bottom: 4px !important;
    }
    
    .friend-link-badge {
        padding: 3px 8px !important;
        font-size: 0.75rem;
    }
    
    .simple-footer {
        padding: 20px 0 15px;
    }
    
    .footer-site-name {
        font-size: 1rem;
    }
}

/* 文件图标 */
.file-icon {
    font-size: 1.5rem;
    margin-right: 0.5rem;
}

/* 广告横幅 */
.footer-banner {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
}

/* 用户信息卡片 */
.user-info-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.3rem;
    }
    
    .jumbotron {
        padding: 1.5rem 1rem;
    }
    
    .jumbotron h1 {
        font-size: 1.8rem;
    }
    
    .feature-card {
        margin-bottom: 1rem;
    }
    
    .table-responsive {
        border-radius: 8px;
        overflow: hidden;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeIn 0.5s ease-out;
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}