/* 订单结算页面样式 */ .checkout-section { margin-bottom: 1.5rem; } /* 地址选择区域美化 */ .address-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; margin-top: 1rem; } .address-card { position: relative; cursor: pointer; transition: all 0.3s ease; border: 2px solid #e9ecef; border-radius: 12px; overflow: hidden; background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%); box-shadow: 0 2px 4px rgba(0,0,0,0.05); } .address-card:hover { border-color: #007bff; box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15); transform: translateY(-2px); } .address-card.selected { border-color: #007bff; background: linear-gradient(135deg, #e7f3ff 0%, #cce7ff 100%); box-shadow: 0 4px 16px rgba(0, 123, 255, 0.2); transform: translateY(-2px); } .address-card.selected::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, #007bff, #0056b3); } .address-card-body { padding: 1.25rem; position: relative; } .address-header { display: flex; justify-content: between; align-items: flex-start; margin-bottom: 0.75rem; } .address-receiver { flex: 1; } .receiver-name { font-size: 1.1rem; font-weight: 600; color: #2c3e50; margin-bottom: 0.25rem; display: flex; align-items: center; } .receiver-name i { margin-right: 0.5rem; color: #007bff; } .receiver-phone { color: #6c757d; font-size: 0.9rem; margin-bottom: 0; display: flex; align-items: center; } .receiver-phone i { margin-right: 0.5rem; color: #28a745; } .address-content { background: rgba(255,255,255,0.7); padding: 0.75rem; border-radius: 8px; margin-bottom: 0.75rem; border-left: 3px solid #e9ecef; transition: all 0.3s ease; } .address-card.selected .address-content { border-left-color: #007bff; background: rgba(255,255,255,0.9); } .address-text { color: #495057; margin-bottom: 0; line-height: 1.5; display: flex; align-items: flex-start; } .address-text i { margin-right: 0.5rem; margin-top: 0.2rem; color: #6c757d; flex-shrink: 0; } .address-footer { display: flex; justify-content: space-between; align-items: center; } .default-badge { background: linear-gradient(45deg, #ff6b6b, #ee5a52); color: white; padding: 0.25rem 0.5rem; border-radius: 12px; font-size: 0.75rem; font-weight: 500; display: inline-flex; align-items: center; box-shadow: 0 2px 4px rgba(255,107,107,0.3); } .default-badge i { margin-right: 0.25rem; } /* 自定义单选按钮样式 */ .custom-radio { position: relative; width: 24px; height: 24px; } .custom-radio input[type="radio"] { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; } .custom-radio .radio-mark { position: absolute; top: 0; left: 0; width: 24px; height: 24px; background: #fff; border: 2px solid #ddd; border-radius: 50%; transition: all 0.3s ease; display: flex; align-items: center; justify-content: center; } .custom-radio input[type="radio"]:checked + .radio-mark { border-color: #007bff; background: #007bff; box-shadow: 0 0 0 3px rgba(0,123,255,0.2); } .custom-radio .radio-mark::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: white; opacity: 0; transform: scale(0); transition: all 0.2s ease; } .custom-radio input[type="radio"]:checked + .radio-mark::after { opacity: 1; transform: scale(1); } /* 新增地址按钮美化 */ .add-address-btn { background: linear-gradient(45deg, #28a745, #20c997); border: none; color: white; padding: 0.5rem 1rem; border-radius: 25px; font-size: 0.9rem; font-weight: 500; transition: all 0.3s ease; box-shadow: 0 2px 4px rgba(40,167,69,0.3); } .add-address-btn:hover { background: linear-gradient(45deg, #218838, #1e7e34); transform: translateY(-1px); box-shadow: 0 4px 8px rgba(40,167,69,0.4); color: white; } .add-address-btn i { margin-right: 0.5rem; } /* 卡片头部美化 */ .checkout-section .card-header { background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%); border-bottom: 1px solid #dee2e6; padding: 1rem 1.25rem; } .checkout-section .card-header h5 { margin-bottom: 0; color: #495057; font-weight: 600; } .checkout-section .card-header i { margin-right: 0.5rem; color: #007bff; font-size: 1.1rem; } /* 其他原有样式保持不变 */ .product-item { padding: 1rem 0; border-bottom: 1px solid #e9ecef; } .product-item:last-child { border-bottom: none; } .order-summary { background: #f8f9fa; padding: 1rem; border-radius: 0.5rem; } .price-row { display: flex; justify-content: space-between; margin-bottom: 0.5rem; } .price-row.total-price { font-size: 1.1rem; font-weight: bold; color: #dc3545; } .form-check { padding: 0.75rem; border: 1px solid #e9ecef; border-radius: 0.5rem; margin-bottom: 0.5rem; transition: all 0.3s ease; } .form-check:hover { border-color: #007bff; background-color: #f8f9fa; } .form-check-input:checked + .form-check-label { color: #007bff; } /* 支付方式特殊样式 */ .form-check input[type="radio"][value="simulate"]:checked + label { color: #ffc107; } .form-check input[type="radio"][value="simulate"]:checked + label i { color: #ffc107 !important; } /* 模拟支付说明样式 */ .alert-warning { border-left: 4px solid #ffc107; } /* 响应式设计 */ @media (max-width: 768px) { .address-container { grid-template-columns: 1fr; gap: 0.75rem; } .checkout-section .col-md-4, .checkout-section .col-md-3 { margin-bottom: 1rem; } .product-item .col-md-2, .product-item .col-md-6 { margin-bottom: 0.5rem; } .address-card-body { padding: 1rem; } .receiver-name { font-size: 1rem; } } /* 动画效果 */ @keyframes fadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } } @keyframes slideIn { from { opacity: 0; transform: translateX(-20px); } to { opacity: 1; transform: translateX(0); } } .alert { animation: fadeIn 0.3s ease; } .address-card { animation: slideIn 0.4s ease; } .address-card:nth-child(2) { animation-delay: 0.1s; } .address-card:nth-child(3) { animation-delay: 0.2s; } /* 按钮样式 */ .btn-lg { padding: 0.75rem 1.5rem; font-size: 1.1rem; } /* 表单标签样式 */ .form-check-label { cursor: pointer; width: 100%; } .form-check-label strong { display: block; margin-bottom: 0.25rem; } .form-check-label small { color: #6c757d; } /* 商品图片样式 */ .product-item img { max-height: 80px; object-fit: cover; } /* 价格显示样式 */ .fw-bold { color: #dc3545; } /* 面包屑导航样式 */ .breadcrumb { background: transparent; padding: 0; } .breadcrumb-item + .breadcrumb-item::before { color: #6c757d; } /* 加载状态动画 */ @keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.4); } 70% { box-shadow: 0 0 0 10px rgba(0, 123, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 123, 255, 0); } } .address-card.loading { animation: pulse 1.5s infinite; }