* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, "Microsoft YaHei", sans-serif;
    background: #f6f6f6;
    color: #222;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

/* 首页 */
.hero {
    text-align: center;
    padding: 80px 20px 60px;
}

.hero h1 {
    font-size: 40px;
    margin-bottom: 12px;
    font-weight: 500;
}

.hero p {
    color: #777;
    margin-bottom: 30px;
}

.enter-btn {
    display: inline-block;
    background: #222;
    color: #fff;
    padding: 14px 34px;
    border-radius: 999px;
    font-size: 15px;
    transition: 0.25s;
}

.enter-btn:hover {
    background: #444;
}

.featured {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

.featured h2 {
    text-align: center;
    margin-bottom: 30px;
    font-weight: 500;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: 0.3s;
    display: block;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
}

.card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.card-info {
    padding: 18px;
}

.card-info h3 {
    font-size: 17px;
    margin-bottom: 6px;
    font-weight: 500;
}

.card-info p {
    font-size: 14px;
    color: #777;
}

/* 图库页 */
.nav {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 30px 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.nav a {
    color: #555;
    font-size: 14px;
}

.nav h1 {
    font-size: 22px;
    font-weight: 500;
}

.gallery {
    max-width: 1100px;
    margin: 0 auto;
    padding: 10px 20px 80px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
}

.gallery img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.25s;
}

.gallery img:hover {
    transform: scale(1.04);
}

/* 页脚 */
footer {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 14px;
}

/* 移动端适配 */
@media (max-width: 640px) {
    .hero h1 {
        font-size: 28px;
    }

    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }

    .gallery img {
        height: 140px;
    }
}
