* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #dc3545 0%, #c41e3a 25%, #ff6b35 50%, #ffb300 75%, #ffd700 100%);
    background-attachment: fixed;
    min-height: 100vh;
    padding: 20px;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 215, 0, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(220, 53, 69, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(255, 179, 0, 0.15) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    position: relative;
    z-index: 1;
    margin-top: 20px;
    margin-bottom: 20px;
}

header {
    background: linear-gradient(135deg, #dc3545 0%, #c41e3a 50%, #ff6b35 100%);
    color: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    border-bottom: 3px solid #ffd700;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.site-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
}

header h1 {
    font-size: 28px;
    margin: 0;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), 0 0 10px rgba(255, 215, 0, 0.5);
    color: #ffd700;
}

nav {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 5px;
    transition: background 0.3s;
}

nav a:hover {
    background: rgba(255, 215, 0, 0.3);
    color: #ffd700;
}

/* Banner全屏容器 */
.banner-section-fullscreen {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    position: relative;
    overflow: hidden;
    margin-top: 0;
    margin-bottom: 0;
}

/* Banner轮播区域 */
.banner-section {
    width: 100%;
    height: 500px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #dc3545 0%, #c41e3a 50%, #ff6b35 100%);
    border-bottom: 3px solid #ffd700;
}

.banner-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.banner-slide {
    display: none;
    width: 100%;
    height: 100%;
    animation: fadeIn 0.8s ease-in-out;
}

.banner-slide.active {
    display: block;
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 轮播指示器 */
.banner-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.indicator.active {
    background: white;
    border-color: white;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

/* 轮播箭头 */
.banner-prev,
.banner-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    color: white;
    border: none;
    padding: 15px 10px;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    transition: all 0.3s;
    z-index: 10;
    border-radius: 0 5px 5px 0;
    user-select: none;
}

.banner-next {
    right: 0;
    border-radius: 5px 0 0 5px;
}

.banner-prev:hover,
.banner-next:hover {
    background: rgba(255, 255, 255, 0.6);
}

.banner-prev:active,
.banner-next:active {
    background: rgba(255, 255, 255, 0.8);
}

main {
    padding: 30px;
}

/* 商品网格 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.product-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    background: white;
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.product-image {
    text-align: center;
    margin-bottom: 15px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

/* 移除 mushroom-icon 样式，使用图片显示 */

.product-info h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 20px;
}

.product-desc {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
    min-height: 40px;
}

.product-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    gap: 10px;
}

.price {
    color: #dc3545;
    font-size: 24px;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(220, 53, 69, 0.3);
    padding: 5px 10px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 179, 0, 0.1) 100%);
    border-radius: 5px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.stock {
    color: #999;
    font-size: 12px;
}

