/* 页面全局样式 */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f7fc;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

/* 背景图片和首页容器 */
.header {
    width: 100%;
    height: 80vh;
    background: url('assets/images/auction-bg.jpg') no-repeat center center/cover;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.header h1 {
    font-size: 50px;
    margin: 10px 0;
}

.header p {
    font-size: 20px;
    margin: 10px 0;
}

.header a {
    background-color: #3498db;
    padding: 12px 20px;
    border-radius: 5px;
    color: white;
    font-size: 18px;
    text-decoration: none;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.header a:hover {
    background-color: #2980b9;
}

/* 拍卖商品卡片布局 */
.auction-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 40px 20px;
    width: 100%;
    max-width: 1200px;
}

.auction-item {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.auction-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.auction-item h3 {
    font-size: 22px;
    color: #2c3e50;
}

.auction-item p {
    font-size: 16px;
    color: #7f8c8d;
}

.auction-item .price {
    font-size: 20px;
    color: #e74c3c;
    margin-top: 10px;
}

.auction-item a {
    display: inline-block;
    background-color: #3498db;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 15px;
    transition: background-color 0.3s;
}

.auction-item a:hover {
    background-color: #2980b9;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header h1 {
        font-size: 40px;
    }

    .header p {
        font-size: 18px;
    }

    .auction-list {
        grid-template-columns: 1fr 1fr;
    }

    .auction-item {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 30px;
    }

    .header p {
        font-size: 16px;
    }

    .auction-list {
        grid-template-columns: 1fr;
    }
}
/* 导航栏样式 */
.navbar {
    width: 100%;
    background-color: #3498db;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

.navbar a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    margin: 0 15px;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.navbar a:hover {
    background-color: #2980b9;
}

.navbar .logo {
    font-size: 24px;
    font-weight: bold;
}

.navbar .logout {
    background-color: #e74c3c;
}

.navbar .logout:hover {
    background-color: #c0392b;
}

