
/* 全局基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f9fafb;
    color: #333;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
    padding: 1rem 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.navbar h1 {
    font-size: 1.5em;
    color: #2d3748;
}
.navbar ul {
    list-style-type: none;
    display: flex;
    gap: 1.5rem;
}
.navbar a {
    text-decoration: none;
    color: #4a5568;
    transition: color 0.2s ease-in-out;
}
.navbar a:hover {
    color: #3182ce;
}

.hero-banner {
    height: 60vh;
    background-image: url('https://picsum.photos/id/1060/1200/600');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    color: white;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}
.banner-content {
    max-width: 600px;
    z-index: 1;
    backdrop-filter: blur(4px);
    padding: 2rem;
    border-radius: 10px;
    background-color: rgba(0,0,0,0.3);
}
.banner-content button {
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background-color: #3182ce;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}
.banner-content button:hover {
    background-color: #2c5aa0;
}

.resource-list-container {
    padding: 2rem;
}
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}
.resource-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s ease-in-out;
}
.resource-card:hover {
    transform: translateY(-5px);
}
.card-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}
.card-body {
    padding: 1rem;
}
.card-title {
    font-size: 1.1em;
    margin-bottom: 0.5rem;
}
.card-meta {
    font-size: 0.9em;
    color: gray;
}
.filters select {
    margin-left: 0.5rem;
    padding: 0.4rem;
    border-radius: 4px;
    border: 1px solid #ccc;
}

.detail-viewer {
    padding: 2rem;
    text-align: center;
}
.detail-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1rem;
}
.detail-info p {
    line-height: 1.6;
}

footer {
    text-align: center;
    padding: 1rem;
    background-color: #edf2f7;
    color: #4a5568;
    margin-top: auto;
}
