﻿:root {
    --border-radius: 8px;
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--body-bg, #f8f9fa);
    color: var(--text-color, #212529);
    line-height: 1.7;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

a {
    color: var(--primary-color, #0d6efd);
    text-decoration: none;
}

    a:hover {
        color: var(--primary-dark, #0a58ca);
        text-decoration: underline;
    }

img {
    max-width: 100%;
    height: auto;
}

/* 卡片 */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    overflow: hidden;
    background: #fff;
}

    .card:hover {
        transform: translateY(-6px);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    }

    .card .card-img-top {
        transition: transform 0.5s ease;
        object-fit: cover;
    }

    .card:hover .card-img-top {
        transform: scale(1.05);
    }

    .card .card-body {
        padding: 1.25rem;
    }

    .card .card-title {
        font-weight: 600;
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .card .card-text {
        color: #6c757d;
        font-size: 0.92rem;
    }

/* 轮播图 */
.carousel .carousel-item {
    height: 500px;
    background: #1a1a2e;
}

    .carousel .carousel-item img {
        height: 100%;
        width: 100%;
        object-fit: cover;
    }

.carousel .carousel-caption {
    background: rgba(0, 0, 0, 0.45);
    padding: 30px 40px;
    border-radius: var(--border-radius);
    bottom: 20%;
    max-width: 70%;
    margin: 0 auto;
    left: 15%;
    right: 15%;
    backdrop-filter: blur(4px);
}

    .carousel .carousel-caption h2 {
        font-size: 2.4rem;
        font-weight: 700;
    }

    .carousel .carousel-caption p {
        font-size: 1.1rem;
        opacity: 0.9;
    }

/* 按钮 */
.btn {
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color, #0d6efd);
    border-color: var(--primary-color, #0d6efd);
}

    .btn-primary:hover {
        background-color: var(--primary-dark, #0a58ca);
        border-color: var(--primary-dark, #0a58ca);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(13, 110, 253, 0.35);
    }

.btn-outline-primary {
    color: var(--primary-color, #0d6efd);
    border-color: var(--primary-color, #0d6efd);
}

    .btn-outline-primary:hover {
        background-color: var(--primary-color, #0d6efd);
        color: #fff;
        transform: translateY(-2px);
    }

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
}

/* 分页 */
.pagination .page-link {
    color: var(--primary-color, #0d6efd);
    border: none;
    border-radius: 6px;
    margin: 0 4px;
    padding: 0.5rem 0.9rem;
    transition: all 0.3s ease;
    background: transparent;
    font-weight: 500;
}

    .pagination .page-link:hover {
        background-color: var(--primary-color, #0d6efd);
        color: #fff;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
    }

.pagination .page-item.active .page-link {
    background-color: var(--primary-color, #0d6efd);
    color: #fff;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.4);
}

.pagination .page-item.disabled .page-link {
    color: #adb5bd;
    background: transparent;
    cursor: not-allowed;
}

/* 页脚 */
footer {
    background-color: var(--footer-bg, #1a1a2e) !important;
    padding: 2.5rem 0 1.5rem;
    margin-top: 3rem;
}

    footer h5 {
        color: #fff;
        font-weight: 600;
        margin-bottom: 1rem;
    }

    footer .text-muted {
        color: #9ca3af !important;
    }

    footer a.text-muted:hover {
        color: #fff !important;
        text-decoration: none;
    }

    footer hr {
        border-color: rgba(255, 255, 255, 0.08);
    }

/* 内容 */
.content {
    font-size: 1.05rem;
    line-height: 1.8;
}

    .content h1, .content h2, .content h3 {
        margin-top: 1.8rem;
        margin-bottom: 0.8rem;
        font-weight: 600;
    }

    .content img {
        max-width: 100%;
        height: auto;
        border-radius: var(--border-radius);
        margin: 1.5rem 0;
    }

/* 表单 */
.form-control {
    border-radius: var(--border-radius);
    padding: 0.6rem 1rem;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
}

    .form-control:focus {
        border-color: var(--primary-color, #0d6efd);
        box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.12);
    }

/* 响应式 */
@media (max-width: 768px) {
    .carousel .carousel-item {
        height: 300px;
    }

    .carousel .carousel-caption {
        padding: 15px 20px;
        bottom: 15%;
    }

        .carousel .carousel-caption h2 {
            font-size: 1.5rem;
        }

        .carousel .carousel-caption p {
            font-size: 0.9rem;
        }

    .navbar .navbar-brand {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .carousel .carousel-item {
        height: 220px;
    }

    .carousel .carousel-caption h2 {
        font-size: 1.1rem;
    }

    .carousel .carousel-caption p {
        display: none;
    }

    .btn-lg {
        padding: 0.5rem 1.2rem;
        font-size: 0.95rem;
    }
}
