/* ===========================================
   大赛棋谱页面专业样式
   =========================================== */

/* ===========================================
   1. 页面容器样式
   =========================================== */
.match-container {
    min-height: calc(100vh - 200px);
}

/* ===========================================
   2. 标题样式
   =========================================== */
.match-page-title {
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.match-page-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #0d6efd 0%, #0dcaf0 100%);
    border-radius: 2px;
}

.match-page-title i {
    color: #ffc107;
    margin-right: 10px;
    text-shadow: 0 2px 4px rgba(255, 193, 7, 0.3);
}

/* ===========================================
   3. 比赛标签容器样式
   =========================================== */
.match-tags-container {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.match-tags-container:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* ===========================================
   4. 比赛标签样式
   =========================================== */
.match-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    margin: 8px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    color: #495057;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.match-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.05) 0%, rgba(13, 202, 240, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.match-tag:hover::before {
    opacity: 1;
}

.match-tag i {
    font-size: 1.1rem;
    color: #0d6efd;
    transition: all 0.3s ease;
}

.match-tag:hover {
    transform: translateY(-3px);
    border-color: #0d6efd;
    color: #0d6efd;
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.2);
}

.match-tag:hover i {
    transform: scale(1.2);
    color: #0dcaf0;
}

/* ===========================================
   5. 更多链接样式
   =========================================== */
.match-more-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
    position: relative;
    overflow: hidden;
}

.match-more-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.match-more-link:hover::before {
    width: 300px;
    height: 300px;
}

.match-more-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
    color: white;
}

.match-more-link i {
    transition: transform 0.3s ease;
}

.match-more-link:hover i {
    transform: translateX(4px);
}

/* ===========================================
   6. 响应式设计
   =========================================== */
@media (max-width: 1200px) {
    .match-tags-container {
        padding: 25px;
    }

    .match-tag {
        padding: 9px 18px;
        font-size: 0.9rem;
        margin: 6px;
    }
}

@media (max-width: 992px) {
    .match-tags-container {
        padding: 20px;
    }

    .match-tag {
        padding: 8px 16px;
        font-size: 0.85rem;
        margin: 5px;
    }

    .match-more-link {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    .match-container {
        width: 95% !important;
    }

    .match-tags-container {
        padding: 15px;
        border-radius: 8px;
    }

    .match-tag {
        padding: 7px 14px;
        font-size: 0.8rem;
        margin: 4px;
    }

    .match-page-title {
        font-size: 1.5rem;
    }

    .match-more-link {
        padding: 9px 18px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .match-tag {
        padding: 6px 12px;
        font-size: 0.75rem;
        margin: 3px;
    }

    .match-tag i {
        font-size: 0.9rem;
    }

    .match-page-title {
        font-size: 1.3rem;
    }
}

/* ===========================================
   7. 暗黑主题适配
   =========================================== */
[data-bs-theme="dark"],
[data-bs-theme="dark-small"] {
    --match-container-bg-start: #2d3238;
    --match-container-bg-end: #343a40;
    --match-tag-bg: #495057;
    --match-tag-border: rgba(255, 255, 255, 0.1);
    --match-tag-color: #f8f9fa;
    --match-tag-hover-border: #0dcaf0;
    --match-tag-hover-color: #0dcaf0;
    --match-tag-icon-color: #0dcaf0;
}

[data-bs-theme="dark"] .match-tags-container,
[data-bs-theme="dark-small"] .match-tags-container {
    background: linear-gradient(135deg, var(--match-container-bg-start) 0%, var(--match-container-bg-end) 100%);
    border-color: var(--match-tag-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

[data-bs-theme="dark"] .match-tags-container:hover,
[data-bs-theme="dark-small"] .match-tags-container:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

[data-bs-theme="dark"] .match-tag,
[data-bs-theme="dark-small"] .match-tag {
    background: var(--match-tag-bg);
    border-color: var(--match-tag-border);
    color: var(--match-tag-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-bs-theme="dark"] .match-tag::before,
[data-bs-theme="dark-small"] .match-tag::before {
    background: linear-gradient(135deg, rgba(13, 202, 240, 0.1) 0%, rgba(13, 110, 253, 0.1) 100%);
}

[data-bs-theme="dark"] .match-tag i,
[data-bs-theme="dark-small"] .match-tag i {
    color: var(--match-tag-icon-color);
}

[data-bs-theme="dark"] .match-tag:hover,
[data-bs-theme="dark-small"] .match-tag:hover {
    border-color: var(--match-tag-hover-border);
    color: var(--match-tag-hover-color);
    background: #5a6268;
    box-shadow: 0 6px 20px rgba(13, 202, 240, 0.3);
}

[data-bs-theme="dark"] .match-tag:hover i,
[data-bs-theme="dark-small"] .match-tag:hover i {
    color: #0dcaf0;
}

[data-bs-theme="dark"] .match-page-title::after,
[data-bs-theme="dark-small"] .match-page-title::after {
    background: linear-gradient(90deg, #0dcaf0 0%, #0d6efd 100%);
}

[data-bs-theme="dark"] .match-more-link,
[data-bs-theme="dark-small"] .match-more-link {
    background: linear-gradient(135deg, #dc3545 0%, #b02a37 100%);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

[data-bs-theme="dark"] .match-more-link:hover,
[data-bs-theme="dark-small"] .match-more-link:hover {
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.5);
}