/* 田径运动会编排管理系统自定义样式 */

body {
    font-family: "Microsoft YaHei", "Hiragino Sans GB", "WenQuanYi Micro Hei", sans-serif;
    background-color: #f8f9fa;
    line-height: 1.6;
}

.navbar-brand {
    font-weight: bold;
}

.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: all 0.3s ease;
    border: none;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    transform: translateY(-2px);
}

footer {
    border-top: 1px solid #dee2e6;
}

/* 英雄区域样式 - 重新设计 */
.hero-section {
    background: linear-gradient(135deg, #2c5282 0%, #3182ce 50%, #4299e1 100%);
    padding: 80px 0 60px;
    color: #fff;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section .display-3 {
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-section .lead {
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-illustration i {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.min-vh-50 {
    min-height: 50vh;
}

/* 功能特色卡片样式 - 重新设计 */
.card.border-0.shadow-sm {
    border-radius: 12px;
    transition: all 0.3s ease;
    background: #fff;
    overflow: hidden;
}

.card.border-0.shadow-sm:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
}

.card-body h4 {
    font-weight: 600;
    color: #2d3748;
}

.card-text.text-muted {
    color: #718096 !important;
    line-height: 1.7;
}

/* 系统优势区域 - 重新设计 */
.advantage-item {
    padding: 0;
    transition: transform 0.3s ease;
}

.advantage-item:hover {
    transform: translateY(-3px);
}

.advantage-item .bg-primary.bg-opacity-10,
.advantage-item .bg-success.bg-opacity-10,
.advantage-item .bg-info.bg-opacity-10,
.advantage-item .bg-warning.bg-opacity-10 {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.advantage-item h6 {
    color: #2d3748;
    font-weight: 600;
}

/* 原有样式保持不变 */
.feature-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    padding: 25px;
    height: 100%;
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #1e5799;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.feature-card p {
    margin-bottom: 20px;
    color: #666;
}

/* 新增：圆形图标背景 */
.bg-opacity-10 {
    background-color: rgba(var(--bs-primary-rgb), 0.1) !important;
}

.bg-primary.bg-opacity-10 {
    background-color: rgba(0, 123, 255, 0.1) !important;
}

.bg-success.bg-opacity-10 {
    background-color: rgba(40, 167, 69, 0.1) !important;
}

.bg-info.bg-opacity-10 {
    background-color: rgba(23, 162, 184, 0.1) !important;
}

.bg-warning.bg-opacity-10 {
    background-color: rgba(255, 193, 7, 0.1) !important;
}

/* 调用行动区域 */
.bg-primary.text-white {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%) !important;
}

.bg-primary.text-white .btn-light {
    background-color: #fff;
    border-color: #fff;
    color: #007bff;
    font-weight: 600;
    transition: all 0.3s ease;
}

.bg-primary.text-white .btn-light:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
}

.bg-primary.text-white .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.8);
    color: #fff;
    transition: all 0.3s ease;
}

.bg-primary.text-white .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    transform: translateY(-2px);
}

/* 响应式优化 */
@media (max-width: 992px) {
    .hero-section {
        padding: 60px 0 40px;
    }
    
    .hero-section .display-3 {
        font-size: 2.5rem;
    }
    
    .hero-illustration {
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-section .display-3 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
    
    .d-flex.flex-column.flex-sm-row.gap-3 {
        gap: 1rem !important;
    }
}

/* 页脚样式 */
.footer {
    background-color: #343a40;
    color: #fff;
}

.footer a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
}

.footer a:hover {
    color: #fff;
    text-decoration: underline;
}

/* 登录页面样式 */
.login-container {
    max-width: 400px;
    margin: 0 auto;
    padding: 2rem;
    background-color: #fff;
    border-radius: 0.25rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* 表格样式 */
.table-responsive {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border-radius: 0.25rem;
    overflow: hidden;
}

.table th {
    background-color: #f8f9fa;
}

/* 详情页面样式 */
.detail-container {
    background-color: #fff;
    border-radius: 0.25rem;
    padding: 1.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.detail-header {
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
}

/* 表单样式 */
.form-container {
    background-color: #fff;
    border-radius: 0.25rem;
    padding: 1.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* 运动会信息展示样式 */
.meet-info {
    background-color: #fff;
    border-left: 4px solid #007bff;
    padding: 1rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* 状态标签样式 */
.status-badge {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    border-radius: 1rem;
}

.status-pending {
    background-color: #ffc107;
    color: #212529;
}

.status-approved {
    background-color: #28a745;
    color: #fff;
}

.status-rejected {
    background-color: #dc3545;
    color: #fff;
}

.status-in-progress {
    background-color: #17a2b8;
    color: #fff;
}

.status-completed {
    background-color: #6c757d;
    color: #fff;
}

/* 成绩表格样式 */
.medal-gold {
    background-color: #ffc107;
    color: #212529;
    font-weight: bold;
}

.medal-silver {
    background-color: #e0e0e0;
    color: #212529;
    font-weight: bold;
}

.medal-bronze {
    background-color: #cd7f32;
    color: #fff;
    font-weight: bold;
}

/* 数据统计卡片 */
.stat-card {
    text-align: center;
    padding: 1.5rem;
}

.stat-card .stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 1rem 0;
}

.stat-card .stat-title {
    font-size: 1rem;
    color: #6c757d;
}

/* 比赛分组表 */
.heat-table {
    font-size: 0.9rem;
}

.heat-table th, .heat-table td {
    padding: 0.5rem;
}

.lane-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #007bff;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* 进度条样式 */
.progress {
    height: 0.5rem;
}

/* 证书样式 */
.certificate {
    border: 10px solid #ffd700;
    padding: 2rem;
    text-align: center;
    background-color: #fff;
    position: relative;
    margin: 2rem auto;
    max-width: 800px;
}

.certificate::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../img/certificate-bg.png');
    background-size: cover;
    opacity: 0.1;
    z-index: -1;
}

.certificate h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #212529;
}

.certificate .signature-line {
    width: 200px;
    border-top: 1px solid #212529;
    margin: 2rem auto 0.5rem;
}

/* 打印样式 */
@media print {
    .no-print {
        display: none;
    }
    
    .print-only {
        display: block;
    }
    
    body {
        background-color: #fff;
    }
    
    .container {
        width: 100%;
        max-width: 100%;
    }
}

/* 响应式调整 */
@media (max-width: 576px) {
    .card {
        margin-bottom: 1rem;
    }
    
    .stat-card .stat-number {
        font-size: 2rem;
    }
}