/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

.container {
    width: 80%;
    margin: 0 auto;
    overflow: hidden;
}

/* 头部样式 */
header {
    background: #333;
    color: #fff;
    padding-top: 30px;
    min-height: 70px;
    border-bottom: #0779e4 3px solid;
}

header a {
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 16px;
}

header ul {
    padding: 0;
    margin: 0;
    list-style: none;
    overflow: hidden;
}

header li {
    float: left;
    display: inline;
    padding: 0 20px 0 20px;
}

header #branding {
    float: left;
}

header #branding h1 {
    margin: 0;
}

header nav {
    float: right;
    margin-top: 10px;
}

header .highlight, header .current a {
    color: #0779e4;
    font-weight: bold;
}

header a:hover {
    color: #ffffff;
    font-weight: bold;
}

/* 按钮样式 */
.button_1 {
    height: 38px;
    background: #0779e4;
    border: 0;
    padding-left: 20px;
    padding-right: 20px;
    color: #ffffff;
    cursor: pointer;
}

.button_1:hover {
    background: #0560b3;
}

/* 表单样式 */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* 商品列表样式 */
.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.item-card {
    background: #fff;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.item-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 10px;
}

.item-card h3 {
    margin-bottom: 10px;
}

.item-price {
    font-weight: bold;
    color: #e8491d;
}

/* 页脚样式 */
footer {
    padding: 20px;
    margin-top: 20px;
    color: #ffffff;
    background-color: #333;
    text-align: center;
}

/* 响应式设计 */
@media(max-width: 768px) {
    header #branding,
    header nav,
    header nav li {
        float: none;
        text-align: center;
        width: 100%;
    }

    header {
        padding-bottom: 20px;
    }

    .items-grid {
        grid-template-columns: 1fr;
    }
}

/* 商品详情页面样式 */
#item-detail {
    margin-top: 20px;
}

#item-detail h2 {
    margin-bottom: 20px;
    color: #333;
}

.item-detail-content {
    display: flex;
    gap: 30px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.item-detail-content img {
    width: 400px; /* 设置图片宽度为400px，可以根据需要调整 */
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    object-fit: cover;
}

.item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.item-info p {
    margin-bottom: 10px;
}

.item-description {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.item-description h3 {
    margin-bottom: 10px;
}

/* 联系表单样式 */
#contact-form {
    margin-top: 30px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

#contact-form h3 {
    margin-bottom: 15px;
}

/* 响应式调整 */
@media(max-width: 900px) {
    .item-detail-content {
        flex-direction: column;
        align-items: center;
    }
    
    .item-detail-content img {
        width: 100%;
        max-width: 400px;
    }
}