/* 重置和基础样式 */ * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; line-height: 1.6; color: #2c3e50; background-color: #fafafa; } .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; } /* 头部样式 */ .header { background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%); padding: 60px 0; text-align: center; border-bottom: 1px solid #dee2e6; } .title { font-size: 3rem; font-weight: 700; color: #2c3e50; margin-bottom: 10px; } .subtitle { font-size: 1.2rem; color: #6c757d; font-weight: 400; } /* 主要内容区域 */ .main { padding: 60px 0; } /* 概览部分 */ .overview-section { margin-bottom: 80px; } .car-cards { display: flex; justify-content: space-between; align-items: center; gap: 40px; } .car-card { flex: 1; background: white; border-radius: 16px; padding: 40px; text-align: center; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); transition: transform 0.3s ease, box-shadow 0.3s ease; } .car-card:hover { transform: translateY(-5px); box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12); } .car-image { margin-bottom: 30px; } .car-placeholder { width: 200px; height: 120px; border-radius: 12px; margin: 0 auto; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; font-weight: 600; color: white; } .car-placeholder.z9gt { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); } .car-placeholder.s9t { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); } .car-name { font-size: 2rem; font-weight: 700; color: #2c3e50; margin-bottom: 8px; } .car-tagline { color: #6c757d; margin-bottom: 20px; font-size: 1.1rem; } .price-range { display: flex; flex-direction: column; gap: 8px; } .price-label { color: #6c757d; font-size: 0.9rem; } .price { font-size: 1.5rem; font-weight: 700; color: #e74c3c; } .vs-divider { font-size: 2rem; font-weight: 700; color: #6c757d; padding: 20px; } /* 对比部分通用样式 */ .comparison-section { margin-bottom: 80px; } .section-title { font-size: 2.5rem; font-weight: 700; color: #2c3e50; text-align: center; margin-bottom: 50px; } /* 动力系统对比 */ .powertrain-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; } .powertrain-card { background: white; border-radius: 16px; padding: 40px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); } .powertrain-card h3 { font-size: 1.8rem; font-weight: 700; color: #2c3e50; margin-bottom: 25px; text-align: center; } .powertrain-options { margin-bottom: 30px; } .option { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; border-bottom: 1px solid #e9ecef; } .option:last-child { border-bottom: none; } .option-name { font-weight: 600; color: #2c3e50; } .option-price { color: #e74c3c; font-weight: 700; } .specs { background: #f8f9fa; border-radius: 12px; padding: 20px; } .spec-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; } .spec-label { color: #6c757d; font-weight: 500; } .spec-value { font-weight: 700; color: #2c3e50; } /* 参数对比表格 */ .comparison-table { background: white; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); } .comparison-table table { width: 100%; border-collapse: collapse; } .comparison-table th { background: #f8f9fa; padding: 20px; text-align: left; font-weight: 700; color: #2c3e50; border-bottom: 2px solid #dee2e6; } .comparison-table td { padding: 20px; border-bottom: 1px solid #e9ecef; } .comparison-table tr:last-child td { border-bottom: none; } .param-name { font-weight: 600; color: #2c3e50; background: #f8f9fa; } /* 配置层级对比 */ .config-comparison { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; } .config-column h3 { font-size: 1.8rem; font-weight: 700; color: #2c3e50; margin-bottom: 25px; text-align: center; } .config-card { background: white; border-radius: 16px; padding: 30px; margin-bottom: 20px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); } .config-card h4 { font-size: 1.3rem; font-weight: 700; color: #2c3e50; margin-bottom: 15px; } .config-card ul { list-style: none; } .config-card li { padding: 8px 0; color: #6c757d; border-bottom: 1px solid #f1f3f4; } .config-card li:last-child { border-bottom: none; } /* 总结部分 */ .summary-section { margin-bottom: 60px; } .summary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; } .summary-card { background: white; border-radius: 16px; padding: 40px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); } .summary-card h3 { font-size: 1.8rem; font-weight: 700; color: #2c3e50; margin-bottom: 25px; } .summary-card ul { list-style: none; } .summary-card li { padding: 12px 0; color: #6c757d; position: relative; padding-left: 25px; } .summary-card li::before { content: "•"; color: #667eea; font-weight: bold; position: absolute; left: 0; } /* 页脚 */ .footer { background: #2c3e50; color: white; text-align: center; padding: 40px 0; } .footer p { opacity: 0.8; } /* 响应式设计 */ @media (max-width: 768px) { .car-cards { flex-direction: column; } .vs-divider { transform: rotate(90deg); } .powertrain-grid, .config-comparison, .summary-grid { grid-template-columns: 1fr; } .title { font-size: 2rem; } .section-title { font-size: 2rem; } .container { padding: 0 15px; } } /* 动画效果 */ @keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } } .car-card, .powertrain-card, .comparison-table, .config-card, .summary-card { animation: fadeInUp 0.6s ease-out; } /* 悬停效果 */ .comparison-table tr:hover { background-color: #f8f9fa; transition: background-color 0.3s ease; } /* 自定义滚动条 */ ::-webkit-scrollbar { width: 8px; } ::-webkit-scrollbar-track { background: #f1f1f1; } ::-webkit-scrollbar-thumb { background: #c1c1c1; border-radius: 4px; } ::-webkit-scrollbar-thumb:hover { background: #a8a8a8; }