/* ============================================================
 * 护理大赛系统 - PC端通用样式
 * ============================================================ */

/* ------------------- 基础变量 ------------------- */
:root {
    --primary-color: #1890ff;
    --primary-light: #e6f7ff;
    --bg-color: #f5f7fa;
    --text-color: #333;
    --text-muted: #666;
    --border-color: #e8e8e8;
    --card-shadow: 0 2px 12px rgba(0,0,0,0.08);
    --card-shadow-hover: 0 8px 24px rgba(0,0,0,0.12);
}

/* ------------------- 全局样式 ------------------- */
* {
    -webkit-tap-highlight-color: transparent;
}

html, body {
    height: 100%;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ------------------- 导航栏 ------------------- */
.navbar {
    background: linear-gradient(135deg, #1890ff 0%, #36cfc9 100%);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.25rem;
}

.nav-link {
    font-weight: 500;
    transition: opacity 0.3s;
}

.nav-link:hover {
    opacity: 0.8;
}

/* ------------------- Banner区域 ------------------- */
.banner {
    background: linear-gradient(135deg, #1890ff 0%, #36cfc9 100%);
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    margin-top: -76px; /* 抵消 main-content 的 padding-top */
    padding-top: 156px; /* 80px + 76px，为导航栏留出空间 */
}

.banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.banner h1 {
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.banner .lead {
    font-size: 1.25rem;
    opacity: 0.95;
}

/* ------------------- 主内容区域 ------------------- */
.main-content {
    min-height: calc(100vh - 106px);
    padding-top: 76px; /* 为固定导航栏留出空间 */
}

/* ------------------- 卡片样式 ------------------- */
.match-card {
    border: none;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    background: #fff;
}

.match-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
}

.card-title {
    color: var(--text-color);
    font-weight: 600;
}

/* ------------------- 列表样式 ------------------- */
.list-group-item {
    border: none;
    border-bottom: 1px solid #f0f0f0;
    padding: 1rem 1.25rem;
    transition: background-color 0.2s;
}

.list-group-item:hover {
    background-color: var(--primary-light);
}

.list-group-item a {
    color: var(--text-color);
    text-decoration: none;
}

.list-group-item a:hover {
    color: var(--primary-color);
}

/* ------------------- 按钮样式 ------------------- */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    padding: 10px 24px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-outline-primary {
    border-color: #667eea;
    color: #667eea;
    border-radius: 8px;
}

.btn-outline-primary:hover {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

/* ------------------- 页脚 ------------------- */
.footer {
    background: #fff;
    border-top: 1px solid var(--border-color);
    padding: 12px 0;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer a:hover {
    color: var(--primary-color);
}

.footer .divider {
    color: #d9d9d9;
}

/* 备案信息样式 */
.beian {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.beian-icon {
    width: 16px;
    height: 16px;
    background: #999;
    border-radius: 2px;
    display: inline-block;
}

/* ------------------- 标题样式 ------------------- */
h2, h3, h4, h5 {
    color: var(--text-color);
    font-weight: 600;
}

h2 {
    position: relative;
    padding-bottom: 12px;
    margin-bottom: 24px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

/* ------------------- 页面切换动画 ------------------- */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-content {
    animation: slideInUp 0.4s ease;
}

/* ------------------- 响应式调整 ------------------- */
@media (max-width: 768px) {
    .banner {
        padding: 50px 0;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 8px;
    }
    
    .footer .divider {
        display: none;
    }
}