.btn-add-cart {
    width: 100%;
    background: linear-gradient(135deg, #dc3545 0%, #c41e3a 50%, #ff6b35 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(220, 53, 69, 0.3);
    font-weight: bold;
}

.btn-add-cart:hover {
    background: linear-gradient(135deg, #c41e3a 0%, #dc3545 50%, #ffd700 100%);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.5);
    transform: translateY(-2px);
    color: #ffd700;
}

/* 购物车 */
.cart-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 30px;
}

.cart-section h2 {
    margin-bottom: 15px;
    color: #333;
}

.cart-list {
    list-style: none;
    margin-bottom: 15px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: white;
    margin-bottom: 10px;
    border-radius: 5px;
    flex-wrap: wrap;
    gap: 8px;
}

.cart-item > span:first-child {
    flex: 1;
    min-width: 0;
    font-weight: 500;
    color: #333;
}

.cart-item .cart-item-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.cart-item .cart-item-controls {
    display: flex;
    align-items: center;
    gap: 5px;
}

.cart-item .cart-item-price {
    font-weight: bold;
    color: #dc3545;
    min-width: 60px;
    text-align: right;
    text-shadow: 0 1px 2px rgba(220, 53, 69, 0.3);
}

.cart-item button {
    background: linear-gradient(135deg, #dc3545 0%, #c41e3a 100%);
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s;
    box-shadow: 0 1px 3px rgba(220, 53, 69, 0.3);
}

.cart-item button:hover {
    background: linear-gradient(135deg, #c41e3a 0%, #ff6b35 100%);
    box-shadow: 0 2px 5px rgba(220, 53, 69, 0.5);
}

.btn-remove {
    background: #e74c3c !important;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 2px solid #ddd;
}

.cart-total strong {
    font-size: 20px;
    color: #333;
}

.btn-checkout {
    background: linear-gradient(135deg, #dc3545 0%, #c41e3a 50%, #ff6b35 100%);
    color: white;
    border: 2px solid #ffd700;
    padding: 12px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 3px 8px rgba(220, 53, 69, 0.4);
}

.btn-checkout:hover {
    background: linear-gradient(135deg, #c41e3a 0%, #ff6b35 50%, #ffd700 100%);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.6);
    transform: translateY(-2px);
    border-color: #ffb300;
    color: #fff;
}

/* 登录/注册页面 */
.auth-container {
    max-width: 400px;
    margin: 50px auto;
    padding: 40px;
    background: white;
}

.auth-container h1 {
    text-align: center;
    color: #2d5016;
    margin-bottom: 10px;
}

.auth-container h2 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #dc3545;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.2);
}

.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s;
    resize: vertical;
    font-family: inherit;
}

.shipping-info-section {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 1px solid #e0e0e0;
}

.shipping-info-section h2 {
    font-size: 20px;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #dc3545;
}

.btn-save-shipping {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #dc3545 0%, #c41e3a 50%, #ff6b35 100%);
    color: white;
    border: 2px solid #ffd700;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 3px 8px rgba(220, 53, 69, 0.4);
    margin-top: 10px;
}

.btn-save-shipping:hover {
    background: linear-gradient(135deg, #c41e3a 0%, #ff6b35 50%, #ffd700 100%);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.6);
    transform: translateY(-2px);
    border-color: #ffb300;
}

.btn-wxpay:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #ccc !important;
    border-color: #999 !important;
}

.btn-wxpay:disabled:hover {
    transform: none;
    box-shadow: none;
}

.btn-primary {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #dc3545 0%, #c41e3a 50%, #ff6b35 100%);
    color: white;
    border: 2px solid #ffd700;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 3px 8px rgba(220, 53, 69, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #c41e3a 0%, #ff6b35 50%, #ffd700 100%);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.6);
    transform: translateY(-2px);
    border-color: #ffb300;
}

.auth-link {
    text-align: center;
    margin-top: 20px;
    color: #666;
}

.auth-link a {
    color: #dc3545;
    text-decoration: none;
    font-weight: 500;
}

.auth-link a:hover {
    color: #c41e3a;
    text-decoration: underline;
}

.auth-link a:hover {
    text-decoration: underline;
}

.error-message {
    background: #fee;
    color: #c33;
    padding: 12px;
    border-radius: 5px;
    margin-bottom: 20px;
    border: 1px solid #fcc;
}

.success-message {
    background: #efe;
    color: #3c3;
    padding: 12px;
    border-radius: 5px;
    margin-bottom: 20px;
    border: 1px solid #cfc;
}

/* 订单页面 */
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.order-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    background: white;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    flex-wrap: wrap;
    gap: 10px;
}

.order-no {
    font-weight: bold;
    color: #333;
}

.order-status {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-paid {
    background: #d4edda;
    color: #155724;
}

.status-cancelled {
    background: #f8d7da;
    color: #721c24;
}

.status-completed {
    background: #d1ecf1;
    color: #0c5460;
}

.order-body p {
    margin-bottom: 8px;
    color: #666;
}

.order-actions {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-state p {
    font-size: 18px;
    margin-bottom: 20px;
}

/* 支付页面 */
.pay-container {
    max-width: 800px;
    margin: 50px auto;
    padding: 40px;
    background: white;
}

.pay-container h1 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
}

.order-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.order-info p {
    margin-bottom: 10px;
    font-size: 16px;
}

.order-items-section {
    margin-bottom: 30px;
}

.order-items-section h2 {
    font-size: 20px;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #4a7c2a;
}

.order-items-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.order-item-card {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    transition: box-shadow 0.3s;
}

.order-item-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.order-item-image {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    border-radius: 5px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.order-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.order-item-image .no-image {
    color: #999;
    font-size: 12px;
}

.order-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.order-item-info h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    color: #333;
}

.order-item-desc {
    font-size: 14px;
    color: #666;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.order-item-details {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.order-item-price {
    color: #dc3545;
    font-size: 18px;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(220, 53, 69, 0.3);
}

.order-item-quantity {
    color: #666;
    font-size: 14px;
}

.order-item-total {
    color: #333;
    font-size: 16px;
    font-weight: 600;
    margin-left: auto;
}

.order-summary {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 30px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 16px;
}

.summary-row.total-row {
    border-top: 2px solid #ddd;
    margin-top: 10px;
    padding-top: 15px;
}

.total-amount {
    color: #dc3545;
    font-size: 24px;
    text-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
    padding: 5px 15px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 179, 0, 0.15) 100%);
    border-radius: 5px;
    border: 2px solid rgba(255, 215, 0, 0.4);
}

.pay-methods {
    margin-bottom: 30px;
}

.pay-methods h2 {
    margin-bottom: 15px;
    color: #333;
    font-size: 18px;
}

.btn-wxpay {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #dc3545 0%, #c41e3a 50%, #ff6b35 100%);
    color: white;
    border: 3px solid #ffd700;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(220, 53, 69, 0.4);
}

.btn-wxpay:hover {
    background: linear-gradient(135deg, #c41e3a 0%, #ff6b35 50%, #ffd700 100%);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.6);
    transform: translateY(-2px);
    border-color: #ffb300;
}

.pay-tips {
    background: #fff3cd;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    color: #856404;
    font-size: 14px;
}

.pay-tips p {
    margin-bottom: 5px;
}

.back-link {
    text-align: center;
}

.back-link a {
    color: #dc3545;
    text-decoration: none;
    font-weight: 500;
}

.back-link a:hover {
    color: #c41e3a;
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 768px) {
    body {
        padding: 0;
    }
    
    .container {
        margin-top: 0;
        margin-bottom: 0;
        border-radius: 0;
    }
    
    header {
        flex-direction: column;
        padding: 15px 20px;
        gap: 15px;
    }
    
    .logo-container {
        width: 100%;
        justify-content: center;
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .site-logo {
        height: 35px;
        flex-shrink: 0;
    }
    
    header h1 {
        font-size: 16px;
        line-height: 1.3;
        text-align: center;
        width: 100%;
        margin: 0;
    }
    
    nav {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
        margin-top: 0;
    }
    
    nav a {
        padding: 6px 12px;
        font-size: 14px;
    }
    
    nav span {
        font-size: 14px;
        width: 100%;
        text-align: center;
        padding: 5px 0;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .cart-item {
        flex-direction: row;
        flex-wrap: wrap;
        padding: 15px;
        gap: 10px;
    }
    
    .cart-item-name {
        width: 100%;
        font-size: 16px;
        font-weight: 600;
        margin-bottom: 8px;
        color: #333;
    }
    
    .cart-item-info {
        flex: 1;
        min-width: 0;
        display: flex;
        align-items: center;
        gap: 10px;
        flex-wrap: wrap;
    }
    
    .cart-item-unit-price {
        font-size: 14px;
        color: #666;
        white-space: nowrap;
    }
    
    .cart-item-controls {
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .cart-item-controls button {
        min-width: 32px;
        height: 32px;
        padding: 0;
        font-size: 16px;
        font-weight: bold;
    }
    
    .cart-item-quantity {
        min-width: 30px;
        text-align: center;
        font-weight: 600;
        font-size: 16px;
    }
    
    .cart-item-right {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
        justify-content: space-between;
        margin-top: 8px;
        padding-top: 8px;
        border-top: 1px solid #eee;
    }
    
    .cart-item-price {
        font-size: 18px;
        font-weight: bold;
        color: #e74c3c;
        text-align: left;
    }
    
    .btn-remove {
        font-size: 14px;
        padding: 6px 12px;
        white-space: nowrap;
    }
    
    .cart-total {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .btn-checkout {
        width: 100%;
    }
    
    .banner-section {
        height: 350px;
    }
    
    .banner-content h2 {
        font-size: 24px;
    }
    
    .banner-content p {
        font-size: 16px;
    }
    
    .pay-container {
        max-width: 100%;
        padding: 20px;
        margin: 0;
    }
    
    .order-item-card {
        flex-direction: column;
    }
    
    .order-item-image {
        width: 100%;
        height: 200px;
    }
    
    .order-item-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .order-item-total {
        margin-left: 0;
        width: 100%;
        text-align: right;
    }
}

/* 网站底部Footer */
.site-footer {
    background: linear-gradient(135deg, #c41e3a 0%, #dc3545 50%, #ff6b35 100%);
    color: #fff;
    padding: 30px 20px;
    margin-top: 40px;
    border-top: 3px solid #ffd700;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-address {
    font-size: 14px;
    color: #fff;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.footer-company {
    font-size: 16px;
    font-weight: 600;
    color: #ffd700;
    margin: 5px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.footer-time {
    font-size: 14px;
    color: #fff;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.footer-copyright {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
    margin: 10px 0 0 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .site-footer {
        padding: 20px 15px;
    }
    
    .footer-address {
        font-size: 13px;
    }
    
    .footer-company {
        font-size: 15px;
    }
    
    .footer-time {
        font-size: 13px;
    }
    
    .footer-copyright {
        font-size: 11px;
    }
}

