body {
    background-color: #f8f9fa;
    min-height: 100vh;
    margin: 0 auto;
    padding: 0; /* 移除原有padding，由header/footer/container承接 */
    border: 1px solid #dee2e6;
    border-radius: 0.75rem;
    max-width: 100vw;
    box-sizing: border-box;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column; /* 实现footer固定底部 */
}

/* Header样式 */
.app-header {
    background-color: #ffffff;
    border-bottom: 1px solid #dee2e6;
    padding: 1rem 2rem;
    border-top-left-radius: 0.75rem;
    border-top-right-radius: 0.75rem;
}

.app-header .logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: #0d6efd; /* Bootstrap主色 */
    text-decoration: none;
}

.app-header .header-info {
    font-size: 0.9rem;
    color: #6c757d;
    margin-left: 1rem;
}

/* Footer样式 */
.app-footer {
    background-color: #ffffff;
    border-top: 1px solid #dee2e6;
    padding: 1rem 2rem;
    margin-top: auto; /* 固定在页面底部 */
    border-bottom-left-radius: 0.75rem;
    border-bottom-right-radius: 0.75rem;
    font-size: 0.9rem;
    color: #6c757d;
}

.app-footer .footer-links a {
    color: #0d6efd;
    text-decoration: none;
    margin: 0 0.5rem;
}

.app-footer .footer-links a:hover {
    text-decoration: underline;
}

/* 原有样式保留并优化 */
.main-container {
    padding: 2rem 1rem; /* 替代body的padding */
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.card {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 8px;
}

.progress {
    height: 25px;
    border-radius: 12px;
    background-color: #e9ecef;
}

.progress-bar {
    border-radius: 12px;
    transition: width 0.3s ease;
}

.card-img-top {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    background-color: #e9ecef;
    aspect-ratio: 16/9;
    object-fit: contain;
}

@media (max-width: 768px) {
    .row > .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 1rem;
    }

    .row .col-md-5, .row .col-md-2 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 0.5rem;
    }

    .row .col-md-2 {
        margin-top: 0.5rem;
    }

    .app-header, .app-footer {
        padding: 1rem;
    }

    .app-header .header-info {
        display: block;
        margin-left: 0;
        margin-top: 0.5rem;
    }
}

@media (max-width: 576px) {
    body {
        border: none;
        box-shadow: none;
        border-radius: 0;
    }

    .app-header {
        border-radius: 0;
    }

    .app-footer {
        border-radius: 0;
    }
}

.btn {
    border-radius: 6px;
    transition: all 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.form-control, .form-select {
    border-radius: 6px;
    border: 1px solid #dee2e6;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus, .form-select:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.1);
    outline: none;
}