* { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif; color: #333; line-height: 1.6; background-color: #f9f9f9; } .container { max-width: 1280px; margin: 0 auto; padding: 0 20px; } .header { background: linear-gradient(135deg, #2d1b00 0%, #4a3220 100%); color: #fff; padding: 20px 0; box-shadow: 0 2px 10px rgba(0,0,0,0.1); } .header-content { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; } .logo h1 { font-size: 28px; font-weight: bold; letter-spacing: 2px; } .nav { display: flex; gap: 30px; } .nav-link { color: #fff; text-decoration: none; font-size: 16px; transition: color 0.3s; } .nav-link:hover, .nav-link.active { color: #e0c080; } .header-actions { display: flex; gap: 15px; } .search-btn, .cart-btn { padding: 10px 20px; border: 1px solid #e0c080; background: transparent; color: #fff; border-radius: 4px; cursor: pointer; transition: all 0.3s; } .search-btn:hover, .cart-btn:hover { background: #e0c080; color: #2d1b00; } .hero { background: linear-gradient(135deg, #8b7355 0%, #5d4037 100%); color: #fff; padding: 80px 0; text-align: center; } .hero h2 { font-size: 42px; margin-bottom: 15px; } .hero p { font-size: 18px; opacity: 0.9; } .main-content { padding: 40px 0; } .shop-layout { display: grid; grid-template-columns: 280px 1fr; gap: 30px; } .sidebar { background: #fff; padding: 25px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.08); height: fit-content; } .filter-section h3 { font-size: 20px; margin-bottom: 25px; color: #2d1b00; border-bottom: 2px solid #e0c080; padding-bottom: 10px; } .filter-group { margin-bottom: 25px; } .filter-group h4 { font-size: 16px; margin-bottom: 15px; color: #4a3220; } .filter-options { display: flex; flex-direction: column; gap: 12px; } .filter-option { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; } .filter-option input { cursor: pointer; } .price-filter { display: flex; flex-direction: column; gap: 15px; } .price-inputs { display: flex; align-items: center; gap: 10px; } .price-inputs input { flex: 1; padding: 10px; border: 1px solid #ddd; border-radius: 4px; font-size: 14px; } .apply-price-btn { padding: 10px 20px; background: #4a3220; color: #fff; border: none; border-radius: 4px; cursor: pointer; transition: background 0.3s; } .apply-price-btn:hover { background: #2d1b00; } .products-section { background: #fff; padding: 30px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.08); } .section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; flex-wrap: wrap; gap: 20px; } .section-header h2 { font-size: 28px; color: #2d1b00; } .sort-controls { display: flex; align-items: center; gap: 10px; } .sort-select { padding: 10px 15px; border: 1px solid #ddd; border-radius: 4px; font-size: 14px; background: #fff; cursor: pointer; } .products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 25px; } .product-card { background: #fff; border: 1px solid #eee; border-radius: 8px; overflow: hidden; transition: transform 0.3s, box-shadow 0.3s; cursor: pointer; } .product-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.12); } .product-image { width: 100%; height: 250px; object-fit: cover; background: linear-gradient(135deg, #f5f0e6 0%, #e8dcc8 100%); } .product-info { padding: 20px; } .product-title { font-size: 16px; font-weight: 600; color: #2d1b00; margin-bottom: 10px; } .product-description { font-size: 14px; color: #666; margin-bottom: 15px; } .product-price { font-size: 20px; font-weight: bold; color: #c62828; } .pagination { display: flex; justify-content: center; gap: 10px; margin-top: 40px; } .page-btn { padding: 10px 18px; border: 1px solid #ddd; background: #fff; border-radius: 4px; cursor: pointer; transition: all 0.3s; } .page-btn:hover { border-color: #4a3220; color: #4a3220; } .page-btn.active { background: #4a3220; color: #fff; border-color: #4a3220; } .footer { background: #2d1b00; color: #fff; padding: 50px 0 20px; margin-top: 60px; } .footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 30px; } .footer-section h4 { font-size: 18px; margin-bottom: 20px; color: #e0c080; } .footer-section p { opacity: 0.8; margin-bottom: 10px; } .footer-section ul { list-style: none; } .footer-section ul li { margin-bottom: 10px; } .footer-section ul li a { color: #fff; text-decoration: none; opacity: 0.8; transition: opacity 0.3s; } .footer-section ul li a:hover { opacity: 1; } .footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); opacity: 0.7; } @media (max-width: 968px) { .shop-layout { grid-template-columns: 1fr; } .sidebar { order: 2; } } .features { padding: 60px 0; background: #fff; } .features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; } .feature-item { text-align: center; padding: 30px; } .feature-icon { font-size: 48px; margin-bottom: 15px; } .feature-item h3 { font-size: 20px; color: #2d1b00; margin-bottom: 10px; } .feature-item p { color: #666; } .categories, .hot-products { padding: 60px 0; } .section-title { font-size: 32px; text-align: center; color: #2d1b00; margin-bottom: 40px; } .categories-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; } .category-card { background: #fff; border-radius: 8px; overflow: hidden; cursor: pointer; transition: transform 0.3s, box-shadow 0.3s; } .category-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.12); } .category-image { height: 180px; } .category-info { padding: 20px; } .category-info h3 { font-size: 20px; color: #2d1b00; margin-bottom: 8px; } .category-info p { color: #666; } .breadcrumb { padding: 20px 0; color: #666; } .breadcrumb a { color: #4a3220; text-decoration: none; } .breadcrumb a:hover { text-decoration: underline; } .product-detail { padding: 20px 0 60px; } .product-detail-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; background: #fff; padding: 40px; border-radius: 8px; margin-bottom: 40px; } .product-images { display: flex; flex-direction: column; gap: 15px; } .main-image { width: 100%; height: 450px; object-fit: cover; border-radius: 8px; background: linear-gradient(135deg, #f5f0e6 0%, #e8dcc8 100%); } .thumbnail-list { display: flex; gap: 10px; } .product-title-detail { font-size: 28px; color: #2d1b00; margin-bottom: 15px; } .product-description-detail { color: #666; margin-bottom: 25px; font-size: 16px; } .product-price-detail { margin-bottom: 25px; padding: 20px; background: #f9f5f0; border-radius: 8px; } .price-label { font-size: 16px; color: #666; } .price-value { font-size: 32px; font-weight: bold; color: #c62828; } .product-attributes { margin-bottom: 25px; } .attribute-group { display: flex; align-items: center; margin-bottom: 15px; } .attribute-label { width: 80px; color: #666; } .attribute-value { color: #333; } .size-select { padding: 8px 15px; border: 1px solid #ddd; border-radius: 4px; } .quantity-selector { display: flex; align-items: center; margin-bottom: 25px; } .quantity-label { margin-right: 15px; color: #666; } .quantity-control { display: flex; align-items: center; } .qty-btn { width: 36px; height: 36px; border: 1px solid #ddd; background: #fff; cursor: pointer; font-size: 18px; } .qty-input { width: 60px; height: 36px; text-align: center; border: 1px solid #ddd; border-left: none; border-right: none; } .product-actions { display: flex; gap: 15px; margin-bottom: 25px; } .add-to-cart-btn, .buy-now-btn { flex: 1; padding: 15px 30px; font-size: 16px; border: none; border-radius: 4px; cursor: pointer; transition: all 0.3s; } .add-to-cart-btn { background: #4a3220; color: #fff; } .add-to-cart-btn:hover { background: #2d1b00; } .buy-now-btn { background: #c62828; color: #fff; } .buy-now-btn:hover { background: #a82222; } .product-services { display: flex; gap: 25px; flex-wrap: wrap; } .service-item { display: flex; align-items: center; gap: 8px; color: #666; } .service-icon { color: #2e7d32; } .product-tabs { background: #fff; border-radius: 8px; margin-bottom: 40px; } .tab-nav { display: flex; border-bottom: 1px solid #eee; } .tab-btn { padding: 15px 30px; background: none; border: none; cursor: pointer; font-size: 16px; color: #666; position: relative; } .tab-btn.active { color: #4a3220; } .tab-btn.active::after { content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 2px; background: #4a3220; } .tab-content { padding: 30px; } .tab-panel { display: none; } .tab-panel.active { display: block; } .tab-panel h3 { color: #2d1b00; margin-bottom: 15px; } .tab-panel h4 { color: #4a3220; margin: 20px 0 10px; } .tab-panel ul { padding-left: 20px; } .specs-table { width: 100%; max-width: 500px; } .specs-table td { padding: 12px; border-bottom: 1px solid #eee; } .specs-table td:first-child { color: #666; } .review-item { padding: 20px 0; border-bottom: 1px solid #eee; } .reviewer-info { margin-bottom: 10px; } .reviewer-name { color: #333; font-weight: 600; margin-right: 15px; } .review-rating { color: #ff9800; margin-right: 15px; } .review-date { color: #999; } .review-content { color: #666; } .related-products { background: #fff; padding: 30px; border-radius: 8px; } .related-products h2 { font-size: 24px; color: #2d1b00; margin-bottom: 25px; } .cart-page { padding: 20px 0 60px; } .cart-title { font-size: 32px; color: #2d1b00; margin-bottom: 30px; } .cart-content { display: flex; flex-direction: column; gap: 30px; } .cart-items { background: #fff; border-radius: 8px; padding: 20px; } .cart-item { display: grid; grid-template-columns: 100px 2fr 1fr 1fr 1fr auto; align-items: center; gap: 20px; padding: 20px 0; border-bottom: 1px solid #eee; } .cart-item:last-child { border-bottom: none; } .cart-item-image { width: 100px; height: 100px; object-fit: cover; border-radius: 8px; } .cart-item-title { font-size: 16px; color: #2d1b00; font-weight: 600; } .cart-item-option { color: #666; font-size: 14px; margin-top: 5px; } .cart-item-price { color: #c62828; font-size: 18px; font-weight: bold; } .cart-item-quantity { display: flex; align-items: center; } .cart-item-total { color: #c62828; font-size: 18px; font-weight: bold; } .cart-item-delete { background: none; border: none; color: #999; cursor: pointer; font-size: 20px; } .cart-item-delete:hover { color: #c62828; } .cart-empty { text-align: center; padding: 80px 20px; background: #fff; border-radius: 8px; } .empty-icon { font-size: 80px; margin-bottom: 20px; } .cart-empty h3 { font-size: 24px; color: #2d1b00; margin-bottom: 10px; } .cart-empty p { color: #666; margin-bottom: 30px; } .go-shopping-btn { padding: 12px 30px; background: #4a3220; color: #fff; border: none; border-radius: 4px; cursor: pointer; font-size: 16px; } .go-shopping-btn:hover { background: #2d1b00; } .cart-summary { background: #fff; border-radius: 8px; padding: 30px; } .summary-row { display: flex; justify-content: space-between; margin-bottom: 15px; font-size: 16px; } .summary-row.total { padding-top: 15px; border-top: 1px solid #eee; font-size: 20px; font-weight: bold; } .summary-label { color: #666; } .summary-value { color: #333; } .total-price { color: #c62828; } .cart-actions { display: flex; gap: 15px; margin-top: 25px; } .continue-shopping-btn, .checkout-btn { flex: 1; padding: 15px 30px; font-size: 16px; border: none; border-radius: 4px; cursor: pointer; transition: all 0.3s; } .continue-shopping-btn { background: #f0f0f0; color: #333; } .continue-shopping-btn:hover { background: #e0e0e0; } .checkout-btn { background: #c62828; color: #fff; } .checkout-btn:hover { background: #a82222; } @media (max-width: 968px) { .shop-layout { grid-template-columns: 1fr; } .sidebar { order: 2; } .product-detail-layout { grid-template-columns: 1fr; } } @media (max-width: 768px) { .nav { flex-wrap: wrap; justify-content: center; } .hero h2 { font-size: 32px; } .products-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); } .cart-item { grid-template-columns: 1fr; gap: 15px; text-align: center; } .cart-item-image { margin: 0 auto; } } .checkout-page { padding: 20px 0 60px; } .checkout-title { font-size: 32px; color: #2d1b00; margin-bottom: 30px; } .checkout-steps { display: flex; align-items: center; justify-content: center; margin-bottom: 40px; } .step-item { display: flex; flex-direction: column; align-items: center; gap: 10px; } .step-number { width: 40px; height: 40px; border-radius: 50%; background: #e0e0e0; color: #999; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 16px; } .step-item.active .step-number { background: #4a3220; color: #fff; } .step-item.completed .step-number { background: #2e7d32; color: #fff; } .step-label { font-size: 14px; color: #666; } .step-item.active .step-label { color: #4a3220; font-weight: 600; } .step-line { width: 100px; height: 2px; background: #e0e0e0; margin: 0 20px; } .checkout-layout { display: grid; grid-template-columns: 1fr 400px; gap: 30px; } .checkout-form { display: flex; flex-direction: column; gap: 25px; } .form-section { background: #fff; padding: 30px; border-radius: 8px; } .form-section .section-title { font-size: 20px; color: #2d1b00; margin-bottom: 25px; padding-bottom: 15px; border-bottom: 1px solid #eee; } .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; } .form-group { display: flex; flex-direction: column; gap: 8px; } .form-group.full-width { grid-column: 1 / -1; } .form-label { font-size: 14px; color: #333; } .form-label .required { color: #c62828; } .form-input, .form-select, .form-textarea { padding: 12px 15px; border: 1px solid #ddd; border-radius: 4px; font-size: 14px; transition: border-color 0.3s; } .form-input:focus, .form-select:focus, .form-textarea:focus { outline: none; border-color: #4a3220; } .form-textarea { min-height: 100px; resize: vertical; } .region-selects { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; } .payment-methods { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; } .payment-option { cursor: pointer; } .payment-option input { display: none; } .payment-card { display: flex; align-items: center; gap: 15px; padding: 20px; border: 2px solid #eee; border-radius: 8px; transition: all 0.3s; } .payment-option input:checked + .payment-card { border-color: #4a3220; background: #f9f5f0; } .payment-icon { font-size: 32px; } .payment-name { font-size: 16px; font-weight: 600; color: #333; } .payment-desc { font-size: 13px; color: #666; margin-top: 3px; } .invoice-options { display: flex; gap: 25px; } .invoice-option { display: flex; align-items: center; gap: 8px; cursor: pointer; } .checkout-summary { position: sticky; top: 20px; height: fit-content; } .summary-card { background: #fff; padding: 25px; border-radius: 8px; } .summary-title { font-size: 18px; color: #2d1b00; margin-bottom: 20px; } .summary-items { max-height: 300px; overflow-y: auto; margin-bottom: 15px; } .summary-item { display: flex; gap: 15px; padding: 15px 0; border-bottom: 1px solid #eee; } .summary-item:last-child { border-bottom: none; } .summary-item-image { width: 60px; height: 60px; object-fit: cover; border-radius: 4px; } .summary-item-info { flex: 1; } .summary-item-title { font-size: 14px; color: #333; margin-bottom: 5px; } .summary-item-option { font-size: 12px; color: #999; } .summary-item-price { font-size: 14px; font-weight: 600; color: #c62828; } .summary-item-quantity { font-size: 12px; color: #999; } .summary-divider { height: 1px; background: #eee; margin: 15px 0; } .submit-order-btn { width: 100%; padding: 15px 30px; background: #c62828; color: #fff; border: none; border-radius: 4px; font-size: 18px; font-weight: 600; cursor: pointer; transition: background 0.3s; margin-top: 20px; } .submit-order-btn:hover { background: #a82222; } .security-tips { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 15px; color: #666; font-size: 13px; } .security-icon { font-size: 16px; } @media (max-width: 968px) { .checkout-layout { grid-template-columns: 1fr; } .checkout-summary { order: -1; position: static; } .payment-methods { grid-template-columns: 1fr; } .region-selects { grid-template-columns: 1fr; } } @media (max-width: 768px) { .checkout-steps { flex-wrap: wrap; } .step-line { width: 40px; margin: 0 10px; } .form-grid { grid-template-columns: 1fr; } .invoice-options { flex-direction: column; gap: 15px; } } .user-actions { display: flex; align-items: center; gap: 10px; } .user-link { color: #fff; text-decoration: none; font-size: 14px; transition: color 0.3s; } .user-link:hover { color: #e0c080; } .divider { color: #e0c080; opacity: 0.5; } .user-menu { position: relative; } .user-btn { display: flex; align-items: center; gap: 8px; padding: 10px 15px; border: 1px solid #e0c080; background: transparent; color: #fff; border-radius: 4px; cursor: pointer; transition: all 0.3s; } .user-btn:hover { background: #e0c080; color: #2d1b00; } .user-icon { font-size: 18px; } .user-dropdown { position: absolute; top: 100%; right: 0; margin-top: 5px; background: #fff; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.15); min-width: 160px; z-index: 1000; display: none; } .user-menu:hover .user-dropdown { display: block; } .dropdown-item { display: block; padding: 12px 20px; color: #333; text-decoration: none; font-size: 14px; transition: background 0.3s; } .dropdown-item:hover { background: #f5f0e6; color: #4a3220; } .dropdown-divider { height: 1px; background: #eee; margin: 5px 0; } .dropdown-item.logout { color: #c62828; } .auth-page { padding: 60px 0; min-height: 70vh; display: flex; align-items: center; justify-content: center; } .auth-box { background: #fff; border-radius: 12px; padding: 40px; width: 100%; max-width: 480px; box-shadow: 0 4px 20px rgba(0,0,0,0.1); } .auth-tabs { display: flex; margin-bottom: 30px; border-bottom: 2px solid #eee; } .auth-tab { flex: 1; text-align: center; padding: 15px; text-decoration: none; color: #999; font-size: 18px; font-weight: 600; position: relative; transition: color 0.3s; } .auth-tab:hover { color: #4a3220; } .auth-tab.active { color: #4a3220; } .auth-tab.active::after { content: ''; position: absolute; bottom: -2px; left: 0; right: 0; height: 2px; background: #4a3220; } .auth-form .form-group { margin-bottom: 20px; } .password-input-wrapper { position: relative; } .password-input-wrapper .form-input { padding-right: 50px; } .toggle-password { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; font-size: 18px; } .form-options { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; } .remember-me { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; color: #666; } .remember-me a { color: #4a3220; text-decoration: none; } .remember-me a:hover { text-decoration: underline; } .forgot-password { color: #4a3220; text-decoration: none; font-size: 14px; } .forgot-password:hover { text-decoration: underline; } .auth-submit-btn { width: 100%; padding: 15px 30px; background: #4a3220; color: #fff; border: none; border-radius: 4px; font-size: 18px; font-weight: 600; cursor: pointer; transition: background 0.3s; } .auth-submit-btn:hover { background: #2d1b00; } .auth-divider { text-align: center; margin: 30px 0; position: relative; } .auth-divider::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: #eee; } .auth-divider span { background: #fff; padding: 0 20px; color: #999; font-size: 14px; position: relative; } .social-login { display: flex; gap: 15px; } .social-btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border: 1px solid #ddd; background: #fff; border-radius: 4px; cursor: pointer; transition: all 0.3s; } .social-btn:hover { border-color: #4a3220; background: #f9f5f0; } .social-icon { font-size: 20px; } .auth-footer { text-align: center; margin-top: 25px; color: #666; font-size: 14px; } .auth-footer a { color: #4a3220; text-decoration: none; font-weight: 600; } .auth-footer a:hover { text-decoration: underline; } @media (max-width: 768px) { .header-actions { flex-wrap: wrap; justify-content: flex-end; } .auth-box { padding: 30px 20px; } .social-login { flex-direction: column; } } .search-box { display: flex; align-items: center; background: #fff; border-radius: 4px; overflow: hidden; } .search-input { padding: 10px 15px; border: none; outline: none; width: 200px; font-size: 14px; } .search-submit { padding: 10px 15px; background: #e0c080; border: none; cursor: pointer; font-size: 16px; transition: background 0.3s; } .search-submit:hover { background: #d0b070; } .search-results-page { padding: 20px 0 60px; } .search-title { font-size: 28px; color: #2d1b00; margin-bottom: 10px; } .search-info { color: #666; margin-bottom: 30px; font-size: 16px; } .search-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 25px; } .no-results { text-align: center; padding: 80px 20px; background: #fff; border-radius: 8px; } .no-results-icon { font-size: 80px; margin-bottom: 20px; } .no-results h3 { font-size: 24px; color: #2d1b00; margin-bottom: 10px; } .no-results p { color: #666; margin-bottom: 30px; } @media (max-width: 768px) { .search-input { width: 120px; } .search-results { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); } }