/* 基本样式 */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    color: #333;
}

.container {
    width: 1200px;
    margin: 0 auto;
}

/* 头部样式 */
header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.logo h1 {
    margin: 0;
    font-size: 2rem;
    color: #ff6a00;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

nav ul li {
    margin: 0;
}

nav ul li a {
    color: #333;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #ff6a00;
}

.user-actions {
    margin-left: auto;
}

.user-actions a {
    color: #333;
    text-decoration: none;
    margin-left: 1rem;
}

.user-actions a:hover {
    color: #ff6a00;
}

.header-bottom {
    padding: 1rem 0;
}

.search-bar {
    display: flex;
    align-items: center;
    margin-left: auto;
    margin-right: 1rem;
}

.search-bar input {
    width: 200px; /* 调整宽度 */
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
}

.search-bar button {
    padding: 0.5rem 1rem;
    background-color: #ff6a00;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.search-bar button:hover {
    background-color: #e65c00;
}

/* 横幅样式 */
.banner {
    margin-top: 0; /* 移除上边距 */
    padding-top: 1rem; /* 添加内边距 */
}

.banner img {
    width: 100%;
    border-radius: 8px;
}

/* 分类样式 */
.categories {
    margin: 2rem 0;
}

.categories h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.category-list {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.category {
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    width: 120px; /* 调整宽度 */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.category img {
    width: 100px; /* 固定宽度 */
    height: 100px; /* 固定高度 */
    object-fit: cover; /* 确保图片填充容器 */
    border-radius: 8px;
}

.category h3 {
    margin: 0.5rem 0 0;
    font-size: 1rem;
    white-space: nowrap; /* 防止文字换行 */
}

/* 推荐商品样式 */
.recommended {
    margin: 2rem 0;
}

.recommended h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.product-list {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.product {
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    width: 250px; /* 调整宽度 */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.product img {
    width: 200px; /* 固定宽度 */
    height: 200px; /* 固定高度 */
    object-fit: cover; /* 确保图片填充容器 */
    border-radius: 8px;
}

.product h3 {
    margin: 1rem 0 0.5rem;
    font-size: 1.2rem;
    color: #333;
}

.product .price {
    color: #ff6a00;
    font-weight: bold;
    margin: 0.5rem 0;
    font-size: 1.1rem;
}

.product button {
    background-color: #ff6a00;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.product button:hover {
    background-color: #e65c00;
}

/* 页脚样式 */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
}

footer p {
    margin: 0;
    font-size: 0.9rem;
}

/* 个人中心样式 */
.profile {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
    align-items: flex-start; /* 确保顶部对齐 */
}

.profile-sidebar {
    width: 100%; /* 调整为与右侧模块同宽 */
    max-width: 400px; /* 限制最大宽度 */
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-left: 0; /* 确保左侧不凸出 */
}

.user-info {
    text-align: center;
    margin-bottom: 1.5rem;
}

.user-info img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.user-info h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #333;
}

.profile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.profile-nav ul li {
    margin-bottom: 0.8rem;
}

.profile-nav ul li a {
    color: #555;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.profile-nav ul li a:hover {
    color: #ff6a00;
}

.profile-content {
    flex: 1;
    margin-left: 0; /* 确保左侧不凸出 */
}

.profile-section {
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.profile-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.order-list, .favorite-list, .footprint-list, .product-list {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.order, .product {
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 1rem;
    width: 250px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.order:hover, .product:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.order h3, .product h3 {
    margin: 0.5rem 0;
    font-size: 1.1rem;
    color: #333;
}

.order p, .product .price {
    margin: 0.5rem 0;
    color: #555;
}

.order button, .product button {
    background-color: #ff6a00;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.order button:hover, .product button:hover {
    background-color: #e65c00;
}

/* 轮播图样式 */
.slideshow {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 8px;
    background-color: #f0f0f0;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* 确保图片完整显示，不裁剪 */
}

.slide.active {
    opacity: 1;
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 50%;
    font-size: 18px;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

/* 静态横幅样式 */
.banner-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 五列布局 */
    gap: 1rem; /* 图片之间的间距 */
}

.banner-item {
    width: 100%;
    height: 180px; /* 进一步调整高度 */
    overflow: hidden;
    border-radius: 8px;
}

.banner-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 确保图片填充容器 */
}

/* 购物车样式 */
.cart {
    padding: 2rem 0;
}

.cart-items {
    margin-bottom: 2rem;
}

.cart-item {
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.cart-item-img {
    width: 60px; /* 进一步调整宽度 */
    height: 60px; /* 进一步调整高度 */
    object-fit: cover; /* 确保图片填充容器 */
    border-radius: 8px;
    margin-right: 1rem;
}

.cart-item h3 {
    margin: 0;
    font-size: 1.1rem;
    flex: 1;
}

.cart-item p {
    margin: 0 1rem;
    font-size: 1rem;
}

.cart-item input {
    width: 50px;
    padding: 0.3rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.cart-item button {
    background-color: #ff4d4d;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
}

.cart-item button:hover {
    background-color: #e60000;
}

.cart-total {
    font-size: 1.5rem;
    font-weight: bold;
    margin-top: 1rem;
    text-align: right;
}

.cart-total button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.1rem;
}

.cart-total button:hover {
    background-color: #45a049;
}

/* 登录页面样式 */
.login {
    padding: 2rem 0;
}

.login form {
    max-width: 400px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.login label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    color: #333;
}

.login input {
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.login button {
    width: 100%;
    padding: 0.8rem;
    background-color: #ff6a00;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.login button:hover {
    background-color: #e65c00;
}

.language-selector {
    margin-left: auto;
    margin-right: 1rem;
}

.language-selector select {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    cursor: pointer;
}

.order-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 1rem;
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.order-item-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 1rem;
}

.order-item h4 {
    margin: 0;
    font-size: 1.1rem;
    flex: 1;
}

.order-item p {
    margin: 0;
    font-size: 1rem;
    color: #555;
}

.payment-methods {
    margin-top: 2rem;
}

.payment-methods h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: #333;
}

.payment-methods label {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 1rem;
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.payment-methods label:hover {
    background-color: #f9f9f9;
}

.payment-icon {
    width: 40px;
    height: 40px;
    margin-right: 1rem;
}

/* 结算页面样式 */
.checkout {
    padding: 2rem 0;
}

.checkout .container {
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.contact-info,
.order-summary,
.payment-methods {
    margin-bottom: 2rem;
}

.contact-info label,
.order-summary h3,
.payment-methods h3 {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    color: #333;
}

.contact-info input {
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.order-items {
    margin-bottom: 1rem;
}

.order-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 1rem;
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.order-item-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 1rem;
}

.order-item h4 {
    margin: 0;
    font-size: 1.1rem;
    flex: 1;
}

.order-item p {
    margin: 0;
    font-size: 1rem;
    color: #555;
}

.payment-methods label {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 1rem;
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.payment-methods label:hover {
    background-color: #f9f9f9;
}

.payment-icon {
    width: 40px;
    height: 40px;
    margin-right: 1rem;
}

button[type="submit"] {
    width: 100%;
    padding: 1rem;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
    background-color: #45a049;
}

.customer-service {
    padding: 2rem 0;
}

.customer-service .container {
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.chat-box {
    display: flex;
    flex-direction: column;
    height: 500px;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}

.chat-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    background: #f9f9f9;
}

.chat-message {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.chat-message.user {
    justify-content: flex-end;
}

.chat-message.customer {
    justify-content: flex-start;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 1rem;
}

.message-content {
    max-width: 70%;
    padding: 0.8rem;
    border-radius: 8px;
    background: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.chat-message.customer .message-content {
    background: #4CAF50;
    color: white;
}

.chat-message.user .message-content {
    background: #f1f1f1;
    color: #333;
}

.chat-input {
    display: flex;
    padding: 1rem;
    background: white;
    border-top: 1px solid #eee;
}

.chat-input input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-right: 1rem;
}

.chat-input button {
    padding: 0.5rem 1rem;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.chat-input button:hover {
    background-color: #45a049;
}

.order-tabs {
    display: flex;
    margin-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.tab-link {
    padding: 0.5rem 1rem;
    margin-right: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: #333;
    transition: color 0.3s ease;
}

.tab-link.active {
    color: #4CAF50;
    border-bottom: 2px solid #4CAF50;
}

.tab-link:hover {
    color: #4CAF50;
}

.order-tab-content {
    margin-top: 1rem;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.order-list {
    display: flex;
    flex-direction: column;
}

.order {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    margin-bottom: 1rem;
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.order h3 {
    margin: 0;
    font-size: 1.1rem;
}

.order p {
    margin: 0;
    font-size: 1rem;
    color: #555;
}

.order button {
    padding: 0.5rem 1rem;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.order button:hover {
    background-color: #45a049;
}

.login-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.login-buttons button {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
}

.merchant-dashboard .dashboard-content,
.admin-dashboard .dashboard-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.dashboard-section {
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

.dashboard-section h3 {
    margin-bottom: 0.5rem;
    color: #333;
}

.dashboard-section p {
    margin: 0.5rem 0;
    color: #555;
}

.dashboard-section button {
    padding: 0.5rem 1rem;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dashboard-section button:hover {
    background-color: #45a049;
}

.product-detail {
    padding: 2rem 0;
}

.product-detail .container {
    display: flex;
    gap: 2rem;
}

.product-images {
    flex: 1;
}

.product-images .main-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.product-images .thumbnail-images {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.product-images .thumbnail-images img {
    max-width: 100px;
    height: auto;
    border-radius: 8px;
    cursor: pointer;
}

.product-info {
    flex: 1;
}

.product-info h2 {
    margin-top: 0;
    color: #333;
}

.product-info .price {
    font-size: 1.5rem;
    color: #4CAF50;
}

.product-info .description {
    margin: 1rem 0;
    color: #555;
}

.store-info {
    margin-top: 1rem;
    padding: 1rem;
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 8px;
}

.store-info h3 {
    margin-top: 0;
    color: #333;
}

.store-info p {
    margin: 0.5rem 0;
    color: #555;
}

.btn-primary {
    padding: 0.75rem 1.5rem;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #45a049;
}

.product-tags {
    margin: 1rem 0;
}

.product-tags .tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #f1f1f1;
    border-radius: 4px;
    margin-right: 0.5rem;
    font-size: 0.9rem;
}

.product-reviews {
    margin: 1rem 0;
}

.product-reviews .review {
    margin: 1rem 0;
    padding: 1rem;
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.product-reviews .review-rating {
    color: #ffc107;
    margin: 0;
}

.product-reviews .review-text {
    margin: 0.5rem 0;
}

.store-info {
    margin: 1rem 0;
}

.store-info p {
    margin: 0.5rem 0;
}

.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.header-actions button {
    padding: 0.5rem 1rem;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.header-actions button:hover {
    background-color: #45a049;
}

.new-user-offer {
    padding: 2rem 0;
    background-color: #f9f9f9;
}

.new-user-offer h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #333;
}

.coupon-section, .new-user-products {
    margin-bottom: 2rem;
}

.coupon-section h3, .new-user-products h3 {
    margin-bottom: 1rem;
    color: #555;
}

.coupon-list {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.coupon {
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.coupon p {
    margin: 0.5rem 0;
    font-size: 1.1rem;
    color: #333;
}

.coupon button {
    padding: 0.5rem 1rem;
    background-color: #ff6a00;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.coupon button:hover {
    background-color: #e65c00;
}

.new-user-products .product-list {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.new-user-products .product {
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.new-user-products .product img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.new-user-products .product h3 {
    margin: 0.5rem 0;
    color: #333;
}

.new-user-products .product .price {
    font-size: 1.1rem;
    color: #4CAF50;
}

.new-user-products .product button {
    padding: 0.5rem 1rem;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.new-user-products .product button:hover {
    background-color: #45a049;
}

.service-list, .market-info {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.service, .info-item {
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.service h4, .info-item h4 {
    margin: 0.5rem 0;
    color: #333;
}

.service p, .info-item p {
    margin: 0.5rem 0;
    color: #555;
}

.service button, .info-item button {
    padding: 0.5rem 1rem;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.service button:hover, .info-item button:hover {
    background-color: #45a049;
}

.share-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.share-buttons button {
    padding: 0.5rem 1rem;
    background-color: #3b5998; /* Facebook 蓝色 */
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.share-buttons button:nth-child(2) {
    background-color: #e4405f; /* Instagram 粉色 */
}

.share-buttons button:hover {
    opacity: 0.9;
}

.offline-stores {
    padding: 2rem 0;
    background-color: #f9f9f9;
}

.offline-stores h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #333;
}

.store-map {
    margin-bottom: 2rem;
}

.store-list {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.store {
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.store h3 {
    margin: 0.5rem 0;
    color: #333;
}

.store p {
    margin: 0.5rem 0;
    color: #555;
}

.recommended-products {
    padding: 2rem 0;
    background-color: #f9f9f9;
}

.recommended-products h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #333;
}

.recommended-products .product-list {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap; /* 支持多行显示 */
}

.recommended-products .product {
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    width: 200px; /* 固定商品宽度 */
    margin-bottom: 1rem; /* 商品之间的间距 */
}

.recommended-products .product img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.recommended-products .product h3 {
    margin: 0.5rem 0;
    color: #333;
}

.recommended-products .product .price {
    font-size: 1.1rem;
    color: #4CAF50;
}

.recommended-products .product button {
    padding: 0.5rem 1rem;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.recommended-products .product button:hover {
    background-color: #45a049;
}

.membership-info {
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.membership-info p {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 1rem;
}

.membership-info button {
    padding: 0.5rem 1rem;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.membership-info button:hover {
    background-color: #45a049;
}

.upcoming-events {
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.upcoming-events h3 {
    margin-bottom: 1rem;
    color: #333;
}

.event-list {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.event {
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 1rem;
    flex: 1 1 calc(50% - 0.5rem);
    box-sizing: border-box;
}

.event h4 {
    margin: 0.5rem 0;
    color: #333;
}

.event p {
    margin: 0.5rem 0;
    color: #555;
}

.event button {
    padding: 0.5rem 1rem;
    background-color: #ff6a00;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.event button:hover {
    background-color: #e65c00;
}

.user-info,
.user-purchases,
.user-feedback {
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 8px;
}

.user-info h4,
.user-purchases h4,
.user-feedback h4 {
    margin-bottom: 0.5rem;
    color: #333;
}

.user-info p,
.user-purchases p,
.user-feedback p {
    margin: 0.5rem 0;
    color: #555;
}

.fixed-assets,
.working-capital {
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 8px;
}

.fixed-assets h4,
.working-capital h4 {
    margin-bottom: 0.5rem;
    color: #333;
}

.fixed-assets p,
.working-capital p {
    margin: 0.5rem 0;
    color: #555;
}

.cold-chain-info {
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 8px;
}

.cold-chain-info h4 {
    margin-bottom: 1rem;
    color: #333;
}

.chart-container {
    margin-bottom: 1rem;
}

.sensor-data {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.sensor-data p {
    margin: 0;
    color: #555;
}

.alert-message {
    padding: 0.5rem;
    background-color: #ffebee;
    border: 1px solid #ffcdd2;
    border-radius: 4px;
    color: #c62828;
    text-align: center;
}

.customs-declaration {
    padding: 2rem 0;
}

.declaration-form {
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    font-weight: bold;
    color: #333;
}

.form-group p {
    margin: 0.5rem 0;
    color: #555;
}

.declaration-form button {
    width: 100%;
    padding: 0.75rem;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.declaration-form button:hover {
    background-color: #45a049;
}

.product-image,
.destination-image {
    max-width: 100px;
    height: auto;
    border-radius: 8px;
    margin-top: 0.5rem;
} 