/* car-detail.wxss */ /* 全局容器 */ .my_container { min-height: 100vh; background: linear-gradient(135deg, #e8e9ec80 0%, #bfbcc248 100%); position: relative; overflow-x: hidden; } /* 加载状态 */ .loading-container { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); background: rgba(255, 255, 255, 0.95); border-radius: 16px; padding: 32px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1); backdrop-filter: blur(10px); display: flex; align-items: center; justify-content: center; z-index: 1000; } /* 头部图片区域 */ .hero-section { position: relative; height: 260px; margin: 0 16px 16px 16px; border-radius: 20px; overflow: hidden; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15); } .car-image { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; } .car-image:active { transform: scale(0.98); } .back-button { position: absolute; top: 20px; left: 20px; width: 44px; height: 44px; background: rgba(255, 255, 255, 0.9); border-radius: 22px; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(10px); box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1); transition: all 0.3s ease; } .back-button:active { transform: scale(0.95); background: rgba(255, 255, 255, 0.8); } .van-button { width: auto !important; } .share-button { position: absolute; top: 20px; right: 20px; width: 44px; height: 44px; background: rgba(255, 255, 255, 0.9); border-radius: 22px; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(10px); box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1); transition: all 0.3s ease; } .share-button:active { transform: scale(0.95); background: rgba(255, 255, 255, 0.8); } .image-indicator { position: absolute; top: 20px; right: 80px; background: rgba(0, 0, 0, 0.6); color: white; padding: 6px 12px; border-radius: 16px; font-size: 12px; font-weight: 500; backdrop-filter: blur(5px); } .more-images-btn { position: absolute; bottom: 20px; right: 20px; background: rgba(255, 255, 255, 0.9); border-radius: 20px; padding: 8px 16px; display: flex; align-items: center; gap: 6px; backdrop-filter: blur(10px); box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1); transition: all 0.3s ease; } .more-images-btn text { font-size: 14px; color: #333; font-weight: 500; } .more-images-btn:active { transform: scale(0.95); background: rgba(255, 255, 255, 0.8); } /* 车辆信息卡片 */ .car-info-card { background: white; margin: 0 16px 16px 16px; border-radius: 20px; padding: 24px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08); position: relative; overflow: hidden; } .car-info-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, #667eea, #764ba2); } .car-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; } .car-title { font-size: 24px; font-weight: 700; color: #1a1a1a; line-height: 1.3; flex: 1; margin-right: 16px; } .favorite-btn { width: 40px; height: 40px; background: #f8f9fa; border-radius: 20px; display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; } .favorite-btn:active { transform: scale(0.9); background: #667eea; color: white; } .car-desc { font-size: 16px; color: #666; line-height: 1.5; margin-bottom: 20px; } .price-section { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; } .current-price { font-size: 28px; font-weight: 700; color: #e74c3c; background: linear-gradient(45deg, #e74c3c, #c0392b); -webkit-background-clip: text; -webkit-text-fill-color: transparent; } .original-price { font-size: 16px; color: #999; text-decoration: line-through; } .discount-badge { background: linear-gradient(45deg, #2ecc71, #27ae60); color: white; padding: 4px 12px; border-radius: 16px; font-size: 12px; font-weight: 600; box-shadow: 0 2px 8px rgba(46, 204, 113, 0.3); } .brand-info { display: flex; align-items: center; gap: 12px; background: #f8f9fa; padding: 16px; border-radius: 16px; border: 1px solid #e9ecef; } .brand-logo { width: 48px; height: 48px; border-radius: 12px; background: white; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); } .brand-text { flex: 1; } .brand-name { font-size: 16px; font-weight: 600; color: #1a1a1a; margin-bottom: 4px; } .series-name { font-size: 14px; color: #666; } .calculator-btn { display: flex; align-items: center; gap: 6px; background: linear-gradient(45deg, #667eea, #764ba2); color: white; padding: 8px 16px; border-radius: 20px; font-size: 14px; font-weight: 500; box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3); transition: all 0.3s ease; } .calculator-btn:active { transform: scale(0.95); box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4); } /* 车辆属性卡片 */ .attributes-card { background: white; margin: 0 16px 16px 16px; border-radius: 20px; padding: 24px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08); } .card-title { font-size: 20px; font-weight: 700; color: #1a1a1a; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid #f1f3f4; position: relative; } .card-title::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 40px; height: 2px; background: linear-gradient(90deg, #667eea, #764ba2); } .attributes-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; } .attribute-item { background: #f8f9fa; padding: 16px; border-radius: 12px; border-left: 4px solid #e9ecef; transition: all 0.3s ease; } .attribute-item:active { transform: scale(0.98); box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1); } .status-checked { background: linear-gradient(135deg, #e8f5e8, #f0f8f0); border-left-color: #2ecc71; } .attribute-label { font-size: 12px; color: #666; margin-bottom: 6px; font-weight: 500; } .attribute-value { font-size: 16px; color: #1a1a1a; font-weight: 600; display: flex; align-items: center; justify-content: space-between; } /* 快捷操作 */ .quick-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 0 16px 16px 16px; } .action-item { background: white; padding: 20px 12px; border-radius: 16px; display: flex; flex-direction: column; align-items: center; gap: 8px; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06); transition: all 0.3s ease; } .action-item:active { transform: scale(0.95); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12); } .action-item:nth-child(1) { background: linear-gradient(135deg, #fff5f5, #ffeaea); color: #e74c3c; } .action-item:nth-child(2) { background: linear-gradient(135deg, #f0f8ff, #e6f3ff); color: #3498db; } .action-item:nth-child(3) { background: linear-gradient(135deg, #fff8e1, #ffecb3); color: #f39c12; } .action-item:nth-child(4) { background: linear-gradient(135deg, #f3e5f5, #e8d5ee); color: #9b59b6; } .action-item text { font-size: 12px; font-weight: 600; text-align: center; } /* 联系我们 */ .contact-section { background: white; margin: 0 16px 16px 16px; border-radius: 20px; padding: 24px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08); } .contact-info { margin-bottom: 24px; } .contact-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #f1f3f4; } .contact-item:last-child { border-bottom: none; } .contact-item text { font-size: 16px; color: #333; font-weight: 500; } .contact-buttons { display: flex; gap: 12px; } .contact-btn { flex: 1; border-radius: 24px !important; font-weight: 600 !important; font-size: 16px !important; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1); transition: all 0.3s ease; } .contact-btn.primary { background: linear-gradient(45deg, #667eea, #764ba2) !important; border: none !important; } .contact-btn.secondary { background: linear-gradient(45deg, #2ecc71, #27ae60) !important; border: none !important; } .contact-btn:active { transform: scale(0.98); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); } /* 底部安全区域 */ .safe-area-bottom { height: 34px; background: transparent; } /* 响应式优化 */ @media (max-width: 375px) { .attributes-grid { grid-template-columns: 1fr; } .quick-actions { grid-template-columns: repeat(2, 1fr); } .car-title { font-size: 22px; } .current-price { font-size: 24px; } } /* 动画效果 */ @keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } } .car-info-card, .attributes-card, .contact-section { animation: fadeInUp 0.6s ease-out; } .car-info-card { animation-delay: 0.1s; } .attributes-card { animation-delay: 0.2s; } .quick-actions { animation: fadeInUp 0.6s ease-out; animation-delay: 0.3s; } .contact-section { animation-delay: 0.4s; } /* 毛玻璃效果增强 */ .back-button, .share-button, .more-images-btn { backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); } /* 悬浮效果 */ .car-info-card, .attributes-card, .contact-section { transform: translateY(0); transition: transform 0.3s ease, box-shadow 0.3s ease; } .car-info-card:hover, .attributes-card:hover, .contact-section:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12); } /* 渐变文字效果 */ .brand-name { background: linear-gradient(45deg, #667eea, #764ba2); -webkit-background-clip: text; -webkit-text-fill-color: transparent; } /* 自定义滚动条 */ ::-webkit-scrollbar { width: 4px; } ::-webkit-scrollbar-track { background: transparent; } ::-webkit-scrollbar-thumb { background: linear-gradient(45deg, #667eea, #764ba2); border-radius: 2px; } ::-webkit-scrollbar-thumb:hover { background: linear-gradient(45deg, #764ba2, #667eea); } /* 车辆信息卡片 */ .car-info-card { background: #fff; border-radius: 20rpx; padding: 30rpx; margin: 20rpx; box-shadow: 0 4rpx 20rpx rgba(0, 0, 0, 0.08); position: relative; overflow: hidden; } /* 不同车型的顶部装饰条 */ .car-type-1::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 8rpx; background: linear-gradient(90deg, #1989fa, #40a9ff); } .car-type-2::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 8rpx; background: linear-gradient(90deg, #07c160, #52c41a); } .car-type-3::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 8rpx; background: linear-gradient(90deg, #ff976a, #ffa940); } /* 车辆头部信息 */ .car-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 20rpx; } .car-title { font-size: 36rpx; font-weight: 700; color: #333; flex: 1; margin-right: 20rpx; line-height: 1.4; } .car-type-tag { margin-right: 20rpx; } .tag-new { background: linear-gradient(135deg, #1989fa, #40a9ff); color: white; padding: 8rpx 16rpx; border-radius: 16rpx; font-size: 22rpx; font-weight: 600; } .tag-rent { background: linear-gradient(135deg, #07c160, #52c41a); color: white; padding: 8rpx 16rpx; border-radius: 16rpx; font-size: 22rpx; font-weight: 600; } .tag-used { background: linear-gradient(135deg, #ff976a, #ffa940); color: white; padding: 8rpx 16rpx; border-radius: 16rpx; font-size: 22rpx; font-weight: 600; } .favorite-btn { padding: 8rpx; border-radius: 50%; background: rgba(0, 0, 0, 0.05); } .car-desc { font-size: 28rpx; color: #666; line-height: 1.6; margin-bottom: 30rpx; } /* 价格区域 */ .price-section { margin-bottom: 30rpx; padding: 30rpx; border-radius: 16rpx; position: relative; } /* 新车价格样式 */ .price-new { background: linear-gradient(135deg, rgba(25, 137, 250, 0.1), rgba(64, 169, 255, 0.05)); border: 2rpx solid rgba(25, 137, 250, 0.2); } .price-new .current-price { font-size: 48rpx; font-weight: 700; color: #1989fa; margin-right: 20rpx; } .price-new .original-price { font-size: 28rpx; color: #999; text-decoration: line-through; } .price-new .discount-badge { background: #ff4d4f; color: white; padding: 6rpx 12rpx; border-radius: 12rpx; font-size: 22rpx; font-weight: 600; } /* 租车价格样式 */ .price-rent { background: linear-gradient(135deg, rgba(7, 193, 96, 0.1), rgba(82, 196, 26, 0.05)); border: 2rpx solid rgba(7, 193, 96, 0.2); } .price-rent .current-price { font-size: 48rpx; font-weight: 700; color: #07c160; margin-right: 20rpx; } .price-rent .monthly-price { font-size: 28rpx; color: #666; } .rent-options { display: flex; gap: 20rpx; margin-top: 20rpx; } .rent-option { background: rgba(255, 255, 255, 0.8); padding: 12rpx 20rpx; border-radius: 12rpx; text-align: center; flex: 1; } .option-label { font-size: 24rpx; color: #666; display: block; margin-bottom: 4rpx; } .option-price { font-size: 28rpx; font-weight: 600; color: #07c160; } /* 二手车价格样式 */ .price-used { background: linear-gradient(135deg, rgba(255, 151, 106, 0.1), rgba(255, 169, 64, 0.05)); border: 2rpx solid rgba(255, 151, 106, 0.2); } .price-used .current-price { font-size: 48rpx; font-weight: 700; color: #ff976a; margin-right: 20rpx; } .price-used .original-price { font-size: 28rpx; color: #999; } .value-info { display: flex; align-items: center; gap: 16rpx; margin-top: 20rpx; } .value-badge { background: #52c41a; color: white; padding: 6rpx 12rpx; border-radius: 12rpx; font-size: 22rpx; font-weight: 600; } .depreciation-rate { font-size: 24rpx; color: #666; background: rgba(255, 255, 255, 0.8); padding: 6rpx 12rpx; border-radius: 12rpx; } .used-car-details { display: flex; gap: 20rpx; margin-top: 20rpx; } .detail-item { flex: 1; text-align: center; background: rgba(255, 255, 255, 0.8); padding: 16rpx; border-radius: 12rpx; } .detail-label { font-size: 24rpx; color: #666; display: block; margin-bottom: 4rpx; } .detail-value { font-size: 28rpx; font-weight: 600; color: #333; } /* 价格提示 */ .price-tips { text-align: center; } .tip-text { font-size: 24rpx; color: #999; font-style: italic; }