/* 全局样式 */
body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background-color: #f5f5f5;
    font-size: 14px;
}

/* 导航栏样式 */
.navbar {
    background: #6b8e23 !important;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.2rem;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.3s;
    font-size: 14px;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: #fff;
}

/* 搜索栏样式 */
.search-bar {
    background: #fff;
    border-bottom: 2px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.search-bar .badge {
    cursor: pointer;
    margin-right: 5px;
    transition: transform 0.2s;
}

.search-bar .badge:hover {
    transform: scale(1.1);
}

/* 表格容器 */
.table-responsive {
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* 版本表格样式 */
.version-table {
    background: #fff;
    font-size: 13px;
    margin-bottom: 0;
    border: 1px solid #dee2e6;
}

.version-table thead {
    background: linear-gradient(to bottom, #f8f9fa, #e9ecef);
    border-bottom: 2px solid #dee2e6;
}

.version-table thead th {
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
    border-right: 1px solid #e0e0e0;
    padding: 10px 8px;
    font-size: 13px;
}

.version-table thead th:last-child {
    border-right: none;
}

.version-table tbody tr {
    border-bottom: 1px solid #e9ecef;
}

.version-table tbody tr:nth-child(odd) {
    background-color: #fafafa;
}

.version-table tbody tr:nth-child(even) {
    background-color: #fff;
}

.version-table tbody tr:hover {
    background-color: #e7f3ff !important;
}

.version-table tbody td {
    padding: 10px 8px;
    vertical-align: middle;
    border-right: 1px solid #f0f0f0;
}

.version-table tbody td:last-child {
    border-right: none;
}

.version-info {
    line-height: 1.5;
}

.version-link {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}

.version-link:hover {
    color: #004499;
    text-decoration: underline;
}

/* 小按钮样式 */
.btn-xs {
    padding: 4px 8px;
    font-size: 11px;
    line-height: 1.2;
    border-radius: 2px;
    white-space: nowrap;
}

.btn-group-vertical .btn {
    margin-bottom: 2px;
}

.btn-group-vertical .btn:last-child {
    margin-bottom: 0;
}

/* 按钮样式增强 */
.btn {
    transition: all 0.2s;
    border-radius: 3px;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.btn-info {
    background-color: #17a2b8;
    border-color: #17a2b8;
}

.btn-success {
    background-color: #28a745;
    border-color: #28a745;
}

/* 卡片样式 */
.card {
    border: none;
    border-radius: 10px;
    margin-bottom: 20px;
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: bold;
}

/* 分页样式 */
.pagination {
    margin-top: 30px;
}

.pagination .page-link {
    color: #4a90e2;
    border-radius: 3px;
    margin: 0 2px;
    padding: 8px 12px;
    font-size: 14px;
}

.pagination .page-item.active .page-link {
    background-color: #4a90e2;
    border-color: #4a90e2;
}

/* 表格样式 */
.table {
    font-size: 0.95rem;
}

.table thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
}

/* 徽章样式 */
.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
}

/* 页脚样式 */
footer {
    background: #2c3e50;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    /* 移动端隐藏部分列 */
    .version-table thead th:first-child,
    .version-table tbody td:first-child {
        display: none;
    }
    
    .version-table thead th:nth-child(2),
    .version-table tbody td:nth-child(2) {
        font-size: 11px;
        padding: 6px 4px;
    }
    
    .version-table thead th:nth-child(3),
    .version-table tbody td:nth-child(3) {
        display: none;
    }
    
    .version-table tbody td:nth-child(4) {
        font-size: 12px;
    }
    
    .version-table tbody td:nth-child(5) {
        padding: 6px 4px;
    }
    
    .btn-xs {
        font-size: 10px;
        padding: 3px 6px;
    }
    
    .version-link {
        font-size: 13px;
    }
    
    .search-bar {
        padding: 15px 10px;
    }
}

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

.version-card {
    animation: fadeIn 0.5s ease-in-out;
}

/* 公告栏样式 */
.alert {
    border-radius: 4px;
}

.alert-info {
    background: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
    font-size: 14px;
}

/* 面包屑导航 */
.breadcrumb {
    background-color: transparent;
    padding: 0.75rem 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
}

/* 侧边栏卡片 */
.list-group-item {
    border-radius: 5px !important;
    margin-bottom: 5px;
    border: 1px solid #dee2e6;
}

.list-group-item:hover {
    background-color: #f8f9fa;
}

/* 详情页表格 */
.table-bordered {
    border-radius: 10px;
    overflow: hidden;
}

.table-bordered th {
    background-color: #f8f9fa;
}

/* 图片样式 */
img {
    max-width: 100%;
    height: auto;
}

/* ===========================================
   代理市场（玩家发布）样式
   =========================================== */

/* 版本卡片 */
.version-card {
    transition: all 0.3s;
    height: 100%;
}

.version-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* 代理等级徽章 */
.agent-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

/* 等级徽章颜色 */
.level-1, .level-2, .level-3, .level-4 { 
    background: linear-gradient(135deg, #9E9E9E, #757575); 
    color: #fff; 
}
.level-5, .level-6 { 
    background: linear-gradient(135deg, #FF9800, #F57C00); 
    color: #fff; 
}
.level-7, .level-8 { 
    background: linear-gradient(135deg, #FFC107, #FFA000); 
    color: #333; 
}
.level-9, .level-10, .level-11, .level-12 { 
    background: linear-gradient(135deg, #4CAF50, #388E3C); 
    color: #fff; 
}
.level-13, .level-14, .level-15, .level-16 { 
    background: linear-gradient(135deg, #9C27B0, #7B1FA2); 
    color: #fff; 
}
.level-17, .level-18, .level-19, .level-20 { 
    background: linear-gradient(135deg, #FFD700, #FFA500); 
    color: #333; 
}

/* 按钮颜色统一为橄榄绿 */
.btn-primary {
    background-color: #6b8e23 !important;
    border-color: #6b8e23 !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: #5a7a1f !important;
    border-color: #5a7a1f !important;
}

.btn-success {
    background-color: #6b8e23 !important;
    border-color: #6b8e23 !important;
}

.btn-success:hover,
.btn-success:focus,
.btn-success:active {
    background-color: #5a7a1f !important;
    border-color: #5a7a1f !important;
}
